test.pb.go 108 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: encoding/textpb/testprotos/pb2/test.proto
  3. package pb2
  4. import (
  5. proto "github.com/golang/protobuf/proto"
  6. any "github.com/golang/protobuf/ptypes/any"
  7. duration "github.com/golang/protobuf/ptypes/duration"
  8. empty "github.com/golang/protobuf/ptypes/empty"
  9. _struct "github.com/golang/protobuf/ptypes/struct"
  10. timestamp "github.com/golang/protobuf/ptypes/timestamp"
  11. wrappers "github.com/golang/protobuf/ptypes/wrappers"
  12. protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
  13. prototype "github.com/golang/protobuf/v2/reflect/prototype"
  14. protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
  15. )
  16. // This is a compile-time assertion to ensure that this generated file
  17. // is compatible with the proto package it is being compiled against.
  18. // A compilation error at this line likely means your copy of the
  19. // proto package needs to be updated.
  20. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  21. type Enum int32
  22. const (
  23. Enum_UNKNOWN Enum = 0
  24. Enum_FIRST Enum = 1
  25. Enum_SECOND Enum = 2
  26. Enum_TENTH Enum = 10
  27. )
  28. type xxx_Enum Enum
  29. func (e Enum) ProtoReflect() protoreflect.Enum {
  30. return (xxx_Enum)(e)
  31. }
  32. func (e xxx_Enum) Type() protoreflect.EnumType {
  33. return xxx_Test_ProtoFile_EnumTypes[0]
  34. }
  35. func (e xxx_Enum) Number() protoreflect.EnumNumber {
  36. return protoreflect.EnumNumber(e)
  37. }
  38. var Enum_name = map[int32]string{
  39. 0: "UNKNOWN",
  40. 1: "FIRST",
  41. 2: "SECOND",
  42. 10: "TENTH",
  43. }
  44. var Enum_value = map[string]int32{
  45. "UNKNOWN": 0,
  46. "FIRST": 1,
  47. "SECOND": 2,
  48. "TENTH": 10,
  49. }
  50. func (x Enum) Enum() *Enum {
  51. p := new(Enum)
  52. *p = x
  53. return p
  54. }
  55. func (x Enum) String() string {
  56. return proto.EnumName(Enum_name, int32(x))
  57. }
  58. func (x *Enum) UnmarshalJSON(data []byte) error {
  59. value, err := proto.UnmarshalJSONEnum(Enum_value, data, "Enum")
  60. if err != nil {
  61. return err
  62. }
  63. *x = Enum(value)
  64. return nil
  65. }
  66. func (Enum) EnumDescriptor() ([]byte, []int) {
  67. return fileDescriptor_c8d7acc1bcec9a72, []int{0}
  68. }
  69. type Enums_NestedEnum int32
  70. const (
  71. Enums_UNO Enums_NestedEnum = 1
  72. Enums_DOS Enums_NestedEnum = 2
  73. Enums_DIEZ Enums_NestedEnum = 10
  74. )
  75. type xxx_Enums_NestedEnum Enums_NestedEnum
  76. func (e Enums_NestedEnum) ProtoReflect() protoreflect.Enum {
  77. return (xxx_Enums_NestedEnum)(e)
  78. }
  79. func (e xxx_Enums_NestedEnum) Type() protoreflect.EnumType {
  80. return xxx_Test_ProtoFile_EnumTypes[1]
  81. }
  82. func (e xxx_Enums_NestedEnum) Number() protoreflect.EnumNumber {
  83. return protoreflect.EnumNumber(e)
  84. }
  85. var Enums_NestedEnum_name = map[int32]string{
  86. 1: "UNO",
  87. 2: "DOS",
  88. 10: "DIEZ",
  89. }
  90. var Enums_NestedEnum_value = map[string]int32{
  91. "UNO": 1,
  92. "DOS": 2,
  93. "DIEZ": 10,
  94. }
  95. func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
  96. p := new(Enums_NestedEnum)
  97. *p = x
  98. return p
  99. }
  100. func (x Enums_NestedEnum) String() string {
  101. return proto.EnumName(Enums_NestedEnum_name, int32(x))
  102. }
  103. func (x *Enums_NestedEnum) UnmarshalJSON(data []byte) error {
  104. value, err := proto.UnmarshalJSONEnum(Enums_NestedEnum_value, data, "Enums_NestedEnum")
  105. if err != nil {
  106. return err
  107. }
  108. *x = Enums_NestedEnum(value)
  109. return nil
  110. }
  111. func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
  112. return fileDescriptor_c8d7acc1bcec9a72, []int{2, 0}
  113. }
  114. // Scalars contains optional scalar fields.
  115. type Scalars struct {
  116. OptBool *bool `protobuf:"varint,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
  117. OptInt32 *int32 `protobuf:"varint,2,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"`
  118. OptInt64 *int64 `protobuf:"varint,3,opt,name=opt_int64,json=optInt64" json:"opt_int64,omitempty"`
  119. OptUint32 *uint32 `protobuf:"varint,4,opt,name=opt_uint32,json=optUint32" json:"opt_uint32,omitempty"`
  120. OptUint64 *uint64 `protobuf:"varint,5,opt,name=opt_uint64,json=optUint64" json:"opt_uint64,omitempty"`
  121. OptSint32 *int32 `protobuf:"zigzag32,6,opt,name=opt_sint32,json=optSint32" json:"opt_sint32,omitempty"`
  122. OptSint64 *int64 `protobuf:"zigzag64,7,opt,name=opt_sint64,json=optSint64" json:"opt_sint64,omitempty"`
  123. OptFixed32 *uint32 `protobuf:"fixed32,8,opt,name=opt_fixed32,json=optFixed32" json:"opt_fixed32,omitempty"`
  124. OptFixed64 *uint64 `protobuf:"fixed64,9,opt,name=opt_fixed64,json=optFixed64" json:"opt_fixed64,omitempty"`
  125. OptSfixed32 *int32 `protobuf:"fixed32,10,opt,name=opt_sfixed32,json=optSfixed32" json:"opt_sfixed32,omitempty"`
  126. OptSfixed64 *int64 `protobuf:"fixed64,11,opt,name=opt_sfixed64,json=optSfixed64" json:"opt_sfixed64,omitempty"`
  127. OptFloat *float32 `protobuf:"fixed32,20,opt,name=opt_float,json=optFloat" json:"opt_float,omitempty"`
  128. OptDouble *float64 `protobuf:"fixed64,21,opt,name=opt_double,json=optDouble" json:"opt_double,omitempty"`
  129. OptBytes []byte `protobuf:"bytes,14,opt,name=opt_bytes,json=optBytes" json:"opt_bytes,omitempty"`
  130. OptString *string `protobuf:"bytes,13,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
  131. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  132. XXX_unrecognized []byte `json:"-"`
  133. XXX_sizecache int32 `json:"-"`
  134. }
  135. type xxx_Scalars struct{ m *Scalars }
  136. func (m *Scalars) ProtoReflect() protoreflect.Message {
  137. return xxx_Scalars{m}
  138. }
  139. func (m xxx_Scalars) Type() protoreflect.MessageType {
  140. return xxx_Test_ProtoFile_MessageTypes[0].Type
  141. }
  142. func (m xxx_Scalars) KnownFields() protoreflect.KnownFields {
  143. return xxx_Test_ProtoFile_MessageTypes[0].KnownFieldsOf(m.m)
  144. }
  145. func (m xxx_Scalars) UnknownFields() protoreflect.UnknownFields {
  146. return xxx_Test_ProtoFile_MessageTypes[0].UnknownFieldsOf(m.m)
  147. }
  148. func (m xxx_Scalars) Interface() protoreflect.ProtoMessage {
  149. return m.m
  150. }
  151. func (m *Scalars) Reset() { *m = Scalars{} }
  152. func (m *Scalars) String() string { return proto.CompactTextString(m) }
  153. func (*Scalars) ProtoMessage() {}
  154. func (*Scalars) Descriptor() ([]byte, []int) {
  155. return fileDescriptor_c8d7acc1bcec9a72, []int{0}
  156. }
  157. func (m *Scalars) XXX_Unmarshal(b []byte) error {
  158. return xxx_messageInfo_Scalars.Unmarshal(m, b)
  159. }
  160. func (m *Scalars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  161. return xxx_messageInfo_Scalars.Marshal(b, m, deterministic)
  162. }
  163. func (m *Scalars) XXX_Merge(src proto.Message) {
  164. xxx_messageInfo_Scalars.Merge(m, src)
  165. }
  166. func (m *Scalars) XXX_Size() int {
  167. return xxx_messageInfo_Scalars.Size(m)
  168. }
  169. func (m *Scalars) XXX_DiscardUnknown() {
  170. xxx_messageInfo_Scalars.DiscardUnknown(m)
  171. }
  172. var xxx_messageInfo_Scalars proto.InternalMessageInfo
  173. func (m *Scalars) GetOptBool() bool {
  174. if m != nil && m.OptBool != nil {
  175. return *m.OptBool
  176. }
  177. return false
  178. }
  179. func (m *Scalars) GetOptInt32() int32 {
  180. if m != nil && m.OptInt32 != nil {
  181. return *m.OptInt32
  182. }
  183. return 0
  184. }
  185. func (m *Scalars) GetOptInt64() int64 {
  186. if m != nil && m.OptInt64 != nil {
  187. return *m.OptInt64
  188. }
  189. return 0
  190. }
  191. func (m *Scalars) GetOptUint32() uint32 {
  192. if m != nil && m.OptUint32 != nil {
  193. return *m.OptUint32
  194. }
  195. return 0
  196. }
  197. func (m *Scalars) GetOptUint64() uint64 {
  198. if m != nil && m.OptUint64 != nil {
  199. return *m.OptUint64
  200. }
  201. return 0
  202. }
  203. func (m *Scalars) GetOptSint32() int32 {
  204. if m != nil && m.OptSint32 != nil {
  205. return *m.OptSint32
  206. }
  207. return 0
  208. }
  209. func (m *Scalars) GetOptSint64() int64 {
  210. if m != nil && m.OptSint64 != nil {
  211. return *m.OptSint64
  212. }
  213. return 0
  214. }
  215. func (m *Scalars) GetOptFixed32() uint32 {
  216. if m != nil && m.OptFixed32 != nil {
  217. return *m.OptFixed32
  218. }
  219. return 0
  220. }
  221. func (m *Scalars) GetOptFixed64() uint64 {
  222. if m != nil && m.OptFixed64 != nil {
  223. return *m.OptFixed64
  224. }
  225. return 0
  226. }
  227. func (m *Scalars) GetOptSfixed32() int32 {
  228. if m != nil && m.OptSfixed32 != nil {
  229. return *m.OptSfixed32
  230. }
  231. return 0
  232. }
  233. func (m *Scalars) GetOptSfixed64() int64 {
  234. if m != nil && m.OptSfixed64 != nil {
  235. return *m.OptSfixed64
  236. }
  237. return 0
  238. }
  239. func (m *Scalars) GetOptFloat() float32 {
  240. if m != nil && m.OptFloat != nil {
  241. return *m.OptFloat
  242. }
  243. return 0
  244. }
  245. func (m *Scalars) GetOptDouble() float64 {
  246. if m != nil && m.OptDouble != nil {
  247. return *m.OptDouble
  248. }
  249. return 0
  250. }
  251. func (m *Scalars) GetOptBytes() []byte {
  252. if m != nil {
  253. return m.OptBytes
  254. }
  255. return nil
  256. }
  257. func (m *Scalars) GetOptString() string {
  258. if m != nil && m.OptString != nil {
  259. return *m.OptString
  260. }
  261. return ""
  262. }
  263. // Message contains repeated fields.
  264. type Repeats struct {
  265. RptBool []bool `protobuf:"varint,1,rep,name=rpt_bool,json=rptBool" json:"rpt_bool,omitempty"`
  266. RptInt32 []int32 `protobuf:"varint,2,rep,name=rpt_int32,json=rptInt32" json:"rpt_int32,omitempty"`
  267. RptInt64 []int64 `protobuf:"varint,3,rep,name=rpt_int64,json=rptInt64" json:"rpt_int64,omitempty"`
  268. RptUint32 []uint32 `protobuf:"varint,4,rep,name=rpt_uint32,json=rptUint32" json:"rpt_uint32,omitempty"`
  269. RptUint64 []uint64 `protobuf:"varint,5,rep,name=rpt_uint64,json=rptUint64" json:"rpt_uint64,omitempty"`
  270. RptFloat []float32 `protobuf:"fixed32,6,rep,name=rpt_float,json=rptFloat" json:"rpt_float,omitempty"`
  271. RptDouble []float64 `protobuf:"fixed64,7,rep,name=rpt_double,json=rptDouble" json:"rpt_double,omitempty"`
  272. RptString []string `protobuf:"bytes,15,rep,name=rpt_string,json=rptString" json:"rpt_string,omitempty"`
  273. RptBytes [][]byte `protobuf:"bytes,14,rep,name=rpt_bytes,json=rptBytes" json:"rpt_bytes,omitempty"`
  274. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  275. XXX_unrecognized []byte `json:"-"`
  276. XXX_sizecache int32 `json:"-"`
  277. }
  278. type xxx_Repeats struct{ m *Repeats }
  279. func (m *Repeats) ProtoReflect() protoreflect.Message {
  280. return xxx_Repeats{m}
  281. }
  282. func (m xxx_Repeats) Type() protoreflect.MessageType {
  283. return xxx_Test_ProtoFile_MessageTypes[1].Type
  284. }
  285. func (m xxx_Repeats) KnownFields() protoreflect.KnownFields {
  286. return xxx_Test_ProtoFile_MessageTypes[1].KnownFieldsOf(m.m)
  287. }
  288. func (m xxx_Repeats) UnknownFields() protoreflect.UnknownFields {
  289. return xxx_Test_ProtoFile_MessageTypes[1].UnknownFieldsOf(m.m)
  290. }
  291. func (m xxx_Repeats) Interface() protoreflect.ProtoMessage {
  292. return m.m
  293. }
  294. func (m *Repeats) Reset() { *m = Repeats{} }
  295. func (m *Repeats) String() string { return proto.CompactTextString(m) }
  296. func (*Repeats) ProtoMessage() {}
  297. func (*Repeats) Descriptor() ([]byte, []int) {
  298. return fileDescriptor_c8d7acc1bcec9a72, []int{1}
  299. }
  300. func (m *Repeats) XXX_Unmarshal(b []byte) error {
  301. return xxx_messageInfo_Repeats.Unmarshal(m, b)
  302. }
  303. func (m *Repeats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  304. return xxx_messageInfo_Repeats.Marshal(b, m, deterministic)
  305. }
  306. func (m *Repeats) XXX_Merge(src proto.Message) {
  307. xxx_messageInfo_Repeats.Merge(m, src)
  308. }
  309. func (m *Repeats) XXX_Size() int {
  310. return xxx_messageInfo_Repeats.Size(m)
  311. }
  312. func (m *Repeats) XXX_DiscardUnknown() {
  313. xxx_messageInfo_Repeats.DiscardUnknown(m)
  314. }
  315. var xxx_messageInfo_Repeats proto.InternalMessageInfo
  316. func (m *Repeats) GetRptBool() []bool {
  317. if m != nil {
  318. return m.RptBool
  319. }
  320. return nil
  321. }
  322. func (m *Repeats) GetRptInt32() []int32 {
  323. if m != nil {
  324. return m.RptInt32
  325. }
  326. return nil
  327. }
  328. func (m *Repeats) GetRptInt64() []int64 {
  329. if m != nil {
  330. return m.RptInt64
  331. }
  332. return nil
  333. }
  334. func (m *Repeats) GetRptUint32() []uint32 {
  335. if m != nil {
  336. return m.RptUint32
  337. }
  338. return nil
  339. }
  340. func (m *Repeats) GetRptUint64() []uint64 {
  341. if m != nil {
  342. return m.RptUint64
  343. }
  344. return nil
  345. }
  346. func (m *Repeats) GetRptFloat() []float32 {
  347. if m != nil {
  348. return m.RptFloat
  349. }
  350. return nil
  351. }
  352. func (m *Repeats) GetRptDouble() []float64 {
  353. if m != nil {
  354. return m.RptDouble
  355. }
  356. return nil
  357. }
  358. func (m *Repeats) GetRptString() []string {
  359. if m != nil {
  360. return m.RptString
  361. }
  362. return nil
  363. }
  364. func (m *Repeats) GetRptBytes() [][]byte {
  365. if m != nil {
  366. return m.RptBytes
  367. }
  368. return nil
  369. }
  370. // Message contains enum fields.
  371. type Enums struct {
  372. OptEnum *Enum `protobuf:"varint,1,opt,name=opt_enum,json=optEnum,enum=pb2.Enum" json:"opt_enum,omitempty"`
  373. RptEnum []Enum `protobuf:"varint,2,rep,name=rpt_enum,json=rptEnum,enum=pb2.Enum" json:"rpt_enum,omitempty"`
  374. OptNestedEnum *Enums_NestedEnum `protobuf:"varint,3,opt,name=opt_nested_enum,json=optNestedEnum,enum=pb2.Enums_NestedEnum" json:"opt_nested_enum,omitempty"`
  375. RptNestedEnum []Enums_NestedEnum `protobuf:"varint,4,rep,name=rpt_nested_enum,json=rptNestedEnum,enum=pb2.Enums_NestedEnum" json:"rpt_nested_enum,omitempty"`
  376. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  377. XXX_unrecognized []byte `json:"-"`
  378. XXX_sizecache int32 `json:"-"`
  379. }
  380. type xxx_Enums struct{ m *Enums }
  381. func (m *Enums) ProtoReflect() protoreflect.Message {
  382. return xxx_Enums{m}
  383. }
  384. func (m xxx_Enums) Type() protoreflect.MessageType {
  385. return xxx_Test_ProtoFile_MessageTypes[2].Type
  386. }
  387. func (m xxx_Enums) KnownFields() protoreflect.KnownFields {
  388. return xxx_Test_ProtoFile_MessageTypes[2].KnownFieldsOf(m.m)
  389. }
  390. func (m xxx_Enums) UnknownFields() protoreflect.UnknownFields {
  391. return xxx_Test_ProtoFile_MessageTypes[2].UnknownFieldsOf(m.m)
  392. }
  393. func (m xxx_Enums) Interface() protoreflect.ProtoMessage {
  394. return m.m
  395. }
  396. func (m *Enums) Reset() { *m = Enums{} }
  397. func (m *Enums) String() string { return proto.CompactTextString(m) }
  398. func (*Enums) ProtoMessage() {}
  399. func (*Enums) Descriptor() ([]byte, []int) {
  400. return fileDescriptor_c8d7acc1bcec9a72, []int{2}
  401. }
  402. func (m *Enums) XXX_Unmarshal(b []byte) error {
  403. return xxx_messageInfo_Enums.Unmarshal(m, b)
  404. }
  405. func (m *Enums) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  406. return xxx_messageInfo_Enums.Marshal(b, m, deterministic)
  407. }
  408. func (m *Enums) XXX_Merge(src proto.Message) {
  409. xxx_messageInfo_Enums.Merge(m, src)
  410. }
  411. func (m *Enums) XXX_Size() int {
  412. return xxx_messageInfo_Enums.Size(m)
  413. }
  414. func (m *Enums) XXX_DiscardUnknown() {
  415. xxx_messageInfo_Enums.DiscardUnknown(m)
  416. }
  417. var xxx_messageInfo_Enums proto.InternalMessageInfo
  418. func (m *Enums) GetOptEnum() Enum {
  419. if m != nil && m.OptEnum != nil {
  420. return *m.OptEnum
  421. }
  422. return Enum_UNKNOWN
  423. }
  424. func (m *Enums) GetRptEnum() []Enum {
  425. if m != nil {
  426. return m.RptEnum
  427. }
  428. return nil
  429. }
  430. func (m *Enums) GetOptNestedEnum() Enums_NestedEnum {
  431. if m != nil && m.OptNestedEnum != nil {
  432. return *m.OptNestedEnum
  433. }
  434. return Enums_UNO
  435. }
  436. func (m *Enums) GetRptNestedEnum() []Enums_NestedEnum {
  437. if m != nil {
  438. return m.RptNestedEnum
  439. }
  440. return nil
  441. }
  442. // Message contains message and group fields.
  443. type Nests struct {
  444. OptNested *Nested `protobuf:"bytes,1,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
  445. Optgroup *Nests_OptGroup `protobuf:"group,2,opt,name=OptGroup,json=optgroup" json:"optgroup,omitempty"`
  446. RptNested []*Nested `protobuf:"bytes,3,rep,name=rpt_nested,json=rptNested" json:"rpt_nested,omitempty"`
  447. Rptgroup []*Nests_RptGroup `protobuf:"group,4,rep,name=RptGroup,json=rptgroup" json:"rptgroup,omitempty"`
  448. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  449. XXX_unrecognized []byte `json:"-"`
  450. XXX_sizecache int32 `json:"-"`
  451. }
  452. type xxx_Nests struct{ m *Nests }
  453. func (m *Nests) ProtoReflect() protoreflect.Message {
  454. return xxx_Nests{m}
  455. }
  456. func (m xxx_Nests) Type() protoreflect.MessageType {
  457. return xxx_Test_ProtoFile_MessageTypes[3].Type
  458. }
  459. func (m xxx_Nests) KnownFields() protoreflect.KnownFields {
  460. return xxx_Test_ProtoFile_MessageTypes[3].KnownFieldsOf(m.m)
  461. }
  462. func (m xxx_Nests) UnknownFields() protoreflect.UnknownFields {
  463. return xxx_Test_ProtoFile_MessageTypes[3].UnknownFieldsOf(m.m)
  464. }
  465. func (m xxx_Nests) Interface() protoreflect.ProtoMessage {
  466. return m.m
  467. }
  468. func (m *Nests) Reset() { *m = Nests{} }
  469. func (m *Nests) String() string { return proto.CompactTextString(m) }
  470. func (*Nests) ProtoMessage() {}
  471. func (*Nests) Descriptor() ([]byte, []int) {
  472. return fileDescriptor_c8d7acc1bcec9a72, []int{3}
  473. }
  474. func (m *Nests) XXX_Unmarshal(b []byte) error {
  475. return xxx_messageInfo_Nests.Unmarshal(m, b)
  476. }
  477. func (m *Nests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  478. return xxx_messageInfo_Nests.Marshal(b, m, deterministic)
  479. }
  480. func (m *Nests) XXX_Merge(src proto.Message) {
  481. xxx_messageInfo_Nests.Merge(m, src)
  482. }
  483. func (m *Nests) XXX_Size() int {
  484. return xxx_messageInfo_Nests.Size(m)
  485. }
  486. func (m *Nests) XXX_DiscardUnknown() {
  487. xxx_messageInfo_Nests.DiscardUnknown(m)
  488. }
  489. var xxx_messageInfo_Nests proto.InternalMessageInfo
  490. func (m *Nests) GetOptNested() *Nested {
  491. if m != nil {
  492. return m.OptNested
  493. }
  494. return nil
  495. }
  496. func (m *Nests) GetOptgroup() *Nests_OptGroup {
  497. if m != nil {
  498. return m.Optgroup
  499. }
  500. return nil
  501. }
  502. func (m *Nests) GetRptNested() []*Nested {
  503. if m != nil {
  504. return m.RptNested
  505. }
  506. return nil
  507. }
  508. func (m *Nests) GetRptgroup() []*Nests_RptGroup {
  509. if m != nil {
  510. return m.Rptgroup
  511. }
  512. return nil
  513. }
  514. // Message type used as submessage.
  515. type Nested struct {
  516. OptString *string `protobuf:"bytes,1,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
  517. OptNested *Nested `protobuf:"bytes,2,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
  518. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  519. XXX_unrecognized []byte `json:"-"`
  520. XXX_sizecache int32 `json:"-"`
  521. }
  522. type xxx_Nested struct{ m *Nested }
  523. func (m *Nested) ProtoReflect() protoreflect.Message {
  524. return xxx_Nested{m}
  525. }
  526. func (m xxx_Nested) Type() protoreflect.MessageType {
  527. return xxx_Test_ProtoFile_MessageTypes[4].Type
  528. }
  529. func (m xxx_Nested) KnownFields() protoreflect.KnownFields {
  530. return xxx_Test_ProtoFile_MessageTypes[4].KnownFieldsOf(m.m)
  531. }
  532. func (m xxx_Nested) UnknownFields() protoreflect.UnknownFields {
  533. return xxx_Test_ProtoFile_MessageTypes[4].UnknownFieldsOf(m.m)
  534. }
  535. func (m xxx_Nested) Interface() protoreflect.ProtoMessage {
  536. return m.m
  537. }
  538. func (m *Nested) Reset() { *m = Nested{} }
  539. func (m *Nested) String() string { return proto.CompactTextString(m) }
  540. func (*Nested) ProtoMessage() {}
  541. func (*Nested) Descriptor() ([]byte, []int) {
  542. return fileDescriptor_c8d7acc1bcec9a72, []int{4}
  543. }
  544. func (m *Nested) XXX_Unmarshal(b []byte) error {
  545. return xxx_messageInfo_Nested.Unmarshal(m, b)
  546. }
  547. func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  548. return xxx_messageInfo_Nested.Marshal(b, m, deterministic)
  549. }
  550. func (m *Nested) XXX_Merge(src proto.Message) {
  551. xxx_messageInfo_Nested.Merge(m, src)
  552. }
  553. func (m *Nested) XXX_Size() int {
  554. return xxx_messageInfo_Nested.Size(m)
  555. }
  556. func (m *Nested) XXX_DiscardUnknown() {
  557. xxx_messageInfo_Nested.DiscardUnknown(m)
  558. }
  559. var xxx_messageInfo_Nested proto.InternalMessageInfo
  560. func (m *Nested) GetOptString() string {
  561. if m != nil && m.OptString != nil {
  562. return *m.OptString
  563. }
  564. return ""
  565. }
  566. func (m *Nested) GetOptNested() *Nested {
  567. if m != nil {
  568. return m.OptNested
  569. }
  570. return nil
  571. }
  572. // Message contains required fields.
  573. type Requireds struct {
  574. ReqBool *bool `protobuf:"varint,1,req,name=req_bool,json=reqBool" json:"req_bool,omitempty"`
  575. ReqFixed32 *uint32 `protobuf:"fixed32,2,req,name=req_fixed32,json=reqFixed32" json:"req_fixed32,omitempty"`
  576. ReqFixed64 *uint64 `protobuf:"fixed64,3,req,name=req_fixed64,json=reqFixed64" json:"req_fixed64,omitempty"`
  577. ReqSfixed32 *int32 `protobuf:"fixed32,4,req,name=req_sfixed32,json=reqSfixed32" json:"req_sfixed32,omitempty"`
  578. ReqSfixed64 *int64 `protobuf:"fixed64,5,req,name=req_sfixed64,json=reqSfixed64" json:"req_sfixed64,omitempty"`
  579. ReqFloat *float32 `protobuf:"fixed32,6,req,name=req_float,json=reqFloat" json:"req_float,omitempty"`
  580. ReqDouble *float64 `protobuf:"fixed64,7,req,name=req_double,json=reqDouble" json:"req_double,omitempty"`
  581. ReqString *string `protobuf:"bytes,8,req,name=req_string,json=reqString" json:"req_string,omitempty"`
  582. ReqBytes []byte `protobuf:"bytes,9,req,name=req_bytes,json=reqBytes" json:"req_bytes,omitempty"`
  583. ReqEnum *Enum `protobuf:"varint,10,req,name=req_enum,json=reqEnum,enum=pb2.Enum" json:"req_enum,omitempty"`
  584. ReqNested *Nested `protobuf:"bytes,11,req,name=req_nested,json=reqNested" json:"req_nested,omitempty"`
  585. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  586. XXX_unrecognized []byte `json:"-"`
  587. XXX_sizecache int32 `json:"-"`
  588. }
  589. type xxx_Requireds struct{ m *Requireds }
  590. func (m *Requireds) ProtoReflect() protoreflect.Message {
  591. return xxx_Requireds{m}
  592. }
  593. func (m xxx_Requireds) Type() protoreflect.MessageType {
  594. return xxx_Test_ProtoFile_MessageTypes[5].Type
  595. }
  596. func (m xxx_Requireds) KnownFields() protoreflect.KnownFields {
  597. return xxx_Test_ProtoFile_MessageTypes[5].KnownFieldsOf(m.m)
  598. }
  599. func (m xxx_Requireds) UnknownFields() protoreflect.UnknownFields {
  600. return xxx_Test_ProtoFile_MessageTypes[5].UnknownFieldsOf(m.m)
  601. }
  602. func (m xxx_Requireds) Interface() protoreflect.ProtoMessage {
  603. return m.m
  604. }
  605. func (m *Requireds) Reset() { *m = Requireds{} }
  606. func (m *Requireds) String() string { return proto.CompactTextString(m) }
  607. func (*Requireds) ProtoMessage() {}
  608. func (*Requireds) Descriptor() ([]byte, []int) {
  609. return fileDescriptor_c8d7acc1bcec9a72, []int{5}
  610. }
  611. func (m *Requireds) XXX_Unmarshal(b []byte) error {
  612. return xxx_messageInfo_Requireds.Unmarshal(m, b)
  613. }
  614. func (m *Requireds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  615. return xxx_messageInfo_Requireds.Marshal(b, m, deterministic)
  616. }
  617. func (m *Requireds) XXX_Merge(src proto.Message) {
  618. xxx_messageInfo_Requireds.Merge(m, src)
  619. }
  620. func (m *Requireds) XXX_Size() int {
  621. return xxx_messageInfo_Requireds.Size(m)
  622. }
  623. func (m *Requireds) XXX_DiscardUnknown() {
  624. xxx_messageInfo_Requireds.DiscardUnknown(m)
  625. }
  626. var xxx_messageInfo_Requireds proto.InternalMessageInfo
  627. func (m *Requireds) GetReqBool() bool {
  628. if m != nil && m.ReqBool != nil {
  629. return *m.ReqBool
  630. }
  631. return false
  632. }
  633. func (m *Requireds) GetReqFixed32() uint32 {
  634. if m != nil && m.ReqFixed32 != nil {
  635. return *m.ReqFixed32
  636. }
  637. return 0
  638. }
  639. func (m *Requireds) GetReqFixed64() uint64 {
  640. if m != nil && m.ReqFixed64 != nil {
  641. return *m.ReqFixed64
  642. }
  643. return 0
  644. }
  645. func (m *Requireds) GetReqSfixed32() int32 {
  646. if m != nil && m.ReqSfixed32 != nil {
  647. return *m.ReqSfixed32
  648. }
  649. return 0
  650. }
  651. func (m *Requireds) GetReqSfixed64() int64 {
  652. if m != nil && m.ReqSfixed64 != nil {
  653. return *m.ReqSfixed64
  654. }
  655. return 0
  656. }
  657. func (m *Requireds) GetReqFloat() float32 {
  658. if m != nil && m.ReqFloat != nil {
  659. return *m.ReqFloat
  660. }
  661. return 0
  662. }
  663. func (m *Requireds) GetReqDouble() float64 {
  664. if m != nil && m.ReqDouble != nil {
  665. return *m.ReqDouble
  666. }
  667. return 0
  668. }
  669. func (m *Requireds) GetReqString() string {
  670. if m != nil && m.ReqString != nil {
  671. return *m.ReqString
  672. }
  673. return ""
  674. }
  675. func (m *Requireds) GetReqBytes() []byte {
  676. if m != nil {
  677. return m.ReqBytes
  678. }
  679. return nil
  680. }
  681. func (m *Requireds) GetReqEnum() Enum {
  682. if m != nil && m.ReqEnum != nil {
  683. return *m.ReqEnum
  684. }
  685. return Enum_UNKNOWN
  686. }
  687. func (m *Requireds) GetReqNested() *Nested {
  688. if m != nil {
  689. return m.ReqNested
  690. }
  691. return nil
  692. }
  693. // Message contains both required and optional fields.
  694. type PartialRequired struct {
  695. ReqString *string `protobuf:"bytes,1,req,name=req_string,json=reqString" json:"req_string,omitempty"`
  696. OptString *string `protobuf:"bytes,2,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
  697. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  698. XXX_unrecognized []byte `json:"-"`
  699. XXX_sizecache int32 `json:"-"`
  700. }
  701. type xxx_PartialRequired struct{ m *PartialRequired }
  702. func (m *PartialRequired) ProtoReflect() protoreflect.Message {
  703. return xxx_PartialRequired{m}
  704. }
  705. func (m xxx_PartialRequired) Type() protoreflect.MessageType {
  706. return xxx_Test_ProtoFile_MessageTypes[6].Type
  707. }
  708. func (m xxx_PartialRequired) KnownFields() protoreflect.KnownFields {
  709. return xxx_Test_ProtoFile_MessageTypes[6].KnownFieldsOf(m.m)
  710. }
  711. func (m xxx_PartialRequired) UnknownFields() protoreflect.UnknownFields {
  712. return xxx_Test_ProtoFile_MessageTypes[6].UnknownFieldsOf(m.m)
  713. }
  714. func (m xxx_PartialRequired) Interface() protoreflect.ProtoMessage {
  715. return m.m
  716. }
  717. func (m *PartialRequired) Reset() { *m = PartialRequired{} }
  718. func (m *PartialRequired) String() string { return proto.CompactTextString(m) }
  719. func (*PartialRequired) ProtoMessage() {}
  720. func (*PartialRequired) Descriptor() ([]byte, []int) {
  721. return fileDescriptor_c8d7acc1bcec9a72, []int{6}
  722. }
  723. func (m *PartialRequired) XXX_Unmarshal(b []byte) error {
  724. return xxx_messageInfo_PartialRequired.Unmarshal(m, b)
  725. }
  726. func (m *PartialRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  727. return xxx_messageInfo_PartialRequired.Marshal(b, m, deterministic)
  728. }
  729. func (m *PartialRequired) XXX_Merge(src proto.Message) {
  730. xxx_messageInfo_PartialRequired.Merge(m, src)
  731. }
  732. func (m *PartialRequired) XXX_Size() int {
  733. return xxx_messageInfo_PartialRequired.Size(m)
  734. }
  735. func (m *PartialRequired) XXX_DiscardUnknown() {
  736. xxx_messageInfo_PartialRequired.DiscardUnknown(m)
  737. }
  738. var xxx_messageInfo_PartialRequired proto.InternalMessageInfo
  739. func (m *PartialRequired) GetReqString() string {
  740. if m != nil && m.ReqString != nil {
  741. return *m.ReqString
  742. }
  743. return ""
  744. }
  745. func (m *PartialRequired) GetOptString() string {
  746. if m != nil && m.OptString != nil {
  747. return *m.OptString
  748. }
  749. return ""
  750. }
  751. // Message contains oneof field.
  752. type Oneofs struct {
  753. // Types that are valid to be assigned to Union:
  754. // *Oneofs_Str
  755. // *Oneofs_Msg
  756. Union isOneofs_Union `protobuf_oneof:"union"`
  757. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  758. XXX_unrecognized []byte `json:"-"`
  759. XXX_sizecache int32 `json:"-"`
  760. }
  761. type xxx_Oneofs struct{ m *Oneofs }
  762. func (m *Oneofs) ProtoReflect() protoreflect.Message {
  763. return xxx_Oneofs{m}
  764. }
  765. func (m xxx_Oneofs) Type() protoreflect.MessageType {
  766. return xxx_Test_ProtoFile_MessageTypes[7].Type
  767. }
  768. func (m xxx_Oneofs) KnownFields() protoreflect.KnownFields {
  769. return xxx_Test_ProtoFile_MessageTypes[7].KnownFieldsOf(m.m)
  770. }
  771. func (m xxx_Oneofs) UnknownFields() protoreflect.UnknownFields {
  772. return xxx_Test_ProtoFile_MessageTypes[7].UnknownFieldsOf(m.m)
  773. }
  774. func (m xxx_Oneofs) Interface() protoreflect.ProtoMessage {
  775. return m.m
  776. }
  777. func (m *Oneofs) Reset() { *m = Oneofs{} }
  778. func (m *Oneofs) String() string { return proto.CompactTextString(m) }
  779. func (*Oneofs) ProtoMessage() {}
  780. func (*Oneofs) Descriptor() ([]byte, []int) {
  781. return fileDescriptor_c8d7acc1bcec9a72, []int{7}
  782. }
  783. func (m *Oneofs) XXX_Unmarshal(b []byte) error {
  784. return xxx_messageInfo_Oneofs.Unmarshal(m, b)
  785. }
  786. func (m *Oneofs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  787. return xxx_messageInfo_Oneofs.Marshal(b, m, deterministic)
  788. }
  789. func (m *Oneofs) XXX_Merge(src proto.Message) {
  790. xxx_messageInfo_Oneofs.Merge(m, src)
  791. }
  792. func (m *Oneofs) XXX_Size() int {
  793. return xxx_messageInfo_Oneofs.Size(m)
  794. }
  795. func (m *Oneofs) XXX_DiscardUnknown() {
  796. xxx_messageInfo_Oneofs.DiscardUnknown(m)
  797. }
  798. var xxx_messageInfo_Oneofs proto.InternalMessageInfo
  799. type isOneofs_Union interface {
  800. isOneofs_Union()
  801. }
  802. type Oneofs_Str struct {
  803. Str string `protobuf:"bytes,1,opt,name=str,oneof"`
  804. }
  805. type Oneofs_Msg struct {
  806. Msg *Nested `protobuf:"bytes,2,opt,name=msg,oneof"`
  807. }
  808. func (*Oneofs_Str) isOneofs_Union() {}
  809. func (*Oneofs_Msg) isOneofs_Union() {}
  810. func (m *Oneofs) GetUnion() isOneofs_Union {
  811. if m != nil {
  812. return m.Union
  813. }
  814. return nil
  815. }
  816. func (m *Oneofs) GetStr() string {
  817. if x, ok := m.GetUnion().(*Oneofs_Str); ok {
  818. return x.Str
  819. }
  820. return ""
  821. }
  822. func (m *Oneofs) GetMsg() *Nested {
  823. if x, ok := m.GetUnion().(*Oneofs_Msg); ok {
  824. return x.Msg
  825. }
  826. return nil
  827. }
  828. // XXX_OneofWrappers is for the internal use of the proto package.
  829. func (*Oneofs) XXX_OneofWrappers() []interface{} {
  830. return []interface{}{
  831. (*Oneofs_Str)(nil),
  832. (*Oneofs_Msg)(nil),
  833. }
  834. }
  835. // Message contains map fields.
  836. type Maps struct {
  837. Int32ToStr map[int32]string `protobuf:"bytes,1,rep,name=int32_to_str,json=int32ToStr" json:"int32_to_str,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  838. Sfixed64ToBool map[int64]bool `protobuf:"bytes,2,rep,name=sfixed64_to_bool,json=sfixed64ToBool" json:"sfixed64_to_bool,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  839. BoolToUint32 map[bool]uint32 `protobuf:"bytes,3,rep,name=bool_to_uint32,json=boolToUint32" json:"bool_to_uint32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  840. Uint64ToEnum map[uint64]Enum `protobuf:"bytes,4,rep,name=uint64_to_enum,json=uint64ToEnum" json:"uint64_to_enum,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=pb2.Enum"`
  841. StrToNested map[string]*Nested `protobuf:"bytes,5,rep,name=str_to_nested,json=strToNested" json:"str_to_nested,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  842. StrToOneofs map[string]*Oneofs `protobuf:"bytes,6,rep,name=str_to_oneofs,json=strToOneofs" json:"str_to_oneofs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  843. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  844. XXX_unrecognized []byte `json:"-"`
  845. XXX_sizecache int32 `json:"-"`
  846. }
  847. type xxx_Maps struct{ m *Maps }
  848. func (m *Maps) ProtoReflect() protoreflect.Message {
  849. return xxx_Maps{m}
  850. }
  851. func (m xxx_Maps) Type() protoreflect.MessageType {
  852. return xxx_Test_ProtoFile_MessageTypes[8].Type
  853. }
  854. func (m xxx_Maps) KnownFields() protoreflect.KnownFields {
  855. return xxx_Test_ProtoFile_MessageTypes[8].KnownFieldsOf(m.m)
  856. }
  857. func (m xxx_Maps) UnknownFields() protoreflect.UnknownFields {
  858. return xxx_Test_ProtoFile_MessageTypes[8].UnknownFieldsOf(m.m)
  859. }
  860. func (m xxx_Maps) Interface() protoreflect.ProtoMessage {
  861. return m.m
  862. }
  863. func (m *Maps) Reset() { *m = Maps{} }
  864. func (m *Maps) String() string { return proto.CompactTextString(m) }
  865. func (*Maps) ProtoMessage() {}
  866. func (*Maps) Descriptor() ([]byte, []int) {
  867. return fileDescriptor_c8d7acc1bcec9a72, []int{8}
  868. }
  869. func (m *Maps) XXX_Unmarshal(b []byte) error {
  870. return xxx_messageInfo_Maps.Unmarshal(m, b)
  871. }
  872. func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  873. return xxx_messageInfo_Maps.Marshal(b, m, deterministic)
  874. }
  875. func (m *Maps) XXX_Merge(src proto.Message) {
  876. xxx_messageInfo_Maps.Merge(m, src)
  877. }
  878. func (m *Maps) XXX_Size() int {
  879. return xxx_messageInfo_Maps.Size(m)
  880. }
  881. func (m *Maps) XXX_DiscardUnknown() {
  882. xxx_messageInfo_Maps.DiscardUnknown(m)
  883. }
  884. var xxx_messageInfo_Maps proto.InternalMessageInfo
  885. func (m *Maps) GetInt32ToStr() map[int32]string {
  886. if m != nil {
  887. return m.Int32ToStr
  888. }
  889. return nil
  890. }
  891. func (m *Maps) GetSfixed64ToBool() map[int64]bool {
  892. if m != nil {
  893. return m.Sfixed64ToBool
  894. }
  895. return nil
  896. }
  897. func (m *Maps) GetBoolToUint32() map[bool]uint32 {
  898. if m != nil {
  899. return m.BoolToUint32
  900. }
  901. return nil
  902. }
  903. func (m *Maps) GetUint64ToEnum() map[uint64]Enum {
  904. if m != nil {
  905. return m.Uint64ToEnum
  906. }
  907. return nil
  908. }
  909. func (m *Maps) GetStrToNested() map[string]*Nested {
  910. if m != nil {
  911. return m.StrToNested
  912. }
  913. return nil
  914. }
  915. func (m *Maps) GetStrToOneofs() map[string]*Oneofs {
  916. if m != nil {
  917. return m.StrToOneofs
  918. }
  919. return nil
  920. }
  921. type NestedWithRequired struct {
  922. ReqString *string `protobuf:"bytes,1,req,name=req_string,json=reqString" json:"req_string,omitempty"`
  923. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  924. XXX_unrecognized []byte `json:"-"`
  925. XXX_sizecache int32 `json:"-"`
  926. }
  927. type xxx_NestedWithRequired struct{ m *NestedWithRequired }
  928. func (m *NestedWithRequired) ProtoReflect() protoreflect.Message {
  929. return xxx_NestedWithRequired{m}
  930. }
  931. func (m xxx_NestedWithRequired) Type() protoreflect.MessageType {
  932. return xxx_Test_ProtoFile_MessageTypes[9].Type
  933. }
  934. func (m xxx_NestedWithRequired) KnownFields() protoreflect.KnownFields {
  935. return xxx_Test_ProtoFile_MessageTypes[9].KnownFieldsOf(m.m)
  936. }
  937. func (m xxx_NestedWithRequired) UnknownFields() protoreflect.UnknownFields {
  938. return xxx_Test_ProtoFile_MessageTypes[9].UnknownFieldsOf(m.m)
  939. }
  940. func (m xxx_NestedWithRequired) Interface() protoreflect.ProtoMessage {
  941. return m.m
  942. }
  943. func (m *NestedWithRequired) Reset() { *m = NestedWithRequired{} }
  944. func (m *NestedWithRequired) String() string { return proto.CompactTextString(m) }
  945. func (*NestedWithRequired) ProtoMessage() {}
  946. func (*NestedWithRequired) Descriptor() ([]byte, []int) {
  947. return fileDescriptor_c8d7acc1bcec9a72, []int{9}
  948. }
  949. func (m *NestedWithRequired) XXX_Unmarshal(b []byte) error {
  950. return xxx_messageInfo_NestedWithRequired.Unmarshal(m, b)
  951. }
  952. func (m *NestedWithRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  953. return xxx_messageInfo_NestedWithRequired.Marshal(b, m, deterministic)
  954. }
  955. func (m *NestedWithRequired) XXX_Merge(src proto.Message) {
  956. xxx_messageInfo_NestedWithRequired.Merge(m, src)
  957. }
  958. func (m *NestedWithRequired) XXX_Size() int {
  959. return xxx_messageInfo_NestedWithRequired.Size(m)
  960. }
  961. func (m *NestedWithRequired) XXX_DiscardUnknown() {
  962. xxx_messageInfo_NestedWithRequired.DiscardUnknown(m)
  963. }
  964. var xxx_messageInfo_NestedWithRequired proto.InternalMessageInfo
  965. func (m *NestedWithRequired) GetReqString() string {
  966. if m != nil && m.ReqString != nil {
  967. return *m.ReqString
  968. }
  969. return ""
  970. }
  971. type IndirectRequired struct {
  972. OptNested *NestedWithRequired `protobuf:"bytes,1,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
  973. RptNested []*NestedWithRequired `protobuf:"bytes,2,rep,name=rpt_nested,json=rptNested" json:"rpt_nested,omitempty"`
  974. StrToNested map[string]*NestedWithRequired `protobuf:"bytes,3,rep,name=str_to_nested,json=strToNested" json:"str_to_nested,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  975. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  976. XXX_unrecognized []byte `json:"-"`
  977. XXX_sizecache int32 `json:"-"`
  978. }
  979. type xxx_IndirectRequired struct{ m *IndirectRequired }
  980. func (m *IndirectRequired) ProtoReflect() protoreflect.Message {
  981. return xxx_IndirectRequired{m}
  982. }
  983. func (m xxx_IndirectRequired) Type() protoreflect.MessageType {
  984. return xxx_Test_ProtoFile_MessageTypes[10].Type
  985. }
  986. func (m xxx_IndirectRequired) KnownFields() protoreflect.KnownFields {
  987. return xxx_Test_ProtoFile_MessageTypes[10].KnownFieldsOf(m.m)
  988. }
  989. func (m xxx_IndirectRequired) UnknownFields() protoreflect.UnknownFields {
  990. return xxx_Test_ProtoFile_MessageTypes[10].UnknownFieldsOf(m.m)
  991. }
  992. func (m xxx_IndirectRequired) Interface() protoreflect.ProtoMessage {
  993. return m.m
  994. }
  995. func (m *IndirectRequired) Reset() { *m = IndirectRequired{} }
  996. func (m *IndirectRequired) String() string { return proto.CompactTextString(m) }
  997. func (*IndirectRequired) ProtoMessage() {}
  998. func (*IndirectRequired) Descriptor() ([]byte, []int) {
  999. return fileDescriptor_c8d7acc1bcec9a72, []int{10}
  1000. }
  1001. func (m *IndirectRequired) XXX_Unmarshal(b []byte) error {
  1002. return xxx_messageInfo_IndirectRequired.Unmarshal(m, b)
  1003. }
  1004. func (m *IndirectRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1005. return xxx_messageInfo_IndirectRequired.Marshal(b, m, deterministic)
  1006. }
  1007. func (m *IndirectRequired) XXX_Merge(src proto.Message) {
  1008. xxx_messageInfo_IndirectRequired.Merge(m, src)
  1009. }
  1010. func (m *IndirectRequired) XXX_Size() int {
  1011. return xxx_messageInfo_IndirectRequired.Size(m)
  1012. }
  1013. func (m *IndirectRequired) XXX_DiscardUnknown() {
  1014. xxx_messageInfo_IndirectRequired.DiscardUnknown(m)
  1015. }
  1016. var xxx_messageInfo_IndirectRequired proto.InternalMessageInfo
  1017. func (m *IndirectRequired) GetOptNested() *NestedWithRequired {
  1018. if m != nil {
  1019. return m.OptNested
  1020. }
  1021. return nil
  1022. }
  1023. func (m *IndirectRequired) GetRptNested() []*NestedWithRequired {
  1024. if m != nil {
  1025. return m.RptNested
  1026. }
  1027. return nil
  1028. }
  1029. func (m *IndirectRequired) GetStrToNested() map[string]*NestedWithRequired {
  1030. if m != nil {
  1031. return m.StrToNested
  1032. }
  1033. return nil
  1034. }
  1035. type Extensions struct {
  1036. OptString *string `protobuf:"bytes,1,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
  1037. OptBool *bool `protobuf:"varint,101,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
  1038. OptInt32 *int32 `protobuf:"varint,2,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"`
  1039. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1040. proto.XXX_InternalExtensions `json:"-"`
  1041. XXX_unrecognized []byte `json:"-"`
  1042. XXX_sizecache int32 `json:"-"`
  1043. }
  1044. type xxx_Extensions struct{ m *Extensions }
  1045. func (m *Extensions) ProtoReflect() protoreflect.Message {
  1046. return xxx_Extensions{m}
  1047. }
  1048. func (m xxx_Extensions) Type() protoreflect.MessageType {
  1049. return xxx_Test_ProtoFile_MessageTypes[11].Type
  1050. }
  1051. func (m xxx_Extensions) KnownFields() protoreflect.KnownFields {
  1052. return xxx_Test_ProtoFile_MessageTypes[11].KnownFieldsOf(m.m)
  1053. }
  1054. func (m xxx_Extensions) UnknownFields() protoreflect.UnknownFields {
  1055. return xxx_Test_ProtoFile_MessageTypes[11].UnknownFieldsOf(m.m)
  1056. }
  1057. func (m xxx_Extensions) Interface() protoreflect.ProtoMessage {
  1058. return m.m
  1059. }
  1060. func (m *Extensions) Reset() { *m = Extensions{} }
  1061. func (m *Extensions) String() string { return proto.CompactTextString(m) }
  1062. func (*Extensions) ProtoMessage() {}
  1063. func (*Extensions) Descriptor() ([]byte, []int) {
  1064. return fileDescriptor_c8d7acc1bcec9a72, []int{11}
  1065. }
  1066. var extRange_Extensions = []proto.ExtensionRange{
  1067. {Start: 20, End: 100},
  1068. }
  1069. func (*Extensions) ExtensionRangeArray() []proto.ExtensionRange {
  1070. return extRange_Extensions
  1071. }
  1072. func (m *Extensions) XXX_Unmarshal(b []byte) error {
  1073. return xxx_messageInfo_Extensions.Unmarshal(m, b)
  1074. }
  1075. func (m *Extensions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1076. return xxx_messageInfo_Extensions.Marshal(b, m, deterministic)
  1077. }
  1078. func (m *Extensions) XXX_Merge(src proto.Message) {
  1079. xxx_messageInfo_Extensions.Merge(m, src)
  1080. }
  1081. func (m *Extensions) XXX_Size() int {
  1082. return xxx_messageInfo_Extensions.Size(m)
  1083. }
  1084. func (m *Extensions) XXX_DiscardUnknown() {
  1085. xxx_messageInfo_Extensions.DiscardUnknown(m)
  1086. }
  1087. var xxx_messageInfo_Extensions proto.InternalMessageInfo
  1088. func (m *Extensions) GetOptString() string {
  1089. if m != nil && m.OptString != nil {
  1090. return *m.OptString
  1091. }
  1092. return ""
  1093. }
  1094. func (m *Extensions) GetOptBool() bool {
  1095. if m != nil && m.OptBool != nil {
  1096. return *m.OptBool
  1097. }
  1098. return false
  1099. }
  1100. func (m *Extensions) GetOptInt32() int32 {
  1101. if m != nil && m.OptInt32 != nil {
  1102. return *m.OptInt32
  1103. }
  1104. return 0
  1105. }
  1106. type ExtensionsContainer struct {
  1107. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1108. XXX_unrecognized []byte `json:"-"`
  1109. XXX_sizecache int32 `json:"-"`
  1110. }
  1111. type xxx_ExtensionsContainer struct{ m *ExtensionsContainer }
  1112. func (m *ExtensionsContainer) ProtoReflect() protoreflect.Message {
  1113. return xxx_ExtensionsContainer{m}
  1114. }
  1115. func (m xxx_ExtensionsContainer) Type() protoreflect.MessageType {
  1116. return xxx_Test_ProtoFile_MessageTypes[12].Type
  1117. }
  1118. func (m xxx_ExtensionsContainer) KnownFields() protoreflect.KnownFields {
  1119. return xxx_Test_ProtoFile_MessageTypes[12].KnownFieldsOf(m.m)
  1120. }
  1121. func (m xxx_ExtensionsContainer) UnknownFields() protoreflect.UnknownFields {
  1122. return xxx_Test_ProtoFile_MessageTypes[12].UnknownFieldsOf(m.m)
  1123. }
  1124. func (m xxx_ExtensionsContainer) Interface() protoreflect.ProtoMessage {
  1125. return m.m
  1126. }
  1127. func (m *ExtensionsContainer) Reset() { *m = ExtensionsContainer{} }
  1128. func (m *ExtensionsContainer) String() string { return proto.CompactTextString(m) }
  1129. func (*ExtensionsContainer) ProtoMessage() {}
  1130. func (*ExtensionsContainer) Descriptor() ([]byte, []int) {
  1131. return fileDescriptor_c8d7acc1bcec9a72, []int{12}
  1132. }
  1133. func (m *ExtensionsContainer) XXX_Unmarshal(b []byte) error {
  1134. return xxx_messageInfo_ExtensionsContainer.Unmarshal(m, b)
  1135. }
  1136. func (m *ExtensionsContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1137. return xxx_messageInfo_ExtensionsContainer.Marshal(b, m, deterministic)
  1138. }
  1139. func (m *ExtensionsContainer) XXX_Merge(src proto.Message) {
  1140. xxx_messageInfo_ExtensionsContainer.Merge(m, src)
  1141. }
  1142. func (m *ExtensionsContainer) XXX_Size() int {
  1143. return xxx_messageInfo_ExtensionsContainer.Size(m)
  1144. }
  1145. func (m *ExtensionsContainer) XXX_DiscardUnknown() {
  1146. xxx_messageInfo_ExtensionsContainer.DiscardUnknown(m)
  1147. }
  1148. var xxx_messageInfo_ExtensionsContainer proto.InternalMessageInfo
  1149. type MessageSet struct {
  1150. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1151. proto.XXX_InternalExtensions `protobuf_messageset:"1" json:"-"`
  1152. XXX_unrecognized []byte `json:"-"`
  1153. XXX_sizecache int32 `json:"-"`
  1154. }
  1155. type xxx_MessageSet struct{ m *MessageSet }
  1156. func (m *MessageSet) ProtoReflect() protoreflect.Message {
  1157. return xxx_MessageSet{m}
  1158. }
  1159. func (m xxx_MessageSet) Type() protoreflect.MessageType {
  1160. return xxx_Test_ProtoFile_MessageTypes[13].Type
  1161. }
  1162. func (m xxx_MessageSet) KnownFields() protoreflect.KnownFields {
  1163. return xxx_Test_ProtoFile_MessageTypes[13].KnownFieldsOf(m.m)
  1164. }
  1165. func (m xxx_MessageSet) UnknownFields() protoreflect.UnknownFields {
  1166. return xxx_Test_ProtoFile_MessageTypes[13].UnknownFieldsOf(m.m)
  1167. }
  1168. func (m xxx_MessageSet) Interface() protoreflect.ProtoMessage {
  1169. return m.m
  1170. }
  1171. func (m *MessageSet) Reset() { *m = MessageSet{} }
  1172. func (m *MessageSet) String() string { return proto.CompactTextString(m) }
  1173. func (*MessageSet) ProtoMessage() {}
  1174. func (*MessageSet) Descriptor() ([]byte, []int) {
  1175. return fileDescriptor_c8d7acc1bcec9a72, []int{13}
  1176. }
  1177. var extRange_MessageSet = []proto.ExtensionRange{
  1178. {Start: 4, End: 2147483646},
  1179. }
  1180. func (*MessageSet) ExtensionRangeArray() []proto.ExtensionRange {
  1181. return extRange_MessageSet
  1182. }
  1183. func (m *MessageSet) XXX_Unmarshal(b []byte) error {
  1184. return xxx_messageInfo_MessageSet.Unmarshal(m, b)
  1185. }
  1186. func (m *MessageSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1187. return xxx_messageInfo_MessageSet.Marshal(b, m, deterministic)
  1188. }
  1189. func (m *MessageSet) XXX_Merge(src proto.Message) {
  1190. xxx_messageInfo_MessageSet.Merge(m, src)
  1191. }
  1192. func (m *MessageSet) XXX_Size() int {
  1193. return xxx_messageInfo_MessageSet.Size(m)
  1194. }
  1195. func (m *MessageSet) XXX_DiscardUnknown() {
  1196. xxx_messageInfo_MessageSet.DiscardUnknown(m)
  1197. }
  1198. var xxx_messageInfo_MessageSet proto.InternalMessageInfo
  1199. type MessageSetExtension struct {
  1200. OptString *string `protobuf:"bytes,1,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
  1201. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1202. XXX_unrecognized []byte `json:"-"`
  1203. XXX_sizecache int32 `json:"-"`
  1204. }
  1205. type xxx_MessageSetExtension struct{ m *MessageSetExtension }
  1206. func (m *MessageSetExtension) ProtoReflect() protoreflect.Message {
  1207. return xxx_MessageSetExtension{m}
  1208. }
  1209. func (m xxx_MessageSetExtension) Type() protoreflect.MessageType {
  1210. return xxx_Test_ProtoFile_MessageTypes[14].Type
  1211. }
  1212. func (m xxx_MessageSetExtension) KnownFields() protoreflect.KnownFields {
  1213. return xxx_Test_ProtoFile_MessageTypes[14].KnownFieldsOf(m.m)
  1214. }
  1215. func (m xxx_MessageSetExtension) UnknownFields() protoreflect.UnknownFields {
  1216. return xxx_Test_ProtoFile_MessageTypes[14].UnknownFieldsOf(m.m)
  1217. }
  1218. func (m xxx_MessageSetExtension) Interface() protoreflect.ProtoMessage {
  1219. return m.m
  1220. }
  1221. func (m *MessageSetExtension) Reset() { *m = MessageSetExtension{} }
  1222. func (m *MessageSetExtension) String() string { return proto.CompactTextString(m) }
  1223. func (*MessageSetExtension) ProtoMessage() {}
  1224. func (*MessageSetExtension) Descriptor() ([]byte, []int) {
  1225. return fileDescriptor_c8d7acc1bcec9a72, []int{14}
  1226. }
  1227. func (m *MessageSetExtension) XXX_Unmarshal(b []byte) error {
  1228. return xxx_messageInfo_MessageSetExtension.Unmarshal(m, b)
  1229. }
  1230. func (m *MessageSetExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1231. return xxx_messageInfo_MessageSetExtension.Marshal(b, m, deterministic)
  1232. }
  1233. func (m *MessageSetExtension) XXX_Merge(src proto.Message) {
  1234. xxx_messageInfo_MessageSetExtension.Merge(m, src)
  1235. }
  1236. func (m *MessageSetExtension) XXX_Size() int {
  1237. return xxx_messageInfo_MessageSetExtension.Size(m)
  1238. }
  1239. func (m *MessageSetExtension) XXX_DiscardUnknown() {
  1240. xxx_messageInfo_MessageSetExtension.DiscardUnknown(m)
  1241. }
  1242. var xxx_messageInfo_MessageSetExtension proto.InternalMessageInfo
  1243. func (m *MessageSetExtension) GetOptString() string {
  1244. if m != nil && m.OptString != nil {
  1245. return *m.OptString
  1246. }
  1247. return ""
  1248. }
  1249. // Message contains well-known type fields.
  1250. type KnownTypes struct {
  1251. OptBool *wrappers.BoolValue `protobuf:"bytes,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
  1252. OptInt32 *wrappers.Int32Value `protobuf:"bytes,2,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"`
  1253. OptInt64 *wrappers.Int64Value `protobuf:"bytes,3,opt,name=opt_int64,json=optInt64" json:"opt_int64,omitempty"`
  1254. OptUint32 *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=opt_uint32,json=optUint32" json:"opt_uint32,omitempty"`
  1255. OptUint64 *wrappers.UInt64Value `protobuf:"bytes,5,opt,name=opt_uint64,json=optUint64" json:"opt_uint64,omitempty"`
  1256. OptFloat *wrappers.FloatValue `protobuf:"bytes,6,opt,name=opt_float,json=optFloat" json:"opt_float,omitempty"`
  1257. OptDouble *wrappers.DoubleValue `protobuf:"bytes,7,opt,name=opt_double,json=optDouble" json:"opt_double,omitempty"`
  1258. OptString *wrappers.StringValue `protobuf:"bytes,8,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
  1259. OptBytes *wrappers.BytesValue `protobuf:"bytes,9,opt,name=opt_bytes,json=optBytes" json:"opt_bytes,omitempty"`
  1260. OptDuration *duration.Duration `protobuf:"bytes,20,opt,name=opt_duration,json=optDuration" json:"opt_duration,omitempty"`
  1261. OptTimestamp *timestamp.Timestamp `protobuf:"bytes,21,opt,name=opt_timestamp,json=optTimestamp" json:"opt_timestamp,omitempty"`
  1262. OptStruct *_struct.Struct `protobuf:"bytes,25,opt,name=opt_struct,json=optStruct" json:"opt_struct,omitempty"`
  1263. OptList *_struct.ListValue `protobuf:"bytes,26,opt,name=opt_list,json=optList" json:"opt_list,omitempty"`
  1264. OptValue *_struct.Value `protobuf:"bytes,27,opt,name=opt_value,json=optValue" json:"opt_value,omitempty"`
  1265. OptEmpty *empty.Empty `protobuf:"bytes,30,opt,name=opt_empty,json=optEmpty" json:"opt_empty,omitempty"`
  1266. OptAny *any.Any `protobuf:"bytes,32,opt,name=opt_any,json=optAny" json:"opt_any,omitempty"`
  1267. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1268. XXX_unrecognized []byte `json:"-"`
  1269. XXX_sizecache int32 `json:"-"`
  1270. }
  1271. type xxx_KnownTypes struct{ m *KnownTypes }
  1272. func (m *KnownTypes) ProtoReflect() protoreflect.Message {
  1273. return xxx_KnownTypes{m}
  1274. }
  1275. func (m xxx_KnownTypes) Type() protoreflect.MessageType {
  1276. return xxx_Test_ProtoFile_MessageTypes[15].Type
  1277. }
  1278. func (m xxx_KnownTypes) KnownFields() protoreflect.KnownFields {
  1279. return xxx_Test_ProtoFile_MessageTypes[15].KnownFieldsOf(m.m)
  1280. }
  1281. func (m xxx_KnownTypes) UnknownFields() protoreflect.UnknownFields {
  1282. return xxx_Test_ProtoFile_MessageTypes[15].UnknownFieldsOf(m.m)
  1283. }
  1284. func (m xxx_KnownTypes) Interface() protoreflect.ProtoMessage {
  1285. return m.m
  1286. }
  1287. func (m *KnownTypes) Reset() { *m = KnownTypes{} }
  1288. func (m *KnownTypes) String() string { return proto.CompactTextString(m) }
  1289. func (*KnownTypes) ProtoMessage() {}
  1290. func (*KnownTypes) Descriptor() ([]byte, []int) {
  1291. return fileDescriptor_c8d7acc1bcec9a72, []int{15}
  1292. }
  1293. func (m *KnownTypes) XXX_Unmarshal(b []byte) error {
  1294. return xxx_messageInfo_KnownTypes.Unmarshal(m, b)
  1295. }
  1296. func (m *KnownTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1297. return xxx_messageInfo_KnownTypes.Marshal(b, m, deterministic)
  1298. }
  1299. func (m *KnownTypes) XXX_Merge(src proto.Message) {
  1300. xxx_messageInfo_KnownTypes.Merge(m, src)
  1301. }
  1302. func (m *KnownTypes) XXX_Size() int {
  1303. return xxx_messageInfo_KnownTypes.Size(m)
  1304. }
  1305. func (m *KnownTypes) XXX_DiscardUnknown() {
  1306. xxx_messageInfo_KnownTypes.DiscardUnknown(m)
  1307. }
  1308. var xxx_messageInfo_KnownTypes proto.InternalMessageInfo
  1309. func (m *KnownTypes) GetOptBool() *wrappers.BoolValue {
  1310. if m != nil {
  1311. return m.OptBool
  1312. }
  1313. return nil
  1314. }
  1315. func (m *KnownTypes) GetOptInt32() *wrappers.Int32Value {
  1316. if m != nil {
  1317. return m.OptInt32
  1318. }
  1319. return nil
  1320. }
  1321. func (m *KnownTypes) GetOptInt64() *wrappers.Int64Value {
  1322. if m != nil {
  1323. return m.OptInt64
  1324. }
  1325. return nil
  1326. }
  1327. func (m *KnownTypes) GetOptUint32() *wrappers.UInt32Value {
  1328. if m != nil {
  1329. return m.OptUint32
  1330. }
  1331. return nil
  1332. }
  1333. func (m *KnownTypes) GetOptUint64() *wrappers.UInt64Value {
  1334. if m != nil {
  1335. return m.OptUint64
  1336. }
  1337. return nil
  1338. }
  1339. func (m *KnownTypes) GetOptFloat() *wrappers.FloatValue {
  1340. if m != nil {
  1341. return m.OptFloat
  1342. }
  1343. return nil
  1344. }
  1345. func (m *KnownTypes) GetOptDouble() *wrappers.DoubleValue {
  1346. if m != nil {
  1347. return m.OptDouble
  1348. }
  1349. return nil
  1350. }
  1351. func (m *KnownTypes) GetOptString() *wrappers.StringValue {
  1352. if m != nil {
  1353. return m.OptString
  1354. }
  1355. return nil
  1356. }
  1357. func (m *KnownTypes) GetOptBytes() *wrappers.BytesValue {
  1358. if m != nil {
  1359. return m.OptBytes
  1360. }
  1361. return nil
  1362. }
  1363. func (m *KnownTypes) GetOptDuration() *duration.Duration {
  1364. if m != nil {
  1365. return m.OptDuration
  1366. }
  1367. return nil
  1368. }
  1369. func (m *KnownTypes) GetOptTimestamp() *timestamp.Timestamp {
  1370. if m != nil {
  1371. return m.OptTimestamp
  1372. }
  1373. return nil
  1374. }
  1375. func (m *KnownTypes) GetOptStruct() *_struct.Struct {
  1376. if m != nil {
  1377. return m.OptStruct
  1378. }
  1379. return nil
  1380. }
  1381. func (m *KnownTypes) GetOptList() *_struct.ListValue {
  1382. if m != nil {
  1383. return m.OptList
  1384. }
  1385. return nil
  1386. }
  1387. func (m *KnownTypes) GetOptValue() *_struct.Value {
  1388. if m != nil {
  1389. return m.OptValue
  1390. }
  1391. return nil
  1392. }
  1393. func (m *KnownTypes) GetOptEmpty() *empty.Empty {
  1394. if m != nil {
  1395. return m.OptEmpty
  1396. }
  1397. return nil
  1398. }
  1399. func (m *KnownTypes) GetOptAny() *any.Any {
  1400. if m != nil {
  1401. return m.OptAny
  1402. }
  1403. return nil
  1404. }
  1405. type Nests_OptGroup struct {
  1406. OptBool *bool `protobuf:"varint,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
  1407. OptString *string `protobuf:"bytes,2,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
  1408. OptNested *Nested `protobuf:"bytes,3,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
  1409. Optnestedgroup *Nests_OptGroup_OptNestedGroup `protobuf:"group,4,opt,name=OptNestedGroup,json=optnestedgroup" json:"optnestedgroup,omitempty"`
  1410. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1411. XXX_unrecognized []byte `json:"-"`
  1412. XXX_sizecache int32 `json:"-"`
  1413. }
  1414. type xxx_Nests_OptGroup struct{ m *Nests_OptGroup }
  1415. func (m *Nests_OptGroup) ProtoReflect() protoreflect.Message {
  1416. return xxx_Nests_OptGroup{m}
  1417. }
  1418. func (m xxx_Nests_OptGroup) Type() protoreflect.MessageType {
  1419. return xxx_Test_ProtoFile_MessageTypes[16].Type
  1420. }
  1421. func (m xxx_Nests_OptGroup) KnownFields() protoreflect.KnownFields {
  1422. return xxx_Test_ProtoFile_MessageTypes[16].KnownFieldsOf(m.m)
  1423. }
  1424. func (m xxx_Nests_OptGroup) UnknownFields() protoreflect.UnknownFields {
  1425. return xxx_Test_ProtoFile_MessageTypes[16].UnknownFieldsOf(m.m)
  1426. }
  1427. func (m xxx_Nests_OptGroup) Interface() protoreflect.ProtoMessage {
  1428. return m.m
  1429. }
  1430. func (m *Nests_OptGroup) Reset() { *m = Nests_OptGroup{} }
  1431. func (m *Nests_OptGroup) String() string { return proto.CompactTextString(m) }
  1432. func (*Nests_OptGroup) ProtoMessage() {}
  1433. func (*Nests_OptGroup) Descriptor() ([]byte, []int) {
  1434. return fileDescriptor_c8d7acc1bcec9a72, []int{3, 0}
  1435. }
  1436. func (m *Nests_OptGroup) XXX_Unmarshal(b []byte) error {
  1437. return xxx_messageInfo_Nests_OptGroup.Unmarshal(m, b)
  1438. }
  1439. func (m *Nests_OptGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1440. return xxx_messageInfo_Nests_OptGroup.Marshal(b, m, deterministic)
  1441. }
  1442. func (m *Nests_OptGroup) XXX_Merge(src proto.Message) {
  1443. xxx_messageInfo_Nests_OptGroup.Merge(m, src)
  1444. }
  1445. func (m *Nests_OptGroup) XXX_Size() int {
  1446. return xxx_messageInfo_Nests_OptGroup.Size(m)
  1447. }
  1448. func (m *Nests_OptGroup) XXX_DiscardUnknown() {
  1449. xxx_messageInfo_Nests_OptGroup.DiscardUnknown(m)
  1450. }
  1451. var xxx_messageInfo_Nests_OptGroup proto.InternalMessageInfo
  1452. func (m *Nests_OptGroup) GetOptBool() bool {
  1453. if m != nil && m.OptBool != nil {
  1454. return *m.OptBool
  1455. }
  1456. return false
  1457. }
  1458. func (m *Nests_OptGroup) GetOptString() string {
  1459. if m != nil && m.OptString != nil {
  1460. return *m.OptString
  1461. }
  1462. return ""
  1463. }
  1464. func (m *Nests_OptGroup) GetOptNested() *Nested {
  1465. if m != nil {
  1466. return m.OptNested
  1467. }
  1468. return nil
  1469. }
  1470. func (m *Nests_OptGroup) GetOptnestedgroup() *Nests_OptGroup_OptNestedGroup {
  1471. if m != nil {
  1472. return m.Optnestedgroup
  1473. }
  1474. return nil
  1475. }
  1476. type Nests_RptGroup struct {
  1477. RptBool []bool `protobuf:"varint,1,rep,name=rpt_bool,json=rptBool" json:"rpt_bool,omitempty"`
  1478. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1479. XXX_unrecognized []byte `json:"-"`
  1480. XXX_sizecache int32 `json:"-"`
  1481. }
  1482. type xxx_Nests_RptGroup struct{ m *Nests_RptGroup }
  1483. func (m *Nests_RptGroup) ProtoReflect() protoreflect.Message {
  1484. return xxx_Nests_RptGroup{m}
  1485. }
  1486. func (m xxx_Nests_RptGroup) Type() protoreflect.MessageType {
  1487. return xxx_Test_ProtoFile_MessageTypes[17].Type
  1488. }
  1489. func (m xxx_Nests_RptGroup) KnownFields() protoreflect.KnownFields {
  1490. return xxx_Test_ProtoFile_MessageTypes[17].KnownFieldsOf(m.m)
  1491. }
  1492. func (m xxx_Nests_RptGroup) UnknownFields() protoreflect.UnknownFields {
  1493. return xxx_Test_ProtoFile_MessageTypes[17].UnknownFieldsOf(m.m)
  1494. }
  1495. func (m xxx_Nests_RptGroup) Interface() protoreflect.ProtoMessage {
  1496. return m.m
  1497. }
  1498. func (m *Nests_RptGroup) Reset() { *m = Nests_RptGroup{} }
  1499. func (m *Nests_RptGroup) String() string { return proto.CompactTextString(m) }
  1500. func (*Nests_RptGroup) ProtoMessage() {}
  1501. func (*Nests_RptGroup) Descriptor() ([]byte, []int) {
  1502. return fileDescriptor_c8d7acc1bcec9a72, []int{3, 1}
  1503. }
  1504. func (m *Nests_RptGroup) XXX_Unmarshal(b []byte) error {
  1505. return xxx_messageInfo_Nests_RptGroup.Unmarshal(m, b)
  1506. }
  1507. func (m *Nests_RptGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1508. return xxx_messageInfo_Nests_RptGroup.Marshal(b, m, deterministic)
  1509. }
  1510. func (m *Nests_RptGroup) XXX_Merge(src proto.Message) {
  1511. xxx_messageInfo_Nests_RptGroup.Merge(m, src)
  1512. }
  1513. func (m *Nests_RptGroup) XXX_Size() int {
  1514. return xxx_messageInfo_Nests_RptGroup.Size(m)
  1515. }
  1516. func (m *Nests_RptGroup) XXX_DiscardUnknown() {
  1517. xxx_messageInfo_Nests_RptGroup.DiscardUnknown(m)
  1518. }
  1519. var xxx_messageInfo_Nests_RptGroup proto.InternalMessageInfo
  1520. func (m *Nests_RptGroup) GetRptBool() []bool {
  1521. if m != nil {
  1522. return m.RptBool
  1523. }
  1524. return nil
  1525. }
  1526. type Nests_OptGroup_OptNestedGroup struct {
  1527. OptEnum *Enum `protobuf:"varint,1,opt,name=opt_enum,json=optEnum,enum=pb2.Enum" json:"opt_enum,omitempty"`
  1528. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1529. XXX_unrecognized []byte `json:"-"`
  1530. XXX_sizecache int32 `json:"-"`
  1531. }
  1532. type xxx_Nests_OptGroup_OptNestedGroup struct {
  1533. m *Nests_OptGroup_OptNestedGroup
  1534. }
  1535. func (m *Nests_OptGroup_OptNestedGroup) ProtoReflect() protoreflect.Message {
  1536. return xxx_Nests_OptGroup_OptNestedGroup{m}
  1537. }
  1538. func (m xxx_Nests_OptGroup_OptNestedGroup) Type() protoreflect.MessageType {
  1539. return xxx_Test_ProtoFile_MessageTypes[18].Type
  1540. }
  1541. func (m xxx_Nests_OptGroup_OptNestedGroup) KnownFields() protoreflect.KnownFields {
  1542. return xxx_Test_ProtoFile_MessageTypes[18].KnownFieldsOf(m.m)
  1543. }
  1544. func (m xxx_Nests_OptGroup_OptNestedGroup) UnknownFields() protoreflect.UnknownFields {
  1545. return xxx_Test_ProtoFile_MessageTypes[18].UnknownFieldsOf(m.m)
  1546. }
  1547. func (m xxx_Nests_OptGroup_OptNestedGroup) Interface() protoreflect.ProtoMessage {
  1548. return m.m
  1549. }
  1550. func (m *Nests_OptGroup_OptNestedGroup) Reset() { *m = Nests_OptGroup_OptNestedGroup{} }
  1551. func (m *Nests_OptGroup_OptNestedGroup) String() string { return proto.CompactTextString(m) }
  1552. func (*Nests_OptGroup_OptNestedGroup) ProtoMessage() {}
  1553. func (*Nests_OptGroup_OptNestedGroup) Descriptor() ([]byte, []int) {
  1554. return fileDescriptor_c8d7acc1bcec9a72, []int{3, 0, 0}
  1555. }
  1556. func (m *Nests_OptGroup_OptNestedGroup) XXX_Unmarshal(b []byte) error {
  1557. return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Unmarshal(m, b)
  1558. }
  1559. func (m *Nests_OptGroup_OptNestedGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1560. return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Marshal(b, m, deterministic)
  1561. }
  1562. func (m *Nests_OptGroup_OptNestedGroup) XXX_Merge(src proto.Message) {
  1563. xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Merge(m, src)
  1564. }
  1565. func (m *Nests_OptGroup_OptNestedGroup) XXX_Size() int {
  1566. return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Size(m)
  1567. }
  1568. func (m *Nests_OptGroup_OptNestedGroup) XXX_DiscardUnknown() {
  1569. xxx_messageInfo_Nests_OptGroup_OptNestedGroup.DiscardUnknown(m)
  1570. }
  1571. var xxx_messageInfo_Nests_OptGroup_OptNestedGroup proto.InternalMessageInfo
  1572. func (m *Nests_OptGroup_OptNestedGroup) GetOptEnum() Enum {
  1573. if m != nil && m.OptEnum != nil {
  1574. return *m.OptEnum
  1575. }
  1576. return Enum_UNKNOWN
  1577. }
  1578. var E_OptExtBool = &proto.ExtensionDesc{
  1579. ExtendedType: (*Extensions)(nil),
  1580. ExtensionType: (*bool)(nil),
  1581. Field: 21,
  1582. Name: "pb2.opt_ext_bool",
  1583. Tag: "varint,21,opt,name=opt_ext_bool",
  1584. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1585. }
  1586. var E_OptExtString = &proto.ExtensionDesc{
  1587. ExtendedType: (*Extensions)(nil),
  1588. ExtensionType: (*string)(nil),
  1589. Field: 22,
  1590. Name: "pb2.opt_ext_string",
  1591. Tag: "bytes,22,opt,name=opt_ext_string",
  1592. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1593. }
  1594. var E_OptExtEnum = &proto.ExtensionDesc{
  1595. ExtendedType: (*Extensions)(nil),
  1596. ExtensionType: (*Enum)(nil),
  1597. Field: 23,
  1598. Name: "pb2.opt_ext_enum",
  1599. Tag: "varint,23,opt,name=opt_ext_enum,enum=pb2.Enum",
  1600. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1601. }
  1602. var E_OptExtNested = &proto.ExtensionDesc{
  1603. ExtendedType: (*Extensions)(nil),
  1604. ExtensionType: (*Nested)(nil),
  1605. Field: 24,
  1606. Name: "pb2.opt_ext_nested",
  1607. Tag: "bytes,24,opt,name=opt_ext_nested",
  1608. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1609. }
  1610. var E_RptExtFixed32 = &proto.ExtensionDesc{
  1611. ExtendedType: (*Extensions)(nil),
  1612. ExtensionType: ([]uint32)(nil),
  1613. Field: 31,
  1614. Name: "pb2.rpt_ext_fixed32",
  1615. Tag: "fixed32,31,rep,name=rpt_ext_fixed32",
  1616. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1617. }
  1618. var E_RptExtEnum = &proto.ExtensionDesc{
  1619. ExtendedType: (*Extensions)(nil),
  1620. ExtensionType: ([]Enum)(nil),
  1621. Field: 32,
  1622. Name: "pb2.rpt_ext_enum",
  1623. Tag: "varint,32,rep,name=rpt_ext_enum,enum=pb2.Enum",
  1624. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1625. }
  1626. var E_RptExtNested = &proto.ExtensionDesc{
  1627. ExtendedType: (*Extensions)(nil),
  1628. ExtensionType: ([]*Nested)(nil),
  1629. Field: 33,
  1630. Name: "pb2.rpt_ext_nested",
  1631. Tag: "bytes,33,rep,name=rpt_ext_nested",
  1632. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1633. }
  1634. var E_ExtensionsContainer_OptExtBool = &proto.ExtensionDesc{
  1635. ExtendedType: (*Extensions)(nil),
  1636. ExtensionType: (*bool)(nil),
  1637. Field: 51,
  1638. Name: "pb2.ExtensionsContainer.opt_ext_bool",
  1639. Tag: "varint,51,opt,name=opt_ext_bool",
  1640. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1641. }
  1642. var E_ExtensionsContainer_OptExtString = &proto.ExtensionDesc{
  1643. ExtendedType: (*Extensions)(nil),
  1644. ExtensionType: (*string)(nil),
  1645. Field: 52,
  1646. Name: "pb2.ExtensionsContainer.opt_ext_string",
  1647. Tag: "bytes,52,opt,name=opt_ext_string",
  1648. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1649. }
  1650. var E_ExtensionsContainer_OptExtEnum = &proto.ExtensionDesc{
  1651. ExtendedType: (*Extensions)(nil),
  1652. ExtensionType: (*Enum)(nil),
  1653. Field: 53,
  1654. Name: "pb2.ExtensionsContainer.opt_ext_enum",
  1655. Tag: "varint,53,opt,name=opt_ext_enum,enum=pb2.Enum",
  1656. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1657. }
  1658. var E_ExtensionsContainer_OptExtNested = &proto.ExtensionDesc{
  1659. ExtendedType: (*Extensions)(nil),
  1660. ExtensionType: (*Nested)(nil),
  1661. Field: 54,
  1662. Name: "pb2.ExtensionsContainer.opt_ext_nested",
  1663. Tag: "bytes,54,opt,name=opt_ext_nested",
  1664. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1665. }
  1666. var E_ExtensionsContainer_RptExtString = &proto.ExtensionDesc{
  1667. ExtendedType: (*Extensions)(nil),
  1668. ExtensionType: ([]string)(nil),
  1669. Field: 61,
  1670. Name: "pb2.ExtensionsContainer.rpt_ext_string",
  1671. Tag: "bytes,61,rep,name=rpt_ext_string",
  1672. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1673. }
  1674. var E_ExtensionsContainer_RptExtEnum = &proto.ExtensionDesc{
  1675. ExtendedType: (*Extensions)(nil),
  1676. ExtensionType: ([]Enum)(nil),
  1677. Field: 62,
  1678. Name: "pb2.ExtensionsContainer.rpt_ext_enum",
  1679. Tag: "varint,62,rep,name=rpt_ext_enum,enum=pb2.Enum",
  1680. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1681. }
  1682. var E_ExtensionsContainer_RptExtNested = &proto.ExtensionDesc{
  1683. ExtendedType: (*Extensions)(nil),
  1684. ExtensionType: ([]*Nested)(nil),
  1685. Field: 63,
  1686. Name: "pb2.ExtensionsContainer.rpt_ext_nested",
  1687. Tag: "bytes,63,rep,name=rpt_ext_nested",
  1688. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1689. }
  1690. var E_MessageSetExtension_MessageSetExtension = &proto.ExtensionDesc{
  1691. ExtendedType: (*MessageSet)(nil),
  1692. ExtensionType: (*MessageSetExtension)(nil),
  1693. Field: 10,
  1694. Name: "pb2.MessageSetExtension",
  1695. Tag: "bytes,10,opt,name=message_set_extension",
  1696. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1697. }
  1698. var E_MessageSetExtension_NotMessageSetExtension = &proto.ExtensionDesc{
  1699. ExtendedType: (*MessageSet)(nil),
  1700. ExtensionType: (*MessageSetExtension)(nil),
  1701. Field: 20,
  1702. Name: "pb2.MessageSetExtension.not_message_set_extension",
  1703. Tag: "bytes,20,opt,name=not_message_set_extension",
  1704. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1705. }
  1706. var E_MessageSetExtension_ExtNested = &proto.ExtensionDesc{
  1707. ExtendedType: (*MessageSet)(nil),
  1708. ExtensionType: (*Nested)(nil),
  1709. Field: 30,
  1710. Name: "pb2.MessageSetExtension.ext_nested",
  1711. Tag: "bytes,30,opt,name=ext_nested",
  1712. Filename: "encoding/textpb/testprotos/pb2/test.proto",
  1713. }
  1714. func init() {
  1715. proto.RegisterFile("encoding/textpb/testprotos/pb2/test.proto", fileDescriptor_c8d7acc1bcec9a72)
  1716. proto.RegisterEnum("pb2.Enum", Enum_name, Enum_value)
  1717. proto.RegisterEnum("pb2.Enums_NestedEnum", Enums_NestedEnum_name, Enums_NestedEnum_value)
  1718. proto.RegisterType((*Scalars)(nil), "pb2.Scalars")
  1719. proto.RegisterType((*Repeats)(nil), "pb2.Repeats")
  1720. proto.RegisterType((*Enums)(nil), "pb2.Enums")
  1721. proto.RegisterType((*Nests)(nil), "pb2.Nests")
  1722. proto.RegisterType((*Nested)(nil), "pb2.Nested")
  1723. proto.RegisterType((*Requireds)(nil), "pb2.Requireds")
  1724. proto.RegisterType((*PartialRequired)(nil), "pb2.PartialRequired")
  1725. proto.RegisterType((*Oneofs)(nil), "pb2.Oneofs")
  1726. proto.RegisterType((*Maps)(nil), "pb2.Maps")
  1727. proto.RegisterMapType((map[bool]uint32)(nil), "pb2.Maps.BoolToUint32Entry")
  1728. proto.RegisterMapType((map[int32]string)(nil), "pb2.Maps.Int32ToStrEntry")
  1729. proto.RegisterMapType((map[int64]bool)(nil), "pb2.Maps.Sfixed64ToBoolEntry")
  1730. proto.RegisterMapType((map[string]*Nested)(nil), "pb2.Maps.StrToNestedEntry")
  1731. proto.RegisterMapType((map[string]*Oneofs)(nil), "pb2.Maps.StrToOneofsEntry")
  1732. proto.RegisterMapType((map[uint64]Enum)(nil), "pb2.Maps.Uint64ToEnumEntry")
  1733. proto.RegisterType((*NestedWithRequired)(nil), "pb2.NestedWithRequired")
  1734. proto.RegisterType((*IndirectRequired)(nil), "pb2.IndirectRequired")
  1735. proto.RegisterMapType((map[string]*NestedWithRequired)(nil), "pb2.IndirectRequired.StrToNestedEntry")
  1736. proto.RegisterType((*Extensions)(nil), "pb2.Extensions")
  1737. proto.RegisterType((*ExtensionsContainer)(nil), "pb2.ExtensionsContainer")
  1738. proto.RegisterType((*MessageSet)(nil), "pb2.MessageSet")
  1739. proto.RegisterType((*MessageSetExtension)(nil), "pb2.MessageSetExtension")
  1740. proto.RegisterType((*KnownTypes)(nil), "pb2.KnownTypes")
  1741. proto.RegisterType((*Nests_OptGroup)(nil), "pb2.Nests.OptGroup")
  1742. proto.RegisterType((*Nests_RptGroup)(nil), "pb2.Nests.RptGroup")
  1743. proto.RegisterType((*Nests_OptGroup_OptNestedGroup)(nil), "pb2.Nests.OptGroup.OptNestedGroup")
  1744. proto.RegisterExtension(E_OptExtBool)
  1745. proto.RegisterExtension(E_OptExtString)
  1746. proto.RegisterExtension(E_OptExtEnum)
  1747. proto.RegisterExtension(E_OptExtNested)
  1748. proto.RegisterExtension(E_RptExtFixed32)
  1749. proto.RegisterExtension(E_RptExtEnum)
  1750. proto.RegisterExtension(E_RptExtNested)
  1751. proto.RegisterExtension(E_ExtensionsContainer_OptExtBool)
  1752. proto.RegisterExtension(E_ExtensionsContainer_OptExtString)
  1753. proto.RegisterExtension(E_ExtensionsContainer_OptExtEnum)
  1754. proto.RegisterExtension(E_ExtensionsContainer_OptExtNested)
  1755. proto.RegisterExtension(E_ExtensionsContainer_RptExtString)
  1756. proto.RegisterExtension(E_ExtensionsContainer_RptExtEnum)
  1757. proto.RegisterExtension(E_ExtensionsContainer_RptExtNested)
  1758. proto.RegisterExtension(E_MessageSetExtension_MessageSetExtension)
  1759. proto.RegisterExtension(E_MessageSetExtension_NotMessageSetExtension)
  1760. proto.RegisterExtension(E_MessageSetExtension_ExtNested)
  1761. }
  1762. var fileDescriptor_c8d7acc1bcec9a72 = []byte{
  1763. // 1945 bytes of a gzipped FileDescriptorProto
  1764. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x58, 0xdb, 0x6e, 0x1b, 0xc9,
  1765. 0x11, 0xdd, 0x99, 0xe1, 0xb5, 0xa9, 0x0b, 0x3d, 0x92, 0xbd, 0x14, 0xbd, 0xbb, 0x1a, 0x13, 0x9b,
  1766. 0x80, 0x11, 0xb0, 0x12, 0x32, 0xa2, 0x19, 0x81, 0x5a, 0xdb, 0xb0, 0xd6, 0xf4, 0xae, 0xd7, 0x59,
  1767. 0x29, 0x20, 0xe9, 0x18, 0x58, 0x20, 0x10, 0x48, 0xb1, 0xc5, 0x1d, 0x84, 0x9c, 0x1e, 0xf6, 0x34,
  1768. 0x6d, 0xe9, 0x3f, 0xf2, 0x0d, 0xc9, 0x1f, 0xe4, 0x21, 0xf9, 0x93, 0xfc, 0x44, 0x5e, 0xf2, 0x10,
  1769. 0x20, 0x0f, 0x0e, 0xaa, 0x7a, 0x2e, 0xcd, 0x19, 0xde, 0xde, 0xa6, 0xbb, 0xea, 0x9c, 0xaa, 0xae,
  1770. 0xea, 0xae, 0xea, 0x69, 0xf2, 0x1b, 0xea, 0xde, 0xb0, 0xa1, 0xe3, 0x8e, 0x4e, 0x04, 0xbd, 0x13,
  1771. 0xde, 0xe0, 0x44, 0x50, 0x5f, 0x78, 0x9c, 0x09, 0xe6, 0x9f, 0x78, 0x03, 0x1b, 0x87, 0xc7, 0x38,
  1772. 0x36, 0x0d, 0x6f, 0x60, 0x57, 0x0f, 0x46, 0x8c, 0x8d, 0xc6, 0xf4, 0x04, 0xa7, 0x06, 0xb3, 0xdb,
  1773. 0x93, 0xbe, 0x7b, 0x2f, 0xe5, 0xd5, 0xc7, 0x49, 0x11, 0x9d, 0x78, 0x22, 0x14, 0x7e, 0x95, 0x14,
  1774. 0x0e, 0x67, 0xbc, 0x2f, 0x1c, 0xe6, 0x06, 0xf2, 0x2f, 0x92, 0x72, 0x5f, 0xf0, 0xd9, 0x4d, 0x60,
  1775. 0xba, 0x7a, 0x98, 0x94, 0x0a, 0x67, 0x42, 0x7d, 0xd1, 0x9f, 0x78, 0xcb, 0xe8, 0x3f, 0xf2, 0xbe,
  1776. 0xe7, 0x51, 0xee, 0x4b, 0x79, 0xed, 0x5f, 0x06, 0xc9, 0x77, 0x6f, 0xfa, 0xe3, 0x3e, 0xf7, 0xcd,
  1777. 0x03, 0x52, 0x60, 0x9e, 0xb8, 0x1e, 0x30, 0x36, 0xae, 0x68, 0x96, 0x56, 0x2f, 0x74, 0xf2, 0xcc,
  1778. 0x13, 0x17, 0x8c, 0x8d, 0xcd, 0xc7, 0xa4, 0x08, 0x22, 0xc7, 0x15, 0xa7, 0x76, 0x45, 0xb7, 0xb4,
  1779. 0x7a, 0xb6, 0x03, 0xba, 0x6f, 0x60, 0xac, 0x08, 0x9b, 0x8d, 0x8a, 0x61, 0x69, 0x75, 0x23, 0x14,
  1780. 0x36, 0x1b, 0xe6, 0x97, 0x84, 0x80, 0x70, 0x26, 0xa1, 0x19, 0x4b, 0xab, 0x6f, 0x77, 0x40, 0xfd,
  1781. 0x1d, 0x4e, 0xa8, 0xe2, 0x66, 0xa3, 0x92, 0xb5, 0xb4, 0x7a, 0x26, 0x12, 0xc7, 0x68, 0x5f, 0xa2,
  1782. 0x73, 0x96, 0x56, 0x7f, 0x80, 0xe2, 0xee, 0x1c, 0xda, 0x97, 0xe8, 0xbc, 0xa5, 0xd5, 0xcd, 0x48,
  1783. 0xdc, 0x6c, 0x98, 0x87, 0xa4, 0x04, 0xe2, 0x5b, 0xe7, 0x8e, 0x0e, 0x4f, 0xed, 0x4a, 0xc1, 0xd2,
  1784. 0xea, 0xf9, 0x0e, 0x20, 0x5e, 0xcb, 0x99, 0x39, 0x85, 0x66, 0xa3, 0x52, 0xb4, 0xb4, 0x7a, 0x2e,
  1785. 0x56, 0x68, 0x36, 0xcc, 0x27, 0x64, 0x0b, 0x0d, 0x84, 0x14, 0xc4, 0xd2, 0xea, 0xbb, 0x1d, 0x00,
  1786. 0x75, 0x83, 0xa9, 0x79, 0x95, 0x66, 0xa3, 0x52, 0xb2, 0xb4, 0x7a, 0x59, 0x51, 0x69, 0x36, 0xc2,
  1787. 0x00, 0xdd, 0x8e, 0x59, 0x5f, 0x54, 0xf6, 0x2d, 0xad, 0xae, 0x63, 0x80, 0x5e, 0xc3, 0x38, 0x5c,
  1788. 0xc3, 0x90, 0xcd, 0x06, 0x63, 0x5a, 0x79, 0x68, 0x69, 0x75, 0x0d, 0xd7, 0xf0, 0x0a, 0x27, 0x42,
  1789. 0xec, 0xe0, 0x5e, 0x50, 0xbf, 0xb2, 0x63, 0x69, 0xf5, 0x2d, 0xc4, 0x5e, 0xc0, 0x38, 0x5a, 0xbf,
  1790. 0xe0, 0x8e, 0x3b, 0xaa, 0x6c, 0x5b, 0x5a, 0xbd, 0x28, 0xd7, 0x8f, 0x13, 0xb5, 0xbf, 0xe8, 0x24,
  1791. 0xdf, 0xa1, 0x1e, 0xed, 0x0b, 0x4c, 0x2e, 0x8f, 0x93, 0x6b, 0x40, 0x72, 0x79, 0x9c, 0x5c, 0xae,
  1792. 0x24, 0xd7, 0x80, 0xe4, 0x72, 0x25, 0xb9, 0x5c, 0x49, 0xae, 0x01, 0xc9, 0xe5, 0x4a, 0x72, 0xb9,
  1793. 0x9a, 0x5c, 0x03, 0x92, 0xcb, 0xd5, 0xe4, 0x72, 0x35, 0xb9, 0x06, 0x24, 0x97, 0x47, 0xc9, 0x0d,
  1794. 0xa8, 0x65, 0x58, 0x72, 0x96, 0x01, 0x61, 0xe1, 0x4a, 0x58, 0x78, 0x1c, 0x96, 0xbc, 0x65, 0x40,
  1795. 0x58, 0x78, 0x14, 0x96, 0x40, 0x1c, 0xac, 0x7c, 0xd7, 0x32, 0x60, 0xe5, 0x3c, 0x5c, 0x79, 0x48,
  1796. 0x1d, 0x46, 0xcd, 0x80, 0xa8, 0xf1, 0x20, 0x6a, 0xb5, 0xff, 0x69, 0x24, 0xdb, 0x76, 0x67, 0x13,
  1797. 0xdf, 0xfc, 0x5a, 0xee, 0x78, 0xea, 0xce, 0x26, 0xb8, 0xe3, 0x77, 0xec, 0xe2, 0xb1, 0x37, 0xb0,
  1798. 0x8f, 0x41, 0x8a, 0x9b, 0x1f, 0x3e, 0x40, 0x8b, 0x87, 0x5a, 0x10, 0x9e, 0x79, 0x2d, 0x1e, 0x68,
  1799. 0x3d, 0x23, 0xbb, 0xc0, 0xe5, 0x52, 0x5f, 0xd0, 0xa1, 0x54, 0x36, 0x90, 0xf2, 0x61, 0xa4, 0xec,
  1800. 0x1f, 0x5f, 0xa2, 0x14, 0x81, 0xdb, 0xcc, 0x13, 0xf1, 0x10, 0xe0, 0x3c, 0x01, 0xcf, 0xa0, 0xad,
  1801. 0x65, 0x70, 0xae, 0xc2, 0x6b, 0x75, 0x42, 0x14, 0xb2, 0x3c, 0x31, 0xde, 0x5d, 0x5e, 0x95, 0x35,
  1802. 0xf8, 0x78, 0x75, 0xd5, 0x2d, 0xeb, 0x66, 0x81, 0x64, 0x5e, 0xbd, 0x69, 0xff, 0x5c, 0x26, 0xb5,
  1803. 0x7f, 0x1b, 0x24, 0x0b, 0xaa, 0xbe, 0x79, 0x24, 0x77, 0x8f, 0x34, 0x89, 0xeb, 0x2f, 0xd9, 0x25,
  1804. 0xb4, 0x26, 0xa9, 0x70, 0x2b, 0xc9, 0x4f, 0xf3, 0x04, 0x23, 0x35, 0xe2, 0x6c, 0xe6, 0xe1, 0xf9,
  1805. 0x27, 0xf6, 0x5e, 0xa4, 0xe9, 0x1f, 0x5f, 0x79, 0xe2, 0x7b, 0x10, 0x75, 0x22, 0x25, 0x20, 0x8f,
  1806. 0xd7, 0x83, 0x1b, 0x27, 0x49, 0xce, 0x55, 0x72, 0x1e, 0x92, 0xc3, 0xa2, 0xe7, 0xc9, 0x3b, 0x11,
  1807. 0x79, 0xa8, 0x54, 0xfd, 0x8f, 0x46, 0x0a, 0xa1, 0xcd, 0x55, 0x65, 0x6b, 0xfe, 0x7c, 0xe8, 0x89,
  1808. 0xf3, 0x91, 0x08, 0x80, 0xb1, 0x32, 0x00, 0x3f, 0x92, 0x1d, 0xe6, 0x09, 0xa9, 0x1a, 0x7a, 0x0a,
  1809. 0x61, 0xa8, 0x2d, 0x08, 0x03, 0x7c, 0x48, 0x98, 0x74, 0x3c, 0x81, 0xac, 0x36, 0xc9, 0xce, 0xbc,
  1810. 0xc6, 0x66, 0x1b, 0xb1, 0xfa, 0x2b, 0x52, 0xe8, 0x28, 0xab, 0x5e, 0x72, 0x9e, 0x3b, 0x3b, 0x9c,
  1811. 0xfa, 0x94, 0x7f, 0xa0, 0xc3, 0xeb, 0x5b, 0x87, 0x8e, 0x87, 0xb5, 0x2e, 0xc9, 0x05, 0x8b, 0x98,
  1812. 0x8f, 0x87, 0xb6, 0x3a, 0x1e, 0xfa, 0xaa, 0x78, 0xd4, 0xfe, 0xab, 0x93, 0x62, 0x87, 0x4e, 0x67,
  1813. 0x0e, 0xa7, 0x43, 0x59, 0x5d, 0xe8, 0x34, 0xf4, 0x46, 0x47, 0x6f, 0xe8, 0x14, 0x73, 0x70, 0x48,
  1814. 0x4a, 0x20, 0x0a, 0x2b, 0xa8, 0x6e, 0xe9, 0x50, 0x84, 0x39, 0x9d, 0x2a, 0x45, 0x38, 0x52, 0xc0,
  1815. 0x1a, 0xa3, 0x43, 0x11, 0x0e, 0x15, 0x64, 0x11, 0x06, 0x85, 0xa8, 0x08, 0x67, 0x2c, 0x1d, 0x8a,
  1816. 0x30, 0xa7, 0x53, 0xb5, 0x08, 0xc7, 0x2a, 0x58, 0x6b, 0x74, 0x28, 0xc2, 0x91, 0x4a, 0x50, 0x6d,
  1817. 0xc0, 0x4c, 0x50, 0x6d, 0x74, 0xac, 0x36, 0x74, 0x1a, 0x57, 0x1b, 0x3a, 0x8d, 0xab, 0x8d, 0x8e,
  1818. 0xd5, 0x86, 0x4e, 0x95, 0x6a, 0x03, 0xf4, 0x32, 0x6e, 0x05, 0x4b, 0xc7, 0x6a, 0x43, 0xa7, 0x4a,
  1819. 0xb5, 0x81, 0xd5, 0x63, 0xb5, 0x29, 0x5a, 0x3a, 0x56, 0x1b, 0x3a, 0x95, 0x35, 0xfa, 0x6b, 0x19,
  1820. 0x1a, 0x4c, 0x2d, 0xb1, 0xf4, 0x64, 0xf5, 0xa0, 0x53, 0x3c, 0xb1, 0x47, 0xd2, 0x42, 0x10, 0xfa,
  1821. 0x92, 0xa5, 0xa7, 0x8f, 0x0b, 0x9d, 0x06, 0xa1, 0xbf, 0x22, 0xbb, 0x7f, 0xe8, 0x73, 0xe1, 0xf4,
  1822. 0xc7, 0x61, 0x02, 0x12, 0x0e, 0x6a, 0x49, 0x07, 0x57, 0x9f, 0x83, 0xda, 0x6b, 0x92, 0xbb, 0x72,
  1823. 0x29, 0xbb, 0xf5, 0x4d, 0x93, 0x18, 0xbe, 0xe0, 0x72, 0x67, 0xfc, 0xf0, 0x59, 0x07, 0x06, 0xe6,
  1824. 0x21, 0x31, 0x26, 0xfe, 0x68, 0xc1, 0x76, 0x00, 0x85, 0x89, 0x3f, 0xba, 0xc8, 0x93, 0xec, 0xcc,
  1825. 0x75, 0x98, 0x5b, 0xfb, 0x67, 0x8e, 0x64, 0x7e, 0xea, 0x7b, 0xbe, 0x79, 0x4e, 0xb6, 0xb0, 0x03,
  1826. 0x5c, 0x0b, 0x76, 0x2d, 0xf9, 0xe0, 0xf8, 0x1f, 0x20, 0x16, 0x14, 0x8e, 0xb1, 0xb7, 0xf4, 0x58,
  1827. 0x57, 0xf0, 0xb6, 0x2b, 0xf8, 0x7d, 0x87, 0x38, 0xd1, 0x84, 0xf9, 0x3d, 0x29, 0x87, 0x79, 0x04,
  1828. 0x3c, 0xee, 0x29, 0x1d, 0x09, 0xbe, 0x8c, 0x09, 0xc2, 0xb4, 0xf6, 0x18, 0x6c, 0x32, 0x49, 0xb2,
  1829. 0xe3, 0xcf, 0x4d, 0x9a, 0x2f, 0xc9, 0x0e, 0x80, 0x81, 0x24, 0xe8, 0x50, 0xb2, 0x0c, 0x3d, 0x8e,
  1830. 0x69, 0x40, 0xaf, 0xc7, 0x64, 0xbb, 0x92, 0x24, 0x5b, 0x03, 0x65, 0x0a, 0x28, 0x64, 0xf7, 0x02,
  1831. 0x92, 0xa8, 0x28, 0xcf, 0x51, 0xc8, 0x66, 0xd6, 0x63, 0x90, 0xc6, 0x80, 0x62, 0xa6, 0x4c, 0x99,
  1832. 0xcf, 0xc9, 0xb6, 0x2f, 0x38, 0xe0, 0x83, 0xe4, 0x66, 0x91, 0xa1, 0xaa, 0xac, 0x45, 0xf0, 0x1e,
  1833. 0x0b, 0xab, 0x37, 0x10, 0x94, 0xfc, 0x78, 0x46, 0xc1, 0x33, 0xcc, 0x11, 0x76, 0xca, 0x34, 0x5e,
  1834. 0x26, 0x50, 0xc5, 0xcb, 0x99, 0xea, 0x33, 0xb2, 0x9b, 0x88, 0xb6, 0x59, 0x26, 0xc6, 0x9f, 0xe9,
  1835. 0x3d, 0x66, 0x39, 0xdb, 0x81, 0x4f, 0x73, 0x9f, 0x64, 0x3f, 0xf4, 0xc7, 0x33, 0x1a, 0xec, 0x0d,
  1836. 0x39, 0x68, 0xe9, 0x67, 0x5a, 0xf5, 0x25, 0xd9, 0x5b, 0x10, 0x6b, 0x95, 0xa2, 0xbc, 0x80, 0xa2,
  1837. 0xa0, 0x52, 0xbc, 0x20, 0x0f, 0x52, 0x71, 0x56, 0x09, 0x0a, 0x0b, 0x08, 0xb6, 0x55, 0x82, 0x1f,
  1838. 0xc9, 0x83, 0x54, 0x94, 0x55, 0x82, 0x8c, 0x24, 0x38, 0x54, 0x09, 0xe6, 0x8e, 0x99, 0xc2, 0xf5,
  1839. 0x96, 0x94, 0x93, 0xf1, 0x56, 0xa9, 0x8a, 0x92, 0xea, 0x89, 0x4a, 0x95, 0x38, 0x89, 0x0b, 0xc8,
  1840. 0x94, 0xe0, 0x6f, 0x4a, 0x26, 0x21, 0x0a, 0x59, 0xed, 0x94, 0x98, 0xd2, 0xc2, 0x7b, 0x47, 0xfc,
  1841. 0xb2, 0xe1, 0xc9, 0xae, 0xfd, 0x4d, 0x27, 0xe5, 0x37, 0xee, 0xd0, 0xe1, 0xf4, 0x46, 0x44, 0x98,
  1842. 0xe6, 0x82, 0xc6, 0xfe, 0xb9, 0xb2, 0x04, 0xd5, 0x80, 0xda, 0xe3, 0x9a, 0x73, 0x3d, 0x5b, 0x9e,
  1843. 0xb9, 0xe5, 0x38, 0xae, 0xf4, 0xc6, 0xc4, 0x16, 0x97, 0xe7, 0xec, 0xd7, 0x08, 0x4d, 0x7a, 0xb7,
  1844. 0x7a, 0xbb, 0x57, 0xdf, 0x6f, 0x94, 0x9f, 0x6f, 0xe6, 0x43, 0xba, 0xd4, 0x49, 0x25, 0xbc, 0x0e,
  1845. 0x21, 0xed, 0x3b, 0x41, 0x5d, 0xdf, 0x61, 0xae, 0xbf, 0xae, 0x13, 0xaa, 0x77, 0x0a, 0xba, 0xf9,
  1846. 0xaf, 0xd0, 0x51, 0xa6, 0xb0, 0x5f, 0xa6, 0xb5, 0x7f, 0x18, 0x64, 0x2f, 0xb6, 0xf5, 0x1d, 0x73,
  1847. 0x45, 0xdf, 0x71, 0x29, 0xb7, 0x7f, 0x2b, 0x7f, 0x15, 0xe8, 0x9d, 0x64, 0x36, 0x77, 0xe5, 0x0e,
  1848. 0x8d, 0x34, 0x2b, 0xa7, 0x68, 0x0a, 0x3c, 0x6b, 0xdf, 0xa1, 0x35, 0xfb, 0x29, 0x5e, 0x3b, 0x10,
  1849. 0x22, 0x7d, 0x4d, 0x83, 0x1a, 0xe8, 0xfc, 0x96, 0x04, 0x49, 0xff, 0xed, 0x6f, 0x63, 0x4b, 0x50,
  1850. 0xb5, 0xd2, 0xa0, 0xa7, 0xc9, 0x23, 0x12, 0x18, 0x85, 0x6f, 0xfb, 0x22, 0x36, 0x2a, 0x13, 0x9a,
  1851. 0xc6, 0x37, 0xd3, 0xe7, 0x22, 0xf0, 0x40, 0x8e, 0xc0, 0x71, 0xbe, 0xc6, 0xf1, 0x67, 0x78, 0x6b,
  1852. 0xdf, 0xe2, 0x09, 0xc7, 0xf9, 0x4a, 0xc7, 0x9f, 0x27, 0x2f, 0xe0, 0x84, 0xcf, 0x39, 0xce, 0xd7,
  1853. 0x38, 0xfe, 0x22, 0x7d, 0x13, 0x0d, 0x3c, 0x08, 0xba, 0x6b, 0x95, 0x90, 0x9f, 0xa8, 0xef, 0xf7,
  1854. 0x47, 0xb4, 0x4b, 0xc5, 0x51, 0xa1, 0x90, 0x29, 0x7f, 0xfa, 0xf4, 0xe9, 0x53, 0xbe, 0xa5, 0x17,
  1855. 0xb4, 0xda, 0xdf, 0x75, 0xb2, 0x17, 0x0b, 0x23, 0xd6, 0x35, 0xbb, 0xc9, 0xfe, 0x13, 0x79, 0x38,
  1856. 0x91, 0xa8, 0x6b, 0x9f, 0xa2, 0x7b, 0x01, 0x4e, 0x7a, 0x17, 0x33, 0xe2, 0xff, 0x65, 0xc9, 0xae,
  1857. 0x24, 0xa6, 0x23, 0x43, 0x9d, 0xbd, 0x49, 0x7a, 0xd2, 0x1e, 0x92, 0x03, 0x97, 0x89, 0xeb, 0x0d,
  1858. 0x4d, 0xec, 0xaf, 0x31, 0xf1, 0xc8, 0x65, 0x62, 0xc1, 0xbc, 0x7d, 0x4e, 0x48, 0x2a, 0xae, 0x0a,
  1859. 0xed, 0x57, 0x0b, 0x6e, 0x8b, 0x34, 0x0a, 0xea, 0x5f, 0xf3, 0x84, 0xbc, 0x75, 0xd9, 0x47, 0xb7,
  1860. 0x77, 0xef, 0x51, 0xdf, 0x7c, 0x9a, 0xb8, 0xb2, 0x43, 0x3b, 0x93, 0x0f, 0x15, 0xc7, 0xe1, 0x43,
  1861. 0x05, 0xb6, 0xe6, 0x3f, 0xc2, 0xe9, 0x8d, 0x8f, 0xde, 0x59, 0xf2, 0xe8, 0x41, 0x23, 0x4e, 0xe2,
  1862. 0xf0, 0x20, 0x4a, 0x60, 0xfc, 0x44, 0x71, 0x96, 0x7c, 0xa2, 0x58, 0x82, 0x6c, 0x36, 0xe6, 0x90,
  1863. 0xcd, 0x86, 0x79, 0x9e, 0x7a, 0xbf, 0x28, 0xd9, 0x5f, 0xa4, 0xa0, 0xef, 0x14, 0xab, 0xca, 0xeb,
  1864. 0xc6, 0x79, 0xea, 0x75, 0x63, 0x19, 0x38, 0x34, 0xac, 0xbc, 0x7d, 0x9c, 0xa9, 0xaf, 0x06, 0xb9,
  1865. 0x25, 0x3e, 0xe3, 0xf5, 0x35, 0xf6, 0x59, 0xde, 0x66, 0xcf, 0xe7, 0x9e, 0x14, 0xf2, 0x4b, 0xcc,
  1866. 0xca, 0xbb, 0x6d, 0x6c, 0x36, 0xb8, 0xeb, 0x9e, 0xcf, 0xed, 0xe5, 0xc2, 0x12, 0xb0, 0xdc, 0xd9,
  1867. 0x31, 0x38, 0xa8, 0x9b, 0x67, 0xea, 0x6b, 0x45, 0x71, 0x89, 0xcf, 0x78, 0x2f, 0x8e, 0x7d, 0x96,
  1868. 0xd7, 0xe4, 0xa0, 0x62, 0x85, 0xaf, 0x5f, 0xc1, 0x36, 0x3d, 0x48, 0x7b, 0x1d, 0x28, 0xe0, 0x0b,
  1869. 0x4b, 0x38, 0x30, 0x5f, 0x10, 0xf8, 0x9d, 0xbe, 0x8e, 0x5e, 0xbf, 0xf0, 0x1d, 0x65, 0xd1, 0xae,
  1870. 0xea, 0x85, 0x1a, 0x58, 0xae, 0xa2, 0x51, 0xd8, 0x32, 0xe5, 0xe3, 0x5a, 0xe5, 0x20, 0xe8, 0x2a,
  1871. 0x0b, 0x56, 0x3d, 0xbb, 0x11, 0xe1, 0x82, 0x67, 0x37, 0x22, 0xdc, 0xc9, 0x63, 0xc7, 0x17, 0x95,
  1872. 0xea, 0x12, 0x9b, 0xbf, 0x77, 0x7c, 0x11, 0xef, 0x64, 0x18, 0x99, 0xa7, 0x32, 0x4e, 0xb2, 0x87,
  1873. 0x3d, 0x46, 0xdc, 0xa3, 0x14, 0x2e, 0x0e, 0x11, 0x7e, 0x85, 0x20, 0x7c, 0x3d, 0x0c, 0xce, 0x5b,
  1874. 0x1a, 0xd4, 0x06, 0x29, 0x82, 0xf0, 0xcb, 0xfc, 0x86, 0x80, 0xd1, 0xeb, 0xbe, 0x7b, 0x5f, 0xb1,
  1875. 0x10, 0xb2, 0x9f, 0x82, 0xbc, 0x74, 0xef, 0x3b, 0x39, 0xe6, 0x89, 0x97, 0xee, 0xfd, 0xd1, 0x53,
  1876. 0x92, 0xc1, 0x5b, 0x6b, 0x89, 0xe4, 0xdf, 0x5d, 0xbe, 0xbd, 0xbc, 0x7a, 0x7f, 0x59, 0xfe, 0xcc,
  1877. 0x2c, 0x92, 0xec, 0xeb, 0x37, 0x9d, 0x6e, 0xaf, 0xac, 0x99, 0x84, 0xe4, 0xba, 0xed, 0xef, 0xae,
  1878. 0x2e, 0x5f, 0x95, 0x75, 0x98, 0xee, 0xb5, 0x2f, 0x7b, 0x3f, 0x94, 0x49, 0x6b, 0x6d, 0x67, 0x7b,
  1879. 0x98, 0xec, 0x6c, 0xad, 0x0d, 0x3a, 0xdb, 0xa3, 0x74, 0x67, 0x6b, 0xad, 0xed, 0x6c, 0x9f, 0xaf,
  1880. 0xe8, 0x6c, 0xad, 0x0d, 0x3a, 0x5b, 0x65, 0x4d, 0x67, 0x6b, 0xfd, 0x4e, 0xbe, 0xd4, 0x00, 0x47,
  1881. 0xf8, 0xfb, 0x99, 0x22, 0x39, 0xb4, 0x8c, 0x7a, 0x1e, 0xdf, 0x68, 0xda, 0x77, 0xe1, 0x6b, 0x63,
  1882. 0x6b, 0x6d, 0x6f, 0xb3, 0x56, 0xf4, 0xb6, 0xd6, 0x06, 0xbd, 0xed, 0xc9, 0x9a, 0xde, 0x76, 0xf1,
  1883. 0xfc, 0xe7, 0x6f, 0x47, 0x8e, 0xf8, 0x65, 0x36, 0x38, 0xbe, 0x61, 0x93, 0x93, 0x11, 0x1b, 0xf7,
  1884. 0xdd, 0x51, 0xfc, 0x34, 0xfc, 0xc1, 0x3e, 0x59, 0xfd, 0xe8, 0xfd, 0xff, 0x00, 0x00, 0x00, 0xff,
  1885. 0xff, 0x59, 0x20, 0x4f, 0x36, 0x15, 0x17, 0x00, 0x00,
  1886. }
  1887. func init() {
  1888. xxx_Test_ProtoFile_FileDesc.Enums = xxx_Test_ProtoFile_EnumDescs[0:1]
  1889. xxx_Test_ProtoFile_FileDesc.Messages = xxx_Test_ProtoFile_MessageDescs[0:16]
  1890. xxx_Test_ProtoFile_MessageDescs[2].Enums = xxx_Test_ProtoFile_EnumDescs[1:2]
  1891. xxx_Test_ProtoFile_MessageDescs[3].Messages = xxx_Test_ProtoFile_MessageDescs[16:18]
  1892. xxx_Test_ProtoFile_MessageDescs[8].Messages = xxx_Test_ProtoFile_MessageDescs[19:25]
  1893. xxx_Test_ProtoFile_MessageDescs[10].Messages = xxx_Test_ProtoFile_MessageDescs[25:26]
  1894. xxx_Test_ProtoFile_MessageDescs[16].Messages = xxx_Test_ProtoFile_MessageDescs[18:19]
  1895. xxx_Test_ProtoFile_MessageDescs[2].Fields[0].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
  1896. xxx_Test_ProtoFile_MessageDescs[2].Fields[1].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
  1897. xxx_Test_ProtoFile_MessageDescs[2].Fields[2].EnumType = xxx_Test_ProtoFile_EnumTypes[1]
  1898. xxx_Test_ProtoFile_MessageDescs[2].Fields[3].EnumType = xxx_Test_ProtoFile_EnumTypes[1]
  1899. xxx_Test_ProtoFile_MessageDescs[3].Fields[0].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1900. xxx_Test_ProtoFile_MessageDescs[3].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[16].Type
  1901. xxx_Test_ProtoFile_MessageDescs[3].Fields[2].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1902. xxx_Test_ProtoFile_MessageDescs[3].Fields[3].MessageType = xxx_Test_ProtoFile_MessageTypes[17].Type
  1903. xxx_Test_ProtoFile_MessageDescs[4].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1904. xxx_Test_ProtoFile_MessageDescs[5].Fields[9].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
  1905. xxx_Test_ProtoFile_MessageDescs[5].Fields[10].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1906. xxx_Test_ProtoFile_MessageDescs[7].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1907. xxx_Test_ProtoFile_MessageDescs[8].Fields[0].MessageType = xxx_Test_ProtoFile_MessageDescs[19].Reference()
  1908. xxx_Test_ProtoFile_MessageDescs[8].Fields[1].MessageType = xxx_Test_ProtoFile_MessageDescs[20].Reference()
  1909. xxx_Test_ProtoFile_MessageDescs[8].Fields[2].MessageType = xxx_Test_ProtoFile_MessageDescs[21].Reference()
  1910. xxx_Test_ProtoFile_MessageDescs[8].Fields[3].MessageType = xxx_Test_ProtoFile_MessageDescs[22].Reference()
  1911. xxx_Test_ProtoFile_MessageDescs[8].Fields[4].MessageType = xxx_Test_ProtoFile_MessageDescs[23].Reference()
  1912. xxx_Test_ProtoFile_MessageDescs[8].Fields[5].MessageType = xxx_Test_ProtoFile_MessageDescs[24].Reference()
  1913. xxx_Test_ProtoFile_MessageDescs[10].Fields[0].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
  1914. xxx_Test_ProtoFile_MessageDescs[10].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
  1915. xxx_Test_ProtoFile_MessageDescs[10].Fields[2].MessageType = xxx_Test_ProtoFile_MessageDescs[25].Reference()
  1916. xxx_Test_ProtoFile_MessageDescs[15].Fields[0].MessageType = protoimpl.X.MessageTypeOf((*wrappers.BoolValue)(nil))
  1917. xxx_Test_ProtoFile_MessageDescs[15].Fields[1].MessageType = protoimpl.X.MessageTypeOf((*wrappers.Int32Value)(nil))
  1918. xxx_Test_ProtoFile_MessageDescs[15].Fields[2].MessageType = protoimpl.X.MessageTypeOf((*wrappers.Int64Value)(nil))
  1919. xxx_Test_ProtoFile_MessageDescs[15].Fields[3].MessageType = protoimpl.X.MessageTypeOf((*wrappers.UInt32Value)(nil))
  1920. xxx_Test_ProtoFile_MessageDescs[15].Fields[4].MessageType = protoimpl.X.MessageTypeOf((*wrappers.UInt64Value)(nil))
  1921. xxx_Test_ProtoFile_MessageDescs[15].Fields[5].MessageType = protoimpl.X.MessageTypeOf((*wrappers.FloatValue)(nil))
  1922. xxx_Test_ProtoFile_MessageDescs[15].Fields[6].MessageType = protoimpl.X.MessageTypeOf((*wrappers.DoubleValue)(nil))
  1923. xxx_Test_ProtoFile_MessageDescs[15].Fields[7].MessageType = protoimpl.X.MessageTypeOf((*wrappers.StringValue)(nil))
  1924. xxx_Test_ProtoFile_MessageDescs[15].Fields[8].MessageType = protoimpl.X.MessageTypeOf((*wrappers.BytesValue)(nil))
  1925. xxx_Test_ProtoFile_MessageDescs[15].Fields[9].MessageType = protoimpl.X.MessageTypeOf((*duration.Duration)(nil))
  1926. xxx_Test_ProtoFile_MessageDescs[15].Fields[10].MessageType = protoimpl.X.MessageTypeOf((*timestamp.Timestamp)(nil))
  1927. xxx_Test_ProtoFile_MessageDescs[15].Fields[11].MessageType = protoimpl.X.MessageTypeOf((*_struct.Struct)(nil))
  1928. xxx_Test_ProtoFile_MessageDescs[15].Fields[12].MessageType = protoimpl.X.MessageTypeOf((*_struct.ListValue)(nil))
  1929. xxx_Test_ProtoFile_MessageDescs[15].Fields[13].MessageType = protoimpl.X.MessageTypeOf((*_struct.Value)(nil))
  1930. xxx_Test_ProtoFile_MessageDescs[15].Fields[14].MessageType = protoimpl.X.MessageTypeOf((*empty.Empty)(nil))
  1931. xxx_Test_ProtoFile_MessageDescs[15].Fields[15].MessageType = protoimpl.X.MessageTypeOf((*any.Any)(nil))
  1932. xxx_Test_ProtoFile_MessageDescs[16].Fields[2].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1933. xxx_Test_ProtoFile_MessageDescs[16].Fields[3].MessageType = xxx_Test_ProtoFile_MessageTypes[18].Type
  1934. xxx_Test_ProtoFile_MessageDescs[18].Fields[0].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
  1935. xxx_Test_ProtoFile_MessageDescs[22].Fields[1].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
  1936. xxx_Test_ProtoFile_MessageDescs[23].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1937. xxx_Test_ProtoFile_MessageDescs[24].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[7].Type
  1938. xxx_Test_ProtoFile_MessageDescs[25].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
  1939. var err error
  1940. Test_ProtoFile, err = prototype.NewFile(&xxx_Test_ProtoFile_FileDesc)
  1941. if err != nil {
  1942. panic(err)
  1943. }
  1944. }
  1945. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  1946. var Test_ProtoFile protoreflect.FileDescriptor
  1947. var xxx_Test_ProtoFile_FileDesc = prototype.File{
  1948. Syntax: protoreflect.Proto2,
  1949. Path: "encoding/textpb/testprotos/pb2/test.proto",
  1950. Package: "pb2",
  1951. Imports: []protoreflect.FileImport{
  1952. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/any.proto", "google.protobuf")},
  1953. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/empty.proto", "google.protobuf")},
  1954. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/duration.proto", "google.protobuf")},
  1955. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/struct.proto", "google.protobuf")},
  1956. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/timestamp.proto", "google.protobuf")},
  1957. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/wrappers.proto", "google.protobuf")},
  1958. },
  1959. }
  1960. var xxx_Test_ProtoFile_EnumTypes = [2]protoreflect.EnumType{
  1961. prototype.GoEnum(
  1962. xxx_Test_ProtoFile_EnumDescs[0].Reference(),
  1963. func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
  1964. return Enum(n)
  1965. },
  1966. ),
  1967. prototype.GoEnum(
  1968. xxx_Test_ProtoFile_EnumDescs[1].Reference(),
  1969. func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
  1970. return Enums_NestedEnum(n)
  1971. },
  1972. ),
  1973. }
  1974. var xxx_Test_ProtoFile_EnumDescs = [2]prototype.Enum{
  1975. {
  1976. Name: "Enum",
  1977. Values: []prototype.EnumValue{
  1978. {Name: "UNKNOWN", Number: 0},
  1979. {Name: "FIRST", Number: 1},
  1980. {Name: "SECOND", Number: 2},
  1981. {Name: "TENTH", Number: 10},
  1982. },
  1983. },
  1984. {
  1985. Name: "NestedEnum",
  1986. Values: []prototype.EnumValue{
  1987. {Name: "UNO", Number: 1},
  1988. {Name: "DOS", Number: 2},
  1989. {Name: "DIEZ", Number: 10},
  1990. },
  1991. },
  1992. }
  1993. var xxx_Test_ProtoFile_MessageTypes = [26]protoimpl.MessageType{
  1994. {Type: prototype.GoMessage(
  1995. xxx_Test_ProtoFile_MessageDescs[0].Reference(),
  1996. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1997. return new(Scalars)
  1998. },
  1999. )},
  2000. {Type: prototype.GoMessage(
  2001. xxx_Test_ProtoFile_MessageDescs[1].Reference(),
  2002. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2003. return new(Repeats)
  2004. },
  2005. )},
  2006. {Type: prototype.GoMessage(
  2007. xxx_Test_ProtoFile_MessageDescs[2].Reference(),
  2008. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2009. return new(Enums)
  2010. },
  2011. )},
  2012. {Type: prototype.GoMessage(
  2013. xxx_Test_ProtoFile_MessageDescs[3].Reference(),
  2014. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2015. return new(Nests)
  2016. },
  2017. )},
  2018. {Type: prototype.GoMessage(
  2019. xxx_Test_ProtoFile_MessageDescs[4].Reference(),
  2020. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2021. return new(Nested)
  2022. },
  2023. )},
  2024. {Type: prototype.GoMessage(
  2025. xxx_Test_ProtoFile_MessageDescs[5].Reference(),
  2026. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2027. return new(Requireds)
  2028. },
  2029. )},
  2030. {Type: prototype.GoMessage(
  2031. xxx_Test_ProtoFile_MessageDescs[6].Reference(),
  2032. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2033. return new(PartialRequired)
  2034. },
  2035. )},
  2036. {Type: prototype.GoMessage(
  2037. xxx_Test_ProtoFile_MessageDescs[7].Reference(),
  2038. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2039. return new(Oneofs)
  2040. },
  2041. )},
  2042. {Type: prototype.GoMessage(
  2043. xxx_Test_ProtoFile_MessageDescs[8].Reference(),
  2044. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2045. return new(Maps)
  2046. },
  2047. )},
  2048. {Type: prototype.GoMessage(
  2049. xxx_Test_ProtoFile_MessageDescs[9].Reference(),
  2050. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2051. return new(NestedWithRequired)
  2052. },
  2053. )},
  2054. {Type: prototype.GoMessage(
  2055. xxx_Test_ProtoFile_MessageDescs[10].Reference(),
  2056. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2057. return new(IndirectRequired)
  2058. },
  2059. )},
  2060. {Type: prototype.GoMessage(
  2061. xxx_Test_ProtoFile_MessageDescs[11].Reference(),
  2062. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2063. return new(Extensions)
  2064. },
  2065. )},
  2066. {Type: prototype.GoMessage(
  2067. xxx_Test_ProtoFile_MessageDescs[12].Reference(),
  2068. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2069. return new(ExtensionsContainer)
  2070. },
  2071. )},
  2072. {Type: prototype.GoMessage(
  2073. xxx_Test_ProtoFile_MessageDescs[13].Reference(),
  2074. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2075. return new(MessageSet)
  2076. },
  2077. )},
  2078. {Type: prototype.GoMessage(
  2079. xxx_Test_ProtoFile_MessageDescs[14].Reference(),
  2080. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2081. return new(MessageSetExtension)
  2082. },
  2083. )},
  2084. {Type: prototype.GoMessage(
  2085. xxx_Test_ProtoFile_MessageDescs[15].Reference(),
  2086. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2087. return new(KnownTypes)
  2088. },
  2089. )},
  2090. {Type: prototype.GoMessage(
  2091. xxx_Test_ProtoFile_MessageDescs[16].Reference(),
  2092. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2093. return new(Nests_OptGroup)
  2094. },
  2095. )},
  2096. {Type: prototype.GoMessage(
  2097. xxx_Test_ProtoFile_MessageDescs[17].Reference(),
  2098. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2099. return new(Nests_RptGroup)
  2100. },
  2101. )},
  2102. {Type: prototype.GoMessage(
  2103. xxx_Test_ProtoFile_MessageDescs[18].Reference(),
  2104. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  2105. return new(Nests_OptGroup_OptNestedGroup)
  2106. },
  2107. )},
  2108. { /* no message type for Maps_Int32ToStrEntry */ },
  2109. { /* no message type for Maps_Sfixed64ToBoolEntry */ },
  2110. { /* no message type for Maps_BoolToUint32Entry */ },
  2111. { /* no message type for Maps_Uint64ToEnumEntry */ },
  2112. { /* no message type for Maps_StrToNestedEntry */ },
  2113. { /* no message type for Maps_StrToOneofsEntry */ },
  2114. { /* no message type for IndirectRequired_StrToNestedEntry */ },
  2115. }
  2116. var xxx_Test_ProtoFile_MessageDescs = [26]prototype.Message{
  2117. {
  2118. Name: "Scalars",
  2119. Fields: []prototype.Field{
  2120. {
  2121. Name: "opt_bool",
  2122. Number: 1,
  2123. Cardinality: protoreflect.Optional,
  2124. Kind: protoreflect.BoolKind,
  2125. JSONName: "optBool",
  2126. IsPacked: prototype.False,
  2127. },
  2128. {
  2129. Name: "opt_int32",
  2130. Number: 2,
  2131. Cardinality: protoreflect.Optional,
  2132. Kind: protoreflect.Int32Kind,
  2133. JSONName: "optInt32",
  2134. IsPacked: prototype.False,
  2135. },
  2136. {
  2137. Name: "opt_int64",
  2138. Number: 3,
  2139. Cardinality: protoreflect.Optional,
  2140. Kind: protoreflect.Int64Kind,
  2141. JSONName: "optInt64",
  2142. IsPacked: prototype.False,
  2143. },
  2144. {
  2145. Name: "opt_uint32",
  2146. Number: 4,
  2147. Cardinality: protoreflect.Optional,
  2148. Kind: protoreflect.Uint32Kind,
  2149. JSONName: "optUint32",
  2150. IsPacked: prototype.False,
  2151. },
  2152. {
  2153. Name: "opt_uint64",
  2154. Number: 5,
  2155. Cardinality: protoreflect.Optional,
  2156. Kind: protoreflect.Uint64Kind,
  2157. JSONName: "optUint64",
  2158. IsPacked: prototype.False,
  2159. },
  2160. {
  2161. Name: "opt_sint32",
  2162. Number: 6,
  2163. Cardinality: protoreflect.Optional,
  2164. Kind: protoreflect.Sint32Kind,
  2165. JSONName: "optSint32",
  2166. IsPacked: prototype.False,
  2167. },
  2168. {
  2169. Name: "opt_sint64",
  2170. Number: 7,
  2171. Cardinality: protoreflect.Optional,
  2172. Kind: protoreflect.Sint64Kind,
  2173. JSONName: "optSint64",
  2174. IsPacked: prototype.False,
  2175. },
  2176. {
  2177. Name: "opt_fixed32",
  2178. Number: 8,
  2179. Cardinality: protoreflect.Optional,
  2180. Kind: protoreflect.Fixed32Kind,
  2181. JSONName: "optFixed32",
  2182. IsPacked: prototype.False,
  2183. },
  2184. {
  2185. Name: "opt_fixed64",
  2186. Number: 9,
  2187. Cardinality: protoreflect.Optional,
  2188. Kind: protoreflect.Fixed64Kind,
  2189. JSONName: "optFixed64",
  2190. IsPacked: prototype.False,
  2191. },
  2192. {
  2193. Name: "opt_sfixed32",
  2194. Number: 10,
  2195. Cardinality: protoreflect.Optional,
  2196. Kind: protoreflect.Sfixed32Kind,
  2197. JSONName: "optSfixed32",
  2198. IsPacked: prototype.False,
  2199. },
  2200. {
  2201. Name: "opt_sfixed64",
  2202. Number: 11,
  2203. Cardinality: protoreflect.Optional,
  2204. Kind: protoreflect.Sfixed64Kind,
  2205. JSONName: "optSfixed64",
  2206. IsPacked: prototype.False,
  2207. },
  2208. {
  2209. Name: "opt_float",
  2210. Number: 20,
  2211. Cardinality: protoreflect.Optional,
  2212. Kind: protoreflect.FloatKind,
  2213. JSONName: "optFloat",
  2214. IsPacked: prototype.False,
  2215. },
  2216. {
  2217. Name: "opt_double",
  2218. Number: 21,
  2219. Cardinality: protoreflect.Optional,
  2220. Kind: protoreflect.DoubleKind,
  2221. JSONName: "optDouble",
  2222. IsPacked: prototype.False,
  2223. },
  2224. {
  2225. Name: "opt_bytes",
  2226. Number: 14,
  2227. Cardinality: protoreflect.Optional,
  2228. Kind: protoreflect.BytesKind,
  2229. JSONName: "optBytes",
  2230. IsPacked: prototype.False,
  2231. },
  2232. {
  2233. Name: "opt_string",
  2234. Number: 13,
  2235. Cardinality: protoreflect.Optional,
  2236. Kind: protoreflect.StringKind,
  2237. JSONName: "optString",
  2238. IsPacked: prototype.False,
  2239. },
  2240. },
  2241. },
  2242. {
  2243. Name: "Repeats",
  2244. Fields: []prototype.Field{
  2245. {
  2246. Name: "rpt_bool",
  2247. Number: 1,
  2248. Cardinality: protoreflect.Repeated,
  2249. Kind: protoreflect.BoolKind,
  2250. JSONName: "rptBool",
  2251. IsPacked: prototype.False,
  2252. },
  2253. {
  2254. Name: "rpt_int32",
  2255. Number: 2,
  2256. Cardinality: protoreflect.Repeated,
  2257. Kind: protoreflect.Int32Kind,
  2258. JSONName: "rptInt32",
  2259. IsPacked: prototype.False,
  2260. },
  2261. {
  2262. Name: "rpt_int64",
  2263. Number: 3,
  2264. Cardinality: protoreflect.Repeated,
  2265. Kind: protoreflect.Int64Kind,
  2266. JSONName: "rptInt64",
  2267. IsPacked: prototype.False,
  2268. },
  2269. {
  2270. Name: "rpt_uint32",
  2271. Number: 4,
  2272. Cardinality: protoreflect.Repeated,
  2273. Kind: protoreflect.Uint32Kind,
  2274. JSONName: "rptUint32",
  2275. IsPacked: prototype.False,
  2276. },
  2277. {
  2278. Name: "rpt_uint64",
  2279. Number: 5,
  2280. Cardinality: protoreflect.Repeated,
  2281. Kind: protoreflect.Uint64Kind,
  2282. JSONName: "rptUint64",
  2283. IsPacked: prototype.False,
  2284. },
  2285. {
  2286. Name: "rpt_float",
  2287. Number: 6,
  2288. Cardinality: protoreflect.Repeated,
  2289. Kind: protoreflect.FloatKind,
  2290. JSONName: "rptFloat",
  2291. IsPacked: prototype.False,
  2292. },
  2293. {
  2294. Name: "rpt_double",
  2295. Number: 7,
  2296. Cardinality: protoreflect.Repeated,
  2297. Kind: protoreflect.DoubleKind,
  2298. JSONName: "rptDouble",
  2299. IsPacked: prototype.False,
  2300. },
  2301. {
  2302. Name: "rpt_string",
  2303. Number: 15,
  2304. Cardinality: protoreflect.Repeated,
  2305. Kind: protoreflect.StringKind,
  2306. JSONName: "rptString",
  2307. IsPacked: prototype.False,
  2308. },
  2309. {
  2310. Name: "rpt_bytes",
  2311. Number: 14,
  2312. Cardinality: protoreflect.Repeated,
  2313. Kind: protoreflect.BytesKind,
  2314. JSONName: "rptBytes",
  2315. IsPacked: prototype.False,
  2316. },
  2317. },
  2318. },
  2319. {
  2320. Name: "Enums",
  2321. Fields: []prototype.Field{
  2322. {
  2323. Name: "opt_enum",
  2324. Number: 1,
  2325. Cardinality: protoreflect.Optional,
  2326. Kind: protoreflect.EnumKind,
  2327. JSONName: "optEnum",
  2328. IsPacked: prototype.False,
  2329. },
  2330. {
  2331. Name: "rpt_enum",
  2332. Number: 2,
  2333. Cardinality: protoreflect.Repeated,
  2334. Kind: protoreflect.EnumKind,
  2335. JSONName: "rptEnum",
  2336. IsPacked: prototype.False,
  2337. },
  2338. {
  2339. Name: "opt_nested_enum",
  2340. Number: 3,
  2341. Cardinality: protoreflect.Optional,
  2342. Kind: protoreflect.EnumKind,
  2343. JSONName: "optNestedEnum",
  2344. IsPacked: prototype.False,
  2345. },
  2346. {
  2347. Name: "rpt_nested_enum",
  2348. Number: 4,
  2349. Cardinality: protoreflect.Repeated,
  2350. Kind: protoreflect.EnumKind,
  2351. JSONName: "rptNestedEnum",
  2352. IsPacked: prototype.False,
  2353. },
  2354. },
  2355. },
  2356. {
  2357. Name: "Nests",
  2358. Fields: []prototype.Field{
  2359. {
  2360. Name: "opt_nested",
  2361. Number: 1,
  2362. Cardinality: protoreflect.Optional,
  2363. Kind: protoreflect.MessageKind,
  2364. JSONName: "optNested",
  2365. IsPacked: prototype.False,
  2366. },
  2367. {
  2368. Name: "optgroup",
  2369. Number: 2,
  2370. Cardinality: protoreflect.Optional,
  2371. Kind: protoreflect.GroupKind,
  2372. JSONName: "optgroup",
  2373. IsPacked: prototype.False,
  2374. },
  2375. {
  2376. Name: "rpt_nested",
  2377. Number: 3,
  2378. Cardinality: protoreflect.Repeated,
  2379. Kind: protoreflect.MessageKind,
  2380. JSONName: "rptNested",
  2381. IsPacked: prototype.False,
  2382. },
  2383. {
  2384. Name: "rptgroup",
  2385. Number: 4,
  2386. Cardinality: protoreflect.Repeated,
  2387. Kind: protoreflect.GroupKind,
  2388. JSONName: "rptgroup",
  2389. IsPacked: prototype.False,
  2390. },
  2391. },
  2392. ReservedNames: []protoreflect.Name{"reserved_field"},
  2393. },
  2394. {
  2395. Name: "Nested",
  2396. Fields: []prototype.Field{
  2397. {
  2398. Name: "opt_string",
  2399. Number: 1,
  2400. Cardinality: protoreflect.Optional,
  2401. Kind: protoreflect.StringKind,
  2402. JSONName: "optString",
  2403. IsPacked: prototype.False,
  2404. },
  2405. {
  2406. Name: "opt_nested",
  2407. Number: 2,
  2408. Cardinality: protoreflect.Optional,
  2409. Kind: protoreflect.MessageKind,
  2410. JSONName: "optNested",
  2411. IsPacked: prototype.False,
  2412. },
  2413. },
  2414. },
  2415. {
  2416. Name: "Requireds",
  2417. Fields: []prototype.Field{
  2418. {
  2419. Name: "req_bool",
  2420. Number: 1,
  2421. Cardinality: protoreflect.Required,
  2422. Kind: protoreflect.BoolKind,
  2423. JSONName: "reqBool",
  2424. IsPacked: prototype.False,
  2425. },
  2426. {
  2427. Name: "req_fixed32",
  2428. Number: 2,
  2429. Cardinality: protoreflect.Required,
  2430. Kind: protoreflect.Fixed32Kind,
  2431. JSONName: "reqFixed32",
  2432. IsPacked: prototype.False,
  2433. },
  2434. {
  2435. Name: "req_fixed64",
  2436. Number: 3,
  2437. Cardinality: protoreflect.Required,
  2438. Kind: protoreflect.Fixed64Kind,
  2439. JSONName: "reqFixed64",
  2440. IsPacked: prototype.False,
  2441. },
  2442. {
  2443. Name: "req_sfixed32",
  2444. Number: 4,
  2445. Cardinality: protoreflect.Required,
  2446. Kind: protoreflect.Sfixed32Kind,
  2447. JSONName: "reqSfixed32",
  2448. IsPacked: prototype.False,
  2449. },
  2450. {
  2451. Name: "req_sfixed64",
  2452. Number: 5,
  2453. Cardinality: protoreflect.Required,
  2454. Kind: protoreflect.Sfixed64Kind,
  2455. JSONName: "reqSfixed64",
  2456. IsPacked: prototype.False,
  2457. },
  2458. {
  2459. Name: "req_float",
  2460. Number: 6,
  2461. Cardinality: protoreflect.Required,
  2462. Kind: protoreflect.FloatKind,
  2463. JSONName: "reqFloat",
  2464. IsPacked: prototype.False,
  2465. },
  2466. {
  2467. Name: "req_double",
  2468. Number: 7,
  2469. Cardinality: protoreflect.Required,
  2470. Kind: protoreflect.DoubleKind,
  2471. JSONName: "reqDouble",
  2472. IsPacked: prototype.False,
  2473. },
  2474. {
  2475. Name: "req_string",
  2476. Number: 8,
  2477. Cardinality: protoreflect.Required,
  2478. Kind: protoreflect.StringKind,
  2479. JSONName: "reqString",
  2480. IsPacked: prototype.False,
  2481. },
  2482. {
  2483. Name: "req_bytes",
  2484. Number: 9,
  2485. Cardinality: protoreflect.Required,
  2486. Kind: protoreflect.BytesKind,
  2487. JSONName: "reqBytes",
  2488. IsPacked: prototype.False,
  2489. },
  2490. {
  2491. Name: "req_enum",
  2492. Number: 10,
  2493. Cardinality: protoreflect.Required,
  2494. Kind: protoreflect.EnumKind,
  2495. JSONName: "reqEnum",
  2496. IsPacked: prototype.False,
  2497. },
  2498. {
  2499. Name: "req_nested",
  2500. Number: 11,
  2501. Cardinality: protoreflect.Required,
  2502. Kind: protoreflect.MessageKind,
  2503. JSONName: "reqNested",
  2504. IsPacked: prototype.False,
  2505. },
  2506. },
  2507. },
  2508. {
  2509. Name: "PartialRequired",
  2510. Fields: []prototype.Field{
  2511. {
  2512. Name: "req_string",
  2513. Number: 1,
  2514. Cardinality: protoreflect.Required,
  2515. Kind: protoreflect.StringKind,
  2516. JSONName: "reqString",
  2517. IsPacked: prototype.False,
  2518. },
  2519. {
  2520. Name: "opt_string",
  2521. Number: 2,
  2522. Cardinality: protoreflect.Optional,
  2523. Kind: protoreflect.StringKind,
  2524. JSONName: "optString",
  2525. IsPacked: prototype.False,
  2526. },
  2527. },
  2528. },
  2529. {
  2530. Name: "Oneofs",
  2531. Fields: []prototype.Field{
  2532. {
  2533. Name: "str",
  2534. Number: 1,
  2535. Cardinality: protoreflect.Optional,
  2536. Kind: protoreflect.StringKind,
  2537. JSONName: "str",
  2538. OneofName: "union",
  2539. IsPacked: prototype.False,
  2540. },
  2541. {
  2542. Name: "msg",
  2543. Number: 2,
  2544. Cardinality: protoreflect.Optional,
  2545. Kind: protoreflect.MessageKind,
  2546. JSONName: "msg",
  2547. OneofName: "union",
  2548. IsPacked: prototype.False,
  2549. },
  2550. },
  2551. Oneofs: []prototype.Oneof{
  2552. {Name: "union"},
  2553. },
  2554. },
  2555. {
  2556. Name: "Maps",
  2557. Fields: []prototype.Field{
  2558. {
  2559. Name: "int32_to_str",
  2560. Number: 1,
  2561. Cardinality: protoreflect.Repeated,
  2562. Kind: protoreflect.MessageKind,
  2563. JSONName: "int32ToStr",
  2564. IsPacked: prototype.False,
  2565. },
  2566. {
  2567. Name: "sfixed64_to_bool",
  2568. Number: 2,
  2569. Cardinality: protoreflect.Repeated,
  2570. Kind: protoreflect.MessageKind,
  2571. JSONName: "sfixed64ToBool",
  2572. IsPacked: prototype.False,
  2573. },
  2574. {
  2575. Name: "bool_to_uint32",
  2576. Number: 3,
  2577. Cardinality: protoreflect.Repeated,
  2578. Kind: protoreflect.MessageKind,
  2579. JSONName: "boolToUint32",
  2580. IsPacked: prototype.False,
  2581. },
  2582. {
  2583. Name: "uint64_to_enum",
  2584. Number: 4,
  2585. Cardinality: protoreflect.Repeated,
  2586. Kind: protoreflect.MessageKind,
  2587. JSONName: "uint64ToEnum",
  2588. IsPacked: prototype.False,
  2589. },
  2590. {
  2591. Name: "str_to_nested",
  2592. Number: 5,
  2593. Cardinality: protoreflect.Repeated,
  2594. Kind: protoreflect.MessageKind,
  2595. JSONName: "strToNested",
  2596. IsPacked: prototype.False,
  2597. },
  2598. {
  2599. Name: "str_to_oneofs",
  2600. Number: 6,
  2601. Cardinality: protoreflect.Repeated,
  2602. Kind: protoreflect.MessageKind,
  2603. JSONName: "strToOneofs",
  2604. IsPacked: prototype.False,
  2605. },
  2606. },
  2607. },
  2608. {
  2609. Name: "NestedWithRequired",
  2610. Fields: []prototype.Field{
  2611. {
  2612. Name: "req_string",
  2613. Number: 1,
  2614. Cardinality: protoreflect.Required,
  2615. Kind: protoreflect.StringKind,
  2616. JSONName: "reqString",
  2617. IsPacked: prototype.False,
  2618. },
  2619. },
  2620. },
  2621. {
  2622. Name: "IndirectRequired",
  2623. Fields: []prototype.Field{
  2624. {
  2625. Name: "opt_nested",
  2626. Number: 1,
  2627. Cardinality: protoreflect.Optional,
  2628. Kind: protoreflect.MessageKind,
  2629. JSONName: "optNested",
  2630. IsPacked: prototype.False,
  2631. },
  2632. {
  2633. Name: "rpt_nested",
  2634. Number: 2,
  2635. Cardinality: protoreflect.Repeated,
  2636. Kind: protoreflect.MessageKind,
  2637. JSONName: "rptNested",
  2638. IsPacked: prototype.False,
  2639. },
  2640. {
  2641. Name: "str_to_nested",
  2642. Number: 3,
  2643. Cardinality: protoreflect.Repeated,
  2644. Kind: protoreflect.MessageKind,
  2645. JSONName: "strToNested",
  2646. IsPacked: prototype.False,
  2647. },
  2648. },
  2649. },
  2650. {
  2651. Name: "Extensions",
  2652. Fields: []prototype.Field{
  2653. {
  2654. Name: "opt_string",
  2655. Number: 1,
  2656. Cardinality: protoreflect.Optional,
  2657. Kind: protoreflect.StringKind,
  2658. JSONName: "optString",
  2659. IsPacked: prototype.False,
  2660. },
  2661. {
  2662. Name: "opt_bool",
  2663. Number: 101,
  2664. Cardinality: protoreflect.Optional,
  2665. Kind: protoreflect.BoolKind,
  2666. JSONName: "optBool",
  2667. IsPacked: prototype.False,
  2668. },
  2669. {
  2670. Name: "opt_int32",
  2671. Number: 2,
  2672. Cardinality: protoreflect.Optional,
  2673. Kind: protoreflect.Int32Kind,
  2674. JSONName: "optInt32",
  2675. IsPacked: prototype.False,
  2676. },
  2677. },
  2678. ExtensionRanges: [][2]protoreflect.FieldNumber{{20, 101}},
  2679. },
  2680. {
  2681. Name: "ExtensionsContainer",
  2682. },
  2683. {
  2684. Name: "MessageSet",
  2685. ExtensionRanges: [][2]protoreflect.FieldNumber{{4, 2147483647}},
  2686. },
  2687. {
  2688. Name: "MessageSetExtension",
  2689. Fields: []prototype.Field{
  2690. {
  2691. Name: "opt_string",
  2692. Number: 1,
  2693. Cardinality: protoreflect.Optional,
  2694. Kind: protoreflect.StringKind,
  2695. JSONName: "optString",
  2696. IsPacked: prototype.False,
  2697. },
  2698. },
  2699. },
  2700. {
  2701. Name: "KnownTypes",
  2702. Fields: []prototype.Field{
  2703. {
  2704. Name: "opt_bool",
  2705. Number: 1,
  2706. Cardinality: protoreflect.Optional,
  2707. Kind: protoreflect.MessageKind,
  2708. JSONName: "optBool",
  2709. IsPacked: prototype.False,
  2710. },
  2711. {
  2712. Name: "opt_int32",
  2713. Number: 2,
  2714. Cardinality: protoreflect.Optional,
  2715. Kind: protoreflect.MessageKind,
  2716. JSONName: "optInt32",
  2717. IsPacked: prototype.False,
  2718. },
  2719. {
  2720. Name: "opt_int64",
  2721. Number: 3,
  2722. Cardinality: protoreflect.Optional,
  2723. Kind: protoreflect.MessageKind,
  2724. JSONName: "optInt64",
  2725. IsPacked: prototype.False,
  2726. },
  2727. {
  2728. Name: "opt_uint32",
  2729. Number: 4,
  2730. Cardinality: protoreflect.Optional,
  2731. Kind: protoreflect.MessageKind,
  2732. JSONName: "optUint32",
  2733. IsPacked: prototype.False,
  2734. },
  2735. {
  2736. Name: "opt_uint64",
  2737. Number: 5,
  2738. Cardinality: protoreflect.Optional,
  2739. Kind: protoreflect.MessageKind,
  2740. JSONName: "optUint64",
  2741. IsPacked: prototype.False,
  2742. },
  2743. {
  2744. Name: "opt_float",
  2745. Number: 6,
  2746. Cardinality: protoreflect.Optional,
  2747. Kind: protoreflect.MessageKind,
  2748. JSONName: "optFloat",
  2749. IsPacked: prototype.False,
  2750. },
  2751. {
  2752. Name: "opt_double",
  2753. Number: 7,
  2754. Cardinality: protoreflect.Optional,
  2755. Kind: protoreflect.MessageKind,
  2756. JSONName: "optDouble",
  2757. IsPacked: prototype.False,
  2758. },
  2759. {
  2760. Name: "opt_string",
  2761. Number: 8,
  2762. Cardinality: protoreflect.Optional,
  2763. Kind: protoreflect.MessageKind,
  2764. JSONName: "optString",
  2765. IsPacked: prototype.False,
  2766. },
  2767. {
  2768. Name: "opt_bytes",
  2769. Number: 9,
  2770. Cardinality: protoreflect.Optional,
  2771. Kind: protoreflect.MessageKind,
  2772. JSONName: "optBytes",
  2773. IsPacked: prototype.False,
  2774. },
  2775. {
  2776. Name: "opt_duration",
  2777. Number: 20,
  2778. Cardinality: protoreflect.Optional,
  2779. Kind: protoreflect.MessageKind,
  2780. JSONName: "optDuration",
  2781. IsPacked: prototype.False,
  2782. },
  2783. {
  2784. Name: "opt_timestamp",
  2785. Number: 21,
  2786. Cardinality: protoreflect.Optional,
  2787. Kind: protoreflect.MessageKind,
  2788. JSONName: "optTimestamp",
  2789. IsPacked: prototype.False,
  2790. },
  2791. {
  2792. Name: "opt_struct",
  2793. Number: 25,
  2794. Cardinality: protoreflect.Optional,
  2795. Kind: protoreflect.MessageKind,
  2796. JSONName: "optStruct",
  2797. IsPacked: prototype.False,
  2798. },
  2799. {
  2800. Name: "opt_list",
  2801. Number: 26,
  2802. Cardinality: protoreflect.Optional,
  2803. Kind: protoreflect.MessageKind,
  2804. JSONName: "optList",
  2805. IsPacked: prototype.False,
  2806. },
  2807. {
  2808. Name: "opt_value",
  2809. Number: 27,
  2810. Cardinality: protoreflect.Optional,
  2811. Kind: protoreflect.MessageKind,
  2812. JSONName: "optValue",
  2813. IsPacked: prototype.False,
  2814. },
  2815. {
  2816. Name: "opt_empty",
  2817. Number: 30,
  2818. Cardinality: protoreflect.Optional,
  2819. Kind: protoreflect.MessageKind,
  2820. JSONName: "optEmpty",
  2821. IsPacked: prototype.False,
  2822. },
  2823. {
  2824. Name: "opt_any",
  2825. Number: 32,
  2826. Cardinality: protoreflect.Optional,
  2827. Kind: protoreflect.MessageKind,
  2828. JSONName: "optAny",
  2829. IsPacked: prototype.False,
  2830. },
  2831. },
  2832. },
  2833. {
  2834. Name: "OptGroup",
  2835. Fields: []prototype.Field{
  2836. {
  2837. Name: "opt_bool",
  2838. Number: 1,
  2839. Cardinality: protoreflect.Optional,
  2840. Kind: protoreflect.BoolKind,
  2841. JSONName: "optBool",
  2842. IsPacked: prototype.False,
  2843. },
  2844. {
  2845. Name: "opt_string",
  2846. Number: 2,
  2847. Cardinality: protoreflect.Optional,
  2848. Kind: protoreflect.StringKind,
  2849. JSONName: "optString",
  2850. IsPacked: prototype.False,
  2851. },
  2852. {
  2853. Name: "opt_nested",
  2854. Number: 3,
  2855. Cardinality: protoreflect.Optional,
  2856. Kind: protoreflect.MessageKind,
  2857. JSONName: "optNested",
  2858. IsPacked: prototype.False,
  2859. },
  2860. {
  2861. Name: "optnestedgroup",
  2862. Number: 4,
  2863. Cardinality: protoreflect.Optional,
  2864. Kind: protoreflect.GroupKind,
  2865. JSONName: "optnestedgroup",
  2866. IsPacked: prototype.False,
  2867. },
  2868. },
  2869. },
  2870. {
  2871. Name: "RptGroup",
  2872. Fields: []prototype.Field{
  2873. {
  2874. Name: "rpt_bool",
  2875. Number: 1,
  2876. Cardinality: protoreflect.Repeated,
  2877. Kind: protoreflect.BoolKind,
  2878. JSONName: "rptBool",
  2879. IsPacked: prototype.False,
  2880. },
  2881. },
  2882. },
  2883. {
  2884. Name: "OptNestedGroup",
  2885. Fields: []prototype.Field{
  2886. {
  2887. Name: "opt_enum",
  2888. Number: 1,
  2889. Cardinality: protoreflect.Optional,
  2890. Kind: protoreflect.EnumKind,
  2891. JSONName: "optEnum",
  2892. IsPacked: prototype.False,
  2893. },
  2894. },
  2895. },
  2896. {
  2897. Name: "Int32ToStrEntry",
  2898. Fields: []prototype.Field{
  2899. {
  2900. Name: "key",
  2901. Number: 1,
  2902. Cardinality: protoreflect.Optional,
  2903. Kind: protoreflect.Int32Kind,
  2904. JSONName: "key",
  2905. IsPacked: prototype.False,
  2906. },
  2907. {
  2908. Name: "value",
  2909. Number: 2,
  2910. Cardinality: protoreflect.Optional,
  2911. Kind: protoreflect.StringKind,
  2912. JSONName: "value",
  2913. IsPacked: prototype.False,
  2914. },
  2915. },
  2916. IsMapEntry: true,
  2917. },
  2918. {
  2919. Name: "Sfixed64ToBoolEntry",
  2920. Fields: []prototype.Field{
  2921. {
  2922. Name: "key",
  2923. Number: 1,
  2924. Cardinality: protoreflect.Optional,
  2925. Kind: protoreflect.Sfixed64Kind,
  2926. JSONName: "key",
  2927. IsPacked: prototype.False,
  2928. },
  2929. {
  2930. Name: "value",
  2931. Number: 2,
  2932. Cardinality: protoreflect.Optional,
  2933. Kind: protoreflect.BoolKind,
  2934. JSONName: "value",
  2935. IsPacked: prototype.False,
  2936. },
  2937. },
  2938. IsMapEntry: true,
  2939. },
  2940. {
  2941. Name: "BoolToUint32Entry",
  2942. Fields: []prototype.Field{
  2943. {
  2944. Name: "key",
  2945. Number: 1,
  2946. Cardinality: protoreflect.Optional,
  2947. Kind: protoreflect.BoolKind,
  2948. JSONName: "key",
  2949. IsPacked: prototype.False,
  2950. },
  2951. {
  2952. Name: "value",
  2953. Number: 2,
  2954. Cardinality: protoreflect.Optional,
  2955. Kind: protoreflect.Uint32Kind,
  2956. JSONName: "value",
  2957. IsPacked: prototype.False,
  2958. },
  2959. },
  2960. IsMapEntry: true,
  2961. },
  2962. {
  2963. Name: "Uint64ToEnumEntry",
  2964. Fields: []prototype.Field{
  2965. {
  2966. Name: "key",
  2967. Number: 1,
  2968. Cardinality: protoreflect.Optional,
  2969. Kind: protoreflect.Uint64Kind,
  2970. JSONName: "key",
  2971. IsPacked: prototype.False,
  2972. },
  2973. {
  2974. Name: "value",
  2975. Number: 2,
  2976. Cardinality: protoreflect.Optional,
  2977. Kind: protoreflect.EnumKind,
  2978. JSONName: "value",
  2979. IsPacked: prototype.False,
  2980. },
  2981. },
  2982. IsMapEntry: true,
  2983. },
  2984. {
  2985. Name: "StrToNestedEntry",
  2986. Fields: []prototype.Field{
  2987. {
  2988. Name: "key",
  2989. Number: 1,
  2990. Cardinality: protoreflect.Optional,
  2991. Kind: protoreflect.StringKind,
  2992. JSONName: "key",
  2993. IsPacked: prototype.False,
  2994. },
  2995. {
  2996. Name: "value",
  2997. Number: 2,
  2998. Cardinality: protoreflect.Optional,
  2999. Kind: protoreflect.MessageKind,
  3000. JSONName: "value",
  3001. IsPacked: prototype.False,
  3002. },
  3003. },
  3004. IsMapEntry: true,
  3005. },
  3006. {
  3007. Name: "StrToOneofsEntry",
  3008. Fields: []prototype.Field{
  3009. {
  3010. Name: "key",
  3011. Number: 1,
  3012. Cardinality: protoreflect.Optional,
  3013. Kind: protoreflect.StringKind,
  3014. JSONName: "key",
  3015. IsPacked: prototype.False,
  3016. },
  3017. {
  3018. Name: "value",
  3019. Number: 2,
  3020. Cardinality: protoreflect.Optional,
  3021. Kind: protoreflect.MessageKind,
  3022. JSONName: "value",
  3023. IsPacked: prototype.False,
  3024. },
  3025. },
  3026. IsMapEntry: true,
  3027. },
  3028. {
  3029. Name: "StrToNestedEntry",
  3030. Fields: []prototype.Field{
  3031. {
  3032. Name: "key",
  3033. Number: 1,
  3034. Cardinality: protoreflect.Optional,
  3035. Kind: protoreflect.StringKind,
  3036. JSONName: "key",
  3037. IsPacked: prototype.False,
  3038. },
  3039. {
  3040. Name: "value",
  3041. Number: 2,
  3042. Cardinality: protoreflect.Optional,
  3043. Kind: protoreflect.MessageKind,
  3044. JSONName: "value",
  3045. IsPacked: prototype.False,
  3046. },
  3047. },
  3048. IsMapEntry: true,
  3049. },
  3050. }