test.pb.go 31 KB

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