-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from gengo/feature/use-unique-id
Use a globally unique id for the custom option
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,10 @@ import "google/protobuf/descriptor.proto"; | |
message ApiMethodOptions { | ||
extend google.protobuf.MethodOptions { | ||
// Describes how the gRPC method should be exported as a RESTful API. | ||
// TODO(yugui) Use a globally unique id instead of a organization-private id. | ||
optional ApiMethodOptions api_options = 5000; | ||
// | ||
// The id is a globally unique id for this option, assigned by | ||
// [email protected]. | ||
optional ApiMethodOptions api_options = 1022; | ||
} | ||
|
||
// Path of the RESTful API method. | ||
|