test.pb.go 23 KB

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