/
method_options.proto
48 lines (44 loc) · 1.12 KB
/
method_options.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
syntax = "proto3";
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/httpbody.proto";
message Empty {}
message MethodSignature {
repeated string method_signature = 1;
}
service Hello {
rpc Hello (Empty) returns (Empty) {
option deprecated = true;
option idempotency_level = NO_SIDE_EFFECTS;
option uninterpreted_option = {
name: {
name_part: 'foo'
is_extension: false
}
identifier_value: 'bar'
positive_int_value: 9007199254740991
negative_int_value: -9007199254740991
double_value: 1.2345
string_value: 'foobar'
aggregate_value: 'foobar'
};
option (google.api.http) = {
post: "/hello"
body: "*"
response_body: "*"
additional_bindings: {}
};
option (google.api.method_signature) = 'bar';
}
rpc HelloWithoutOptions (Empty) returns (Empty) {}
rpc HelloWithSomeOptions (Empty) returns (Empty) {
option deprecated = true;
option (google.api.http) = {
get: "/hello"
additional_bindings: {
get: "/hello-world"
body: "*"
}
};
}
}