unittest_rpc_interop.proto 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. /*
  24. Add this option to specify the GuidAttribute on the service interface
  25. option (google.protobuf.csharp_service_options).interface_id = "{A65F0925-FD11-4f94-B166-89AC4F027205}";
  26. */
  27. rpc Search (SearchRequest) returns (SearchResponse)
  28. /*
  29. Add this option to specify the DispIdAttribute on the service interface
  30. { option (google.protobuf.csharp_method_options).dispatch_id = 5; }
  31. */ ;
  32. rpc RefineSearch (RefineSearchRequest) returns (SearchResponse);
  33. }