test.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: encoding/textpb/testprotos/pb3/test.proto
  3. package pb3
  4. import (
  5. proto "github.com/golang/protobuf/proto"
  6. protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
  7. prototype "github.com/golang/protobuf/v2/reflect/prototype"
  8. protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
  9. )
  10. // This is a compile-time assertion to ensure that this generated file
  11. // is compatible with the proto package it is being compiled against.
  12. // A compilation error at this line likely means your copy of the
  13. // proto package needs to be updated.
  14. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  15. type Enum int32
  16. const (
  17. Enum_ZERO Enum = 0
  18. Enum_ONE Enum = 1
  19. Enum_TWO Enum = 2
  20. Enum_TEN Enum = 10
  21. )
  22. type xxx_Enum Enum
  23. func (e Enum) ProtoReflect() protoreflect.Enum {
  24. return (xxx_Enum)(e)
  25. }
  26. func (e xxx_Enum) Type() protoreflect.EnumType {
  27. return xxx_Test_ProtoFile_EnumTypes[0]
  28. }
  29. func (e xxx_Enum) Number() protoreflect.EnumNumber {
  30. return protoreflect.EnumNumber(e)
  31. }
  32. var Enum_name = map[int32]string{
  33. 0: "ZERO",
  34. 1: "ONE",
  35. 2: "TWO",
  36. 10: "TEN",
  37. }
  38. var Enum_value = map[string]int32{
  39. "ZERO": 0,
  40. "ONE": 1,
  41. "TWO": 2,
  42. "TEN": 10,
  43. }
  44. func (x Enum) String() string {
  45. return proto.EnumName(Enum_name, int32(x))
  46. }
  47. func (Enum) EnumDescriptor() ([]byte, []int) {
  48. return fileDescriptor_0854715c5b41c422, []int{0}
  49. }
  50. type Enums_NestedEnum int32
  51. const (
  52. Enums_CERO Enums_NestedEnum = 0
  53. Enums_UNO Enums_NestedEnum = 1
  54. Enums_DOS Enums_NestedEnum = 2
  55. Enums_DIEZ Enums_NestedEnum = 10
  56. )
  57. type xxx_Enums_NestedEnum Enums_NestedEnum
  58. func (e Enums_NestedEnum) ProtoReflect() protoreflect.Enum {
  59. return (xxx_Enums_NestedEnum)(e)
  60. }
  61. func (e xxx_Enums_NestedEnum) Type() protoreflect.EnumType {
  62. return xxx_Test_ProtoFile_EnumTypes[1]
  63. }
  64. func (e xxx_Enums_NestedEnum) Number() protoreflect.EnumNumber {
  65. return protoreflect.EnumNumber(e)
  66. }
  67. var Enums_NestedEnum_name = map[int32]string{
  68. 0: "CERO",
  69. 1: "UNO",
  70. 2: "DOS",
  71. 10: "DIEZ",
  72. }
  73. var Enums_NestedEnum_value = map[string]int32{
  74. "CERO": 0,
  75. "UNO": 1,
  76. "DOS": 2,
  77. "DIEZ": 10,
  78. }
  79. func (x Enums_NestedEnum) String() string {
  80. return proto.EnumName(Enums_NestedEnum_name, int32(x))
  81. }
  82. func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
  83. return fileDescriptor_0854715c5b41c422, []int{1, 0}
  84. }
  85. // Scalars contains scalar field types.
  86. type Scalars struct {
  87. SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
  88. SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
  89. SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
  90. SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
  91. SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
  92. SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
  93. SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
  94. SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
  95. SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
  96. SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
  97. SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
  98. SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
  99. SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
  100. SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
  101. SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
  102. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  103. XXX_unrecognized []byte `json:"-"`
  104. XXX_sizecache int32 `json:"-"`
  105. }
  106. type xxx_Scalars struct{ m *Scalars }
  107. func (m *Scalars) ProtoReflect() protoreflect.Message {
  108. return xxx_Scalars{m}
  109. }
  110. func (m xxx_Scalars) Type() protoreflect.MessageType {
  111. return xxx_Test_ProtoFile_MessageTypes[0].Type
  112. }
  113. func (m xxx_Scalars) KnownFields() protoreflect.KnownFields {
  114. return xxx_Test_ProtoFile_MessageTypes[0].KnownFieldsOf(m.m)
  115. }
  116. func (m xxx_Scalars) UnknownFields() protoreflect.UnknownFields {
  117. return xxx_Test_ProtoFile_MessageTypes[0].UnknownFieldsOf(m.m)
  118. }
  119. func (m xxx_Scalars) Interface() protoreflect.ProtoMessage {
  120. return m.m
  121. }
  122. func (m *Scalars) Reset() { *m = Scalars{} }
  123. func (m *Scalars) String() string { return proto.CompactTextString(m) }
  124. func (*Scalars) ProtoMessage() {}
  125. func (*Scalars) Descriptor() ([]byte, []int) {
  126. return fileDescriptor_0854715c5b41c422, []int{0}
  127. }
  128. func (m *Scalars) XXX_Unmarshal(b []byte) error {
  129. return xxx_messageInfo_Scalars.Unmarshal(m, b)
  130. }
  131. func (m *Scalars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  132. return xxx_messageInfo_Scalars.Marshal(b, m, deterministic)
  133. }
  134. func (m *Scalars) XXX_Merge(src proto.Message) {
  135. xxx_messageInfo_Scalars.Merge(m, src)
  136. }
  137. func (m *Scalars) XXX_Size() int {
  138. return xxx_messageInfo_Scalars.Size(m)
  139. }
  140. func (m *Scalars) XXX_DiscardUnknown() {
  141. xxx_messageInfo_Scalars.DiscardUnknown(m)
  142. }
  143. var xxx_messageInfo_Scalars proto.InternalMessageInfo
  144. func (m *Scalars) GetSBool() bool {
  145. if m != nil {
  146. return m.SBool
  147. }
  148. return false
  149. }
  150. func (m *Scalars) GetSInt32() int32 {
  151. if m != nil {
  152. return m.SInt32
  153. }
  154. return 0
  155. }
  156. func (m *Scalars) GetSInt64() int64 {
  157. if m != nil {
  158. return m.SInt64
  159. }
  160. return 0
  161. }
  162. func (m *Scalars) GetSUint32() uint32 {
  163. if m != nil {
  164. return m.SUint32
  165. }
  166. return 0
  167. }
  168. func (m *Scalars) GetSUint64() uint64 {
  169. if m != nil {
  170. return m.SUint64
  171. }
  172. return 0
  173. }
  174. func (m *Scalars) GetSSint32() int32 {
  175. if m != nil {
  176. return m.SSint32
  177. }
  178. return 0
  179. }
  180. func (m *Scalars) GetSSint64() int64 {
  181. if m != nil {
  182. return m.SSint64
  183. }
  184. return 0
  185. }
  186. func (m *Scalars) GetSFixed32() uint32 {
  187. if m != nil {
  188. return m.SFixed32
  189. }
  190. return 0
  191. }
  192. func (m *Scalars) GetSFixed64() uint64 {
  193. if m != nil {
  194. return m.SFixed64
  195. }
  196. return 0
  197. }
  198. func (m *Scalars) GetSSfixed32() int32 {
  199. if m != nil {
  200. return m.SSfixed32
  201. }
  202. return 0
  203. }
  204. func (m *Scalars) GetSSfixed64() int64 {
  205. if m != nil {
  206. return m.SSfixed64
  207. }
  208. return 0
  209. }
  210. func (m *Scalars) GetSFloat() float32 {
  211. if m != nil {
  212. return m.SFloat
  213. }
  214. return 0
  215. }
  216. func (m *Scalars) GetSDouble() float64 {
  217. if m != nil {
  218. return m.SDouble
  219. }
  220. return 0
  221. }
  222. func (m *Scalars) GetSBytes() []byte {
  223. if m != nil {
  224. return m.SBytes
  225. }
  226. return nil
  227. }
  228. func (m *Scalars) GetSString() string {
  229. if m != nil {
  230. return m.SString
  231. }
  232. return ""
  233. }
  234. // Message contains enum fields.
  235. type Enums struct {
  236. SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
  237. SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
  238. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  239. XXX_unrecognized []byte `json:"-"`
  240. XXX_sizecache int32 `json:"-"`
  241. }
  242. type xxx_Enums struct{ m *Enums }
  243. func (m *Enums) ProtoReflect() protoreflect.Message {
  244. return xxx_Enums{m}
  245. }
  246. func (m xxx_Enums) Type() protoreflect.MessageType {
  247. return xxx_Test_ProtoFile_MessageTypes[1].Type
  248. }
  249. func (m xxx_Enums) KnownFields() protoreflect.KnownFields {
  250. return xxx_Test_ProtoFile_MessageTypes[1].KnownFieldsOf(m.m)
  251. }
  252. func (m xxx_Enums) UnknownFields() protoreflect.UnknownFields {
  253. return xxx_Test_ProtoFile_MessageTypes[1].UnknownFieldsOf(m.m)
  254. }
  255. func (m xxx_Enums) Interface() protoreflect.ProtoMessage {
  256. return m.m
  257. }
  258. func (m *Enums) Reset() { *m = Enums{} }
  259. func (m *Enums) String() string { return proto.CompactTextString(m) }
  260. func (*Enums) ProtoMessage() {}
  261. func (*Enums) Descriptor() ([]byte, []int) {
  262. return fileDescriptor_0854715c5b41c422, []int{1}
  263. }
  264. func (m *Enums) XXX_Unmarshal(b []byte) error {
  265. return xxx_messageInfo_Enums.Unmarshal(m, b)
  266. }
  267. func (m *Enums) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  268. return xxx_messageInfo_Enums.Marshal(b, m, deterministic)
  269. }
  270. func (m *Enums) XXX_Merge(src proto.Message) {
  271. xxx_messageInfo_Enums.Merge(m, src)
  272. }
  273. func (m *Enums) XXX_Size() int {
  274. return xxx_messageInfo_Enums.Size(m)
  275. }
  276. func (m *Enums) XXX_DiscardUnknown() {
  277. xxx_messageInfo_Enums.DiscardUnknown(m)
  278. }
  279. var xxx_messageInfo_Enums proto.InternalMessageInfo
  280. func (m *Enums) GetSEnum() Enum {
  281. if m != nil {
  282. return m.SEnum
  283. }
  284. return Enum_ZERO
  285. }
  286. func (m *Enums) GetSNestedEnum() Enums_NestedEnum {
  287. if m != nil {
  288. return m.SNestedEnum
  289. }
  290. return Enums_CERO
  291. }
  292. // Message contains nested message field.
  293. type Nests struct {
  294. SNested *Nested `protobuf:"bytes,1,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
  295. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  296. XXX_unrecognized []byte `json:"-"`
  297. XXX_sizecache int32 `json:"-"`
  298. }
  299. type xxx_Nests struct{ m *Nests }
  300. func (m *Nests) ProtoReflect() protoreflect.Message {
  301. return xxx_Nests{m}
  302. }
  303. func (m xxx_Nests) Type() protoreflect.MessageType {
  304. return xxx_Test_ProtoFile_MessageTypes[2].Type
  305. }
  306. func (m xxx_Nests) KnownFields() protoreflect.KnownFields {
  307. return xxx_Test_ProtoFile_MessageTypes[2].KnownFieldsOf(m.m)
  308. }
  309. func (m xxx_Nests) UnknownFields() protoreflect.UnknownFields {
  310. return xxx_Test_ProtoFile_MessageTypes[2].UnknownFieldsOf(m.m)
  311. }
  312. func (m xxx_Nests) Interface() protoreflect.ProtoMessage {
  313. return m.m
  314. }
  315. func (m *Nests) Reset() { *m = Nests{} }
  316. func (m *Nests) String() string { return proto.CompactTextString(m) }
  317. func (*Nests) ProtoMessage() {}
  318. func (*Nests) Descriptor() ([]byte, []int) {
  319. return fileDescriptor_0854715c5b41c422, []int{2}
  320. }
  321. func (m *Nests) XXX_Unmarshal(b []byte) error {
  322. return xxx_messageInfo_Nests.Unmarshal(m, b)
  323. }
  324. func (m *Nests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  325. return xxx_messageInfo_Nests.Marshal(b, m, deterministic)
  326. }
  327. func (m *Nests) XXX_Merge(src proto.Message) {
  328. xxx_messageInfo_Nests.Merge(m, src)
  329. }
  330. func (m *Nests) XXX_Size() int {
  331. return xxx_messageInfo_Nests.Size(m)
  332. }
  333. func (m *Nests) XXX_DiscardUnknown() {
  334. xxx_messageInfo_Nests.DiscardUnknown(m)
  335. }
  336. var xxx_messageInfo_Nests proto.InternalMessageInfo
  337. func (m *Nests) GetSNested() *Nested {
  338. if m != nil {
  339. return m.SNested
  340. }
  341. return nil
  342. }
  343. // Message type used as submessage.
  344. type Nested struct {
  345. SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
  346. SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
  347. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  348. XXX_unrecognized []byte `json:"-"`
  349. XXX_sizecache int32 `json:"-"`
  350. }
  351. type xxx_Nested struct{ m *Nested }
  352. func (m *Nested) ProtoReflect() protoreflect.Message {
  353. return xxx_Nested{m}
  354. }
  355. func (m xxx_Nested) Type() protoreflect.MessageType {
  356. return xxx_Test_ProtoFile_MessageTypes[3].Type
  357. }
  358. func (m xxx_Nested) KnownFields() protoreflect.KnownFields {
  359. return xxx_Test_ProtoFile_MessageTypes[3].KnownFieldsOf(m.m)
  360. }
  361. func (m xxx_Nested) UnknownFields() protoreflect.UnknownFields {
  362. return xxx_Test_ProtoFile_MessageTypes[3].UnknownFieldsOf(m.m)
  363. }
  364. func (m xxx_Nested) Interface() protoreflect.ProtoMessage {
  365. return m.m
  366. }
  367. func (m *Nested) Reset() { *m = Nested{} }
  368. func (m *Nested) String() string { return proto.CompactTextString(m) }
  369. func (*Nested) ProtoMessage() {}
  370. func (*Nested) Descriptor() ([]byte, []int) {
  371. return fileDescriptor_0854715c5b41c422, []int{3}
  372. }
  373. func (m *Nested) XXX_Unmarshal(b []byte) error {
  374. return xxx_messageInfo_Nested.Unmarshal(m, b)
  375. }
  376. func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  377. return xxx_messageInfo_Nested.Marshal(b, m, deterministic)
  378. }
  379. func (m *Nested) XXX_Merge(src proto.Message) {
  380. xxx_messageInfo_Nested.Merge(m, src)
  381. }
  382. func (m *Nested) XXX_Size() int {
  383. return xxx_messageInfo_Nested.Size(m)
  384. }
  385. func (m *Nested) XXX_DiscardUnknown() {
  386. xxx_messageInfo_Nested.DiscardUnknown(m)
  387. }
  388. var xxx_messageInfo_Nested proto.InternalMessageInfo
  389. func (m *Nested) GetSString() string {
  390. if m != nil {
  391. return m.SString
  392. }
  393. return ""
  394. }
  395. func (m *Nested) GetSNested() *Nested {
  396. if m != nil {
  397. return m.SNested
  398. }
  399. return nil
  400. }
  401. func init() {
  402. proto.RegisterFile("encoding/textpb/testprotos/pb3/test.proto", fileDescriptor_0854715c5b41c422)
  403. proto.RegisterEnum("pb3.Enum", Enum_name, Enum_value)
  404. proto.RegisterEnum("pb3.Enums_NestedEnum", Enums_NestedEnum_name, Enums_NestedEnum_value)
  405. proto.RegisterType((*Scalars)(nil), "pb3.Scalars")
  406. proto.RegisterType((*Enums)(nil), "pb3.Enums")
  407. proto.RegisterType((*Nests)(nil), "pb3.Nests")
  408. proto.RegisterType((*Nested)(nil), "pb3.Nested")
  409. }
  410. var fileDescriptor_0854715c5b41c422 = []byte{
  411. // 503 bytes of a gzipped FileDescriptorProto
  412. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xdf, 0xab, 0xd3, 0x30,
  413. 0x14, 0xc7, 0xcd, 0xba, 0xb6, 0x5b, 0xe6, 0xbd, 0xd6, 0xe0, 0x30, 0x22, 0x42, 0xd8, 0x83, 0x44,
  414. 0x85, 0x15, 0xda, 0x52, 0x10, 0xc4, 0x87, 0xb9, 0x5d, 0xb8, 0x08, 0x1b, 0x64, 0x5e, 0x84, 0xbd,
  415. 0x94, 0x75, 0xeb, 0xe6, 0xa0, 0x6b, 0xc6, 0x4e, 0x2a, 0xd7, 0xff, 0xc4, 0x27, 0xff, 0x56, 0x49,
  416. 0xb2, 0x9f, 0x0f, 0xfa, 0xd4, 0xf3, 0xed, 0x27, 0xdf, 0x73, 0xbe, 0x87, 0x10, 0xfc, 0xae, 0xa8,
  417. 0x16, 0x72, 0xb9, 0xa9, 0xd6, 0xa1, 0x2a, 0x1e, 0xd5, 0x2e, 0x0f, 0x55, 0x01, 0x6a, 0xb7, 0x97,
  418. 0x4a, 0x42, 0xb8, 0xcb, 0x63, 0x23, 0xfb, 0x46, 0x13, 0x67, 0x97, 0xc7, 0xbd, 0x3f, 0x0e, 0xf6,
  419. 0xa7, 0x8b, 0x79, 0x39, 0xdf, 0x03, 0xe9, 0x62, 0x0f, 0xb2, 0x5c, 0xca, 0x92, 0x22, 0x86, 0x78,
  420. 0x4b, 0xb8, 0x30, 0x90, 0xb2, 0x24, 0x2f, 0xb1, 0x0f, 0xd9, 0xa6, 0x52, 0x71, 0x44, 0x1b, 0x0c,
  421. 0x71, 0x57, 0x78, 0x70, 0xaf, 0xd5, 0x09, 0xa4, 0x09, 0x75, 0x18, 0xe2, 0x8e, 0x05, 0x69, 0x42,
  422. 0x5e, 0xe1, 0x16, 0x64, 0xb5, 0xb5, 0x34, 0x19, 0xe2, 0x37, 0xc2, 0x87, 0x07, 0x23, 0xcf, 0x28,
  423. 0x4d, 0xa8, 0xcb, 0x10, 0x6f, 0x1e, 0xd0, 0xd1, 0x05, 0xd6, 0xe5, 0x31, 0xc4, 0x9f, 0x0b, 0x1f,
  424. 0xa6, 0x17, 0x2e, 0xb0, 0x2e, 0x9f, 0x21, 0x4e, 0x0e, 0x28, 0x4d, 0xc8, 0x6b, 0xdc, 0x86, 0x6c,
  425. 0xb5, 0x79, 0x2c, 0x96, 0x71, 0x44, 0x5b, 0x0c, 0x71, 0x5f, 0xb4, 0xe0, 0xce, 0xea, 0x0b, 0x98,
  426. 0x26, 0xb4, 0xcd, 0x10, 0xf7, 0x8e, 0x30, 0x4d, 0xc8, 0x1b, 0x8c, 0x21, 0x83, 0xa3, 0x15, 0x33,
  427. 0xc4, 0x9f, 0x89, 0x36, 0x4c, 0x0f, 0x3f, 0x2e, 0x71, 0x9a, 0xd0, 0x0e, 0x43, 0x3c, 0x38, 0xe1,
  428. 0x34, 0xb1, 0xcb, 0xaf, 0x4a, 0x39, 0x57, 0xf4, 0x05, 0x43, 0xbc, 0x21, 0x3c, 0xb8, 0xd3, 0xca,
  429. 0x66, 0x5d, 0xca, 0x3a, 0x2f, 0x0b, 0xda, 0x65, 0x88, 0x23, 0xe1, 0xc3, 0xd0, 0x48, 0xeb, 0xc9,
  430. 0x7f, 0xa9, 0x02, 0xe8, 0x2d, 0x43, 0xfc, 0xa9, 0xf0, 0x60, 0xa0, 0xd5, 0x61, 0x3f, 0xb5, 0xdf,
  431. 0x54, 0x6b, 0x7a, 0xc3, 0x10, 0x6f, 0xeb, 0xfd, 0x8c, 0xec, 0xfd, 0x46, 0xd8, 0x1d, 0x55, 0xf5,
  432. 0x16, 0x08, 0xd3, 0xd7, 0x53, 0x54, 0xf5, 0xd6, 0x5c, 0xcf, 0x6d, 0xd4, 0xee, 0xef, 0xf2, 0xb8,
  433. 0xaf, 0x99, 0x70, 0x41, 0x7f, 0xc8, 0x47, 0x7c, 0x03, 0x59, 0x55, 0x80, 0x2a, 0x96, 0xf6, 0xa0,
  434. 0x63, 0x0e, 0x76, 0x4f, 0x07, 0xa1, 0x3f, 0x36, 0xd4, 0x98, 0x3a, 0x70, 0x16, 0xbd, 0x08, 0xe3,
  435. 0xb3, 0x22, 0x2d, 0xdc, 0xfc, 0x32, 0x12, 0x93, 0xe0, 0x09, 0xf1, 0xb1, 0xf3, 0x30, 0x9e, 0x04,
  436. 0x48, 0x17, 0xc3, 0xc9, 0x34, 0x68, 0x68, 0x36, 0xbc, 0x1f, 0xcd, 0x02, 0xdc, 0x0b, 0xb1, 0xab,
  437. 0x3d, 0x40, 0xde, 0xea, 0xf8, 0x76, 0xae, 0xc9, 0xd6, 0x89, 0x3a, 0x66, 0xa4, 0xed, 0x28, 0xfc,
  438. 0xc3, 0xa0, 0xde, 0x57, 0xec, 0xd9, 0xea, 0x6a, 0x61, 0x74, 0xb5, 0xf0, 0x55, 0xb3, 0xc6, 0xbf,
  439. 0x9b, 0xbd, 0xff, 0x80, 0x9b, 0xc7, 0xac, 0xb3, 0x53, 0xd6, 0xc9, 0x78, 0x64, 0xb3, 0x7e, 0xfb,
  440. 0x3e, 0x09, 0x1a, 0xa6, 0x18, 0x8d, 0x03, 0x3c, 0xf8, 0x3c, 0xfb, 0xb4, 0xde, 0xa8, 0x1f, 0x75,
  441. 0xde, 0x5f, 0xc8, 0x6d, 0xb8, 0x96, 0xe5, 0xbc, 0x5a, 0x87, 0xe6, 0x19, 0xe4, 0xf5, 0x2a, 0xfc,
  442. 0x19, 0x85, 0xff, 0x7f, 0x36, 0xb9, 0x67, 0xea, 0xf8, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd9,
  443. 0x7d, 0x94, 0x3a, 0x5f, 0x03, 0x00, 0x00,
  444. }
  445. func init() {
  446. xxx_Test_ProtoFile_FileDesc.Enums = xxx_Test_ProtoFile_EnumDescs[0:1]
  447. xxx_Test_ProtoFile_FileDesc.Messages = xxx_Test_ProtoFile_MessageDescs[0:4]
  448. xxx_Test_ProtoFile_MessageDescs[1].Enums = xxx_Test_ProtoFile_EnumDescs[1:2]
  449. xxx_Test_ProtoFile_MessageDescs[1].Fields[0].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
  450. xxx_Test_ProtoFile_MessageDescs[1].Fields[1].EnumType = xxx_Test_ProtoFile_EnumTypes[1]
  451. xxx_Test_ProtoFile_MessageDescs[2].Fields[0].MessageType = xxx_Test_ProtoFile_MessageTypes[3].Type
  452. xxx_Test_ProtoFile_MessageDescs[3].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[3].Type
  453. var err error
  454. Test_ProtoFile, err = prototype.NewFile(&xxx_Test_ProtoFile_FileDesc)
  455. if err != nil {
  456. panic(err)
  457. }
  458. }
  459. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  460. var Test_ProtoFile protoreflect.FileDescriptor
  461. var xxx_Test_ProtoFile_FileDesc = prototype.File{
  462. Syntax: protoreflect.Proto3,
  463. Path: "encoding/textpb/testprotos/pb3/test.proto",
  464. Package: "pb3",
  465. }
  466. var xxx_Test_ProtoFile_EnumTypes = [2]protoreflect.EnumType{
  467. prototype.GoEnum(
  468. xxx_Test_ProtoFile_EnumDescs[0].Reference(),
  469. func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
  470. return Enum(n)
  471. },
  472. ),
  473. prototype.GoEnum(
  474. xxx_Test_ProtoFile_EnumDescs[1].Reference(),
  475. func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
  476. return Enums_NestedEnum(n)
  477. },
  478. ),
  479. }
  480. var xxx_Test_ProtoFile_EnumDescs = [2]prototype.Enum{
  481. {
  482. Name: "Enum",
  483. Values: []prototype.EnumValue{
  484. {Name: "ZERO", Number: 0},
  485. {Name: "ONE", Number: 1},
  486. {Name: "TWO", Number: 2},
  487. {Name: "TEN", Number: 10},
  488. },
  489. },
  490. {
  491. Name: "NestedEnum",
  492. Values: []prototype.EnumValue{
  493. {Name: "CERO", Number: 0},
  494. {Name: "UNO", Number: 1},
  495. {Name: "DOS", Number: 2},
  496. {Name: "DIEZ", Number: 10},
  497. },
  498. },
  499. }
  500. var xxx_Test_ProtoFile_MessageTypes = [4]protoimpl.MessageType{
  501. {Type: prototype.GoMessage(
  502. xxx_Test_ProtoFile_MessageDescs[0].Reference(),
  503. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  504. return new(Scalars)
  505. },
  506. )},
  507. {Type: prototype.GoMessage(
  508. xxx_Test_ProtoFile_MessageDescs[1].Reference(),
  509. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  510. return new(Enums)
  511. },
  512. )},
  513. {Type: prototype.GoMessage(
  514. xxx_Test_ProtoFile_MessageDescs[2].Reference(),
  515. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  516. return new(Nests)
  517. },
  518. )},
  519. {Type: prototype.GoMessage(
  520. xxx_Test_ProtoFile_MessageDescs[3].Reference(),
  521. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  522. return new(Nested)
  523. },
  524. )},
  525. }
  526. var xxx_Test_ProtoFile_MessageDescs = [4]prototype.Message{
  527. {
  528. Name: "Scalars",
  529. Fields: []prototype.Field{
  530. {
  531. Name: "s_bool",
  532. Number: 1,
  533. Cardinality: protoreflect.Optional,
  534. Kind: protoreflect.BoolKind,
  535. JSONName: "sBool",
  536. IsPacked: prototype.False,
  537. },
  538. {
  539. Name: "s_int32",
  540. Number: 2,
  541. Cardinality: protoreflect.Optional,
  542. Kind: protoreflect.Int32Kind,
  543. JSONName: "sInt32",
  544. IsPacked: prototype.False,
  545. },
  546. {
  547. Name: "s_int64",
  548. Number: 3,
  549. Cardinality: protoreflect.Optional,
  550. Kind: protoreflect.Int64Kind,
  551. JSONName: "sInt64",
  552. IsPacked: prototype.False,
  553. },
  554. {
  555. Name: "s_uint32",
  556. Number: 4,
  557. Cardinality: protoreflect.Optional,
  558. Kind: protoreflect.Uint32Kind,
  559. JSONName: "sUint32",
  560. IsPacked: prototype.False,
  561. },
  562. {
  563. Name: "s_uint64",
  564. Number: 5,
  565. Cardinality: protoreflect.Optional,
  566. Kind: protoreflect.Uint64Kind,
  567. JSONName: "sUint64",
  568. IsPacked: prototype.False,
  569. },
  570. {
  571. Name: "s_sint32",
  572. Number: 6,
  573. Cardinality: protoreflect.Optional,
  574. Kind: protoreflect.Sint32Kind,
  575. JSONName: "sSint32",
  576. IsPacked: prototype.False,
  577. },
  578. {
  579. Name: "s_sint64",
  580. Number: 7,
  581. Cardinality: protoreflect.Optional,
  582. Kind: protoreflect.Sint64Kind,
  583. JSONName: "sSint64",
  584. IsPacked: prototype.False,
  585. },
  586. {
  587. Name: "s_fixed32",
  588. Number: 8,
  589. Cardinality: protoreflect.Optional,
  590. Kind: protoreflect.Fixed32Kind,
  591. JSONName: "sFixed32",
  592. IsPacked: prototype.False,
  593. },
  594. {
  595. Name: "s_fixed64",
  596. Number: 9,
  597. Cardinality: protoreflect.Optional,
  598. Kind: protoreflect.Fixed64Kind,
  599. JSONName: "sFixed64",
  600. IsPacked: prototype.False,
  601. },
  602. {
  603. Name: "s_sfixed32",
  604. Number: 10,
  605. Cardinality: protoreflect.Optional,
  606. Kind: protoreflect.Sfixed32Kind,
  607. JSONName: "sSfixed32",
  608. IsPacked: prototype.False,
  609. },
  610. {
  611. Name: "s_sfixed64",
  612. Number: 11,
  613. Cardinality: protoreflect.Optional,
  614. Kind: protoreflect.Sfixed64Kind,
  615. JSONName: "sSfixed64",
  616. IsPacked: prototype.False,
  617. },
  618. {
  619. Name: "s_float",
  620. Number: 20,
  621. Cardinality: protoreflect.Optional,
  622. Kind: protoreflect.FloatKind,
  623. JSONName: "sFloat",
  624. IsPacked: prototype.False,
  625. },
  626. {
  627. Name: "s_double",
  628. Number: 21,
  629. Cardinality: protoreflect.Optional,
  630. Kind: protoreflect.DoubleKind,
  631. JSONName: "sDouble",
  632. IsPacked: prototype.False,
  633. },
  634. {
  635. Name: "s_bytes",
  636. Number: 14,
  637. Cardinality: protoreflect.Optional,
  638. Kind: protoreflect.BytesKind,
  639. JSONName: "sBytes",
  640. IsPacked: prototype.False,
  641. },
  642. {
  643. Name: "s_string",
  644. Number: 13,
  645. Cardinality: protoreflect.Optional,
  646. Kind: protoreflect.StringKind,
  647. JSONName: "sString",
  648. IsPacked: prototype.False,
  649. },
  650. },
  651. },
  652. {
  653. Name: "Enums",
  654. Fields: []prototype.Field{
  655. {
  656. Name: "s_enum",
  657. Number: 1,
  658. Cardinality: protoreflect.Optional,
  659. Kind: protoreflect.EnumKind,
  660. JSONName: "sEnum",
  661. IsPacked: prototype.False,
  662. },
  663. {
  664. Name: "s_nested_enum",
  665. Number: 3,
  666. Cardinality: protoreflect.Optional,
  667. Kind: protoreflect.EnumKind,
  668. JSONName: "sNestedEnum",
  669. IsPacked: prototype.False,
  670. },
  671. },
  672. },
  673. {
  674. Name: "Nests",
  675. Fields: []prototype.Field{
  676. {
  677. Name: "s_nested",
  678. Number: 1,
  679. Cardinality: protoreflect.Optional,
  680. Kind: protoreflect.MessageKind,
  681. JSONName: "sNested",
  682. IsPacked: prototype.False,
  683. },
  684. },
  685. },
  686. {
  687. Name: "Nested",
  688. Fields: []prototype.Field{
  689. {
  690. Name: "s_string",
  691. Number: 1,
  692. Cardinality: protoreflect.Optional,
  693. Kind: protoreflect.StringKind,
  694. JSONName: "sString",
  695. IsPacked: prototype.False,
  696. },
  697. {
  698. Name: "s_nested",
  699. Number: 2,
  700. Cardinality: protoreflect.Optional,
  701. Kind: protoreflect.MessageKind,
  702. JSONName: "sNested",
  703. IsPacked: prototype.False,
  704. },
  705. },
  706. },
  707. }