test.pb.go 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: pb3/test.proto
  3. package pb3
  4. import (
  5. proto "github.com/golang/protobuf/proto"
  6. protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
  7. protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
  8. reflect "reflect"
  9. )
  10. type Enum int32
  11. const (
  12. Enum_ZERO Enum = 0
  13. Enum_ONE Enum = 1
  14. Enum_TWO Enum = 2
  15. Enum_TEN Enum = 10
  16. )
  17. func (e Enum) Type() protoreflect.EnumType {
  18. return xxx_File_pb3_test_proto_enumTypes[0]
  19. }
  20. func (e Enum) Number() protoreflect.EnumNumber {
  21. return protoreflect.EnumNumber(e)
  22. }
  23. // Deprecated: Use Enum.Type.Values instead.
  24. var Enum_name = map[int32]string{
  25. 0: "ZERO",
  26. 1: "ONE",
  27. 2: "TWO",
  28. 10: "TEN",
  29. }
  30. // Deprecated: Use Enum.Type.Values instead.
  31. var Enum_value = map[string]int32{
  32. "ZERO": 0,
  33. "ONE": 1,
  34. "TWO": 2,
  35. "TEN": 10,
  36. }
  37. func (x Enum) String() string {
  38. return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
  39. }
  40. // Deprecated: Use Enum.Type instead.
  41. func (Enum) EnumDescriptor() ([]byte, []int) {
  42. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0}
  43. }
  44. type Enums_NestedEnum int32
  45. const (
  46. Enums_CERO Enums_NestedEnum = 0
  47. Enums_UNO Enums_NestedEnum = 1
  48. Enums_DOS Enums_NestedEnum = 2
  49. Enums_DIEZ Enums_NestedEnum = 10
  50. )
  51. func (e Enums_NestedEnum) Type() protoreflect.EnumType {
  52. return xxx_File_pb3_test_proto_enumTypes[1]
  53. }
  54. func (e Enums_NestedEnum) Number() protoreflect.EnumNumber {
  55. return protoreflect.EnumNumber(e)
  56. }
  57. // Deprecated: Use Enums_NestedEnum.Type.Values instead.
  58. var Enums_NestedEnum_name = map[int32]string{
  59. 0: "CERO",
  60. 1: "UNO",
  61. 2: "DOS",
  62. 10: "DIEZ",
  63. }
  64. // Deprecated: Use Enums_NestedEnum.Type.Values instead.
  65. var Enums_NestedEnum_value = map[string]int32{
  66. "CERO": 0,
  67. "UNO": 1,
  68. "DOS": 2,
  69. "DIEZ": 10,
  70. }
  71. func (x Enums_NestedEnum) String() string {
  72. return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
  73. }
  74. // Deprecated: Use Enums_NestedEnum.Type instead.
  75. func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
  76. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1, 0}
  77. }
  78. // Scalars contains scalar field types.
  79. type Scalars struct {
  80. SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
  81. SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
  82. SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
  83. SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
  84. SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
  85. SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
  86. SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
  87. SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
  88. SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
  89. SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
  90. SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
  91. SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
  92. SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
  93. SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
  94. SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
  95. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  96. XXX_unrecognized []byte `json:"-"`
  97. XXX_sizecache int32 `json:"-"`
  98. }
  99. func (m *Scalars) ProtoReflect() protoreflect.Message {
  100. return xxx_File_pb3_test_proto_messageTypes[0].MessageOf(m)
  101. }
  102. func (m *Scalars) Reset() { *m = Scalars{} }
  103. func (m *Scalars) String() string { return proto.CompactTextString(m) }
  104. func (*Scalars) ProtoMessage() {}
  105. // Deprecated: Use Scalars.ProtoReflect.Type instead.
  106. func (*Scalars) Descriptor() ([]byte, []int) {
  107. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0}
  108. }
  109. func (m *Scalars) XXX_Unmarshal(b []byte) error {
  110. return xxx_messageInfo_Scalars.Unmarshal(m, b)
  111. }
  112. func (m *Scalars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  113. return xxx_messageInfo_Scalars.Marshal(b, m, deterministic)
  114. }
  115. func (m *Scalars) XXX_Merge(src proto.Message) {
  116. xxx_messageInfo_Scalars.Merge(m, src)
  117. }
  118. func (m *Scalars) XXX_Size() int {
  119. return xxx_messageInfo_Scalars.Size(m)
  120. }
  121. func (m *Scalars) XXX_DiscardUnknown() {
  122. xxx_messageInfo_Scalars.DiscardUnknown(m)
  123. }
  124. var xxx_messageInfo_Scalars proto.InternalMessageInfo
  125. func (m *Scalars) GetSBool() bool {
  126. if m != nil {
  127. return m.SBool
  128. }
  129. return false
  130. }
  131. func (m *Scalars) GetSInt32() int32 {
  132. if m != nil {
  133. return m.SInt32
  134. }
  135. return 0
  136. }
  137. func (m *Scalars) GetSInt64() int64 {
  138. if m != nil {
  139. return m.SInt64
  140. }
  141. return 0
  142. }
  143. func (m *Scalars) GetSUint32() uint32 {
  144. if m != nil {
  145. return m.SUint32
  146. }
  147. return 0
  148. }
  149. func (m *Scalars) GetSUint64() uint64 {
  150. if m != nil {
  151. return m.SUint64
  152. }
  153. return 0
  154. }
  155. func (m *Scalars) GetSSint32() int32 {
  156. if m != nil {
  157. return m.SSint32
  158. }
  159. return 0
  160. }
  161. func (m *Scalars) GetSSint64() int64 {
  162. if m != nil {
  163. return m.SSint64
  164. }
  165. return 0
  166. }
  167. func (m *Scalars) GetSFixed32() uint32 {
  168. if m != nil {
  169. return m.SFixed32
  170. }
  171. return 0
  172. }
  173. func (m *Scalars) GetSFixed64() uint64 {
  174. if m != nil {
  175. return m.SFixed64
  176. }
  177. return 0
  178. }
  179. func (m *Scalars) GetSSfixed32() int32 {
  180. if m != nil {
  181. return m.SSfixed32
  182. }
  183. return 0
  184. }
  185. func (m *Scalars) GetSSfixed64() int64 {
  186. if m != nil {
  187. return m.SSfixed64
  188. }
  189. return 0
  190. }
  191. func (m *Scalars) GetSFloat() float32 {
  192. if m != nil {
  193. return m.SFloat
  194. }
  195. return 0
  196. }
  197. func (m *Scalars) GetSDouble() float64 {
  198. if m != nil {
  199. return m.SDouble
  200. }
  201. return 0
  202. }
  203. func (m *Scalars) GetSBytes() []byte {
  204. if m != nil {
  205. return m.SBytes
  206. }
  207. return nil
  208. }
  209. func (m *Scalars) GetSString() string {
  210. if m != nil {
  211. return m.SString
  212. }
  213. return ""
  214. }
  215. // Message contains enum fields.
  216. type Enums struct {
  217. SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
  218. SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
  219. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  220. XXX_unrecognized []byte `json:"-"`
  221. XXX_sizecache int32 `json:"-"`
  222. }
  223. func (m *Enums) ProtoReflect() protoreflect.Message {
  224. return xxx_File_pb3_test_proto_messageTypes[1].MessageOf(m)
  225. }
  226. func (m *Enums) Reset() { *m = Enums{} }
  227. func (m *Enums) String() string { return proto.CompactTextString(m) }
  228. func (*Enums) ProtoMessage() {}
  229. // Deprecated: Use Enums.ProtoReflect.Type instead.
  230. func (*Enums) Descriptor() ([]byte, []int) {
  231. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1}
  232. }
  233. func (m *Enums) XXX_Unmarshal(b []byte) error {
  234. return xxx_messageInfo_Enums.Unmarshal(m, b)
  235. }
  236. func (m *Enums) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  237. return xxx_messageInfo_Enums.Marshal(b, m, deterministic)
  238. }
  239. func (m *Enums) XXX_Merge(src proto.Message) {
  240. xxx_messageInfo_Enums.Merge(m, src)
  241. }
  242. func (m *Enums) XXX_Size() int {
  243. return xxx_messageInfo_Enums.Size(m)
  244. }
  245. func (m *Enums) XXX_DiscardUnknown() {
  246. xxx_messageInfo_Enums.DiscardUnknown(m)
  247. }
  248. var xxx_messageInfo_Enums proto.InternalMessageInfo
  249. func (m *Enums) GetSEnum() Enum {
  250. if m != nil {
  251. return m.SEnum
  252. }
  253. return Enum_ZERO
  254. }
  255. func (m *Enums) GetSNestedEnum() Enums_NestedEnum {
  256. if m != nil {
  257. return m.SNestedEnum
  258. }
  259. return Enums_CERO
  260. }
  261. // Message contains nested message field.
  262. type Nests struct {
  263. SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
  264. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  265. XXX_unrecognized []byte `json:"-"`
  266. XXX_sizecache int32 `json:"-"`
  267. }
  268. func (m *Nests) ProtoReflect() protoreflect.Message {
  269. return xxx_File_pb3_test_proto_messageTypes[2].MessageOf(m)
  270. }
  271. func (m *Nests) Reset() { *m = Nests{} }
  272. func (m *Nests) String() string { return proto.CompactTextString(m) }
  273. func (*Nests) ProtoMessage() {}
  274. // Deprecated: Use Nests.ProtoReflect.Type instead.
  275. func (*Nests) Descriptor() ([]byte, []int) {
  276. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{2}
  277. }
  278. func (m *Nests) XXX_Unmarshal(b []byte) error {
  279. return xxx_messageInfo_Nests.Unmarshal(m, b)
  280. }
  281. func (m *Nests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  282. return xxx_messageInfo_Nests.Marshal(b, m, deterministic)
  283. }
  284. func (m *Nests) XXX_Merge(src proto.Message) {
  285. xxx_messageInfo_Nests.Merge(m, src)
  286. }
  287. func (m *Nests) XXX_Size() int {
  288. return xxx_messageInfo_Nests.Size(m)
  289. }
  290. func (m *Nests) XXX_DiscardUnknown() {
  291. xxx_messageInfo_Nests.DiscardUnknown(m)
  292. }
  293. var xxx_messageInfo_Nests proto.InternalMessageInfo
  294. func (m *Nests) GetSNested() *Nested {
  295. if m != nil {
  296. return m.SNested
  297. }
  298. return nil
  299. }
  300. // Message type used as submessage.
  301. type Nested struct {
  302. SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
  303. SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
  304. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  305. XXX_unrecognized []byte `json:"-"`
  306. XXX_sizecache int32 `json:"-"`
  307. }
  308. func (m *Nested) ProtoReflect() protoreflect.Message {
  309. return xxx_File_pb3_test_proto_messageTypes[3].MessageOf(m)
  310. }
  311. func (m *Nested) Reset() { *m = Nested{} }
  312. func (m *Nested) String() string { return proto.CompactTextString(m) }
  313. func (*Nested) ProtoMessage() {}
  314. // Deprecated: Use Nested.ProtoReflect.Type instead.
  315. func (*Nested) Descriptor() ([]byte, []int) {
  316. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{3}
  317. }
  318. func (m *Nested) XXX_Unmarshal(b []byte) error {
  319. return xxx_messageInfo_Nested.Unmarshal(m, b)
  320. }
  321. func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  322. return xxx_messageInfo_Nested.Marshal(b, m, deterministic)
  323. }
  324. func (m *Nested) XXX_Merge(src proto.Message) {
  325. xxx_messageInfo_Nested.Merge(m, src)
  326. }
  327. func (m *Nested) XXX_Size() int {
  328. return xxx_messageInfo_Nested.Size(m)
  329. }
  330. func (m *Nested) XXX_DiscardUnknown() {
  331. xxx_messageInfo_Nested.DiscardUnknown(m)
  332. }
  333. var xxx_messageInfo_Nested proto.InternalMessageInfo
  334. func (m *Nested) GetSString() string {
  335. if m != nil {
  336. return m.SString
  337. }
  338. return ""
  339. }
  340. func (m *Nested) GetSNested() *Nested {
  341. if m != nil {
  342. return m.SNested
  343. }
  344. return nil
  345. }
  346. // Message contains oneof field.
  347. type Oneofs struct {
  348. // Types that are valid to be assigned to Union:
  349. // *Oneofs_OneofEnum
  350. // *Oneofs_OneofString
  351. // *Oneofs_OneofNested
  352. Union isOneofs_Union `protobuf_oneof:"union"`
  353. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  354. XXX_unrecognized []byte `json:"-"`
  355. XXX_sizecache int32 `json:"-"`
  356. }
  357. func (m *Oneofs) ProtoReflect() protoreflect.Message {
  358. return xxx_File_pb3_test_proto_messageTypes[4].MessageOf(m)
  359. }
  360. func (m *Oneofs) Reset() { *m = Oneofs{} }
  361. func (m *Oneofs) String() string { return proto.CompactTextString(m) }
  362. func (*Oneofs) ProtoMessage() {}
  363. // Deprecated: Use Oneofs.ProtoReflect.Type instead.
  364. func (*Oneofs) Descriptor() ([]byte, []int) {
  365. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{4}
  366. }
  367. func (m *Oneofs) XXX_Unmarshal(b []byte) error {
  368. return xxx_messageInfo_Oneofs.Unmarshal(m, b)
  369. }
  370. func (m *Oneofs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  371. return xxx_messageInfo_Oneofs.Marshal(b, m, deterministic)
  372. }
  373. func (m *Oneofs) XXX_Merge(src proto.Message) {
  374. xxx_messageInfo_Oneofs.Merge(m, src)
  375. }
  376. func (m *Oneofs) XXX_Size() int {
  377. return xxx_messageInfo_Oneofs.Size(m)
  378. }
  379. func (m *Oneofs) XXX_DiscardUnknown() {
  380. xxx_messageInfo_Oneofs.DiscardUnknown(m)
  381. }
  382. var xxx_messageInfo_Oneofs proto.InternalMessageInfo
  383. type isOneofs_Union interface {
  384. isOneofs_Union()
  385. }
  386. type Oneofs_OneofEnum struct {
  387. OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
  388. }
  389. type Oneofs_OneofString struct {
  390. OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
  391. }
  392. type Oneofs_OneofNested struct {
  393. OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
  394. }
  395. func (*Oneofs_OneofEnum) isOneofs_Union() {}
  396. func (*Oneofs_OneofString) isOneofs_Union() {}
  397. func (*Oneofs_OneofNested) isOneofs_Union() {}
  398. func (m *Oneofs) GetUnion() isOneofs_Union {
  399. if m != nil {
  400. return m.Union
  401. }
  402. return nil
  403. }
  404. func (m *Oneofs) GetOneofEnum() Enum {
  405. if x, ok := m.GetUnion().(*Oneofs_OneofEnum); ok {
  406. return x.OneofEnum
  407. }
  408. return Enum_ZERO
  409. }
  410. func (m *Oneofs) GetOneofString() string {
  411. if x, ok := m.GetUnion().(*Oneofs_OneofString); ok {
  412. return x.OneofString
  413. }
  414. return ""
  415. }
  416. func (m *Oneofs) GetOneofNested() *Nested {
  417. if x, ok := m.GetUnion().(*Oneofs_OneofNested); ok {
  418. return x.OneofNested
  419. }
  420. return nil
  421. }
  422. // XXX_OneofWrappers is for the internal use of the proto package.
  423. func (*Oneofs) XXX_OneofWrappers() []interface{} {
  424. return []interface{}{
  425. (*Oneofs_OneofEnum)(nil),
  426. (*Oneofs_OneofString)(nil),
  427. (*Oneofs_OneofNested)(nil),
  428. }
  429. }
  430. // Message contains map fields.
  431. type Maps struct {
  432. Int32ToStr map[int32]string `protobuf:"bytes,1,rep,name=int32_to_str,json=int32ToStr,proto3" json:"int32_to_str,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  433. BoolToUint32 map[bool]uint32 `protobuf:"bytes,2,rep,name=bool_to_uint32,json=boolToUint32,proto3" json:"bool_to_uint32,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  434. Uint64ToEnum map[uint64]Enum `protobuf:"bytes,3,rep,name=uint64_to_enum,json=uint64ToEnum,proto3" json:"uint64_to_enum,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=pb3.Enum"`
  435. StrToNested map[string]*Nested `protobuf:"bytes,4,rep,name=str_to_nested,json=strToNested,proto3" json:"str_to_nested,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  436. StrToOneofs map[string]*Oneofs `protobuf:"bytes,5,rep,name=str_to_oneofs,json=strToOneofs,proto3" json:"str_to_oneofs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  437. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  438. XXX_unrecognized []byte `json:"-"`
  439. XXX_sizecache int32 `json:"-"`
  440. }
  441. func (m *Maps) ProtoReflect() protoreflect.Message {
  442. return xxx_File_pb3_test_proto_messageTypes[5].MessageOf(m)
  443. }
  444. func (m *Maps) Reset() { *m = Maps{} }
  445. func (m *Maps) String() string { return proto.CompactTextString(m) }
  446. func (*Maps) ProtoMessage() {}
  447. // Deprecated: Use Maps.ProtoReflect.Type instead.
  448. func (*Maps) Descriptor() ([]byte, []int) {
  449. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{5}
  450. }
  451. func (m *Maps) XXX_Unmarshal(b []byte) error {
  452. return xxx_messageInfo_Maps.Unmarshal(m, b)
  453. }
  454. func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  455. return xxx_messageInfo_Maps.Marshal(b, m, deterministic)
  456. }
  457. func (m *Maps) XXX_Merge(src proto.Message) {
  458. xxx_messageInfo_Maps.Merge(m, src)
  459. }
  460. func (m *Maps) XXX_Size() int {
  461. return xxx_messageInfo_Maps.Size(m)
  462. }
  463. func (m *Maps) XXX_DiscardUnknown() {
  464. xxx_messageInfo_Maps.DiscardUnknown(m)
  465. }
  466. var xxx_messageInfo_Maps proto.InternalMessageInfo
  467. func (m *Maps) GetInt32ToStr() map[int32]string {
  468. if m != nil {
  469. return m.Int32ToStr
  470. }
  471. return nil
  472. }
  473. func (m *Maps) GetBoolToUint32() map[bool]uint32 {
  474. if m != nil {
  475. return m.BoolToUint32
  476. }
  477. return nil
  478. }
  479. func (m *Maps) GetUint64ToEnum() map[uint64]Enum {
  480. if m != nil {
  481. return m.Uint64ToEnum
  482. }
  483. return nil
  484. }
  485. func (m *Maps) GetStrToNested() map[string]*Nested {
  486. if m != nil {
  487. return m.StrToNested
  488. }
  489. return nil
  490. }
  491. func (m *Maps) GetStrToOneofs() map[string]*Oneofs {
  492. if m != nil {
  493. return m.StrToOneofs
  494. }
  495. return nil
  496. }
  497. // Message for testing json_name option.
  498. type JSONNames struct {
  499. SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
  500. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  501. XXX_unrecognized []byte `json:"-"`
  502. XXX_sizecache int32 `json:"-"`
  503. }
  504. func (m *JSONNames) ProtoReflect() protoreflect.Message {
  505. return xxx_File_pb3_test_proto_messageTypes[6].MessageOf(m)
  506. }
  507. func (m *JSONNames) Reset() { *m = JSONNames{} }
  508. func (m *JSONNames) String() string { return proto.CompactTextString(m) }
  509. func (*JSONNames) ProtoMessage() {}
  510. // Deprecated: Use JSONNames.ProtoReflect.Type instead.
  511. func (*JSONNames) Descriptor() ([]byte, []int) {
  512. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{6}
  513. }
  514. func (m *JSONNames) XXX_Unmarshal(b []byte) error {
  515. return xxx_messageInfo_JSONNames.Unmarshal(m, b)
  516. }
  517. func (m *JSONNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  518. return xxx_messageInfo_JSONNames.Marshal(b, m, deterministic)
  519. }
  520. func (m *JSONNames) XXX_Merge(src proto.Message) {
  521. xxx_messageInfo_JSONNames.Merge(m, src)
  522. }
  523. func (m *JSONNames) XXX_Size() int {
  524. return xxx_messageInfo_JSONNames.Size(m)
  525. }
  526. func (m *JSONNames) XXX_DiscardUnknown() {
  527. xxx_messageInfo_JSONNames.DiscardUnknown(m)
  528. }
  529. var xxx_messageInfo_JSONNames proto.InternalMessageInfo
  530. func (m *JSONNames) GetSString() string {
  531. if m != nil {
  532. return m.SString
  533. }
  534. return ""
  535. }
  536. var xxx_File_pb3_test_proto_rawdesc = []byte{
  537. // 1710 bytes of the wire-encoded FileDescriptorProto
  538. 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  539. 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
  540. 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
  541. 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
  542. 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
  543. 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
  544. 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
  545. 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
  546. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
  547. 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
  548. 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
  549. 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
  550. 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
  551. 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
  552. 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
  553. 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
  554. 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
  555. 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
  556. 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
  557. 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
  558. 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
  559. 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
  560. 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
  561. 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
  562. 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
  563. 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
  564. 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
  565. 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
  566. 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
  567. 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
  568. 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
  569. 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
  570. 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
  571. 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
  572. 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
  573. 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
  574. 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
  575. 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
  576. 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
  577. 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
  578. 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
  579. 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  580. 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
  581. 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
  582. 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
  583. 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
  584. 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
  585. 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
  586. 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
  587. 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
  588. 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
  589. 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  590. 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
  591. 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
  592. 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
  593. 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
  594. 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
  595. 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
  596. 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
  597. 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
  598. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
  599. 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
  600. 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
  601. 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
  602. 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
  603. 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
  604. 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
  605. 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
  606. 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
  607. 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  608. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
  609. 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
  610. 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
  611. 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
  612. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
  613. 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
  614. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
  615. 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  616. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
  617. 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
  618. 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
  619. 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  620. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
  621. 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
  622. 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
  623. 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
  624. 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
  625. 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
  626. 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
  627. 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  628. 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
  629. 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  630. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
  631. 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
  632. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  633. 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  634. 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
  635. 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
  636. 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
  637. 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
  638. 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
  639. 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
  640. 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x37, 0x5a,
  641. 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61,
  642. 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x65,
  643. 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
  644. 0x6f, 0x73, 0x2f, 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  645. }
  646. var xxx_File_pb3_test_proto_rawdesc_gzipped = protoimpl.X.CompressGZIP(xxx_File_pb3_test_proto_rawdesc)
  647. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  648. var File_pb3_test_proto protoreflect.FileDescriptor
  649. var xxx_File_pb3_test_proto_enumTypes = make([]protoreflect.EnumType, 2)
  650. var xxx_File_pb3_test_proto_messageTypes = make([]protoimpl.MessageType, 12)
  651. var xxx_File_pb3_test_proto_goTypes = []interface{}{
  652. (Enum)(0), // 0: pb3.Enum
  653. (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
  654. (*Scalars)(nil), // 2: pb3.Scalars
  655. (*Enums)(nil), // 3: pb3.Enums
  656. (*Nests)(nil), // 4: pb3.Nests
  657. (*Nested)(nil), // 5: pb3.Nested
  658. (*Oneofs)(nil), // 6: pb3.Oneofs
  659. (*Maps)(nil), // 7: pb3.Maps
  660. (*JSONNames)(nil), // 8: pb3.JSONNames
  661. nil, // 9: pb3.Maps.Int32ToStrEntry
  662. nil, // 10: pb3.Maps.BoolToUint32Entry
  663. nil, // 11: pb3.Maps.Uint64ToEnumEntry
  664. nil, // 12: pb3.Maps.StrToNestedEntry
  665. nil, // 13: pb3.Maps.StrToOneofsEntry
  666. }
  667. var xxx_File_pb3_test_proto_depIdxs = []int32{
  668. 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
  669. 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
  670. 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
  671. 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
  672. 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
  673. 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
  674. 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
  675. 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
  676. 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
  677. 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
  678. 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
  679. 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
  680. 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
  681. 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
  682. }
  683. func init() { xxx_File_pb3_test_proto_init() }
  684. func xxx_File_pb3_test_proto_init() {
  685. if File_pb3_test_proto != nil {
  686. return
  687. }
  688. messageTypes := make([]protoreflect.MessageType, 12)
  689. File_pb3_test_proto = protoimpl.FileBuilder{
  690. RawDescriptor: xxx_File_pb3_test_proto_rawdesc,
  691. GoTypes: xxx_File_pb3_test_proto_goTypes,
  692. DependencyIndexes: xxx_File_pb3_test_proto_depIdxs,
  693. EnumOutputTypes: xxx_File_pb3_test_proto_enumTypes,
  694. MessageOutputTypes: messageTypes,
  695. }.Init()
  696. messageGoTypes := xxx_File_pb3_test_proto_goTypes[2:][:12]
  697. for i, mt := range messageTypes {
  698. xxx_File_pb3_test_proto_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i])
  699. xxx_File_pb3_test_proto_messageTypes[i].PBType = mt
  700. }
  701. proto.RegisterFile("pb3/test.proto", xxx_File_pb3_test_proto_rawdesc_gzipped)
  702. proto.RegisterEnum("pb3.Enum", Enum_name, Enum_value)
  703. proto.RegisterEnum("pb3.Enums_NestedEnum", Enums_NestedEnum_name, Enums_NestedEnum_value)
  704. proto.RegisterType((*Scalars)(nil), "pb3.Scalars")
  705. proto.RegisterType((*Enums)(nil), "pb3.Enums")
  706. proto.RegisterType((*Nests)(nil), "pb3.Nests")
  707. proto.RegisterType((*Nested)(nil), "pb3.Nested")
  708. proto.RegisterType((*Oneofs)(nil), "pb3.Oneofs")
  709. proto.RegisterType((*Maps)(nil), "pb3.Maps")
  710. proto.RegisterMapType((map[bool]uint32)(nil), "pb3.Maps.BoolToUint32Entry")
  711. proto.RegisterMapType((map[int32]string)(nil), "pb3.Maps.Int32ToStrEntry")
  712. proto.RegisterMapType((map[string]*Nested)(nil), "pb3.Maps.StrToNestedEntry")
  713. proto.RegisterMapType((map[string]*Oneofs)(nil), "pb3.Maps.StrToOneofsEntry")
  714. proto.RegisterMapType((map[uint64]Enum)(nil), "pb3.Maps.Uint64ToEnumEntry")
  715. proto.RegisterType((*JSONNames)(nil), "pb3.JSONNames")
  716. xxx_File_pb3_test_proto_goTypes = nil
  717. xxx_File_pb3_test_proto_depIdxs = nil
  718. }