test.pb.go 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: pb3/test.proto
  3. package pb3
  4. import (
  5. protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
  6. protoregistry "github.com/golang/protobuf/v2/reflect/protoregistry"
  7. protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
  8. )
  9. type Enum int32
  10. const (
  11. Enum_ZERO Enum = 0
  12. Enum_ONE Enum = 1
  13. Enum_TWO Enum = 2
  14. Enum_TEN Enum = 10
  15. )
  16. func (e Enum) Type() protoreflect.EnumType {
  17. return xxx_File_pb3_test_proto_enumTypes[0]
  18. }
  19. func (e Enum) Number() protoreflect.EnumNumber {
  20. return protoreflect.EnumNumber(e)
  21. }
  22. // Deprecated: Use Enum.Type.Values instead.
  23. var Enum_name = map[int32]string{
  24. 0: "ZERO",
  25. 1: "ONE",
  26. 2: "TWO",
  27. 10: "TEN",
  28. }
  29. // Deprecated: Use Enum.Type.Values instead.
  30. var Enum_value = map[string]int32{
  31. "ZERO": 0,
  32. "ONE": 1,
  33. "TWO": 2,
  34. "TEN": 10,
  35. }
  36. func (x Enum) String() string {
  37. return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
  38. }
  39. // Deprecated: Use Enum.Type instead.
  40. func (Enum) EnumDescriptor() ([]byte, []int) {
  41. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0}
  42. }
  43. type Enums_NestedEnum int32
  44. const (
  45. Enums_CERO Enums_NestedEnum = 0
  46. Enums_UNO Enums_NestedEnum = 1
  47. Enums_DOS Enums_NestedEnum = 2
  48. Enums_DIEZ Enums_NestedEnum = 10
  49. )
  50. func (e Enums_NestedEnum) Type() protoreflect.EnumType {
  51. return xxx_File_pb3_test_proto_enumTypes[1]
  52. }
  53. func (e Enums_NestedEnum) Number() protoreflect.EnumNumber {
  54. return protoreflect.EnumNumber(e)
  55. }
  56. // Deprecated: Use Enums_NestedEnum.Type.Values instead.
  57. var Enums_NestedEnum_name = map[int32]string{
  58. 0: "CERO",
  59. 1: "UNO",
  60. 2: "DOS",
  61. 10: "DIEZ",
  62. }
  63. // Deprecated: Use Enums_NestedEnum.Type.Values instead.
  64. var Enums_NestedEnum_value = map[string]int32{
  65. "CERO": 0,
  66. "UNO": 1,
  67. "DOS": 2,
  68. "DIEZ": 10,
  69. }
  70. func (x Enums_NestedEnum) String() string {
  71. return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
  72. }
  73. // Deprecated: Use Enums_NestedEnum.Type instead.
  74. func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
  75. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1, 0}
  76. }
  77. // Scalars contains scalar field types.
  78. type Scalars struct {
  79. SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
  80. SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
  81. SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
  82. SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
  83. SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
  84. SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
  85. SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
  86. SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
  87. SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
  88. SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
  89. SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
  90. SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
  91. SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
  92. SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
  93. SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
  94. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  95. XXX_unrecognized []byte `json:"-"`
  96. XXX_sizecache int32 `json:"-"`
  97. }
  98. func (m *Scalars) ProtoReflect() protoreflect.Message {
  99. return xxx_File_pb3_test_proto_messageTypes[0].MessageOf(m)
  100. }
  101. func (m *Scalars) Reset() { *m = Scalars{} }
  102. func (m *Scalars) String() string { return protoimpl.X.MessageStringOf(m) }
  103. func (*Scalars) ProtoMessage() {}
  104. // Deprecated: Use Scalars.ProtoReflect.Type instead.
  105. func (*Scalars) Descriptor() ([]byte, []int) {
  106. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0}
  107. }
  108. func (m *Scalars) GetSBool() bool {
  109. if m != nil {
  110. return m.SBool
  111. }
  112. return false
  113. }
  114. func (m *Scalars) GetSInt32() int32 {
  115. if m != nil {
  116. return m.SInt32
  117. }
  118. return 0
  119. }
  120. func (m *Scalars) GetSInt64() int64 {
  121. if m != nil {
  122. return m.SInt64
  123. }
  124. return 0
  125. }
  126. func (m *Scalars) GetSUint32() uint32 {
  127. if m != nil {
  128. return m.SUint32
  129. }
  130. return 0
  131. }
  132. func (m *Scalars) GetSUint64() uint64 {
  133. if m != nil {
  134. return m.SUint64
  135. }
  136. return 0
  137. }
  138. func (m *Scalars) GetSSint32() int32 {
  139. if m != nil {
  140. return m.SSint32
  141. }
  142. return 0
  143. }
  144. func (m *Scalars) GetSSint64() int64 {
  145. if m != nil {
  146. return m.SSint64
  147. }
  148. return 0
  149. }
  150. func (m *Scalars) GetSFixed32() uint32 {
  151. if m != nil {
  152. return m.SFixed32
  153. }
  154. return 0
  155. }
  156. func (m *Scalars) GetSFixed64() uint64 {
  157. if m != nil {
  158. return m.SFixed64
  159. }
  160. return 0
  161. }
  162. func (m *Scalars) GetSSfixed32() int32 {
  163. if m != nil {
  164. return m.SSfixed32
  165. }
  166. return 0
  167. }
  168. func (m *Scalars) GetSSfixed64() int64 {
  169. if m != nil {
  170. return m.SSfixed64
  171. }
  172. return 0
  173. }
  174. func (m *Scalars) GetSFloat() float32 {
  175. if m != nil {
  176. return m.SFloat
  177. }
  178. return 0
  179. }
  180. func (m *Scalars) GetSDouble() float64 {
  181. if m != nil {
  182. return m.SDouble
  183. }
  184. return 0
  185. }
  186. func (m *Scalars) GetSBytes() []byte {
  187. if m != nil {
  188. return m.SBytes
  189. }
  190. return nil
  191. }
  192. func (m *Scalars) GetSString() string {
  193. if m != nil {
  194. return m.SString
  195. }
  196. return ""
  197. }
  198. // Message contains enum fields.
  199. type Enums struct {
  200. SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
  201. SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
  202. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  203. XXX_unrecognized []byte `json:"-"`
  204. XXX_sizecache int32 `json:"-"`
  205. }
  206. func (m *Enums) ProtoReflect() protoreflect.Message {
  207. return xxx_File_pb3_test_proto_messageTypes[1].MessageOf(m)
  208. }
  209. func (m *Enums) Reset() { *m = Enums{} }
  210. func (m *Enums) String() string { return protoimpl.X.MessageStringOf(m) }
  211. func (*Enums) ProtoMessage() {}
  212. // Deprecated: Use Enums.ProtoReflect.Type instead.
  213. func (*Enums) Descriptor() ([]byte, []int) {
  214. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1}
  215. }
  216. func (m *Enums) GetSEnum() Enum {
  217. if m != nil {
  218. return m.SEnum
  219. }
  220. return Enum_ZERO
  221. }
  222. func (m *Enums) GetSNestedEnum() Enums_NestedEnum {
  223. if m != nil {
  224. return m.SNestedEnum
  225. }
  226. return Enums_CERO
  227. }
  228. // Message contains nested message field.
  229. type Nests struct {
  230. SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
  231. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  232. XXX_unrecognized []byte `json:"-"`
  233. XXX_sizecache int32 `json:"-"`
  234. }
  235. func (m *Nests) ProtoReflect() protoreflect.Message {
  236. return xxx_File_pb3_test_proto_messageTypes[2].MessageOf(m)
  237. }
  238. func (m *Nests) Reset() { *m = Nests{} }
  239. func (m *Nests) String() string { return protoimpl.X.MessageStringOf(m) }
  240. func (*Nests) ProtoMessage() {}
  241. // Deprecated: Use Nests.ProtoReflect.Type instead.
  242. func (*Nests) Descriptor() ([]byte, []int) {
  243. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{2}
  244. }
  245. func (m *Nests) GetSNested() *Nested {
  246. if m != nil {
  247. return m.SNested
  248. }
  249. return nil
  250. }
  251. // Message type used as submessage.
  252. type Nested struct {
  253. SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
  254. SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
  255. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  256. XXX_unrecognized []byte `json:"-"`
  257. XXX_sizecache int32 `json:"-"`
  258. }
  259. func (m *Nested) ProtoReflect() protoreflect.Message {
  260. return xxx_File_pb3_test_proto_messageTypes[3].MessageOf(m)
  261. }
  262. func (m *Nested) Reset() { *m = Nested{} }
  263. func (m *Nested) String() string { return protoimpl.X.MessageStringOf(m) }
  264. func (*Nested) ProtoMessage() {}
  265. // Deprecated: Use Nested.ProtoReflect.Type instead.
  266. func (*Nested) Descriptor() ([]byte, []int) {
  267. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{3}
  268. }
  269. func (m *Nested) GetSString() string {
  270. if m != nil {
  271. return m.SString
  272. }
  273. return ""
  274. }
  275. func (m *Nested) GetSNested() *Nested {
  276. if m != nil {
  277. return m.SNested
  278. }
  279. return nil
  280. }
  281. // Message contains oneof field.
  282. type Oneofs struct {
  283. // Types that are valid to be assigned to Union:
  284. // *Oneofs_OneofEnum
  285. // *Oneofs_OneofString
  286. // *Oneofs_OneofNested
  287. Union isOneofs_Union `protobuf_oneof:"union"`
  288. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  289. XXX_unrecognized []byte `json:"-"`
  290. XXX_sizecache int32 `json:"-"`
  291. }
  292. func (m *Oneofs) ProtoReflect() protoreflect.Message {
  293. return xxx_File_pb3_test_proto_messageTypes[4].MessageOf(m)
  294. }
  295. func (m *Oneofs) Reset() { *m = Oneofs{} }
  296. func (m *Oneofs) String() string { return protoimpl.X.MessageStringOf(m) }
  297. func (*Oneofs) ProtoMessage() {}
  298. // Deprecated: Use Oneofs.ProtoReflect.Type instead.
  299. func (*Oneofs) Descriptor() ([]byte, []int) {
  300. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{4}
  301. }
  302. type isOneofs_Union interface {
  303. isOneofs_Union()
  304. }
  305. type Oneofs_OneofEnum struct {
  306. OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
  307. }
  308. type Oneofs_OneofString struct {
  309. OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
  310. }
  311. type Oneofs_OneofNested struct {
  312. OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
  313. }
  314. func (*Oneofs_OneofEnum) isOneofs_Union() {}
  315. func (*Oneofs_OneofString) isOneofs_Union() {}
  316. func (*Oneofs_OneofNested) isOneofs_Union() {}
  317. func (m *Oneofs) GetUnion() isOneofs_Union {
  318. if m != nil {
  319. return m.Union
  320. }
  321. return nil
  322. }
  323. func (m *Oneofs) GetOneofEnum() Enum {
  324. if x, ok := m.GetUnion().(*Oneofs_OneofEnum); ok {
  325. return x.OneofEnum
  326. }
  327. return Enum_ZERO
  328. }
  329. func (m *Oneofs) GetOneofString() string {
  330. if x, ok := m.GetUnion().(*Oneofs_OneofString); ok {
  331. return x.OneofString
  332. }
  333. return ""
  334. }
  335. func (m *Oneofs) GetOneofNested() *Nested {
  336. if x, ok := m.GetUnion().(*Oneofs_OneofNested); ok {
  337. return x.OneofNested
  338. }
  339. return nil
  340. }
  341. // XXX_OneofWrappers is for the internal use of the proto package.
  342. func (*Oneofs) XXX_OneofWrappers() []interface{} {
  343. return []interface{}{
  344. (*Oneofs_OneofEnum)(nil),
  345. (*Oneofs_OneofString)(nil),
  346. (*Oneofs_OneofNested)(nil),
  347. }
  348. }
  349. // Message contains map fields.
  350. type Maps struct {
  351. 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"`
  352. 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"`
  353. 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"`
  354. 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"`
  355. 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"`
  356. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  357. XXX_unrecognized []byte `json:"-"`
  358. XXX_sizecache int32 `json:"-"`
  359. }
  360. func (m *Maps) ProtoReflect() protoreflect.Message {
  361. return xxx_File_pb3_test_proto_messageTypes[5].MessageOf(m)
  362. }
  363. func (m *Maps) Reset() { *m = Maps{} }
  364. func (m *Maps) String() string { return protoimpl.X.MessageStringOf(m) }
  365. func (*Maps) ProtoMessage() {}
  366. // Deprecated: Use Maps.ProtoReflect.Type instead.
  367. func (*Maps) Descriptor() ([]byte, []int) {
  368. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{5}
  369. }
  370. func (m *Maps) GetInt32ToStr() map[int32]string {
  371. if m != nil {
  372. return m.Int32ToStr
  373. }
  374. return nil
  375. }
  376. func (m *Maps) GetBoolToUint32() map[bool]uint32 {
  377. if m != nil {
  378. return m.BoolToUint32
  379. }
  380. return nil
  381. }
  382. func (m *Maps) GetUint64ToEnum() map[uint64]Enum {
  383. if m != nil {
  384. return m.Uint64ToEnum
  385. }
  386. return nil
  387. }
  388. func (m *Maps) GetStrToNested() map[string]*Nested {
  389. if m != nil {
  390. return m.StrToNested
  391. }
  392. return nil
  393. }
  394. func (m *Maps) GetStrToOneofs() map[string]*Oneofs {
  395. if m != nil {
  396. return m.StrToOneofs
  397. }
  398. return nil
  399. }
  400. // Message for testing json_name option.
  401. type JSONNames struct {
  402. SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
  403. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  404. XXX_unrecognized []byte `json:"-"`
  405. XXX_sizecache int32 `json:"-"`
  406. }
  407. func (m *JSONNames) ProtoReflect() protoreflect.Message {
  408. return xxx_File_pb3_test_proto_messageTypes[6].MessageOf(m)
  409. }
  410. func (m *JSONNames) Reset() { *m = JSONNames{} }
  411. func (m *JSONNames) String() string { return protoimpl.X.MessageStringOf(m) }
  412. func (*JSONNames) ProtoMessage() {}
  413. // Deprecated: Use JSONNames.ProtoReflect.Type instead.
  414. func (*JSONNames) Descriptor() ([]byte, []int) {
  415. return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{6}
  416. }
  417. func (m *JSONNames) GetSString() string {
  418. if m != nil {
  419. return m.SString
  420. }
  421. return ""
  422. }
  423. var xxx_File_pb3_test_proto_rawdesc = []byte{
  424. // 1710 bytes of the wire-encoded FileDescriptorProto
  425. 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  426. 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
  427. 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
  428. 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
  429. 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
  430. 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
  431. 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
  432. 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
  433. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
  434. 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
  435. 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
  436. 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
  437. 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
  438. 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
  439. 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
  440. 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
  441. 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
  442. 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
  443. 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
  444. 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
  445. 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
  446. 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
  447. 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
  448. 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
  449. 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
  450. 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
  451. 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
  452. 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
  453. 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
  454. 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
  455. 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
  456. 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
  457. 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
  458. 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
  459. 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
  460. 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
  461. 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
  462. 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
  463. 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
  464. 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
  465. 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
  466. 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  467. 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
  468. 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
  469. 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
  470. 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
  471. 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
  472. 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
  473. 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
  474. 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
  475. 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
  476. 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  477. 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
  478. 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
  479. 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
  480. 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
  481. 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
  482. 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
  483. 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
  484. 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
  485. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
  486. 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
  487. 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
  488. 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
  489. 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
  490. 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
  491. 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
  492. 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
  493. 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
  494. 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  495. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
  496. 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
  497. 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
  498. 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
  499. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
  500. 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
  501. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
  502. 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  503. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
  504. 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
  505. 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
  506. 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  507. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
  508. 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
  509. 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
  510. 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
  511. 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
  512. 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
  513. 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
  514. 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  515. 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
  516. 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
  517. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
  518. 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
  519. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  520. 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  521. 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
  522. 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
  523. 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
  524. 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
  525. 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
  526. 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
  527. 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x37, 0x5a,
  528. 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61,
  529. 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x65,
  530. 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
  531. 0x6f, 0x73, 0x2f, 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  532. }
  533. var xxx_File_pb3_test_proto_rawdesc_gzipped = protoimpl.X.CompressGZIP(xxx_File_pb3_test_proto_rawdesc)
  534. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  535. var File_pb3_test_proto protoreflect.FileDescriptor
  536. var xxx_File_pb3_test_proto_enumTypes = make([]protoreflect.EnumType, 2)
  537. var xxx_File_pb3_test_proto_messageTypes = make([]protoimpl.MessageType, 12)
  538. var xxx_File_pb3_test_proto_goTypes = []interface{}{
  539. (Enum)(0), // 0: pb3.Enum
  540. (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
  541. (*Scalars)(nil), // 2: pb3.Scalars
  542. (*Enums)(nil), // 3: pb3.Enums
  543. (*Nests)(nil), // 4: pb3.Nests
  544. (*Nested)(nil), // 5: pb3.Nested
  545. (*Oneofs)(nil), // 6: pb3.Oneofs
  546. (*Maps)(nil), // 7: pb3.Maps
  547. (*JSONNames)(nil), // 8: pb3.JSONNames
  548. nil, // 9: pb3.Maps.Int32ToStrEntry
  549. nil, // 10: pb3.Maps.BoolToUint32Entry
  550. nil, // 11: pb3.Maps.Uint64ToEnumEntry
  551. nil, // 12: pb3.Maps.StrToNestedEntry
  552. nil, // 13: pb3.Maps.StrToOneofsEntry
  553. }
  554. var xxx_File_pb3_test_proto_depIdxs = []int32{
  555. 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
  556. 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
  557. 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
  558. 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
  559. 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
  560. 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
  561. 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
  562. 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
  563. 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
  564. 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
  565. 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
  566. 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
  567. 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
  568. 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
  569. }
  570. func init() { xxx_File_pb3_test_proto_init() }
  571. func xxx_File_pb3_test_proto_init() {
  572. if File_pb3_test_proto != nil {
  573. return
  574. }
  575. File_pb3_test_proto = protoimpl.FileBuilder{
  576. RawDescriptor: xxx_File_pb3_test_proto_rawdesc,
  577. GoTypes: xxx_File_pb3_test_proto_goTypes,
  578. DependencyIndexes: xxx_File_pb3_test_proto_depIdxs,
  579. EnumOutputTypes: xxx_File_pb3_test_proto_enumTypes,
  580. MessageOutputTypes: xxx_File_pb3_test_proto_messageTypes,
  581. FilesRegistry: protoregistry.GlobalFiles,
  582. TypesRegistry: protoregistry.GlobalTypes,
  583. }.Init()
  584. xxx_File_pb3_test_proto_goTypes = nil
  585. xxx_File_pb3_test_proto_depIdxs = nil
  586. }