test.pb.go 29 KB

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