github.com/psrajat/prototool@v1.3.0/internal/cmd/testdata/grpc/grpc.proto (about)

     1  syntax = "proto3";
     2  
     3  package grpc;
     4  
     5  option go_package = "grpcpb";
     6  option java_multiple_files = true;
     7  option java_outer_classname = "GrpcProto";
     8  option java_package = "com.grpc";
     9  
    10  message ExclamationRequest {
    11    string value = 1;
    12  }
    13  
    14  message ExclamationResponse {
    15    string value = 1;
    16  }
    17  
    18  // ExcitedService is a service with exciting transformations.
    19  service ExcitedService {
    20    // Exclamation adds an exclamation to the request value.
    21    rpc Exclamation(ExclamationRequest) returns (ExclamationResponse) {}
    22    // ExclamationClientStream adds an exclamation to the combined request values.
    23    rpc ExclamationClientStream(stream ExclamationRequest) returns (ExclamationResponse) {}
    24    // ExclamationServerStream adds an exclamation to the request value
    25    // and streams each character as a response.
    26    rpc ExclamationServerStream(ExclamationRequest) returns (stream ExclamationResponse) {}
    27    // ExclamationBidiStream adds an exclamation to the each request value.
    28    rpc ExclamationBidiStream(stream ExclamationRequest) returns (stream ExclamationResponse) {}
    29  }