test.pb.go 31 KB

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