Skip to content

Commit

Permalink
Merge pull request #3 from gengo/feature/use-unique-id
Browse files Browse the repository at this point in the history
Use a globally unique id for the custom option
  • Loading branch information
yugui committed Apr 8, 2015
2 parents fc4e26a + 411e9a2 commit 66bae1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions options/options.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions options/options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 66bae1d

Please sign in to comment.