nested_messages.pb.go 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. // Code generated by protoc-gen-go. DO NOT EDIT.
  5. // source: proto2/nested_messages.proto
  6. package proto2
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. type Layer1 struct {
  14. state protoimpl.MessageState
  15. sizeCache protoimpl.SizeCache
  16. unknownFields protoimpl.UnknownFields
  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. }
  20. func (x *Layer1) Reset() {
  21. *x = Layer1{}
  22. }
  23. func (x *Layer1) String() string {
  24. return protoimpl.X.MessageStringOf(x)
  25. }
  26. func (*Layer1) ProtoMessage() {}
  27. func (x *Layer1) ProtoReflect() protoreflect.Message {
  28. mi := &file_proto2_nested_messages_proto_msgTypes[0]
  29. if protoimpl.UnsafeEnabled && x != nil {
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. if ms.LoadMessageInfo() == nil {
  32. ms.StoreMessageInfo(mi)
  33. }
  34. return ms
  35. }
  36. return mi.MessageOf(x)
  37. }
  38. // Deprecated: Use Layer1.ProtoReflect.Descriptor instead.
  39. func (*Layer1) Descriptor() ([]byte, []int) {
  40. return file_proto2_nested_messages_proto_rawDescGZIP(), []int{0}
  41. }
  42. func (x *Layer1) GetL2() *Layer1_Layer2 {
  43. if x != nil {
  44. return x.L2
  45. }
  46. return nil
  47. }
  48. func (x *Layer1) GetL3() *Layer1_Layer2_Layer3 {
  49. if x != nil {
  50. return x.L3
  51. }
  52. return nil
  53. }
  54. type Layer1_Layer2 struct {
  55. state protoimpl.MessageState
  56. sizeCache protoimpl.SizeCache
  57. unknownFields protoimpl.UnknownFields
  58. L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,1,opt,name=l3" json:"l3,omitempty"`
  59. }
  60. func (x *Layer1_Layer2) Reset() {
  61. *x = Layer1_Layer2{}
  62. }
  63. func (x *Layer1_Layer2) String() string {
  64. return protoimpl.X.MessageStringOf(x)
  65. }
  66. func (*Layer1_Layer2) ProtoMessage() {}
  67. func (x *Layer1_Layer2) ProtoReflect() protoreflect.Message {
  68. mi := &file_proto2_nested_messages_proto_msgTypes[1]
  69. if protoimpl.UnsafeEnabled && x != nil {
  70. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  71. if ms.LoadMessageInfo() == nil {
  72. ms.StoreMessageInfo(mi)
  73. }
  74. return ms
  75. }
  76. return mi.MessageOf(x)
  77. }
  78. // Deprecated: Use Layer1_Layer2.ProtoReflect.Descriptor instead.
  79. func (*Layer1_Layer2) Descriptor() ([]byte, []int) {
  80. return file_proto2_nested_messages_proto_rawDescGZIP(), []int{0, 0}
  81. }
  82. func (x *Layer1_Layer2) GetL3() *Layer1_Layer2_Layer3 {
  83. if x != nil {
  84. return x.L3
  85. }
  86. return nil
  87. }
  88. type Layer1_Layer2_Layer3 struct {
  89. state protoimpl.MessageState
  90. sizeCache protoimpl.SizeCache
  91. unknownFields protoimpl.UnknownFields
  92. }
  93. func (x *Layer1_Layer2_Layer3) Reset() {
  94. *x = Layer1_Layer2_Layer3{}
  95. }
  96. func (x *Layer1_Layer2_Layer3) String() string {
  97. return protoimpl.X.MessageStringOf(x)
  98. }
  99. func (*Layer1_Layer2_Layer3) ProtoMessage() {}
  100. func (x *Layer1_Layer2_Layer3) ProtoReflect() protoreflect.Message {
  101. mi := &file_proto2_nested_messages_proto_msgTypes[2]
  102. if protoimpl.UnsafeEnabled && x != nil {
  103. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  104. if ms.LoadMessageInfo() == nil {
  105. ms.StoreMessageInfo(mi)
  106. }
  107. return ms
  108. }
  109. return mi.MessageOf(x)
  110. }
  111. // Deprecated: Use Layer1_Layer2_Layer3.ProtoReflect.Descriptor instead.
  112. func (*Layer1_Layer2_Layer3) Descriptor() ([]byte, []int) {
  113. return file_proto2_nested_messages_proto_rawDescGZIP(), []int{0, 0, 0}
  114. }
  115. var File_proto2_nested_messages_proto protoreflect.FileDescriptor
  116. var file_proto2_nested_messages_proto_rawDesc = []byte{
  117. 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f,
  118. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15,
  119. 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
  120. 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0xcc, 0x01, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31,
  121. 0x12, 0x34, 0x0a, 0x02, 0x6c, 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67,
  122. 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72,
  123. 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65,
  124. 0x72, 0x32, 0x52, 0x02, 0x6c, 0x32, 0x12, 0x3b, 0x0a, 0x02, 0x6c, 0x33, 0x18, 0x02, 0x20, 0x01,
  125. 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
  126. 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72,
  127. 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x33, 0x52,
  128. 0x02, 0x6c, 0x33, 0x1a, 0x4f, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x12, 0x3b, 0x0a,
  129. 0x02, 0x6c, 0x33, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x70, 0x72,
  130. 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  131. 0x32, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e,
  132. 0x4c, 0x61, 0x79, 0x65, 0x72, 0x33, 0x52, 0x02, 0x6c, 0x33, 0x1a, 0x08, 0x0a, 0x06, 0x4c, 0x61,
  133. 0x79, 0x65, 0x72, 0x33, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
  134. 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  135. 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65,
  136. 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72,
  137. 0x6f, 0x74, 0x6f, 0x32,
  138. }
  139. var (
  140. file_proto2_nested_messages_proto_rawDescOnce sync.Once
  141. file_proto2_nested_messages_proto_rawDescData = file_proto2_nested_messages_proto_rawDesc
  142. )
  143. func file_proto2_nested_messages_proto_rawDescGZIP() []byte {
  144. file_proto2_nested_messages_proto_rawDescOnce.Do(func() {
  145. file_proto2_nested_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_nested_messages_proto_rawDescData)
  146. })
  147. return file_proto2_nested_messages_proto_rawDescData
  148. }
  149. var file_proto2_nested_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  150. var file_proto2_nested_messages_proto_goTypes = []interface{}{
  151. (*Layer1)(nil), // 0: goproto.protoc.proto2.Layer1
  152. (*Layer1_Layer2)(nil), // 1: goproto.protoc.proto2.Layer1.Layer2
  153. (*Layer1_Layer2_Layer3)(nil), // 2: goproto.protoc.proto2.Layer1.Layer2.Layer3
  154. }
  155. var file_proto2_nested_messages_proto_depIdxs = []int32{
  156. 1, // 0: goproto.protoc.proto2.Layer1.l2:type_name -> goproto.protoc.proto2.Layer1.Layer2
  157. 2, // 1: goproto.protoc.proto2.Layer1.l3:type_name -> goproto.protoc.proto2.Layer1.Layer2.Layer3
  158. 2, // 2: goproto.protoc.proto2.Layer1.Layer2.l3:type_name -> goproto.protoc.proto2.Layer1.Layer2.Layer3
  159. 3, // [3:3] is the sub-list for method output_type
  160. 3, // [3:3] is the sub-list for method input_type
  161. 3, // [3:3] is the sub-list for extension type_name
  162. 3, // [3:3] is the sub-list for extension extendee
  163. 0, // [0:3] is the sub-list for field type_name
  164. }
  165. func init() { file_proto2_nested_messages_proto_init() }
  166. func file_proto2_nested_messages_proto_init() {
  167. if File_proto2_nested_messages_proto != nil {
  168. return
  169. }
  170. if !protoimpl.UnsafeEnabled {
  171. file_proto2_nested_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  172. switch v := v.(*Layer1); i {
  173. case 0:
  174. return &v.state
  175. case 1:
  176. return &v.sizeCache
  177. case 2:
  178. return &v.unknownFields
  179. default:
  180. return nil
  181. }
  182. }
  183. file_proto2_nested_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  184. switch v := v.(*Layer1_Layer2); i {
  185. case 0:
  186. return &v.state
  187. case 1:
  188. return &v.sizeCache
  189. case 2:
  190. return &v.unknownFields
  191. default:
  192. return nil
  193. }
  194. }
  195. file_proto2_nested_messages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  196. switch v := v.(*Layer1_Layer2_Layer3); i {
  197. case 0:
  198. return &v.state
  199. case 1:
  200. return &v.sizeCache
  201. case 2:
  202. return &v.unknownFields
  203. default:
  204. return nil
  205. }
  206. }
  207. }
  208. type x struct{}
  209. out := protoimpl.TypeBuilder{
  210. File: protoimpl.DescBuilder{
  211. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  212. RawDescriptor: file_proto2_nested_messages_proto_rawDesc,
  213. NumEnums: 0,
  214. NumMessages: 3,
  215. NumExtensions: 0,
  216. NumServices: 0,
  217. },
  218. GoTypes: file_proto2_nested_messages_proto_goTypes,
  219. DependencyIndexes: file_proto2_nested_messages_proto_depIdxs,
  220. MessageInfos: file_proto2_nested_messages_proto_msgTypes,
  221. }.Build()
  222. File_proto2_nested_messages_proto = out.File
  223. file_proto2_nested_messages_proto_rawDesc = nil
  224. file_proto2_nested_messages_proto_goTypes = nil
  225. file_proto2_nested_messages_proto_depIdxs = nil
  226. }