test.pb.go 31 KB

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