msetextpb.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. // Copyright 2019 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: messageset/msetextpb/msetextpb.proto
  6. package msetextpb
  7. import (
  8. messagesetpb "google.golang.org/protobuf/internal/testprotos/messageset/messagesetpb"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. type Ext1 struct {
  15. state protoimpl.MessageState
  16. sizeCache protoimpl.SizeCache
  17. unknownFields protoimpl.UnknownFields
  18. Ext1Field1 *int32 `protobuf:"varint,1,opt,name=ext1_field1,json=ext1Field1" json:"ext1_field1,omitempty"`
  19. Ext1Field2 *int32 `protobuf:"varint,2,opt,name=ext1_field2,json=ext1Field2" json:"ext1_field2,omitempty"`
  20. }
  21. func (x *Ext1) Reset() {
  22. *x = Ext1{}
  23. }
  24. func (x *Ext1) String() string {
  25. return protoimpl.X.MessageStringOf(x)
  26. }
  27. func (*Ext1) ProtoMessage() {}
  28. func (x *Ext1) ProtoReflect() protoreflect.Message {
  29. mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[0]
  30. if protoimpl.UnsafeEnabled && x != nil {
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. if ms.LoadMessageInfo() == nil {
  33. ms.StoreMessageInfo(mi)
  34. }
  35. return ms
  36. }
  37. return mi.MessageOf(x)
  38. }
  39. // Deprecated: Use Ext1.ProtoReflect.Descriptor instead.
  40. func (*Ext1) Descriptor() ([]byte, []int) {
  41. return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{0}
  42. }
  43. func (x *Ext1) GetExt1Field1() int32 {
  44. if x != nil && x.Ext1Field1 != nil {
  45. return *x.Ext1Field1
  46. }
  47. return 0
  48. }
  49. func (x *Ext1) GetExt1Field2() int32 {
  50. if x != nil && x.Ext1Field2 != nil {
  51. return *x.Ext1Field2
  52. }
  53. return 0
  54. }
  55. type Ext2 struct {
  56. state protoimpl.MessageState
  57. sizeCache protoimpl.SizeCache
  58. unknownFields protoimpl.UnknownFields
  59. Ext2Field1 *int32 `protobuf:"varint,1,opt,name=ext2_field1,json=ext2Field1" json:"ext2_field1,omitempty"`
  60. }
  61. func (x *Ext2) Reset() {
  62. *x = Ext2{}
  63. }
  64. func (x *Ext2) String() string {
  65. return protoimpl.X.MessageStringOf(x)
  66. }
  67. func (*Ext2) ProtoMessage() {}
  68. func (x *Ext2) ProtoReflect() protoreflect.Message {
  69. mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[1]
  70. if protoimpl.UnsafeEnabled && x != nil {
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. if ms.LoadMessageInfo() == nil {
  73. ms.StoreMessageInfo(mi)
  74. }
  75. return ms
  76. }
  77. return mi.MessageOf(x)
  78. }
  79. // Deprecated: Use Ext2.ProtoReflect.Descriptor instead.
  80. func (*Ext2) Descriptor() ([]byte, []int) {
  81. return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{1}
  82. }
  83. func (x *Ext2) GetExt2Field1() int32 {
  84. if x != nil && x.Ext2Field1 != nil {
  85. return *x.Ext2Field1
  86. }
  87. return 0
  88. }
  89. var file_messageset_msetextpb_msetextpb_proto_extTypes = []protoimpl.ExtensionInfo{
  90. {
  91. ExtendedType: (*messagesetpb.MessageSet)(nil),
  92. ExtensionType: (*Ext1)(nil),
  93. Field: 1000,
  94. Name: "goproto.proto.messageset.Ext1",
  95. Tag: "bytes,1000,opt,name=message_set_extension",
  96. Filename: "messageset/msetextpb/msetextpb.proto",
  97. },
  98. {
  99. ExtendedType: (*messagesetpb.MessageSet)(nil),
  100. ExtensionType: (*Ext2)(nil),
  101. Field: 1001,
  102. Name: "goproto.proto.messageset.Ext2",
  103. Tag: "bytes,1001,opt,name=message_set_extension",
  104. Filename: "messageset/msetextpb/msetextpb.proto",
  105. },
  106. }
  107. // Extension fields to messagesetpb.MessageSet.
  108. var (
  109. // optional goproto.proto.messageset.Ext1 message_set_extension = 1000;
  110. E_Ext1_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extTypes[0]
  111. // optional goproto.proto.messageset.Ext2 message_set_extension = 1001;
  112. E_Ext2_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extTypes[1]
  113. )
  114. var File_messageset_msetextpb_msetextpb_proto protoreflect.FileDescriptor
  115. var file_messageset_msetextpb_msetextpb_proto_rawDesc = []byte{
  116. 0x0a, 0x24, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x73, 0x65,
  117. 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62,
  118. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  119. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74,
  120. 0x1a, 0x29, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x65, 0x73,
  121. 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  122. 0x65, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x01, 0x0a, 0x04,
  123. 0x45, 0x78, 0x74, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x31, 0x5f, 0x66, 0x69, 0x65,
  124. 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x31, 0x46,
  125. 0x69, 0x65, 0x6c, 0x64, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x31, 0x5f, 0x66, 0x69,
  126. 0x65, 0x6c, 0x64, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x31,
  127. 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x32, 0x79, 0x0a, 0x15, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  128. 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
  129. 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
  130. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
  131. 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67,
  132. 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73,
  133. 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x31, 0x52, 0x13, 0x6d, 0x65,
  134. 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
  135. 0x6e, 0x22, 0xa2, 0x01, 0x0a, 0x04, 0x45, 0x78, 0x74, 0x32, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78,
  136. 0x74, 0x32, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
  137. 0x0a, 0x65, 0x78, 0x74, 0x32, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x32, 0x79, 0x0a, 0x15, 0x6d,
  138. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
  139. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
  140. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e,
  141. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28,
  142. 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  143. 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74,
  144. 0x32, 0x52, 0x13, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74,
  145. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x45, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  146. 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74,
  147. 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65,
  148. 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  149. 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62,
  150. }
  151. var (
  152. file_messageset_msetextpb_msetextpb_proto_rawDescOnce sync.Once
  153. file_messageset_msetextpb_msetextpb_proto_rawDescData = file_messageset_msetextpb_msetextpb_proto_rawDesc
  154. )
  155. func file_messageset_msetextpb_msetextpb_proto_rawDescGZIP() []byte {
  156. file_messageset_msetextpb_msetextpb_proto_rawDescOnce.Do(func() {
  157. file_messageset_msetextpb_msetextpb_proto_rawDescData = protoimpl.X.CompressGZIP(file_messageset_msetextpb_msetextpb_proto_rawDescData)
  158. })
  159. return file_messageset_msetextpb_msetextpb_proto_rawDescData
  160. }
  161. var file_messageset_msetextpb_msetextpb_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  162. var file_messageset_msetextpb_msetextpb_proto_goTypes = []interface{}{
  163. (*Ext1)(nil), // 0: goproto.proto.messageset.Ext1
  164. (*Ext2)(nil), // 1: goproto.proto.messageset.Ext2
  165. (*messagesetpb.MessageSet)(nil), // 2: goproto.proto.messageset.MessageSet
  166. }
  167. var file_messageset_msetextpb_msetextpb_proto_depIdxs = []int32{
  168. 2, // 0: goproto.proto.messageset.Ext1.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
  169. 2, // 1: goproto.proto.messageset.Ext2.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
  170. 0, // 2: goproto.proto.messageset.Ext1.message_set_extension:type_name -> goproto.proto.messageset.Ext1
  171. 1, // 3: goproto.proto.messageset.Ext2.message_set_extension:type_name -> goproto.proto.messageset.Ext2
  172. 4, // [4:4] is the sub-list for method output_type
  173. 4, // [4:4] is the sub-list for method input_type
  174. 2, // [2:4] is the sub-list for extension type_name
  175. 0, // [0:2] is the sub-list for extension extendee
  176. 0, // [0:0] is the sub-list for field type_name
  177. }
  178. func init() { file_messageset_msetextpb_msetextpb_proto_init() }
  179. func file_messageset_msetextpb_msetextpb_proto_init() {
  180. if File_messageset_msetextpb_msetextpb_proto != nil {
  181. return
  182. }
  183. if !protoimpl.UnsafeEnabled {
  184. file_messageset_msetextpb_msetextpb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  185. switch v := v.(*Ext1); i {
  186. case 0:
  187. return &v.state
  188. case 1:
  189. return &v.sizeCache
  190. case 2:
  191. return &v.unknownFields
  192. default:
  193. return nil
  194. }
  195. }
  196. file_messageset_msetextpb_msetextpb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  197. switch v := v.(*Ext2); i {
  198. case 0:
  199. return &v.state
  200. case 1:
  201. return &v.sizeCache
  202. case 2:
  203. return &v.unknownFields
  204. default:
  205. return nil
  206. }
  207. }
  208. }
  209. type x struct{}
  210. out := protoimpl.TypeBuilder{
  211. File: protoimpl.DescBuilder{
  212. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  213. RawDescriptor: file_messageset_msetextpb_msetextpb_proto_rawDesc,
  214. NumEnums: 0,
  215. NumMessages: 2,
  216. NumExtensions: 2,
  217. NumServices: 0,
  218. },
  219. GoTypes: file_messageset_msetextpb_msetextpb_proto_goTypes,
  220. DependencyIndexes: file_messageset_msetextpb_msetextpb_proto_depIdxs,
  221. MessageInfos: file_messageset_msetextpb_msetextpb_proto_msgTypes,
  222. ExtensionInfos: file_messageset_msetextpb_msetextpb_proto_extTypes,
  223. }.Build()
  224. File_messageset_msetextpb_msetextpb_proto = out.File
  225. file_messageset_msetextpb_msetextpb_proto_rawDesc = nil
  226. file_messageset_msetextpb_msetextpb_proto_goTypes = nil
  227. file_messageset_msetextpb_msetextpb_proto_depIdxs = nil
  228. }