Annotate gRPC methods for REST interface gen.

The option(google.api.http) annotations can be used by for example
https://github.com/grpc-ecosystem/grpc-gateway to generate a gRPC to
REST proxy.
This commit is contained in:
Orne Brocaar
2022-07-13 12:18:46 +01:00
parent e1da9f75ae
commit 36ec11d175
72 changed files with 3902 additions and 2485 deletions

View File

@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var google_api_annotations_pb = require('../google/api/annotations_pb.js');
goog.object.extend(proto, google_api_annotations_pb);
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
goog.object.extend(proto, google_protobuf_timestamp_pb);
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');