test.pb.go 90 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793
  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. // Following messages are for testing required field nested in optional, repeated and map fields.
  922. type NestedWithRequired struct {
  923. ReqString *string `protobuf:"bytes,1,req,name=req_string,json=reqString" json:"req_string,omitempty"`
  924. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  925. XXX_unrecognized []byte `json:"-"`
  926. XXX_sizecache int32 `json:"-"`
  927. }
  928. type xxx_NestedWithRequired struct{ m *NestedWithRequired }
  929. func (m *NestedWithRequired) ProtoReflect() protoreflect.Message {
  930. return xxx_NestedWithRequired{m}
  931. }
  932. func (m xxx_NestedWithRequired) Type() protoreflect.MessageType {
  933. return xxx_Test_ProtoFile_MessageTypes[9].Type
  934. }
  935. func (m xxx_NestedWithRequired) KnownFields() protoreflect.KnownFields {
  936. return xxx_Test_ProtoFile_MessageTypes[9].KnownFieldsOf(m.m)
  937. }
  938. func (m xxx_NestedWithRequired) UnknownFields() protoreflect.UnknownFields {
  939. return xxx_Test_ProtoFile_MessageTypes[9].UnknownFieldsOf(m.m)
  940. }
  941. func (m xxx_NestedWithRequired) Interface() protoreflect.ProtoMessage {
  942. return m.m
  943. }
  944. func (m *NestedWithRequired) Reset() { *m = NestedWithRequired{} }
  945. func (m *NestedWithRequired) String() string { return proto.CompactTextString(m) }
  946. func (*NestedWithRequired) ProtoMessage() {}
  947. func (*NestedWithRequired) Descriptor() ([]byte, []int) {
  948. return fileDescriptor_c8d7acc1bcec9a72, []int{9}
  949. }
  950. func (m *NestedWithRequired) XXX_Unmarshal(b []byte) error {
  951. return xxx_messageInfo_NestedWithRequired.Unmarshal(m, b)
  952. }
  953. func (m *NestedWithRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  954. return xxx_messageInfo_NestedWithRequired.Marshal(b, m, deterministic)
  955. }
  956. func (m *NestedWithRequired) XXX_Merge(src proto.Message) {
  957. xxx_messageInfo_NestedWithRequired.Merge(m, src)
  958. }
  959. func (m *NestedWithRequired) XXX_Size() int {
  960. return xxx_messageInfo_NestedWithRequired.Size(m)
  961. }
  962. func (m *NestedWithRequired) XXX_DiscardUnknown() {
  963. xxx_messageInfo_NestedWithRequired.DiscardUnknown(m)
  964. }
  965. var xxx_messageInfo_NestedWithRequired proto.InternalMessageInfo
  966. func (m *NestedWithRequired) GetReqString() string {
  967. if m != nil && m.ReqString != nil {
  968. return *m.ReqString
  969. }
  970. return ""
  971. }
  972. type IndirectRequired struct {
  973. OptNested *NestedWithRequired `protobuf:"bytes,1,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
  974. RptNested []*NestedWithRequired `protobuf:"bytes,2,rep,name=rpt_nested,json=rptNested" json:"rpt_nested,omitempty"`
  975. 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"`
  976. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  977. XXX_unrecognized []byte `json:"-"`
  978. XXX_sizecache int32 `json:"-"`
  979. }
  980. type xxx_IndirectRequired struct{ m *IndirectRequired }
  981. func (m *IndirectRequired) ProtoReflect() protoreflect.Message {
  982. return xxx_IndirectRequired{m}
  983. }
  984. func (m xxx_IndirectRequired) Type() protoreflect.MessageType {
  985. return xxx_Test_ProtoFile_MessageTypes[10].Type
  986. }
  987. func (m xxx_IndirectRequired) KnownFields() protoreflect.KnownFields {
  988. return xxx_Test_ProtoFile_MessageTypes[10].KnownFieldsOf(m.m)
  989. }
  990. func (m xxx_IndirectRequired) UnknownFields() protoreflect.UnknownFields {
  991. return xxx_Test_ProtoFile_MessageTypes[10].UnknownFieldsOf(m.m)
  992. }
  993. func (m xxx_IndirectRequired) Interface() protoreflect.ProtoMessage {
  994. return m.m
  995. }
  996. func (m *IndirectRequired) Reset() { *m = IndirectRequired{} }
  997. func (m *IndirectRequired) String() string { return proto.CompactTextString(m) }
  998. func (*IndirectRequired) ProtoMessage() {}
  999. func (*IndirectRequired) Descriptor() ([]byte, []int) {
  1000. return fileDescriptor_c8d7acc1bcec9a72, []int{10}
  1001. }
  1002. func (m *IndirectRequired) XXX_Unmarshal(b []byte) error {
  1003. return xxx_messageInfo_IndirectRequired.Unmarshal(m, b)
  1004. }
  1005. func (m *IndirectRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1006. return xxx_messageInfo_IndirectRequired.Marshal(b, m, deterministic)
  1007. }
  1008. func (m *IndirectRequired) XXX_Merge(src proto.Message) {
  1009. xxx_messageInfo_IndirectRequired.Merge(m, src)
  1010. }
  1011. func (m *IndirectRequired) XXX_Size() int {
  1012. return xxx_messageInfo_IndirectRequired.Size(m)
  1013. }
  1014. func (m *IndirectRequired) XXX_DiscardUnknown() {
  1015. xxx_messageInfo_IndirectRequired.DiscardUnknown(m)
  1016. }
  1017. var xxx_messageInfo_IndirectRequired proto.InternalMessageInfo
  1018. func (m *IndirectRequired) GetOptNested() *NestedWithRequired {
  1019. if m != nil {
  1020. return m.OptNested
  1021. }
  1022. return nil
  1023. }
  1024. func (m *IndirectRequired) GetRptNested() []*NestedWithRequired {
  1025. if m != nil {
  1026. return m.RptNested
  1027. }
  1028. return nil
  1029. }
  1030. func (m *IndirectRequired) GetStrToNested() map[string]*NestedWithRequired {
  1031. if m != nil {
  1032. return m.StrToNested
  1033. }
  1034. return nil
  1035. }
  1036. // Message contains well-known type fields.
  1037. type KnownTypes struct {
  1038. OptBool *wrappers.BoolValue `protobuf:"bytes,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
  1039. OptInt32 *wrappers.Int32Value `protobuf:"bytes,2,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"`
  1040. OptInt64 *wrappers.Int64Value `protobuf:"bytes,3,opt,name=opt_int64,json=optInt64" json:"opt_int64,omitempty"`
  1041. OptUint32 *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=opt_uint32,json=optUint32" json:"opt_uint32,omitempty"`
  1042. OptUint64 *wrappers.UInt64Value `protobuf:"bytes,5,opt,name=opt_uint64,json=optUint64" json:"opt_uint64,omitempty"`
  1043. OptFloat *wrappers.FloatValue `protobuf:"bytes,6,opt,name=opt_float,json=optFloat" json:"opt_float,omitempty"`
  1044. OptDouble *wrappers.DoubleValue `protobuf:"bytes,7,opt,name=opt_double,json=optDouble" json:"opt_double,omitempty"`
  1045. OptString *wrappers.StringValue `protobuf:"bytes,8,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
  1046. OptBytes *wrappers.BytesValue `protobuf:"bytes,9,opt,name=opt_bytes,json=optBytes" json:"opt_bytes,omitempty"`
  1047. OptDuration *duration.Duration `protobuf:"bytes,20,opt,name=opt_duration,json=optDuration" json:"opt_duration,omitempty"`
  1048. OptTimestamp *timestamp.Timestamp `protobuf:"bytes,21,opt,name=opt_timestamp,json=optTimestamp" json:"opt_timestamp,omitempty"`
  1049. OptStruct *_struct.Struct `protobuf:"bytes,25,opt,name=opt_struct,json=optStruct" json:"opt_struct,omitempty"`
  1050. OptList *_struct.ListValue `protobuf:"bytes,26,opt,name=opt_list,json=optList" json:"opt_list,omitempty"`
  1051. OptValue *_struct.Value `protobuf:"bytes,27,opt,name=opt_value,json=optValue" json:"opt_value,omitempty"`
  1052. OptEmpty *empty.Empty `protobuf:"bytes,30,opt,name=opt_empty,json=optEmpty" json:"opt_empty,omitempty"`
  1053. OptAny *any.Any `protobuf:"bytes,32,opt,name=opt_any,json=optAny" json:"opt_any,omitempty"`
  1054. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1055. XXX_unrecognized []byte `json:"-"`
  1056. XXX_sizecache int32 `json:"-"`
  1057. }
  1058. type xxx_KnownTypes struct{ m *KnownTypes }
  1059. func (m *KnownTypes) ProtoReflect() protoreflect.Message {
  1060. return xxx_KnownTypes{m}
  1061. }
  1062. func (m xxx_KnownTypes) Type() protoreflect.MessageType {
  1063. return xxx_Test_ProtoFile_MessageTypes[11].Type
  1064. }
  1065. func (m xxx_KnownTypes) KnownFields() protoreflect.KnownFields {
  1066. return xxx_Test_ProtoFile_MessageTypes[11].KnownFieldsOf(m.m)
  1067. }
  1068. func (m xxx_KnownTypes) UnknownFields() protoreflect.UnknownFields {
  1069. return xxx_Test_ProtoFile_MessageTypes[11].UnknownFieldsOf(m.m)
  1070. }
  1071. func (m xxx_KnownTypes) Interface() protoreflect.ProtoMessage {
  1072. return m.m
  1073. }
  1074. func (m *KnownTypes) Reset() { *m = KnownTypes{} }
  1075. func (m *KnownTypes) String() string { return proto.CompactTextString(m) }
  1076. func (*KnownTypes) ProtoMessage() {}
  1077. func (*KnownTypes) Descriptor() ([]byte, []int) {
  1078. return fileDescriptor_c8d7acc1bcec9a72, []int{11}
  1079. }
  1080. func (m *KnownTypes) XXX_Unmarshal(b []byte) error {
  1081. return xxx_messageInfo_KnownTypes.Unmarshal(m, b)
  1082. }
  1083. func (m *KnownTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1084. return xxx_messageInfo_KnownTypes.Marshal(b, m, deterministic)
  1085. }
  1086. func (m *KnownTypes) XXX_Merge(src proto.Message) {
  1087. xxx_messageInfo_KnownTypes.Merge(m, src)
  1088. }
  1089. func (m *KnownTypes) XXX_Size() int {
  1090. return xxx_messageInfo_KnownTypes.Size(m)
  1091. }
  1092. func (m *KnownTypes) XXX_DiscardUnknown() {
  1093. xxx_messageInfo_KnownTypes.DiscardUnknown(m)
  1094. }
  1095. var xxx_messageInfo_KnownTypes proto.InternalMessageInfo
  1096. func (m *KnownTypes) GetOptBool() *wrappers.BoolValue {
  1097. if m != nil {
  1098. return m.OptBool
  1099. }
  1100. return nil
  1101. }
  1102. func (m *KnownTypes) GetOptInt32() *wrappers.Int32Value {
  1103. if m != nil {
  1104. return m.OptInt32
  1105. }
  1106. return nil
  1107. }
  1108. func (m *KnownTypes) GetOptInt64() *wrappers.Int64Value {
  1109. if m != nil {
  1110. return m.OptInt64
  1111. }
  1112. return nil
  1113. }
  1114. func (m *KnownTypes) GetOptUint32() *wrappers.UInt32Value {
  1115. if m != nil {
  1116. return m.OptUint32
  1117. }
  1118. return nil
  1119. }
  1120. func (m *KnownTypes) GetOptUint64() *wrappers.UInt64Value {
  1121. if m != nil {
  1122. return m.OptUint64
  1123. }
  1124. return nil
  1125. }
  1126. func (m *KnownTypes) GetOptFloat() *wrappers.FloatValue {
  1127. if m != nil {
  1128. return m.OptFloat
  1129. }
  1130. return nil
  1131. }
  1132. func (m *KnownTypes) GetOptDouble() *wrappers.DoubleValue {
  1133. if m != nil {
  1134. return m.OptDouble
  1135. }
  1136. return nil
  1137. }
  1138. func (m *KnownTypes) GetOptString() *wrappers.StringValue {
  1139. if m != nil {
  1140. return m.OptString
  1141. }
  1142. return nil
  1143. }
  1144. func (m *KnownTypes) GetOptBytes() *wrappers.BytesValue {
  1145. if m != nil {
  1146. return m.OptBytes
  1147. }
  1148. return nil
  1149. }
  1150. func (m *KnownTypes) GetOptDuration() *duration.Duration {
  1151. if m != nil {
  1152. return m.OptDuration
  1153. }
  1154. return nil
  1155. }
  1156. func (m *KnownTypes) GetOptTimestamp() *timestamp.Timestamp {
  1157. if m != nil {
  1158. return m.OptTimestamp
  1159. }
  1160. return nil
  1161. }
  1162. func (m *KnownTypes) GetOptStruct() *_struct.Struct {
  1163. if m != nil {
  1164. return m.OptStruct
  1165. }
  1166. return nil
  1167. }
  1168. func (m *KnownTypes) GetOptList() *_struct.ListValue {
  1169. if m != nil {
  1170. return m.OptList
  1171. }
  1172. return nil
  1173. }
  1174. func (m *KnownTypes) GetOptValue() *_struct.Value {
  1175. if m != nil {
  1176. return m.OptValue
  1177. }
  1178. return nil
  1179. }
  1180. func (m *KnownTypes) GetOptEmpty() *empty.Empty {
  1181. if m != nil {
  1182. return m.OptEmpty
  1183. }
  1184. return nil
  1185. }
  1186. func (m *KnownTypes) GetOptAny() *any.Any {
  1187. if m != nil {
  1188. return m.OptAny
  1189. }
  1190. return nil
  1191. }
  1192. type Nests_OptGroup struct {
  1193. OptBool *bool `protobuf:"varint,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
  1194. OptString *string `protobuf:"bytes,2,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
  1195. OptNested *Nested `protobuf:"bytes,3,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
  1196. Optnestedgroup *Nests_OptGroup_OptNestedGroup `protobuf:"group,4,opt,name=OptNestedGroup,json=optnestedgroup" json:"optnestedgroup,omitempty"`
  1197. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1198. XXX_unrecognized []byte `json:"-"`
  1199. XXX_sizecache int32 `json:"-"`
  1200. }
  1201. type xxx_Nests_OptGroup struct{ m *Nests_OptGroup }
  1202. func (m *Nests_OptGroup) ProtoReflect() protoreflect.Message {
  1203. return xxx_Nests_OptGroup{m}
  1204. }
  1205. func (m xxx_Nests_OptGroup) Type() protoreflect.MessageType {
  1206. return xxx_Test_ProtoFile_MessageTypes[12].Type
  1207. }
  1208. func (m xxx_Nests_OptGroup) KnownFields() protoreflect.KnownFields {
  1209. return xxx_Test_ProtoFile_MessageTypes[12].KnownFieldsOf(m.m)
  1210. }
  1211. func (m xxx_Nests_OptGroup) UnknownFields() protoreflect.UnknownFields {
  1212. return xxx_Test_ProtoFile_MessageTypes[12].UnknownFieldsOf(m.m)
  1213. }
  1214. func (m xxx_Nests_OptGroup) Interface() protoreflect.ProtoMessage {
  1215. return m.m
  1216. }
  1217. func (m *Nests_OptGroup) Reset() { *m = Nests_OptGroup{} }
  1218. func (m *Nests_OptGroup) String() string { return proto.CompactTextString(m) }
  1219. func (*Nests_OptGroup) ProtoMessage() {}
  1220. func (*Nests_OptGroup) Descriptor() ([]byte, []int) {
  1221. return fileDescriptor_c8d7acc1bcec9a72, []int{3, 0}
  1222. }
  1223. func (m *Nests_OptGroup) XXX_Unmarshal(b []byte) error {
  1224. return xxx_messageInfo_Nests_OptGroup.Unmarshal(m, b)
  1225. }
  1226. func (m *Nests_OptGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1227. return xxx_messageInfo_Nests_OptGroup.Marshal(b, m, deterministic)
  1228. }
  1229. func (m *Nests_OptGroup) XXX_Merge(src proto.Message) {
  1230. xxx_messageInfo_Nests_OptGroup.Merge(m, src)
  1231. }
  1232. func (m *Nests_OptGroup) XXX_Size() int {
  1233. return xxx_messageInfo_Nests_OptGroup.Size(m)
  1234. }
  1235. func (m *Nests_OptGroup) XXX_DiscardUnknown() {
  1236. xxx_messageInfo_Nests_OptGroup.DiscardUnknown(m)
  1237. }
  1238. var xxx_messageInfo_Nests_OptGroup proto.InternalMessageInfo
  1239. func (m *Nests_OptGroup) GetOptBool() bool {
  1240. if m != nil && m.OptBool != nil {
  1241. return *m.OptBool
  1242. }
  1243. return false
  1244. }
  1245. func (m *Nests_OptGroup) GetOptString() string {
  1246. if m != nil && m.OptString != nil {
  1247. return *m.OptString
  1248. }
  1249. return ""
  1250. }
  1251. func (m *Nests_OptGroup) GetOptNested() *Nested {
  1252. if m != nil {
  1253. return m.OptNested
  1254. }
  1255. return nil
  1256. }
  1257. func (m *Nests_OptGroup) GetOptnestedgroup() *Nests_OptGroup_OptNestedGroup {
  1258. if m != nil {
  1259. return m.Optnestedgroup
  1260. }
  1261. return nil
  1262. }
  1263. type Nests_RptGroup struct {
  1264. RptBool []bool `protobuf:"varint,1,rep,name=rpt_bool,json=rptBool" json:"rpt_bool,omitempty"`
  1265. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1266. XXX_unrecognized []byte `json:"-"`
  1267. XXX_sizecache int32 `json:"-"`
  1268. }
  1269. type xxx_Nests_RptGroup struct{ m *Nests_RptGroup }
  1270. func (m *Nests_RptGroup) ProtoReflect() protoreflect.Message {
  1271. return xxx_Nests_RptGroup{m}
  1272. }
  1273. func (m xxx_Nests_RptGroup) Type() protoreflect.MessageType {
  1274. return xxx_Test_ProtoFile_MessageTypes[13].Type
  1275. }
  1276. func (m xxx_Nests_RptGroup) KnownFields() protoreflect.KnownFields {
  1277. return xxx_Test_ProtoFile_MessageTypes[13].KnownFieldsOf(m.m)
  1278. }
  1279. func (m xxx_Nests_RptGroup) UnknownFields() protoreflect.UnknownFields {
  1280. return xxx_Test_ProtoFile_MessageTypes[13].UnknownFieldsOf(m.m)
  1281. }
  1282. func (m xxx_Nests_RptGroup) Interface() protoreflect.ProtoMessage {
  1283. return m.m
  1284. }
  1285. func (m *Nests_RptGroup) Reset() { *m = Nests_RptGroup{} }
  1286. func (m *Nests_RptGroup) String() string { return proto.CompactTextString(m) }
  1287. func (*Nests_RptGroup) ProtoMessage() {}
  1288. func (*Nests_RptGroup) Descriptor() ([]byte, []int) {
  1289. return fileDescriptor_c8d7acc1bcec9a72, []int{3, 1}
  1290. }
  1291. func (m *Nests_RptGroup) XXX_Unmarshal(b []byte) error {
  1292. return xxx_messageInfo_Nests_RptGroup.Unmarshal(m, b)
  1293. }
  1294. func (m *Nests_RptGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1295. return xxx_messageInfo_Nests_RptGroup.Marshal(b, m, deterministic)
  1296. }
  1297. func (m *Nests_RptGroup) XXX_Merge(src proto.Message) {
  1298. xxx_messageInfo_Nests_RptGroup.Merge(m, src)
  1299. }
  1300. func (m *Nests_RptGroup) XXX_Size() int {
  1301. return xxx_messageInfo_Nests_RptGroup.Size(m)
  1302. }
  1303. func (m *Nests_RptGroup) XXX_DiscardUnknown() {
  1304. xxx_messageInfo_Nests_RptGroup.DiscardUnknown(m)
  1305. }
  1306. var xxx_messageInfo_Nests_RptGroup proto.InternalMessageInfo
  1307. func (m *Nests_RptGroup) GetRptBool() []bool {
  1308. if m != nil {
  1309. return m.RptBool
  1310. }
  1311. return nil
  1312. }
  1313. type Nests_OptGroup_OptNestedGroup struct {
  1314. OptEnum *Enum `protobuf:"varint,1,opt,name=opt_enum,json=optEnum,enum=pb2.Enum" json:"opt_enum,omitempty"`
  1315. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1316. XXX_unrecognized []byte `json:"-"`
  1317. XXX_sizecache int32 `json:"-"`
  1318. }
  1319. type xxx_Nests_OptGroup_OptNestedGroup struct {
  1320. m *Nests_OptGroup_OptNestedGroup
  1321. }
  1322. func (m *Nests_OptGroup_OptNestedGroup) ProtoReflect() protoreflect.Message {
  1323. return xxx_Nests_OptGroup_OptNestedGroup{m}
  1324. }
  1325. func (m xxx_Nests_OptGroup_OptNestedGroup) Type() protoreflect.MessageType {
  1326. return xxx_Test_ProtoFile_MessageTypes[14].Type
  1327. }
  1328. func (m xxx_Nests_OptGroup_OptNestedGroup) KnownFields() protoreflect.KnownFields {
  1329. return xxx_Test_ProtoFile_MessageTypes[14].KnownFieldsOf(m.m)
  1330. }
  1331. func (m xxx_Nests_OptGroup_OptNestedGroup) UnknownFields() protoreflect.UnknownFields {
  1332. return xxx_Test_ProtoFile_MessageTypes[14].UnknownFieldsOf(m.m)
  1333. }
  1334. func (m xxx_Nests_OptGroup_OptNestedGroup) Interface() protoreflect.ProtoMessage {
  1335. return m.m
  1336. }
  1337. func (m *Nests_OptGroup_OptNestedGroup) Reset() { *m = Nests_OptGroup_OptNestedGroup{} }
  1338. func (m *Nests_OptGroup_OptNestedGroup) String() string { return proto.CompactTextString(m) }
  1339. func (*Nests_OptGroup_OptNestedGroup) ProtoMessage() {}
  1340. func (*Nests_OptGroup_OptNestedGroup) Descriptor() ([]byte, []int) {
  1341. return fileDescriptor_c8d7acc1bcec9a72, []int{3, 0, 0}
  1342. }
  1343. func (m *Nests_OptGroup_OptNestedGroup) XXX_Unmarshal(b []byte) error {
  1344. return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Unmarshal(m, b)
  1345. }
  1346. func (m *Nests_OptGroup_OptNestedGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1347. return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Marshal(b, m, deterministic)
  1348. }
  1349. func (m *Nests_OptGroup_OptNestedGroup) XXX_Merge(src proto.Message) {
  1350. xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Merge(m, src)
  1351. }
  1352. func (m *Nests_OptGroup_OptNestedGroup) XXX_Size() int {
  1353. return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Size(m)
  1354. }
  1355. func (m *Nests_OptGroup_OptNestedGroup) XXX_DiscardUnknown() {
  1356. xxx_messageInfo_Nests_OptGroup_OptNestedGroup.DiscardUnknown(m)
  1357. }
  1358. var xxx_messageInfo_Nests_OptGroup_OptNestedGroup proto.InternalMessageInfo
  1359. func (m *Nests_OptGroup_OptNestedGroup) GetOptEnum() Enum {
  1360. if m != nil && m.OptEnum != nil {
  1361. return *m.OptEnum
  1362. }
  1363. return Enum_UNKNOWN
  1364. }
  1365. func init() {
  1366. proto.RegisterFile("encoding/textpb/testprotos/pb2/test.proto", fileDescriptor_c8d7acc1bcec9a72)
  1367. proto.RegisterEnum("pb2.Enum", Enum_name, Enum_value)
  1368. proto.RegisterEnum("pb2.Enums_NestedEnum", Enums_NestedEnum_name, Enums_NestedEnum_value)
  1369. proto.RegisterType((*Scalars)(nil), "pb2.Scalars")
  1370. proto.RegisterType((*Repeats)(nil), "pb2.Repeats")
  1371. proto.RegisterType((*Enums)(nil), "pb2.Enums")
  1372. proto.RegisterType((*Nests)(nil), "pb2.Nests")
  1373. proto.RegisterType((*Nested)(nil), "pb2.Nested")
  1374. proto.RegisterType((*Requireds)(nil), "pb2.Requireds")
  1375. proto.RegisterType((*PartialRequired)(nil), "pb2.PartialRequired")
  1376. proto.RegisterType((*Oneofs)(nil), "pb2.Oneofs")
  1377. proto.RegisterType((*Maps)(nil), "pb2.Maps")
  1378. proto.RegisterMapType((map[bool]uint32)(nil), "pb2.Maps.BoolToUint32Entry")
  1379. proto.RegisterMapType((map[int32]string)(nil), "pb2.Maps.Int32ToStrEntry")
  1380. proto.RegisterMapType((map[int64]bool)(nil), "pb2.Maps.Sfixed64ToBoolEntry")
  1381. proto.RegisterMapType((map[string]*Nested)(nil), "pb2.Maps.StrToNestedEntry")
  1382. proto.RegisterMapType((map[string]*Oneofs)(nil), "pb2.Maps.StrToOneofsEntry")
  1383. proto.RegisterMapType((map[uint64]Enum)(nil), "pb2.Maps.Uint64ToEnumEntry")
  1384. proto.RegisterType((*NestedWithRequired)(nil), "pb2.NestedWithRequired")
  1385. proto.RegisterType((*IndirectRequired)(nil), "pb2.IndirectRequired")
  1386. proto.RegisterMapType((map[string]*NestedWithRequired)(nil), "pb2.IndirectRequired.StrToNestedEntry")
  1387. proto.RegisterType((*KnownTypes)(nil), "pb2.KnownTypes")
  1388. proto.RegisterType((*Nests_OptGroup)(nil), "pb2.Nests.OptGroup")
  1389. proto.RegisterType((*Nests_RptGroup)(nil), "pb2.Nests.RptGroup")
  1390. proto.RegisterType((*Nests_OptGroup_OptNestedGroup)(nil), "pb2.Nests.OptGroup.OptNestedGroup")
  1391. }
  1392. var fileDescriptor_c8d7acc1bcec9a72 = []byte{
  1393. // 1629 bytes of a gzipped FileDescriptorProto
  1394. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x58, 0xdd, 0x6e, 0xdb, 0x46,
  1395. 0x16, 0x0e, 0x49, 0xfd, 0x8e, 0xfc, 0xa3, 0x30, 0xc9, 0xae, 0x2c, 0x27, 0x31, 0x23, 0x64, 0x17,
  1396. 0xdc, 0x00, 0x91, 0x00, 0x59, 0x11, 0x8c, 0x75, 0x7e, 0x60, 0xaf, 0xed, 0xc4, 0xc9, 0xd6, 0x2e,
  1397. 0x28, 0xb9, 0x01, 0x72, 0x63, 0x48, 0xd6, 0x58, 0x21, 0x2a, 0x71, 0xa8, 0xe1, 0x30, 0x89, 0xde,
  1398. 0xa3, 0xcf, 0xd0, 0x3e, 0x44, 0xdf, 0xa4, 0x2f, 0xd1, 0x9b, 0x5e, 0x14, 0xe8, 0x4d, 0x71, 0x66,
  1399. 0x38, 0xe4, 0x90, 0x92, 0x0c, 0xdf, 0x71, 0xe6, 0x9c, 0xef, 0x9b, 0x99, 0xf3, 0xab, 0x23, 0xf4,
  1400. 0x1f, 0xec, 0x5d, 0x91, 0x91, 0xeb, 0x8d, 0x5b, 0x0c, 0x7f, 0x63, 0xfe, 0xb0, 0xc5, 0x70, 0xc0,
  1401. 0x7c, 0x4a, 0x18, 0x09, 0x5a, 0xfe, 0xb0, 0xcd, 0x97, 0x4d, 0xbe, 0x36, 0x0d, 0x7f, 0xd8, 0xae,
  1402. 0x6f, 0x8d, 0x09, 0x19, 0x4f, 0x70, 0x8b, 0x6f, 0x0d, 0xc3, 0xeb, 0xd6, 0xc0, 0x9b, 0x0b, 0x79,
  1403. 0x7d, 0x3b, 0x2b, 0xc2, 0x53, 0x9f, 0x49, 0xe1, 0xe3, 0xac, 0x70, 0x14, 0xd2, 0x01, 0x73, 0x89,
  1404. 0x17, 0xc9, 0x1f, 0x66, 0xe5, 0x01, 0xa3, 0xe1, 0x55, 0x74, 0x74, 0x7d, 0x27, 0x2b, 0x65, 0xee,
  1405. 0x14, 0x07, 0x6c, 0x30, 0xf5, 0x57, 0xd1, 0x7f, 0xa5, 0x03, 0xdf, 0xc7, 0x34, 0x10, 0xf2, 0xc6,
  1406. 0x6f, 0x06, 0x2a, 0xf6, 0xae, 0x06, 0x93, 0x01, 0x0d, 0xcc, 0x2d, 0x54, 0x22, 0x3e, 0xbb, 0x1c,
  1407. 0x12, 0x32, 0xa9, 0x69, 0x96, 0x66, 0x97, 0x9c, 0x22, 0xf1, 0xd9, 0x21, 0x21, 0x13, 0x73, 0x1b,
  1408. 0x95, 0x41, 0xe4, 0x7a, 0x6c, 0xb7, 0x5d, 0xd3, 0x2d, 0xcd, 0xce, 0x3b, 0xa0, 0x7b, 0x0a, 0x6b,
  1409. 0x45, 0xd8, 0xed, 0xd4, 0x0c, 0x4b, 0xb3, 0x0d, 0x29, 0xec, 0x76, 0xcc, 0x47, 0x08, 0x81, 0x30,
  1410. 0x14, 0xd0, 0x9c, 0xa5, 0xd9, 0xeb, 0x0e, 0xa8, 0x5f, 0xf0, 0x0d, 0x55, 0xdc, 0xed, 0xd4, 0xf2,
  1411. 0x96, 0x66, 0xe7, 0x62, 0x71, 0x82, 0x0e, 0x04, 0xba, 0x60, 0x69, 0xf6, 0x5d, 0x2e, 0xee, 0xa5,
  1412. 0xd0, 0x81, 0x40, 0x17, 0x2d, 0xcd, 0x36, 0x63, 0x71, 0xb7, 0x63, 0xee, 0xa0, 0x0a, 0x88, 0xaf,
  1413. 0xdd, 0x6f, 0x78, 0xb4, 0xdb, 0xae, 0x95, 0x2c, 0xcd, 0x2e, 0x3a, 0x80, 0x38, 0x11, 0x3b, 0x29,
  1414. 0x85, 0x6e, 0xa7, 0x56, 0xb6, 0x34, 0xbb, 0x90, 0x28, 0x74, 0x3b, 0xe6, 0x13, 0xb4, 0xc6, 0x0f,
  1415. 0x90, 0x14, 0xc8, 0xd2, 0xec, 0x4d, 0x07, 0x40, 0xbd, 0x68, 0x2b, 0xad, 0xd2, 0xed, 0xd4, 0x2a,
  1416. 0x96, 0x66, 0x57, 0x15, 0x95, 0x6e, 0x47, 0x1a, 0xe8, 0x7a, 0x42, 0x06, 0xac, 0x76, 0xdf, 0xd2,
  1417. 0x6c, 0x9d, 0x1b, 0xe8, 0x04, 0xd6, 0xf2, 0x0d, 0x23, 0x12, 0x0e, 0x27, 0xb8, 0xf6, 0xc0, 0xd2,
  1418. 0x6c, 0x8d, 0xbf, 0xe1, 0x88, 0x6f, 0x48, 0xec, 0x70, 0xce, 0x70, 0x50, 0xdb, 0xb0, 0x34, 0x7b,
  1419. 0x8d, 0x63, 0x0f, 0x61, 0x1d, 0xbf, 0x9f, 0x51, 0xd7, 0x1b, 0xd7, 0xd6, 0x2d, 0xcd, 0x2e, 0x8b,
  1420. 0xf7, 0xf3, 0x8d, 0xc6, 0x4f, 0x3a, 0x2a, 0x3a, 0xd8, 0xc7, 0x03, 0xc6, 0x9d, 0x4b, 0x13, 0xe7,
  1421. 0x1a, 0xe0, 0x5c, 0x9a, 0x38, 0x97, 0x2a, 0xce, 0x35, 0xc0, 0xb9, 0x54, 0x71, 0x2e, 0x55, 0x9c,
  1422. 0x6b, 0x80, 0x73, 0xa9, 0xe2, 0x5c, 0xaa, 0x3a, 0xd7, 0x00, 0xe7, 0x52, 0xd5, 0xb9, 0x54, 0x75,
  1423. 0xae, 0x01, 0xce, 0xa5, 0xb1, 0x73, 0x23, 0x6a, 0x61, 0x96, 0x82, 0x65, 0x80, 0x59, 0xa8, 0x62,
  1424. 0x16, 0x9a, 0x98, 0xa5, 0x68, 0x19, 0x60, 0x16, 0x1a, 0x9b, 0x25, 0x12, 0x47, 0x2f, 0xdf, 0xb4,
  1425. 0x0c, 0x78, 0x39, 0x95, 0x2f, 0x97, 0xd4, 0xd2, 0x6a, 0x06, 0x58, 0x8d, 0x46, 0x56, 0x6b, 0xfc,
  1426. 0xa5, 0xa1, 0xfc, 0xb1, 0x17, 0x4e, 0x03, 0xf3, 0xa9, 0x88, 0x78, 0xec, 0x85, 0x53, 0x1e, 0xf1,
  1427. 0x1b, 0xed, 0x72, 0xd3, 0x1f, 0xb6, 0x9b, 0x20, 0xe5, 0xc1, 0x0f, 0x1f, 0xa0, 0x45, 0xa5, 0x16,
  1428. 0x98, 0x27, 0xad, 0x45, 0x23, 0xad, 0x57, 0x68, 0x13, 0xb8, 0x3c, 0x1c, 0x30, 0x3c, 0x12, 0xca,
  1429. 0x06, 0xa7, 0x7c, 0x10, 0x2b, 0x07, 0xcd, 0x33, 0x2e, 0xe5, 0xc0, 0x75, 0xe2, 0xb3, 0x64, 0x09,
  1430. 0x70, 0x9a, 0x81, 0xe7, 0xf8, 0x59, 0xab, 0xe0, 0x54, 0x85, 0x37, 0x6c, 0x84, 0x14, 0xb2, 0x22,
  1431. 0x32, 0x2e, 0xce, 0xce, 0xab, 0x1a, 0x7c, 0x1c, 0x9d, 0xf7, 0xaa, 0xba, 0x59, 0x42, 0xb9, 0xa3,
  1432. 0xd3, 0xe3, 0x4f, 0x55, 0xd4, 0xf8, 0xdd, 0x40, 0x79, 0x50, 0x0d, 0xcc, 0x67, 0x22, 0x7a, 0xc4,
  1433. 0x91, 0xfc, 0xfd, 0x95, 0x76, 0x85, 0x9f, 0x26, 0xa8, 0x78, 0x28, 0x89, 0x4f, 0xb3, 0xc5, 0x2d,
  1434. 0x35, 0xa6, 0x24, 0xf4, 0x79, 0xfe, 0xa3, 0xf6, 0xbd, 0x58, 0x33, 0x68, 0x9e, 0xfb, 0xec, 0x2d,
  1435. 0x88, 0x9c, 0x58, 0x09, 0xc8, 0x93, 0xf7, 0xf0, 0xc0, 0xc9, 0x92, 0x53, 0x95, 0x9c, 0x4a, 0x72,
  1436. 0x78, 0x74, 0x9a, 0xdc, 0x89, 0xc9, 0xa5, 0x52, 0xfd, 0x0f, 0x0d, 0x95, 0xe4, 0x99, 0x37, 0x95,
  1437. 0xad, 0x74, 0x7e, 0xe8, 0x99, 0xfc, 0xc8, 0x18, 0xc0, 0xb8, 0xd1, 0x00, 0xef, 0xd1, 0x06, 0xf1,
  1438. 0x99, 0x50, 0x95, 0x37, 0x05, 0x33, 0x34, 0x96, 0x98, 0x01, 0x3e, 0x04, 0x4c, 0x5c, 0x3c, 0x83,
  1439. 0xac, 0x77, 0xd1, 0x46, 0x5a, 0xe3, 0x76, 0x81, 0x58, 0xff, 0x17, 0x2a, 0x39, 0xca, 0xab, 0x57,
  1440. 0xe4, 0xb3, 0xb3, 0x41, 0x71, 0x80, 0xe9, 0x17, 0x3c, 0xba, 0xbc, 0x76, 0xf1, 0x64, 0xd4, 0xe8,
  1441. 0xa1, 0x42, 0xf4, 0x88, 0xb4, 0x3d, 0xb4, 0x9b, 0xed, 0xa1, 0xdf, 0x64, 0x8f, 0xc6, 0x9f, 0x3a,
  1442. 0x2a, 0x3b, 0x78, 0x16, 0xba, 0x14, 0x8f, 0x44, 0x75, 0xc1, 0x33, 0x79, 0x1b, 0x9d, 0xdf, 0x06,
  1443. 0xcf, 0xb8, 0x0f, 0x76, 0x50, 0x05, 0x44, 0xb2, 0x82, 0xea, 0x96, 0x0e, 0x45, 0x98, 0xe2, 0x99,
  1444. 0x52, 0x84, 0x63, 0x05, 0x5e, 0x63, 0x74, 0x28, 0xc2, 0x52, 0x41, 0x14, 0x61, 0x50, 0x88, 0x8b,
  1445. 0x70, 0xce, 0xd2, 0xa1, 0x08, 0x53, 0x3c, 0x53, 0x8b, 0x70, 0xa2, 0xc2, 0x6b, 0x8d, 0x0e, 0x45,
  1446. 0x38, 0x56, 0x89, 0xaa, 0x0d, 0x1c, 0x13, 0x55, 0x1b, 0x9d, 0x57, 0x1b, 0x3c, 0x4b, 0xaa, 0x0d,
  1447. 0x9e, 0x25, 0xd5, 0x46, 0xe7, 0xd5, 0x06, 0xcf, 0x94, 0x6a, 0x03, 0xf4, 0xc2, 0x6e, 0x25, 0x4b,
  1448. 0xe7, 0xd5, 0x06, 0xcf, 0x94, 0x6a, 0x03, 0xaf, 0xe7, 0xd5, 0xa6, 0x6c, 0xe9, 0xbc, 0xda, 0xe0,
  1449. 0x99, 0xa8, 0xd1, 0x4f, 0x85, 0x69, 0xb8, 0x6b, 0x91, 0xa5, 0x67, 0xab, 0x07, 0x9e, 0xf1, 0x8c,
  1450. 0x7d, 0x26, 0x4e, 0x88, 0x4c, 0x5f, 0xb1, 0xf4, 0xc5, 0x74, 0xc1, 0xb3, 0xc8, 0xf4, 0xe7, 0x68,
  1451. 0xf3, 0xfb, 0x01, 0x65, 0xee, 0x60, 0x22, 0x1d, 0x90, 0xb9, 0xa0, 0x96, 0xbd, 0xe0, 0xcd, 0x79,
  1452. 0xd0, 0x38, 0x41, 0x85, 0x73, 0x0f, 0x93, 0xeb, 0xc0, 0x34, 0x91, 0x11, 0x30, 0x2a, 0x22, 0xe3,
  1453. 0xdd, 0x1d, 0x07, 0x16, 0xe6, 0x0e, 0x32, 0xa6, 0xc1, 0x78, 0x49, 0x38, 0x80, 0xc2, 0x34, 0x18,
  1454. 0x1f, 0x16, 0x51, 0x3e, 0xf4, 0x5c, 0xe2, 0x35, 0x7e, 0x2d, 0xa0, 0xdc, 0x77, 0x03, 0x3f, 0x30,
  1455. 0xf7, 0xd1, 0x1a, 0xef, 0x00, 0x97, 0x8c, 0x5c, 0x0a, 0x3e, 0x48, 0xff, 0x2d, 0x8e, 0x05, 0x85,
  1456. 0x26, 0xef, 0x2d, 0x7d, 0xd2, 0x63, 0xf4, 0xd8, 0x63, 0x74, 0xee, 0x20, 0x37, 0xde, 0x30, 0xdf,
  1457. 0xa2, 0xaa, 0xf4, 0x23, 0xe0, 0x79, 0x4c, 0xe9, 0x9c, 0xe0, 0x51, 0x42, 0x20, 0xdd, 0xda, 0x27,
  1458. 0x10, 0x64, 0x82, 0x64, 0x23, 0x48, 0x6d, 0x9a, 0x07, 0x68, 0x03, 0xc0, 0x40, 0x12, 0x75, 0x28,
  1459. 0x51, 0x86, 0xb6, 0x13, 0x1a, 0xd0, 0xeb, 0x13, 0xd1, 0xae, 0x04, 0xc9, 0xda, 0x50, 0xd9, 0x02,
  1460. 0x0a, 0xd1, 0xbd, 0x80, 0x24, 0x2e, 0xca, 0x29, 0x0a, 0xd1, 0xcc, 0xfa, 0x04, 0xdc, 0x18, 0x51,
  1461. 0x84, 0xca, 0x96, 0xf9, 0x1a, 0xad, 0x07, 0x8c, 0x02, 0x3e, 0x72, 0x6e, 0x9e, 0x33, 0xd4, 0x95,
  1462. 0xb7, 0x30, 0xda, 0x27, 0xb2, 0x7a, 0x03, 0x41, 0x25, 0x48, 0x76, 0x14, 0x3c, 0xe1, 0x3e, 0xe2,
  1463. 0x9d, 0x72, 0x11, 0x2f, 0x1c, 0xa8, 0xe2, 0xc5, 0x4e, 0xfd, 0x15, 0xda, 0xcc, 0x58, 0xdb, 0xac,
  1464. 0x22, 0xe3, 0x47, 0x3c, 0xe7, 0x5e, 0xce, 0x3b, 0xf0, 0x69, 0xde, 0x47, 0xf9, 0x2f, 0x83, 0x49,
  1465. 0x88, 0xa3, 0xd8, 0x10, 0x8b, 0xff, 0xea, 0x7b, 0x5a, 0xfd, 0x00, 0xdd, 0x5b, 0x62, 0x6b, 0x95,
  1466. 0xa2, 0xba, 0x84, 0xa2, 0xa4, 0x52, 0xbc, 0x41, 0x77, 0x17, 0xec, 0xac, 0x12, 0x94, 0x96, 0x10,
  1467. 0xac, 0xab, 0x04, 0xef, 0xd1, 0xdd, 0x05, 0x2b, 0xab, 0x04, 0x39, 0x41, 0xb0, 0xa3, 0x12, 0xa4,
  1468. 0xd2, 0x4c, 0xe1, 0xfa, 0x80, 0xaa, 0x59, 0x7b, 0xab, 0x54, 0x65, 0x41, 0xf5, 0x44, 0xa5, 0xca,
  1469. 0x64, 0xe2, 0x12, 0x32, 0xc5, 0xf8, 0xb7, 0x25, 0x13, 0x10, 0x85, 0xac, 0xb1, 0x8b, 0x4c, 0x71,
  1470. 0xc2, 0x47, 0x97, 0x7d, 0xbe, 0x65, 0x66, 0x37, 0x7e, 0xd1, 0x51, 0xf5, 0xd4, 0x1b, 0xb9, 0x14,
  1471. 0x5f, 0xb1, 0x18, 0xd3, 0x5d, 0xd2, 0xd8, 0xff, 0xa9, 0x3c, 0x41, 0x3d, 0x40, 0xed, 0x71, 0xdd,
  1472. 0x54, 0xcf, 0x16, 0x39, 0xb7, 0x1a, 0x47, 0x95, 0xde, 0x98, 0x09, 0x71, 0x91, 0x67, 0xff, 0xe6,
  1473. 0xd0, 0xec, 0xed, 0x6e, 0x0e, 0xf7, 0xfa, 0xc7, 0x5b, 0xf9, 0xe7, 0x79, 0xda, 0xa4, 0x2b, 0x2f,
  1474. 0xa9, 0x98, 0xf7, 0xe7, 0x22, 0x42, 0x1f, 0x3c, 0xf2, 0xd5, 0xeb, 0xcf, 0x7d, 0x1c, 0x98, 0x2f,
  1475. 0x32, 0xbf, 0x1a, 0x20, 0xa3, 0xc4, 0xac, 0xd4, 0x94, 0xb3, 0x12, 0xaf, 0x0e, 0x3f, 0x00, 0x41,
  1476. 0xf2, 0x8b, 0x62, 0x2f, 0x3b, 0x08, 0x41, 0x2d, 0xc8, 0xe2, 0x78, 0xbe, 0x09, 0x60, 0x32, 0x25,
  1477. 0xed, 0x65, 0xa7, 0xa4, 0x15, 0xc8, 0x6e, 0x27, 0x85, 0xec, 0x76, 0xcc, 0xfd, 0x85, 0x11, 0xaa,
  1478. 0xd2, 0x7e, 0xb8, 0x00, 0xbd, 0x50, 0x4e, 0x55, 0x06, 0xac, 0xfd, 0x85, 0x01, 0x6b, 0x15, 0x58,
  1479. 0x1e, 0xac, 0x8c, 0x5f, 0x7b, 0xea, 0xe0, 0x52, 0x58, 0x71, 0x67, 0xde, 0x41, 0x93, 0x3b, 0x8b,
  1480. 0x86, 0xba, 0x9f, 0x9a, 0x6a, 0x8a, 0x2b, 0x8e, 0x15, 0xed, 0x35, 0x39, 0x36, 0x6a, 0xb7, 0xfb,
  1481. 0xa9, 0x76, 0x55, 0x5a, 0x01, 0x16, 0x19, 0x90, 0x80, 0xa3, 0x5e, 0xb7, 0xa7, 0x0e, 0x4c, 0xe5,
  1482. 0x15, 0x77, 0xe6, 0xad, 0x39, 0xb9, 0xb3, 0xe8, 0xd4, 0x2f, 0xc5, 0x24, 0x27, 0x07, 0x70, 0x3e,
  1483. 0xa9, 0x41, 0xd7, 0x5a, 0xb8, 0x75, 0xa4, 0xc0, 0x87, 0x3c, 0xb9, 0x30, 0xdf, 0x20, 0xf8, 0x45,
  1484. 0x7f, 0x19, 0x0f, 0xe0, 0x7c, 0x94, 0x5b, 0x16, 0x55, 0x7d, 0xa9, 0xe1, 0xc0, 0x71, 0xf1, 0x4a,
  1485. 0x66, 0xad, 0x98, 0xef, 0x6b, 0x5b, 0x51, 0x60, 0x2f, 0x79, 0x75, 0x78, 0xc5, 0xe4, 0x83, 0xc3,
  1486. 0x2b, 0x26, 0x23, 0x79, 0xe2, 0x06, 0xac, 0x56, 0x5f, 0x71, 0xe6, 0xff, 0xdd, 0x80, 0x25, 0x91,
  1487. 0x0c, 0x2b, 0x73, 0x57, 0xd8, 0x49, 0xa4, 0xd1, 0x36, 0xc7, 0xfd, 0x63, 0x01, 0x97, 0x98, 0x88,
  1488. 0x7f, 0x49, 0x10, 0xff, 0x03, 0xa3, 0xf6, 0x78, 0x05, 0xe8, 0x18, 0xa4, 0x1c, 0xc4, 0xbf, 0xcc,
  1489. 0xe7, 0x08, 0x0e, 0xbd, 0x1c, 0x78, 0xf3, 0x9a, 0xc5, 0x21, 0xf7, 0x17, 0x20, 0x07, 0xde, 0xdc,
  1490. 0x29, 0x10, 0x9f, 0x1d, 0x78, 0xf3, 0x67, 0x2f, 0x50, 0x8e, 0x37, 0xce, 0x0a, 0x2a, 0x5e, 0x9c,
  1491. 0x7d, 0x38, 0x3b, 0xff, 0x78, 0x56, 0xbd, 0x63, 0x96, 0x51, 0xfe, 0xe4, 0xd4, 0xe9, 0xf5, 0xab,
  1492. 0x9a, 0x89, 0x50, 0xa1, 0x77, 0xfc, 0xbf, 0xf3, 0xb3, 0xa3, 0xaa, 0x0e, 0xdb, 0xfd, 0xe3, 0xb3,
  1493. 0xfe, 0xbb, 0x2a, 0x3a, 0x7c, 0xfd, 0xe9, 0xe5, 0xd8, 0x65, 0x9f, 0xc3, 0x61, 0xf3, 0x8a, 0x4c,
  1494. 0x5b, 0x63, 0x32, 0x19, 0x78, 0xe3, 0xe4, 0x6f, 0x8f, 0x2f, 0xed, 0xd6, 0xcd, 0x7f, 0xe8, 0xfc,
  1495. 0x1d, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x1a, 0x6e, 0x85, 0xf1, 0x11, 0x00, 0x00,
  1496. }
  1497. func init() {
  1498. xxx_Test_ProtoFile_FileDesc.Enums = xxx_Test_ProtoFile_EnumDescs[0:1]
  1499. xxx_Test_ProtoFile_FileDesc.Messages = xxx_Test_ProtoFile_MessageDescs[0:12]
  1500. xxx_Test_ProtoFile_MessageDescs[2].Enums = xxx_Test_ProtoFile_EnumDescs[1:2]
  1501. xxx_Test_ProtoFile_MessageDescs[3].Messages = xxx_Test_ProtoFile_MessageDescs[12:14]
  1502. xxx_Test_ProtoFile_MessageDescs[8].Messages = xxx_Test_ProtoFile_MessageDescs[15:21]
  1503. xxx_Test_ProtoFile_MessageDescs[10].Messages = xxx_Test_ProtoFile_MessageDescs[21:22]
  1504. xxx_Test_ProtoFile_MessageDescs[12].Messages = xxx_Test_ProtoFile_MessageDescs[14:15]
  1505. xxx_Test_ProtoFile_MessageDescs[2].Fields[0].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
  1506. xxx_Test_ProtoFile_MessageDescs[2].Fields[1].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
  1507. xxx_Test_ProtoFile_MessageDescs[2].Fields[2].EnumType = xxx_Test_ProtoFile_EnumTypes[1]
  1508. xxx_Test_ProtoFile_MessageDescs[2].Fields[3].EnumType = xxx_Test_ProtoFile_EnumTypes[1]
  1509. xxx_Test_ProtoFile_MessageDescs[3].Fields[0].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1510. xxx_Test_ProtoFile_MessageDescs[3].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[12].Type
  1511. xxx_Test_ProtoFile_MessageDescs[3].Fields[2].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1512. xxx_Test_ProtoFile_MessageDescs[3].Fields[3].MessageType = xxx_Test_ProtoFile_MessageTypes[13].Type
  1513. xxx_Test_ProtoFile_MessageDescs[4].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1514. xxx_Test_ProtoFile_MessageDescs[5].Fields[9].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
  1515. xxx_Test_ProtoFile_MessageDescs[5].Fields[10].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1516. xxx_Test_ProtoFile_MessageDescs[7].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1517. xxx_Test_ProtoFile_MessageDescs[8].Fields[0].MessageType = xxx_Test_ProtoFile_MessageDescs[15].Reference()
  1518. xxx_Test_ProtoFile_MessageDescs[8].Fields[1].MessageType = xxx_Test_ProtoFile_MessageDescs[16].Reference()
  1519. xxx_Test_ProtoFile_MessageDescs[8].Fields[2].MessageType = xxx_Test_ProtoFile_MessageDescs[17].Reference()
  1520. xxx_Test_ProtoFile_MessageDescs[8].Fields[3].MessageType = xxx_Test_ProtoFile_MessageDescs[18].Reference()
  1521. xxx_Test_ProtoFile_MessageDescs[8].Fields[4].MessageType = xxx_Test_ProtoFile_MessageDescs[19].Reference()
  1522. xxx_Test_ProtoFile_MessageDescs[8].Fields[5].MessageType = xxx_Test_ProtoFile_MessageDescs[20].Reference()
  1523. xxx_Test_ProtoFile_MessageDescs[10].Fields[0].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
  1524. xxx_Test_ProtoFile_MessageDescs[10].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
  1525. xxx_Test_ProtoFile_MessageDescs[10].Fields[2].MessageType = xxx_Test_ProtoFile_MessageDescs[21].Reference()
  1526. xxx_Test_ProtoFile_MessageDescs[11].Fields[0].MessageType = protoimpl.X.MessageTypeOf((*wrappers.BoolValue)(nil))
  1527. xxx_Test_ProtoFile_MessageDescs[11].Fields[1].MessageType = protoimpl.X.MessageTypeOf((*wrappers.Int32Value)(nil))
  1528. xxx_Test_ProtoFile_MessageDescs[11].Fields[2].MessageType = protoimpl.X.MessageTypeOf((*wrappers.Int64Value)(nil))
  1529. xxx_Test_ProtoFile_MessageDescs[11].Fields[3].MessageType = protoimpl.X.MessageTypeOf((*wrappers.UInt32Value)(nil))
  1530. xxx_Test_ProtoFile_MessageDescs[11].Fields[4].MessageType = protoimpl.X.MessageTypeOf((*wrappers.UInt64Value)(nil))
  1531. xxx_Test_ProtoFile_MessageDescs[11].Fields[5].MessageType = protoimpl.X.MessageTypeOf((*wrappers.FloatValue)(nil))
  1532. xxx_Test_ProtoFile_MessageDescs[11].Fields[6].MessageType = protoimpl.X.MessageTypeOf((*wrappers.DoubleValue)(nil))
  1533. xxx_Test_ProtoFile_MessageDescs[11].Fields[7].MessageType = protoimpl.X.MessageTypeOf((*wrappers.StringValue)(nil))
  1534. xxx_Test_ProtoFile_MessageDescs[11].Fields[8].MessageType = protoimpl.X.MessageTypeOf((*wrappers.BytesValue)(nil))
  1535. xxx_Test_ProtoFile_MessageDescs[11].Fields[9].MessageType = protoimpl.X.MessageTypeOf((*duration.Duration)(nil))
  1536. xxx_Test_ProtoFile_MessageDescs[11].Fields[10].MessageType = protoimpl.X.MessageTypeOf((*timestamp.Timestamp)(nil))
  1537. xxx_Test_ProtoFile_MessageDescs[11].Fields[11].MessageType = protoimpl.X.MessageTypeOf((*_struct.Struct)(nil))
  1538. xxx_Test_ProtoFile_MessageDescs[11].Fields[12].MessageType = protoimpl.X.MessageTypeOf((*_struct.ListValue)(nil))
  1539. xxx_Test_ProtoFile_MessageDescs[11].Fields[13].MessageType = protoimpl.X.MessageTypeOf((*_struct.Value)(nil))
  1540. xxx_Test_ProtoFile_MessageDescs[11].Fields[14].MessageType = protoimpl.X.MessageTypeOf((*empty.Empty)(nil))
  1541. xxx_Test_ProtoFile_MessageDescs[11].Fields[15].MessageType = protoimpl.X.MessageTypeOf((*any.Any)(nil))
  1542. xxx_Test_ProtoFile_MessageDescs[12].Fields[2].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1543. xxx_Test_ProtoFile_MessageDescs[12].Fields[3].MessageType = xxx_Test_ProtoFile_MessageTypes[14].Type
  1544. xxx_Test_ProtoFile_MessageDescs[14].Fields[0].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
  1545. xxx_Test_ProtoFile_MessageDescs[18].Fields[1].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
  1546. xxx_Test_ProtoFile_MessageDescs[19].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
  1547. xxx_Test_ProtoFile_MessageDescs[20].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[7].Type
  1548. xxx_Test_ProtoFile_MessageDescs[21].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
  1549. var err error
  1550. Test_ProtoFile, err = prototype.NewFile(&xxx_Test_ProtoFile_FileDesc)
  1551. if err != nil {
  1552. panic(err)
  1553. }
  1554. }
  1555. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  1556. var Test_ProtoFile protoreflect.FileDescriptor
  1557. var xxx_Test_ProtoFile_FileDesc = prototype.File{
  1558. Syntax: protoreflect.Proto2,
  1559. Path: "encoding/textpb/testprotos/pb2/test.proto",
  1560. Package: "pb2",
  1561. Imports: []protoreflect.FileImport{
  1562. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/any.proto", "google.protobuf")},
  1563. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/empty.proto", "google.protobuf")},
  1564. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/duration.proto", "google.protobuf")},
  1565. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/struct.proto", "google.protobuf")},
  1566. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/timestamp.proto", "google.protobuf")},
  1567. {FileDescriptor: prototype.PlaceholderFile("google/protobuf/wrappers.proto", "google.protobuf")},
  1568. },
  1569. }
  1570. var xxx_Test_ProtoFile_EnumTypes = [2]protoreflect.EnumType{
  1571. prototype.GoEnum(
  1572. xxx_Test_ProtoFile_EnumDescs[0].Reference(),
  1573. func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
  1574. return Enum(n)
  1575. },
  1576. ),
  1577. prototype.GoEnum(
  1578. xxx_Test_ProtoFile_EnumDescs[1].Reference(),
  1579. func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
  1580. return Enums_NestedEnum(n)
  1581. },
  1582. ),
  1583. }
  1584. var xxx_Test_ProtoFile_EnumDescs = [2]prototype.Enum{
  1585. {
  1586. Name: "Enum",
  1587. Values: []prototype.EnumValue{
  1588. {Name: "UNKNOWN", Number: 0},
  1589. {Name: "FIRST", Number: 1},
  1590. {Name: "SECOND", Number: 2},
  1591. {Name: "TENTH", Number: 10},
  1592. },
  1593. },
  1594. {
  1595. Name: "NestedEnum",
  1596. Values: []prototype.EnumValue{
  1597. {Name: "UNO", Number: 1},
  1598. {Name: "DOS", Number: 2},
  1599. {Name: "DIEZ", Number: 10},
  1600. },
  1601. },
  1602. }
  1603. var xxx_Test_ProtoFile_MessageTypes = [22]protoimpl.MessageType{
  1604. {Type: prototype.GoMessage(
  1605. xxx_Test_ProtoFile_MessageDescs[0].Reference(),
  1606. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1607. return new(Scalars)
  1608. },
  1609. )},
  1610. {Type: prototype.GoMessage(
  1611. xxx_Test_ProtoFile_MessageDescs[1].Reference(),
  1612. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1613. return new(Repeats)
  1614. },
  1615. )},
  1616. {Type: prototype.GoMessage(
  1617. xxx_Test_ProtoFile_MessageDescs[2].Reference(),
  1618. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1619. return new(Enums)
  1620. },
  1621. )},
  1622. {Type: prototype.GoMessage(
  1623. xxx_Test_ProtoFile_MessageDescs[3].Reference(),
  1624. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1625. return new(Nests)
  1626. },
  1627. )},
  1628. {Type: prototype.GoMessage(
  1629. xxx_Test_ProtoFile_MessageDescs[4].Reference(),
  1630. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1631. return new(Nested)
  1632. },
  1633. )},
  1634. {Type: prototype.GoMessage(
  1635. xxx_Test_ProtoFile_MessageDescs[5].Reference(),
  1636. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1637. return new(Requireds)
  1638. },
  1639. )},
  1640. {Type: prototype.GoMessage(
  1641. xxx_Test_ProtoFile_MessageDescs[6].Reference(),
  1642. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1643. return new(PartialRequired)
  1644. },
  1645. )},
  1646. {Type: prototype.GoMessage(
  1647. xxx_Test_ProtoFile_MessageDescs[7].Reference(),
  1648. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1649. return new(Oneofs)
  1650. },
  1651. )},
  1652. {Type: prototype.GoMessage(
  1653. xxx_Test_ProtoFile_MessageDescs[8].Reference(),
  1654. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1655. return new(Maps)
  1656. },
  1657. )},
  1658. {Type: prototype.GoMessage(
  1659. xxx_Test_ProtoFile_MessageDescs[9].Reference(),
  1660. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1661. return new(NestedWithRequired)
  1662. },
  1663. )},
  1664. {Type: prototype.GoMessage(
  1665. xxx_Test_ProtoFile_MessageDescs[10].Reference(),
  1666. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1667. return new(IndirectRequired)
  1668. },
  1669. )},
  1670. {Type: prototype.GoMessage(
  1671. xxx_Test_ProtoFile_MessageDescs[11].Reference(),
  1672. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1673. return new(KnownTypes)
  1674. },
  1675. )},
  1676. {Type: prototype.GoMessage(
  1677. xxx_Test_ProtoFile_MessageDescs[12].Reference(),
  1678. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1679. return new(Nests_OptGroup)
  1680. },
  1681. )},
  1682. {Type: prototype.GoMessage(
  1683. xxx_Test_ProtoFile_MessageDescs[13].Reference(),
  1684. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1685. return new(Nests_RptGroup)
  1686. },
  1687. )},
  1688. {Type: prototype.GoMessage(
  1689. xxx_Test_ProtoFile_MessageDescs[14].Reference(),
  1690. func(protoreflect.MessageType) protoreflect.ProtoMessage {
  1691. return new(Nests_OptGroup_OptNestedGroup)
  1692. },
  1693. )},
  1694. { /* no message type for Maps_Int32ToStrEntry */ },
  1695. { /* no message type for Maps_Sfixed64ToBoolEntry */ },
  1696. { /* no message type for Maps_BoolToUint32Entry */ },
  1697. { /* no message type for Maps_Uint64ToEnumEntry */ },
  1698. { /* no message type for Maps_StrToNestedEntry */ },
  1699. { /* no message type for Maps_StrToOneofsEntry */ },
  1700. { /* no message type for IndirectRequired_StrToNestedEntry */ },
  1701. }
  1702. var xxx_Test_ProtoFile_MessageDescs = [22]prototype.Message{
  1703. {
  1704. Name: "Scalars",
  1705. Fields: []prototype.Field{
  1706. {
  1707. Name: "opt_bool",
  1708. Number: 1,
  1709. Cardinality: protoreflect.Optional,
  1710. Kind: protoreflect.BoolKind,
  1711. JSONName: "optBool",
  1712. IsPacked: prototype.False,
  1713. },
  1714. {
  1715. Name: "opt_int32",
  1716. Number: 2,
  1717. Cardinality: protoreflect.Optional,
  1718. Kind: protoreflect.Int32Kind,
  1719. JSONName: "optInt32",
  1720. IsPacked: prototype.False,
  1721. },
  1722. {
  1723. Name: "opt_int64",
  1724. Number: 3,
  1725. Cardinality: protoreflect.Optional,
  1726. Kind: protoreflect.Int64Kind,
  1727. JSONName: "optInt64",
  1728. IsPacked: prototype.False,
  1729. },
  1730. {
  1731. Name: "opt_uint32",
  1732. Number: 4,
  1733. Cardinality: protoreflect.Optional,
  1734. Kind: protoreflect.Uint32Kind,
  1735. JSONName: "optUint32",
  1736. IsPacked: prototype.False,
  1737. },
  1738. {
  1739. Name: "opt_uint64",
  1740. Number: 5,
  1741. Cardinality: protoreflect.Optional,
  1742. Kind: protoreflect.Uint64Kind,
  1743. JSONName: "optUint64",
  1744. IsPacked: prototype.False,
  1745. },
  1746. {
  1747. Name: "opt_sint32",
  1748. Number: 6,
  1749. Cardinality: protoreflect.Optional,
  1750. Kind: protoreflect.Sint32Kind,
  1751. JSONName: "optSint32",
  1752. IsPacked: prototype.False,
  1753. },
  1754. {
  1755. Name: "opt_sint64",
  1756. Number: 7,
  1757. Cardinality: protoreflect.Optional,
  1758. Kind: protoreflect.Sint64Kind,
  1759. JSONName: "optSint64",
  1760. IsPacked: prototype.False,
  1761. },
  1762. {
  1763. Name: "opt_fixed32",
  1764. Number: 8,
  1765. Cardinality: protoreflect.Optional,
  1766. Kind: protoreflect.Fixed32Kind,
  1767. JSONName: "optFixed32",
  1768. IsPacked: prototype.False,
  1769. },
  1770. {
  1771. Name: "opt_fixed64",
  1772. Number: 9,
  1773. Cardinality: protoreflect.Optional,
  1774. Kind: protoreflect.Fixed64Kind,
  1775. JSONName: "optFixed64",
  1776. IsPacked: prototype.False,
  1777. },
  1778. {
  1779. Name: "opt_sfixed32",
  1780. Number: 10,
  1781. Cardinality: protoreflect.Optional,
  1782. Kind: protoreflect.Sfixed32Kind,
  1783. JSONName: "optSfixed32",
  1784. IsPacked: prototype.False,
  1785. },
  1786. {
  1787. Name: "opt_sfixed64",
  1788. Number: 11,
  1789. Cardinality: protoreflect.Optional,
  1790. Kind: protoreflect.Sfixed64Kind,
  1791. JSONName: "optSfixed64",
  1792. IsPacked: prototype.False,
  1793. },
  1794. {
  1795. Name: "opt_float",
  1796. Number: 20,
  1797. Cardinality: protoreflect.Optional,
  1798. Kind: protoreflect.FloatKind,
  1799. JSONName: "optFloat",
  1800. IsPacked: prototype.False,
  1801. },
  1802. {
  1803. Name: "opt_double",
  1804. Number: 21,
  1805. Cardinality: protoreflect.Optional,
  1806. Kind: protoreflect.DoubleKind,
  1807. JSONName: "optDouble",
  1808. IsPacked: prototype.False,
  1809. },
  1810. {
  1811. Name: "opt_bytes",
  1812. Number: 14,
  1813. Cardinality: protoreflect.Optional,
  1814. Kind: protoreflect.BytesKind,
  1815. JSONName: "optBytes",
  1816. IsPacked: prototype.False,
  1817. },
  1818. {
  1819. Name: "opt_string",
  1820. Number: 13,
  1821. Cardinality: protoreflect.Optional,
  1822. Kind: protoreflect.StringKind,
  1823. JSONName: "optString",
  1824. IsPacked: prototype.False,
  1825. },
  1826. },
  1827. },
  1828. {
  1829. Name: "Repeats",
  1830. Fields: []prototype.Field{
  1831. {
  1832. Name: "rpt_bool",
  1833. Number: 1,
  1834. Cardinality: protoreflect.Repeated,
  1835. Kind: protoreflect.BoolKind,
  1836. JSONName: "rptBool",
  1837. IsPacked: prototype.False,
  1838. },
  1839. {
  1840. Name: "rpt_int32",
  1841. Number: 2,
  1842. Cardinality: protoreflect.Repeated,
  1843. Kind: protoreflect.Int32Kind,
  1844. JSONName: "rptInt32",
  1845. IsPacked: prototype.False,
  1846. },
  1847. {
  1848. Name: "rpt_int64",
  1849. Number: 3,
  1850. Cardinality: protoreflect.Repeated,
  1851. Kind: protoreflect.Int64Kind,
  1852. JSONName: "rptInt64",
  1853. IsPacked: prototype.False,
  1854. },
  1855. {
  1856. Name: "rpt_uint32",
  1857. Number: 4,
  1858. Cardinality: protoreflect.Repeated,
  1859. Kind: protoreflect.Uint32Kind,
  1860. JSONName: "rptUint32",
  1861. IsPacked: prototype.False,
  1862. },
  1863. {
  1864. Name: "rpt_uint64",
  1865. Number: 5,
  1866. Cardinality: protoreflect.Repeated,
  1867. Kind: protoreflect.Uint64Kind,
  1868. JSONName: "rptUint64",
  1869. IsPacked: prototype.False,
  1870. },
  1871. {
  1872. Name: "rpt_float",
  1873. Number: 6,
  1874. Cardinality: protoreflect.Repeated,
  1875. Kind: protoreflect.FloatKind,
  1876. JSONName: "rptFloat",
  1877. IsPacked: prototype.False,
  1878. },
  1879. {
  1880. Name: "rpt_double",
  1881. Number: 7,
  1882. Cardinality: protoreflect.Repeated,
  1883. Kind: protoreflect.DoubleKind,
  1884. JSONName: "rptDouble",
  1885. IsPacked: prototype.False,
  1886. },
  1887. {
  1888. Name: "rpt_string",
  1889. Number: 15,
  1890. Cardinality: protoreflect.Repeated,
  1891. Kind: protoreflect.StringKind,
  1892. JSONName: "rptString",
  1893. IsPacked: prototype.False,
  1894. },
  1895. {
  1896. Name: "rpt_bytes",
  1897. Number: 14,
  1898. Cardinality: protoreflect.Repeated,
  1899. Kind: protoreflect.BytesKind,
  1900. JSONName: "rptBytes",
  1901. IsPacked: prototype.False,
  1902. },
  1903. },
  1904. },
  1905. {
  1906. Name: "Enums",
  1907. Fields: []prototype.Field{
  1908. {
  1909. Name: "opt_enum",
  1910. Number: 1,
  1911. Cardinality: protoreflect.Optional,
  1912. Kind: protoreflect.EnumKind,
  1913. JSONName: "optEnum",
  1914. IsPacked: prototype.False,
  1915. },
  1916. {
  1917. Name: "rpt_enum",
  1918. Number: 2,
  1919. Cardinality: protoreflect.Repeated,
  1920. Kind: protoreflect.EnumKind,
  1921. JSONName: "rptEnum",
  1922. IsPacked: prototype.False,
  1923. },
  1924. {
  1925. Name: "opt_nested_enum",
  1926. Number: 3,
  1927. Cardinality: protoreflect.Optional,
  1928. Kind: protoreflect.EnumKind,
  1929. JSONName: "optNestedEnum",
  1930. IsPacked: prototype.False,
  1931. },
  1932. {
  1933. Name: "rpt_nested_enum",
  1934. Number: 4,
  1935. Cardinality: protoreflect.Repeated,
  1936. Kind: protoreflect.EnumKind,
  1937. JSONName: "rptNestedEnum",
  1938. IsPacked: prototype.False,
  1939. },
  1940. },
  1941. },
  1942. {
  1943. Name: "Nests",
  1944. Fields: []prototype.Field{
  1945. {
  1946. Name: "opt_nested",
  1947. Number: 1,
  1948. Cardinality: protoreflect.Optional,
  1949. Kind: protoreflect.MessageKind,
  1950. JSONName: "optNested",
  1951. IsPacked: prototype.False,
  1952. },
  1953. {
  1954. Name: "optgroup",
  1955. Number: 2,
  1956. Cardinality: protoreflect.Optional,
  1957. Kind: protoreflect.GroupKind,
  1958. JSONName: "optgroup",
  1959. IsPacked: prototype.False,
  1960. },
  1961. {
  1962. Name: "rpt_nested",
  1963. Number: 3,
  1964. Cardinality: protoreflect.Repeated,
  1965. Kind: protoreflect.MessageKind,
  1966. JSONName: "rptNested",
  1967. IsPacked: prototype.False,
  1968. },
  1969. {
  1970. Name: "rptgroup",
  1971. Number: 4,
  1972. Cardinality: protoreflect.Repeated,
  1973. Kind: protoreflect.GroupKind,
  1974. JSONName: "rptgroup",
  1975. IsPacked: prototype.False,
  1976. },
  1977. },
  1978. ReservedNames: []protoreflect.Name{"reserved_field"},
  1979. },
  1980. {
  1981. Name: "Nested",
  1982. Fields: []prototype.Field{
  1983. {
  1984. Name: "opt_string",
  1985. Number: 1,
  1986. Cardinality: protoreflect.Optional,
  1987. Kind: protoreflect.StringKind,
  1988. JSONName: "optString",
  1989. IsPacked: prototype.False,
  1990. },
  1991. {
  1992. Name: "opt_nested",
  1993. Number: 2,
  1994. Cardinality: protoreflect.Optional,
  1995. Kind: protoreflect.MessageKind,
  1996. JSONName: "optNested",
  1997. IsPacked: prototype.False,
  1998. },
  1999. },
  2000. },
  2001. {
  2002. Name: "Requireds",
  2003. Fields: []prototype.Field{
  2004. {
  2005. Name: "req_bool",
  2006. Number: 1,
  2007. Cardinality: protoreflect.Required,
  2008. Kind: protoreflect.BoolKind,
  2009. JSONName: "reqBool",
  2010. IsPacked: prototype.False,
  2011. },
  2012. {
  2013. Name: "req_fixed32",
  2014. Number: 2,
  2015. Cardinality: protoreflect.Required,
  2016. Kind: protoreflect.Fixed32Kind,
  2017. JSONName: "reqFixed32",
  2018. IsPacked: prototype.False,
  2019. },
  2020. {
  2021. Name: "req_fixed64",
  2022. Number: 3,
  2023. Cardinality: protoreflect.Required,
  2024. Kind: protoreflect.Fixed64Kind,
  2025. JSONName: "reqFixed64",
  2026. IsPacked: prototype.False,
  2027. },
  2028. {
  2029. Name: "req_sfixed32",
  2030. Number: 4,
  2031. Cardinality: protoreflect.Required,
  2032. Kind: protoreflect.Sfixed32Kind,
  2033. JSONName: "reqSfixed32",
  2034. IsPacked: prototype.False,
  2035. },
  2036. {
  2037. Name: "req_sfixed64",
  2038. Number: 5,
  2039. Cardinality: protoreflect.Required,
  2040. Kind: protoreflect.Sfixed64Kind,
  2041. JSONName: "reqSfixed64",
  2042. IsPacked: prototype.False,
  2043. },
  2044. {
  2045. Name: "req_float",
  2046. Number: 6,
  2047. Cardinality: protoreflect.Required,
  2048. Kind: protoreflect.FloatKind,
  2049. JSONName: "reqFloat",
  2050. IsPacked: prototype.False,
  2051. },
  2052. {
  2053. Name: "req_double",
  2054. Number: 7,
  2055. Cardinality: protoreflect.Required,
  2056. Kind: protoreflect.DoubleKind,
  2057. JSONName: "reqDouble",
  2058. IsPacked: prototype.False,
  2059. },
  2060. {
  2061. Name: "req_string",
  2062. Number: 8,
  2063. Cardinality: protoreflect.Required,
  2064. Kind: protoreflect.StringKind,
  2065. JSONName: "reqString",
  2066. IsPacked: prototype.False,
  2067. },
  2068. {
  2069. Name: "req_bytes",
  2070. Number: 9,
  2071. Cardinality: protoreflect.Required,
  2072. Kind: protoreflect.BytesKind,
  2073. JSONName: "reqBytes",
  2074. IsPacked: prototype.False,
  2075. },
  2076. {
  2077. Name: "req_enum",
  2078. Number: 10,
  2079. Cardinality: protoreflect.Required,
  2080. Kind: protoreflect.EnumKind,
  2081. JSONName: "reqEnum",
  2082. IsPacked: prototype.False,
  2083. },
  2084. {
  2085. Name: "req_nested",
  2086. Number: 11,
  2087. Cardinality: protoreflect.Required,
  2088. Kind: protoreflect.MessageKind,
  2089. JSONName: "reqNested",
  2090. IsPacked: prototype.False,
  2091. },
  2092. },
  2093. },
  2094. {
  2095. Name: "PartialRequired",
  2096. Fields: []prototype.Field{
  2097. {
  2098. Name: "req_string",
  2099. Number: 1,
  2100. Cardinality: protoreflect.Required,
  2101. Kind: protoreflect.StringKind,
  2102. JSONName: "reqString",
  2103. IsPacked: prototype.False,
  2104. },
  2105. {
  2106. Name: "opt_string",
  2107. Number: 2,
  2108. Cardinality: protoreflect.Optional,
  2109. Kind: protoreflect.StringKind,
  2110. JSONName: "optString",
  2111. IsPacked: prototype.False,
  2112. },
  2113. },
  2114. },
  2115. {
  2116. Name: "Oneofs",
  2117. Fields: []prototype.Field{
  2118. {
  2119. Name: "str",
  2120. Number: 1,
  2121. Cardinality: protoreflect.Optional,
  2122. Kind: protoreflect.StringKind,
  2123. JSONName: "str",
  2124. OneofName: "union",
  2125. IsPacked: prototype.False,
  2126. },
  2127. {
  2128. Name: "msg",
  2129. Number: 2,
  2130. Cardinality: protoreflect.Optional,
  2131. Kind: protoreflect.MessageKind,
  2132. JSONName: "msg",
  2133. OneofName: "union",
  2134. IsPacked: prototype.False,
  2135. },
  2136. },
  2137. Oneofs: []prototype.Oneof{
  2138. {Name: "union"},
  2139. },
  2140. },
  2141. {
  2142. Name: "Maps",
  2143. Fields: []prototype.Field{
  2144. {
  2145. Name: "int32_to_str",
  2146. Number: 1,
  2147. Cardinality: protoreflect.Repeated,
  2148. Kind: protoreflect.MessageKind,
  2149. JSONName: "int32ToStr",
  2150. IsPacked: prototype.False,
  2151. },
  2152. {
  2153. Name: "sfixed64_to_bool",
  2154. Number: 2,
  2155. Cardinality: protoreflect.Repeated,
  2156. Kind: protoreflect.MessageKind,
  2157. JSONName: "sfixed64ToBool",
  2158. IsPacked: prototype.False,
  2159. },
  2160. {
  2161. Name: "bool_to_uint32",
  2162. Number: 3,
  2163. Cardinality: protoreflect.Repeated,
  2164. Kind: protoreflect.MessageKind,
  2165. JSONName: "boolToUint32",
  2166. IsPacked: prototype.False,
  2167. },
  2168. {
  2169. Name: "uint64_to_enum",
  2170. Number: 4,
  2171. Cardinality: protoreflect.Repeated,
  2172. Kind: protoreflect.MessageKind,
  2173. JSONName: "uint64ToEnum",
  2174. IsPacked: prototype.False,
  2175. },
  2176. {
  2177. Name: "str_to_nested",
  2178. Number: 5,
  2179. Cardinality: protoreflect.Repeated,
  2180. Kind: protoreflect.MessageKind,
  2181. JSONName: "strToNested",
  2182. IsPacked: prototype.False,
  2183. },
  2184. {
  2185. Name: "str_to_oneofs",
  2186. Number: 6,
  2187. Cardinality: protoreflect.Repeated,
  2188. Kind: protoreflect.MessageKind,
  2189. JSONName: "strToOneofs",
  2190. IsPacked: prototype.False,
  2191. },
  2192. },
  2193. },
  2194. {
  2195. Name: "NestedWithRequired",
  2196. Fields: []prototype.Field{
  2197. {
  2198. Name: "req_string",
  2199. Number: 1,
  2200. Cardinality: protoreflect.Required,
  2201. Kind: protoreflect.StringKind,
  2202. JSONName: "reqString",
  2203. IsPacked: prototype.False,
  2204. },
  2205. },
  2206. },
  2207. {
  2208. Name: "IndirectRequired",
  2209. Fields: []prototype.Field{
  2210. {
  2211. Name: "opt_nested",
  2212. Number: 1,
  2213. Cardinality: protoreflect.Optional,
  2214. Kind: protoreflect.MessageKind,
  2215. JSONName: "optNested",
  2216. IsPacked: prototype.False,
  2217. },
  2218. {
  2219. Name: "rpt_nested",
  2220. Number: 2,
  2221. Cardinality: protoreflect.Repeated,
  2222. Kind: protoreflect.MessageKind,
  2223. JSONName: "rptNested",
  2224. IsPacked: prototype.False,
  2225. },
  2226. {
  2227. Name: "str_to_nested",
  2228. Number: 3,
  2229. Cardinality: protoreflect.Repeated,
  2230. Kind: protoreflect.MessageKind,
  2231. JSONName: "strToNested",
  2232. IsPacked: prototype.False,
  2233. },
  2234. },
  2235. },
  2236. {
  2237. Name: "KnownTypes",
  2238. Fields: []prototype.Field{
  2239. {
  2240. Name: "opt_bool",
  2241. Number: 1,
  2242. Cardinality: protoreflect.Optional,
  2243. Kind: protoreflect.MessageKind,
  2244. JSONName: "optBool",
  2245. IsPacked: prototype.False,
  2246. },
  2247. {
  2248. Name: "opt_int32",
  2249. Number: 2,
  2250. Cardinality: protoreflect.Optional,
  2251. Kind: protoreflect.MessageKind,
  2252. JSONName: "optInt32",
  2253. IsPacked: prototype.False,
  2254. },
  2255. {
  2256. Name: "opt_int64",
  2257. Number: 3,
  2258. Cardinality: protoreflect.Optional,
  2259. Kind: protoreflect.MessageKind,
  2260. JSONName: "optInt64",
  2261. IsPacked: prototype.False,
  2262. },
  2263. {
  2264. Name: "opt_uint32",
  2265. Number: 4,
  2266. Cardinality: protoreflect.Optional,
  2267. Kind: protoreflect.MessageKind,
  2268. JSONName: "optUint32",
  2269. IsPacked: prototype.False,
  2270. },
  2271. {
  2272. Name: "opt_uint64",
  2273. Number: 5,
  2274. Cardinality: protoreflect.Optional,
  2275. Kind: protoreflect.MessageKind,
  2276. JSONName: "optUint64",
  2277. IsPacked: prototype.False,
  2278. },
  2279. {
  2280. Name: "opt_float",
  2281. Number: 6,
  2282. Cardinality: protoreflect.Optional,
  2283. Kind: protoreflect.MessageKind,
  2284. JSONName: "optFloat",
  2285. IsPacked: prototype.False,
  2286. },
  2287. {
  2288. Name: "opt_double",
  2289. Number: 7,
  2290. Cardinality: protoreflect.Optional,
  2291. Kind: protoreflect.MessageKind,
  2292. JSONName: "optDouble",
  2293. IsPacked: prototype.False,
  2294. },
  2295. {
  2296. Name: "opt_string",
  2297. Number: 8,
  2298. Cardinality: protoreflect.Optional,
  2299. Kind: protoreflect.MessageKind,
  2300. JSONName: "optString",
  2301. IsPacked: prototype.False,
  2302. },
  2303. {
  2304. Name: "opt_bytes",
  2305. Number: 9,
  2306. Cardinality: protoreflect.Optional,
  2307. Kind: protoreflect.MessageKind,
  2308. JSONName: "optBytes",
  2309. IsPacked: prototype.False,
  2310. },
  2311. {
  2312. Name: "opt_duration",
  2313. Number: 20,
  2314. Cardinality: protoreflect.Optional,
  2315. Kind: protoreflect.MessageKind,
  2316. JSONName: "optDuration",
  2317. IsPacked: prototype.False,
  2318. },
  2319. {
  2320. Name: "opt_timestamp",
  2321. Number: 21,
  2322. Cardinality: protoreflect.Optional,
  2323. Kind: protoreflect.MessageKind,
  2324. JSONName: "optTimestamp",
  2325. IsPacked: prototype.False,
  2326. },
  2327. {
  2328. Name: "opt_struct",
  2329. Number: 25,
  2330. Cardinality: protoreflect.Optional,
  2331. Kind: protoreflect.MessageKind,
  2332. JSONName: "optStruct",
  2333. IsPacked: prototype.False,
  2334. },
  2335. {
  2336. Name: "opt_list",
  2337. Number: 26,
  2338. Cardinality: protoreflect.Optional,
  2339. Kind: protoreflect.MessageKind,
  2340. JSONName: "optList",
  2341. IsPacked: prototype.False,
  2342. },
  2343. {
  2344. Name: "opt_value",
  2345. Number: 27,
  2346. Cardinality: protoreflect.Optional,
  2347. Kind: protoreflect.MessageKind,
  2348. JSONName: "optValue",
  2349. IsPacked: prototype.False,
  2350. },
  2351. {
  2352. Name: "opt_empty",
  2353. Number: 30,
  2354. Cardinality: protoreflect.Optional,
  2355. Kind: protoreflect.MessageKind,
  2356. JSONName: "optEmpty",
  2357. IsPacked: prototype.False,
  2358. },
  2359. {
  2360. Name: "opt_any",
  2361. Number: 32,
  2362. Cardinality: protoreflect.Optional,
  2363. Kind: protoreflect.MessageKind,
  2364. JSONName: "optAny",
  2365. IsPacked: prototype.False,
  2366. },
  2367. },
  2368. },
  2369. {
  2370. Name: "OptGroup",
  2371. Fields: []prototype.Field{
  2372. {
  2373. Name: "opt_bool",
  2374. Number: 1,
  2375. Cardinality: protoreflect.Optional,
  2376. Kind: protoreflect.BoolKind,
  2377. JSONName: "optBool",
  2378. IsPacked: prototype.False,
  2379. },
  2380. {
  2381. Name: "opt_string",
  2382. Number: 2,
  2383. Cardinality: protoreflect.Optional,
  2384. Kind: protoreflect.StringKind,
  2385. JSONName: "optString",
  2386. IsPacked: prototype.False,
  2387. },
  2388. {
  2389. Name: "opt_nested",
  2390. Number: 3,
  2391. Cardinality: protoreflect.Optional,
  2392. Kind: protoreflect.MessageKind,
  2393. JSONName: "optNested",
  2394. IsPacked: prototype.False,
  2395. },
  2396. {
  2397. Name: "optnestedgroup",
  2398. Number: 4,
  2399. Cardinality: protoreflect.Optional,
  2400. Kind: protoreflect.GroupKind,
  2401. JSONName: "optnestedgroup",
  2402. IsPacked: prototype.False,
  2403. },
  2404. },
  2405. },
  2406. {
  2407. Name: "RptGroup",
  2408. Fields: []prototype.Field{
  2409. {
  2410. Name: "rpt_bool",
  2411. Number: 1,
  2412. Cardinality: protoreflect.Repeated,
  2413. Kind: protoreflect.BoolKind,
  2414. JSONName: "rptBool",
  2415. IsPacked: prototype.False,
  2416. },
  2417. },
  2418. },
  2419. {
  2420. Name: "OptNestedGroup",
  2421. Fields: []prototype.Field{
  2422. {
  2423. Name: "opt_enum",
  2424. Number: 1,
  2425. Cardinality: protoreflect.Optional,
  2426. Kind: protoreflect.EnumKind,
  2427. JSONName: "optEnum",
  2428. IsPacked: prototype.False,
  2429. },
  2430. },
  2431. },
  2432. {
  2433. Name: "Int32ToStrEntry",
  2434. Fields: []prototype.Field{
  2435. {
  2436. Name: "key",
  2437. Number: 1,
  2438. Cardinality: protoreflect.Optional,
  2439. Kind: protoreflect.Int32Kind,
  2440. JSONName: "key",
  2441. IsPacked: prototype.False,
  2442. },
  2443. {
  2444. Name: "value",
  2445. Number: 2,
  2446. Cardinality: protoreflect.Optional,
  2447. Kind: protoreflect.StringKind,
  2448. JSONName: "value",
  2449. IsPacked: prototype.False,
  2450. },
  2451. },
  2452. IsMapEntry: true,
  2453. },
  2454. {
  2455. Name: "Sfixed64ToBoolEntry",
  2456. Fields: []prototype.Field{
  2457. {
  2458. Name: "key",
  2459. Number: 1,
  2460. Cardinality: protoreflect.Optional,
  2461. Kind: protoreflect.Sfixed64Kind,
  2462. JSONName: "key",
  2463. IsPacked: prototype.False,
  2464. },
  2465. {
  2466. Name: "value",
  2467. Number: 2,
  2468. Cardinality: protoreflect.Optional,
  2469. Kind: protoreflect.BoolKind,
  2470. JSONName: "value",
  2471. IsPacked: prototype.False,
  2472. },
  2473. },
  2474. IsMapEntry: true,
  2475. },
  2476. {
  2477. Name: "BoolToUint32Entry",
  2478. Fields: []prototype.Field{
  2479. {
  2480. Name: "key",
  2481. Number: 1,
  2482. Cardinality: protoreflect.Optional,
  2483. Kind: protoreflect.BoolKind,
  2484. JSONName: "key",
  2485. IsPacked: prototype.False,
  2486. },
  2487. {
  2488. Name: "value",
  2489. Number: 2,
  2490. Cardinality: protoreflect.Optional,
  2491. Kind: protoreflect.Uint32Kind,
  2492. JSONName: "value",
  2493. IsPacked: prototype.False,
  2494. },
  2495. },
  2496. IsMapEntry: true,
  2497. },
  2498. {
  2499. Name: "Uint64ToEnumEntry",
  2500. Fields: []prototype.Field{
  2501. {
  2502. Name: "key",
  2503. Number: 1,
  2504. Cardinality: protoreflect.Optional,
  2505. Kind: protoreflect.Uint64Kind,
  2506. JSONName: "key",
  2507. IsPacked: prototype.False,
  2508. },
  2509. {
  2510. Name: "value",
  2511. Number: 2,
  2512. Cardinality: protoreflect.Optional,
  2513. Kind: protoreflect.EnumKind,
  2514. JSONName: "value",
  2515. IsPacked: prototype.False,
  2516. },
  2517. },
  2518. IsMapEntry: true,
  2519. },
  2520. {
  2521. Name: "StrToNestedEntry",
  2522. Fields: []prototype.Field{
  2523. {
  2524. Name: "key",
  2525. Number: 1,
  2526. Cardinality: protoreflect.Optional,
  2527. Kind: protoreflect.StringKind,
  2528. JSONName: "key",
  2529. IsPacked: prototype.False,
  2530. },
  2531. {
  2532. Name: "value",
  2533. Number: 2,
  2534. Cardinality: protoreflect.Optional,
  2535. Kind: protoreflect.MessageKind,
  2536. JSONName: "value",
  2537. IsPacked: prototype.False,
  2538. },
  2539. },
  2540. IsMapEntry: true,
  2541. },
  2542. {
  2543. Name: "StrToOneofsEntry",
  2544. Fields: []prototype.Field{
  2545. {
  2546. Name: "key",
  2547. Number: 1,
  2548. Cardinality: protoreflect.Optional,
  2549. Kind: protoreflect.StringKind,
  2550. JSONName: "key",
  2551. IsPacked: prototype.False,
  2552. },
  2553. {
  2554. Name: "value",
  2555. Number: 2,
  2556. Cardinality: protoreflect.Optional,
  2557. Kind: protoreflect.MessageKind,
  2558. JSONName: "value",
  2559. IsPacked: prototype.False,
  2560. },
  2561. },
  2562. IsMapEntry: true,
  2563. },
  2564. {
  2565. Name: "StrToNestedEntry",
  2566. Fields: []prototype.Field{
  2567. {
  2568. Name: "key",
  2569. Number: 1,
  2570. Cardinality: protoreflect.Optional,
  2571. Kind: protoreflect.StringKind,
  2572. JSONName: "key",
  2573. IsPacked: prototype.False,
  2574. },
  2575. {
  2576. Name: "value",
  2577. Number: 2,
  2578. Cardinality: protoreflect.Optional,
  2579. Kind: protoreflect.MessageKind,
  2580. JSONName: "value",
  2581. IsPacked: prototype.False,
  2582. },
  2583. },
  2584. IsMapEntry: true,
  2585. },
  2586. }