test.pb.go 30 KB

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