unittest_no_generic_services.proto 681 B

1234567891011121314151617181920212223242526272829303132
  1. // Protocol Buffers - Google's data interchange format
  2. // Copyright 2008 Google Inc. All rights reserved.
  3. //
  4. // Use of this source code is governed by a BSD-style
  5. // license that can be found in the LICENSE file or at
  6. // https://developers.google.com/open-source/licenses/bsd
  7. // Author: kenton@google.com (Kenton Varda)
  8. syntax = "proto2";
  9. package protobuf_unittest.no_generic_services_test;
  10. // *_generic_services are false by default.
  11. message TestMessage {
  12. optional int32 a = 1;
  13. extensions 1000 to max;
  14. }
  15. enum TestEnum {
  16. FOO = 1;
  17. }
  18. extend TestMessage {
  19. optional int32 test_extension = 1000;
  20. }
  21. service TestService {
  22. rpc Foo(TestMessage) returns (TestMessage);
  23. }