error_details.pb.go 119 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: google/rpc/error_details.proto
  3. package rpc
  4. import (
  5. bytes "bytes"
  6. fmt "fmt"
  7. proto "github.com/gogo/protobuf/proto"
  8. types "github.com/gogo/protobuf/types"
  9. io "io"
  10. math "math"
  11. math_bits "math/bits"
  12. reflect "reflect"
  13. strings "strings"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  24. // Describes when the clients can retry a failed request. Clients could ignore
  25. // the recommendation here or retry when this information is missing from error
  26. // responses.
  27. //
  28. // It's always recommended that clients should use exponential backoff when
  29. // retrying.
  30. //
  31. // Clients should wait until `retry_delay` amount of time has passed since
  32. // receiving the error response before retrying. If retrying requests also
  33. // fail, clients should use an exponential backoff scheme to gradually increase
  34. // the delay between retries based on `retry_delay`, until either a maximum
  35. // number of retires have been reached or a maximum retry delay cap has been
  36. // reached.
  37. type RetryInfo struct {
  38. // Clients should wait at least this long between retrying the same request.
  39. RetryDelay *types.Duration `protobuf:"bytes,1,opt,name=retry_delay,json=retryDelay,proto3" json:"retry_delay,omitempty"`
  40. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  41. XXX_unrecognized []byte `json:"-"`
  42. XXX_sizecache int32 `json:"-"`
  43. }
  44. func (m *RetryInfo) Reset() { *m = RetryInfo{} }
  45. func (*RetryInfo) ProtoMessage() {}
  46. func (*RetryInfo) Descriptor() ([]byte, []int) {
  47. return fileDescriptor_851816e4d6b6361a, []int{0}
  48. }
  49. func (m *RetryInfo) XXX_Unmarshal(b []byte) error {
  50. return m.Unmarshal(b)
  51. }
  52. func (m *RetryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  53. if deterministic {
  54. return xxx_messageInfo_RetryInfo.Marshal(b, m, deterministic)
  55. } else {
  56. b = b[:cap(b)]
  57. n, err := m.MarshalToSizedBuffer(b)
  58. if err != nil {
  59. return nil, err
  60. }
  61. return b[:n], nil
  62. }
  63. }
  64. func (m *RetryInfo) XXX_Merge(src proto.Message) {
  65. xxx_messageInfo_RetryInfo.Merge(m, src)
  66. }
  67. func (m *RetryInfo) XXX_Size() int {
  68. return m.Size()
  69. }
  70. func (m *RetryInfo) XXX_DiscardUnknown() {
  71. xxx_messageInfo_RetryInfo.DiscardUnknown(m)
  72. }
  73. var xxx_messageInfo_RetryInfo proto.InternalMessageInfo
  74. func (m *RetryInfo) GetRetryDelay() *types.Duration {
  75. if m != nil {
  76. return m.RetryDelay
  77. }
  78. return nil
  79. }
  80. func (*RetryInfo) XXX_MessageName() string {
  81. return "google.rpc.RetryInfo"
  82. }
  83. // Describes additional debugging info.
  84. type DebugInfo struct {
  85. // The stack trace entries indicating where the error occurred.
  86. StackEntries []string `protobuf:"bytes,1,rep,name=stack_entries,json=stackEntries,proto3" json:"stack_entries,omitempty"`
  87. // Additional debugging information provided by the server.
  88. Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
  89. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  90. XXX_unrecognized []byte `json:"-"`
  91. XXX_sizecache int32 `json:"-"`
  92. }
  93. func (m *DebugInfo) Reset() { *m = DebugInfo{} }
  94. func (*DebugInfo) ProtoMessage() {}
  95. func (*DebugInfo) Descriptor() ([]byte, []int) {
  96. return fileDescriptor_851816e4d6b6361a, []int{1}
  97. }
  98. func (m *DebugInfo) XXX_Unmarshal(b []byte) error {
  99. return m.Unmarshal(b)
  100. }
  101. func (m *DebugInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  102. if deterministic {
  103. return xxx_messageInfo_DebugInfo.Marshal(b, m, deterministic)
  104. } else {
  105. b = b[:cap(b)]
  106. n, err := m.MarshalToSizedBuffer(b)
  107. if err != nil {
  108. return nil, err
  109. }
  110. return b[:n], nil
  111. }
  112. }
  113. func (m *DebugInfo) XXX_Merge(src proto.Message) {
  114. xxx_messageInfo_DebugInfo.Merge(m, src)
  115. }
  116. func (m *DebugInfo) XXX_Size() int {
  117. return m.Size()
  118. }
  119. func (m *DebugInfo) XXX_DiscardUnknown() {
  120. xxx_messageInfo_DebugInfo.DiscardUnknown(m)
  121. }
  122. var xxx_messageInfo_DebugInfo proto.InternalMessageInfo
  123. func (m *DebugInfo) GetStackEntries() []string {
  124. if m != nil {
  125. return m.StackEntries
  126. }
  127. return nil
  128. }
  129. func (m *DebugInfo) GetDetail() string {
  130. if m != nil {
  131. return m.Detail
  132. }
  133. return ""
  134. }
  135. func (*DebugInfo) XXX_MessageName() string {
  136. return "google.rpc.DebugInfo"
  137. }
  138. // Describes how a quota check failed.
  139. //
  140. // For example if a daily limit was exceeded for the calling project,
  141. // a service could respond with a QuotaFailure detail containing the project
  142. // id and the description of the quota limit that was exceeded. If the
  143. // calling project hasn't enabled the service in the developer console, then
  144. // a service could respond with the project id and set `service_disabled`
  145. // to true.
  146. //
  147. // Also see RetryDetail and Help types for other details about handling a
  148. // quota failure.
  149. type QuotaFailure struct {
  150. // Describes all quota violations.
  151. Violations []*QuotaFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"`
  152. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  153. XXX_unrecognized []byte `json:"-"`
  154. XXX_sizecache int32 `json:"-"`
  155. }
  156. func (m *QuotaFailure) Reset() { *m = QuotaFailure{} }
  157. func (*QuotaFailure) ProtoMessage() {}
  158. func (*QuotaFailure) Descriptor() ([]byte, []int) {
  159. return fileDescriptor_851816e4d6b6361a, []int{2}
  160. }
  161. func (m *QuotaFailure) XXX_Unmarshal(b []byte) error {
  162. return m.Unmarshal(b)
  163. }
  164. func (m *QuotaFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  165. if deterministic {
  166. return xxx_messageInfo_QuotaFailure.Marshal(b, m, deterministic)
  167. } else {
  168. b = b[:cap(b)]
  169. n, err := m.MarshalToSizedBuffer(b)
  170. if err != nil {
  171. return nil, err
  172. }
  173. return b[:n], nil
  174. }
  175. }
  176. func (m *QuotaFailure) XXX_Merge(src proto.Message) {
  177. xxx_messageInfo_QuotaFailure.Merge(m, src)
  178. }
  179. func (m *QuotaFailure) XXX_Size() int {
  180. return m.Size()
  181. }
  182. func (m *QuotaFailure) XXX_DiscardUnknown() {
  183. xxx_messageInfo_QuotaFailure.DiscardUnknown(m)
  184. }
  185. var xxx_messageInfo_QuotaFailure proto.InternalMessageInfo
  186. func (m *QuotaFailure) GetViolations() []*QuotaFailure_Violation {
  187. if m != nil {
  188. return m.Violations
  189. }
  190. return nil
  191. }
  192. func (*QuotaFailure) XXX_MessageName() string {
  193. return "google.rpc.QuotaFailure"
  194. }
  195. // A message type used to describe a single quota violation. For example, a
  196. // daily quota or a custom quota that was exceeded.
  197. type QuotaFailure_Violation struct {
  198. // The subject on which the quota check failed.
  199. // For example, "clientip:<ip address of client>" or "project:<Google
  200. // developer project id>".
  201. Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
  202. // A description of how the quota check failed. Clients can use this
  203. // description to find more about the quota configuration in the service's
  204. // public documentation, or find the relevant quota limit to adjust through
  205. // developer console.
  206. //
  207. // For example: "Service disabled" or "Daily Limit for read operations
  208. // exceeded".
  209. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  210. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  211. XXX_unrecognized []byte `json:"-"`
  212. XXX_sizecache int32 `json:"-"`
  213. }
  214. func (m *QuotaFailure_Violation) Reset() { *m = QuotaFailure_Violation{} }
  215. func (*QuotaFailure_Violation) ProtoMessage() {}
  216. func (*QuotaFailure_Violation) Descriptor() ([]byte, []int) {
  217. return fileDescriptor_851816e4d6b6361a, []int{2, 0}
  218. }
  219. func (m *QuotaFailure_Violation) XXX_Unmarshal(b []byte) error {
  220. return m.Unmarshal(b)
  221. }
  222. func (m *QuotaFailure_Violation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  223. if deterministic {
  224. return xxx_messageInfo_QuotaFailure_Violation.Marshal(b, m, deterministic)
  225. } else {
  226. b = b[:cap(b)]
  227. n, err := m.MarshalToSizedBuffer(b)
  228. if err != nil {
  229. return nil, err
  230. }
  231. return b[:n], nil
  232. }
  233. }
  234. func (m *QuotaFailure_Violation) XXX_Merge(src proto.Message) {
  235. xxx_messageInfo_QuotaFailure_Violation.Merge(m, src)
  236. }
  237. func (m *QuotaFailure_Violation) XXX_Size() int {
  238. return m.Size()
  239. }
  240. func (m *QuotaFailure_Violation) XXX_DiscardUnknown() {
  241. xxx_messageInfo_QuotaFailure_Violation.DiscardUnknown(m)
  242. }
  243. var xxx_messageInfo_QuotaFailure_Violation proto.InternalMessageInfo
  244. func (m *QuotaFailure_Violation) GetSubject() string {
  245. if m != nil {
  246. return m.Subject
  247. }
  248. return ""
  249. }
  250. func (m *QuotaFailure_Violation) GetDescription() string {
  251. if m != nil {
  252. return m.Description
  253. }
  254. return ""
  255. }
  256. func (*QuotaFailure_Violation) XXX_MessageName() string {
  257. return "google.rpc.QuotaFailure.Violation"
  258. }
  259. // Describes what preconditions have failed.
  260. //
  261. // For example, if an RPC failed because it required the Terms of Service to be
  262. // acknowledged, it could list the terms of service violation in the
  263. // PreconditionFailure message.
  264. type PreconditionFailure struct {
  265. // Describes all precondition violations.
  266. Violations []*PreconditionFailure_Violation `protobuf:"bytes,1,rep,name=violations,proto3" json:"violations,omitempty"`
  267. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  268. XXX_unrecognized []byte `json:"-"`
  269. XXX_sizecache int32 `json:"-"`
  270. }
  271. func (m *PreconditionFailure) Reset() { *m = PreconditionFailure{} }
  272. func (*PreconditionFailure) ProtoMessage() {}
  273. func (*PreconditionFailure) Descriptor() ([]byte, []int) {
  274. return fileDescriptor_851816e4d6b6361a, []int{3}
  275. }
  276. func (m *PreconditionFailure) XXX_Unmarshal(b []byte) error {
  277. return m.Unmarshal(b)
  278. }
  279. func (m *PreconditionFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  280. if deterministic {
  281. return xxx_messageInfo_PreconditionFailure.Marshal(b, m, deterministic)
  282. } else {
  283. b = b[:cap(b)]
  284. n, err := m.MarshalToSizedBuffer(b)
  285. if err != nil {
  286. return nil, err
  287. }
  288. return b[:n], nil
  289. }
  290. }
  291. func (m *PreconditionFailure) XXX_Merge(src proto.Message) {
  292. xxx_messageInfo_PreconditionFailure.Merge(m, src)
  293. }
  294. func (m *PreconditionFailure) XXX_Size() int {
  295. return m.Size()
  296. }
  297. func (m *PreconditionFailure) XXX_DiscardUnknown() {
  298. xxx_messageInfo_PreconditionFailure.DiscardUnknown(m)
  299. }
  300. var xxx_messageInfo_PreconditionFailure proto.InternalMessageInfo
  301. func (m *PreconditionFailure) GetViolations() []*PreconditionFailure_Violation {
  302. if m != nil {
  303. return m.Violations
  304. }
  305. return nil
  306. }
  307. func (*PreconditionFailure) XXX_MessageName() string {
  308. return "google.rpc.PreconditionFailure"
  309. }
  310. // A message type used to describe a single precondition failure.
  311. type PreconditionFailure_Violation struct {
  312. // The type of PreconditionFailure. We recommend using a service-specific
  313. // enum type to define the supported precondition violation types. For
  314. // example, "TOS" for "Terms of Service violation".
  315. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  316. // The subject, relative to the type, that failed.
  317. // For example, "google.com/cloud" relative to the "TOS" type would
  318. // indicate which terms of service is being referenced.
  319. Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
  320. // A description of how the precondition failed. Developers can use this
  321. // description to understand how to fix the failure.
  322. //
  323. // For example: "Terms of service not accepted".
  324. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  325. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  326. XXX_unrecognized []byte `json:"-"`
  327. XXX_sizecache int32 `json:"-"`
  328. }
  329. func (m *PreconditionFailure_Violation) Reset() { *m = PreconditionFailure_Violation{} }
  330. func (*PreconditionFailure_Violation) ProtoMessage() {}
  331. func (*PreconditionFailure_Violation) Descriptor() ([]byte, []int) {
  332. return fileDescriptor_851816e4d6b6361a, []int{3, 0}
  333. }
  334. func (m *PreconditionFailure_Violation) XXX_Unmarshal(b []byte) error {
  335. return m.Unmarshal(b)
  336. }
  337. func (m *PreconditionFailure_Violation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  338. if deterministic {
  339. return xxx_messageInfo_PreconditionFailure_Violation.Marshal(b, m, deterministic)
  340. } else {
  341. b = b[:cap(b)]
  342. n, err := m.MarshalToSizedBuffer(b)
  343. if err != nil {
  344. return nil, err
  345. }
  346. return b[:n], nil
  347. }
  348. }
  349. func (m *PreconditionFailure_Violation) XXX_Merge(src proto.Message) {
  350. xxx_messageInfo_PreconditionFailure_Violation.Merge(m, src)
  351. }
  352. func (m *PreconditionFailure_Violation) XXX_Size() int {
  353. return m.Size()
  354. }
  355. func (m *PreconditionFailure_Violation) XXX_DiscardUnknown() {
  356. xxx_messageInfo_PreconditionFailure_Violation.DiscardUnknown(m)
  357. }
  358. var xxx_messageInfo_PreconditionFailure_Violation proto.InternalMessageInfo
  359. func (m *PreconditionFailure_Violation) GetType() string {
  360. if m != nil {
  361. return m.Type
  362. }
  363. return ""
  364. }
  365. func (m *PreconditionFailure_Violation) GetSubject() string {
  366. if m != nil {
  367. return m.Subject
  368. }
  369. return ""
  370. }
  371. func (m *PreconditionFailure_Violation) GetDescription() string {
  372. if m != nil {
  373. return m.Description
  374. }
  375. return ""
  376. }
  377. func (*PreconditionFailure_Violation) XXX_MessageName() string {
  378. return "google.rpc.PreconditionFailure.Violation"
  379. }
  380. // Describes violations in a client request. This error type focuses on the
  381. // syntactic aspects of the request.
  382. type BadRequest struct {
  383. // Describes all violations in a client request.
  384. FieldViolations []*BadRequest_FieldViolation `protobuf:"bytes,1,rep,name=field_violations,json=fieldViolations,proto3" json:"field_violations,omitempty"`
  385. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  386. XXX_unrecognized []byte `json:"-"`
  387. XXX_sizecache int32 `json:"-"`
  388. }
  389. func (m *BadRequest) Reset() { *m = BadRequest{} }
  390. func (*BadRequest) ProtoMessage() {}
  391. func (*BadRequest) Descriptor() ([]byte, []int) {
  392. return fileDescriptor_851816e4d6b6361a, []int{4}
  393. }
  394. func (m *BadRequest) XXX_Unmarshal(b []byte) error {
  395. return m.Unmarshal(b)
  396. }
  397. func (m *BadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  398. if deterministic {
  399. return xxx_messageInfo_BadRequest.Marshal(b, m, deterministic)
  400. } else {
  401. b = b[:cap(b)]
  402. n, err := m.MarshalToSizedBuffer(b)
  403. if err != nil {
  404. return nil, err
  405. }
  406. return b[:n], nil
  407. }
  408. }
  409. func (m *BadRequest) XXX_Merge(src proto.Message) {
  410. xxx_messageInfo_BadRequest.Merge(m, src)
  411. }
  412. func (m *BadRequest) XXX_Size() int {
  413. return m.Size()
  414. }
  415. func (m *BadRequest) XXX_DiscardUnknown() {
  416. xxx_messageInfo_BadRequest.DiscardUnknown(m)
  417. }
  418. var xxx_messageInfo_BadRequest proto.InternalMessageInfo
  419. func (m *BadRequest) GetFieldViolations() []*BadRequest_FieldViolation {
  420. if m != nil {
  421. return m.FieldViolations
  422. }
  423. return nil
  424. }
  425. func (*BadRequest) XXX_MessageName() string {
  426. return "google.rpc.BadRequest"
  427. }
  428. // A message type used to describe a single bad request field.
  429. type BadRequest_FieldViolation struct {
  430. // A path leading to a field in the request body. The value will be a
  431. // sequence of dot-separated identifiers that identify a protocol buffer
  432. // field. E.g., "field_violations.field" would identify this field.
  433. Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
  434. // A description of why the request element is bad.
  435. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  436. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  437. XXX_unrecognized []byte `json:"-"`
  438. XXX_sizecache int32 `json:"-"`
  439. }
  440. func (m *BadRequest_FieldViolation) Reset() { *m = BadRequest_FieldViolation{} }
  441. func (*BadRequest_FieldViolation) ProtoMessage() {}
  442. func (*BadRequest_FieldViolation) Descriptor() ([]byte, []int) {
  443. return fileDescriptor_851816e4d6b6361a, []int{4, 0}
  444. }
  445. func (m *BadRequest_FieldViolation) XXX_Unmarshal(b []byte) error {
  446. return m.Unmarshal(b)
  447. }
  448. func (m *BadRequest_FieldViolation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  449. if deterministic {
  450. return xxx_messageInfo_BadRequest_FieldViolation.Marshal(b, m, deterministic)
  451. } else {
  452. b = b[:cap(b)]
  453. n, err := m.MarshalToSizedBuffer(b)
  454. if err != nil {
  455. return nil, err
  456. }
  457. return b[:n], nil
  458. }
  459. }
  460. func (m *BadRequest_FieldViolation) XXX_Merge(src proto.Message) {
  461. xxx_messageInfo_BadRequest_FieldViolation.Merge(m, src)
  462. }
  463. func (m *BadRequest_FieldViolation) XXX_Size() int {
  464. return m.Size()
  465. }
  466. func (m *BadRequest_FieldViolation) XXX_DiscardUnknown() {
  467. xxx_messageInfo_BadRequest_FieldViolation.DiscardUnknown(m)
  468. }
  469. var xxx_messageInfo_BadRequest_FieldViolation proto.InternalMessageInfo
  470. func (m *BadRequest_FieldViolation) GetField() string {
  471. if m != nil {
  472. return m.Field
  473. }
  474. return ""
  475. }
  476. func (m *BadRequest_FieldViolation) GetDescription() string {
  477. if m != nil {
  478. return m.Description
  479. }
  480. return ""
  481. }
  482. func (*BadRequest_FieldViolation) XXX_MessageName() string {
  483. return "google.rpc.BadRequest.FieldViolation"
  484. }
  485. // Contains metadata about the request that clients can attach when filing a bug
  486. // or providing other forms of feedback.
  487. type RequestInfo struct {
  488. // An opaque string that should only be interpreted by the service generating
  489. // it. For example, it can be used to identify requests in the service's logs.
  490. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
  491. // Any data that was used to serve this request. For example, an encrypted
  492. // stack trace that can be sent back to the service provider for debugging.
  493. ServingData string `protobuf:"bytes,2,opt,name=serving_data,json=servingData,proto3" json:"serving_data,omitempty"`
  494. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  495. XXX_unrecognized []byte `json:"-"`
  496. XXX_sizecache int32 `json:"-"`
  497. }
  498. func (m *RequestInfo) Reset() { *m = RequestInfo{} }
  499. func (*RequestInfo) ProtoMessage() {}
  500. func (*RequestInfo) Descriptor() ([]byte, []int) {
  501. return fileDescriptor_851816e4d6b6361a, []int{5}
  502. }
  503. func (m *RequestInfo) XXX_Unmarshal(b []byte) error {
  504. return m.Unmarshal(b)
  505. }
  506. func (m *RequestInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  507. if deterministic {
  508. return xxx_messageInfo_RequestInfo.Marshal(b, m, deterministic)
  509. } else {
  510. b = b[:cap(b)]
  511. n, err := m.MarshalToSizedBuffer(b)
  512. if err != nil {
  513. return nil, err
  514. }
  515. return b[:n], nil
  516. }
  517. }
  518. func (m *RequestInfo) XXX_Merge(src proto.Message) {
  519. xxx_messageInfo_RequestInfo.Merge(m, src)
  520. }
  521. func (m *RequestInfo) XXX_Size() int {
  522. return m.Size()
  523. }
  524. func (m *RequestInfo) XXX_DiscardUnknown() {
  525. xxx_messageInfo_RequestInfo.DiscardUnknown(m)
  526. }
  527. var xxx_messageInfo_RequestInfo proto.InternalMessageInfo
  528. func (m *RequestInfo) GetRequestId() string {
  529. if m != nil {
  530. return m.RequestId
  531. }
  532. return ""
  533. }
  534. func (m *RequestInfo) GetServingData() string {
  535. if m != nil {
  536. return m.ServingData
  537. }
  538. return ""
  539. }
  540. func (*RequestInfo) XXX_MessageName() string {
  541. return "google.rpc.RequestInfo"
  542. }
  543. // Describes the resource that is being accessed.
  544. type ResourceInfo struct {
  545. // A name for the type of resource being accessed, e.g. "sql table",
  546. // "cloud storage bucket", "file", "Google calendar"; or the type URL
  547. // of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
  548. ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
  549. // The name of the resource being accessed. For example, a shared calendar
  550. // name: "[email protected]", if the current
  551. // error is
  552. // [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
  553. ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  554. // The owner of the resource (optional).
  555. // For example, "user:<owner email>" or "project:<Google developer project
  556. // id>".
  557. Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
  558. // Describes what error is encountered when accessing this resource.
  559. // For example, updating a cloud project may require the `writer` permission
  560. // on the developer console project.
  561. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
  562. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  563. XXX_unrecognized []byte `json:"-"`
  564. XXX_sizecache int32 `json:"-"`
  565. }
  566. func (m *ResourceInfo) Reset() { *m = ResourceInfo{} }
  567. func (*ResourceInfo) ProtoMessage() {}
  568. func (*ResourceInfo) Descriptor() ([]byte, []int) {
  569. return fileDescriptor_851816e4d6b6361a, []int{6}
  570. }
  571. func (m *ResourceInfo) XXX_Unmarshal(b []byte) error {
  572. return m.Unmarshal(b)
  573. }
  574. func (m *ResourceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  575. if deterministic {
  576. return xxx_messageInfo_ResourceInfo.Marshal(b, m, deterministic)
  577. } else {
  578. b = b[:cap(b)]
  579. n, err := m.MarshalToSizedBuffer(b)
  580. if err != nil {
  581. return nil, err
  582. }
  583. return b[:n], nil
  584. }
  585. }
  586. func (m *ResourceInfo) XXX_Merge(src proto.Message) {
  587. xxx_messageInfo_ResourceInfo.Merge(m, src)
  588. }
  589. func (m *ResourceInfo) XXX_Size() int {
  590. return m.Size()
  591. }
  592. func (m *ResourceInfo) XXX_DiscardUnknown() {
  593. xxx_messageInfo_ResourceInfo.DiscardUnknown(m)
  594. }
  595. var xxx_messageInfo_ResourceInfo proto.InternalMessageInfo
  596. func (m *ResourceInfo) GetResourceType() string {
  597. if m != nil {
  598. return m.ResourceType
  599. }
  600. return ""
  601. }
  602. func (m *ResourceInfo) GetResourceName() string {
  603. if m != nil {
  604. return m.ResourceName
  605. }
  606. return ""
  607. }
  608. func (m *ResourceInfo) GetOwner() string {
  609. if m != nil {
  610. return m.Owner
  611. }
  612. return ""
  613. }
  614. func (m *ResourceInfo) GetDescription() string {
  615. if m != nil {
  616. return m.Description
  617. }
  618. return ""
  619. }
  620. func (*ResourceInfo) XXX_MessageName() string {
  621. return "google.rpc.ResourceInfo"
  622. }
  623. // Provides links to documentation or for performing an out of band action.
  624. //
  625. // For example, if a quota check failed with an error indicating the calling
  626. // project hasn't enabled the accessed service, this can contain a URL pointing
  627. // directly to the right place in the developer console to flip the bit.
  628. type Help struct {
  629. // URL(s) pointing to additional information on handling the current error.
  630. Links []*Help_Link `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"`
  631. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  632. XXX_unrecognized []byte `json:"-"`
  633. XXX_sizecache int32 `json:"-"`
  634. }
  635. func (m *Help) Reset() { *m = Help{} }
  636. func (*Help) ProtoMessage() {}
  637. func (*Help) Descriptor() ([]byte, []int) {
  638. return fileDescriptor_851816e4d6b6361a, []int{7}
  639. }
  640. func (m *Help) XXX_Unmarshal(b []byte) error {
  641. return m.Unmarshal(b)
  642. }
  643. func (m *Help) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  644. if deterministic {
  645. return xxx_messageInfo_Help.Marshal(b, m, deterministic)
  646. } else {
  647. b = b[:cap(b)]
  648. n, err := m.MarshalToSizedBuffer(b)
  649. if err != nil {
  650. return nil, err
  651. }
  652. return b[:n], nil
  653. }
  654. }
  655. func (m *Help) XXX_Merge(src proto.Message) {
  656. xxx_messageInfo_Help.Merge(m, src)
  657. }
  658. func (m *Help) XXX_Size() int {
  659. return m.Size()
  660. }
  661. func (m *Help) XXX_DiscardUnknown() {
  662. xxx_messageInfo_Help.DiscardUnknown(m)
  663. }
  664. var xxx_messageInfo_Help proto.InternalMessageInfo
  665. func (m *Help) GetLinks() []*Help_Link {
  666. if m != nil {
  667. return m.Links
  668. }
  669. return nil
  670. }
  671. func (*Help) XXX_MessageName() string {
  672. return "google.rpc.Help"
  673. }
  674. // Describes a URL link.
  675. type Help_Link struct {
  676. // Describes what the link offers.
  677. Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
  678. // The URL of the link.
  679. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
  680. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  681. XXX_unrecognized []byte `json:"-"`
  682. XXX_sizecache int32 `json:"-"`
  683. }
  684. func (m *Help_Link) Reset() { *m = Help_Link{} }
  685. func (*Help_Link) ProtoMessage() {}
  686. func (*Help_Link) Descriptor() ([]byte, []int) {
  687. return fileDescriptor_851816e4d6b6361a, []int{7, 0}
  688. }
  689. func (m *Help_Link) XXX_Unmarshal(b []byte) error {
  690. return m.Unmarshal(b)
  691. }
  692. func (m *Help_Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  693. if deterministic {
  694. return xxx_messageInfo_Help_Link.Marshal(b, m, deterministic)
  695. } else {
  696. b = b[:cap(b)]
  697. n, err := m.MarshalToSizedBuffer(b)
  698. if err != nil {
  699. return nil, err
  700. }
  701. return b[:n], nil
  702. }
  703. }
  704. func (m *Help_Link) XXX_Merge(src proto.Message) {
  705. xxx_messageInfo_Help_Link.Merge(m, src)
  706. }
  707. func (m *Help_Link) XXX_Size() int {
  708. return m.Size()
  709. }
  710. func (m *Help_Link) XXX_DiscardUnknown() {
  711. xxx_messageInfo_Help_Link.DiscardUnknown(m)
  712. }
  713. var xxx_messageInfo_Help_Link proto.InternalMessageInfo
  714. func (m *Help_Link) GetDescription() string {
  715. if m != nil {
  716. return m.Description
  717. }
  718. return ""
  719. }
  720. func (m *Help_Link) GetUrl() string {
  721. if m != nil {
  722. return m.Url
  723. }
  724. return ""
  725. }
  726. func (*Help_Link) XXX_MessageName() string {
  727. return "google.rpc.Help.Link"
  728. }
  729. // Provides a localized error message that is safe to return to the user
  730. // which can be attached to an RPC error.
  731. type LocalizedMessage struct {
  732. // The locale used following the specification defined at
  733. // http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
  734. // Examples are: "en-US", "fr-CH", "es-MX"
  735. Locale string `protobuf:"bytes,1,opt,name=locale,proto3" json:"locale,omitempty"`
  736. // The localized error message in the above locale.
  737. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  738. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  739. XXX_unrecognized []byte `json:"-"`
  740. XXX_sizecache int32 `json:"-"`
  741. }
  742. func (m *LocalizedMessage) Reset() { *m = LocalizedMessage{} }
  743. func (*LocalizedMessage) ProtoMessage() {}
  744. func (*LocalizedMessage) Descriptor() ([]byte, []int) {
  745. return fileDescriptor_851816e4d6b6361a, []int{8}
  746. }
  747. func (m *LocalizedMessage) XXX_Unmarshal(b []byte) error {
  748. return m.Unmarshal(b)
  749. }
  750. func (m *LocalizedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  751. if deterministic {
  752. return xxx_messageInfo_LocalizedMessage.Marshal(b, m, deterministic)
  753. } else {
  754. b = b[:cap(b)]
  755. n, err := m.MarshalToSizedBuffer(b)
  756. if err != nil {
  757. return nil, err
  758. }
  759. return b[:n], nil
  760. }
  761. }
  762. func (m *LocalizedMessage) XXX_Merge(src proto.Message) {
  763. xxx_messageInfo_LocalizedMessage.Merge(m, src)
  764. }
  765. func (m *LocalizedMessage) XXX_Size() int {
  766. return m.Size()
  767. }
  768. func (m *LocalizedMessage) XXX_DiscardUnknown() {
  769. xxx_messageInfo_LocalizedMessage.DiscardUnknown(m)
  770. }
  771. var xxx_messageInfo_LocalizedMessage proto.InternalMessageInfo
  772. func (m *LocalizedMessage) GetLocale() string {
  773. if m != nil {
  774. return m.Locale
  775. }
  776. return ""
  777. }
  778. func (m *LocalizedMessage) GetMessage() string {
  779. if m != nil {
  780. return m.Message
  781. }
  782. return ""
  783. }
  784. func (*LocalizedMessage) XXX_MessageName() string {
  785. return "google.rpc.LocalizedMessage"
  786. }
  787. func init() {
  788. proto.RegisterType((*RetryInfo)(nil), "google.rpc.RetryInfo")
  789. proto.RegisterType((*DebugInfo)(nil), "google.rpc.DebugInfo")
  790. proto.RegisterType((*QuotaFailure)(nil), "google.rpc.QuotaFailure")
  791. proto.RegisterType((*QuotaFailure_Violation)(nil), "google.rpc.QuotaFailure.Violation")
  792. proto.RegisterType((*PreconditionFailure)(nil), "google.rpc.PreconditionFailure")
  793. proto.RegisterType((*PreconditionFailure_Violation)(nil), "google.rpc.PreconditionFailure.Violation")
  794. proto.RegisterType((*BadRequest)(nil), "google.rpc.BadRequest")
  795. proto.RegisterType((*BadRequest_FieldViolation)(nil), "google.rpc.BadRequest.FieldViolation")
  796. proto.RegisterType((*RequestInfo)(nil), "google.rpc.RequestInfo")
  797. proto.RegisterType((*ResourceInfo)(nil), "google.rpc.ResourceInfo")
  798. proto.RegisterType((*Help)(nil), "google.rpc.Help")
  799. proto.RegisterType((*Help_Link)(nil), "google.rpc.Help.Link")
  800. proto.RegisterType((*LocalizedMessage)(nil), "google.rpc.LocalizedMessage")
  801. }
  802. func init() { proto.RegisterFile("google/rpc/error_details.proto", fileDescriptor_851816e4d6b6361a) }
  803. var fileDescriptor_851816e4d6b6361a = []byte{
  804. // 624 bytes of a gzipped FileDescriptorProto
  805. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xbf, 0x6f, 0xd3, 0x40,
  806. 0x18, 0xed, 0x35, 0x69, 0x91, 0xbf, 0x84, 0x52, 0xcc, 0x0f, 0x85, 0x48, 0x9c, 0x82, 0x11, 0x52,
  807. 0x11, 0x92, 0x2b, 0x95, 0xad, 0x63, 0x48, 0x7f, 0x49, 0x05, 0x82, 0x85, 0x18, 0x60, 0xb0, 0x2e,
  808. 0xf6, 0x97, 0xe8, 0xa8, 0xe3, 0x33, 0x67, 0xbb, 0xa8, 0x4c, 0xfc, 0x09, 0xec, 0x6c, 0x4c, 0xfd,
  809. 0x27, 0xd8, 0x3b, 0x76, 0x64, 0x24, 0xe9, 0xc2, 0xd8, 0x91, 0x11, 0x9d, 0x7d, 0xd7, 0xba, 0x4d,
  810. 0x41, 0x6c, 0x7e, 0xef, 0xde, 0x3d, 0xbf, 0xf7, 0xe9, 0xee, 0x80, 0x8e, 0x84, 0x18, 0x45, 0xb8,
  811. 0x2a, 0x93, 0x60, 0x15, 0xa5, 0x14, 0xd2, 0x0f, 0x31, 0x63, 0x3c, 0x4a, 0xdd, 0x44, 0x8a, 0x4c,
  812. 0xd8, 0x50, 0xae, 0xbb, 0x32, 0x09, 0xda, 0x46, 0x5b, 0xac, 0x0c, 0xf2, 0xe1, 0x6a, 0x98, 0x4b,
  813. 0x96, 0x71, 0x11, 0x97, 0x5a, 0x67, 0x0b, 0x2c, 0x0f, 0x33, 0x79, 0xb0, 0x13, 0x0f, 0x85, 0xbd,
  814. 0x0e, 0x0d, 0xa9, 0x80, 0x1f, 0x62, 0xc4, 0x0e, 0x5a, 0xa4, 0x43, 0x56, 0x1a, 0x6b, 0xf7, 0x5c,
  815. 0x6d, 0x67, 0x2c, 0xdc, 0x9e, 0xb6, 0xf0, 0xa0, 0x50, 0xf7, 0x94, 0xd8, 0xd9, 0x06, 0xab, 0x87,
  816. 0x83, 0x7c, 0x54, 0x18, 0x3d, 0x84, 0xeb, 0x69, 0xc6, 0x82, 0x3d, 0x1f, 0xe3, 0x4c, 0x72, 0x4c,
  817. 0x5b, 0xa4, 0x53, 0x5b, 0xb1, 0xbc, 0x66, 0x41, 0x6e, 0x94, 0x9c, 0x7d, 0x17, 0x16, 0xcb, 0xdc,
  818. 0xad, 0xf9, 0x0e, 0x59, 0xb1, 0x3c, 0x8d, 0x9c, 0xaf, 0x04, 0x9a, 0xaf, 0x72, 0x91, 0xb1, 0x4d,
  819. 0xc6, 0xa3, 0x5c, 0xa2, 0xdd, 0x05, 0xd8, 0xe7, 0x22, 0x2a, 0xfe, 0x59, 0x5a, 0x35, 0xd6, 0x1c,
  820. 0xf7, 0xbc, 0xa4, 0x5b, 0x55, 0xbb, 0x6f, 0x8c, 0xd4, 0xab, 0xec, 0x6a, 0x6f, 0x81, 0x75, 0xb6,
  821. 0x60, 0xb7, 0xe0, 0x5a, 0x9a, 0x0f, 0xde, 0x63, 0x90, 0x15, 0x1d, 0x2d, 0xcf, 0x40, 0xbb, 0x03,
  822. 0x8d, 0x10, 0xd3, 0x40, 0xf2, 0x44, 0x09, 0x75, 0xb0, 0x2a, 0xe5, 0x7c, 0x27, 0x70, 0xab, 0x2f,
  823. 0x31, 0x10, 0x71, 0xc8, 0x15, 0x61, 0x42, 0xee, 0x5c, 0x11, 0xf2, 0x71, 0x35, 0xe4, 0x15, 0x9b,
  824. 0xfe, 0x92, 0xf5, 0x5d, 0x35, 0xab, 0x0d, 0xf5, 0xec, 0x20, 0x41, 0x1d, 0xb4, 0xf8, 0xae, 0xe6,
  825. 0x9f, 0xff, 0x67, 0xfe, 0xda, 0x6c, 0xfe, 0x43, 0x02, 0xd0, 0x65, 0xa1, 0x87, 0x1f, 0x72, 0x4c,
  826. 0x33, 0xbb, 0x0f, 0xcb, 0x43, 0x8e, 0x51, 0xe8, 0xcf, 0x84, 0x7f, 0x54, 0x0d, 0x7f, 0xbe, 0xc3,
  827. 0xdd, 0x54, 0xf2, 0xf3, 0xe0, 0x37, 0x86, 0x17, 0x70, 0xda, 0xde, 0x86, 0xa5, 0x8b, 0x12, 0xfb,
  828. 0x36, 0x2c, 0x14, 0x22, 0xdd, 0xa1, 0x04, 0xff, 0x31, 0xea, 0x97, 0xd0, 0xd0, 0x3f, 0x2d, 0x0e,
  829. 0xd5, 0x7d, 0x00, 0x59, 0x42, 0x9f, 0x1b, 0x2f, 0x4b, 0x33, 0x3b, 0xa1, 0xfd, 0x00, 0x9a, 0x29,
  830. 0xca, 0x7d, 0x1e, 0x8f, 0xfc, 0x90, 0x65, 0xcc, 0x18, 0x6a, 0xae, 0xc7, 0x32, 0xe6, 0x7c, 0x21,
  831. 0xd0, 0xf4, 0x30, 0x15, 0xb9, 0x0c, 0xd0, 0x9c, 0x53, 0xa9, 0xb1, 0x5f, 0x99, 0x72, 0xd3, 0x90,
  832. 0xaf, 0xd5, 0xb4, 0xab, 0xa2, 0x98, 0x8d, 0x51, 0x3b, 0x9f, 0x89, 0x5e, 0xb0, 0x31, 0xaa, 0x8e,
  833. 0xe2, 0x63, 0x8c, 0x52, 0x8f, 0xbc, 0x04, 0x97, 0x3b, 0xd6, 0x67, 0x3b, 0x0a, 0xa8, 0x6f, 0x63,
  834. 0x94, 0xd8, 0x4f, 0x60, 0x21, 0xe2, 0xf1, 0x9e, 0x19, 0xfe, 0x9d, 0xea, 0xf0, 0x95, 0xc0, 0xdd,
  835. 0xe5, 0xf1, 0x9e, 0x57, 0x6a, 0xda, 0xeb, 0x50, 0x57, 0xf0, 0xb2, 0x3d, 0x99, 0xb1, 0xb7, 0x97,
  836. 0xa1, 0x96, 0x4b, 0x73, 0xc1, 0xd4, 0xa7, 0xd3, 0x83, 0xe5, 0x5d, 0x11, 0xb0, 0x88, 0x7f, 0xc2,
  837. 0xf0, 0x39, 0xa6, 0x29, 0x1b, 0xa1, 0xba, 0x89, 0x91, 0xe2, 0x4c, 0x7f, 0x8d, 0xd4, 0x39, 0x1b,
  838. 0x97, 0x12, 0x73, 0xce, 0x34, 0xec, 0x86, 0xc7, 0x13, 0x3a, 0xf7, 0x63, 0x42, 0xe7, 0x4e, 0x27,
  839. 0x94, 0xfc, 0x9e, 0x50, 0xf2, 0x79, 0x4a, 0xc9, 0xe1, 0x94, 0x92, 0xa3, 0x29, 0x25, 0xc7, 0x53,
  840. 0x4a, 0x7e, 0x4e, 0x29, 0xf9, 0x35, 0xa5, 0x73, 0xa7, 0x8a, 0x3f, 0xa1, 0xe4, 0xe8, 0x84, 0x12,
  841. 0x58, 0x0a, 0xc4, 0xb8, 0x52, 0xac, 0x7b, 0x73, 0x43, 0xbd, 0x5e, 0xbd, 0xf2, 0xf1, 0xea, 0xab,
  842. 0xe7, 0xa5, 0x4f, 0xde, 0xd6, 0x64, 0x12, 0x7c, 0x9b, 0xaf, 0x79, 0xfd, 0x67, 0x83, 0xc5, 0xe2,
  843. 0xc9, 0x79, 0xfa, 0x27, 0x00, 0x00, 0xff, 0xff, 0x63, 0xe4, 0x76, 0x26, 0xf1, 0x04, 0x00, 0x00,
  844. }
  845. func (this *RetryInfo) Compare(that interface{}) int {
  846. if that == nil {
  847. if this == nil {
  848. return 0
  849. }
  850. return 1
  851. }
  852. that1, ok := that.(*RetryInfo)
  853. if !ok {
  854. that2, ok := that.(RetryInfo)
  855. if ok {
  856. that1 = &that2
  857. } else {
  858. return 1
  859. }
  860. }
  861. if that1 == nil {
  862. if this == nil {
  863. return 0
  864. }
  865. return 1
  866. } else if this == nil {
  867. return -1
  868. }
  869. if c := this.RetryDelay.Compare(that1.RetryDelay); c != 0 {
  870. return c
  871. }
  872. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  873. return c
  874. }
  875. return 0
  876. }
  877. func (this *DebugInfo) Compare(that interface{}) int {
  878. if that == nil {
  879. if this == nil {
  880. return 0
  881. }
  882. return 1
  883. }
  884. that1, ok := that.(*DebugInfo)
  885. if !ok {
  886. that2, ok := that.(DebugInfo)
  887. if ok {
  888. that1 = &that2
  889. } else {
  890. return 1
  891. }
  892. }
  893. if that1 == nil {
  894. if this == nil {
  895. return 0
  896. }
  897. return 1
  898. } else if this == nil {
  899. return -1
  900. }
  901. if len(this.StackEntries) != len(that1.StackEntries) {
  902. if len(this.StackEntries) < len(that1.StackEntries) {
  903. return -1
  904. }
  905. return 1
  906. }
  907. for i := range this.StackEntries {
  908. if this.StackEntries[i] != that1.StackEntries[i] {
  909. if this.StackEntries[i] < that1.StackEntries[i] {
  910. return -1
  911. }
  912. return 1
  913. }
  914. }
  915. if this.Detail != that1.Detail {
  916. if this.Detail < that1.Detail {
  917. return -1
  918. }
  919. return 1
  920. }
  921. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  922. return c
  923. }
  924. return 0
  925. }
  926. func (this *QuotaFailure) Compare(that interface{}) int {
  927. if that == nil {
  928. if this == nil {
  929. return 0
  930. }
  931. return 1
  932. }
  933. that1, ok := that.(*QuotaFailure)
  934. if !ok {
  935. that2, ok := that.(QuotaFailure)
  936. if ok {
  937. that1 = &that2
  938. } else {
  939. return 1
  940. }
  941. }
  942. if that1 == nil {
  943. if this == nil {
  944. return 0
  945. }
  946. return 1
  947. } else if this == nil {
  948. return -1
  949. }
  950. if len(this.Violations) != len(that1.Violations) {
  951. if len(this.Violations) < len(that1.Violations) {
  952. return -1
  953. }
  954. return 1
  955. }
  956. for i := range this.Violations {
  957. if c := this.Violations[i].Compare(that1.Violations[i]); c != 0 {
  958. return c
  959. }
  960. }
  961. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  962. return c
  963. }
  964. return 0
  965. }
  966. func (this *QuotaFailure_Violation) Compare(that interface{}) int {
  967. if that == nil {
  968. if this == nil {
  969. return 0
  970. }
  971. return 1
  972. }
  973. that1, ok := that.(*QuotaFailure_Violation)
  974. if !ok {
  975. that2, ok := that.(QuotaFailure_Violation)
  976. if ok {
  977. that1 = &that2
  978. } else {
  979. return 1
  980. }
  981. }
  982. if that1 == nil {
  983. if this == nil {
  984. return 0
  985. }
  986. return 1
  987. } else if this == nil {
  988. return -1
  989. }
  990. if this.Subject != that1.Subject {
  991. if this.Subject < that1.Subject {
  992. return -1
  993. }
  994. return 1
  995. }
  996. if this.Description != that1.Description {
  997. if this.Description < that1.Description {
  998. return -1
  999. }
  1000. return 1
  1001. }
  1002. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  1003. return c
  1004. }
  1005. return 0
  1006. }
  1007. func (this *PreconditionFailure) Compare(that interface{}) int {
  1008. if that == nil {
  1009. if this == nil {
  1010. return 0
  1011. }
  1012. return 1
  1013. }
  1014. that1, ok := that.(*PreconditionFailure)
  1015. if !ok {
  1016. that2, ok := that.(PreconditionFailure)
  1017. if ok {
  1018. that1 = &that2
  1019. } else {
  1020. return 1
  1021. }
  1022. }
  1023. if that1 == nil {
  1024. if this == nil {
  1025. return 0
  1026. }
  1027. return 1
  1028. } else if this == nil {
  1029. return -1
  1030. }
  1031. if len(this.Violations) != len(that1.Violations) {
  1032. if len(this.Violations) < len(that1.Violations) {
  1033. return -1
  1034. }
  1035. return 1
  1036. }
  1037. for i := range this.Violations {
  1038. if c := this.Violations[i].Compare(that1.Violations[i]); c != 0 {
  1039. return c
  1040. }
  1041. }
  1042. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  1043. return c
  1044. }
  1045. return 0
  1046. }
  1047. func (this *PreconditionFailure_Violation) Compare(that interface{}) int {
  1048. if that == nil {
  1049. if this == nil {
  1050. return 0
  1051. }
  1052. return 1
  1053. }
  1054. that1, ok := that.(*PreconditionFailure_Violation)
  1055. if !ok {
  1056. that2, ok := that.(PreconditionFailure_Violation)
  1057. if ok {
  1058. that1 = &that2
  1059. } else {
  1060. return 1
  1061. }
  1062. }
  1063. if that1 == nil {
  1064. if this == nil {
  1065. return 0
  1066. }
  1067. return 1
  1068. } else if this == nil {
  1069. return -1
  1070. }
  1071. if this.Type != that1.Type {
  1072. if this.Type < that1.Type {
  1073. return -1
  1074. }
  1075. return 1
  1076. }
  1077. if this.Subject != that1.Subject {
  1078. if this.Subject < that1.Subject {
  1079. return -1
  1080. }
  1081. return 1
  1082. }
  1083. if this.Description != that1.Description {
  1084. if this.Description < that1.Description {
  1085. return -1
  1086. }
  1087. return 1
  1088. }
  1089. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  1090. return c
  1091. }
  1092. return 0
  1093. }
  1094. func (this *BadRequest) Compare(that interface{}) int {
  1095. if that == nil {
  1096. if this == nil {
  1097. return 0
  1098. }
  1099. return 1
  1100. }
  1101. that1, ok := that.(*BadRequest)
  1102. if !ok {
  1103. that2, ok := that.(BadRequest)
  1104. if ok {
  1105. that1 = &that2
  1106. } else {
  1107. return 1
  1108. }
  1109. }
  1110. if that1 == nil {
  1111. if this == nil {
  1112. return 0
  1113. }
  1114. return 1
  1115. } else if this == nil {
  1116. return -1
  1117. }
  1118. if len(this.FieldViolations) != len(that1.FieldViolations) {
  1119. if len(this.FieldViolations) < len(that1.FieldViolations) {
  1120. return -1
  1121. }
  1122. return 1
  1123. }
  1124. for i := range this.FieldViolations {
  1125. if c := this.FieldViolations[i].Compare(that1.FieldViolations[i]); c != 0 {
  1126. return c
  1127. }
  1128. }
  1129. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  1130. return c
  1131. }
  1132. return 0
  1133. }
  1134. func (this *BadRequest_FieldViolation) Compare(that interface{}) int {
  1135. if that == nil {
  1136. if this == nil {
  1137. return 0
  1138. }
  1139. return 1
  1140. }
  1141. that1, ok := that.(*BadRequest_FieldViolation)
  1142. if !ok {
  1143. that2, ok := that.(BadRequest_FieldViolation)
  1144. if ok {
  1145. that1 = &that2
  1146. } else {
  1147. return 1
  1148. }
  1149. }
  1150. if that1 == nil {
  1151. if this == nil {
  1152. return 0
  1153. }
  1154. return 1
  1155. } else if this == nil {
  1156. return -1
  1157. }
  1158. if this.Field != that1.Field {
  1159. if this.Field < that1.Field {
  1160. return -1
  1161. }
  1162. return 1
  1163. }
  1164. if this.Description != that1.Description {
  1165. if this.Description < that1.Description {
  1166. return -1
  1167. }
  1168. return 1
  1169. }
  1170. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  1171. return c
  1172. }
  1173. return 0
  1174. }
  1175. func (this *RequestInfo) Compare(that interface{}) int {
  1176. if that == nil {
  1177. if this == nil {
  1178. return 0
  1179. }
  1180. return 1
  1181. }
  1182. that1, ok := that.(*RequestInfo)
  1183. if !ok {
  1184. that2, ok := that.(RequestInfo)
  1185. if ok {
  1186. that1 = &that2
  1187. } else {
  1188. return 1
  1189. }
  1190. }
  1191. if that1 == nil {
  1192. if this == nil {
  1193. return 0
  1194. }
  1195. return 1
  1196. } else if this == nil {
  1197. return -1
  1198. }
  1199. if this.RequestId != that1.RequestId {
  1200. if this.RequestId < that1.RequestId {
  1201. return -1
  1202. }
  1203. return 1
  1204. }
  1205. if this.ServingData != that1.ServingData {
  1206. if this.ServingData < that1.ServingData {
  1207. return -1
  1208. }
  1209. return 1
  1210. }
  1211. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  1212. return c
  1213. }
  1214. return 0
  1215. }
  1216. func (this *ResourceInfo) Compare(that interface{}) int {
  1217. if that == nil {
  1218. if this == nil {
  1219. return 0
  1220. }
  1221. return 1
  1222. }
  1223. that1, ok := that.(*ResourceInfo)
  1224. if !ok {
  1225. that2, ok := that.(ResourceInfo)
  1226. if ok {
  1227. that1 = &that2
  1228. } else {
  1229. return 1
  1230. }
  1231. }
  1232. if that1 == nil {
  1233. if this == nil {
  1234. return 0
  1235. }
  1236. return 1
  1237. } else if this == nil {
  1238. return -1
  1239. }
  1240. if this.ResourceType != that1.ResourceType {
  1241. if this.ResourceType < that1.ResourceType {
  1242. return -1
  1243. }
  1244. return 1
  1245. }
  1246. if this.ResourceName != that1.ResourceName {
  1247. if this.ResourceName < that1.ResourceName {
  1248. return -1
  1249. }
  1250. return 1
  1251. }
  1252. if this.Owner != that1.Owner {
  1253. if this.Owner < that1.Owner {
  1254. return -1
  1255. }
  1256. return 1
  1257. }
  1258. if this.Description != that1.Description {
  1259. if this.Description < that1.Description {
  1260. return -1
  1261. }
  1262. return 1
  1263. }
  1264. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  1265. return c
  1266. }
  1267. return 0
  1268. }
  1269. func (this *Help) Compare(that interface{}) int {
  1270. if that == nil {
  1271. if this == nil {
  1272. return 0
  1273. }
  1274. return 1
  1275. }
  1276. that1, ok := that.(*Help)
  1277. if !ok {
  1278. that2, ok := that.(Help)
  1279. if ok {
  1280. that1 = &that2
  1281. } else {
  1282. return 1
  1283. }
  1284. }
  1285. if that1 == nil {
  1286. if this == nil {
  1287. return 0
  1288. }
  1289. return 1
  1290. } else if this == nil {
  1291. return -1
  1292. }
  1293. if len(this.Links) != len(that1.Links) {
  1294. if len(this.Links) < len(that1.Links) {
  1295. return -1
  1296. }
  1297. return 1
  1298. }
  1299. for i := range this.Links {
  1300. if c := this.Links[i].Compare(that1.Links[i]); c != 0 {
  1301. return c
  1302. }
  1303. }
  1304. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  1305. return c
  1306. }
  1307. return 0
  1308. }
  1309. func (this *Help_Link) Compare(that interface{}) int {
  1310. if that == nil {
  1311. if this == nil {
  1312. return 0
  1313. }
  1314. return 1
  1315. }
  1316. that1, ok := that.(*Help_Link)
  1317. if !ok {
  1318. that2, ok := that.(Help_Link)
  1319. if ok {
  1320. that1 = &that2
  1321. } else {
  1322. return 1
  1323. }
  1324. }
  1325. if that1 == nil {
  1326. if this == nil {
  1327. return 0
  1328. }
  1329. return 1
  1330. } else if this == nil {
  1331. return -1
  1332. }
  1333. if this.Description != that1.Description {
  1334. if this.Description < that1.Description {
  1335. return -1
  1336. }
  1337. return 1
  1338. }
  1339. if this.Url != that1.Url {
  1340. if this.Url < that1.Url {
  1341. return -1
  1342. }
  1343. return 1
  1344. }
  1345. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  1346. return c
  1347. }
  1348. return 0
  1349. }
  1350. func (this *LocalizedMessage) Compare(that interface{}) int {
  1351. if that == nil {
  1352. if this == nil {
  1353. return 0
  1354. }
  1355. return 1
  1356. }
  1357. that1, ok := that.(*LocalizedMessage)
  1358. if !ok {
  1359. that2, ok := that.(LocalizedMessage)
  1360. if ok {
  1361. that1 = &that2
  1362. } else {
  1363. return 1
  1364. }
  1365. }
  1366. if that1 == nil {
  1367. if this == nil {
  1368. return 0
  1369. }
  1370. return 1
  1371. } else if this == nil {
  1372. return -1
  1373. }
  1374. if this.Locale != that1.Locale {
  1375. if this.Locale < that1.Locale {
  1376. return -1
  1377. }
  1378. return 1
  1379. }
  1380. if this.Message != that1.Message {
  1381. if this.Message < that1.Message {
  1382. return -1
  1383. }
  1384. return 1
  1385. }
  1386. if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 {
  1387. return c
  1388. }
  1389. return 0
  1390. }
  1391. func (this *RetryInfo) Equal(that interface{}) bool {
  1392. if that == nil {
  1393. return this == nil
  1394. }
  1395. that1, ok := that.(*RetryInfo)
  1396. if !ok {
  1397. that2, ok := that.(RetryInfo)
  1398. if ok {
  1399. that1 = &that2
  1400. } else {
  1401. return false
  1402. }
  1403. }
  1404. if that1 == nil {
  1405. return this == nil
  1406. } else if this == nil {
  1407. return false
  1408. }
  1409. if !this.RetryDelay.Equal(that1.RetryDelay) {
  1410. return false
  1411. }
  1412. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1413. return false
  1414. }
  1415. return true
  1416. }
  1417. func (this *DebugInfo) Equal(that interface{}) bool {
  1418. if that == nil {
  1419. return this == nil
  1420. }
  1421. that1, ok := that.(*DebugInfo)
  1422. if !ok {
  1423. that2, ok := that.(DebugInfo)
  1424. if ok {
  1425. that1 = &that2
  1426. } else {
  1427. return false
  1428. }
  1429. }
  1430. if that1 == nil {
  1431. return this == nil
  1432. } else if this == nil {
  1433. return false
  1434. }
  1435. if len(this.StackEntries) != len(that1.StackEntries) {
  1436. return false
  1437. }
  1438. for i := range this.StackEntries {
  1439. if this.StackEntries[i] != that1.StackEntries[i] {
  1440. return false
  1441. }
  1442. }
  1443. if this.Detail != that1.Detail {
  1444. return false
  1445. }
  1446. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1447. return false
  1448. }
  1449. return true
  1450. }
  1451. func (this *QuotaFailure) Equal(that interface{}) bool {
  1452. if that == nil {
  1453. return this == nil
  1454. }
  1455. that1, ok := that.(*QuotaFailure)
  1456. if !ok {
  1457. that2, ok := that.(QuotaFailure)
  1458. if ok {
  1459. that1 = &that2
  1460. } else {
  1461. return false
  1462. }
  1463. }
  1464. if that1 == nil {
  1465. return this == nil
  1466. } else if this == nil {
  1467. return false
  1468. }
  1469. if len(this.Violations) != len(that1.Violations) {
  1470. return false
  1471. }
  1472. for i := range this.Violations {
  1473. if !this.Violations[i].Equal(that1.Violations[i]) {
  1474. return false
  1475. }
  1476. }
  1477. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1478. return false
  1479. }
  1480. return true
  1481. }
  1482. func (this *QuotaFailure_Violation) Equal(that interface{}) bool {
  1483. if that == nil {
  1484. return this == nil
  1485. }
  1486. that1, ok := that.(*QuotaFailure_Violation)
  1487. if !ok {
  1488. that2, ok := that.(QuotaFailure_Violation)
  1489. if ok {
  1490. that1 = &that2
  1491. } else {
  1492. return false
  1493. }
  1494. }
  1495. if that1 == nil {
  1496. return this == nil
  1497. } else if this == nil {
  1498. return false
  1499. }
  1500. if this.Subject != that1.Subject {
  1501. return false
  1502. }
  1503. if this.Description != that1.Description {
  1504. return false
  1505. }
  1506. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1507. return false
  1508. }
  1509. return true
  1510. }
  1511. func (this *PreconditionFailure) Equal(that interface{}) bool {
  1512. if that == nil {
  1513. return this == nil
  1514. }
  1515. that1, ok := that.(*PreconditionFailure)
  1516. if !ok {
  1517. that2, ok := that.(PreconditionFailure)
  1518. if ok {
  1519. that1 = &that2
  1520. } else {
  1521. return false
  1522. }
  1523. }
  1524. if that1 == nil {
  1525. return this == nil
  1526. } else if this == nil {
  1527. return false
  1528. }
  1529. if len(this.Violations) != len(that1.Violations) {
  1530. return false
  1531. }
  1532. for i := range this.Violations {
  1533. if !this.Violations[i].Equal(that1.Violations[i]) {
  1534. return false
  1535. }
  1536. }
  1537. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1538. return false
  1539. }
  1540. return true
  1541. }
  1542. func (this *PreconditionFailure_Violation) Equal(that interface{}) bool {
  1543. if that == nil {
  1544. return this == nil
  1545. }
  1546. that1, ok := that.(*PreconditionFailure_Violation)
  1547. if !ok {
  1548. that2, ok := that.(PreconditionFailure_Violation)
  1549. if ok {
  1550. that1 = &that2
  1551. } else {
  1552. return false
  1553. }
  1554. }
  1555. if that1 == nil {
  1556. return this == nil
  1557. } else if this == nil {
  1558. return false
  1559. }
  1560. if this.Type != that1.Type {
  1561. return false
  1562. }
  1563. if this.Subject != that1.Subject {
  1564. return false
  1565. }
  1566. if this.Description != that1.Description {
  1567. return false
  1568. }
  1569. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1570. return false
  1571. }
  1572. return true
  1573. }
  1574. func (this *BadRequest) Equal(that interface{}) bool {
  1575. if that == nil {
  1576. return this == nil
  1577. }
  1578. that1, ok := that.(*BadRequest)
  1579. if !ok {
  1580. that2, ok := that.(BadRequest)
  1581. if ok {
  1582. that1 = &that2
  1583. } else {
  1584. return false
  1585. }
  1586. }
  1587. if that1 == nil {
  1588. return this == nil
  1589. } else if this == nil {
  1590. return false
  1591. }
  1592. if len(this.FieldViolations) != len(that1.FieldViolations) {
  1593. return false
  1594. }
  1595. for i := range this.FieldViolations {
  1596. if !this.FieldViolations[i].Equal(that1.FieldViolations[i]) {
  1597. return false
  1598. }
  1599. }
  1600. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1601. return false
  1602. }
  1603. return true
  1604. }
  1605. func (this *BadRequest_FieldViolation) Equal(that interface{}) bool {
  1606. if that == nil {
  1607. return this == nil
  1608. }
  1609. that1, ok := that.(*BadRequest_FieldViolation)
  1610. if !ok {
  1611. that2, ok := that.(BadRequest_FieldViolation)
  1612. if ok {
  1613. that1 = &that2
  1614. } else {
  1615. return false
  1616. }
  1617. }
  1618. if that1 == nil {
  1619. return this == nil
  1620. } else if this == nil {
  1621. return false
  1622. }
  1623. if this.Field != that1.Field {
  1624. return false
  1625. }
  1626. if this.Description != that1.Description {
  1627. return false
  1628. }
  1629. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1630. return false
  1631. }
  1632. return true
  1633. }
  1634. func (this *RequestInfo) Equal(that interface{}) bool {
  1635. if that == nil {
  1636. return this == nil
  1637. }
  1638. that1, ok := that.(*RequestInfo)
  1639. if !ok {
  1640. that2, ok := that.(RequestInfo)
  1641. if ok {
  1642. that1 = &that2
  1643. } else {
  1644. return false
  1645. }
  1646. }
  1647. if that1 == nil {
  1648. return this == nil
  1649. } else if this == nil {
  1650. return false
  1651. }
  1652. if this.RequestId != that1.RequestId {
  1653. return false
  1654. }
  1655. if this.ServingData != that1.ServingData {
  1656. return false
  1657. }
  1658. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1659. return false
  1660. }
  1661. return true
  1662. }
  1663. func (this *ResourceInfo) Equal(that interface{}) bool {
  1664. if that == nil {
  1665. return this == nil
  1666. }
  1667. that1, ok := that.(*ResourceInfo)
  1668. if !ok {
  1669. that2, ok := that.(ResourceInfo)
  1670. if ok {
  1671. that1 = &that2
  1672. } else {
  1673. return false
  1674. }
  1675. }
  1676. if that1 == nil {
  1677. return this == nil
  1678. } else if this == nil {
  1679. return false
  1680. }
  1681. if this.ResourceType != that1.ResourceType {
  1682. return false
  1683. }
  1684. if this.ResourceName != that1.ResourceName {
  1685. return false
  1686. }
  1687. if this.Owner != that1.Owner {
  1688. return false
  1689. }
  1690. if this.Description != that1.Description {
  1691. return false
  1692. }
  1693. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1694. return false
  1695. }
  1696. return true
  1697. }
  1698. func (this *Help) Equal(that interface{}) bool {
  1699. if that == nil {
  1700. return this == nil
  1701. }
  1702. that1, ok := that.(*Help)
  1703. if !ok {
  1704. that2, ok := that.(Help)
  1705. if ok {
  1706. that1 = &that2
  1707. } else {
  1708. return false
  1709. }
  1710. }
  1711. if that1 == nil {
  1712. return this == nil
  1713. } else if this == nil {
  1714. return false
  1715. }
  1716. if len(this.Links) != len(that1.Links) {
  1717. return false
  1718. }
  1719. for i := range this.Links {
  1720. if !this.Links[i].Equal(that1.Links[i]) {
  1721. return false
  1722. }
  1723. }
  1724. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1725. return false
  1726. }
  1727. return true
  1728. }
  1729. func (this *Help_Link) Equal(that interface{}) bool {
  1730. if that == nil {
  1731. return this == nil
  1732. }
  1733. that1, ok := that.(*Help_Link)
  1734. if !ok {
  1735. that2, ok := that.(Help_Link)
  1736. if ok {
  1737. that1 = &that2
  1738. } else {
  1739. return false
  1740. }
  1741. }
  1742. if that1 == nil {
  1743. return this == nil
  1744. } else if this == nil {
  1745. return false
  1746. }
  1747. if this.Description != that1.Description {
  1748. return false
  1749. }
  1750. if this.Url != that1.Url {
  1751. return false
  1752. }
  1753. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1754. return false
  1755. }
  1756. return true
  1757. }
  1758. func (this *LocalizedMessage) Equal(that interface{}) bool {
  1759. if that == nil {
  1760. return this == nil
  1761. }
  1762. that1, ok := that.(*LocalizedMessage)
  1763. if !ok {
  1764. that2, ok := that.(LocalizedMessage)
  1765. if ok {
  1766. that1 = &that2
  1767. } else {
  1768. return false
  1769. }
  1770. }
  1771. if that1 == nil {
  1772. return this == nil
  1773. } else if this == nil {
  1774. return false
  1775. }
  1776. if this.Locale != that1.Locale {
  1777. return false
  1778. }
  1779. if this.Message != that1.Message {
  1780. return false
  1781. }
  1782. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  1783. return false
  1784. }
  1785. return true
  1786. }
  1787. func (this *RetryInfo) GoString() string {
  1788. if this == nil {
  1789. return "nil"
  1790. }
  1791. s := make([]string, 0, 5)
  1792. s = append(s, "&rpc.RetryInfo{")
  1793. if this.RetryDelay != nil {
  1794. s = append(s, "RetryDelay: "+fmt.Sprintf("%#v", this.RetryDelay)+",\n")
  1795. }
  1796. if this.XXX_unrecognized != nil {
  1797. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1798. }
  1799. s = append(s, "}")
  1800. return strings.Join(s, "")
  1801. }
  1802. func (this *DebugInfo) GoString() string {
  1803. if this == nil {
  1804. return "nil"
  1805. }
  1806. s := make([]string, 0, 6)
  1807. s = append(s, "&rpc.DebugInfo{")
  1808. s = append(s, "StackEntries: "+fmt.Sprintf("%#v", this.StackEntries)+",\n")
  1809. s = append(s, "Detail: "+fmt.Sprintf("%#v", this.Detail)+",\n")
  1810. if this.XXX_unrecognized != nil {
  1811. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1812. }
  1813. s = append(s, "}")
  1814. return strings.Join(s, "")
  1815. }
  1816. func (this *QuotaFailure) GoString() string {
  1817. if this == nil {
  1818. return "nil"
  1819. }
  1820. s := make([]string, 0, 5)
  1821. s = append(s, "&rpc.QuotaFailure{")
  1822. if this.Violations != nil {
  1823. s = append(s, "Violations: "+fmt.Sprintf("%#v", this.Violations)+",\n")
  1824. }
  1825. if this.XXX_unrecognized != nil {
  1826. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1827. }
  1828. s = append(s, "}")
  1829. return strings.Join(s, "")
  1830. }
  1831. func (this *QuotaFailure_Violation) GoString() string {
  1832. if this == nil {
  1833. return "nil"
  1834. }
  1835. s := make([]string, 0, 6)
  1836. s = append(s, "&rpc.QuotaFailure_Violation{")
  1837. s = append(s, "Subject: "+fmt.Sprintf("%#v", this.Subject)+",\n")
  1838. s = append(s, "Description: "+fmt.Sprintf("%#v", this.Description)+",\n")
  1839. if this.XXX_unrecognized != nil {
  1840. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1841. }
  1842. s = append(s, "}")
  1843. return strings.Join(s, "")
  1844. }
  1845. func (this *PreconditionFailure) GoString() string {
  1846. if this == nil {
  1847. return "nil"
  1848. }
  1849. s := make([]string, 0, 5)
  1850. s = append(s, "&rpc.PreconditionFailure{")
  1851. if this.Violations != nil {
  1852. s = append(s, "Violations: "+fmt.Sprintf("%#v", this.Violations)+",\n")
  1853. }
  1854. if this.XXX_unrecognized != nil {
  1855. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1856. }
  1857. s = append(s, "}")
  1858. return strings.Join(s, "")
  1859. }
  1860. func (this *PreconditionFailure_Violation) GoString() string {
  1861. if this == nil {
  1862. return "nil"
  1863. }
  1864. s := make([]string, 0, 7)
  1865. s = append(s, "&rpc.PreconditionFailure_Violation{")
  1866. s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n")
  1867. s = append(s, "Subject: "+fmt.Sprintf("%#v", this.Subject)+",\n")
  1868. s = append(s, "Description: "+fmt.Sprintf("%#v", this.Description)+",\n")
  1869. if this.XXX_unrecognized != nil {
  1870. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1871. }
  1872. s = append(s, "}")
  1873. return strings.Join(s, "")
  1874. }
  1875. func (this *BadRequest) GoString() string {
  1876. if this == nil {
  1877. return "nil"
  1878. }
  1879. s := make([]string, 0, 5)
  1880. s = append(s, "&rpc.BadRequest{")
  1881. if this.FieldViolations != nil {
  1882. s = append(s, "FieldViolations: "+fmt.Sprintf("%#v", this.FieldViolations)+",\n")
  1883. }
  1884. if this.XXX_unrecognized != nil {
  1885. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1886. }
  1887. s = append(s, "}")
  1888. return strings.Join(s, "")
  1889. }
  1890. func (this *BadRequest_FieldViolation) GoString() string {
  1891. if this == nil {
  1892. return "nil"
  1893. }
  1894. s := make([]string, 0, 6)
  1895. s = append(s, "&rpc.BadRequest_FieldViolation{")
  1896. s = append(s, "Field: "+fmt.Sprintf("%#v", this.Field)+",\n")
  1897. s = append(s, "Description: "+fmt.Sprintf("%#v", this.Description)+",\n")
  1898. if this.XXX_unrecognized != nil {
  1899. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1900. }
  1901. s = append(s, "}")
  1902. return strings.Join(s, "")
  1903. }
  1904. func (this *RequestInfo) GoString() string {
  1905. if this == nil {
  1906. return "nil"
  1907. }
  1908. s := make([]string, 0, 6)
  1909. s = append(s, "&rpc.RequestInfo{")
  1910. s = append(s, "RequestId: "+fmt.Sprintf("%#v", this.RequestId)+",\n")
  1911. s = append(s, "ServingData: "+fmt.Sprintf("%#v", this.ServingData)+",\n")
  1912. if this.XXX_unrecognized != nil {
  1913. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1914. }
  1915. s = append(s, "}")
  1916. return strings.Join(s, "")
  1917. }
  1918. func (this *ResourceInfo) GoString() string {
  1919. if this == nil {
  1920. return "nil"
  1921. }
  1922. s := make([]string, 0, 8)
  1923. s = append(s, "&rpc.ResourceInfo{")
  1924. s = append(s, "ResourceType: "+fmt.Sprintf("%#v", this.ResourceType)+",\n")
  1925. s = append(s, "ResourceName: "+fmt.Sprintf("%#v", this.ResourceName)+",\n")
  1926. s = append(s, "Owner: "+fmt.Sprintf("%#v", this.Owner)+",\n")
  1927. s = append(s, "Description: "+fmt.Sprintf("%#v", this.Description)+",\n")
  1928. if this.XXX_unrecognized != nil {
  1929. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1930. }
  1931. s = append(s, "}")
  1932. return strings.Join(s, "")
  1933. }
  1934. func (this *Help) GoString() string {
  1935. if this == nil {
  1936. return "nil"
  1937. }
  1938. s := make([]string, 0, 5)
  1939. s = append(s, "&rpc.Help{")
  1940. if this.Links != nil {
  1941. s = append(s, "Links: "+fmt.Sprintf("%#v", this.Links)+",\n")
  1942. }
  1943. if this.XXX_unrecognized != nil {
  1944. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1945. }
  1946. s = append(s, "}")
  1947. return strings.Join(s, "")
  1948. }
  1949. func (this *Help_Link) GoString() string {
  1950. if this == nil {
  1951. return "nil"
  1952. }
  1953. s := make([]string, 0, 6)
  1954. s = append(s, "&rpc.Help_Link{")
  1955. s = append(s, "Description: "+fmt.Sprintf("%#v", this.Description)+",\n")
  1956. s = append(s, "Url: "+fmt.Sprintf("%#v", this.Url)+",\n")
  1957. if this.XXX_unrecognized != nil {
  1958. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1959. }
  1960. s = append(s, "}")
  1961. return strings.Join(s, "")
  1962. }
  1963. func (this *LocalizedMessage) GoString() string {
  1964. if this == nil {
  1965. return "nil"
  1966. }
  1967. s := make([]string, 0, 6)
  1968. s = append(s, "&rpc.LocalizedMessage{")
  1969. s = append(s, "Locale: "+fmt.Sprintf("%#v", this.Locale)+",\n")
  1970. s = append(s, "Message: "+fmt.Sprintf("%#v", this.Message)+",\n")
  1971. if this.XXX_unrecognized != nil {
  1972. s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n")
  1973. }
  1974. s = append(s, "}")
  1975. return strings.Join(s, "")
  1976. }
  1977. func valueToGoStringErrorDetails(v interface{}, typ string) string {
  1978. rv := reflect.ValueOf(v)
  1979. if rv.IsNil() {
  1980. return "nil"
  1981. }
  1982. pv := reflect.Indirect(rv).Interface()
  1983. return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
  1984. }
  1985. func (m *RetryInfo) Marshal() (dAtA []byte, err error) {
  1986. size := m.Size()
  1987. dAtA = make([]byte, size)
  1988. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1989. if err != nil {
  1990. return nil, err
  1991. }
  1992. return dAtA[:n], nil
  1993. }
  1994. func (m *RetryInfo) MarshalTo(dAtA []byte) (int, error) {
  1995. size := m.Size()
  1996. return m.MarshalToSizedBuffer(dAtA[:size])
  1997. }
  1998. func (m *RetryInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1999. i := len(dAtA)
  2000. _ = i
  2001. var l int
  2002. _ = l
  2003. if m.XXX_unrecognized != nil {
  2004. i -= len(m.XXX_unrecognized)
  2005. copy(dAtA[i:], m.XXX_unrecognized)
  2006. }
  2007. if m.RetryDelay != nil {
  2008. {
  2009. size, err := m.RetryDelay.MarshalToSizedBuffer(dAtA[:i])
  2010. if err != nil {
  2011. return 0, err
  2012. }
  2013. i -= size
  2014. i = encodeVarintErrorDetails(dAtA, i, uint64(size))
  2015. }
  2016. i--
  2017. dAtA[i] = 0xa
  2018. }
  2019. return len(dAtA) - i, nil
  2020. }
  2021. func (m *DebugInfo) Marshal() (dAtA []byte, err error) {
  2022. size := m.Size()
  2023. dAtA = make([]byte, size)
  2024. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2025. if err != nil {
  2026. return nil, err
  2027. }
  2028. return dAtA[:n], nil
  2029. }
  2030. func (m *DebugInfo) MarshalTo(dAtA []byte) (int, error) {
  2031. size := m.Size()
  2032. return m.MarshalToSizedBuffer(dAtA[:size])
  2033. }
  2034. func (m *DebugInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2035. i := len(dAtA)
  2036. _ = i
  2037. var l int
  2038. _ = l
  2039. if m.XXX_unrecognized != nil {
  2040. i -= len(m.XXX_unrecognized)
  2041. copy(dAtA[i:], m.XXX_unrecognized)
  2042. }
  2043. if len(m.Detail) > 0 {
  2044. i -= len(m.Detail)
  2045. copy(dAtA[i:], m.Detail)
  2046. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Detail)))
  2047. i--
  2048. dAtA[i] = 0x12
  2049. }
  2050. if len(m.StackEntries) > 0 {
  2051. for iNdEx := len(m.StackEntries) - 1; iNdEx >= 0; iNdEx-- {
  2052. i -= len(m.StackEntries[iNdEx])
  2053. copy(dAtA[i:], m.StackEntries[iNdEx])
  2054. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.StackEntries[iNdEx])))
  2055. i--
  2056. dAtA[i] = 0xa
  2057. }
  2058. }
  2059. return len(dAtA) - i, nil
  2060. }
  2061. func (m *QuotaFailure) Marshal() (dAtA []byte, err error) {
  2062. size := m.Size()
  2063. dAtA = make([]byte, size)
  2064. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2065. if err != nil {
  2066. return nil, err
  2067. }
  2068. return dAtA[:n], nil
  2069. }
  2070. func (m *QuotaFailure) MarshalTo(dAtA []byte) (int, error) {
  2071. size := m.Size()
  2072. return m.MarshalToSizedBuffer(dAtA[:size])
  2073. }
  2074. func (m *QuotaFailure) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2075. i := len(dAtA)
  2076. _ = i
  2077. var l int
  2078. _ = l
  2079. if m.XXX_unrecognized != nil {
  2080. i -= len(m.XXX_unrecognized)
  2081. copy(dAtA[i:], m.XXX_unrecognized)
  2082. }
  2083. if len(m.Violations) > 0 {
  2084. for iNdEx := len(m.Violations) - 1; iNdEx >= 0; iNdEx-- {
  2085. {
  2086. size, err := m.Violations[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2087. if err != nil {
  2088. return 0, err
  2089. }
  2090. i -= size
  2091. i = encodeVarintErrorDetails(dAtA, i, uint64(size))
  2092. }
  2093. i--
  2094. dAtA[i] = 0xa
  2095. }
  2096. }
  2097. return len(dAtA) - i, nil
  2098. }
  2099. func (m *QuotaFailure_Violation) Marshal() (dAtA []byte, err error) {
  2100. size := m.Size()
  2101. dAtA = make([]byte, size)
  2102. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2103. if err != nil {
  2104. return nil, err
  2105. }
  2106. return dAtA[:n], nil
  2107. }
  2108. func (m *QuotaFailure_Violation) MarshalTo(dAtA []byte) (int, error) {
  2109. size := m.Size()
  2110. return m.MarshalToSizedBuffer(dAtA[:size])
  2111. }
  2112. func (m *QuotaFailure_Violation) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2113. i := len(dAtA)
  2114. _ = i
  2115. var l int
  2116. _ = l
  2117. if m.XXX_unrecognized != nil {
  2118. i -= len(m.XXX_unrecognized)
  2119. copy(dAtA[i:], m.XXX_unrecognized)
  2120. }
  2121. if len(m.Description) > 0 {
  2122. i -= len(m.Description)
  2123. copy(dAtA[i:], m.Description)
  2124. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Description)))
  2125. i--
  2126. dAtA[i] = 0x12
  2127. }
  2128. if len(m.Subject) > 0 {
  2129. i -= len(m.Subject)
  2130. copy(dAtA[i:], m.Subject)
  2131. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Subject)))
  2132. i--
  2133. dAtA[i] = 0xa
  2134. }
  2135. return len(dAtA) - i, nil
  2136. }
  2137. func (m *PreconditionFailure) Marshal() (dAtA []byte, err error) {
  2138. size := m.Size()
  2139. dAtA = make([]byte, size)
  2140. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2141. if err != nil {
  2142. return nil, err
  2143. }
  2144. return dAtA[:n], nil
  2145. }
  2146. func (m *PreconditionFailure) MarshalTo(dAtA []byte) (int, error) {
  2147. size := m.Size()
  2148. return m.MarshalToSizedBuffer(dAtA[:size])
  2149. }
  2150. func (m *PreconditionFailure) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2151. i := len(dAtA)
  2152. _ = i
  2153. var l int
  2154. _ = l
  2155. if m.XXX_unrecognized != nil {
  2156. i -= len(m.XXX_unrecognized)
  2157. copy(dAtA[i:], m.XXX_unrecognized)
  2158. }
  2159. if len(m.Violations) > 0 {
  2160. for iNdEx := len(m.Violations) - 1; iNdEx >= 0; iNdEx-- {
  2161. {
  2162. size, err := m.Violations[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2163. if err != nil {
  2164. return 0, err
  2165. }
  2166. i -= size
  2167. i = encodeVarintErrorDetails(dAtA, i, uint64(size))
  2168. }
  2169. i--
  2170. dAtA[i] = 0xa
  2171. }
  2172. }
  2173. return len(dAtA) - i, nil
  2174. }
  2175. func (m *PreconditionFailure_Violation) Marshal() (dAtA []byte, err error) {
  2176. size := m.Size()
  2177. dAtA = make([]byte, size)
  2178. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2179. if err != nil {
  2180. return nil, err
  2181. }
  2182. return dAtA[:n], nil
  2183. }
  2184. func (m *PreconditionFailure_Violation) MarshalTo(dAtA []byte) (int, error) {
  2185. size := m.Size()
  2186. return m.MarshalToSizedBuffer(dAtA[:size])
  2187. }
  2188. func (m *PreconditionFailure_Violation) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2189. i := len(dAtA)
  2190. _ = i
  2191. var l int
  2192. _ = l
  2193. if m.XXX_unrecognized != nil {
  2194. i -= len(m.XXX_unrecognized)
  2195. copy(dAtA[i:], m.XXX_unrecognized)
  2196. }
  2197. if len(m.Description) > 0 {
  2198. i -= len(m.Description)
  2199. copy(dAtA[i:], m.Description)
  2200. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Description)))
  2201. i--
  2202. dAtA[i] = 0x1a
  2203. }
  2204. if len(m.Subject) > 0 {
  2205. i -= len(m.Subject)
  2206. copy(dAtA[i:], m.Subject)
  2207. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Subject)))
  2208. i--
  2209. dAtA[i] = 0x12
  2210. }
  2211. if len(m.Type) > 0 {
  2212. i -= len(m.Type)
  2213. copy(dAtA[i:], m.Type)
  2214. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Type)))
  2215. i--
  2216. dAtA[i] = 0xa
  2217. }
  2218. return len(dAtA) - i, nil
  2219. }
  2220. func (m *BadRequest) Marshal() (dAtA []byte, err error) {
  2221. size := m.Size()
  2222. dAtA = make([]byte, size)
  2223. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2224. if err != nil {
  2225. return nil, err
  2226. }
  2227. return dAtA[:n], nil
  2228. }
  2229. func (m *BadRequest) MarshalTo(dAtA []byte) (int, error) {
  2230. size := m.Size()
  2231. return m.MarshalToSizedBuffer(dAtA[:size])
  2232. }
  2233. func (m *BadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2234. i := len(dAtA)
  2235. _ = i
  2236. var l int
  2237. _ = l
  2238. if m.XXX_unrecognized != nil {
  2239. i -= len(m.XXX_unrecognized)
  2240. copy(dAtA[i:], m.XXX_unrecognized)
  2241. }
  2242. if len(m.FieldViolations) > 0 {
  2243. for iNdEx := len(m.FieldViolations) - 1; iNdEx >= 0; iNdEx-- {
  2244. {
  2245. size, err := m.FieldViolations[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2246. if err != nil {
  2247. return 0, err
  2248. }
  2249. i -= size
  2250. i = encodeVarintErrorDetails(dAtA, i, uint64(size))
  2251. }
  2252. i--
  2253. dAtA[i] = 0xa
  2254. }
  2255. }
  2256. return len(dAtA) - i, nil
  2257. }
  2258. func (m *BadRequest_FieldViolation) Marshal() (dAtA []byte, err error) {
  2259. size := m.Size()
  2260. dAtA = make([]byte, size)
  2261. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2262. if err != nil {
  2263. return nil, err
  2264. }
  2265. return dAtA[:n], nil
  2266. }
  2267. func (m *BadRequest_FieldViolation) MarshalTo(dAtA []byte) (int, error) {
  2268. size := m.Size()
  2269. return m.MarshalToSizedBuffer(dAtA[:size])
  2270. }
  2271. func (m *BadRequest_FieldViolation) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2272. i := len(dAtA)
  2273. _ = i
  2274. var l int
  2275. _ = l
  2276. if m.XXX_unrecognized != nil {
  2277. i -= len(m.XXX_unrecognized)
  2278. copy(dAtA[i:], m.XXX_unrecognized)
  2279. }
  2280. if len(m.Description) > 0 {
  2281. i -= len(m.Description)
  2282. copy(dAtA[i:], m.Description)
  2283. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Description)))
  2284. i--
  2285. dAtA[i] = 0x12
  2286. }
  2287. if len(m.Field) > 0 {
  2288. i -= len(m.Field)
  2289. copy(dAtA[i:], m.Field)
  2290. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Field)))
  2291. i--
  2292. dAtA[i] = 0xa
  2293. }
  2294. return len(dAtA) - i, nil
  2295. }
  2296. func (m *RequestInfo) Marshal() (dAtA []byte, err error) {
  2297. size := m.Size()
  2298. dAtA = make([]byte, size)
  2299. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2300. if err != nil {
  2301. return nil, err
  2302. }
  2303. return dAtA[:n], nil
  2304. }
  2305. func (m *RequestInfo) MarshalTo(dAtA []byte) (int, error) {
  2306. size := m.Size()
  2307. return m.MarshalToSizedBuffer(dAtA[:size])
  2308. }
  2309. func (m *RequestInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2310. i := len(dAtA)
  2311. _ = i
  2312. var l int
  2313. _ = l
  2314. if m.XXX_unrecognized != nil {
  2315. i -= len(m.XXX_unrecognized)
  2316. copy(dAtA[i:], m.XXX_unrecognized)
  2317. }
  2318. if len(m.ServingData) > 0 {
  2319. i -= len(m.ServingData)
  2320. copy(dAtA[i:], m.ServingData)
  2321. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.ServingData)))
  2322. i--
  2323. dAtA[i] = 0x12
  2324. }
  2325. if len(m.RequestId) > 0 {
  2326. i -= len(m.RequestId)
  2327. copy(dAtA[i:], m.RequestId)
  2328. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.RequestId)))
  2329. i--
  2330. dAtA[i] = 0xa
  2331. }
  2332. return len(dAtA) - i, nil
  2333. }
  2334. func (m *ResourceInfo) Marshal() (dAtA []byte, err error) {
  2335. size := m.Size()
  2336. dAtA = make([]byte, size)
  2337. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2338. if err != nil {
  2339. return nil, err
  2340. }
  2341. return dAtA[:n], nil
  2342. }
  2343. func (m *ResourceInfo) MarshalTo(dAtA []byte) (int, error) {
  2344. size := m.Size()
  2345. return m.MarshalToSizedBuffer(dAtA[:size])
  2346. }
  2347. func (m *ResourceInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2348. i := len(dAtA)
  2349. _ = i
  2350. var l int
  2351. _ = l
  2352. if m.XXX_unrecognized != nil {
  2353. i -= len(m.XXX_unrecognized)
  2354. copy(dAtA[i:], m.XXX_unrecognized)
  2355. }
  2356. if len(m.Description) > 0 {
  2357. i -= len(m.Description)
  2358. copy(dAtA[i:], m.Description)
  2359. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Description)))
  2360. i--
  2361. dAtA[i] = 0x22
  2362. }
  2363. if len(m.Owner) > 0 {
  2364. i -= len(m.Owner)
  2365. copy(dAtA[i:], m.Owner)
  2366. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Owner)))
  2367. i--
  2368. dAtA[i] = 0x1a
  2369. }
  2370. if len(m.ResourceName) > 0 {
  2371. i -= len(m.ResourceName)
  2372. copy(dAtA[i:], m.ResourceName)
  2373. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.ResourceName)))
  2374. i--
  2375. dAtA[i] = 0x12
  2376. }
  2377. if len(m.ResourceType) > 0 {
  2378. i -= len(m.ResourceType)
  2379. copy(dAtA[i:], m.ResourceType)
  2380. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.ResourceType)))
  2381. i--
  2382. dAtA[i] = 0xa
  2383. }
  2384. return len(dAtA) - i, nil
  2385. }
  2386. func (m *Help) Marshal() (dAtA []byte, err error) {
  2387. size := m.Size()
  2388. dAtA = make([]byte, size)
  2389. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2390. if err != nil {
  2391. return nil, err
  2392. }
  2393. return dAtA[:n], nil
  2394. }
  2395. func (m *Help) MarshalTo(dAtA []byte) (int, error) {
  2396. size := m.Size()
  2397. return m.MarshalToSizedBuffer(dAtA[:size])
  2398. }
  2399. func (m *Help) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2400. i := len(dAtA)
  2401. _ = i
  2402. var l int
  2403. _ = l
  2404. if m.XXX_unrecognized != nil {
  2405. i -= len(m.XXX_unrecognized)
  2406. copy(dAtA[i:], m.XXX_unrecognized)
  2407. }
  2408. if len(m.Links) > 0 {
  2409. for iNdEx := len(m.Links) - 1; iNdEx >= 0; iNdEx-- {
  2410. {
  2411. size, err := m.Links[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2412. if err != nil {
  2413. return 0, err
  2414. }
  2415. i -= size
  2416. i = encodeVarintErrorDetails(dAtA, i, uint64(size))
  2417. }
  2418. i--
  2419. dAtA[i] = 0xa
  2420. }
  2421. }
  2422. return len(dAtA) - i, nil
  2423. }
  2424. func (m *Help_Link) Marshal() (dAtA []byte, err error) {
  2425. size := m.Size()
  2426. dAtA = make([]byte, size)
  2427. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2428. if err != nil {
  2429. return nil, err
  2430. }
  2431. return dAtA[:n], nil
  2432. }
  2433. func (m *Help_Link) MarshalTo(dAtA []byte) (int, error) {
  2434. size := m.Size()
  2435. return m.MarshalToSizedBuffer(dAtA[:size])
  2436. }
  2437. func (m *Help_Link) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2438. i := len(dAtA)
  2439. _ = i
  2440. var l int
  2441. _ = l
  2442. if m.XXX_unrecognized != nil {
  2443. i -= len(m.XXX_unrecognized)
  2444. copy(dAtA[i:], m.XXX_unrecognized)
  2445. }
  2446. if len(m.Url) > 0 {
  2447. i -= len(m.Url)
  2448. copy(dAtA[i:], m.Url)
  2449. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Url)))
  2450. i--
  2451. dAtA[i] = 0x12
  2452. }
  2453. if len(m.Description) > 0 {
  2454. i -= len(m.Description)
  2455. copy(dAtA[i:], m.Description)
  2456. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Description)))
  2457. i--
  2458. dAtA[i] = 0xa
  2459. }
  2460. return len(dAtA) - i, nil
  2461. }
  2462. func (m *LocalizedMessage) Marshal() (dAtA []byte, err error) {
  2463. size := m.Size()
  2464. dAtA = make([]byte, size)
  2465. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2466. if err != nil {
  2467. return nil, err
  2468. }
  2469. return dAtA[:n], nil
  2470. }
  2471. func (m *LocalizedMessage) MarshalTo(dAtA []byte) (int, error) {
  2472. size := m.Size()
  2473. return m.MarshalToSizedBuffer(dAtA[:size])
  2474. }
  2475. func (m *LocalizedMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2476. i := len(dAtA)
  2477. _ = i
  2478. var l int
  2479. _ = l
  2480. if m.XXX_unrecognized != nil {
  2481. i -= len(m.XXX_unrecognized)
  2482. copy(dAtA[i:], m.XXX_unrecognized)
  2483. }
  2484. if len(m.Message) > 0 {
  2485. i -= len(m.Message)
  2486. copy(dAtA[i:], m.Message)
  2487. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Message)))
  2488. i--
  2489. dAtA[i] = 0x12
  2490. }
  2491. if len(m.Locale) > 0 {
  2492. i -= len(m.Locale)
  2493. copy(dAtA[i:], m.Locale)
  2494. i = encodeVarintErrorDetails(dAtA, i, uint64(len(m.Locale)))
  2495. i--
  2496. dAtA[i] = 0xa
  2497. }
  2498. return len(dAtA) - i, nil
  2499. }
  2500. func encodeVarintErrorDetails(dAtA []byte, offset int, v uint64) int {
  2501. offset -= sovErrorDetails(v)
  2502. base := offset
  2503. for v >= 1<<7 {
  2504. dAtA[offset] = uint8(v&0x7f | 0x80)
  2505. v >>= 7
  2506. offset++
  2507. }
  2508. dAtA[offset] = uint8(v)
  2509. return base
  2510. }
  2511. func NewPopulatedRetryInfo(r randyErrorDetails, easy bool) *RetryInfo {
  2512. this := &RetryInfo{}
  2513. if r.Intn(5) != 0 {
  2514. this.RetryDelay = types.NewPopulatedDuration(r, easy)
  2515. }
  2516. if !easy && r.Intn(10) != 0 {
  2517. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 2)
  2518. }
  2519. return this
  2520. }
  2521. func NewPopulatedDebugInfo(r randyErrorDetails, easy bool) *DebugInfo {
  2522. this := &DebugInfo{}
  2523. v1 := r.Intn(10)
  2524. this.StackEntries = make([]string, v1)
  2525. for i := 0; i < v1; i++ {
  2526. this.StackEntries[i] = string(randStringErrorDetails(r))
  2527. }
  2528. this.Detail = string(randStringErrorDetails(r))
  2529. if !easy && r.Intn(10) != 0 {
  2530. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 3)
  2531. }
  2532. return this
  2533. }
  2534. func NewPopulatedQuotaFailure(r randyErrorDetails, easy bool) *QuotaFailure {
  2535. this := &QuotaFailure{}
  2536. if r.Intn(5) != 0 {
  2537. v2 := r.Intn(5)
  2538. this.Violations = make([]*QuotaFailure_Violation, v2)
  2539. for i := 0; i < v2; i++ {
  2540. this.Violations[i] = NewPopulatedQuotaFailure_Violation(r, easy)
  2541. }
  2542. }
  2543. if !easy && r.Intn(10) != 0 {
  2544. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 2)
  2545. }
  2546. return this
  2547. }
  2548. func NewPopulatedQuotaFailure_Violation(r randyErrorDetails, easy bool) *QuotaFailure_Violation {
  2549. this := &QuotaFailure_Violation{}
  2550. this.Subject = string(randStringErrorDetails(r))
  2551. this.Description = string(randStringErrorDetails(r))
  2552. if !easy && r.Intn(10) != 0 {
  2553. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 3)
  2554. }
  2555. return this
  2556. }
  2557. func NewPopulatedPreconditionFailure(r randyErrorDetails, easy bool) *PreconditionFailure {
  2558. this := &PreconditionFailure{}
  2559. if r.Intn(5) != 0 {
  2560. v3 := r.Intn(5)
  2561. this.Violations = make([]*PreconditionFailure_Violation, v3)
  2562. for i := 0; i < v3; i++ {
  2563. this.Violations[i] = NewPopulatedPreconditionFailure_Violation(r, easy)
  2564. }
  2565. }
  2566. if !easy && r.Intn(10) != 0 {
  2567. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 2)
  2568. }
  2569. return this
  2570. }
  2571. func NewPopulatedPreconditionFailure_Violation(r randyErrorDetails, easy bool) *PreconditionFailure_Violation {
  2572. this := &PreconditionFailure_Violation{}
  2573. this.Type = string(randStringErrorDetails(r))
  2574. this.Subject = string(randStringErrorDetails(r))
  2575. this.Description = string(randStringErrorDetails(r))
  2576. if !easy && r.Intn(10) != 0 {
  2577. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 4)
  2578. }
  2579. return this
  2580. }
  2581. func NewPopulatedBadRequest(r randyErrorDetails, easy bool) *BadRequest {
  2582. this := &BadRequest{}
  2583. if r.Intn(5) != 0 {
  2584. v4 := r.Intn(5)
  2585. this.FieldViolations = make([]*BadRequest_FieldViolation, v4)
  2586. for i := 0; i < v4; i++ {
  2587. this.FieldViolations[i] = NewPopulatedBadRequest_FieldViolation(r, easy)
  2588. }
  2589. }
  2590. if !easy && r.Intn(10) != 0 {
  2591. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 2)
  2592. }
  2593. return this
  2594. }
  2595. func NewPopulatedBadRequest_FieldViolation(r randyErrorDetails, easy bool) *BadRequest_FieldViolation {
  2596. this := &BadRequest_FieldViolation{}
  2597. this.Field = string(randStringErrorDetails(r))
  2598. this.Description = string(randStringErrorDetails(r))
  2599. if !easy && r.Intn(10) != 0 {
  2600. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 3)
  2601. }
  2602. return this
  2603. }
  2604. func NewPopulatedRequestInfo(r randyErrorDetails, easy bool) *RequestInfo {
  2605. this := &RequestInfo{}
  2606. this.RequestId = string(randStringErrorDetails(r))
  2607. this.ServingData = string(randStringErrorDetails(r))
  2608. if !easy && r.Intn(10) != 0 {
  2609. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 3)
  2610. }
  2611. return this
  2612. }
  2613. func NewPopulatedResourceInfo(r randyErrorDetails, easy bool) *ResourceInfo {
  2614. this := &ResourceInfo{}
  2615. this.ResourceType = string(randStringErrorDetails(r))
  2616. this.ResourceName = string(randStringErrorDetails(r))
  2617. this.Owner = string(randStringErrorDetails(r))
  2618. this.Description = string(randStringErrorDetails(r))
  2619. if !easy && r.Intn(10) != 0 {
  2620. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 5)
  2621. }
  2622. return this
  2623. }
  2624. func NewPopulatedHelp(r randyErrorDetails, easy bool) *Help {
  2625. this := &Help{}
  2626. if r.Intn(5) != 0 {
  2627. v5 := r.Intn(5)
  2628. this.Links = make([]*Help_Link, v5)
  2629. for i := 0; i < v5; i++ {
  2630. this.Links[i] = NewPopulatedHelp_Link(r, easy)
  2631. }
  2632. }
  2633. if !easy && r.Intn(10) != 0 {
  2634. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 2)
  2635. }
  2636. return this
  2637. }
  2638. func NewPopulatedHelp_Link(r randyErrorDetails, easy bool) *Help_Link {
  2639. this := &Help_Link{}
  2640. this.Description = string(randStringErrorDetails(r))
  2641. this.Url = string(randStringErrorDetails(r))
  2642. if !easy && r.Intn(10) != 0 {
  2643. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 3)
  2644. }
  2645. return this
  2646. }
  2647. func NewPopulatedLocalizedMessage(r randyErrorDetails, easy bool) *LocalizedMessage {
  2648. this := &LocalizedMessage{}
  2649. this.Locale = string(randStringErrorDetails(r))
  2650. this.Message = string(randStringErrorDetails(r))
  2651. if !easy && r.Intn(10) != 0 {
  2652. this.XXX_unrecognized = randUnrecognizedErrorDetails(r, 3)
  2653. }
  2654. return this
  2655. }
  2656. type randyErrorDetails interface {
  2657. Float32() float32
  2658. Float64() float64
  2659. Int63() int64
  2660. Int31() int32
  2661. Uint32() uint32
  2662. Intn(n int) int
  2663. }
  2664. func randUTF8RuneErrorDetails(r randyErrorDetails) rune {
  2665. ru := r.Intn(62)
  2666. if ru < 10 {
  2667. return rune(ru + 48)
  2668. } else if ru < 36 {
  2669. return rune(ru + 55)
  2670. }
  2671. return rune(ru + 61)
  2672. }
  2673. func randStringErrorDetails(r randyErrorDetails) string {
  2674. v6 := r.Intn(100)
  2675. tmps := make([]rune, v6)
  2676. for i := 0; i < v6; i++ {
  2677. tmps[i] = randUTF8RuneErrorDetails(r)
  2678. }
  2679. return string(tmps)
  2680. }
  2681. func randUnrecognizedErrorDetails(r randyErrorDetails, maxFieldNumber int) (dAtA []byte) {
  2682. l := r.Intn(5)
  2683. for i := 0; i < l; i++ {
  2684. wire := r.Intn(4)
  2685. if wire == 3 {
  2686. wire = 5
  2687. }
  2688. fieldNumber := maxFieldNumber + r.Intn(100)
  2689. dAtA = randFieldErrorDetails(dAtA, r, fieldNumber, wire)
  2690. }
  2691. return dAtA
  2692. }
  2693. func randFieldErrorDetails(dAtA []byte, r randyErrorDetails, fieldNumber int, wire int) []byte {
  2694. key := uint32(fieldNumber)<<3 | uint32(wire)
  2695. switch wire {
  2696. case 0:
  2697. dAtA = encodeVarintPopulateErrorDetails(dAtA, uint64(key))
  2698. v7 := r.Int63()
  2699. if r.Intn(2) == 0 {
  2700. v7 *= -1
  2701. }
  2702. dAtA = encodeVarintPopulateErrorDetails(dAtA, uint64(v7))
  2703. case 1:
  2704. dAtA = encodeVarintPopulateErrorDetails(dAtA, uint64(key))
  2705. dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  2706. case 2:
  2707. dAtA = encodeVarintPopulateErrorDetails(dAtA, uint64(key))
  2708. ll := r.Intn(100)
  2709. dAtA = encodeVarintPopulateErrorDetails(dAtA, uint64(ll))
  2710. for j := 0; j < ll; j++ {
  2711. dAtA = append(dAtA, byte(r.Intn(256)))
  2712. }
  2713. default:
  2714. dAtA = encodeVarintPopulateErrorDetails(dAtA, uint64(key))
  2715. dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  2716. }
  2717. return dAtA
  2718. }
  2719. func encodeVarintPopulateErrorDetails(dAtA []byte, v uint64) []byte {
  2720. for v >= 1<<7 {
  2721. dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80))
  2722. v >>= 7
  2723. }
  2724. dAtA = append(dAtA, uint8(v))
  2725. return dAtA
  2726. }
  2727. func (m *RetryInfo) Size() (n int) {
  2728. if m == nil {
  2729. return 0
  2730. }
  2731. var l int
  2732. _ = l
  2733. if m.RetryDelay != nil {
  2734. l = m.RetryDelay.Size()
  2735. n += 1 + l + sovErrorDetails(uint64(l))
  2736. }
  2737. if m.XXX_unrecognized != nil {
  2738. n += len(m.XXX_unrecognized)
  2739. }
  2740. return n
  2741. }
  2742. func (m *DebugInfo) Size() (n int) {
  2743. if m == nil {
  2744. return 0
  2745. }
  2746. var l int
  2747. _ = l
  2748. if len(m.StackEntries) > 0 {
  2749. for _, s := range m.StackEntries {
  2750. l = len(s)
  2751. n += 1 + l + sovErrorDetails(uint64(l))
  2752. }
  2753. }
  2754. l = len(m.Detail)
  2755. if l > 0 {
  2756. n += 1 + l + sovErrorDetails(uint64(l))
  2757. }
  2758. if m.XXX_unrecognized != nil {
  2759. n += len(m.XXX_unrecognized)
  2760. }
  2761. return n
  2762. }
  2763. func (m *QuotaFailure) Size() (n int) {
  2764. if m == nil {
  2765. return 0
  2766. }
  2767. var l int
  2768. _ = l
  2769. if len(m.Violations) > 0 {
  2770. for _, e := range m.Violations {
  2771. l = e.Size()
  2772. n += 1 + l + sovErrorDetails(uint64(l))
  2773. }
  2774. }
  2775. if m.XXX_unrecognized != nil {
  2776. n += len(m.XXX_unrecognized)
  2777. }
  2778. return n
  2779. }
  2780. func (m *QuotaFailure_Violation) Size() (n int) {
  2781. if m == nil {
  2782. return 0
  2783. }
  2784. var l int
  2785. _ = l
  2786. l = len(m.Subject)
  2787. if l > 0 {
  2788. n += 1 + l + sovErrorDetails(uint64(l))
  2789. }
  2790. l = len(m.Description)
  2791. if l > 0 {
  2792. n += 1 + l + sovErrorDetails(uint64(l))
  2793. }
  2794. if m.XXX_unrecognized != nil {
  2795. n += len(m.XXX_unrecognized)
  2796. }
  2797. return n
  2798. }
  2799. func (m *PreconditionFailure) Size() (n int) {
  2800. if m == nil {
  2801. return 0
  2802. }
  2803. var l int
  2804. _ = l
  2805. if len(m.Violations) > 0 {
  2806. for _, e := range m.Violations {
  2807. l = e.Size()
  2808. n += 1 + l + sovErrorDetails(uint64(l))
  2809. }
  2810. }
  2811. if m.XXX_unrecognized != nil {
  2812. n += len(m.XXX_unrecognized)
  2813. }
  2814. return n
  2815. }
  2816. func (m *PreconditionFailure_Violation) Size() (n int) {
  2817. if m == nil {
  2818. return 0
  2819. }
  2820. var l int
  2821. _ = l
  2822. l = len(m.Type)
  2823. if l > 0 {
  2824. n += 1 + l + sovErrorDetails(uint64(l))
  2825. }
  2826. l = len(m.Subject)
  2827. if l > 0 {
  2828. n += 1 + l + sovErrorDetails(uint64(l))
  2829. }
  2830. l = len(m.Description)
  2831. if l > 0 {
  2832. n += 1 + l + sovErrorDetails(uint64(l))
  2833. }
  2834. if m.XXX_unrecognized != nil {
  2835. n += len(m.XXX_unrecognized)
  2836. }
  2837. return n
  2838. }
  2839. func (m *BadRequest) Size() (n int) {
  2840. if m == nil {
  2841. return 0
  2842. }
  2843. var l int
  2844. _ = l
  2845. if len(m.FieldViolations) > 0 {
  2846. for _, e := range m.FieldViolations {
  2847. l = e.Size()
  2848. n += 1 + l + sovErrorDetails(uint64(l))
  2849. }
  2850. }
  2851. if m.XXX_unrecognized != nil {
  2852. n += len(m.XXX_unrecognized)
  2853. }
  2854. return n
  2855. }
  2856. func (m *BadRequest_FieldViolation) Size() (n int) {
  2857. if m == nil {
  2858. return 0
  2859. }
  2860. var l int
  2861. _ = l
  2862. l = len(m.Field)
  2863. if l > 0 {
  2864. n += 1 + l + sovErrorDetails(uint64(l))
  2865. }
  2866. l = len(m.Description)
  2867. if l > 0 {
  2868. n += 1 + l + sovErrorDetails(uint64(l))
  2869. }
  2870. if m.XXX_unrecognized != nil {
  2871. n += len(m.XXX_unrecognized)
  2872. }
  2873. return n
  2874. }
  2875. func (m *RequestInfo) Size() (n int) {
  2876. if m == nil {
  2877. return 0
  2878. }
  2879. var l int
  2880. _ = l
  2881. l = len(m.RequestId)
  2882. if l > 0 {
  2883. n += 1 + l + sovErrorDetails(uint64(l))
  2884. }
  2885. l = len(m.ServingData)
  2886. if l > 0 {
  2887. n += 1 + l + sovErrorDetails(uint64(l))
  2888. }
  2889. if m.XXX_unrecognized != nil {
  2890. n += len(m.XXX_unrecognized)
  2891. }
  2892. return n
  2893. }
  2894. func (m *ResourceInfo) Size() (n int) {
  2895. if m == nil {
  2896. return 0
  2897. }
  2898. var l int
  2899. _ = l
  2900. l = len(m.ResourceType)
  2901. if l > 0 {
  2902. n += 1 + l + sovErrorDetails(uint64(l))
  2903. }
  2904. l = len(m.ResourceName)
  2905. if l > 0 {
  2906. n += 1 + l + sovErrorDetails(uint64(l))
  2907. }
  2908. l = len(m.Owner)
  2909. if l > 0 {
  2910. n += 1 + l + sovErrorDetails(uint64(l))
  2911. }
  2912. l = len(m.Description)
  2913. if l > 0 {
  2914. n += 1 + l + sovErrorDetails(uint64(l))
  2915. }
  2916. if m.XXX_unrecognized != nil {
  2917. n += len(m.XXX_unrecognized)
  2918. }
  2919. return n
  2920. }
  2921. func (m *Help) Size() (n int) {
  2922. if m == nil {
  2923. return 0
  2924. }
  2925. var l int
  2926. _ = l
  2927. if len(m.Links) > 0 {
  2928. for _, e := range m.Links {
  2929. l = e.Size()
  2930. n += 1 + l + sovErrorDetails(uint64(l))
  2931. }
  2932. }
  2933. if m.XXX_unrecognized != nil {
  2934. n += len(m.XXX_unrecognized)
  2935. }
  2936. return n
  2937. }
  2938. func (m *Help_Link) Size() (n int) {
  2939. if m == nil {
  2940. return 0
  2941. }
  2942. var l int
  2943. _ = l
  2944. l = len(m.Description)
  2945. if l > 0 {
  2946. n += 1 + l + sovErrorDetails(uint64(l))
  2947. }
  2948. l = len(m.Url)
  2949. if l > 0 {
  2950. n += 1 + l + sovErrorDetails(uint64(l))
  2951. }
  2952. if m.XXX_unrecognized != nil {
  2953. n += len(m.XXX_unrecognized)
  2954. }
  2955. return n
  2956. }
  2957. func (m *LocalizedMessage) Size() (n int) {
  2958. if m == nil {
  2959. return 0
  2960. }
  2961. var l int
  2962. _ = l
  2963. l = len(m.Locale)
  2964. if l > 0 {
  2965. n += 1 + l + sovErrorDetails(uint64(l))
  2966. }
  2967. l = len(m.Message)
  2968. if l > 0 {
  2969. n += 1 + l + sovErrorDetails(uint64(l))
  2970. }
  2971. if m.XXX_unrecognized != nil {
  2972. n += len(m.XXX_unrecognized)
  2973. }
  2974. return n
  2975. }
  2976. func sovErrorDetails(x uint64) (n int) {
  2977. return (math_bits.Len64(x|1) + 6) / 7
  2978. }
  2979. func sozErrorDetails(x uint64) (n int) {
  2980. return sovErrorDetails(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2981. }
  2982. func (this *RetryInfo) String() string {
  2983. if this == nil {
  2984. return "nil"
  2985. }
  2986. s := strings.Join([]string{`&RetryInfo{`,
  2987. `RetryDelay:` + strings.Replace(fmt.Sprintf("%v", this.RetryDelay), "Duration", "types.Duration", 1) + `,`,
  2988. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2989. `}`,
  2990. }, "")
  2991. return s
  2992. }
  2993. func (this *DebugInfo) String() string {
  2994. if this == nil {
  2995. return "nil"
  2996. }
  2997. s := strings.Join([]string{`&DebugInfo{`,
  2998. `StackEntries:` + fmt.Sprintf("%v", this.StackEntries) + `,`,
  2999. `Detail:` + fmt.Sprintf("%v", this.Detail) + `,`,
  3000. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3001. `}`,
  3002. }, "")
  3003. return s
  3004. }
  3005. func (this *QuotaFailure) String() string {
  3006. if this == nil {
  3007. return "nil"
  3008. }
  3009. repeatedStringForViolations := "[]*QuotaFailure_Violation{"
  3010. for _, f := range this.Violations {
  3011. repeatedStringForViolations += strings.Replace(fmt.Sprintf("%v", f), "QuotaFailure_Violation", "QuotaFailure_Violation", 1) + ","
  3012. }
  3013. repeatedStringForViolations += "}"
  3014. s := strings.Join([]string{`&QuotaFailure{`,
  3015. `Violations:` + repeatedStringForViolations + `,`,
  3016. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3017. `}`,
  3018. }, "")
  3019. return s
  3020. }
  3021. func (this *QuotaFailure_Violation) String() string {
  3022. if this == nil {
  3023. return "nil"
  3024. }
  3025. s := strings.Join([]string{`&QuotaFailure_Violation{`,
  3026. `Subject:` + fmt.Sprintf("%v", this.Subject) + `,`,
  3027. `Description:` + fmt.Sprintf("%v", this.Description) + `,`,
  3028. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3029. `}`,
  3030. }, "")
  3031. return s
  3032. }
  3033. func (this *PreconditionFailure) String() string {
  3034. if this == nil {
  3035. return "nil"
  3036. }
  3037. repeatedStringForViolations := "[]*PreconditionFailure_Violation{"
  3038. for _, f := range this.Violations {
  3039. repeatedStringForViolations += strings.Replace(fmt.Sprintf("%v", f), "PreconditionFailure_Violation", "PreconditionFailure_Violation", 1) + ","
  3040. }
  3041. repeatedStringForViolations += "}"
  3042. s := strings.Join([]string{`&PreconditionFailure{`,
  3043. `Violations:` + repeatedStringForViolations + `,`,
  3044. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3045. `}`,
  3046. }, "")
  3047. return s
  3048. }
  3049. func (this *PreconditionFailure_Violation) String() string {
  3050. if this == nil {
  3051. return "nil"
  3052. }
  3053. s := strings.Join([]string{`&PreconditionFailure_Violation{`,
  3054. `Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  3055. `Subject:` + fmt.Sprintf("%v", this.Subject) + `,`,
  3056. `Description:` + fmt.Sprintf("%v", this.Description) + `,`,
  3057. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3058. `}`,
  3059. }, "")
  3060. return s
  3061. }
  3062. func (this *BadRequest) String() string {
  3063. if this == nil {
  3064. return "nil"
  3065. }
  3066. repeatedStringForFieldViolations := "[]*BadRequest_FieldViolation{"
  3067. for _, f := range this.FieldViolations {
  3068. repeatedStringForFieldViolations += strings.Replace(fmt.Sprintf("%v", f), "BadRequest_FieldViolation", "BadRequest_FieldViolation", 1) + ","
  3069. }
  3070. repeatedStringForFieldViolations += "}"
  3071. s := strings.Join([]string{`&BadRequest{`,
  3072. `FieldViolations:` + repeatedStringForFieldViolations + `,`,
  3073. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3074. `}`,
  3075. }, "")
  3076. return s
  3077. }
  3078. func (this *BadRequest_FieldViolation) String() string {
  3079. if this == nil {
  3080. return "nil"
  3081. }
  3082. s := strings.Join([]string{`&BadRequest_FieldViolation{`,
  3083. `Field:` + fmt.Sprintf("%v", this.Field) + `,`,
  3084. `Description:` + fmt.Sprintf("%v", this.Description) + `,`,
  3085. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3086. `}`,
  3087. }, "")
  3088. return s
  3089. }
  3090. func (this *RequestInfo) String() string {
  3091. if this == nil {
  3092. return "nil"
  3093. }
  3094. s := strings.Join([]string{`&RequestInfo{`,
  3095. `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`,
  3096. `ServingData:` + fmt.Sprintf("%v", this.ServingData) + `,`,
  3097. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3098. `}`,
  3099. }, "")
  3100. return s
  3101. }
  3102. func (this *ResourceInfo) String() string {
  3103. if this == nil {
  3104. return "nil"
  3105. }
  3106. s := strings.Join([]string{`&ResourceInfo{`,
  3107. `ResourceType:` + fmt.Sprintf("%v", this.ResourceType) + `,`,
  3108. `ResourceName:` + fmt.Sprintf("%v", this.ResourceName) + `,`,
  3109. `Owner:` + fmt.Sprintf("%v", this.Owner) + `,`,
  3110. `Description:` + fmt.Sprintf("%v", this.Description) + `,`,
  3111. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3112. `}`,
  3113. }, "")
  3114. return s
  3115. }
  3116. func (this *Help) String() string {
  3117. if this == nil {
  3118. return "nil"
  3119. }
  3120. repeatedStringForLinks := "[]*Help_Link{"
  3121. for _, f := range this.Links {
  3122. repeatedStringForLinks += strings.Replace(fmt.Sprintf("%v", f), "Help_Link", "Help_Link", 1) + ","
  3123. }
  3124. repeatedStringForLinks += "}"
  3125. s := strings.Join([]string{`&Help{`,
  3126. `Links:` + repeatedStringForLinks + `,`,
  3127. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3128. `}`,
  3129. }, "")
  3130. return s
  3131. }
  3132. func (this *Help_Link) String() string {
  3133. if this == nil {
  3134. return "nil"
  3135. }
  3136. s := strings.Join([]string{`&Help_Link{`,
  3137. `Description:` + fmt.Sprintf("%v", this.Description) + `,`,
  3138. `Url:` + fmt.Sprintf("%v", this.Url) + `,`,
  3139. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3140. `}`,
  3141. }, "")
  3142. return s
  3143. }
  3144. func (this *LocalizedMessage) String() string {
  3145. if this == nil {
  3146. return "nil"
  3147. }
  3148. s := strings.Join([]string{`&LocalizedMessage{`,
  3149. `Locale:` + fmt.Sprintf("%v", this.Locale) + `,`,
  3150. `Message:` + fmt.Sprintf("%v", this.Message) + `,`,
  3151. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  3152. `}`,
  3153. }, "")
  3154. return s
  3155. }
  3156. func valueToStringErrorDetails(v interface{}) string {
  3157. rv := reflect.ValueOf(v)
  3158. if rv.IsNil() {
  3159. return "nil"
  3160. }
  3161. pv := reflect.Indirect(rv).Interface()
  3162. return fmt.Sprintf("*%v", pv)
  3163. }
  3164. func (m *RetryInfo) Unmarshal(dAtA []byte) error {
  3165. l := len(dAtA)
  3166. iNdEx := 0
  3167. for iNdEx < l {
  3168. preIndex := iNdEx
  3169. var wire uint64
  3170. for shift := uint(0); ; shift += 7 {
  3171. if shift >= 64 {
  3172. return ErrIntOverflowErrorDetails
  3173. }
  3174. if iNdEx >= l {
  3175. return io.ErrUnexpectedEOF
  3176. }
  3177. b := dAtA[iNdEx]
  3178. iNdEx++
  3179. wire |= uint64(b&0x7F) << shift
  3180. if b < 0x80 {
  3181. break
  3182. }
  3183. }
  3184. fieldNum := int32(wire >> 3)
  3185. wireType := int(wire & 0x7)
  3186. if wireType == 4 {
  3187. return fmt.Errorf("proto: RetryInfo: wiretype end group for non-group")
  3188. }
  3189. if fieldNum <= 0 {
  3190. return fmt.Errorf("proto: RetryInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  3191. }
  3192. switch fieldNum {
  3193. case 1:
  3194. if wireType != 2 {
  3195. return fmt.Errorf("proto: wrong wireType = %d for field RetryDelay", wireType)
  3196. }
  3197. var msglen int
  3198. for shift := uint(0); ; shift += 7 {
  3199. if shift >= 64 {
  3200. return ErrIntOverflowErrorDetails
  3201. }
  3202. if iNdEx >= l {
  3203. return io.ErrUnexpectedEOF
  3204. }
  3205. b := dAtA[iNdEx]
  3206. iNdEx++
  3207. msglen |= int(b&0x7F) << shift
  3208. if b < 0x80 {
  3209. break
  3210. }
  3211. }
  3212. if msglen < 0 {
  3213. return ErrInvalidLengthErrorDetails
  3214. }
  3215. postIndex := iNdEx + msglen
  3216. if postIndex < 0 {
  3217. return ErrInvalidLengthErrorDetails
  3218. }
  3219. if postIndex > l {
  3220. return io.ErrUnexpectedEOF
  3221. }
  3222. if m.RetryDelay == nil {
  3223. m.RetryDelay = &types.Duration{}
  3224. }
  3225. if err := m.RetryDelay.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3226. return err
  3227. }
  3228. iNdEx = postIndex
  3229. default:
  3230. iNdEx = preIndex
  3231. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  3232. if err != nil {
  3233. return err
  3234. }
  3235. if skippy < 0 {
  3236. return ErrInvalidLengthErrorDetails
  3237. }
  3238. if (iNdEx + skippy) < 0 {
  3239. return ErrInvalidLengthErrorDetails
  3240. }
  3241. if (iNdEx + skippy) > l {
  3242. return io.ErrUnexpectedEOF
  3243. }
  3244. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3245. iNdEx += skippy
  3246. }
  3247. }
  3248. if iNdEx > l {
  3249. return io.ErrUnexpectedEOF
  3250. }
  3251. return nil
  3252. }
  3253. func (m *DebugInfo) Unmarshal(dAtA []byte) error {
  3254. l := len(dAtA)
  3255. iNdEx := 0
  3256. for iNdEx < l {
  3257. preIndex := iNdEx
  3258. var wire uint64
  3259. for shift := uint(0); ; shift += 7 {
  3260. if shift >= 64 {
  3261. return ErrIntOverflowErrorDetails
  3262. }
  3263. if iNdEx >= l {
  3264. return io.ErrUnexpectedEOF
  3265. }
  3266. b := dAtA[iNdEx]
  3267. iNdEx++
  3268. wire |= uint64(b&0x7F) << shift
  3269. if b < 0x80 {
  3270. break
  3271. }
  3272. }
  3273. fieldNum := int32(wire >> 3)
  3274. wireType := int(wire & 0x7)
  3275. if wireType == 4 {
  3276. return fmt.Errorf("proto: DebugInfo: wiretype end group for non-group")
  3277. }
  3278. if fieldNum <= 0 {
  3279. return fmt.Errorf("proto: DebugInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  3280. }
  3281. switch fieldNum {
  3282. case 1:
  3283. if wireType != 2 {
  3284. return fmt.Errorf("proto: wrong wireType = %d for field StackEntries", wireType)
  3285. }
  3286. var stringLen uint64
  3287. for shift := uint(0); ; shift += 7 {
  3288. if shift >= 64 {
  3289. return ErrIntOverflowErrorDetails
  3290. }
  3291. if iNdEx >= l {
  3292. return io.ErrUnexpectedEOF
  3293. }
  3294. b := dAtA[iNdEx]
  3295. iNdEx++
  3296. stringLen |= uint64(b&0x7F) << shift
  3297. if b < 0x80 {
  3298. break
  3299. }
  3300. }
  3301. intStringLen := int(stringLen)
  3302. if intStringLen < 0 {
  3303. return ErrInvalidLengthErrorDetails
  3304. }
  3305. postIndex := iNdEx + intStringLen
  3306. if postIndex < 0 {
  3307. return ErrInvalidLengthErrorDetails
  3308. }
  3309. if postIndex > l {
  3310. return io.ErrUnexpectedEOF
  3311. }
  3312. m.StackEntries = append(m.StackEntries, string(dAtA[iNdEx:postIndex]))
  3313. iNdEx = postIndex
  3314. case 2:
  3315. if wireType != 2 {
  3316. return fmt.Errorf("proto: wrong wireType = %d for field Detail", wireType)
  3317. }
  3318. var stringLen uint64
  3319. for shift := uint(0); ; shift += 7 {
  3320. if shift >= 64 {
  3321. return ErrIntOverflowErrorDetails
  3322. }
  3323. if iNdEx >= l {
  3324. return io.ErrUnexpectedEOF
  3325. }
  3326. b := dAtA[iNdEx]
  3327. iNdEx++
  3328. stringLen |= uint64(b&0x7F) << shift
  3329. if b < 0x80 {
  3330. break
  3331. }
  3332. }
  3333. intStringLen := int(stringLen)
  3334. if intStringLen < 0 {
  3335. return ErrInvalidLengthErrorDetails
  3336. }
  3337. postIndex := iNdEx + intStringLen
  3338. if postIndex < 0 {
  3339. return ErrInvalidLengthErrorDetails
  3340. }
  3341. if postIndex > l {
  3342. return io.ErrUnexpectedEOF
  3343. }
  3344. m.Detail = string(dAtA[iNdEx:postIndex])
  3345. iNdEx = postIndex
  3346. default:
  3347. iNdEx = preIndex
  3348. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  3349. if err != nil {
  3350. return err
  3351. }
  3352. if skippy < 0 {
  3353. return ErrInvalidLengthErrorDetails
  3354. }
  3355. if (iNdEx + skippy) < 0 {
  3356. return ErrInvalidLengthErrorDetails
  3357. }
  3358. if (iNdEx + skippy) > l {
  3359. return io.ErrUnexpectedEOF
  3360. }
  3361. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3362. iNdEx += skippy
  3363. }
  3364. }
  3365. if iNdEx > l {
  3366. return io.ErrUnexpectedEOF
  3367. }
  3368. return nil
  3369. }
  3370. func (m *QuotaFailure) Unmarshal(dAtA []byte) error {
  3371. l := len(dAtA)
  3372. iNdEx := 0
  3373. for iNdEx < l {
  3374. preIndex := iNdEx
  3375. var wire uint64
  3376. for shift := uint(0); ; shift += 7 {
  3377. if shift >= 64 {
  3378. return ErrIntOverflowErrorDetails
  3379. }
  3380. if iNdEx >= l {
  3381. return io.ErrUnexpectedEOF
  3382. }
  3383. b := dAtA[iNdEx]
  3384. iNdEx++
  3385. wire |= uint64(b&0x7F) << shift
  3386. if b < 0x80 {
  3387. break
  3388. }
  3389. }
  3390. fieldNum := int32(wire >> 3)
  3391. wireType := int(wire & 0x7)
  3392. if wireType == 4 {
  3393. return fmt.Errorf("proto: QuotaFailure: wiretype end group for non-group")
  3394. }
  3395. if fieldNum <= 0 {
  3396. return fmt.Errorf("proto: QuotaFailure: illegal tag %d (wire type %d)", fieldNum, wire)
  3397. }
  3398. switch fieldNum {
  3399. case 1:
  3400. if wireType != 2 {
  3401. return fmt.Errorf("proto: wrong wireType = %d for field Violations", wireType)
  3402. }
  3403. var msglen int
  3404. for shift := uint(0); ; shift += 7 {
  3405. if shift >= 64 {
  3406. return ErrIntOverflowErrorDetails
  3407. }
  3408. if iNdEx >= l {
  3409. return io.ErrUnexpectedEOF
  3410. }
  3411. b := dAtA[iNdEx]
  3412. iNdEx++
  3413. msglen |= int(b&0x7F) << shift
  3414. if b < 0x80 {
  3415. break
  3416. }
  3417. }
  3418. if msglen < 0 {
  3419. return ErrInvalidLengthErrorDetails
  3420. }
  3421. postIndex := iNdEx + msglen
  3422. if postIndex < 0 {
  3423. return ErrInvalidLengthErrorDetails
  3424. }
  3425. if postIndex > l {
  3426. return io.ErrUnexpectedEOF
  3427. }
  3428. m.Violations = append(m.Violations, &QuotaFailure_Violation{})
  3429. if err := m.Violations[len(m.Violations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3430. return err
  3431. }
  3432. iNdEx = postIndex
  3433. default:
  3434. iNdEx = preIndex
  3435. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  3436. if err != nil {
  3437. return err
  3438. }
  3439. if skippy < 0 {
  3440. return ErrInvalidLengthErrorDetails
  3441. }
  3442. if (iNdEx + skippy) < 0 {
  3443. return ErrInvalidLengthErrorDetails
  3444. }
  3445. if (iNdEx + skippy) > l {
  3446. return io.ErrUnexpectedEOF
  3447. }
  3448. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3449. iNdEx += skippy
  3450. }
  3451. }
  3452. if iNdEx > l {
  3453. return io.ErrUnexpectedEOF
  3454. }
  3455. return nil
  3456. }
  3457. func (m *QuotaFailure_Violation) Unmarshal(dAtA []byte) error {
  3458. l := len(dAtA)
  3459. iNdEx := 0
  3460. for iNdEx < l {
  3461. preIndex := iNdEx
  3462. var wire uint64
  3463. for shift := uint(0); ; shift += 7 {
  3464. if shift >= 64 {
  3465. return ErrIntOverflowErrorDetails
  3466. }
  3467. if iNdEx >= l {
  3468. return io.ErrUnexpectedEOF
  3469. }
  3470. b := dAtA[iNdEx]
  3471. iNdEx++
  3472. wire |= uint64(b&0x7F) << shift
  3473. if b < 0x80 {
  3474. break
  3475. }
  3476. }
  3477. fieldNum := int32(wire >> 3)
  3478. wireType := int(wire & 0x7)
  3479. if wireType == 4 {
  3480. return fmt.Errorf("proto: Violation: wiretype end group for non-group")
  3481. }
  3482. if fieldNum <= 0 {
  3483. return fmt.Errorf("proto: Violation: illegal tag %d (wire type %d)", fieldNum, wire)
  3484. }
  3485. switch fieldNum {
  3486. case 1:
  3487. if wireType != 2 {
  3488. return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType)
  3489. }
  3490. var stringLen uint64
  3491. for shift := uint(0); ; shift += 7 {
  3492. if shift >= 64 {
  3493. return ErrIntOverflowErrorDetails
  3494. }
  3495. if iNdEx >= l {
  3496. return io.ErrUnexpectedEOF
  3497. }
  3498. b := dAtA[iNdEx]
  3499. iNdEx++
  3500. stringLen |= uint64(b&0x7F) << shift
  3501. if b < 0x80 {
  3502. break
  3503. }
  3504. }
  3505. intStringLen := int(stringLen)
  3506. if intStringLen < 0 {
  3507. return ErrInvalidLengthErrorDetails
  3508. }
  3509. postIndex := iNdEx + intStringLen
  3510. if postIndex < 0 {
  3511. return ErrInvalidLengthErrorDetails
  3512. }
  3513. if postIndex > l {
  3514. return io.ErrUnexpectedEOF
  3515. }
  3516. m.Subject = string(dAtA[iNdEx:postIndex])
  3517. iNdEx = postIndex
  3518. case 2:
  3519. if wireType != 2 {
  3520. return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  3521. }
  3522. var stringLen uint64
  3523. for shift := uint(0); ; shift += 7 {
  3524. if shift >= 64 {
  3525. return ErrIntOverflowErrorDetails
  3526. }
  3527. if iNdEx >= l {
  3528. return io.ErrUnexpectedEOF
  3529. }
  3530. b := dAtA[iNdEx]
  3531. iNdEx++
  3532. stringLen |= uint64(b&0x7F) << shift
  3533. if b < 0x80 {
  3534. break
  3535. }
  3536. }
  3537. intStringLen := int(stringLen)
  3538. if intStringLen < 0 {
  3539. return ErrInvalidLengthErrorDetails
  3540. }
  3541. postIndex := iNdEx + intStringLen
  3542. if postIndex < 0 {
  3543. return ErrInvalidLengthErrorDetails
  3544. }
  3545. if postIndex > l {
  3546. return io.ErrUnexpectedEOF
  3547. }
  3548. m.Description = string(dAtA[iNdEx:postIndex])
  3549. iNdEx = postIndex
  3550. default:
  3551. iNdEx = preIndex
  3552. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  3553. if err != nil {
  3554. return err
  3555. }
  3556. if skippy < 0 {
  3557. return ErrInvalidLengthErrorDetails
  3558. }
  3559. if (iNdEx + skippy) < 0 {
  3560. return ErrInvalidLengthErrorDetails
  3561. }
  3562. if (iNdEx + skippy) > l {
  3563. return io.ErrUnexpectedEOF
  3564. }
  3565. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3566. iNdEx += skippy
  3567. }
  3568. }
  3569. if iNdEx > l {
  3570. return io.ErrUnexpectedEOF
  3571. }
  3572. return nil
  3573. }
  3574. func (m *PreconditionFailure) Unmarshal(dAtA []byte) error {
  3575. l := len(dAtA)
  3576. iNdEx := 0
  3577. for iNdEx < l {
  3578. preIndex := iNdEx
  3579. var wire uint64
  3580. for shift := uint(0); ; shift += 7 {
  3581. if shift >= 64 {
  3582. return ErrIntOverflowErrorDetails
  3583. }
  3584. if iNdEx >= l {
  3585. return io.ErrUnexpectedEOF
  3586. }
  3587. b := dAtA[iNdEx]
  3588. iNdEx++
  3589. wire |= uint64(b&0x7F) << shift
  3590. if b < 0x80 {
  3591. break
  3592. }
  3593. }
  3594. fieldNum := int32(wire >> 3)
  3595. wireType := int(wire & 0x7)
  3596. if wireType == 4 {
  3597. return fmt.Errorf("proto: PreconditionFailure: wiretype end group for non-group")
  3598. }
  3599. if fieldNum <= 0 {
  3600. return fmt.Errorf("proto: PreconditionFailure: illegal tag %d (wire type %d)", fieldNum, wire)
  3601. }
  3602. switch fieldNum {
  3603. case 1:
  3604. if wireType != 2 {
  3605. return fmt.Errorf("proto: wrong wireType = %d for field Violations", wireType)
  3606. }
  3607. var msglen int
  3608. for shift := uint(0); ; shift += 7 {
  3609. if shift >= 64 {
  3610. return ErrIntOverflowErrorDetails
  3611. }
  3612. if iNdEx >= l {
  3613. return io.ErrUnexpectedEOF
  3614. }
  3615. b := dAtA[iNdEx]
  3616. iNdEx++
  3617. msglen |= int(b&0x7F) << shift
  3618. if b < 0x80 {
  3619. break
  3620. }
  3621. }
  3622. if msglen < 0 {
  3623. return ErrInvalidLengthErrorDetails
  3624. }
  3625. postIndex := iNdEx + msglen
  3626. if postIndex < 0 {
  3627. return ErrInvalidLengthErrorDetails
  3628. }
  3629. if postIndex > l {
  3630. return io.ErrUnexpectedEOF
  3631. }
  3632. m.Violations = append(m.Violations, &PreconditionFailure_Violation{})
  3633. if err := m.Violations[len(m.Violations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3634. return err
  3635. }
  3636. iNdEx = postIndex
  3637. default:
  3638. iNdEx = preIndex
  3639. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  3640. if err != nil {
  3641. return err
  3642. }
  3643. if skippy < 0 {
  3644. return ErrInvalidLengthErrorDetails
  3645. }
  3646. if (iNdEx + skippy) < 0 {
  3647. return ErrInvalidLengthErrorDetails
  3648. }
  3649. if (iNdEx + skippy) > l {
  3650. return io.ErrUnexpectedEOF
  3651. }
  3652. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3653. iNdEx += skippy
  3654. }
  3655. }
  3656. if iNdEx > l {
  3657. return io.ErrUnexpectedEOF
  3658. }
  3659. return nil
  3660. }
  3661. func (m *PreconditionFailure_Violation) Unmarshal(dAtA []byte) error {
  3662. l := len(dAtA)
  3663. iNdEx := 0
  3664. for iNdEx < l {
  3665. preIndex := iNdEx
  3666. var wire uint64
  3667. for shift := uint(0); ; shift += 7 {
  3668. if shift >= 64 {
  3669. return ErrIntOverflowErrorDetails
  3670. }
  3671. if iNdEx >= l {
  3672. return io.ErrUnexpectedEOF
  3673. }
  3674. b := dAtA[iNdEx]
  3675. iNdEx++
  3676. wire |= uint64(b&0x7F) << shift
  3677. if b < 0x80 {
  3678. break
  3679. }
  3680. }
  3681. fieldNum := int32(wire >> 3)
  3682. wireType := int(wire & 0x7)
  3683. if wireType == 4 {
  3684. return fmt.Errorf("proto: Violation: wiretype end group for non-group")
  3685. }
  3686. if fieldNum <= 0 {
  3687. return fmt.Errorf("proto: Violation: illegal tag %d (wire type %d)", fieldNum, wire)
  3688. }
  3689. switch fieldNum {
  3690. case 1:
  3691. if wireType != 2 {
  3692. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  3693. }
  3694. var stringLen uint64
  3695. for shift := uint(0); ; shift += 7 {
  3696. if shift >= 64 {
  3697. return ErrIntOverflowErrorDetails
  3698. }
  3699. if iNdEx >= l {
  3700. return io.ErrUnexpectedEOF
  3701. }
  3702. b := dAtA[iNdEx]
  3703. iNdEx++
  3704. stringLen |= uint64(b&0x7F) << shift
  3705. if b < 0x80 {
  3706. break
  3707. }
  3708. }
  3709. intStringLen := int(stringLen)
  3710. if intStringLen < 0 {
  3711. return ErrInvalidLengthErrorDetails
  3712. }
  3713. postIndex := iNdEx + intStringLen
  3714. if postIndex < 0 {
  3715. return ErrInvalidLengthErrorDetails
  3716. }
  3717. if postIndex > l {
  3718. return io.ErrUnexpectedEOF
  3719. }
  3720. m.Type = string(dAtA[iNdEx:postIndex])
  3721. iNdEx = postIndex
  3722. case 2:
  3723. if wireType != 2 {
  3724. return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType)
  3725. }
  3726. var stringLen uint64
  3727. for shift := uint(0); ; shift += 7 {
  3728. if shift >= 64 {
  3729. return ErrIntOverflowErrorDetails
  3730. }
  3731. if iNdEx >= l {
  3732. return io.ErrUnexpectedEOF
  3733. }
  3734. b := dAtA[iNdEx]
  3735. iNdEx++
  3736. stringLen |= uint64(b&0x7F) << shift
  3737. if b < 0x80 {
  3738. break
  3739. }
  3740. }
  3741. intStringLen := int(stringLen)
  3742. if intStringLen < 0 {
  3743. return ErrInvalidLengthErrorDetails
  3744. }
  3745. postIndex := iNdEx + intStringLen
  3746. if postIndex < 0 {
  3747. return ErrInvalidLengthErrorDetails
  3748. }
  3749. if postIndex > l {
  3750. return io.ErrUnexpectedEOF
  3751. }
  3752. m.Subject = string(dAtA[iNdEx:postIndex])
  3753. iNdEx = postIndex
  3754. case 3:
  3755. if wireType != 2 {
  3756. return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  3757. }
  3758. var stringLen uint64
  3759. for shift := uint(0); ; shift += 7 {
  3760. if shift >= 64 {
  3761. return ErrIntOverflowErrorDetails
  3762. }
  3763. if iNdEx >= l {
  3764. return io.ErrUnexpectedEOF
  3765. }
  3766. b := dAtA[iNdEx]
  3767. iNdEx++
  3768. stringLen |= uint64(b&0x7F) << shift
  3769. if b < 0x80 {
  3770. break
  3771. }
  3772. }
  3773. intStringLen := int(stringLen)
  3774. if intStringLen < 0 {
  3775. return ErrInvalidLengthErrorDetails
  3776. }
  3777. postIndex := iNdEx + intStringLen
  3778. if postIndex < 0 {
  3779. return ErrInvalidLengthErrorDetails
  3780. }
  3781. if postIndex > l {
  3782. return io.ErrUnexpectedEOF
  3783. }
  3784. m.Description = string(dAtA[iNdEx:postIndex])
  3785. iNdEx = postIndex
  3786. default:
  3787. iNdEx = preIndex
  3788. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  3789. if err != nil {
  3790. return err
  3791. }
  3792. if skippy < 0 {
  3793. return ErrInvalidLengthErrorDetails
  3794. }
  3795. if (iNdEx + skippy) < 0 {
  3796. return ErrInvalidLengthErrorDetails
  3797. }
  3798. if (iNdEx + skippy) > l {
  3799. return io.ErrUnexpectedEOF
  3800. }
  3801. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3802. iNdEx += skippy
  3803. }
  3804. }
  3805. if iNdEx > l {
  3806. return io.ErrUnexpectedEOF
  3807. }
  3808. return nil
  3809. }
  3810. func (m *BadRequest) Unmarshal(dAtA []byte) error {
  3811. l := len(dAtA)
  3812. iNdEx := 0
  3813. for iNdEx < l {
  3814. preIndex := iNdEx
  3815. var wire uint64
  3816. for shift := uint(0); ; shift += 7 {
  3817. if shift >= 64 {
  3818. return ErrIntOverflowErrorDetails
  3819. }
  3820. if iNdEx >= l {
  3821. return io.ErrUnexpectedEOF
  3822. }
  3823. b := dAtA[iNdEx]
  3824. iNdEx++
  3825. wire |= uint64(b&0x7F) << shift
  3826. if b < 0x80 {
  3827. break
  3828. }
  3829. }
  3830. fieldNum := int32(wire >> 3)
  3831. wireType := int(wire & 0x7)
  3832. if wireType == 4 {
  3833. return fmt.Errorf("proto: BadRequest: wiretype end group for non-group")
  3834. }
  3835. if fieldNum <= 0 {
  3836. return fmt.Errorf("proto: BadRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3837. }
  3838. switch fieldNum {
  3839. case 1:
  3840. if wireType != 2 {
  3841. return fmt.Errorf("proto: wrong wireType = %d for field FieldViolations", wireType)
  3842. }
  3843. var msglen int
  3844. for shift := uint(0); ; shift += 7 {
  3845. if shift >= 64 {
  3846. return ErrIntOverflowErrorDetails
  3847. }
  3848. if iNdEx >= l {
  3849. return io.ErrUnexpectedEOF
  3850. }
  3851. b := dAtA[iNdEx]
  3852. iNdEx++
  3853. msglen |= int(b&0x7F) << shift
  3854. if b < 0x80 {
  3855. break
  3856. }
  3857. }
  3858. if msglen < 0 {
  3859. return ErrInvalidLengthErrorDetails
  3860. }
  3861. postIndex := iNdEx + msglen
  3862. if postIndex < 0 {
  3863. return ErrInvalidLengthErrorDetails
  3864. }
  3865. if postIndex > l {
  3866. return io.ErrUnexpectedEOF
  3867. }
  3868. m.FieldViolations = append(m.FieldViolations, &BadRequest_FieldViolation{})
  3869. if err := m.FieldViolations[len(m.FieldViolations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3870. return err
  3871. }
  3872. iNdEx = postIndex
  3873. default:
  3874. iNdEx = preIndex
  3875. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  3876. if err != nil {
  3877. return err
  3878. }
  3879. if skippy < 0 {
  3880. return ErrInvalidLengthErrorDetails
  3881. }
  3882. if (iNdEx + skippy) < 0 {
  3883. return ErrInvalidLengthErrorDetails
  3884. }
  3885. if (iNdEx + skippy) > l {
  3886. return io.ErrUnexpectedEOF
  3887. }
  3888. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3889. iNdEx += skippy
  3890. }
  3891. }
  3892. if iNdEx > l {
  3893. return io.ErrUnexpectedEOF
  3894. }
  3895. return nil
  3896. }
  3897. func (m *BadRequest_FieldViolation) Unmarshal(dAtA []byte) error {
  3898. l := len(dAtA)
  3899. iNdEx := 0
  3900. for iNdEx < l {
  3901. preIndex := iNdEx
  3902. var wire uint64
  3903. for shift := uint(0); ; shift += 7 {
  3904. if shift >= 64 {
  3905. return ErrIntOverflowErrorDetails
  3906. }
  3907. if iNdEx >= l {
  3908. return io.ErrUnexpectedEOF
  3909. }
  3910. b := dAtA[iNdEx]
  3911. iNdEx++
  3912. wire |= uint64(b&0x7F) << shift
  3913. if b < 0x80 {
  3914. break
  3915. }
  3916. }
  3917. fieldNum := int32(wire >> 3)
  3918. wireType := int(wire & 0x7)
  3919. if wireType == 4 {
  3920. return fmt.Errorf("proto: FieldViolation: wiretype end group for non-group")
  3921. }
  3922. if fieldNum <= 0 {
  3923. return fmt.Errorf("proto: FieldViolation: illegal tag %d (wire type %d)", fieldNum, wire)
  3924. }
  3925. switch fieldNum {
  3926. case 1:
  3927. if wireType != 2 {
  3928. return fmt.Errorf("proto: wrong wireType = %d for field Field", wireType)
  3929. }
  3930. var stringLen uint64
  3931. for shift := uint(0); ; shift += 7 {
  3932. if shift >= 64 {
  3933. return ErrIntOverflowErrorDetails
  3934. }
  3935. if iNdEx >= l {
  3936. return io.ErrUnexpectedEOF
  3937. }
  3938. b := dAtA[iNdEx]
  3939. iNdEx++
  3940. stringLen |= uint64(b&0x7F) << shift
  3941. if b < 0x80 {
  3942. break
  3943. }
  3944. }
  3945. intStringLen := int(stringLen)
  3946. if intStringLen < 0 {
  3947. return ErrInvalidLengthErrorDetails
  3948. }
  3949. postIndex := iNdEx + intStringLen
  3950. if postIndex < 0 {
  3951. return ErrInvalidLengthErrorDetails
  3952. }
  3953. if postIndex > l {
  3954. return io.ErrUnexpectedEOF
  3955. }
  3956. m.Field = string(dAtA[iNdEx:postIndex])
  3957. iNdEx = postIndex
  3958. case 2:
  3959. if wireType != 2 {
  3960. return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  3961. }
  3962. var stringLen uint64
  3963. for shift := uint(0); ; shift += 7 {
  3964. if shift >= 64 {
  3965. return ErrIntOverflowErrorDetails
  3966. }
  3967. if iNdEx >= l {
  3968. return io.ErrUnexpectedEOF
  3969. }
  3970. b := dAtA[iNdEx]
  3971. iNdEx++
  3972. stringLen |= uint64(b&0x7F) << shift
  3973. if b < 0x80 {
  3974. break
  3975. }
  3976. }
  3977. intStringLen := int(stringLen)
  3978. if intStringLen < 0 {
  3979. return ErrInvalidLengthErrorDetails
  3980. }
  3981. postIndex := iNdEx + intStringLen
  3982. if postIndex < 0 {
  3983. return ErrInvalidLengthErrorDetails
  3984. }
  3985. if postIndex > l {
  3986. return io.ErrUnexpectedEOF
  3987. }
  3988. m.Description = string(dAtA[iNdEx:postIndex])
  3989. iNdEx = postIndex
  3990. default:
  3991. iNdEx = preIndex
  3992. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  3993. if err != nil {
  3994. return err
  3995. }
  3996. if skippy < 0 {
  3997. return ErrInvalidLengthErrorDetails
  3998. }
  3999. if (iNdEx + skippy) < 0 {
  4000. return ErrInvalidLengthErrorDetails
  4001. }
  4002. if (iNdEx + skippy) > l {
  4003. return io.ErrUnexpectedEOF
  4004. }
  4005. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4006. iNdEx += skippy
  4007. }
  4008. }
  4009. if iNdEx > l {
  4010. return io.ErrUnexpectedEOF
  4011. }
  4012. return nil
  4013. }
  4014. func (m *RequestInfo) Unmarshal(dAtA []byte) error {
  4015. l := len(dAtA)
  4016. iNdEx := 0
  4017. for iNdEx < l {
  4018. preIndex := iNdEx
  4019. var wire uint64
  4020. for shift := uint(0); ; shift += 7 {
  4021. if shift >= 64 {
  4022. return ErrIntOverflowErrorDetails
  4023. }
  4024. if iNdEx >= l {
  4025. return io.ErrUnexpectedEOF
  4026. }
  4027. b := dAtA[iNdEx]
  4028. iNdEx++
  4029. wire |= uint64(b&0x7F) << shift
  4030. if b < 0x80 {
  4031. break
  4032. }
  4033. }
  4034. fieldNum := int32(wire >> 3)
  4035. wireType := int(wire & 0x7)
  4036. if wireType == 4 {
  4037. return fmt.Errorf("proto: RequestInfo: wiretype end group for non-group")
  4038. }
  4039. if fieldNum <= 0 {
  4040. return fmt.Errorf("proto: RequestInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  4041. }
  4042. switch fieldNum {
  4043. case 1:
  4044. if wireType != 2 {
  4045. return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType)
  4046. }
  4047. var stringLen uint64
  4048. for shift := uint(0); ; shift += 7 {
  4049. if shift >= 64 {
  4050. return ErrIntOverflowErrorDetails
  4051. }
  4052. if iNdEx >= l {
  4053. return io.ErrUnexpectedEOF
  4054. }
  4055. b := dAtA[iNdEx]
  4056. iNdEx++
  4057. stringLen |= uint64(b&0x7F) << shift
  4058. if b < 0x80 {
  4059. break
  4060. }
  4061. }
  4062. intStringLen := int(stringLen)
  4063. if intStringLen < 0 {
  4064. return ErrInvalidLengthErrorDetails
  4065. }
  4066. postIndex := iNdEx + intStringLen
  4067. if postIndex < 0 {
  4068. return ErrInvalidLengthErrorDetails
  4069. }
  4070. if postIndex > l {
  4071. return io.ErrUnexpectedEOF
  4072. }
  4073. m.RequestId = string(dAtA[iNdEx:postIndex])
  4074. iNdEx = postIndex
  4075. case 2:
  4076. if wireType != 2 {
  4077. return fmt.Errorf("proto: wrong wireType = %d for field ServingData", wireType)
  4078. }
  4079. var stringLen uint64
  4080. for shift := uint(0); ; shift += 7 {
  4081. if shift >= 64 {
  4082. return ErrIntOverflowErrorDetails
  4083. }
  4084. if iNdEx >= l {
  4085. return io.ErrUnexpectedEOF
  4086. }
  4087. b := dAtA[iNdEx]
  4088. iNdEx++
  4089. stringLen |= uint64(b&0x7F) << shift
  4090. if b < 0x80 {
  4091. break
  4092. }
  4093. }
  4094. intStringLen := int(stringLen)
  4095. if intStringLen < 0 {
  4096. return ErrInvalidLengthErrorDetails
  4097. }
  4098. postIndex := iNdEx + intStringLen
  4099. if postIndex < 0 {
  4100. return ErrInvalidLengthErrorDetails
  4101. }
  4102. if postIndex > l {
  4103. return io.ErrUnexpectedEOF
  4104. }
  4105. m.ServingData = string(dAtA[iNdEx:postIndex])
  4106. iNdEx = postIndex
  4107. default:
  4108. iNdEx = preIndex
  4109. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  4110. if err != nil {
  4111. return err
  4112. }
  4113. if skippy < 0 {
  4114. return ErrInvalidLengthErrorDetails
  4115. }
  4116. if (iNdEx + skippy) < 0 {
  4117. return ErrInvalidLengthErrorDetails
  4118. }
  4119. if (iNdEx + skippy) > l {
  4120. return io.ErrUnexpectedEOF
  4121. }
  4122. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4123. iNdEx += skippy
  4124. }
  4125. }
  4126. if iNdEx > l {
  4127. return io.ErrUnexpectedEOF
  4128. }
  4129. return nil
  4130. }
  4131. func (m *ResourceInfo) Unmarshal(dAtA []byte) error {
  4132. l := len(dAtA)
  4133. iNdEx := 0
  4134. for iNdEx < l {
  4135. preIndex := iNdEx
  4136. var wire uint64
  4137. for shift := uint(0); ; shift += 7 {
  4138. if shift >= 64 {
  4139. return ErrIntOverflowErrorDetails
  4140. }
  4141. if iNdEx >= l {
  4142. return io.ErrUnexpectedEOF
  4143. }
  4144. b := dAtA[iNdEx]
  4145. iNdEx++
  4146. wire |= uint64(b&0x7F) << shift
  4147. if b < 0x80 {
  4148. break
  4149. }
  4150. }
  4151. fieldNum := int32(wire >> 3)
  4152. wireType := int(wire & 0x7)
  4153. if wireType == 4 {
  4154. return fmt.Errorf("proto: ResourceInfo: wiretype end group for non-group")
  4155. }
  4156. if fieldNum <= 0 {
  4157. return fmt.Errorf("proto: ResourceInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  4158. }
  4159. switch fieldNum {
  4160. case 1:
  4161. if wireType != 2 {
  4162. return fmt.Errorf("proto: wrong wireType = %d for field ResourceType", wireType)
  4163. }
  4164. var stringLen uint64
  4165. for shift := uint(0); ; shift += 7 {
  4166. if shift >= 64 {
  4167. return ErrIntOverflowErrorDetails
  4168. }
  4169. if iNdEx >= l {
  4170. return io.ErrUnexpectedEOF
  4171. }
  4172. b := dAtA[iNdEx]
  4173. iNdEx++
  4174. stringLen |= uint64(b&0x7F) << shift
  4175. if b < 0x80 {
  4176. break
  4177. }
  4178. }
  4179. intStringLen := int(stringLen)
  4180. if intStringLen < 0 {
  4181. return ErrInvalidLengthErrorDetails
  4182. }
  4183. postIndex := iNdEx + intStringLen
  4184. if postIndex < 0 {
  4185. return ErrInvalidLengthErrorDetails
  4186. }
  4187. if postIndex > l {
  4188. return io.ErrUnexpectedEOF
  4189. }
  4190. m.ResourceType = string(dAtA[iNdEx:postIndex])
  4191. iNdEx = postIndex
  4192. case 2:
  4193. if wireType != 2 {
  4194. return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType)
  4195. }
  4196. var stringLen uint64
  4197. for shift := uint(0); ; shift += 7 {
  4198. if shift >= 64 {
  4199. return ErrIntOverflowErrorDetails
  4200. }
  4201. if iNdEx >= l {
  4202. return io.ErrUnexpectedEOF
  4203. }
  4204. b := dAtA[iNdEx]
  4205. iNdEx++
  4206. stringLen |= uint64(b&0x7F) << shift
  4207. if b < 0x80 {
  4208. break
  4209. }
  4210. }
  4211. intStringLen := int(stringLen)
  4212. if intStringLen < 0 {
  4213. return ErrInvalidLengthErrorDetails
  4214. }
  4215. postIndex := iNdEx + intStringLen
  4216. if postIndex < 0 {
  4217. return ErrInvalidLengthErrorDetails
  4218. }
  4219. if postIndex > l {
  4220. return io.ErrUnexpectedEOF
  4221. }
  4222. m.ResourceName = string(dAtA[iNdEx:postIndex])
  4223. iNdEx = postIndex
  4224. case 3:
  4225. if wireType != 2 {
  4226. return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType)
  4227. }
  4228. var stringLen uint64
  4229. for shift := uint(0); ; shift += 7 {
  4230. if shift >= 64 {
  4231. return ErrIntOverflowErrorDetails
  4232. }
  4233. if iNdEx >= l {
  4234. return io.ErrUnexpectedEOF
  4235. }
  4236. b := dAtA[iNdEx]
  4237. iNdEx++
  4238. stringLen |= uint64(b&0x7F) << shift
  4239. if b < 0x80 {
  4240. break
  4241. }
  4242. }
  4243. intStringLen := int(stringLen)
  4244. if intStringLen < 0 {
  4245. return ErrInvalidLengthErrorDetails
  4246. }
  4247. postIndex := iNdEx + intStringLen
  4248. if postIndex < 0 {
  4249. return ErrInvalidLengthErrorDetails
  4250. }
  4251. if postIndex > l {
  4252. return io.ErrUnexpectedEOF
  4253. }
  4254. m.Owner = string(dAtA[iNdEx:postIndex])
  4255. iNdEx = postIndex
  4256. case 4:
  4257. if wireType != 2 {
  4258. return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  4259. }
  4260. var stringLen uint64
  4261. for shift := uint(0); ; shift += 7 {
  4262. if shift >= 64 {
  4263. return ErrIntOverflowErrorDetails
  4264. }
  4265. if iNdEx >= l {
  4266. return io.ErrUnexpectedEOF
  4267. }
  4268. b := dAtA[iNdEx]
  4269. iNdEx++
  4270. stringLen |= uint64(b&0x7F) << shift
  4271. if b < 0x80 {
  4272. break
  4273. }
  4274. }
  4275. intStringLen := int(stringLen)
  4276. if intStringLen < 0 {
  4277. return ErrInvalidLengthErrorDetails
  4278. }
  4279. postIndex := iNdEx + intStringLen
  4280. if postIndex < 0 {
  4281. return ErrInvalidLengthErrorDetails
  4282. }
  4283. if postIndex > l {
  4284. return io.ErrUnexpectedEOF
  4285. }
  4286. m.Description = string(dAtA[iNdEx:postIndex])
  4287. iNdEx = postIndex
  4288. default:
  4289. iNdEx = preIndex
  4290. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  4291. if err != nil {
  4292. return err
  4293. }
  4294. if skippy < 0 {
  4295. return ErrInvalidLengthErrorDetails
  4296. }
  4297. if (iNdEx + skippy) < 0 {
  4298. return ErrInvalidLengthErrorDetails
  4299. }
  4300. if (iNdEx + skippy) > l {
  4301. return io.ErrUnexpectedEOF
  4302. }
  4303. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4304. iNdEx += skippy
  4305. }
  4306. }
  4307. if iNdEx > l {
  4308. return io.ErrUnexpectedEOF
  4309. }
  4310. return nil
  4311. }
  4312. func (m *Help) Unmarshal(dAtA []byte) error {
  4313. l := len(dAtA)
  4314. iNdEx := 0
  4315. for iNdEx < l {
  4316. preIndex := iNdEx
  4317. var wire uint64
  4318. for shift := uint(0); ; shift += 7 {
  4319. if shift >= 64 {
  4320. return ErrIntOverflowErrorDetails
  4321. }
  4322. if iNdEx >= l {
  4323. return io.ErrUnexpectedEOF
  4324. }
  4325. b := dAtA[iNdEx]
  4326. iNdEx++
  4327. wire |= uint64(b&0x7F) << shift
  4328. if b < 0x80 {
  4329. break
  4330. }
  4331. }
  4332. fieldNum := int32(wire >> 3)
  4333. wireType := int(wire & 0x7)
  4334. if wireType == 4 {
  4335. return fmt.Errorf("proto: Help: wiretype end group for non-group")
  4336. }
  4337. if fieldNum <= 0 {
  4338. return fmt.Errorf("proto: Help: illegal tag %d (wire type %d)", fieldNum, wire)
  4339. }
  4340. switch fieldNum {
  4341. case 1:
  4342. if wireType != 2 {
  4343. return fmt.Errorf("proto: wrong wireType = %d for field Links", wireType)
  4344. }
  4345. var msglen int
  4346. for shift := uint(0); ; shift += 7 {
  4347. if shift >= 64 {
  4348. return ErrIntOverflowErrorDetails
  4349. }
  4350. if iNdEx >= l {
  4351. return io.ErrUnexpectedEOF
  4352. }
  4353. b := dAtA[iNdEx]
  4354. iNdEx++
  4355. msglen |= int(b&0x7F) << shift
  4356. if b < 0x80 {
  4357. break
  4358. }
  4359. }
  4360. if msglen < 0 {
  4361. return ErrInvalidLengthErrorDetails
  4362. }
  4363. postIndex := iNdEx + msglen
  4364. if postIndex < 0 {
  4365. return ErrInvalidLengthErrorDetails
  4366. }
  4367. if postIndex > l {
  4368. return io.ErrUnexpectedEOF
  4369. }
  4370. m.Links = append(m.Links, &Help_Link{})
  4371. if err := m.Links[len(m.Links)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4372. return err
  4373. }
  4374. iNdEx = postIndex
  4375. default:
  4376. iNdEx = preIndex
  4377. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  4378. if err != nil {
  4379. return err
  4380. }
  4381. if skippy < 0 {
  4382. return ErrInvalidLengthErrorDetails
  4383. }
  4384. if (iNdEx + skippy) < 0 {
  4385. return ErrInvalidLengthErrorDetails
  4386. }
  4387. if (iNdEx + skippy) > l {
  4388. return io.ErrUnexpectedEOF
  4389. }
  4390. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4391. iNdEx += skippy
  4392. }
  4393. }
  4394. if iNdEx > l {
  4395. return io.ErrUnexpectedEOF
  4396. }
  4397. return nil
  4398. }
  4399. func (m *Help_Link) Unmarshal(dAtA []byte) error {
  4400. l := len(dAtA)
  4401. iNdEx := 0
  4402. for iNdEx < l {
  4403. preIndex := iNdEx
  4404. var wire uint64
  4405. for shift := uint(0); ; shift += 7 {
  4406. if shift >= 64 {
  4407. return ErrIntOverflowErrorDetails
  4408. }
  4409. if iNdEx >= l {
  4410. return io.ErrUnexpectedEOF
  4411. }
  4412. b := dAtA[iNdEx]
  4413. iNdEx++
  4414. wire |= uint64(b&0x7F) << shift
  4415. if b < 0x80 {
  4416. break
  4417. }
  4418. }
  4419. fieldNum := int32(wire >> 3)
  4420. wireType := int(wire & 0x7)
  4421. if wireType == 4 {
  4422. return fmt.Errorf("proto: Link: wiretype end group for non-group")
  4423. }
  4424. if fieldNum <= 0 {
  4425. return fmt.Errorf("proto: Link: illegal tag %d (wire type %d)", fieldNum, wire)
  4426. }
  4427. switch fieldNum {
  4428. case 1:
  4429. if wireType != 2 {
  4430. return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  4431. }
  4432. var stringLen uint64
  4433. for shift := uint(0); ; shift += 7 {
  4434. if shift >= 64 {
  4435. return ErrIntOverflowErrorDetails
  4436. }
  4437. if iNdEx >= l {
  4438. return io.ErrUnexpectedEOF
  4439. }
  4440. b := dAtA[iNdEx]
  4441. iNdEx++
  4442. stringLen |= uint64(b&0x7F) << shift
  4443. if b < 0x80 {
  4444. break
  4445. }
  4446. }
  4447. intStringLen := int(stringLen)
  4448. if intStringLen < 0 {
  4449. return ErrInvalidLengthErrorDetails
  4450. }
  4451. postIndex := iNdEx + intStringLen
  4452. if postIndex < 0 {
  4453. return ErrInvalidLengthErrorDetails
  4454. }
  4455. if postIndex > l {
  4456. return io.ErrUnexpectedEOF
  4457. }
  4458. m.Description = string(dAtA[iNdEx:postIndex])
  4459. iNdEx = postIndex
  4460. case 2:
  4461. if wireType != 2 {
  4462. return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
  4463. }
  4464. var stringLen uint64
  4465. for shift := uint(0); ; shift += 7 {
  4466. if shift >= 64 {
  4467. return ErrIntOverflowErrorDetails
  4468. }
  4469. if iNdEx >= l {
  4470. return io.ErrUnexpectedEOF
  4471. }
  4472. b := dAtA[iNdEx]
  4473. iNdEx++
  4474. stringLen |= uint64(b&0x7F) << shift
  4475. if b < 0x80 {
  4476. break
  4477. }
  4478. }
  4479. intStringLen := int(stringLen)
  4480. if intStringLen < 0 {
  4481. return ErrInvalidLengthErrorDetails
  4482. }
  4483. postIndex := iNdEx + intStringLen
  4484. if postIndex < 0 {
  4485. return ErrInvalidLengthErrorDetails
  4486. }
  4487. if postIndex > l {
  4488. return io.ErrUnexpectedEOF
  4489. }
  4490. m.Url = string(dAtA[iNdEx:postIndex])
  4491. iNdEx = postIndex
  4492. default:
  4493. iNdEx = preIndex
  4494. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  4495. if err != nil {
  4496. return err
  4497. }
  4498. if skippy < 0 {
  4499. return ErrInvalidLengthErrorDetails
  4500. }
  4501. if (iNdEx + skippy) < 0 {
  4502. return ErrInvalidLengthErrorDetails
  4503. }
  4504. if (iNdEx + skippy) > l {
  4505. return io.ErrUnexpectedEOF
  4506. }
  4507. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4508. iNdEx += skippy
  4509. }
  4510. }
  4511. if iNdEx > l {
  4512. return io.ErrUnexpectedEOF
  4513. }
  4514. return nil
  4515. }
  4516. func (m *LocalizedMessage) Unmarshal(dAtA []byte) error {
  4517. l := len(dAtA)
  4518. iNdEx := 0
  4519. for iNdEx < l {
  4520. preIndex := iNdEx
  4521. var wire uint64
  4522. for shift := uint(0); ; shift += 7 {
  4523. if shift >= 64 {
  4524. return ErrIntOverflowErrorDetails
  4525. }
  4526. if iNdEx >= l {
  4527. return io.ErrUnexpectedEOF
  4528. }
  4529. b := dAtA[iNdEx]
  4530. iNdEx++
  4531. wire |= uint64(b&0x7F) << shift
  4532. if b < 0x80 {
  4533. break
  4534. }
  4535. }
  4536. fieldNum := int32(wire >> 3)
  4537. wireType := int(wire & 0x7)
  4538. if wireType == 4 {
  4539. return fmt.Errorf("proto: LocalizedMessage: wiretype end group for non-group")
  4540. }
  4541. if fieldNum <= 0 {
  4542. return fmt.Errorf("proto: LocalizedMessage: illegal tag %d (wire type %d)", fieldNum, wire)
  4543. }
  4544. switch fieldNum {
  4545. case 1:
  4546. if wireType != 2 {
  4547. return fmt.Errorf("proto: wrong wireType = %d for field Locale", wireType)
  4548. }
  4549. var stringLen uint64
  4550. for shift := uint(0); ; shift += 7 {
  4551. if shift >= 64 {
  4552. return ErrIntOverflowErrorDetails
  4553. }
  4554. if iNdEx >= l {
  4555. return io.ErrUnexpectedEOF
  4556. }
  4557. b := dAtA[iNdEx]
  4558. iNdEx++
  4559. stringLen |= uint64(b&0x7F) << shift
  4560. if b < 0x80 {
  4561. break
  4562. }
  4563. }
  4564. intStringLen := int(stringLen)
  4565. if intStringLen < 0 {
  4566. return ErrInvalidLengthErrorDetails
  4567. }
  4568. postIndex := iNdEx + intStringLen
  4569. if postIndex < 0 {
  4570. return ErrInvalidLengthErrorDetails
  4571. }
  4572. if postIndex > l {
  4573. return io.ErrUnexpectedEOF
  4574. }
  4575. m.Locale = string(dAtA[iNdEx:postIndex])
  4576. iNdEx = postIndex
  4577. case 2:
  4578. if wireType != 2 {
  4579. return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
  4580. }
  4581. var stringLen uint64
  4582. for shift := uint(0); ; shift += 7 {
  4583. if shift >= 64 {
  4584. return ErrIntOverflowErrorDetails
  4585. }
  4586. if iNdEx >= l {
  4587. return io.ErrUnexpectedEOF
  4588. }
  4589. b := dAtA[iNdEx]
  4590. iNdEx++
  4591. stringLen |= uint64(b&0x7F) << shift
  4592. if b < 0x80 {
  4593. break
  4594. }
  4595. }
  4596. intStringLen := int(stringLen)
  4597. if intStringLen < 0 {
  4598. return ErrInvalidLengthErrorDetails
  4599. }
  4600. postIndex := iNdEx + intStringLen
  4601. if postIndex < 0 {
  4602. return ErrInvalidLengthErrorDetails
  4603. }
  4604. if postIndex > l {
  4605. return io.ErrUnexpectedEOF
  4606. }
  4607. m.Message = string(dAtA[iNdEx:postIndex])
  4608. iNdEx = postIndex
  4609. default:
  4610. iNdEx = preIndex
  4611. skippy, err := skipErrorDetails(dAtA[iNdEx:])
  4612. if err != nil {
  4613. return err
  4614. }
  4615. if skippy < 0 {
  4616. return ErrInvalidLengthErrorDetails
  4617. }
  4618. if (iNdEx + skippy) < 0 {
  4619. return ErrInvalidLengthErrorDetails
  4620. }
  4621. if (iNdEx + skippy) > l {
  4622. return io.ErrUnexpectedEOF
  4623. }
  4624. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4625. iNdEx += skippy
  4626. }
  4627. }
  4628. if iNdEx > l {
  4629. return io.ErrUnexpectedEOF
  4630. }
  4631. return nil
  4632. }
  4633. func skipErrorDetails(dAtA []byte) (n int, err error) {
  4634. l := len(dAtA)
  4635. iNdEx := 0
  4636. for iNdEx < l {
  4637. var wire uint64
  4638. for shift := uint(0); ; shift += 7 {
  4639. if shift >= 64 {
  4640. return 0, ErrIntOverflowErrorDetails
  4641. }
  4642. if iNdEx >= l {
  4643. return 0, io.ErrUnexpectedEOF
  4644. }
  4645. b := dAtA[iNdEx]
  4646. iNdEx++
  4647. wire |= (uint64(b) & 0x7F) << shift
  4648. if b < 0x80 {
  4649. break
  4650. }
  4651. }
  4652. wireType := int(wire & 0x7)
  4653. switch wireType {
  4654. case 0:
  4655. for shift := uint(0); ; shift += 7 {
  4656. if shift >= 64 {
  4657. return 0, ErrIntOverflowErrorDetails
  4658. }
  4659. if iNdEx >= l {
  4660. return 0, io.ErrUnexpectedEOF
  4661. }
  4662. iNdEx++
  4663. if dAtA[iNdEx-1] < 0x80 {
  4664. break
  4665. }
  4666. }
  4667. return iNdEx, nil
  4668. case 1:
  4669. iNdEx += 8
  4670. return iNdEx, nil
  4671. case 2:
  4672. var length int
  4673. for shift := uint(0); ; shift += 7 {
  4674. if shift >= 64 {
  4675. return 0, ErrIntOverflowErrorDetails
  4676. }
  4677. if iNdEx >= l {
  4678. return 0, io.ErrUnexpectedEOF
  4679. }
  4680. b := dAtA[iNdEx]
  4681. iNdEx++
  4682. length |= (int(b) & 0x7F) << shift
  4683. if b < 0x80 {
  4684. break
  4685. }
  4686. }
  4687. if length < 0 {
  4688. return 0, ErrInvalidLengthErrorDetails
  4689. }
  4690. iNdEx += length
  4691. if iNdEx < 0 {
  4692. return 0, ErrInvalidLengthErrorDetails
  4693. }
  4694. return iNdEx, nil
  4695. case 3:
  4696. for {
  4697. var innerWire uint64
  4698. var start int = iNdEx
  4699. for shift := uint(0); ; shift += 7 {
  4700. if shift >= 64 {
  4701. return 0, ErrIntOverflowErrorDetails
  4702. }
  4703. if iNdEx >= l {
  4704. return 0, io.ErrUnexpectedEOF
  4705. }
  4706. b := dAtA[iNdEx]
  4707. iNdEx++
  4708. innerWire |= (uint64(b) & 0x7F) << shift
  4709. if b < 0x80 {
  4710. break
  4711. }
  4712. }
  4713. innerWireType := int(innerWire & 0x7)
  4714. if innerWireType == 4 {
  4715. break
  4716. }
  4717. next, err := skipErrorDetails(dAtA[start:])
  4718. if err != nil {
  4719. return 0, err
  4720. }
  4721. iNdEx = start + next
  4722. if iNdEx < 0 {
  4723. return 0, ErrInvalidLengthErrorDetails
  4724. }
  4725. }
  4726. return iNdEx, nil
  4727. case 4:
  4728. return iNdEx, nil
  4729. case 5:
  4730. iNdEx += 4
  4731. return iNdEx, nil
  4732. default:
  4733. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4734. }
  4735. }
  4736. panic("unreachable")
  4737. }
  4738. var (
  4739. ErrInvalidLengthErrorDetails = fmt.Errorf("proto: negative length found during unmarshaling")
  4740. ErrIntOverflowErrorDetails = fmt.Errorf("proto: integer overflow")
  4741. )