test.pb.go 30 KB

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