go.uber.org/yarpc@v1.72.1/internal/prototest/examplepb/example.proto (about)

     1  syntax = "proto3";
     2  
     3  package uber.yarpc.internal.examples.protobuf.example;
     4  
     5  option go_package = "examplepb";
     6  
     7  message GetValueRequest {
     8    string key = 1;
     9  }
    10  
    11  message GetValueResponse {
    12    string value = 2;
    13  }
    14  
    15  message SetValueRequest {
    16    string key = 1;
    17    string value = 2;
    18  }
    19  
    20  message SetValueResponse {}
    21  
    22  message EchoOutRequest {
    23    string message = 1;
    24  }
    25  
    26  message EchoOutResponse {
    27    repeated string all_messages = 2;
    28  }
    29  
    30  message EchoInRequest {
    31    string message = 1;
    32    int64 num_responses = 2;
    33  }
    34  
    35  message EchoInResponse {
    36    string message = 1;
    37  }
    38  
    39  message EchoBothRequest {
    40    string message = 1;
    41    int64 num_responses = 2;
    42  }
    43  
    44  message EchoBothResponse {
    45    string message = 1;
    46  }
    47  
    48  // Get2ndMessageRequest and Get2ndMessageResponse are messages used
    49  // to test that messages generated by the yarpc protoc plugin and by protoc-gen-gogo
    50  // follows the same GoType conventions as gogo/protobuf.
    51  message Get2ndMessageRequest {
    52     string message = 1;
    53  }
    54  
    55  message Get2ndMessageResponse {
    56    string message = 1;
    57  }
    58  
    59  service KeyValue {
    60    rpc GetValue(GetValueRequest) returns (GetValueResponse) {}
    61    rpc SetValue(SetValueRequest) returns (SetValueResponse) {}
    62  }
    63  
    64  service Foo {
    65    rpc EchoOut(stream EchoOutRequest) returns (EchoOutResponse) {}
    66    rpc EchoIn(EchoInRequest) returns (stream EchoInResponse) {}
    67    rpc EchoBoth(stream EchoBothRequest) returns (stream EchoBothResponse) {}
    68  }
    69  
    70  service TestMessageNameParity {
    71    rpc MessageName(Get2ndMessageRequest) returns (Get2ndMessageResponse) {}
    72  }