nested_messages.pb.go 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: proto2/nested_messages.proto
  3. package proto2
  4. import (
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoiface "google.golang.org/protobuf/runtime/protoiface"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. sync "sync"
  9. )
  10. const (
  11. // Verify that runtime/protoimpl is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
  13. // Verify that this generated code is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
  15. )
  16. type Layer1 struct {
  17. L2 *Layer1_Layer2 `protobuf:"bytes,1,opt,name=l2" json:"l2,omitempty"`
  18. L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,2,opt,name=l3" json:"l3,omitempty"`
  19. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  20. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  21. XXX_sizecache protoimpl.SizeCache `json:"-"`
  22. }
  23. func (x *Layer1) Reset() {
  24. *x = Layer1{}
  25. }
  26. func (x *Layer1) String() string {
  27. return protoimpl.X.MessageStringOf(x)
  28. }
  29. func (*Layer1) ProtoMessage() {}
  30. func (x *Layer1) ProtoReflect() protoreflect.Message {
  31. return file_proto2_nested_messages_proto_msgTypes[0].MessageOf(x)
  32. }
  33. func (m *Layer1) XXX_Methods() *protoiface.Methods {
  34. return file_proto2_nested_messages_proto_msgTypes[0].Methods()
  35. }
  36. // Deprecated: Use Layer1.ProtoReflect.Type instead.
  37. func (*Layer1) Descriptor() ([]byte, []int) {
  38. return file_proto2_nested_messages_proto_rawDescGZIP(), []int{0}
  39. }
  40. func (x *Layer1) GetL2() *Layer1_Layer2 {
  41. if x != nil {
  42. return x.L2
  43. }
  44. return nil
  45. }
  46. func (x *Layer1) GetL3() *Layer1_Layer2_Layer3 {
  47. if x != nil {
  48. return x.L3
  49. }
  50. return nil
  51. }
  52. type Layer1_Layer2 struct {
  53. L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,1,opt,name=l3" json:"l3,omitempty"`
  54. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  55. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  56. XXX_sizecache protoimpl.SizeCache `json:"-"`
  57. }
  58. func (x *Layer1_Layer2) Reset() {
  59. *x = Layer1_Layer2{}
  60. }
  61. func (x *Layer1_Layer2) String() string {
  62. return protoimpl.X.MessageStringOf(x)
  63. }
  64. func (*Layer1_Layer2) ProtoMessage() {}
  65. func (x *Layer1_Layer2) ProtoReflect() protoreflect.Message {
  66. return file_proto2_nested_messages_proto_msgTypes[1].MessageOf(x)
  67. }
  68. func (m *Layer1_Layer2) XXX_Methods() *protoiface.Methods {
  69. return file_proto2_nested_messages_proto_msgTypes[1].Methods()
  70. }
  71. // Deprecated: Use Layer1_Layer2.ProtoReflect.Type instead.
  72. func (*Layer1_Layer2) Descriptor() ([]byte, []int) {
  73. return file_proto2_nested_messages_proto_rawDescGZIP(), []int{0, 0}
  74. }
  75. func (x *Layer1_Layer2) GetL3() *Layer1_Layer2_Layer3 {
  76. if x != nil {
  77. return x.L3
  78. }
  79. return nil
  80. }
  81. type Layer1_Layer2_Layer3 struct {
  82. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  83. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  84. XXX_sizecache protoimpl.SizeCache `json:"-"`
  85. }
  86. func (x *Layer1_Layer2_Layer3) Reset() {
  87. *x = Layer1_Layer2_Layer3{}
  88. }
  89. func (x *Layer1_Layer2_Layer3) String() string {
  90. return protoimpl.X.MessageStringOf(x)
  91. }
  92. func (*Layer1_Layer2_Layer3) ProtoMessage() {}
  93. func (x *Layer1_Layer2_Layer3) ProtoReflect() protoreflect.Message {
  94. return file_proto2_nested_messages_proto_msgTypes[2].MessageOf(x)
  95. }
  96. func (m *Layer1_Layer2_Layer3) XXX_Methods() *protoiface.Methods {
  97. return file_proto2_nested_messages_proto_msgTypes[2].Methods()
  98. }
  99. // Deprecated: Use Layer1_Layer2_Layer3.ProtoReflect.Type instead.
  100. func (*Layer1_Layer2_Layer3) Descriptor() ([]byte, []int) {
  101. return file_proto2_nested_messages_proto_rawDescGZIP(), []int{0, 0, 0}
  102. }
  103. var File_proto2_nested_messages_proto protoreflect.FileDescriptor
  104. var file_proto2_nested_messages_proto_rawDesc = []byte{
  105. 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f,
  106. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15,
  107. 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
  108. 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0xcc, 0x01, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31,
  109. 0x12, 0x34, 0x0a, 0x02, 0x6c, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67,
  110. 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72,
  111. 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65,
  112. 0x72, 0x32, 0x52, 0x02, 0x6c, 0x32, 0x12, 0x3b, 0x0a, 0x02, 0x6c, 0x33, 0x18, 0x02, 0x20, 0x01,
  113. 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
  114. 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72,
  115. 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x33, 0x52,
  116. 0x02, 0x6c, 0x33, 0x1a, 0x4f, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x12, 0x3b, 0x0a,
  117. 0x02, 0x6c, 0x33, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x70, 0x72,
  118. 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  119. 0x32, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e,
  120. 0x4c, 0x61, 0x79, 0x65, 0x72, 0x33, 0x52, 0x02, 0x6c, 0x33, 0x1a, 0x08, 0x0a, 0x06, 0x4c, 0x61,
  121. 0x79, 0x65, 0x72, 0x33, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
  122. 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  123. 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65,
  124. 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72,
  125. 0x6f, 0x74, 0x6f, 0x32,
  126. }
  127. var (
  128. file_proto2_nested_messages_proto_rawDescOnce sync.Once
  129. file_proto2_nested_messages_proto_rawDescData = file_proto2_nested_messages_proto_rawDesc
  130. )
  131. func file_proto2_nested_messages_proto_rawDescGZIP() []byte {
  132. file_proto2_nested_messages_proto_rawDescOnce.Do(func() {
  133. file_proto2_nested_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_nested_messages_proto_rawDescData)
  134. })
  135. return file_proto2_nested_messages_proto_rawDescData
  136. }
  137. var file_proto2_nested_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  138. var file_proto2_nested_messages_proto_goTypes = []interface{}{
  139. (*Layer1)(nil), // 0: goproto.protoc.proto2.Layer1
  140. (*Layer1_Layer2)(nil), // 1: goproto.protoc.proto2.Layer1.Layer2
  141. (*Layer1_Layer2_Layer3)(nil), // 2: goproto.protoc.proto2.Layer1.Layer2.Layer3
  142. }
  143. var file_proto2_nested_messages_proto_depIdxs = []int32{
  144. 1, // goproto.protoc.proto2.Layer1.l2:type_name -> goproto.protoc.proto2.Layer1.Layer2
  145. 2, // goproto.protoc.proto2.Layer1.l3:type_name -> goproto.protoc.proto2.Layer1.Layer2.Layer3
  146. 2, // goproto.protoc.proto2.Layer1.Layer2.l3:type_name -> goproto.protoc.proto2.Layer1.Layer2.Layer3
  147. 3, // starting offset of method output_type sub-list
  148. 3, // starting offset of method input_type sub-list
  149. 3, // starting offset of extension type_name sub-list
  150. 3, // starting offset of extension extendee sub-list
  151. 0, // starting offset of field type_name sub-list
  152. }
  153. func init() { file_proto2_nested_messages_proto_init() }
  154. func file_proto2_nested_messages_proto_init() {
  155. if File_proto2_nested_messages_proto != nil {
  156. return
  157. }
  158. out := protoimpl.TypeBuilder{
  159. File: protoimpl.DescBuilder{
  160. RawDescriptor: file_proto2_nested_messages_proto_rawDesc,
  161. NumEnums: 0,
  162. NumMessages: 3,
  163. NumExtensions: 0,
  164. NumServices: 0,
  165. },
  166. GoTypes: file_proto2_nested_messages_proto_goTypes,
  167. DependencyIndexes: file_proto2_nested_messages_proto_depIdxs,
  168. MessageInfos: file_proto2_nested_messages_proto_msgTypes,
  169. }.Build()
  170. File_proto2_nested_messages_proto = out.File
  171. file_proto2_nested_messages_proto_rawDesc = nil
  172. file_proto2_nested_messages_proto_goTypes = nil
  173. file_proto2_nested_messages_proto_depIdxs = nil
  174. }