Moved to google.golang.org/genproto/googleapis/api/annotations

Fixes #52
This commit is contained in:
Valerio Gheri
2017-03-31 18:01:58 +02:00
parent 024c5a4e4e
commit c40779224f
2037 changed files with 831329 additions and 1854 deletions

View File

@@ -0,0 +1,27 @@
syntax = "proto2";
option go_package = "options";
package gengo.grpc.gateway;
import "google/protobuf/descriptor.proto";
message ApiMethodOptions {
// Use HttpRule instead.
option deprecated = true;
extend google.protobuf.MethodOptions {
// Describes how the gRPC method should be exported as a RESTful API.
//
// The id is a globally unique id for this option, assigned by
// protobuf-global-extension-registry@google.com.
optional ApiMethodOptions api_options = 1022;
}
// Path of the RESTful API method.
// Path components which start with colon is mapped to the corresponding fields in the request message.
required string path = 1;
// HTTP method of the RESTful API method
required string method = 2;
// Human-readable description of the method.
optional string description = 3;
}