m1.pb.go 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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_a_1/m1.proto
  6. package test_a_1
  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 E1 int32
  14. const (
  15. E1_E1_ZERO E1 = 0
  16. )
  17. // Enum value maps for E1.
  18. var (
  19. E1_name = map[int32]string{
  20. 0: "E1_ZERO",
  21. }
  22. E1_value = map[string]int32{
  23. "E1_ZERO": 0,
  24. }
  25. )
  26. func (x E1) Enum() *E1 {
  27. p := new(E1)
  28. *p = x
  29. return p
  30. }
  31. func (x E1) String() string {
  32. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  33. }
  34. func (E1) Descriptor() protoreflect.EnumDescriptor {
  35. return file_imports_test_a_1_m1_proto_enumTypes[0].Descriptor()
  36. }
  37. func (E1) Type() protoreflect.EnumType {
  38. return &file_imports_test_a_1_m1_proto_enumTypes[0]
  39. }
  40. func (x E1) Number() protoreflect.EnumNumber {
  41. return protoreflect.EnumNumber(x)
  42. }
  43. // Deprecated: Use E1.Descriptor instead.
  44. func (E1) EnumDescriptor() ([]byte, []int) {
  45. return file_imports_test_a_1_m1_proto_rawDescGZIP(), []int{0}
  46. }
  47. type M1 struct {
  48. state protoimpl.MessageState
  49. sizeCache protoimpl.SizeCache
  50. unknownFields protoimpl.UnknownFields
  51. }
  52. func (x *M1) Reset() {
  53. *x = M1{}
  54. }
  55. func (x *M1) String() string {
  56. return protoimpl.X.MessageStringOf(x)
  57. }
  58. func (*M1) ProtoMessage() {}
  59. func (x *M1) ProtoReflect() protoreflect.Message {
  60. mi := &file_imports_test_a_1_m1_proto_msgTypes[0]
  61. if protoimpl.UnsafeEnabled && x != nil {
  62. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  63. if ms.LoadMessageInfo() == nil {
  64. ms.StoreMessageInfo(mi)
  65. }
  66. return ms
  67. }
  68. return mi.MessageOf(x)
  69. }
  70. // Deprecated: Use M1.ProtoReflect.Descriptor instead.
  71. func (*M1) Descriptor() ([]byte, []int) {
  72. return file_imports_test_a_1_m1_proto_rawDescGZIP(), []int{0}
  73. }
  74. type M1_1 struct {
  75. state protoimpl.MessageState
  76. sizeCache protoimpl.SizeCache
  77. unknownFields protoimpl.UnknownFields
  78. M1 *M1 `protobuf:"bytes,1,opt,name=m1,proto3" json:"m1,omitempty"`
  79. }
  80. func (x *M1_1) Reset() {
  81. *x = M1_1{}
  82. }
  83. func (x *M1_1) String() string {
  84. return protoimpl.X.MessageStringOf(x)
  85. }
  86. func (*M1_1) ProtoMessage() {}
  87. func (x *M1_1) ProtoReflect() protoreflect.Message {
  88. mi := &file_imports_test_a_1_m1_proto_msgTypes[1]
  89. if protoimpl.UnsafeEnabled && x != nil {
  90. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  91. if ms.LoadMessageInfo() == nil {
  92. ms.StoreMessageInfo(mi)
  93. }
  94. return ms
  95. }
  96. return mi.MessageOf(x)
  97. }
  98. // Deprecated: Use M1_1.ProtoReflect.Descriptor instead.
  99. func (*M1_1) Descriptor() ([]byte, []int) {
  100. return file_imports_test_a_1_m1_proto_rawDescGZIP(), []int{1}
  101. }
  102. func (x *M1_1) GetM1() *M1 {
  103. if x != nil {
  104. return x.M1
  105. }
  106. return nil
  107. }
  108. var File_imports_test_a_1_m1_proto protoreflect.FileDescriptor
  109. var file_imports_test_a_1_m1_proto_rawDesc = []byte{
  110. 0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61,
  111. 0x5f, 0x31, 0x2f, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73,
  112. 0x74, 0x2e, 0x61, 0x22, 0x04, 0x0a, 0x02, 0x4d, 0x31, 0x22, 0x22, 0x0a, 0x04, 0x4d, 0x31, 0x5f,
  113. 0x31, 0x12, 0x1a, 0x0a, 0x02, 0x6d, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e,
  114. 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x2e, 0x4d, 0x31, 0x52, 0x02, 0x6d, 0x31, 0x2a, 0x11, 0x0a,
  115. 0x02, 0x45, 0x31, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x31, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00,
  116. 0x42, 0x48, 0x5a, 0x46, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
  117. 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63,
  118. 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f,
  119. 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
  120. 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  121. 0x6f, 0x33,
  122. }
  123. var (
  124. file_imports_test_a_1_m1_proto_rawDescOnce sync.Once
  125. file_imports_test_a_1_m1_proto_rawDescData = file_imports_test_a_1_m1_proto_rawDesc
  126. )
  127. func file_imports_test_a_1_m1_proto_rawDescGZIP() []byte {
  128. file_imports_test_a_1_m1_proto_rawDescOnce.Do(func() {
  129. file_imports_test_a_1_m1_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_a_1_m1_proto_rawDescData)
  130. })
  131. return file_imports_test_a_1_m1_proto_rawDescData
  132. }
  133. var file_imports_test_a_1_m1_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  134. var file_imports_test_a_1_m1_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  135. var file_imports_test_a_1_m1_proto_goTypes = []interface{}{
  136. (E1)(0), // 0: test.a.E1
  137. (*M1)(nil), // 1: test.a.M1
  138. (*M1_1)(nil), // 2: test.a.M1_1
  139. }
  140. var file_imports_test_a_1_m1_proto_depIdxs = []int32{
  141. 1, // 0: test.a.M1_1.m1:type_name -> test.a.M1
  142. 1, // [1:1] is the sub-list for method output_type
  143. 1, // [1:1] is the sub-list for method input_type
  144. 1, // [1:1] is the sub-list for extension type_name
  145. 1, // [1:1] is the sub-list for extension extendee
  146. 0, // [0:1] is the sub-list for field type_name
  147. }
  148. func init() { file_imports_test_a_1_m1_proto_init() }
  149. func file_imports_test_a_1_m1_proto_init() {
  150. if File_imports_test_a_1_m1_proto != nil {
  151. return
  152. }
  153. if !protoimpl.UnsafeEnabled {
  154. file_imports_test_a_1_m1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  155. switch v := v.(*M1); i {
  156. case 0:
  157. return &v.state
  158. case 1:
  159. return &v.sizeCache
  160. case 2:
  161. return &v.unknownFields
  162. default:
  163. return nil
  164. }
  165. }
  166. file_imports_test_a_1_m1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  167. switch v := v.(*M1_1); i {
  168. case 0:
  169. return &v.state
  170. case 1:
  171. return &v.sizeCache
  172. case 2:
  173. return &v.unknownFields
  174. default:
  175. return nil
  176. }
  177. }
  178. }
  179. type x struct{}
  180. out := protoimpl.TypeBuilder{
  181. File: protoimpl.DescBuilder{
  182. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  183. RawDescriptor: file_imports_test_a_1_m1_proto_rawDesc,
  184. NumEnums: 1,
  185. NumMessages: 2,
  186. NumExtensions: 0,
  187. NumServices: 0,
  188. },
  189. GoTypes: file_imports_test_a_1_m1_proto_goTypes,
  190. DependencyIndexes: file_imports_test_a_1_m1_proto_depIdxs,
  191. EnumInfos: file_imports_test_a_1_m1_proto_enumTypes,
  192. MessageInfos: file_imports_test_a_1_m1_proto_msgTypes,
  193. }.Build()
  194. File_imports_test_a_1_m1_proto = out.File
  195. file_imports_test_a_1_m1_proto_rawDesc = nil
  196. file_imports_test_a_1_m1_proto_goTypes = nil
  197. file_imports_test_a_1_m1_proto_depIdxs = nil
  198. }