unittest_generic_services.proto 954 B

123456789101112131415161718192021222324252627282930
  1. syntax = "proto2";
  2. // Additional options required for C# generation. File from copyright
  3. // line onwards is as per original distribution.
  4. import "google/protobuf/unittest.proto";
  5. import "google/protobuf/unittest_custom_options.proto";
  6. option csharp_namespace = "Google.ProtocolBuffers.TestProtos";
  7. // option (google.protobuf.csharp_file_options).service_generator_type = GENERIC;
  8. // We don't put this in a package within proto2 because we need to make sure
  9. // that the generated code doesn't depend on being in the proto2 namespace.
  10. package protobuf_unittest;
  11. option optimize_for = SPEED;
  12. service TestGenericService {
  13. rpc Foo(FooRequest) returns (FooResponse);
  14. rpc Bar(BarRequest) returns (BarResponse);
  15. }
  16. service TestGenericServiceWithCustomOptions {
  17. option (service_opt1) = -9876543210;
  18. rpc Foo(CustomOptionFooRequest) returns (CustomOptionFooResponse) {
  19. option (method_opt1) = METHODOPT1_VAL2;
  20. }
  21. }