fieldtrack.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. syntax = "proto2";
  5. package goproto.proto.test;
  6. import "annotation/annotation.proto";
  7. import "test/test.proto";
  8. import weak "test/weak1/test_weak.proto";
  9. import weak "test/weak2/test_weak.proto";
  10. option go_package = "google.golang.org/protobuf/internal/testprotos/fieldtrack";
  11. message TestFieldTrack {
  12. option (go_annotation.track_field_use) = true;
  13. optional int32 optional_int32 = 1;
  14. optional int64 optional_int64 = 2;
  15. optional uint32 optional_uint32 = 3;
  16. optional uint64 optional_uint64 = 4;
  17. optional sint32 optional_sint32 = 5;
  18. optional sint64 optional_sint64 = 6;
  19. optional fixed32 optional_fixed32 = 7;
  20. optional fixed64 optional_fixed64 = 8;
  21. optional sfixed32 optional_sfixed32 = 9;
  22. optional sfixed64 optional_sfixed64 = 10;
  23. optional float optional_float = 11;
  24. optional double optional_double = 12;
  25. optional bool optional_bool = 13;
  26. optional string optional_string = 14;
  27. optional bytes optional_bytes = 15;
  28. optional goproto.proto.test.TestAllTypes.NestedEnum optional_enum = 16;
  29. optional goproto.proto.test.TestAllTypes.NestedMessage optional_message = 17;
  30. repeated int32 repeated_int32 = 21;
  31. repeated int64 repeated_int64 = 22;
  32. repeated uint32 repeated_uint32 = 23;
  33. repeated uint64 repeated_uint64 = 24;
  34. repeated sint32 repeated_sint32 = 25;
  35. repeated sint64 repeated_sint64 = 26;
  36. repeated fixed32 repeated_fixed32 = 27;
  37. repeated fixed64 repeated_fixed64 = 28;
  38. repeated sfixed32 repeated_sfixed32 = 29;
  39. repeated sfixed64 repeated_sfixed64 = 30;
  40. repeated float repeated_float = 31;
  41. repeated double repeated_double = 32;
  42. repeated bool repeated_bool = 33;
  43. repeated string repeated_string = 34;
  44. repeated bytes repeated_bytes = 35;
  45. repeated goproto.proto.test.TestAllTypes.NestedEnum repeated_enum = 36;
  46. repeated goproto.proto.test.TestAllTypes.NestedMessage repeated_message = 37;
  47. map <string, int32> map_string_int32 = 41;
  48. map <string, int64> map_string_int64 = 42;
  49. map <string, uint32> map_string_uint32 = 43;
  50. map <string, uint64> map_string_uint64 = 44;
  51. map <string, sint32> map_string_sint32 = 45;
  52. map <string, sint64> map_string_sint64 = 46;
  53. map <string, fixed32> map_string_fixed32 = 47;
  54. map <string, fixed64> map_string_fixed64 = 48;
  55. map <string, sfixed32> map_string_sfixed32 = 49;
  56. map <string, sfixed64> map_string_sfixed64 = 50;
  57. map <string, float> map_string_float = 51;
  58. map <string, double> map_string_double = 52;
  59. map <string, bool> map_string_bool = 53;
  60. map <string, string> map_string_string = 54;
  61. map <string, bytes> map_string_bytes = 55;
  62. map <string, goproto.proto.test.TestAllTypes.NestedEnum> map_string_enum = 56;
  63. map <string, goproto.proto.test.TestAllTypes.NestedMessage> map_string_message = 57;
  64. optional goproto.proto.test.weak.WeakImportMessage1 weak_message1 = 100 [weak=true];
  65. optional goproto.proto.test.weak.WeakImportMessage2 weak_message2 = 101 [weak=true];
  66. }