googleapis/nodejs-proto-files

Name: nodejs-proto-files

Owner: Google APIs

Description: All of the Google API's protocol buffer files

Created: 2016-01-18 21:44:47.0

Updated: 2018-05-22 18:31:36.0

Pushed: 2018-05-22 18:31:33.0

Homepage: null

Size: 570

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Google Cloud Platform logo

googleapis Proto Files: Node.js Client

release level CircleCI AppVeyor codecov

Get a copy of the googleapis proto files into your project.

Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.

Table of contents:

Usage
m install --save google-proto-files
protoFiles = require('google-proto-files')
Get a directory path by executing as a function
oFiles('logging', 'v2')
ode_modules/google-proto-files/google/logging/v2
Get a path to the entry proto file for a specific API version
oFiles.pubsub.v1
ode_modules/google-proto-files/google/pubsub/v1/pubsub.proto
Load a proto which depends on google common protos.
Asynchronously
oFiles.load('path/to/file.proto').then(function(root) {
r MyService = root.lookup('example.MyService')

Synchronously
root = protoFiles.loadSync('path/to/file.proto');
MyService = root.lookup('example.MyService');
Versioning

This library follows Semantic Versioning.

This library is considered to be in alpha. This means it is still a work-in-progress and under active development. Any release is subject to backwards-incompatible changes at any time.

More Information: Google Cloud Platform Launch Stages

Contributing

Contributions welcome! See the Contributing Guide.

License

Apache Version 2.0

See LICENSE


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.