unittest_generic_services.proto 1.1 KB

1234567891011121314151617181920212223242526272829
  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. import "google/protobuf/unittest.proto";
  5. import "google/protobuf/unittest_custom_options.proto";
  6. option (google.protobuf.csharp_file_options).namespace = "Google.ProtocolBuffers.TestProtos";
  7. option (google.protobuf.csharp_file_options).umbrella_classname = "UnitTestGenericServices";
  8. option (google.protobuf.csharp_file_options).service_generator_type = GENERIC;
  9. // We don't put this in a package within proto2 because we need to make sure
  10. // that the generated code doesn't depend on being in the proto2 namespace.
  11. package protobuf_unittest;
  12. option optimize_for = SPEED;
  13. service TestGenericService {
  14. rpc Foo(FooRequest) returns (FooResponse);
  15. rpc Bar(BarRequest) returns (BarResponse);
  16. }
  17. service TestGenericServiceWithCustomOptions {
  18. option (service_opt1) = -9876543210;
  19. rpc Foo(CustomOptionFooRequest) returns (CustomOptionFooResponse) {
  20. option (method_opt1) = METHODOPT1_VAL2;
  21. }
  22. }