unittest_rpc_interop_lite.proto 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. option (google.protobuf.csharp_service_options).interface_id = "{A65F0925-FD11-4f94-B166-89AC4F027205}";
  25. rpc Search (SearchRequest) returns (SearchResponse) { option (google.protobuf.csharp_method_options).dispatch_id = 5; };
  26. rpc RefineSearch (RefineSearchRequest) returns (SearchResponse);
  27. }