test.pb.go 30 KB

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