• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1syntax = "proto3";
2
3package service_test_protos;
4
5import "google/protobuf/descriptor.proto";
6
7message UnaryRequestType {
8  string ping = 1;
9}
10
11message UnaryResponseType {
12  string pong = 1;
13}
14
15message StreamRequestType {
16  string ping = 1;
17  uint32 sequence = 2;
18}
19
20message StreamResponseType {
21  string pong = 1;
22  uint32 sequence = 2;
23}
24
25message TestOptionsType {
26  uint32 int_option_value = 1;
27}
28
29extend google.protobuf.ServiceOptions {
30  optional TestOptionsType test_options = 50000;
31}
32
33service TestService {
34  option (test_options).int_option_value = 8325;
35
36  rpc UnaryOne(UnaryRequestType) returns (UnaryResponseType);
37  rpc UnaryTwo(UnaryRequestType) returns (UnaryResponseType);
38
39  rpc IdempotentMethod(UnaryRequestType) returns (UnaryResponseType) {
40    option idempotency_level = IDEMPOTENT;
41  }
42  rpc PureMethod(UnaryRequestType) returns (UnaryResponseType) {
43    option idempotency_level = NO_SIDE_EFFECTS;
44  }
45
46  rpc StreamingMethod(stream StreamRequestType)
47      returns (stream StreamResponseType);
48}
49
50service DeprecatedService {
51  option deprecated = true;
52}
53