test.pb.go 30 KB

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