unittest_rpc_interop_lite.proto 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 = "UnitTestRpcInteropLite";
  6. option (google.protobuf.csharp_file_options).service_generator_type = IRPCDISPATCH;
  7. option optimize_for = LITE_RUNTIME;
  8. package unittest_rpc_interop_lite;
  9. message SearchRequest {
  10. repeated string Criteria = 1;
  11. }
  12. message SearchResponse {
  13. message ResultItem {
  14. required string url = 1;
  15. optional string name = 2;
  16. }
  17. repeated ResultItem results = 1;
  18. }
  19. message RefineSearchRequest {
  20. repeated string Criteria = 1;
  21. required SearchResponse previous_results = 2;
  22. }
  23. service SearchService {
  24. /*
  25. Add this option to specify the GuidAttribute on the service interface
  26. option (google.protobuf.csharp_service_options).interface_id = "{A65F0925-FD11-4f94-B166-89AC4F027205}";
  27. */
  28. rpc Search (SearchRequest) returns (SearchResponse)
  29. /*
  30. Add this option to specify the DispIdAttribute on the service interface
  31. { option (google.protobuf.csharp_method_options).dispatch_id = 5; }
  32. */ ;
  33. rpc RefineSearch (RefineSearchRequest) returns (SearchResponse);
  34. }