easyjson.go 90 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package audits
  3. import (
  4. json "encoding/json"
  5. cdp "github.com/chromedp/cdproto/cdp"
  6. network "github.com/chromedp/cdproto/network"
  7. runtime "github.com/chromedp/cdproto/runtime"
  8. easyjson "github.com/mailru/easyjson"
  9. jlexer "github.com/mailru/easyjson/jlexer"
  10. jwriter "github.com/mailru/easyjson/jwriter"
  11. )
  12. // suppress unused package warning
  13. var (
  14. _ *json.RawMessage
  15. _ *jlexer.Lexer
  16. _ *jwriter.Writer
  17. _ easyjson.Marshaler
  18. )
  19. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits(in *jlexer.Lexer, out *StylesheetLoadingIssueDetails) {
  20. isTopLevel := in.IsStart()
  21. if in.IsNull() {
  22. if isTopLevel {
  23. in.Consumed()
  24. }
  25. in.Skip()
  26. return
  27. }
  28. in.Delim('{')
  29. for !in.IsDelim('}') {
  30. key := in.UnsafeFieldName(false)
  31. in.WantColon()
  32. if in.IsNull() {
  33. in.Skip()
  34. in.WantComma()
  35. continue
  36. }
  37. switch key {
  38. case "sourceCodeLocation":
  39. if in.IsNull() {
  40. in.Skip()
  41. out.SourceCodeLocation = nil
  42. } else {
  43. if out.SourceCodeLocation == nil {
  44. out.SourceCodeLocation = new(SourceCodeLocation)
  45. }
  46. (*out.SourceCodeLocation).UnmarshalEasyJSON(in)
  47. }
  48. case "styleSheetLoadingIssueReason":
  49. (out.StyleSheetLoadingIssueReason).UnmarshalEasyJSON(in)
  50. case "failedRequestInfo":
  51. if in.IsNull() {
  52. in.Skip()
  53. out.FailedRequestInfo = nil
  54. } else {
  55. if out.FailedRequestInfo == nil {
  56. out.FailedRequestInfo = new(FailedRequestInfo)
  57. }
  58. (*out.FailedRequestInfo).UnmarshalEasyJSON(in)
  59. }
  60. default:
  61. in.SkipRecursive()
  62. }
  63. in.WantComma()
  64. }
  65. in.Delim('}')
  66. if isTopLevel {
  67. in.Consumed()
  68. }
  69. }
  70. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits(out *jwriter.Writer, in StylesheetLoadingIssueDetails) {
  71. out.RawByte('{')
  72. first := true
  73. _ = first
  74. {
  75. const prefix string = ",\"sourceCodeLocation\":"
  76. out.RawString(prefix[1:])
  77. if in.SourceCodeLocation == nil {
  78. out.RawString("null")
  79. } else {
  80. (*in.SourceCodeLocation).MarshalEasyJSON(out)
  81. }
  82. }
  83. {
  84. const prefix string = ",\"styleSheetLoadingIssueReason\":"
  85. out.RawString(prefix)
  86. (in.StyleSheetLoadingIssueReason).MarshalEasyJSON(out)
  87. }
  88. if in.FailedRequestInfo != nil {
  89. const prefix string = ",\"failedRequestInfo\":"
  90. out.RawString(prefix)
  91. (*in.FailedRequestInfo).MarshalEasyJSON(out)
  92. }
  93. out.RawByte('}')
  94. }
  95. // MarshalJSON supports json.Marshaler interface
  96. func (v StylesheetLoadingIssueDetails) MarshalJSON() ([]byte, error) {
  97. w := jwriter.Writer{}
  98. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits(&w, v)
  99. return w.Buffer.BuildBytes(), w.Error
  100. }
  101. // MarshalEasyJSON supports easyjson.Marshaler interface
  102. func (v StylesheetLoadingIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  103. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits(w, v)
  104. }
  105. // UnmarshalJSON supports json.Unmarshaler interface
  106. func (v *StylesheetLoadingIssueDetails) UnmarshalJSON(data []byte) error {
  107. r := jlexer.Lexer{Data: data}
  108. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits(&r, v)
  109. return r.Error()
  110. }
  111. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  112. func (v *StylesheetLoadingIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  113. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits(l, v)
  114. }
  115. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits1(in *jlexer.Lexer, out *SourceCodeLocation) {
  116. isTopLevel := in.IsStart()
  117. if in.IsNull() {
  118. if isTopLevel {
  119. in.Consumed()
  120. }
  121. in.Skip()
  122. return
  123. }
  124. in.Delim('{')
  125. for !in.IsDelim('}') {
  126. key := in.UnsafeFieldName(false)
  127. in.WantColon()
  128. if in.IsNull() {
  129. in.Skip()
  130. in.WantComma()
  131. continue
  132. }
  133. switch key {
  134. case "scriptId":
  135. out.ScriptID = runtime.ScriptID(in.String())
  136. case "url":
  137. out.URL = string(in.String())
  138. case "lineNumber":
  139. out.LineNumber = int64(in.Int64())
  140. case "columnNumber":
  141. out.ColumnNumber = int64(in.Int64())
  142. default:
  143. in.SkipRecursive()
  144. }
  145. in.WantComma()
  146. }
  147. in.Delim('}')
  148. if isTopLevel {
  149. in.Consumed()
  150. }
  151. }
  152. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits1(out *jwriter.Writer, in SourceCodeLocation) {
  153. out.RawByte('{')
  154. first := true
  155. _ = first
  156. if in.ScriptID != "" {
  157. const prefix string = ",\"scriptId\":"
  158. first = false
  159. out.RawString(prefix[1:])
  160. out.String(string(in.ScriptID))
  161. }
  162. {
  163. const prefix string = ",\"url\":"
  164. if first {
  165. first = false
  166. out.RawString(prefix[1:])
  167. } else {
  168. out.RawString(prefix)
  169. }
  170. out.String(string(in.URL))
  171. }
  172. {
  173. const prefix string = ",\"lineNumber\":"
  174. out.RawString(prefix)
  175. out.Int64(int64(in.LineNumber))
  176. }
  177. {
  178. const prefix string = ",\"columnNumber\":"
  179. out.RawString(prefix)
  180. out.Int64(int64(in.ColumnNumber))
  181. }
  182. out.RawByte('}')
  183. }
  184. // MarshalJSON supports json.Marshaler interface
  185. func (v SourceCodeLocation) MarshalJSON() ([]byte, error) {
  186. w := jwriter.Writer{}
  187. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits1(&w, v)
  188. return w.Buffer.BuildBytes(), w.Error
  189. }
  190. // MarshalEasyJSON supports easyjson.Marshaler interface
  191. func (v SourceCodeLocation) MarshalEasyJSON(w *jwriter.Writer) {
  192. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits1(w, v)
  193. }
  194. // UnmarshalJSON supports json.Unmarshaler interface
  195. func (v *SourceCodeLocation) UnmarshalJSON(data []byte) error {
  196. r := jlexer.Lexer{Data: data}
  197. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits1(&r, v)
  198. return r.Error()
  199. }
  200. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  201. func (v *SourceCodeLocation) UnmarshalEasyJSON(l *jlexer.Lexer) {
  202. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits1(l, v)
  203. }
  204. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits2(in *jlexer.Lexer, out *SharedArrayBufferIssueDetails) {
  205. isTopLevel := in.IsStart()
  206. if in.IsNull() {
  207. if isTopLevel {
  208. in.Consumed()
  209. }
  210. in.Skip()
  211. return
  212. }
  213. in.Delim('{')
  214. for !in.IsDelim('}') {
  215. key := in.UnsafeFieldName(false)
  216. in.WantColon()
  217. if in.IsNull() {
  218. in.Skip()
  219. in.WantComma()
  220. continue
  221. }
  222. switch key {
  223. case "sourceCodeLocation":
  224. if in.IsNull() {
  225. in.Skip()
  226. out.SourceCodeLocation = nil
  227. } else {
  228. if out.SourceCodeLocation == nil {
  229. out.SourceCodeLocation = new(SourceCodeLocation)
  230. }
  231. (*out.SourceCodeLocation).UnmarshalEasyJSON(in)
  232. }
  233. case "isWarning":
  234. out.IsWarning = bool(in.Bool())
  235. case "type":
  236. (out.Type).UnmarshalEasyJSON(in)
  237. default:
  238. in.SkipRecursive()
  239. }
  240. in.WantComma()
  241. }
  242. in.Delim('}')
  243. if isTopLevel {
  244. in.Consumed()
  245. }
  246. }
  247. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits2(out *jwriter.Writer, in SharedArrayBufferIssueDetails) {
  248. out.RawByte('{')
  249. first := true
  250. _ = first
  251. {
  252. const prefix string = ",\"sourceCodeLocation\":"
  253. out.RawString(prefix[1:])
  254. if in.SourceCodeLocation == nil {
  255. out.RawString("null")
  256. } else {
  257. (*in.SourceCodeLocation).MarshalEasyJSON(out)
  258. }
  259. }
  260. {
  261. const prefix string = ",\"isWarning\":"
  262. out.RawString(prefix)
  263. out.Bool(bool(in.IsWarning))
  264. }
  265. {
  266. const prefix string = ",\"type\":"
  267. out.RawString(prefix)
  268. (in.Type).MarshalEasyJSON(out)
  269. }
  270. out.RawByte('}')
  271. }
  272. // MarshalJSON supports json.Marshaler interface
  273. func (v SharedArrayBufferIssueDetails) MarshalJSON() ([]byte, error) {
  274. w := jwriter.Writer{}
  275. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits2(&w, v)
  276. return w.Buffer.BuildBytes(), w.Error
  277. }
  278. // MarshalEasyJSON supports easyjson.Marshaler interface
  279. func (v SharedArrayBufferIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  280. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits2(w, v)
  281. }
  282. // UnmarshalJSON supports json.Unmarshaler interface
  283. func (v *SharedArrayBufferIssueDetails) UnmarshalJSON(data []byte) error {
  284. r := jlexer.Lexer{Data: data}
  285. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits2(&r, v)
  286. return r.Error()
  287. }
  288. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  289. func (v *SharedArrayBufferIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  290. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits2(l, v)
  291. }
  292. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits3(in *jlexer.Lexer, out *QuirksModeIssueDetails) {
  293. isTopLevel := in.IsStart()
  294. if in.IsNull() {
  295. if isTopLevel {
  296. in.Consumed()
  297. }
  298. in.Skip()
  299. return
  300. }
  301. in.Delim('{')
  302. for !in.IsDelim('}') {
  303. key := in.UnsafeFieldName(false)
  304. in.WantColon()
  305. if in.IsNull() {
  306. in.Skip()
  307. in.WantComma()
  308. continue
  309. }
  310. switch key {
  311. case "isLimitedQuirksMode":
  312. out.IsLimitedQuirksMode = bool(in.Bool())
  313. case "documentNodeId":
  314. (out.DocumentNodeID).UnmarshalEasyJSON(in)
  315. case "url":
  316. out.URL = string(in.String())
  317. case "frameId":
  318. (out.FrameID).UnmarshalEasyJSON(in)
  319. case "loaderId":
  320. out.LoaderID = cdp.LoaderID(in.String())
  321. default:
  322. in.SkipRecursive()
  323. }
  324. in.WantComma()
  325. }
  326. in.Delim('}')
  327. if isTopLevel {
  328. in.Consumed()
  329. }
  330. }
  331. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits3(out *jwriter.Writer, in QuirksModeIssueDetails) {
  332. out.RawByte('{')
  333. first := true
  334. _ = first
  335. {
  336. const prefix string = ",\"isLimitedQuirksMode\":"
  337. out.RawString(prefix[1:])
  338. out.Bool(bool(in.IsLimitedQuirksMode))
  339. }
  340. {
  341. const prefix string = ",\"documentNodeId\":"
  342. out.RawString(prefix)
  343. out.Int64(int64(in.DocumentNodeID))
  344. }
  345. {
  346. const prefix string = ",\"url\":"
  347. out.RawString(prefix)
  348. out.String(string(in.URL))
  349. }
  350. {
  351. const prefix string = ",\"frameId\":"
  352. out.RawString(prefix)
  353. out.String(string(in.FrameID))
  354. }
  355. {
  356. const prefix string = ",\"loaderId\":"
  357. out.RawString(prefix)
  358. out.String(string(in.LoaderID))
  359. }
  360. out.RawByte('}')
  361. }
  362. // MarshalJSON supports json.Marshaler interface
  363. func (v QuirksModeIssueDetails) MarshalJSON() ([]byte, error) {
  364. w := jwriter.Writer{}
  365. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits3(&w, v)
  366. return w.Buffer.BuildBytes(), w.Error
  367. }
  368. // MarshalEasyJSON supports easyjson.Marshaler interface
  369. func (v QuirksModeIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  370. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits3(w, v)
  371. }
  372. // UnmarshalJSON supports json.Unmarshaler interface
  373. func (v *QuirksModeIssueDetails) UnmarshalJSON(data []byte) error {
  374. r := jlexer.Lexer{Data: data}
  375. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits3(&r, v)
  376. return r.Error()
  377. }
  378. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  379. func (v *QuirksModeIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  380. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits3(l, v)
  381. }
  382. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits4(in *jlexer.Lexer, out *PropertyRuleIssueDetails) {
  383. isTopLevel := in.IsStart()
  384. if in.IsNull() {
  385. if isTopLevel {
  386. in.Consumed()
  387. }
  388. in.Skip()
  389. return
  390. }
  391. in.Delim('{')
  392. for !in.IsDelim('}') {
  393. key := in.UnsafeFieldName(false)
  394. in.WantColon()
  395. if in.IsNull() {
  396. in.Skip()
  397. in.WantComma()
  398. continue
  399. }
  400. switch key {
  401. case "sourceCodeLocation":
  402. if in.IsNull() {
  403. in.Skip()
  404. out.SourceCodeLocation = nil
  405. } else {
  406. if out.SourceCodeLocation == nil {
  407. out.SourceCodeLocation = new(SourceCodeLocation)
  408. }
  409. (*out.SourceCodeLocation).UnmarshalEasyJSON(in)
  410. }
  411. case "propertyRuleIssueReason":
  412. (out.PropertyRuleIssueReason).UnmarshalEasyJSON(in)
  413. case "propertyValue":
  414. out.PropertyValue = string(in.String())
  415. default:
  416. in.SkipRecursive()
  417. }
  418. in.WantComma()
  419. }
  420. in.Delim('}')
  421. if isTopLevel {
  422. in.Consumed()
  423. }
  424. }
  425. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits4(out *jwriter.Writer, in PropertyRuleIssueDetails) {
  426. out.RawByte('{')
  427. first := true
  428. _ = first
  429. {
  430. const prefix string = ",\"sourceCodeLocation\":"
  431. out.RawString(prefix[1:])
  432. if in.SourceCodeLocation == nil {
  433. out.RawString("null")
  434. } else {
  435. (*in.SourceCodeLocation).MarshalEasyJSON(out)
  436. }
  437. }
  438. {
  439. const prefix string = ",\"propertyRuleIssueReason\":"
  440. out.RawString(prefix)
  441. (in.PropertyRuleIssueReason).MarshalEasyJSON(out)
  442. }
  443. if in.PropertyValue != "" {
  444. const prefix string = ",\"propertyValue\":"
  445. out.RawString(prefix)
  446. out.String(string(in.PropertyValue))
  447. }
  448. out.RawByte('}')
  449. }
  450. // MarshalJSON supports json.Marshaler interface
  451. func (v PropertyRuleIssueDetails) MarshalJSON() ([]byte, error) {
  452. w := jwriter.Writer{}
  453. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits4(&w, v)
  454. return w.Buffer.BuildBytes(), w.Error
  455. }
  456. // MarshalEasyJSON supports easyjson.Marshaler interface
  457. func (v PropertyRuleIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  458. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits4(w, v)
  459. }
  460. // UnmarshalJSON supports json.Unmarshaler interface
  461. func (v *PropertyRuleIssueDetails) UnmarshalJSON(data []byte) error {
  462. r := jlexer.Lexer{Data: data}
  463. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits4(&r, v)
  464. return r.Error()
  465. }
  466. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  467. func (v *PropertyRuleIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  468. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits4(l, v)
  469. }
  470. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits5(in *jlexer.Lexer, out *MixedContentIssueDetails) {
  471. isTopLevel := in.IsStart()
  472. if in.IsNull() {
  473. if isTopLevel {
  474. in.Consumed()
  475. }
  476. in.Skip()
  477. return
  478. }
  479. in.Delim('{')
  480. for !in.IsDelim('}') {
  481. key := in.UnsafeFieldName(false)
  482. in.WantColon()
  483. if in.IsNull() {
  484. in.Skip()
  485. in.WantComma()
  486. continue
  487. }
  488. switch key {
  489. case "resourceType":
  490. (out.ResourceType).UnmarshalEasyJSON(in)
  491. case "resolutionStatus":
  492. (out.ResolutionStatus).UnmarshalEasyJSON(in)
  493. case "insecureURL":
  494. out.InsecureURL = string(in.String())
  495. case "mainResourceURL":
  496. out.MainResourceURL = string(in.String())
  497. case "request":
  498. if in.IsNull() {
  499. in.Skip()
  500. out.Request = nil
  501. } else {
  502. if out.Request == nil {
  503. out.Request = new(AffectedRequest)
  504. }
  505. (*out.Request).UnmarshalEasyJSON(in)
  506. }
  507. case "frame":
  508. if in.IsNull() {
  509. in.Skip()
  510. out.Frame = nil
  511. } else {
  512. if out.Frame == nil {
  513. out.Frame = new(AffectedFrame)
  514. }
  515. (*out.Frame).UnmarshalEasyJSON(in)
  516. }
  517. default:
  518. in.SkipRecursive()
  519. }
  520. in.WantComma()
  521. }
  522. in.Delim('}')
  523. if isTopLevel {
  524. in.Consumed()
  525. }
  526. }
  527. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits5(out *jwriter.Writer, in MixedContentIssueDetails) {
  528. out.RawByte('{')
  529. first := true
  530. _ = first
  531. if in.ResourceType != "" {
  532. const prefix string = ",\"resourceType\":"
  533. first = false
  534. out.RawString(prefix[1:])
  535. (in.ResourceType).MarshalEasyJSON(out)
  536. }
  537. {
  538. const prefix string = ",\"resolutionStatus\":"
  539. if first {
  540. first = false
  541. out.RawString(prefix[1:])
  542. } else {
  543. out.RawString(prefix)
  544. }
  545. (in.ResolutionStatus).MarshalEasyJSON(out)
  546. }
  547. {
  548. const prefix string = ",\"insecureURL\":"
  549. out.RawString(prefix)
  550. out.String(string(in.InsecureURL))
  551. }
  552. {
  553. const prefix string = ",\"mainResourceURL\":"
  554. out.RawString(prefix)
  555. out.String(string(in.MainResourceURL))
  556. }
  557. if in.Request != nil {
  558. const prefix string = ",\"request\":"
  559. out.RawString(prefix)
  560. (*in.Request).MarshalEasyJSON(out)
  561. }
  562. if in.Frame != nil {
  563. const prefix string = ",\"frame\":"
  564. out.RawString(prefix)
  565. (*in.Frame).MarshalEasyJSON(out)
  566. }
  567. out.RawByte('}')
  568. }
  569. // MarshalJSON supports json.Marshaler interface
  570. func (v MixedContentIssueDetails) MarshalJSON() ([]byte, error) {
  571. w := jwriter.Writer{}
  572. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits5(&w, v)
  573. return w.Buffer.BuildBytes(), w.Error
  574. }
  575. // MarshalEasyJSON supports easyjson.Marshaler interface
  576. func (v MixedContentIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  577. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits5(w, v)
  578. }
  579. // UnmarshalJSON supports json.Unmarshaler interface
  580. func (v *MixedContentIssueDetails) UnmarshalJSON(data []byte) error {
  581. r := jlexer.Lexer{Data: data}
  582. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits5(&r, v)
  583. return r.Error()
  584. }
  585. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  586. func (v *MixedContentIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  587. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits5(l, v)
  588. }
  589. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits6(in *jlexer.Lexer, out *LowTextContrastIssueDetails) {
  590. isTopLevel := in.IsStart()
  591. if in.IsNull() {
  592. if isTopLevel {
  593. in.Consumed()
  594. }
  595. in.Skip()
  596. return
  597. }
  598. in.Delim('{')
  599. for !in.IsDelim('}') {
  600. key := in.UnsafeFieldName(false)
  601. in.WantColon()
  602. if in.IsNull() {
  603. in.Skip()
  604. in.WantComma()
  605. continue
  606. }
  607. switch key {
  608. case "violatingNodeId":
  609. (out.ViolatingNodeID).UnmarshalEasyJSON(in)
  610. case "violatingNodeSelector":
  611. out.ViolatingNodeSelector = string(in.String())
  612. case "contrastRatio":
  613. out.ContrastRatio = float64(in.Float64())
  614. case "thresholdAA":
  615. out.ThresholdAA = float64(in.Float64())
  616. case "thresholdAAA":
  617. out.ThresholdAAA = float64(in.Float64())
  618. case "fontSize":
  619. out.FontSize = string(in.String())
  620. case "fontWeight":
  621. out.FontWeight = string(in.String())
  622. default:
  623. in.SkipRecursive()
  624. }
  625. in.WantComma()
  626. }
  627. in.Delim('}')
  628. if isTopLevel {
  629. in.Consumed()
  630. }
  631. }
  632. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits6(out *jwriter.Writer, in LowTextContrastIssueDetails) {
  633. out.RawByte('{')
  634. first := true
  635. _ = first
  636. {
  637. const prefix string = ",\"violatingNodeId\":"
  638. out.RawString(prefix[1:])
  639. out.Int64(int64(in.ViolatingNodeID))
  640. }
  641. {
  642. const prefix string = ",\"violatingNodeSelector\":"
  643. out.RawString(prefix)
  644. out.String(string(in.ViolatingNodeSelector))
  645. }
  646. {
  647. const prefix string = ",\"contrastRatio\":"
  648. out.RawString(prefix)
  649. out.Float64(float64(in.ContrastRatio))
  650. }
  651. {
  652. const prefix string = ",\"thresholdAA\":"
  653. out.RawString(prefix)
  654. out.Float64(float64(in.ThresholdAA))
  655. }
  656. {
  657. const prefix string = ",\"thresholdAAA\":"
  658. out.RawString(prefix)
  659. out.Float64(float64(in.ThresholdAAA))
  660. }
  661. {
  662. const prefix string = ",\"fontSize\":"
  663. out.RawString(prefix)
  664. out.String(string(in.FontSize))
  665. }
  666. {
  667. const prefix string = ",\"fontWeight\":"
  668. out.RawString(prefix)
  669. out.String(string(in.FontWeight))
  670. }
  671. out.RawByte('}')
  672. }
  673. // MarshalJSON supports json.Marshaler interface
  674. func (v LowTextContrastIssueDetails) MarshalJSON() ([]byte, error) {
  675. w := jwriter.Writer{}
  676. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits6(&w, v)
  677. return w.Buffer.BuildBytes(), w.Error
  678. }
  679. // MarshalEasyJSON supports easyjson.Marshaler interface
  680. func (v LowTextContrastIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  681. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits6(w, v)
  682. }
  683. // UnmarshalJSON supports json.Unmarshaler interface
  684. func (v *LowTextContrastIssueDetails) UnmarshalJSON(data []byte) error {
  685. r := jlexer.Lexer{Data: data}
  686. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits6(&r, v)
  687. return r.Error()
  688. }
  689. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  690. func (v *LowTextContrastIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  691. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits6(l, v)
  692. }
  693. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits7(in *jlexer.Lexer, out *InspectorIssueDetails) {
  694. isTopLevel := in.IsStart()
  695. if in.IsNull() {
  696. if isTopLevel {
  697. in.Consumed()
  698. }
  699. in.Skip()
  700. return
  701. }
  702. in.Delim('{')
  703. for !in.IsDelim('}') {
  704. key := in.UnsafeFieldName(false)
  705. in.WantColon()
  706. if in.IsNull() {
  707. in.Skip()
  708. in.WantComma()
  709. continue
  710. }
  711. switch key {
  712. case "cookieIssueDetails":
  713. if in.IsNull() {
  714. in.Skip()
  715. out.CookieIssueDetails = nil
  716. } else {
  717. if out.CookieIssueDetails == nil {
  718. out.CookieIssueDetails = new(CookieIssueDetails)
  719. }
  720. (*out.CookieIssueDetails).UnmarshalEasyJSON(in)
  721. }
  722. case "mixedContentIssueDetails":
  723. if in.IsNull() {
  724. in.Skip()
  725. out.MixedContentIssueDetails = nil
  726. } else {
  727. if out.MixedContentIssueDetails == nil {
  728. out.MixedContentIssueDetails = new(MixedContentIssueDetails)
  729. }
  730. (*out.MixedContentIssueDetails).UnmarshalEasyJSON(in)
  731. }
  732. case "blockedByResponseIssueDetails":
  733. if in.IsNull() {
  734. in.Skip()
  735. out.BlockedByResponseIssueDetails = nil
  736. } else {
  737. if out.BlockedByResponseIssueDetails == nil {
  738. out.BlockedByResponseIssueDetails = new(BlockedByResponseIssueDetails)
  739. }
  740. (*out.BlockedByResponseIssueDetails).UnmarshalEasyJSON(in)
  741. }
  742. case "heavyAdIssueDetails":
  743. if in.IsNull() {
  744. in.Skip()
  745. out.HeavyAdIssueDetails = nil
  746. } else {
  747. if out.HeavyAdIssueDetails == nil {
  748. out.HeavyAdIssueDetails = new(HeavyAdIssueDetails)
  749. }
  750. (*out.HeavyAdIssueDetails).UnmarshalEasyJSON(in)
  751. }
  752. case "contentSecurityPolicyIssueDetails":
  753. if in.IsNull() {
  754. in.Skip()
  755. out.ContentSecurityPolicyIssueDetails = nil
  756. } else {
  757. if out.ContentSecurityPolicyIssueDetails == nil {
  758. out.ContentSecurityPolicyIssueDetails = new(ContentSecurityPolicyIssueDetails)
  759. }
  760. (*out.ContentSecurityPolicyIssueDetails).UnmarshalEasyJSON(in)
  761. }
  762. case "sharedArrayBufferIssueDetails":
  763. if in.IsNull() {
  764. in.Skip()
  765. out.SharedArrayBufferIssueDetails = nil
  766. } else {
  767. if out.SharedArrayBufferIssueDetails == nil {
  768. out.SharedArrayBufferIssueDetails = new(SharedArrayBufferIssueDetails)
  769. }
  770. (*out.SharedArrayBufferIssueDetails).UnmarshalEasyJSON(in)
  771. }
  772. case "lowTextContrastIssueDetails":
  773. if in.IsNull() {
  774. in.Skip()
  775. out.LowTextContrastIssueDetails = nil
  776. } else {
  777. if out.LowTextContrastIssueDetails == nil {
  778. out.LowTextContrastIssueDetails = new(LowTextContrastIssueDetails)
  779. }
  780. (*out.LowTextContrastIssueDetails).UnmarshalEasyJSON(in)
  781. }
  782. case "corsIssueDetails":
  783. if in.IsNull() {
  784. in.Skip()
  785. out.CorsIssueDetails = nil
  786. } else {
  787. if out.CorsIssueDetails == nil {
  788. out.CorsIssueDetails = new(CorsIssueDetails)
  789. }
  790. (*out.CorsIssueDetails).UnmarshalEasyJSON(in)
  791. }
  792. case "attributionReportingIssueDetails":
  793. if in.IsNull() {
  794. in.Skip()
  795. out.AttributionReportingIssueDetails = nil
  796. } else {
  797. if out.AttributionReportingIssueDetails == nil {
  798. out.AttributionReportingIssueDetails = new(AttributionReportingIssueDetails)
  799. }
  800. (*out.AttributionReportingIssueDetails).UnmarshalEasyJSON(in)
  801. }
  802. case "quirksModeIssueDetails":
  803. if in.IsNull() {
  804. in.Skip()
  805. out.QuirksModeIssueDetails = nil
  806. } else {
  807. if out.QuirksModeIssueDetails == nil {
  808. out.QuirksModeIssueDetails = new(QuirksModeIssueDetails)
  809. }
  810. (*out.QuirksModeIssueDetails).UnmarshalEasyJSON(in)
  811. }
  812. case "genericIssueDetails":
  813. if in.IsNull() {
  814. in.Skip()
  815. out.GenericIssueDetails = nil
  816. } else {
  817. if out.GenericIssueDetails == nil {
  818. out.GenericIssueDetails = new(GenericIssueDetails)
  819. }
  820. (*out.GenericIssueDetails).UnmarshalEasyJSON(in)
  821. }
  822. case "deprecationIssueDetails":
  823. if in.IsNull() {
  824. in.Skip()
  825. out.DeprecationIssueDetails = nil
  826. } else {
  827. if out.DeprecationIssueDetails == nil {
  828. out.DeprecationIssueDetails = new(DeprecationIssueDetails)
  829. }
  830. (*out.DeprecationIssueDetails).UnmarshalEasyJSON(in)
  831. }
  832. case "clientHintIssueDetails":
  833. if in.IsNull() {
  834. in.Skip()
  835. out.ClientHintIssueDetails = nil
  836. } else {
  837. if out.ClientHintIssueDetails == nil {
  838. out.ClientHintIssueDetails = new(ClientHintIssueDetails)
  839. }
  840. (*out.ClientHintIssueDetails).UnmarshalEasyJSON(in)
  841. }
  842. case "federatedAuthRequestIssueDetails":
  843. if in.IsNull() {
  844. in.Skip()
  845. out.FederatedAuthRequestIssueDetails = nil
  846. } else {
  847. if out.FederatedAuthRequestIssueDetails == nil {
  848. out.FederatedAuthRequestIssueDetails = new(FederatedAuthRequestIssueDetails)
  849. }
  850. (*out.FederatedAuthRequestIssueDetails).UnmarshalEasyJSON(in)
  851. }
  852. case "bounceTrackingIssueDetails":
  853. if in.IsNull() {
  854. in.Skip()
  855. out.BounceTrackingIssueDetails = nil
  856. } else {
  857. if out.BounceTrackingIssueDetails == nil {
  858. out.BounceTrackingIssueDetails = new(BounceTrackingIssueDetails)
  859. }
  860. (*out.BounceTrackingIssueDetails).UnmarshalEasyJSON(in)
  861. }
  862. case "cookieDeprecationMetadataIssueDetails":
  863. if in.IsNull() {
  864. in.Skip()
  865. out.CookieDeprecationMetadataIssueDetails = nil
  866. } else {
  867. if out.CookieDeprecationMetadataIssueDetails == nil {
  868. out.CookieDeprecationMetadataIssueDetails = new(CookieDeprecationMetadataIssueDetails)
  869. }
  870. (*out.CookieDeprecationMetadataIssueDetails).UnmarshalEasyJSON(in)
  871. }
  872. case "stylesheetLoadingIssueDetails":
  873. if in.IsNull() {
  874. in.Skip()
  875. out.StylesheetLoadingIssueDetails = nil
  876. } else {
  877. if out.StylesheetLoadingIssueDetails == nil {
  878. out.StylesheetLoadingIssueDetails = new(StylesheetLoadingIssueDetails)
  879. }
  880. (*out.StylesheetLoadingIssueDetails).UnmarshalEasyJSON(in)
  881. }
  882. case "propertyRuleIssueDetails":
  883. if in.IsNull() {
  884. in.Skip()
  885. out.PropertyRuleIssueDetails = nil
  886. } else {
  887. if out.PropertyRuleIssueDetails == nil {
  888. out.PropertyRuleIssueDetails = new(PropertyRuleIssueDetails)
  889. }
  890. (*out.PropertyRuleIssueDetails).UnmarshalEasyJSON(in)
  891. }
  892. case "federatedAuthUserInfoRequestIssueDetails":
  893. if in.IsNull() {
  894. in.Skip()
  895. out.FederatedAuthUserInfoRequestIssueDetails = nil
  896. } else {
  897. if out.FederatedAuthUserInfoRequestIssueDetails == nil {
  898. out.FederatedAuthUserInfoRequestIssueDetails = new(FederatedAuthUserInfoRequestIssueDetails)
  899. }
  900. (*out.FederatedAuthUserInfoRequestIssueDetails).UnmarshalEasyJSON(in)
  901. }
  902. default:
  903. in.SkipRecursive()
  904. }
  905. in.WantComma()
  906. }
  907. in.Delim('}')
  908. if isTopLevel {
  909. in.Consumed()
  910. }
  911. }
  912. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits7(out *jwriter.Writer, in InspectorIssueDetails) {
  913. out.RawByte('{')
  914. first := true
  915. _ = first
  916. if in.CookieIssueDetails != nil {
  917. const prefix string = ",\"cookieIssueDetails\":"
  918. first = false
  919. out.RawString(prefix[1:])
  920. (*in.CookieIssueDetails).MarshalEasyJSON(out)
  921. }
  922. if in.MixedContentIssueDetails != nil {
  923. const prefix string = ",\"mixedContentIssueDetails\":"
  924. if first {
  925. first = false
  926. out.RawString(prefix[1:])
  927. } else {
  928. out.RawString(prefix)
  929. }
  930. (*in.MixedContentIssueDetails).MarshalEasyJSON(out)
  931. }
  932. if in.BlockedByResponseIssueDetails != nil {
  933. const prefix string = ",\"blockedByResponseIssueDetails\":"
  934. if first {
  935. first = false
  936. out.RawString(prefix[1:])
  937. } else {
  938. out.RawString(prefix)
  939. }
  940. (*in.BlockedByResponseIssueDetails).MarshalEasyJSON(out)
  941. }
  942. if in.HeavyAdIssueDetails != nil {
  943. const prefix string = ",\"heavyAdIssueDetails\":"
  944. if first {
  945. first = false
  946. out.RawString(prefix[1:])
  947. } else {
  948. out.RawString(prefix)
  949. }
  950. (*in.HeavyAdIssueDetails).MarshalEasyJSON(out)
  951. }
  952. if in.ContentSecurityPolicyIssueDetails != nil {
  953. const prefix string = ",\"contentSecurityPolicyIssueDetails\":"
  954. if first {
  955. first = false
  956. out.RawString(prefix[1:])
  957. } else {
  958. out.RawString(prefix)
  959. }
  960. (*in.ContentSecurityPolicyIssueDetails).MarshalEasyJSON(out)
  961. }
  962. if in.SharedArrayBufferIssueDetails != nil {
  963. const prefix string = ",\"sharedArrayBufferIssueDetails\":"
  964. if first {
  965. first = false
  966. out.RawString(prefix[1:])
  967. } else {
  968. out.RawString(prefix)
  969. }
  970. (*in.SharedArrayBufferIssueDetails).MarshalEasyJSON(out)
  971. }
  972. if in.LowTextContrastIssueDetails != nil {
  973. const prefix string = ",\"lowTextContrastIssueDetails\":"
  974. if first {
  975. first = false
  976. out.RawString(prefix[1:])
  977. } else {
  978. out.RawString(prefix)
  979. }
  980. (*in.LowTextContrastIssueDetails).MarshalEasyJSON(out)
  981. }
  982. if in.CorsIssueDetails != nil {
  983. const prefix string = ",\"corsIssueDetails\":"
  984. if first {
  985. first = false
  986. out.RawString(prefix[1:])
  987. } else {
  988. out.RawString(prefix)
  989. }
  990. (*in.CorsIssueDetails).MarshalEasyJSON(out)
  991. }
  992. if in.AttributionReportingIssueDetails != nil {
  993. const prefix string = ",\"attributionReportingIssueDetails\":"
  994. if first {
  995. first = false
  996. out.RawString(prefix[1:])
  997. } else {
  998. out.RawString(prefix)
  999. }
  1000. (*in.AttributionReportingIssueDetails).MarshalEasyJSON(out)
  1001. }
  1002. if in.QuirksModeIssueDetails != nil {
  1003. const prefix string = ",\"quirksModeIssueDetails\":"
  1004. if first {
  1005. first = false
  1006. out.RawString(prefix[1:])
  1007. } else {
  1008. out.RawString(prefix)
  1009. }
  1010. (*in.QuirksModeIssueDetails).MarshalEasyJSON(out)
  1011. }
  1012. if in.GenericIssueDetails != nil {
  1013. const prefix string = ",\"genericIssueDetails\":"
  1014. if first {
  1015. first = false
  1016. out.RawString(prefix[1:])
  1017. } else {
  1018. out.RawString(prefix)
  1019. }
  1020. (*in.GenericIssueDetails).MarshalEasyJSON(out)
  1021. }
  1022. if in.DeprecationIssueDetails != nil {
  1023. const prefix string = ",\"deprecationIssueDetails\":"
  1024. if first {
  1025. first = false
  1026. out.RawString(prefix[1:])
  1027. } else {
  1028. out.RawString(prefix)
  1029. }
  1030. (*in.DeprecationIssueDetails).MarshalEasyJSON(out)
  1031. }
  1032. if in.ClientHintIssueDetails != nil {
  1033. const prefix string = ",\"clientHintIssueDetails\":"
  1034. if first {
  1035. first = false
  1036. out.RawString(prefix[1:])
  1037. } else {
  1038. out.RawString(prefix)
  1039. }
  1040. (*in.ClientHintIssueDetails).MarshalEasyJSON(out)
  1041. }
  1042. if in.FederatedAuthRequestIssueDetails != nil {
  1043. const prefix string = ",\"federatedAuthRequestIssueDetails\":"
  1044. if first {
  1045. first = false
  1046. out.RawString(prefix[1:])
  1047. } else {
  1048. out.RawString(prefix)
  1049. }
  1050. (*in.FederatedAuthRequestIssueDetails).MarshalEasyJSON(out)
  1051. }
  1052. if in.BounceTrackingIssueDetails != nil {
  1053. const prefix string = ",\"bounceTrackingIssueDetails\":"
  1054. if first {
  1055. first = false
  1056. out.RawString(prefix[1:])
  1057. } else {
  1058. out.RawString(prefix)
  1059. }
  1060. (*in.BounceTrackingIssueDetails).MarshalEasyJSON(out)
  1061. }
  1062. if in.CookieDeprecationMetadataIssueDetails != nil {
  1063. const prefix string = ",\"cookieDeprecationMetadataIssueDetails\":"
  1064. if first {
  1065. first = false
  1066. out.RawString(prefix[1:])
  1067. } else {
  1068. out.RawString(prefix)
  1069. }
  1070. (*in.CookieDeprecationMetadataIssueDetails).MarshalEasyJSON(out)
  1071. }
  1072. if in.StylesheetLoadingIssueDetails != nil {
  1073. const prefix string = ",\"stylesheetLoadingIssueDetails\":"
  1074. if first {
  1075. first = false
  1076. out.RawString(prefix[1:])
  1077. } else {
  1078. out.RawString(prefix)
  1079. }
  1080. (*in.StylesheetLoadingIssueDetails).MarshalEasyJSON(out)
  1081. }
  1082. if in.PropertyRuleIssueDetails != nil {
  1083. const prefix string = ",\"propertyRuleIssueDetails\":"
  1084. if first {
  1085. first = false
  1086. out.RawString(prefix[1:])
  1087. } else {
  1088. out.RawString(prefix)
  1089. }
  1090. (*in.PropertyRuleIssueDetails).MarshalEasyJSON(out)
  1091. }
  1092. if in.FederatedAuthUserInfoRequestIssueDetails != nil {
  1093. const prefix string = ",\"federatedAuthUserInfoRequestIssueDetails\":"
  1094. if first {
  1095. first = false
  1096. out.RawString(prefix[1:])
  1097. } else {
  1098. out.RawString(prefix)
  1099. }
  1100. (*in.FederatedAuthUserInfoRequestIssueDetails).MarshalEasyJSON(out)
  1101. }
  1102. out.RawByte('}')
  1103. }
  1104. // MarshalJSON supports json.Marshaler interface
  1105. func (v InspectorIssueDetails) MarshalJSON() ([]byte, error) {
  1106. w := jwriter.Writer{}
  1107. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits7(&w, v)
  1108. return w.Buffer.BuildBytes(), w.Error
  1109. }
  1110. // MarshalEasyJSON supports easyjson.Marshaler interface
  1111. func (v InspectorIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  1112. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits7(w, v)
  1113. }
  1114. // UnmarshalJSON supports json.Unmarshaler interface
  1115. func (v *InspectorIssueDetails) UnmarshalJSON(data []byte) error {
  1116. r := jlexer.Lexer{Data: data}
  1117. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits7(&r, v)
  1118. return r.Error()
  1119. }
  1120. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1121. func (v *InspectorIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1122. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits7(l, v)
  1123. }
  1124. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits8(in *jlexer.Lexer, out *InspectorIssue) {
  1125. isTopLevel := in.IsStart()
  1126. if in.IsNull() {
  1127. if isTopLevel {
  1128. in.Consumed()
  1129. }
  1130. in.Skip()
  1131. return
  1132. }
  1133. in.Delim('{')
  1134. for !in.IsDelim('}') {
  1135. key := in.UnsafeFieldName(false)
  1136. in.WantColon()
  1137. if in.IsNull() {
  1138. in.Skip()
  1139. in.WantComma()
  1140. continue
  1141. }
  1142. switch key {
  1143. case "code":
  1144. (out.Code).UnmarshalEasyJSON(in)
  1145. case "details":
  1146. if in.IsNull() {
  1147. in.Skip()
  1148. out.Details = nil
  1149. } else {
  1150. if out.Details == nil {
  1151. out.Details = new(InspectorIssueDetails)
  1152. }
  1153. (*out.Details).UnmarshalEasyJSON(in)
  1154. }
  1155. case "issueId":
  1156. out.IssueID = IssueID(in.String())
  1157. default:
  1158. in.SkipRecursive()
  1159. }
  1160. in.WantComma()
  1161. }
  1162. in.Delim('}')
  1163. if isTopLevel {
  1164. in.Consumed()
  1165. }
  1166. }
  1167. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits8(out *jwriter.Writer, in InspectorIssue) {
  1168. out.RawByte('{')
  1169. first := true
  1170. _ = first
  1171. {
  1172. const prefix string = ",\"code\":"
  1173. out.RawString(prefix[1:])
  1174. (in.Code).MarshalEasyJSON(out)
  1175. }
  1176. {
  1177. const prefix string = ",\"details\":"
  1178. out.RawString(prefix)
  1179. if in.Details == nil {
  1180. out.RawString("null")
  1181. } else {
  1182. (*in.Details).MarshalEasyJSON(out)
  1183. }
  1184. }
  1185. if in.IssueID != "" {
  1186. const prefix string = ",\"issueId\":"
  1187. out.RawString(prefix)
  1188. out.String(string(in.IssueID))
  1189. }
  1190. out.RawByte('}')
  1191. }
  1192. // MarshalJSON supports json.Marshaler interface
  1193. func (v InspectorIssue) MarshalJSON() ([]byte, error) {
  1194. w := jwriter.Writer{}
  1195. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits8(&w, v)
  1196. return w.Buffer.BuildBytes(), w.Error
  1197. }
  1198. // MarshalEasyJSON supports easyjson.Marshaler interface
  1199. func (v InspectorIssue) MarshalEasyJSON(w *jwriter.Writer) {
  1200. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits8(w, v)
  1201. }
  1202. // UnmarshalJSON supports json.Unmarshaler interface
  1203. func (v *InspectorIssue) UnmarshalJSON(data []byte) error {
  1204. r := jlexer.Lexer{Data: data}
  1205. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits8(&r, v)
  1206. return r.Error()
  1207. }
  1208. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1209. func (v *InspectorIssue) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1210. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits8(l, v)
  1211. }
  1212. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits9(in *jlexer.Lexer, out *HeavyAdIssueDetails) {
  1213. isTopLevel := in.IsStart()
  1214. if in.IsNull() {
  1215. if isTopLevel {
  1216. in.Consumed()
  1217. }
  1218. in.Skip()
  1219. return
  1220. }
  1221. in.Delim('{')
  1222. for !in.IsDelim('}') {
  1223. key := in.UnsafeFieldName(false)
  1224. in.WantColon()
  1225. if in.IsNull() {
  1226. in.Skip()
  1227. in.WantComma()
  1228. continue
  1229. }
  1230. switch key {
  1231. case "resolution":
  1232. (out.Resolution).UnmarshalEasyJSON(in)
  1233. case "reason":
  1234. (out.Reason).UnmarshalEasyJSON(in)
  1235. case "frame":
  1236. if in.IsNull() {
  1237. in.Skip()
  1238. out.Frame = nil
  1239. } else {
  1240. if out.Frame == nil {
  1241. out.Frame = new(AffectedFrame)
  1242. }
  1243. (*out.Frame).UnmarshalEasyJSON(in)
  1244. }
  1245. default:
  1246. in.SkipRecursive()
  1247. }
  1248. in.WantComma()
  1249. }
  1250. in.Delim('}')
  1251. if isTopLevel {
  1252. in.Consumed()
  1253. }
  1254. }
  1255. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits9(out *jwriter.Writer, in HeavyAdIssueDetails) {
  1256. out.RawByte('{')
  1257. first := true
  1258. _ = first
  1259. {
  1260. const prefix string = ",\"resolution\":"
  1261. out.RawString(prefix[1:])
  1262. (in.Resolution).MarshalEasyJSON(out)
  1263. }
  1264. {
  1265. const prefix string = ",\"reason\":"
  1266. out.RawString(prefix)
  1267. (in.Reason).MarshalEasyJSON(out)
  1268. }
  1269. {
  1270. const prefix string = ",\"frame\":"
  1271. out.RawString(prefix)
  1272. if in.Frame == nil {
  1273. out.RawString("null")
  1274. } else {
  1275. (*in.Frame).MarshalEasyJSON(out)
  1276. }
  1277. }
  1278. out.RawByte('}')
  1279. }
  1280. // MarshalJSON supports json.Marshaler interface
  1281. func (v HeavyAdIssueDetails) MarshalJSON() ([]byte, error) {
  1282. w := jwriter.Writer{}
  1283. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits9(&w, v)
  1284. return w.Buffer.BuildBytes(), w.Error
  1285. }
  1286. // MarshalEasyJSON supports easyjson.Marshaler interface
  1287. func (v HeavyAdIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  1288. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits9(w, v)
  1289. }
  1290. // UnmarshalJSON supports json.Unmarshaler interface
  1291. func (v *HeavyAdIssueDetails) UnmarshalJSON(data []byte) error {
  1292. r := jlexer.Lexer{Data: data}
  1293. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits9(&r, v)
  1294. return r.Error()
  1295. }
  1296. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1297. func (v *HeavyAdIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1298. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits9(l, v)
  1299. }
  1300. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits10(in *jlexer.Lexer, out *GetEncodedResponseReturns) {
  1301. isTopLevel := in.IsStart()
  1302. if in.IsNull() {
  1303. if isTopLevel {
  1304. in.Consumed()
  1305. }
  1306. in.Skip()
  1307. return
  1308. }
  1309. in.Delim('{')
  1310. for !in.IsDelim('}') {
  1311. key := in.UnsafeFieldName(false)
  1312. in.WantColon()
  1313. if in.IsNull() {
  1314. in.Skip()
  1315. in.WantComma()
  1316. continue
  1317. }
  1318. switch key {
  1319. case "body":
  1320. out.Body = string(in.String())
  1321. case "originalSize":
  1322. out.OriginalSize = int64(in.Int64())
  1323. case "encodedSize":
  1324. out.EncodedSize = int64(in.Int64())
  1325. default:
  1326. in.SkipRecursive()
  1327. }
  1328. in.WantComma()
  1329. }
  1330. in.Delim('}')
  1331. if isTopLevel {
  1332. in.Consumed()
  1333. }
  1334. }
  1335. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits10(out *jwriter.Writer, in GetEncodedResponseReturns) {
  1336. out.RawByte('{')
  1337. first := true
  1338. _ = first
  1339. if in.Body != "" {
  1340. const prefix string = ",\"body\":"
  1341. first = false
  1342. out.RawString(prefix[1:])
  1343. out.String(string(in.Body))
  1344. }
  1345. if in.OriginalSize != 0 {
  1346. const prefix string = ",\"originalSize\":"
  1347. if first {
  1348. first = false
  1349. out.RawString(prefix[1:])
  1350. } else {
  1351. out.RawString(prefix)
  1352. }
  1353. out.Int64(int64(in.OriginalSize))
  1354. }
  1355. if in.EncodedSize != 0 {
  1356. const prefix string = ",\"encodedSize\":"
  1357. if first {
  1358. first = false
  1359. out.RawString(prefix[1:])
  1360. } else {
  1361. out.RawString(prefix)
  1362. }
  1363. out.Int64(int64(in.EncodedSize))
  1364. }
  1365. out.RawByte('}')
  1366. }
  1367. // MarshalJSON supports json.Marshaler interface
  1368. func (v GetEncodedResponseReturns) MarshalJSON() ([]byte, error) {
  1369. w := jwriter.Writer{}
  1370. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits10(&w, v)
  1371. return w.Buffer.BuildBytes(), w.Error
  1372. }
  1373. // MarshalEasyJSON supports easyjson.Marshaler interface
  1374. func (v GetEncodedResponseReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1375. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits10(w, v)
  1376. }
  1377. // UnmarshalJSON supports json.Unmarshaler interface
  1378. func (v *GetEncodedResponseReturns) UnmarshalJSON(data []byte) error {
  1379. r := jlexer.Lexer{Data: data}
  1380. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits10(&r, v)
  1381. return r.Error()
  1382. }
  1383. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1384. func (v *GetEncodedResponseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1385. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits10(l, v)
  1386. }
  1387. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits11(in *jlexer.Lexer, out *GetEncodedResponseParams) {
  1388. isTopLevel := in.IsStart()
  1389. if in.IsNull() {
  1390. if isTopLevel {
  1391. in.Consumed()
  1392. }
  1393. in.Skip()
  1394. return
  1395. }
  1396. in.Delim('{')
  1397. for !in.IsDelim('}') {
  1398. key := in.UnsafeFieldName(false)
  1399. in.WantColon()
  1400. if in.IsNull() {
  1401. in.Skip()
  1402. in.WantComma()
  1403. continue
  1404. }
  1405. switch key {
  1406. case "requestId":
  1407. out.RequestID = network.RequestID(in.String())
  1408. case "encoding":
  1409. (out.Encoding).UnmarshalEasyJSON(in)
  1410. case "quality":
  1411. out.Quality = float64(in.Float64())
  1412. case "sizeOnly":
  1413. out.SizeOnly = bool(in.Bool())
  1414. default:
  1415. in.SkipRecursive()
  1416. }
  1417. in.WantComma()
  1418. }
  1419. in.Delim('}')
  1420. if isTopLevel {
  1421. in.Consumed()
  1422. }
  1423. }
  1424. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits11(out *jwriter.Writer, in GetEncodedResponseParams) {
  1425. out.RawByte('{')
  1426. first := true
  1427. _ = first
  1428. {
  1429. const prefix string = ",\"requestId\":"
  1430. out.RawString(prefix[1:])
  1431. out.String(string(in.RequestID))
  1432. }
  1433. {
  1434. const prefix string = ",\"encoding\":"
  1435. out.RawString(prefix)
  1436. (in.Encoding).MarshalEasyJSON(out)
  1437. }
  1438. if in.Quality != 0 {
  1439. const prefix string = ",\"quality\":"
  1440. out.RawString(prefix)
  1441. out.Float64(float64(in.Quality))
  1442. }
  1443. if in.SizeOnly {
  1444. const prefix string = ",\"sizeOnly\":"
  1445. out.RawString(prefix)
  1446. out.Bool(bool(in.SizeOnly))
  1447. }
  1448. out.RawByte('}')
  1449. }
  1450. // MarshalJSON supports json.Marshaler interface
  1451. func (v GetEncodedResponseParams) MarshalJSON() ([]byte, error) {
  1452. w := jwriter.Writer{}
  1453. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits11(&w, v)
  1454. return w.Buffer.BuildBytes(), w.Error
  1455. }
  1456. // MarshalEasyJSON supports easyjson.Marshaler interface
  1457. func (v GetEncodedResponseParams) MarshalEasyJSON(w *jwriter.Writer) {
  1458. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits11(w, v)
  1459. }
  1460. // UnmarshalJSON supports json.Unmarshaler interface
  1461. func (v *GetEncodedResponseParams) UnmarshalJSON(data []byte) error {
  1462. r := jlexer.Lexer{Data: data}
  1463. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits11(&r, v)
  1464. return r.Error()
  1465. }
  1466. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1467. func (v *GetEncodedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1468. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits11(l, v)
  1469. }
  1470. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits12(in *jlexer.Lexer, out *GenericIssueDetails) {
  1471. isTopLevel := in.IsStart()
  1472. if in.IsNull() {
  1473. if isTopLevel {
  1474. in.Consumed()
  1475. }
  1476. in.Skip()
  1477. return
  1478. }
  1479. in.Delim('{')
  1480. for !in.IsDelim('}') {
  1481. key := in.UnsafeFieldName(false)
  1482. in.WantColon()
  1483. if in.IsNull() {
  1484. in.Skip()
  1485. in.WantComma()
  1486. continue
  1487. }
  1488. switch key {
  1489. case "errorType":
  1490. (out.ErrorType).UnmarshalEasyJSON(in)
  1491. case "frameId":
  1492. (out.FrameID).UnmarshalEasyJSON(in)
  1493. case "violatingNodeId":
  1494. (out.ViolatingNodeID).UnmarshalEasyJSON(in)
  1495. case "violatingNodeAttribute":
  1496. out.ViolatingNodeAttribute = string(in.String())
  1497. case "request":
  1498. if in.IsNull() {
  1499. in.Skip()
  1500. out.Request = nil
  1501. } else {
  1502. if out.Request == nil {
  1503. out.Request = new(AffectedRequest)
  1504. }
  1505. (*out.Request).UnmarshalEasyJSON(in)
  1506. }
  1507. default:
  1508. in.SkipRecursive()
  1509. }
  1510. in.WantComma()
  1511. }
  1512. in.Delim('}')
  1513. if isTopLevel {
  1514. in.Consumed()
  1515. }
  1516. }
  1517. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits12(out *jwriter.Writer, in GenericIssueDetails) {
  1518. out.RawByte('{')
  1519. first := true
  1520. _ = first
  1521. {
  1522. const prefix string = ",\"errorType\":"
  1523. out.RawString(prefix[1:])
  1524. (in.ErrorType).MarshalEasyJSON(out)
  1525. }
  1526. if in.FrameID != "" {
  1527. const prefix string = ",\"frameId\":"
  1528. out.RawString(prefix)
  1529. out.String(string(in.FrameID))
  1530. }
  1531. if in.ViolatingNodeID != 0 {
  1532. const prefix string = ",\"violatingNodeId\":"
  1533. out.RawString(prefix)
  1534. out.Int64(int64(in.ViolatingNodeID))
  1535. }
  1536. if in.ViolatingNodeAttribute != "" {
  1537. const prefix string = ",\"violatingNodeAttribute\":"
  1538. out.RawString(prefix)
  1539. out.String(string(in.ViolatingNodeAttribute))
  1540. }
  1541. if in.Request != nil {
  1542. const prefix string = ",\"request\":"
  1543. out.RawString(prefix)
  1544. (*in.Request).MarshalEasyJSON(out)
  1545. }
  1546. out.RawByte('}')
  1547. }
  1548. // MarshalJSON supports json.Marshaler interface
  1549. func (v GenericIssueDetails) MarshalJSON() ([]byte, error) {
  1550. w := jwriter.Writer{}
  1551. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits12(&w, v)
  1552. return w.Buffer.BuildBytes(), w.Error
  1553. }
  1554. // MarshalEasyJSON supports easyjson.Marshaler interface
  1555. func (v GenericIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  1556. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits12(w, v)
  1557. }
  1558. // UnmarshalJSON supports json.Unmarshaler interface
  1559. func (v *GenericIssueDetails) UnmarshalJSON(data []byte) error {
  1560. r := jlexer.Lexer{Data: data}
  1561. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits12(&r, v)
  1562. return r.Error()
  1563. }
  1564. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1565. func (v *GenericIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1566. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits12(l, v)
  1567. }
  1568. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits13(in *jlexer.Lexer, out *FederatedAuthUserInfoRequestIssueDetails) {
  1569. isTopLevel := in.IsStart()
  1570. if in.IsNull() {
  1571. if isTopLevel {
  1572. in.Consumed()
  1573. }
  1574. in.Skip()
  1575. return
  1576. }
  1577. in.Delim('{')
  1578. for !in.IsDelim('}') {
  1579. key := in.UnsafeFieldName(false)
  1580. in.WantColon()
  1581. if in.IsNull() {
  1582. in.Skip()
  1583. in.WantComma()
  1584. continue
  1585. }
  1586. switch key {
  1587. case "federatedAuthUserInfoRequestIssueReason":
  1588. (out.FederatedAuthUserInfoRequestIssueReason).UnmarshalEasyJSON(in)
  1589. default:
  1590. in.SkipRecursive()
  1591. }
  1592. in.WantComma()
  1593. }
  1594. in.Delim('}')
  1595. if isTopLevel {
  1596. in.Consumed()
  1597. }
  1598. }
  1599. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits13(out *jwriter.Writer, in FederatedAuthUserInfoRequestIssueDetails) {
  1600. out.RawByte('{')
  1601. first := true
  1602. _ = first
  1603. {
  1604. const prefix string = ",\"federatedAuthUserInfoRequestIssueReason\":"
  1605. out.RawString(prefix[1:])
  1606. (in.FederatedAuthUserInfoRequestIssueReason).MarshalEasyJSON(out)
  1607. }
  1608. out.RawByte('}')
  1609. }
  1610. // MarshalJSON supports json.Marshaler interface
  1611. func (v FederatedAuthUserInfoRequestIssueDetails) MarshalJSON() ([]byte, error) {
  1612. w := jwriter.Writer{}
  1613. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits13(&w, v)
  1614. return w.Buffer.BuildBytes(), w.Error
  1615. }
  1616. // MarshalEasyJSON supports easyjson.Marshaler interface
  1617. func (v FederatedAuthUserInfoRequestIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  1618. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits13(w, v)
  1619. }
  1620. // UnmarshalJSON supports json.Unmarshaler interface
  1621. func (v *FederatedAuthUserInfoRequestIssueDetails) UnmarshalJSON(data []byte) error {
  1622. r := jlexer.Lexer{Data: data}
  1623. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits13(&r, v)
  1624. return r.Error()
  1625. }
  1626. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1627. func (v *FederatedAuthUserInfoRequestIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1628. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits13(l, v)
  1629. }
  1630. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits14(in *jlexer.Lexer, out *FederatedAuthRequestIssueDetails) {
  1631. isTopLevel := in.IsStart()
  1632. if in.IsNull() {
  1633. if isTopLevel {
  1634. in.Consumed()
  1635. }
  1636. in.Skip()
  1637. return
  1638. }
  1639. in.Delim('{')
  1640. for !in.IsDelim('}') {
  1641. key := in.UnsafeFieldName(false)
  1642. in.WantColon()
  1643. if in.IsNull() {
  1644. in.Skip()
  1645. in.WantComma()
  1646. continue
  1647. }
  1648. switch key {
  1649. case "federatedAuthRequestIssueReason":
  1650. (out.FederatedAuthRequestIssueReason).UnmarshalEasyJSON(in)
  1651. default:
  1652. in.SkipRecursive()
  1653. }
  1654. in.WantComma()
  1655. }
  1656. in.Delim('}')
  1657. if isTopLevel {
  1658. in.Consumed()
  1659. }
  1660. }
  1661. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits14(out *jwriter.Writer, in FederatedAuthRequestIssueDetails) {
  1662. out.RawByte('{')
  1663. first := true
  1664. _ = first
  1665. {
  1666. const prefix string = ",\"federatedAuthRequestIssueReason\":"
  1667. out.RawString(prefix[1:])
  1668. (in.FederatedAuthRequestIssueReason).MarshalEasyJSON(out)
  1669. }
  1670. out.RawByte('}')
  1671. }
  1672. // MarshalJSON supports json.Marshaler interface
  1673. func (v FederatedAuthRequestIssueDetails) MarshalJSON() ([]byte, error) {
  1674. w := jwriter.Writer{}
  1675. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits14(&w, v)
  1676. return w.Buffer.BuildBytes(), w.Error
  1677. }
  1678. // MarshalEasyJSON supports easyjson.Marshaler interface
  1679. func (v FederatedAuthRequestIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  1680. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits14(w, v)
  1681. }
  1682. // UnmarshalJSON supports json.Unmarshaler interface
  1683. func (v *FederatedAuthRequestIssueDetails) UnmarshalJSON(data []byte) error {
  1684. r := jlexer.Lexer{Data: data}
  1685. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits14(&r, v)
  1686. return r.Error()
  1687. }
  1688. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1689. func (v *FederatedAuthRequestIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1690. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits14(l, v)
  1691. }
  1692. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits15(in *jlexer.Lexer, out *FailedRequestInfo) {
  1693. isTopLevel := in.IsStart()
  1694. if in.IsNull() {
  1695. if isTopLevel {
  1696. in.Consumed()
  1697. }
  1698. in.Skip()
  1699. return
  1700. }
  1701. in.Delim('{')
  1702. for !in.IsDelim('}') {
  1703. key := in.UnsafeFieldName(false)
  1704. in.WantColon()
  1705. if in.IsNull() {
  1706. in.Skip()
  1707. in.WantComma()
  1708. continue
  1709. }
  1710. switch key {
  1711. case "url":
  1712. out.URL = string(in.String())
  1713. case "failureMessage":
  1714. out.FailureMessage = string(in.String())
  1715. case "requestId":
  1716. out.RequestID = network.RequestID(in.String())
  1717. default:
  1718. in.SkipRecursive()
  1719. }
  1720. in.WantComma()
  1721. }
  1722. in.Delim('}')
  1723. if isTopLevel {
  1724. in.Consumed()
  1725. }
  1726. }
  1727. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits15(out *jwriter.Writer, in FailedRequestInfo) {
  1728. out.RawByte('{')
  1729. first := true
  1730. _ = first
  1731. {
  1732. const prefix string = ",\"url\":"
  1733. out.RawString(prefix[1:])
  1734. out.String(string(in.URL))
  1735. }
  1736. {
  1737. const prefix string = ",\"failureMessage\":"
  1738. out.RawString(prefix)
  1739. out.String(string(in.FailureMessage))
  1740. }
  1741. if in.RequestID != "" {
  1742. const prefix string = ",\"requestId\":"
  1743. out.RawString(prefix)
  1744. out.String(string(in.RequestID))
  1745. }
  1746. out.RawByte('}')
  1747. }
  1748. // MarshalJSON supports json.Marshaler interface
  1749. func (v FailedRequestInfo) MarshalJSON() ([]byte, error) {
  1750. w := jwriter.Writer{}
  1751. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits15(&w, v)
  1752. return w.Buffer.BuildBytes(), w.Error
  1753. }
  1754. // MarshalEasyJSON supports easyjson.Marshaler interface
  1755. func (v FailedRequestInfo) MarshalEasyJSON(w *jwriter.Writer) {
  1756. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits15(w, v)
  1757. }
  1758. // UnmarshalJSON supports json.Unmarshaler interface
  1759. func (v *FailedRequestInfo) UnmarshalJSON(data []byte) error {
  1760. r := jlexer.Lexer{Data: data}
  1761. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits15(&r, v)
  1762. return r.Error()
  1763. }
  1764. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1765. func (v *FailedRequestInfo) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1766. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits15(l, v)
  1767. }
  1768. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits16(in *jlexer.Lexer, out *EventIssueAdded) {
  1769. isTopLevel := in.IsStart()
  1770. if in.IsNull() {
  1771. if isTopLevel {
  1772. in.Consumed()
  1773. }
  1774. in.Skip()
  1775. return
  1776. }
  1777. in.Delim('{')
  1778. for !in.IsDelim('}') {
  1779. key := in.UnsafeFieldName(false)
  1780. in.WantColon()
  1781. if in.IsNull() {
  1782. in.Skip()
  1783. in.WantComma()
  1784. continue
  1785. }
  1786. switch key {
  1787. case "issue":
  1788. if in.IsNull() {
  1789. in.Skip()
  1790. out.Issue = nil
  1791. } else {
  1792. if out.Issue == nil {
  1793. out.Issue = new(InspectorIssue)
  1794. }
  1795. (*out.Issue).UnmarshalEasyJSON(in)
  1796. }
  1797. default:
  1798. in.SkipRecursive()
  1799. }
  1800. in.WantComma()
  1801. }
  1802. in.Delim('}')
  1803. if isTopLevel {
  1804. in.Consumed()
  1805. }
  1806. }
  1807. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits16(out *jwriter.Writer, in EventIssueAdded) {
  1808. out.RawByte('{')
  1809. first := true
  1810. _ = first
  1811. {
  1812. const prefix string = ",\"issue\":"
  1813. out.RawString(prefix[1:])
  1814. if in.Issue == nil {
  1815. out.RawString("null")
  1816. } else {
  1817. (*in.Issue).MarshalEasyJSON(out)
  1818. }
  1819. }
  1820. out.RawByte('}')
  1821. }
  1822. // MarshalJSON supports json.Marshaler interface
  1823. func (v EventIssueAdded) MarshalJSON() ([]byte, error) {
  1824. w := jwriter.Writer{}
  1825. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits16(&w, v)
  1826. return w.Buffer.BuildBytes(), w.Error
  1827. }
  1828. // MarshalEasyJSON supports easyjson.Marshaler interface
  1829. func (v EventIssueAdded) MarshalEasyJSON(w *jwriter.Writer) {
  1830. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits16(w, v)
  1831. }
  1832. // UnmarshalJSON supports json.Unmarshaler interface
  1833. func (v *EventIssueAdded) UnmarshalJSON(data []byte) error {
  1834. r := jlexer.Lexer{Data: data}
  1835. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits16(&r, v)
  1836. return r.Error()
  1837. }
  1838. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1839. func (v *EventIssueAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1840. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits16(l, v)
  1841. }
  1842. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits17(in *jlexer.Lexer, out *EnableParams) {
  1843. isTopLevel := in.IsStart()
  1844. if in.IsNull() {
  1845. if isTopLevel {
  1846. in.Consumed()
  1847. }
  1848. in.Skip()
  1849. return
  1850. }
  1851. in.Delim('{')
  1852. for !in.IsDelim('}') {
  1853. key := in.UnsafeFieldName(false)
  1854. in.WantColon()
  1855. if in.IsNull() {
  1856. in.Skip()
  1857. in.WantComma()
  1858. continue
  1859. }
  1860. switch key {
  1861. default:
  1862. in.SkipRecursive()
  1863. }
  1864. in.WantComma()
  1865. }
  1866. in.Delim('}')
  1867. if isTopLevel {
  1868. in.Consumed()
  1869. }
  1870. }
  1871. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits17(out *jwriter.Writer, in EnableParams) {
  1872. out.RawByte('{')
  1873. first := true
  1874. _ = first
  1875. out.RawByte('}')
  1876. }
  1877. // MarshalJSON supports json.Marshaler interface
  1878. func (v EnableParams) MarshalJSON() ([]byte, error) {
  1879. w := jwriter.Writer{}
  1880. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits17(&w, v)
  1881. return w.Buffer.BuildBytes(), w.Error
  1882. }
  1883. // MarshalEasyJSON supports easyjson.Marshaler interface
  1884. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  1885. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits17(w, v)
  1886. }
  1887. // UnmarshalJSON supports json.Unmarshaler interface
  1888. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  1889. r := jlexer.Lexer{Data: data}
  1890. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits17(&r, v)
  1891. return r.Error()
  1892. }
  1893. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1894. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1895. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits17(l, v)
  1896. }
  1897. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits18(in *jlexer.Lexer, out *DisableParams) {
  1898. isTopLevel := in.IsStart()
  1899. if in.IsNull() {
  1900. if isTopLevel {
  1901. in.Consumed()
  1902. }
  1903. in.Skip()
  1904. return
  1905. }
  1906. in.Delim('{')
  1907. for !in.IsDelim('}') {
  1908. key := in.UnsafeFieldName(false)
  1909. in.WantColon()
  1910. if in.IsNull() {
  1911. in.Skip()
  1912. in.WantComma()
  1913. continue
  1914. }
  1915. switch key {
  1916. default:
  1917. in.SkipRecursive()
  1918. }
  1919. in.WantComma()
  1920. }
  1921. in.Delim('}')
  1922. if isTopLevel {
  1923. in.Consumed()
  1924. }
  1925. }
  1926. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits18(out *jwriter.Writer, in DisableParams) {
  1927. out.RawByte('{')
  1928. first := true
  1929. _ = first
  1930. out.RawByte('}')
  1931. }
  1932. // MarshalJSON supports json.Marshaler interface
  1933. func (v DisableParams) MarshalJSON() ([]byte, error) {
  1934. w := jwriter.Writer{}
  1935. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits18(&w, v)
  1936. return w.Buffer.BuildBytes(), w.Error
  1937. }
  1938. // MarshalEasyJSON supports easyjson.Marshaler interface
  1939. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  1940. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits18(w, v)
  1941. }
  1942. // UnmarshalJSON supports json.Unmarshaler interface
  1943. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  1944. r := jlexer.Lexer{Data: data}
  1945. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits18(&r, v)
  1946. return r.Error()
  1947. }
  1948. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1949. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1950. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits18(l, v)
  1951. }
  1952. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits19(in *jlexer.Lexer, out *DeprecationIssueDetails) {
  1953. isTopLevel := in.IsStart()
  1954. if in.IsNull() {
  1955. if isTopLevel {
  1956. in.Consumed()
  1957. }
  1958. in.Skip()
  1959. return
  1960. }
  1961. in.Delim('{')
  1962. for !in.IsDelim('}') {
  1963. key := in.UnsafeFieldName(false)
  1964. in.WantColon()
  1965. if in.IsNull() {
  1966. in.Skip()
  1967. in.WantComma()
  1968. continue
  1969. }
  1970. switch key {
  1971. case "affectedFrame":
  1972. if in.IsNull() {
  1973. in.Skip()
  1974. out.AffectedFrame = nil
  1975. } else {
  1976. if out.AffectedFrame == nil {
  1977. out.AffectedFrame = new(AffectedFrame)
  1978. }
  1979. (*out.AffectedFrame).UnmarshalEasyJSON(in)
  1980. }
  1981. case "sourceCodeLocation":
  1982. if in.IsNull() {
  1983. in.Skip()
  1984. out.SourceCodeLocation = nil
  1985. } else {
  1986. if out.SourceCodeLocation == nil {
  1987. out.SourceCodeLocation = new(SourceCodeLocation)
  1988. }
  1989. (*out.SourceCodeLocation).UnmarshalEasyJSON(in)
  1990. }
  1991. case "type":
  1992. out.Type = string(in.String())
  1993. default:
  1994. in.SkipRecursive()
  1995. }
  1996. in.WantComma()
  1997. }
  1998. in.Delim('}')
  1999. if isTopLevel {
  2000. in.Consumed()
  2001. }
  2002. }
  2003. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits19(out *jwriter.Writer, in DeprecationIssueDetails) {
  2004. out.RawByte('{')
  2005. first := true
  2006. _ = first
  2007. if in.AffectedFrame != nil {
  2008. const prefix string = ",\"affectedFrame\":"
  2009. first = false
  2010. out.RawString(prefix[1:])
  2011. (*in.AffectedFrame).MarshalEasyJSON(out)
  2012. }
  2013. {
  2014. const prefix string = ",\"sourceCodeLocation\":"
  2015. if first {
  2016. first = false
  2017. out.RawString(prefix[1:])
  2018. } else {
  2019. out.RawString(prefix)
  2020. }
  2021. if in.SourceCodeLocation == nil {
  2022. out.RawString("null")
  2023. } else {
  2024. (*in.SourceCodeLocation).MarshalEasyJSON(out)
  2025. }
  2026. }
  2027. {
  2028. const prefix string = ",\"type\":"
  2029. out.RawString(prefix)
  2030. out.String(string(in.Type))
  2031. }
  2032. out.RawByte('}')
  2033. }
  2034. // MarshalJSON supports json.Marshaler interface
  2035. func (v DeprecationIssueDetails) MarshalJSON() ([]byte, error) {
  2036. w := jwriter.Writer{}
  2037. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits19(&w, v)
  2038. return w.Buffer.BuildBytes(), w.Error
  2039. }
  2040. // MarshalEasyJSON supports easyjson.Marshaler interface
  2041. func (v DeprecationIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  2042. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits19(w, v)
  2043. }
  2044. // UnmarshalJSON supports json.Unmarshaler interface
  2045. func (v *DeprecationIssueDetails) UnmarshalJSON(data []byte) error {
  2046. r := jlexer.Lexer{Data: data}
  2047. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits19(&r, v)
  2048. return r.Error()
  2049. }
  2050. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2051. func (v *DeprecationIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2052. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits19(l, v)
  2053. }
  2054. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits20(in *jlexer.Lexer, out *CorsIssueDetails) {
  2055. isTopLevel := in.IsStart()
  2056. if in.IsNull() {
  2057. if isTopLevel {
  2058. in.Consumed()
  2059. }
  2060. in.Skip()
  2061. return
  2062. }
  2063. in.Delim('{')
  2064. for !in.IsDelim('}') {
  2065. key := in.UnsafeFieldName(false)
  2066. in.WantColon()
  2067. if in.IsNull() {
  2068. in.Skip()
  2069. in.WantComma()
  2070. continue
  2071. }
  2072. switch key {
  2073. case "corsErrorStatus":
  2074. if in.IsNull() {
  2075. in.Skip()
  2076. out.CorsErrorStatus = nil
  2077. } else {
  2078. if out.CorsErrorStatus == nil {
  2079. out.CorsErrorStatus = new(network.CorsErrorStatus)
  2080. }
  2081. (*out.CorsErrorStatus).UnmarshalEasyJSON(in)
  2082. }
  2083. case "isWarning":
  2084. out.IsWarning = bool(in.Bool())
  2085. case "request":
  2086. if in.IsNull() {
  2087. in.Skip()
  2088. out.Request = nil
  2089. } else {
  2090. if out.Request == nil {
  2091. out.Request = new(AffectedRequest)
  2092. }
  2093. (*out.Request).UnmarshalEasyJSON(in)
  2094. }
  2095. case "location":
  2096. if in.IsNull() {
  2097. in.Skip()
  2098. out.Location = nil
  2099. } else {
  2100. if out.Location == nil {
  2101. out.Location = new(SourceCodeLocation)
  2102. }
  2103. (*out.Location).UnmarshalEasyJSON(in)
  2104. }
  2105. case "initiatorOrigin":
  2106. out.InitiatorOrigin = string(in.String())
  2107. case "resourceIPAddressSpace":
  2108. (out.ResourceIPAddressSpace).UnmarshalEasyJSON(in)
  2109. case "clientSecurityState":
  2110. if in.IsNull() {
  2111. in.Skip()
  2112. out.ClientSecurityState = nil
  2113. } else {
  2114. if out.ClientSecurityState == nil {
  2115. out.ClientSecurityState = new(network.ClientSecurityState)
  2116. }
  2117. (*out.ClientSecurityState).UnmarshalEasyJSON(in)
  2118. }
  2119. default:
  2120. in.SkipRecursive()
  2121. }
  2122. in.WantComma()
  2123. }
  2124. in.Delim('}')
  2125. if isTopLevel {
  2126. in.Consumed()
  2127. }
  2128. }
  2129. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits20(out *jwriter.Writer, in CorsIssueDetails) {
  2130. out.RawByte('{')
  2131. first := true
  2132. _ = first
  2133. {
  2134. const prefix string = ",\"corsErrorStatus\":"
  2135. out.RawString(prefix[1:])
  2136. if in.CorsErrorStatus == nil {
  2137. out.RawString("null")
  2138. } else {
  2139. (*in.CorsErrorStatus).MarshalEasyJSON(out)
  2140. }
  2141. }
  2142. {
  2143. const prefix string = ",\"isWarning\":"
  2144. out.RawString(prefix)
  2145. out.Bool(bool(in.IsWarning))
  2146. }
  2147. {
  2148. const prefix string = ",\"request\":"
  2149. out.RawString(prefix)
  2150. if in.Request == nil {
  2151. out.RawString("null")
  2152. } else {
  2153. (*in.Request).MarshalEasyJSON(out)
  2154. }
  2155. }
  2156. if in.Location != nil {
  2157. const prefix string = ",\"location\":"
  2158. out.RawString(prefix)
  2159. (*in.Location).MarshalEasyJSON(out)
  2160. }
  2161. if in.InitiatorOrigin != "" {
  2162. const prefix string = ",\"initiatorOrigin\":"
  2163. out.RawString(prefix)
  2164. out.String(string(in.InitiatorOrigin))
  2165. }
  2166. if in.ResourceIPAddressSpace != "" {
  2167. const prefix string = ",\"resourceIPAddressSpace\":"
  2168. out.RawString(prefix)
  2169. (in.ResourceIPAddressSpace).MarshalEasyJSON(out)
  2170. }
  2171. if in.ClientSecurityState != nil {
  2172. const prefix string = ",\"clientSecurityState\":"
  2173. out.RawString(prefix)
  2174. (*in.ClientSecurityState).MarshalEasyJSON(out)
  2175. }
  2176. out.RawByte('}')
  2177. }
  2178. // MarshalJSON supports json.Marshaler interface
  2179. func (v CorsIssueDetails) MarshalJSON() ([]byte, error) {
  2180. w := jwriter.Writer{}
  2181. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits20(&w, v)
  2182. return w.Buffer.BuildBytes(), w.Error
  2183. }
  2184. // MarshalEasyJSON supports easyjson.Marshaler interface
  2185. func (v CorsIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  2186. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits20(w, v)
  2187. }
  2188. // UnmarshalJSON supports json.Unmarshaler interface
  2189. func (v *CorsIssueDetails) UnmarshalJSON(data []byte) error {
  2190. r := jlexer.Lexer{Data: data}
  2191. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits20(&r, v)
  2192. return r.Error()
  2193. }
  2194. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2195. func (v *CorsIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2196. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits20(l, v)
  2197. }
  2198. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits21(in *jlexer.Lexer, out *CookieIssueDetails) {
  2199. isTopLevel := in.IsStart()
  2200. if in.IsNull() {
  2201. if isTopLevel {
  2202. in.Consumed()
  2203. }
  2204. in.Skip()
  2205. return
  2206. }
  2207. in.Delim('{')
  2208. for !in.IsDelim('}') {
  2209. key := in.UnsafeFieldName(false)
  2210. in.WantColon()
  2211. if in.IsNull() {
  2212. in.Skip()
  2213. in.WantComma()
  2214. continue
  2215. }
  2216. switch key {
  2217. case "cookie":
  2218. if in.IsNull() {
  2219. in.Skip()
  2220. out.Cookie = nil
  2221. } else {
  2222. if out.Cookie == nil {
  2223. out.Cookie = new(AffectedCookie)
  2224. }
  2225. (*out.Cookie).UnmarshalEasyJSON(in)
  2226. }
  2227. case "rawCookieLine":
  2228. out.RawCookieLine = string(in.String())
  2229. case "cookieWarningReasons":
  2230. if in.IsNull() {
  2231. in.Skip()
  2232. out.CookieWarningReasons = nil
  2233. } else {
  2234. in.Delim('[')
  2235. if out.CookieWarningReasons == nil {
  2236. if !in.IsDelim(']') {
  2237. out.CookieWarningReasons = make([]CookieWarningReason, 0, 4)
  2238. } else {
  2239. out.CookieWarningReasons = []CookieWarningReason{}
  2240. }
  2241. } else {
  2242. out.CookieWarningReasons = (out.CookieWarningReasons)[:0]
  2243. }
  2244. for !in.IsDelim(']') {
  2245. var v1 CookieWarningReason
  2246. (v1).UnmarshalEasyJSON(in)
  2247. out.CookieWarningReasons = append(out.CookieWarningReasons, v1)
  2248. in.WantComma()
  2249. }
  2250. in.Delim(']')
  2251. }
  2252. case "cookieExclusionReasons":
  2253. if in.IsNull() {
  2254. in.Skip()
  2255. out.CookieExclusionReasons = nil
  2256. } else {
  2257. in.Delim('[')
  2258. if out.CookieExclusionReasons == nil {
  2259. if !in.IsDelim(']') {
  2260. out.CookieExclusionReasons = make([]CookieExclusionReason, 0, 4)
  2261. } else {
  2262. out.CookieExclusionReasons = []CookieExclusionReason{}
  2263. }
  2264. } else {
  2265. out.CookieExclusionReasons = (out.CookieExclusionReasons)[:0]
  2266. }
  2267. for !in.IsDelim(']') {
  2268. var v2 CookieExclusionReason
  2269. (v2).UnmarshalEasyJSON(in)
  2270. out.CookieExclusionReasons = append(out.CookieExclusionReasons, v2)
  2271. in.WantComma()
  2272. }
  2273. in.Delim(']')
  2274. }
  2275. case "operation":
  2276. (out.Operation).UnmarshalEasyJSON(in)
  2277. case "siteForCookies":
  2278. out.SiteForCookies = string(in.String())
  2279. case "cookieUrl":
  2280. out.CookieURL = string(in.String())
  2281. case "request":
  2282. if in.IsNull() {
  2283. in.Skip()
  2284. out.Request = nil
  2285. } else {
  2286. if out.Request == nil {
  2287. out.Request = new(AffectedRequest)
  2288. }
  2289. (*out.Request).UnmarshalEasyJSON(in)
  2290. }
  2291. default:
  2292. in.SkipRecursive()
  2293. }
  2294. in.WantComma()
  2295. }
  2296. in.Delim('}')
  2297. if isTopLevel {
  2298. in.Consumed()
  2299. }
  2300. }
  2301. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits21(out *jwriter.Writer, in CookieIssueDetails) {
  2302. out.RawByte('{')
  2303. first := true
  2304. _ = first
  2305. if in.Cookie != nil {
  2306. const prefix string = ",\"cookie\":"
  2307. first = false
  2308. out.RawString(prefix[1:])
  2309. (*in.Cookie).MarshalEasyJSON(out)
  2310. }
  2311. if in.RawCookieLine != "" {
  2312. const prefix string = ",\"rawCookieLine\":"
  2313. if first {
  2314. first = false
  2315. out.RawString(prefix[1:])
  2316. } else {
  2317. out.RawString(prefix)
  2318. }
  2319. out.String(string(in.RawCookieLine))
  2320. }
  2321. {
  2322. const prefix string = ",\"cookieWarningReasons\":"
  2323. if first {
  2324. first = false
  2325. out.RawString(prefix[1:])
  2326. } else {
  2327. out.RawString(prefix)
  2328. }
  2329. if in.CookieWarningReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2330. out.RawString("null")
  2331. } else {
  2332. out.RawByte('[')
  2333. for v3, v4 := range in.CookieWarningReasons {
  2334. if v3 > 0 {
  2335. out.RawByte(',')
  2336. }
  2337. (v4).MarshalEasyJSON(out)
  2338. }
  2339. out.RawByte(']')
  2340. }
  2341. }
  2342. {
  2343. const prefix string = ",\"cookieExclusionReasons\":"
  2344. out.RawString(prefix)
  2345. if in.CookieExclusionReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2346. out.RawString("null")
  2347. } else {
  2348. out.RawByte('[')
  2349. for v5, v6 := range in.CookieExclusionReasons {
  2350. if v5 > 0 {
  2351. out.RawByte(',')
  2352. }
  2353. (v6).MarshalEasyJSON(out)
  2354. }
  2355. out.RawByte(']')
  2356. }
  2357. }
  2358. {
  2359. const prefix string = ",\"operation\":"
  2360. out.RawString(prefix)
  2361. (in.Operation).MarshalEasyJSON(out)
  2362. }
  2363. if in.SiteForCookies != "" {
  2364. const prefix string = ",\"siteForCookies\":"
  2365. out.RawString(prefix)
  2366. out.String(string(in.SiteForCookies))
  2367. }
  2368. if in.CookieURL != "" {
  2369. const prefix string = ",\"cookieUrl\":"
  2370. out.RawString(prefix)
  2371. out.String(string(in.CookieURL))
  2372. }
  2373. if in.Request != nil {
  2374. const prefix string = ",\"request\":"
  2375. out.RawString(prefix)
  2376. (*in.Request).MarshalEasyJSON(out)
  2377. }
  2378. out.RawByte('}')
  2379. }
  2380. // MarshalJSON supports json.Marshaler interface
  2381. func (v CookieIssueDetails) MarshalJSON() ([]byte, error) {
  2382. w := jwriter.Writer{}
  2383. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits21(&w, v)
  2384. return w.Buffer.BuildBytes(), w.Error
  2385. }
  2386. // MarshalEasyJSON supports easyjson.Marshaler interface
  2387. func (v CookieIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  2388. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits21(w, v)
  2389. }
  2390. // UnmarshalJSON supports json.Unmarshaler interface
  2391. func (v *CookieIssueDetails) UnmarshalJSON(data []byte) error {
  2392. r := jlexer.Lexer{Data: data}
  2393. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits21(&r, v)
  2394. return r.Error()
  2395. }
  2396. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2397. func (v *CookieIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2398. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits21(l, v)
  2399. }
  2400. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(in *jlexer.Lexer, out *CookieDeprecationMetadataIssueDetails) {
  2401. isTopLevel := in.IsStart()
  2402. if in.IsNull() {
  2403. if isTopLevel {
  2404. in.Consumed()
  2405. }
  2406. in.Skip()
  2407. return
  2408. }
  2409. in.Delim('{')
  2410. for !in.IsDelim('}') {
  2411. key := in.UnsafeFieldName(false)
  2412. in.WantColon()
  2413. if in.IsNull() {
  2414. in.Skip()
  2415. in.WantComma()
  2416. continue
  2417. }
  2418. switch key {
  2419. case "allowedSites":
  2420. if in.IsNull() {
  2421. in.Skip()
  2422. out.AllowedSites = nil
  2423. } else {
  2424. in.Delim('[')
  2425. if out.AllowedSites == nil {
  2426. if !in.IsDelim(']') {
  2427. out.AllowedSites = make([]string, 0, 4)
  2428. } else {
  2429. out.AllowedSites = []string{}
  2430. }
  2431. } else {
  2432. out.AllowedSites = (out.AllowedSites)[:0]
  2433. }
  2434. for !in.IsDelim(']') {
  2435. var v7 string
  2436. v7 = string(in.String())
  2437. out.AllowedSites = append(out.AllowedSites, v7)
  2438. in.WantComma()
  2439. }
  2440. in.Delim(']')
  2441. }
  2442. default:
  2443. in.SkipRecursive()
  2444. }
  2445. in.WantComma()
  2446. }
  2447. in.Delim('}')
  2448. if isTopLevel {
  2449. in.Consumed()
  2450. }
  2451. }
  2452. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(out *jwriter.Writer, in CookieDeprecationMetadataIssueDetails) {
  2453. out.RawByte('{')
  2454. first := true
  2455. _ = first
  2456. {
  2457. const prefix string = ",\"allowedSites\":"
  2458. out.RawString(prefix[1:])
  2459. if in.AllowedSites == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2460. out.RawString("null")
  2461. } else {
  2462. out.RawByte('[')
  2463. for v8, v9 := range in.AllowedSites {
  2464. if v8 > 0 {
  2465. out.RawByte(',')
  2466. }
  2467. out.String(string(v9))
  2468. }
  2469. out.RawByte(']')
  2470. }
  2471. }
  2472. out.RawByte('}')
  2473. }
  2474. // MarshalJSON supports json.Marshaler interface
  2475. func (v CookieDeprecationMetadataIssueDetails) MarshalJSON() ([]byte, error) {
  2476. w := jwriter.Writer{}
  2477. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(&w, v)
  2478. return w.Buffer.BuildBytes(), w.Error
  2479. }
  2480. // MarshalEasyJSON supports easyjson.Marshaler interface
  2481. func (v CookieDeprecationMetadataIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  2482. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits22(w, v)
  2483. }
  2484. // UnmarshalJSON supports json.Unmarshaler interface
  2485. func (v *CookieDeprecationMetadataIssueDetails) UnmarshalJSON(data []byte) error {
  2486. r := jlexer.Lexer{Data: data}
  2487. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(&r, v)
  2488. return r.Error()
  2489. }
  2490. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2491. func (v *CookieDeprecationMetadataIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2492. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits22(l, v)
  2493. }
  2494. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(in *jlexer.Lexer, out *ContentSecurityPolicyIssueDetails) {
  2495. isTopLevel := in.IsStart()
  2496. if in.IsNull() {
  2497. if isTopLevel {
  2498. in.Consumed()
  2499. }
  2500. in.Skip()
  2501. return
  2502. }
  2503. in.Delim('{')
  2504. for !in.IsDelim('}') {
  2505. key := in.UnsafeFieldName(false)
  2506. in.WantColon()
  2507. if in.IsNull() {
  2508. in.Skip()
  2509. in.WantComma()
  2510. continue
  2511. }
  2512. switch key {
  2513. case "blockedURL":
  2514. out.BlockedURL = string(in.String())
  2515. case "violatedDirective":
  2516. out.ViolatedDirective = string(in.String())
  2517. case "isReportOnly":
  2518. out.IsReportOnly = bool(in.Bool())
  2519. case "contentSecurityPolicyViolationType":
  2520. (out.ContentSecurityPolicyViolationType).UnmarshalEasyJSON(in)
  2521. case "frameAncestor":
  2522. if in.IsNull() {
  2523. in.Skip()
  2524. out.FrameAncestor = nil
  2525. } else {
  2526. if out.FrameAncestor == nil {
  2527. out.FrameAncestor = new(AffectedFrame)
  2528. }
  2529. (*out.FrameAncestor).UnmarshalEasyJSON(in)
  2530. }
  2531. case "sourceCodeLocation":
  2532. if in.IsNull() {
  2533. in.Skip()
  2534. out.SourceCodeLocation = nil
  2535. } else {
  2536. if out.SourceCodeLocation == nil {
  2537. out.SourceCodeLocation = new(SourceCodeLocation)
  2538. }
  2539. (*out.SourceCodeLocation).UnmarshalEasyJSON(in)
  2540. }
  2541. case "violatingNodeId":
  2542. (out.ViolatingNodeID).UnmarshalEasyJSON(in)
  2543. default:
  2544. in.SkipRecursive()
  2545. }
  2546. in.WantComma()
  2547. }
  2548. in.Delim('}')
  2549. if isTopLevel {
  2550. in.Consumed()
  2551. }
  2552. }
  2553. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(out *jwriter.Writer, in ContentSecurityPolicyIssueDetails) {
  2554. out.RawByte('{')
  2555. first := true
  2556. _ = first
  2557. if in.BlockedURL != "" {
  2558. const prefix string = ",\"blockedURL\":"
  2559. first = false
  2560. out.RawString(prefix[1:])
  2561. out.String(string(in.BlockedURL))
  2562. }
  2563. {
  2564. const prefix string = ",\"violatedDirective\":"
  2565. if first {
  2566. first = false
  2567. out.RawString(prefix[1:])
  2568. } else {
  2569. out.RawString(prefix)
  2570. }
  2571. out.String(string(in.ViolatedDirective))
  2572. }
  2573. {
  2574. const prefix string = ",\"isReportOnly\":"
  2575. out.RawString(prefix)
  2576. out.Bool(bool(in.IsReportOnly))
  2577. }
  2578. {
  2579. const prefix string = ",\"contentSecurityPolicyViolationType\":"
  2580. out.RawString(prefix)
  2581. (in.ContentSecurityPolicyViolationType).MarshalEasyJSON(out)
  2582. }
  2583. if in.FrameAncestor != nil {
  2584. const prefix string = ",\"frameAncestor\":"
  2585. out.RawString(prefix)
  2586. (*in.FrameAncestor).MarshalEasyJSON(out)
  2587. }
  2588. if in.SourceCodeLocation != nil {
  2589. const prefix string = ",\"sourceCodeLocation\":"
  2590. out.RawString(prefix)
  2591. (*in.SourceCodeLocation).MarshalEasyJSON(out)
  2592. }
  2593. if in.ViolatingNodeID != 0 {
  2594. const prefix string = ",\"violatingNodeId\":"
  2595. out.RawString(prefix)
  2596. out.Int64(int64(in.ViolatingNodeID))
  2597. }
  2598. out.RawByte('}')
  2599. }
  2600. // MarshalJSON supports json.Marshaler interface
  2601. func (v ContentSecurityPolicyIssueDetails) MarshalJSON() ([]byte, error) {
  2602. w := jwriter.Writer{}
  2603. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(&w, v)
  2604. return w.Buffer.BuildBytes(), w.Error
  2605. }
  2606. // MarshalEasyJSON supports easyjson.Marshaler interface
  2607. func (v ContentSecurityPolicyIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  2608. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits23(w, v)
  2609. }
  2610. // UnmarshalJSON supports json.Unmarshaler interface
  2611. func (v *ContentSecurityPolicyIssueDetails) UnmarshalJSON(data []byte) error {
  2612. r := jlexer.Lexer{Data: data}
  2613. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(&r, v)
  2614. return r.Error()
  2615. }
  2616. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2617. func (v *ContentSecurityPolicyIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2618. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits23(l, v)
  2619. }
  2620. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(in *jlexer.Lexer, out *ClientHintIssueDetails) {
  2621. isTopLevel := in.IsStart()
  2622. if in.IsNull() {
  2623. if isTopLevel {
  2624. in.Consumed()
  2625. }
  2626. in.Skip()
  2627. return
  2628. }
  2629. in.Delim('{')
  2630. for !in.IsDelim('}') {
  2631. key := in.UnsafeFieldName(false)
  2632. in.WantColon()
  2633. if in.IsNull() {
  2634. in.Skip()
  2635. in.WantComma()
  2636. continue
  2637. }
  2638. switch key {
  2639. case "sourceCodeLocation":
  2640. if in.IsNull() {
  2641. in.Skip()
  2642. out.SourceCodeLocation = nil
  2643. } else {
  2644. if out.SourceCodeLocation == nil {
  2645. out.SourceCodeLocation = new(SourceCodeLocation)
  2646. }
  2647. (*out.SourceCodeLocation).UnmarshalEasyJSON(in)
  2648. }
  2649. case "clientHintIssueReason":
  2650. (out.ClientHintIssueReason).UnmarshalEasyJSON(in)
  2651. default:
  2652. in.SkipRecursive()
  2653. }
  2654. in.WantComma()
  2655. }
  2656. in.Delim('}')
  2657. if isTopLevel {
  2658. in.Consumed()
  2659. }
  2660. }
  2661. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(out *jwriter.Writer, in ClientHintIssueDetails) {
  2662. out.RawByte('{')
  2663. first := true
  2664. _ = first
  2665. {
  2666. const prefix string = ",\"sourceCodeLocation\":"
  2667. out.RawString(prefix[1:])
  2668. if in.SourceCodeLocation == nil {
  2669. out.RawString("null")
  2670. } else {
  2671. (*in.SourceCodeLocation).MarshalEasyJSON(out)
  2672. }
  2673. }
  2674. {
  2675. const prefix string = ",\"clientHintIssueReason\":"
  2676. out.RawString(prefix)
  2677. (in.ClientHintIssueReason).MarshalEasyJSON(out)
  2678. }
  2679. out.RawByte('}')
  2680. }
  2681. // MarshalJSON supports json.Marshaler interface
  2682. func (v ClientHintIssueDetails) MarshalJSON() ([]byte, error) {
  2683. w := jwriter.Writer{}
  2684. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(&w, v)
  2685. return w.Buffer.BuildBytes(), w.Error
  2686. }
  2687. // MarshalEasyJSON supports easyjson.Marshaler interface
  2688. func (v ClientHintIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  2689. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits24(w, v)
  2690. }
  2691. // UnmarshalJSON supports json.Unmarshaler interface
  2692. func (v *ClientHintIssueDetails) UnmarshalJSON(data []byte) error {
  2693. r := jlexer.Lexer{Data: data}
  2694. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(&r, v)
  2695. return r.Error()
  2696. }
  2697. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2698. func (v *ClientHintIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2699. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits24(l, v)
  2700. }
  2701. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(in *jlexer.Lexer, out *CheckFormsIssuesReturns) {
  2702. isTopLevel := in.IsStart()
  2703. if in.IsNull() {
  2704. if isTopLevel {
  2705. in.Consumed()
  2706. }
  2707. in.Skip()
  2708. return
  2709. }
  2710. in.Delim('{')
  2711. for !in.IsDelim('}') {
  2712. key := in.UnsafeFieldName(false)
  2713. in.WantColon()
  2714. if in.IsNull() {
  2715. in.Skip()
  2716. in.WantComma()
  2717. continue
  2718. }
  2719. switch key {
  2720. case "formIssues":
  2721. if in.IsNull() {
  2722. in.Skip()
  2723. out.FormIssues = nil
  2724. } else {
  2725. in.Delim('[')
  2726. if out.FormIssues == nil {
  2727. if !in.IsDelim(']') {
  2728. out.FormIssues = make([]*GenericIssueDetails, 0, 8)
  2729. } else {
  2730. out.FormIssues = []*GenericIssueDetails{}
  2731. }
  2732. } else {
  2733. out.FormIssues = (out.FormIssues)[:0]
  2734. }
  2735. for !in.IsDelim(']') {
  2736. var v10 *GenericIssueDetails
  2737. if in.IsNull() {
  2738. in.Skip()
  2739. v10 = nil
  2740. } else {
  2741. if v10 == nil {
  2742. v10 = new(GenericIssueDetails)
  2743. }
  2744. (*v10).UnmarshalEasyJSON(in)
  2745. }
  2746. out.FormIssues = append(out.FormIssues, v10)
  2747. in.WantComma()
  2748. }
  2749. in.Delim(']')
  2750. }
  2751. default:
  2752. in.SkipRecursive()
  2753. }
  2754. in.WantComma()
  2755. }
  2756. in.Delim('}')
  2757. if isTopLevel {
  2758. in.Consumed()
  2759. }
  2760. }
  2761. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(out *jwriter.Writer, in CheckFormsIssuesReturns) {
  2762. out.RawByte('{')
  2763. first := true
  2764. _ = first
  2765. if len(in.FormIssues) != 0 {
  2766. const prefix string = ",\"formIssues\":"
  2767. first = false
  2768. out.RawString(prefix[1:])
  2769. {
  2770. out.RawByte('[')
  2771. for v11, v12 := range in.FormIssues {
  2772. if v11 > 0 {
  2773. out.RawByte(',')
  2774. }
  2775. if v12 == nil {
  2776. out.RawString("null")
  2777. } else {
  2778. (*v12).MarshalEasyJSON(out)
  2779. }
  2780. }
  2781. out.RawByte(']')
  2782. }
  2783. }
  2784. out.RawByte('}')
  2785. }
  2786. // MarshalJSON supports json.Marshaler interface
  2787. func (v CheckFormsIssuesReturns) MarshalJSON() ([]byte, error) {
  2788. w := jwriter.Writer{}
  2789. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(&w, v)
  2790. return w.Buffer.BuildBytes(), w.Error
  2791. }
  2792. // MarshalEasyJSON supports easyjson.Marshaler interface
  2793. func (v CheckFormsIssuesReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2794. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits25(w, v)
  2795. }
  2796. // UnmarshalJSON supports json.Unmarshaler interface
  2797. func (v *CheckFormsIssuesReturns) UnmarshalJSON(data []byte) error {
  2798. r := jlexer.Lexer{Data: data}
  2799. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(&r, v)
  2800. return r.Error()
  2801. }
  2802. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2803. func (v *CheckFormsIssuesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2804. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits25(l, v)
  2805. }
  2806. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(in *jlexer.Lexer, out *CheckFormsIssuesParams) {
  2807. isTopLevel := in.IsStart()
  2808. if in.IsNull() {
  2809. if isTopLevel {
  2810. in.Consumed()
  2811. }
  2812. in.Skip()
  2813. return
  2814. }
  2815. in.Delim('{')
  2816. for !in.IsDelim('}') {
  2817. key := in.UnsafeFieldName(false)
  2818. in.WantColon()
  2819. if in.IsNull() {
  2820. in.Skip()
  2821. in.WantComma()
  2822. continue
  2823. }
  2824. switch key {
  2825. default:
  2826. in.SkipRecursive()
  2827. }
  2828. in.WantComma()
  2829. }
  2830. in.Delim('}')
  2831. if isTopLevel {
  2832. in.Consumed()
  2833. }
  2834. }
  2835. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(out *jwriter.Writer, in CheckFormsIssuesParams) {
  2836. out.RawByte('{')
  2837. first := true
  2838. _ = first
  2839. out.RawByte('}')
  2840. }
  2841. // MarshalJSON supports json.Marshaler interface
  2842. func (v CheckFormsIssuesParams) MarshalJSON() ([]byte, error) {
  2843. w := jwriter.Writer{}
  2844. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(&w, v)
  2845. return w.Buffer.BuildBytes(), w.Error
  2846. }
  2847. // MarshalEasyJSON supports easyjson.Marshaler interface
  2848. func (v CheckFormsIssuesParams) MarshalEasyJSON(w *jwriter.Writer) {
  2849. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits26(w, v)
  2850. }
  2851. // UnmarshalJSON supports json.Unmarshaler interface
  2852. func (v *CheckFormsIssuesParams) UnmarshalJSON(data []byte) error {
  2853. r := jlexer.Lexer{Data: data}
  2854. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(&r, v)
  2855. return r.Error()
  2856. }
  2857. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2858. func (v *CheckFormsIssuesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2859. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits26(l, v)
  2860. }
  2861. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(in *jlexer.Lexer, out *CheckContrastParams) {
  2862. isTopLevel := in.IsStart()
  2863. if in.IsNull() {
  2864. if isTopLevel {
  2865. in.Consumed()
  2866. }
  2867. in.Skip()
  2868. return
  2869. }
  2870. in.Delim('{')
  2871. for !in.IsDelim('}') {
  2872. key := in.UnsafeFieldName(false)
  2873. in.WantColon()
  2874. if in.IsNull() {
  2875. in.Skip()
  2876. in.WantComma()
  2877. continue
  2878. }
  2879. switch key {
  2880. case "reportAAA":
  2881. out.ReportAAA = bool(in.Bool())
  2882. default:
  2883. in.SkipRecursive()
  2884. }
  2885. in.WantComma()
  2886. }
  2887. in.Delim('}')
  2888. if isTopLevel {
  2889. in.Consumed()
  2890. }
  2891. }
  2892. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(out *jwriter.Writer, in CheckContrastParams) {
  2893. out.RawByte('{')
  2894. first := true
  2895. _ = first
  2896. if in.ReportAAA {
  2897. const prefix string = ",\"reportAAA\":"
  2898. first = false
  2899. out.RawString(prefix[1:])
  2900. out.Bool(bool(in.ReportAAA))
  2901. }
  2902. out.RawByte('}')
  2903. }
  2904. // MarshalJSON supports json.Marshaler interface
  2905. func (v CheckContrastParams) MarshalJSON() ([]byte, error) {
  2906. w := jwriter.Writer{}
  2907. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(&w, v)
  2908. return w.Buffer.BuildBytes(), w.Error
  2909. }
  2910. // MarshalEasyJSON supports easyjson.Marshaler interface
  2911. func (v CheckContrastParams) MarshalEasyJSON(w *jwriter.Writer) {
  2912. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits27(w, v)
  2913. }
  2914. // UnmarshalJSON supports json.Unmarshaler interface
  2915. func (v *CheckContrastParams) UnmarshalJSON(data []byte) error {
  2916. r := jlexer.Lexer{Data: data}
  2917. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(&r, v)
  2918. return r.Error()
  2919. }
  2920. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2921. func (v *CheckContrastParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2922. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits27(l, v)
  2923. }
  2924. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(in *jlexer.Lexer, out *BounceTrackingIssueDetails) {
  2925. isTopLevel := in.IsStart()
  2926. if in.IsNull() {
  2927. if isTopLevel {
  2928. in.Consumed()
  2929. }
  2930. in.Skip()
  2931. return
  2932. }
  2933. in.Delim('{')
  2934. for !in.IsDelim('}') {
  2935. key := in.UnsafeFieldName(false)
  2936. in.WantColon()
  2937. if in.IsNull() {
  2938. in.Skip()
  2939. in.WantComma()
  2940. continue
  2941. }
  2942. switch key {
  2943. case "trackingSites":
  2944. if in.IsNull() {
  2945. in.Skip()
  2946. out.TrackingSites = nil
  2947. } else {
  2948. in.Delim('[')
  2949. if out.TrackingSites == nil {
  2950. if !in.IsDelim(']') {
  2951. out.TrackingSites = make([]string, 0, 4)
  2952. } else {
  2953. out.TrackingSites = []string{}
  2954. }
  2955. } else {
  2956. out.TrackingSites = (out.TrackingSites)[:0]
  2957. }
  2958. for !in.IsDelim(']') {
  2959. var v13 string
  2960. v13 = string(in.String())
  2961. out.TrackingSites = append(out.TrackingSites, v13)
  2962. in.WantComma()
  2963. }
  2964. in.Delim(']')
  2965. }
  2966. default:
  2967. in.SkipRecursive()
  2968. }
  2969. in.WantComma()
  2970. }
  2971. in.Delim('}')
  2972. if isTopLevel {
  2973. in.Consumed()
  2974. }
  2975. }
  2976. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(out *jwriter.Writer, in BounceTrackingIssueDetails) {
  2977. out.RawByte('{')
  2978. first := true
  2979. _ = first
  2980. {
  2981. const prefix string = ",\"trackingSites\":"
  2982. out.RawString(prefix[1:])
  2983. if in.TrackingSites == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  2984. out.RawString("null")
  2985. } else {
  2986. out.RawByte('[')
  2987. for v14, v15 := range in.TrackingSites {
  2988. if v14 > 0 {
  2989. out.RawByte(',')
  2990. }
  2991. out.String(string(v15))
  2992. }
  2993. out.RawByte(']')
  2994. }
  2995. }
  2996. out.RawByte('}')
  2997. }
  2998. // MarshalJSON supports json.Marshaler interface
  2999. func (v BounceTrackingIssueDetails) MarshalJSON() ([]byte, error) {
  3000. w := jwriter.Writer{}
  3001. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(&w, v)
  3002. return w.Buffer.BuildBytes(), w.Error
  3003. }
  3004. // MarshalEasyJSON supports easyjson.Marshaler interface
  3005. func (v BounceTrackingIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  3006. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits28(w, v)
  3007. }
  3008. // UnmarshalJSON supports json.Unmarshaler interface
  3009. func (v *BounceTrackingIssueDetails) UnmarshalJSON(data []byte) error {
  3010. r := jlexer.Lexer{Data: data}
  3011. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(&r, v)
  3012. return r.Error()
  3013. }
  3014. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3015. func (v *BounceTrackingIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3016. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits28(l, v)
  3017. }
  3018. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(in *jlexer.Lexer, out *BlockedByResponseIssueDetails) {
  3019. isTopLevel := in.IsStart()
  3020. if in.IsNull() {
  3021. if isTopLevel {
  3022. in.Consumed()
  3023. }
  3024. in.Skip()
  3025. return
  3026. }
  3027. in.Delim('{')
  3028. for !in.IsDelim('}') {
  3029. key := in.UnsafeFieldName(false)
  3030. in.WantColon()
  3031. if in.IsNull() {
  3032. in.Skip()
  3033. in.WantComma()
  3034. continue
  3035. }
  3036. switch key {
  3037. case "request":
  3038. if in.IsNull() {
  3039. in.Skip()
  3040. out.Request = nil
  3041. } else {
  3042. if out.Request == nil {
  3043. out.Request = new(AffectedRequest)
  3044. }
  3045. (*out.Request).UnmarshalEasyJSON(in)
  3046. }
  3047. case "parentFrame":
  3048. if in.IsNull() {
  3049. in.Skip()
  3050. out.ParentFrame = nil
  3051. } else {
  3052. if out.ParentFrame == nil {
  3053. out.ParentFrame = new(AffectedFrame)
  3054. }
  3055. (*out.ParentFrame).UnmarshalEasyJSON(in)
  3056. }
  3057. case "blockedFrame":
  3058. if in.IsNull() {
  3059. in.Skip()
  3060. out.BlockedFrame = nil
  3061. } else {
  3062. if out.BlockedFrame == nil {
  3063. out.BlockedFrame = new(AffectedFrame)
  3064. }
  3065. (*out.BlockedFrame).UnmarshalEasyJSON(in)
  3066. }
  3067. case "reason":
  3068. (out.Reason).UnmarshalEasyJSON(in)
  3069. default:
  3070. in.SkipRecursive()
  3071. }
  3072. in.WantComma()
  3073. }
  3074. in.Delim('}')
  3075. if isTopLevel {
  3076. in.Consumed()
  3077. }
  3078. }
  3079. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(out *jwriter.Writer, in BlockedByResponseIssueDetails) {
  3080. out.RawByte('{')
  3081. first := true
  3082. _ = first
  3083. {
  3084. const prefix string = ",\"request\":"
  3085. out.RawString(prefix[1:])
  3086. if in.Request == nil {
  3087. out.RawString("null")
  3088. } else {
  3089. (*in.Request).MarshalEasyJSON(out)
  3090. }
  3091. }
  3092. if in.ParentFrame != nil {
  3093. const prefix string = ",\"parentFrame\":"
  3094. out.RawString(prefix)
  3095. (*in.ParentFrame).MarshalEasyJSON(out)
  3096. }
  3097. if in.BlockedFrame != nil {
  3098. const prefix string = ",\"blockedFrame\":"
  3099. out.RawString(prefix)
  3100. (*in.BlockedFrame).MarshalEasyJSON(out)
  3101. }
  3102. {
  3103. const prefix string = ",\"reason\":"
  3104. out.RawString(prefix)
  3105. (in.Reason).MarshalEasyJSON(out)
  3106. }
  3107. out.RawByte('}')
  3108. }
  3109. // MarshalJSON supports json.Marshaler interface
  3110. func (v BlockedByResponseIssueDetails) MarshalJSON() ([]byte, error) {
  3111. w := jwriter.Writer{}
  3112. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(&w, v)
  3113. return w.Buffer.BuildBytes(), w.Error
  3114. }
  3115. // MarshalEasyJSON supports easyjson.Marshaler interface
  3116. func (v BlockedByResponseIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  3117. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits29(w, v)
  3118. }
  3119. // UnmarshalJSON supports json.Unmarshaler interface
  3120. func (v *BlockedByResponseIssueDetails) UnmarshalJSON(data []byte) error {
  3121. r := jlexer.Lexer{Data: data}
  3122. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(&r, v)
  3123. return r.Error()
  3124. }
  3125. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3126. func (v *BlockedByResponseIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3127. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits29(l, v)
  3128. }
  3129. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(in *jlexer.Lexer, out *AttributionReportingIssueDetails) {
  3130. isTopLevel := in.IsStart()
  3131. if in.IsNull() {
  3132. if isTopLevel {
  3133. in.Consumed()
  3134. }
  3135. in.Skip()
  3136. return
  3137. }
  3138. in.Delim('{')
  3139. for !in.IsDelim('}') {
  3140. key := in.UnsafeFieldName(false)
  3141. in.WantColon()
  3142. if in.IsNull() {
  3143. in.Skip()
  3144. in.WantComma()
  3145. continue
  3146. }
  3147. switch key {
  3148. case "violationType":
  3149. (out.ViolationType).UnmarshalEasyJSON(in)
  3150. case "request":
  3151. if in.IsNull() {
  3152. in.Skip()
  3153. out.Request = nil
  3154. } else {
  3155. if out.Request == nil {
  3156. out.Request = new(AffectedRequest)
  3157. }
  3158. (*out.Request).UnmarshalEasyJSON(in)
  3159. }
  3160. case "violatingNodeId":
  3161. (out.ViolatingNodeID).UnmarshalEasyJSON(in)
  3162. case "invalidParameter":
  3163. out.InvalidParameter = string(in.String())
  3164. default:
  3165. in.SkipRecursive()
  3166. }
  3167. in.WantComma()
  3168. }
  3169. in.Delim('}')
  3170. if isTopLevel {
  3171. in.Consumed()
  3172. }
  3173. }
  3174. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(out *jwriter.Writer, in AttributionReportingIssueDetails) {
  3175. out.RawByte('{')
  3176. first := true
  3177. _ = first
  3178. {
  3179. const prefix string = ",\"violationType\":"
  3180. out.RawString(prefix[1:])
  3181. (in.ViolationType).MarshalEasyJSON(out)
  3182. }
  3183. if in.Request != nil {
  3184. const prefix string = ",\"request\":"
  3185. out.RawString(prefix)
  3186. (*in.Request).MarshalEasyJSON(out)
  3187. }
  3188. if in.ViolatingNodeID != 0 {
  3189. const prefix string = ",\"violatingNodeId\":"
  3190. out.RawString(prefix)
  3191. out.Int64(int64(in.ViolatingNodeID))
  3192. }
  3193. if in.InvalidParameter != "" {
  3194. const prefix string = ",\"invalidParameter\":"
  3195. out.RawString(prefix)
  3196. out.String(string(in.InvalidParameter))
  3197. }
  3198. out.RawByte('}')
  3199. }
  3200. // MarshalJSON supports json.Marshaler interface
  3201. func (v AttributionReportingIssueDetails) MarshalJSON() ([]byte, error) {
  3202. w := jwriter.Writer{}
  3203. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(&w, v)
  3204. return w.Buffer.BuildBytes(), w.Error
  3205. }
  3206. // MarshalEasyJSON supports easyjson.Marshaler interface
  3207. func (v AttributionReportingIssueDetails) MarshalEasyJSON(w *jwriter.Writer) {
  3208. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits30(w, v)
  3209. }
  3210. // UnmarshalJSON supports json.Unmarshaler interface
  3211. func (v *AttributionReportingIssueDetails) UnmarshalJSON(data []byte) error {
  3212. r := jlexer.Lexer{Data: data}
  3213. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(&r, v)
  3214. return r.Error()
  3215. }
  3216. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3217. func (v *AttributionReportingIssueDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3218. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits30(l, v)
  3219. }
  3220. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(in *jlexer.Lexer, out *AffectedRequest) {
  3221. isTopLevel := in.IsStart()
  3222. if in.IsNull() {
  3223. if isTopLevel {
  3224. in.Consumed()
  3225. }
  3226. in.Skip()
  3227. return
  3228. }
  3229. in.Delim('{')
  3230. for !in.IsDelim('}') {
  3231. key := in.UnsafeFieldName(false)
  3232. in.WantColon()
  3233. if in.IsNull() {
  3234. in.Skip()
  3235. in.WantComma()
  3236. continue
  3237. }
  3238. switch key {
  3239. case "requestId":
  3240. out.RequestID = network.RequestID(in.String())
  3241. case "url":
  3242. out.URL = string(in.String())
  3243. default:
  3244. in.SkipRecursive()
  3245. }
  3246. in.WantComma()
  3247. }
  3248. in.Delim('}')
  3249. if isTopLevel {
  3250. in.Consumed()
  3251. }
  3252. }
  3253. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(out *jwriter.Writer, in AffectedRequest) {
  3254. out.RawByte('{')
  3255. first := true
  3256. _ = first
  3257. {
  3258. const prefix string = ",\"requestId\":"
  3259. out.RawString(prefix[1:])
  3260. out.String(string(in.RequestID))
  3261. }
  3262. if in.URL != "" {
  3263. const prefix string = ",\"url\":"
  3264. out.RawString(prefix)
  3265. out.String(string(in.URL))
  3266. }
  3267. out.RawByte('}')
  3268. }
  3269. // MarshalJSON supports json.Marshaler interface
  3270. func (v AffectedRequest) MarshalJSON() ([]byte, error) {
  3271. w := jwriter.Writer{}
  3272. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(&w, v)
  3273. return w.Buffer.BuildBytes(), w.Error
  3274. }
  3275. // MarshalEasyJSON supports easyjson.Marshaler interface
  3276. func (v AffectedRequest) MarshalEasyJSON(w *jwriter.Writer) {
  3277. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits31(w, v)
  3278. }
  3279. // UnmarshalJSON supports json.Unmarshaler interface
  3280. func (v *AffectedRequest) UnmarshalJSON(data []byte) error {
  3281. r := jlexer.Lexer{Data: data}
  3282. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(&r, v)
  3283. return r.Error()
  3284. }
  3285. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3286. func (v *AffectedRequest) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3287. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits31(l, v)
  3288. }
  3289. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(in *jlexer.Lexer, out *AffectedFrame) {
  3290. isTopLevel := in.IsStart()
  3291. if in.IsNull() {
  3292. if isTopLevel {
  3293. in.Consumed()
  3294. }
  3295. in.Skip()
  3296. return
  3297. }
  3298. in.Delim('{')
  3299. for !in.IsDelim('}') {
  3300. key := in.UnsafeFieldName(false)
  3301. in.WantColon()
  3302. if in.IsNull() {
  3303. in.Skip()
  3304. in.WantComma()
  3305. continue
  3306. }
  3307. switch key {
  3308. case "frameId":
  3309. (out.FrameID).UnmarshalEasyJSON(in)
  3310. default:
  3311. in.SkipRecursive()
  3312. }
  3313. in.WantComma()
  3314. }
  3315. in.Delim('}')
  3316. if isTopLevel {
  3317. in.Consumed()
  3318. }
  3319. }
  3320. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(out *jwriter.Writer, in AffectedFrame) {
  3321. out.RawByte('{')
  3322. first := true
  3323. _ = first
  3324. {
  3325. const prefix string = ",\"frameId\":"
  3326. out.RawString(prefix[1:])
  3327. out.String(string(in.FrameID))
  3328. }
  3329. out.RawByte('}')
  3330. }
  3331. // MarshalJSON supports json.Marshaler interface
  3332. func (v AffectedFrame) MarshalJSON() ([]byte, error) {
  3333. w := jwriter.Writer{}
  3334. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(&w, v)
  3335. return w.Buffer.BuildBytes(), w.Error
  3336. }
  3337. // MarshalEasyJSON supports easyjson.Marshaler interface
  3338. func (v AffectedFrame) MarshalEasyJSON(w *jwriter.Writer) {
  3339. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits32(w, v)
  3340. }
  3341. // UnmarshalJSON supports json.Unmarshaler interface
  3342. func (v *AffectedFrame) UnmarshalJSON(data []byte) error {
  3343. r := jlexer.Lexer{Data: data}
  3344. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(&r, v)
  3345. return r.Error()
  3346. }
  3347. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3348. func (v *AffectedFrame) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3349. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits32(l, v)
  3350. }
  3351. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits33(in *jlexer.Lexer, out *AffectedCookie) {
  3352. isTopLevel := in.IsStart()
  3353. if in.IsNull() {
  3354. if isTopLevel {
  3355. in.Consumed()
  3356. }
  3357. in.Skip()
  3358. return
  3359. }
  3360. in.Delim('{')
  3361. for !in.IsDelim('}') {
  3362. key := in.UnsafeFieldName(false)
  3363. in.WantColon()
  3364. if in.IsNull() {
  3365. in.Skip()
  3366. in.WantComma()
  3367. continue
  3368. }
  3369. switch key {
  3370. case "name":
  3371. out.Name = string(in.String())
  3372. case "path":
  3373. out.Path = string(in.String())
  3374. case "domain":
  3375. out.Domain = string(in.String())
  3376. default:
  3377. in.SkipRecursive()
  3378. }
  3379. in.WantComma()
  3380. }
  3381. in.Delim('}')
  3382. if isTopLevel {
  3383. in.Consumed()
  3384. }
  3385. }
  3386. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits33(out *jwriter.Writer, in AffectedCookie) {
  3387. out.RawByte('{')
  3388. first := true
  3389. _ = first
  3390. {
  3391. const prefix string = ",\"name\":"
  3392. out.RawString(prefix[1:])
  3393. out.String(string(in.Name))
  3394. }
  3395. {
  3396. const prefix string = ",\"path\":"
  3397. out.RawString(prefix)
  3398. out.String(string(in.Path))
  3399. }
  3400. {
  3401. const prefix string = ",\"domain\":"
  3402. out.RawString(prefix)
  3403. out.String(string(in.Domain))
  3404. }
  3405. out.RawByte('}')
  3406. }
  3407. // MarshalJSON supports json.Marshaler interface
  3408. func (v AffectedCookie) MarshalJSON() ([]byte, error) {
  3409. w := jwriter.Writer{}
  3410. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits33(&w, v)
  3411. return w.Buffer.BuildBytes(), w.Error
  3412. }
  3413. // MarshalEasyJSON supports easyjson.Marshaler interface
  3414. func (v AffectedCookie) MarshalEasyJSON(w *jwriter.Writer) {
  3415. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAudits33(w, v)
  3416. }
  3417. // UnmarshalJSON supports json.Unmarshaler interface
  3418. func (v *AffectedCookie) UnmarshalJSON(data []byte) error {
  3419. r := jlexer.Lexer{Data: data}
  3420. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits33(&r, v)
  3421. return r.Error()
  3422. }
  3423. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3424. func (v *AffectedCookie) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3425. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAudits33(l, v)
  3426. }