test_import_all.pb.go 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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: imports/test_import_all.proto
  6. package imports
  7. import (
  8. fmt "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/fmt"
  9. test_a_1 "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1"
  10. _ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2"
  11. test_b_1 "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1"
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14. reflect "reflect"
  15. sync "sync"
  16. )
  17. type All struct {
  18. state protoimpl.MessageState
  19. sizeCache protoimpl.SizeCache
  20. unknownFields protoimpl.UnknownFields
  21. Am1 *test_a_1.M1 `protobuf:"bytes,1,opt,name=am1,proto3" json:"am1,omitempty"`
  22. Am2 *test_a_1.M2 `protobuf:"bytes,2,opt,name=am2,proto3" json:"am2,omitempty"`
  23. Bm1 *test_b_1.M1 `protobuf:"bytes,5,opt,name=bm1,proto3" json:"bm1,omitempty"`
  24. Bm2 *test_b_1.M2 `protobuf:"bytes,6,opt,name=bm2,proto3" json:"bm2,omitempty"`
  25. Fmt *fmt.M `protobuf:"bytes,7,opt,name=fmt,proto3" json:"fmt,omitempty"`
  26. }
  27. func (x *All) Reset() {
  28. *x = All{}
  29. }
  30. func (x *All) String() string {
  31. return protoimpl.X.MessageStringOf(x)
  32. }
  33. func (*All) ProtoMessage() {}
  34. func (x *All) ProtoReflect() protoreflect.Message {
  35. mi := &file_imports_test_import_all_proto_msgTypes[0]
  36. if protoimpl.UnsafeEnabled && x != nil {
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. if ms.LoadMessageInfo() == nil {
  39. ms.StoreMessageInfo(mi)
  40. }
  41. return ms
  42. }
  43. return mi.MessageOf(x)
  44. }
  45. // Deprecated: Use All.ProtoReflect.Descriptor instead.
  46. func (*All) Descriptor() ([]byte, []int) {
  47. return file_imports_test_import_all_proto_rawDescGZIP(), []int{0}
  48. }
  49. func (x *All) GetAm1() *test_a_1.M1 {
  50. if x != nil {
  51. return x.Am1
  52. }
  53. return nil
  54. }
  55. func (x *All) GetAm2() *test_a_1.M2 {
  56. if x != nil {
  57. return x.Am2
  58. }
  59. return nil
  60. }
  61. func (x *All) GetBm1() *test_b_1.M1 {
  62. if x != nil {
  63. return x.Bm1
  64. }
  65. return nil
  66. }
  67. func (x *All) GetBm2() *test_b_1.M2 {
  68. if x != nil {
  69. return x.Bm2
  70. }
  71. return nil
  72. }
  73. func (x *All) GetFmt() *fmt.M {
  74. if x != nil {
  75. return x.Fmt
  76. }
  77. return nil
  78. }
  79. var File_imports_test_import_all_proto protoreflect.FileDescriptor
  80. var file_imports_test_import_all_proto_rawDesc = []byte{
  81. 0x0a, 0x1d, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69,
  82. 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  83. 0x04, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74,
  84. 0x65, 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x31, 0x2f, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  85. 0x1a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61,
  86. 0x5f, 0x31, 0x2f, 0x6d, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x69, 0x6d, 0x70,
  87. 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x32, 0x2f, 0x6d, 0x33,
  88. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f,
  89. 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x32, 0x2f, 0x6d, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  90. 0x6f, 0x1a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f,
  91. 0x62, 0x5f, 0x31, 0x2f, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x69, 0x6d,
  92. 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x5f, 0x31, 0x2f, 0x6d,
  93. 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73,
  94. 0x2f, 0x66, 0x6d, 0x74, 0x2f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x01, 0x0a,
  95. 0x03, 0x41, 0x6c, 0x6c, 0x12, 0x1c, 0x0a, 0x03, 0x61, 0x6d, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28,
  96. 0x0b, 0x32, 0x0a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x2e, 0x4d, 0x31, 0x52, 0x03, 0x61,
  97. 0x6d, 0x31, 0x12, 0x1c, 0x0a, 0x03, 0x61, 0x6d, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  98. 0x0a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x2e, 0x4d, 0x32, 0x52, 0x03, 0x61, 0x6d, 0x32,
  99. 0x12, 0x22, 0x0a, 0x03, 0x62, 0x6d, 0x31, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e,
  100. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x62, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x31, 0x2e, 0x4d, 0x31, 0x52,
  101. 0x03, 0x62, 0x6d, 0x31, 0x12, 0x22, 0x0a, 0x03, 0x62, 0x6d, 0x32, 0x18, 0x06, 0x20, 0x01, 0x28,
  102. 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x62, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x32,
  103. 0x2e, 0x4d, 0x32, 0x52, 0x03, 0x62, 0x6d, 0x32, 0x12, 0x18, 0x0a, 0x03, 0x66, 0x6d, 0x74, 0x18,
  104. 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x06, 0x2e, 0x66, 0x6d, 0x74, 0x2e, 0x4d, 0x52, 0x03, 0x66,
  105. 0x6d, 0x74, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
  106. 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  107. 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d,
  108. 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f,
  109. 0x72, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  110. }
  111. var (
  112. file_imports_test_import_all_proto_rawDescOnce sync.Once
  113. file_imports_test_import_all_proto_rawDescData = file_imports_test_import_all_proto_rawDesc
  114. )
  115. func file_imports_test_import_all_proto_rawDescGZIP() []byte {
  116. file_imports_test_import_all_proto_rawDescOnce.Do(func() {
  117. file_imports_test_import_all_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_import_all_proto_rawDescData)
  118. })
  119. return file_imports_test_import_all_proto_rawDescData
  120. }
  121. var file_imports_test_import_all_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  122. var file_imports_test_import_all_proto_goTypes = []interface{}{
  123. (*All)(nil), // 0: test.All
  124. (*test_a_1.M1)(nil), // 1: test.a.M1
  125. (*test_a_1.M2)(nil), // 2: test.a.M2
  126. (*test_b_1.M1)(nil), // 3: test.b.part1.M1
  127. (*test_b_1.M2)(nil), // 4: test.b.part2.M2
  128. (*fmt.M)(nil), // 5: fmt.M
  129. }
  130. var file_imports_test_import_all_proto_depIdxs = []int32{
  131. 1, // 0: test.All.am1:type_name -> test.a.M1
  132. 2, // 1: test.All.am2:type_name -> test.a.M2
  133. 3, // 2: test.All.bm1:type_name -> test.b.part1.M1
  134. 4, // 3: test.All.bm2:type_name -> test.b.part2.M2
  135. 5, // 4: test.All.fmt:type_name -> fmt.M
  136. 5, // [5:5] is the sub-list for method output_type
  137. 5, // [5:5] is the sub-list for method input_type
  138. 5, // [5:5] is the sub-list for extension type_name
  139. 5, // [5:5] is the sub-list for extension extendee
  140. 0, // [0:5] is the sub-list for field type_name
  141. }
  142. func init() { file_imports_test_import_all_proto_init() }
  143. func file_imports_test_import_all_proto_init() {
  144. if File_imports_test_import_all_proto != nil {
  145. return
  146. }
  147. if !protoimpl.UnsafeEnabled {
  148. file_imports_test_import_all_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  149. switch v := v.(*All); i {
  150. case 0:
  151. return &v.state
  152. case 1:
  153. return &v.sizeCache
  154. case 2:
  155. return &v.unknownFields
  156. default:
  157. return nil
  158. }
  159. }
  160. }
  161. type x struct{}
  162. out := protoimpl.TypeBuilder{
  163. File: protoimpl.DescBuilder{
  164. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  165. RawDescriptor: file_imports_test_import_all_proto_rawDesc,
  166. NumEnums: 0,
  167. NumMessages: 1,
  168. NumExtensions: 0,
  169. NumServices: 0,
  170. },
  171. GoTypes: file_imports_test_import_all_proto_goTypes,
  172. DependencyIndexes: file_imports_test_import_all_proto_depIdxs,
  173. MessageInfos: file_imports_test_import_all_proto_msgTypes,
  174. }.Build()
  175. File_imports_test_import_all_proto = out.File
  176. file_imports_test_import_all_proto_rawDesc = nil
  177. file_imports_test_import_all_proto_goTypes = nil
  178. file_imports_test_import_all_proto_depIdxs = nil
  179. }