test.proto 848 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Different proto type definitions for testing the Types registry.
  5. syntax = "proto2";
  6. package testprotos;
  7. option go_package = "google.golang.org/protobuf/reflect/protoregistry/testprotos";
  8. message Message1 {
  9. extensions 10 to max;
  10. }
  11. message Message2 {}
  12. message Message3 {}
  13. enum Enum1 {
  14. ONE = 1;
  15. }
  16. enum Enum2 {
  17. UNO = 1;
  18. }
  19. enum Enum3 {
  20. YI = 1;
  21. }
  22. extend Message1 {
  23. optional string string_field = 11;
  24. optional Enum1 enum_field = 12;
  25. optional Message2 message_field = 13;
  26. }
  27. message Message4 {
  28. optional bool bool_field = 30;
  29. extend Message1 {
  30. optional Message2 message_field = 21;
  31. optional Enum1 enum_field = 22;
  32. optional string string_field = 23;
  33. }
  34. }