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:
$ npm install --save google-proto-filesvar protoFiles = require('google-proto-files')protoFiles('logging', 'v2')
// node_modules/google-proto-files/google/logging/v2protoFiles.pubsub.v1
// node_modules/google-proto-files/google/pubsub/v1/pubsub.protoprotoFiles.load('path/to/file.proto').then(function(root) {
var MyService = root.lookup('example.MyService')
})var root = protoFiles.loadSync('path/to/file.proto');
var MyService = root.lookup('example.MyService');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
Contributions welcome! See the Contributing Guide.
Apache Version 2.0
See LICENSE