unittest_rpc_interop.proto 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Additional options required for C# generation. File from copyright
  2. // line onwards is as per original distribution.
  3. import "google/protobuf/csharp_options.proto";
  4. option (google.protobuf.csharp_file_options).namespace = "Google.ProtocolBuffers.TestProtos";
  5. option (google.protobuf.csharp_file_options).umbrella_classname = "UnitTestRpcInterop";
  6. option (google.protobuf.csharp_file_options).service_generator_type = IRPCDISPATCH;
  7. option optimize_for = SPEED;
  8. message SearchRequest {
  9. repeated string Criteria = 1;
  10. }
  11. message SearchResponse {
  12. message ResultItem {
  13. required string url = 1;
  14. optional string name = 2;
  15. }
  16. repeated ResultItem results = 1;
  17. }
  18. message RefineSearchRequest {
  19. repeated string Criteria = 1;
  20. required SearchResponse previous_results = 2;
  21. }
  22. service SearchService {
  23. option (google.protobuf.csharp_service_options).interface_id = "{A65F0925-FD11-4f94-B166-89AC4F027205}";
  24. rpc Search (SearchRequest) returns (SearchResponse) { option (google.protobuf.csharp_method_options).dispatch_id = 5; };
  25. rpc RefineSearch (RefineSearchRequest) returns (SearchResponse);
  26. }