github-accessors.go 253 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989
  1. // Copyright 2017 The go-github AUTHORS. All rights reserved.
  2. //
  3. // Use of this source code is governed by a BSD-style
  4. // license that can be found in the LICENSE file.
  5. // Code generated by gen-accessors; DO NOT EDIT.
  6. package github
  7. import (
  8. "encoding/json"
  9. "time"
  10. )
  11. // GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise.
  12. func (a *AbuseRateLimitError) GetRetryAfter() time.Duration {
  13. if a == nil || a.RetryAfter == nil {
  14. return 0
  15. }
  16. return *a.RetryAfter
  17. }
  18. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  19. func (a *AdminEnforcement) GetURL() string {
  20. if a == nil || a.URL == nil {
  21. return ""
  22. }
  23. return *a.URL
  24. }
  25. // GetComments returns the Comments field.
  26. func (a *AdminStats) GetComments() *CommentStats {
  27. if a == nil {
  28. return nil
  29. }
  30. return a.Comments
  31. }
  32. // GetGists returns the Gists field.
  33. func (a *AdminStats) GetGists() *GistStats {
  34. if a == nil {
  35. return nil
  36. }
  37. return a.Gists
  38. }
  39. // GetHooks returns the Hooks field.
  40. func (a *AdminStats) GetHooks() *HookStats {
  41. if a == nil {
  42. return nil
  43. }
  44. return a.Hooks
  45. }
  46. // GetIssues returns the Issues field.
  47. func (a *AdminStats) GetIssues() *IssueStats {
  48. if a == nil {
  49. return nil
  50. }
  51. return a.Issues
  52. }
  53. // GetMilestones returns the Milestones field.
  54. func (a *AdminStats) GetMilestones() *MilestoneStats {
  55. if a == nil {
  56. return nil
  57. }
  58. return a.Milestones
  59. }
  60. // GetOrgs returns the Orgs field.
  61. func (a *AdminStats) GetOrgs() *OrgStats {
  62. if a == nil {
  63. return nil
  64. }
  65. return a.Orgs
  66. }
  67. // GetPages returns the Pages field.
  68. func (a *AdminStats) GetPages() *PageStats {
  69. if a == nil {
  70. return nil
  71. }
  72. return a.Pages
  73. }
  74. // GetPulls returns the Pulls field.
  75. func (a *AdminStats) GetPulls() *PullStats {
  76. if a == nil {
  77. return nil
  78. }
  79. return a.Pulls
  80. }
  81. // GetRepos returns the Repos field.
  82. func (a *AdminStats) GetRepos() *RepoStats {
  83. if a == nil {
  84. return nil
  85. }
  86. return a.Repos
  87. }
  88. // GetUsers returns the Users field.
  89. func (a *AdminStats) GetUsers() *UserStats {
  90. if a == nil {
  91. return nil
  92. }
  93. return a.Users
  94. }
  95. // GetVerifiablePasswordAuthentication returns the VerifiablePasswordAuthentication field if it's non-nil, zero value otherwise.
  96. func (a *APIMeta) GetVerifiablePasswordAuthentication() bool {
  97. if a == nil || a.VerifiablePasswordAuthentication == nil {
  98. return false
  99. }
  100. return *a.VerifiablePasswordAuthentication
  101. }
  102. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  103. func (a *App) GetCreatedAt() time.Time {
  104. if a == nil || a.CreatedAt == nil {
  105. return time.Time{}
  106. }
  107. return *a.CreatedAt
  108. }
  109. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  110. func (a *App) GetDescription() string {
  111. if a == nil || a.Description == nil {
  112. return ""
  113. }
  114. return *a.Description
  115. }
  116. // GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise.
  117. func (a *App) GetExternalURL() string {
  118. if a == nil || a.ExternalURL == nil {
  119. return ""
  120. }
  121. return *a.ExternalURL
  122. }
  123. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  124. func (a *App) GetHTMLURL() string {
  125. if a == nil || a.HTMLURL == nil {
  126. return ""
  127. }
  128. return *a.HTMLURL
  129. }
  130. // GetID returns the ID field if it's non-nil, zero value otherwise.
  131. func (a *App) GetID() int64 {
  132. if a == nil || a.ID == nil {
  133. return 0
  134. }
  135. return *a.ID
  136. }
  137. // GetName returns the Name field if it's non-nil, zero value otherwise.
  138. func (a *App) GetName() string {
  139. if a == nil || a.Name == nil {
  140. return ""
  141. }
  142. return *a.Name
  143. }
  144. // GetOwner returns the Owner field.
  145. func (a *App) GetOwner() *User {
  146. if a == nil {
  147. return nil
  148. }
  149. return a.Owner
  150. }
  151. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  152. func (a *App) GetUpdatedAt() time.Time {
  153. if a == nil || a.UpdatedAt == nil {
  154. return time.Time{}
  155. }
  156. return *a.UpdatedAt
  157. }
  158. // GetApp returns the App field.
  159. func (a *Authorization) GetApp() *AuthorizationApp {
  160. if a == nil {
  161. return nil
  162. }
  163. return a.App
  164. }
  165. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  166. func (a *Authorization) GetCreatedAt() Timestamp {
  167. if a == nil || a.CreatedAt == nil {
  168. return Timestamp{}
  169. }
  170. return *a.CreatedAt
  171. }
  172. // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.
  173. func (a *Authorization) GetFingerprint() string {
  174. if a == nil || a.Fingerprint == nil {
  175. return ""
  176. }
  177. return *a.Fingerprint
  178. }
  179. // GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise.
  180. func (a *Authorization) GetHashedToken() string {
  181. if a == nil || a.HashedToken == nil {
  182. return ""
  183. }
  184. return *a.HashedToken
  185. }
  186. // GetID returns the ID field if it's non-nil, zero value otherwise.
  187. func (a *Authorization) GetID() int64 {
  188. if a == nil || a.ID == nil {
  189. return 0
  190. }
  191. return *a.ID
  192. }
  193. // GetNote returns the Note field if it's non-nil, zero value otherwise.
  194. func (a *Authorization) GetNote() string {
  195. if a == nil || a.Note == nil {
  196. return ""
  197. }
  198. return *a.Note
  199. }
  200. // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.
  201. func (a *Authorization) GetNoteURL() string {
  202. if a == nil || a.NoteURL == nil {
  203. return ""
  204. }
  205. return *a.NoteURL
  206. }
  207. // GetToken returns the Token field if it's non-nil, zero value otherwise.
  208. func (a *Authorization) GetToken() string {
  209. if a == nil || a.Token == nil {
  210. return ""
  211. }
  212. return *a.Token
  213. }
  214. // GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise.
  215. func (a *Authorization) GetTokenLastEight() string {
  216. if a == nil || a.TokenLastEight == nil {
  217. return ""
  218. }
  219. return *a.TokenLastEight
  220. }
  221. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  222. func (a *Authorization) GetUpdatedAt() Timestamp {
  223. if a == nil || a.UpdatedAt == nil {
  224. return Timestamp{}
  225. }
  226. return *a.UpdatedAt
  227. }
  228. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  229. func (a *Authorization) GetURL() string {
  230. if a == nil || a.URL == nil {
  231. return ""
  232. }
  233. return *a.URL
  234. }
  235. // GetUser returns the User field.
  236. func (a *Authorization) GetUser() *User {
  237. if a == nil {
  238. return nil
  239. }
  240. return a.User
  241. }
  242. // GetClientID returns the ClientID field if it's non-nil, zero value otherwise.
  243. func (a *AuthorizationApp) GetClientID() string {
  244. if a == nil || a.ClientID == nil {
  245. return ""
  246. }
  247. return *a.ClientID
  248. }
  249. // GetName returns the Name field if it's non-nil, zero value otherwise.
  250. func (a *AuthorizationApp) GetName() string {
  251. if a == nil || a.Name == nil {
  252. return ""
  253. }
  254. return *a.Name
  255. }
  256. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  257. func (a *AuthorizationApp) GetURL() string {
  258. if a == nil || a.URL == nil {
  259. return ""
  260. }
  261. return *a.URL
  262. }
  263. // GetClientID returns the ClientID field if it's non-nil, zero value otherwise.
  264. func (a *AuthorizationRequest) GetClientID() string {
  265. if a == nil || a.ClientID == nil {
  266. return ""
  267. }
  268. return *a.ClientID
  269. }
  270. // GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise.
  271. func (a *AuthorizationRequest) GetClientSecret() string {
  272. if a == nil || a.ClientSecret == nil {
  273. return ""
  274. }
  275. return *a.ClientSecret
  276. }
  277. // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.
  278. func (a *AuthorizationRequest) GetFingerprint() string {
  279. if a == nil || a.Fingerprint == nil {
  280. return ""
  281. }
  282. return *a.Fingerprint
  283. }
  284. // GetNote returns the Note field if it's non-nil, zero value otherwise.
  285. func (a *AuthorizationRequest) GetNote() string {
  286. if a == nil || a.Note == nil {
  287. return ""
  288. }
  289. return *a.Note
  290. }
  291. // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.
  292. func (a *AuthorizationRequest) GetNoteURL() string {
  293. if a == nil || a.NoteURL == nil {
  294. return ""
  295. }
  296. return *a.NoteURL
  297. }
  298. // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.
  299. func (a *AuthorizationUpdateRequest) GetFingerprint() string {
  300. if a == nil || a.Fingerprint == nil {
  301. return ""
  302. }
  303. return *a.Fingerprint
  304. }
  305. // GetNote returns the Note field if it's non-nil, zero value otherwise.
  306. func (a *AuthorizationUpdateRequest) GetNote() string {
  307. if a == nil || a.Note == nil {
  308. return ""
  309. }
  310. return *a.Note
  311. }
  312. // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.
  313. func (a *AuthorizationUpdateRequest) GetNoteURL() string {
  314. if a == nil || a.NoteURL == nil {
  315. return ""
  316. }
  317. return *a.NoteURL
  318. }
  319. // GetContent returns the Content field if it's non-nil, zero value otherwise.
  320. func (b *Blob) GetContent() string {
  321. if b == nil || b.Content == nil {
  322. return ""
  323. }
  324. return *b.Content
  325. }
  326. // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise.
  327. func (b *Blob) GetEncoding() string {
  328. if b == nil || b.Encoding == nil {
  329. return ""
  330. }
  331. return *b.Encoding
  332. }
  333. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  334. func (b *Blob) GetNodeID() string {
  335. if b == nil || b.NodeID == nil {
  336. return ""
  337. }
  338. return *b.NodeID
  339. }
  340. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  341. func (b *Blob) GetSHA() string {
  342. if b == nil || b.SHA == nil {
  343. return ""
  344. }
  345. return *b.SHA
  346. }
  347. // GetSize returns the Size field if it's non-nil, zero value otherwise.
  348. func (b *Blob) GetSize() int {
  349. if b == nil || b.Size == nil {
  350. return 0
  351. }
  352. return *b.Size
  353. }
  354. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  355. func (b *Blob) GetURL() string {
  356. if b == nil || b.URL == nil {
  357. return ""
  358. }
  359. return *b.URL
  360. }
  361. // GetCommit returns the Commit field.
  362. func (b *Branch) GetCommit() *RepositoryCommit {
  363. if b == nil {
  364. return nil
  365. }
  366. return b.Commit
  367. }
  368. // GetName returns the Name field if it's non-nil, zero value otherwise.
  369. func (b *Branch) GetName() string {
  370. if b == nil || b.Name == nil {
  371. return ""
  372. }
  373. return *b.Name
  374. }
  375. // GetProtected returns the Protected field if it's non-nil, zero value otherwise.
  376. func (b *Branch) GetProtected() bool {
  377. if b == nil || b.Protected == nil {
  378. return false
  379. }
  380. return *b.Protected
  381. }
  382. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  383. func (c *CodeOfConduct) GetBody() string {
  384. if c == nil || c.Body == nil {
  385. return ""
  386. }
  387. return *c.Body
  388. }
  389. // GetKey returns the Key field if it's non-nil, zero value otherwise.
  390. func (c *CodeOfConduct) GetKey() string {
  391. if c == nil || c.Key == nil {
  392. return ""
  393. }
  394. return *c.Key
  395. }
  396. // GetName returns the Name field if it's non-nil, zero value otherwise.
  397. func (c *CodeOfConduct) GetName() string {
  398. if c == nil || c.Name == nil {
  399. return ""
  400. }
  401. return *c.Name
  402. }
  403. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  404. func (c *CodeOfConduct) GetURL() string {
  405. if c == nil || c.URL == nil {
  406. return ""
  407. }
  408. return *c.URL
  409. }
  410. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  411. func (c *CodeResult) GetHTMLURL() string {
  412. if c == nil || c.HTMLURL == nil {
  413. return ""
  414. }
  415. return *c.HTMLURL
  416. }
  417. // GetName returns the Name field if it's non-nil, zero value otherwise.
  418. func (c *CodeResult) GetName() string {
  419. if c == nil || c.Name == nil {
  420. return ""
  421. }
  422. return *c.Name
  423. }
  424. // GetPath returns the Path field if it's non-nil, zero value otherwise.
  425. func (c *CodeResult) GetPath() string {
  426. if c == nil || c.Path == nil {
  427. return ""
  428. }
  429. return *c.Path
  430. }
  431. // GetRepository returns the Repository field.
  432. func (c *CodeResult) GetRepository() *Repository {
  433. if c == nil {
  434. return nil
  435. }
  436. return c.Repository
  437. }
  438. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  439. func (c *CodeResult) GetSHA() string {
  440. if c == nil || c.SHA == nil {
  441. return ""
  442. }
  443. return *c.SHA
  444. }
  445. // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.
  446. func (c *CodeSearchResult) GetIncompleteResults() bool {
  447. if c == nil || c.IncompleteResults == nil {
  448. return false
  449. }
  450. return *c.IncompleteResults
  451. }
  452. // GetTotal returns the Total field if it's non-nil, zero value otherwise.
  453. func (c *CodeSearchResult) GetTotal() int {
  454. if c == nil || c.Total == nil {
  455. return 0
  456. }
  457. return *c.Total
  458. }
  459. // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise.
  460. func (c *CombinedStatus) GetCommitURL() string {
  461. if c == nil || c.CommitURL == nil {
  462. return ""
  463. }
  464. return *c.CommitURL
  465. }
  466. // GetName returns the Name field if it's non-nil, zero value otherwise.
  467. func (c *CombinedStatus) GetName() string {
  468. if c == nil || c.Name == nil {
  469. return ""
  470. }
  471. return *c.Name
  472. }
  473. // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
  474. func (c *CombinedStatus) GetRepositoryURL() string {
  475. if c == nil || c.RepositoryURL == nil {
  476. return ""
  477. }
  478. return *c.RepositoryURL
  479. }
  480. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  481. func (c *CombinedStatus) GetSHA() string {
  482. if c == nil || c.SHA == nil {
  483. return ""
  484. }
  485. return *c.SHA
  486. }
  487. // GetState returns the State field if it's non-nil, zero value otherwise.
  488. func (c *CombinedStatus) GetState() string {
  489. if c == nil || c.State == nil {
  490. return ""
  491. }
  492. return *c.State
  493. }
  494. // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.
  495. func (c *CombinedStatus) GetTotalCount() int {
  496. if c == nil || c.TotalCount == nil {
  497. return 0
  498. }
  499. return *c.TotalCount
  500. }
  501. // GetTotalCommitComments returns the TotalCommitComments field if it's non-nil, zero value otherwise.
  502. func (c *CommentStats) GetTotalCommitComments() int {
  503. if c == nil || c.TotalCommitComments == nil {
  504. return 0
  505. }
  506. return *c.TotalCommitComments
  507. }
  508. // GetTotalGistComments returns the TotalGistComments field if it's non-nil, zero value otherwise.
  509. func (c *CommentStats) GetTotalGistComments() int {
  510. if c == nil || c.TotalGistComments == nil {
  511. return 0
  512. }
  513. return *c.TotalGistComments
  514. }
  515. // GetTotalIssueComments returns the TotalIssueComments field if it's non-nil, zero value otherwise.
  516. func (c *CommentStats) GetTotalIssueComments() int {
  517. if c == nil || c.TotalIssueComments == nil {
  518. return 0
  519. }
  520. return *c.TotalIssueComments
  521. }
  522. // GetTotalPullRequestComments returns the TotalPullRequestComments field if it's non-nil, zero value otherwise.
  523. func (c *CommentStats) GetTotalPullRequestComments() int {
  524. if c == nil || c.TotalPullRequestComments == nil {
  525. return 0
  526. }
  527. return *c.TotalPullRequestComments
  528. }
  529. // GetAuthor returns the Author field.
  530. func (c *Commit) GetAuthor() *CommitAuthor {
  531. if c == nil {
  532. return nil
  533. }
  534. return c.Author
  535. }
  536. // GetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise.
  537. func (c *Commit) GetCommentCount() int {
  538. if c == nil || c.CommentCount == nil {
  539. return 0
  540. }
  541. return *c.CommentCount
  542. }
  543. // GetCommitter returns the Committer field.
  544. func (c *Commit) GetCommitter() *CommitAuthor {
  545. if c == nil {
  546. return nil
  547. }
  548. return c.Committer
  549. }
  550. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  551. func (c *Commit) GetHTMLURL() string {
  552. if c == nil || c.HTMLURL == nil {
  553. return ""
  554. }
  555. return *c.HTMLURL
  556. }
  557. // GetMessage returns the Message field if it's non-nil, zero value otherwise.
  558. func (c *Commit) GetMessage() string {
  559. if c == nil || c.Message == nil {
  560. return ""
  561. }
  562. return *c.Message
  563. }
  564. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  565. func (c *Commit) GetNodeID() string {
  566. if c == nil || c.NodeID == nil {
  567. return ""
  568. }
  569. return *c.NodeID
  570. }
  571. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  572. func (c *Commit) GetSHA() string {
  573. if c == nil || c.SHA == nil {
  574. return ""
  575. }
  576. return *c.SHA
  577. }
  578. // GetStats returns the Stats field.
  579. func (c *Commit) GetStats() *CommitStats {
  580. if c == nil {
  581. return nil
  582. }
  583. return c.Stats
  584. }
  585. // GetTree returns the Tree field.
  586. func (c *Commit) GetTree() *Tree {
  587. if c == nil {
  588. return nil
  589. }
  590. return c.Tree
  591. }
  592. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  593. func (c *Commit) GetURL() string {
  594. if c == nil || c.URL == nil {
  595. return ""
  596. }
  597. return *c.URL
  598. }
  599. // GetVerification returns the Verification field.
  600. func (c *Commit) GetVerification() *SignatureVerification {
  601. if c == nil {
  602. return nil
  603. }
  604. return c.Verification
  605. }
  606. // GetDate returns the Date field if it's non-nil, zero value otherwise.
  607. func (c *CommitAuthor) GetDate() time.Time {
  608. if c == nil || c.Date == nil {
  609. return time.Time{}
  610. }
  611. return *c.Date
  612. }
  613. // GetEmail returns the Email field if it's non-nil, zero value otherwise.
  614. func (c *CommitAuthor) GetEmail() string {
  615. if c == nil || c.Email == nil {
  616. return ""
  617. }
  618. return *c.Email
  619. }
  620. // GetLogin returns the Login field if it's non-nil, zero value otherwise.
  621. func (c *CommitAuthor) GetLogin() string {
  622. if c == nil || c.Login == nil {
  623. return ""
  624. }
  625. return *c.Login
  626. }
  627. // GetName returns the Name field if it's non-nil, zero value otherwise.
  628. func (c *CommitAuthor) GetName() string {
  629. if c == nil || c.Name == nil {
  630. return ""
  631. }
  632. return *c.Name
  633. }
  634. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  635. func (c *CommitCommentEvent) GetAction() string {
  636. if c == nil || c.Action == nil {
  637. return ""
  638. }
  639. return *c.Action
  640. }
  641. // GetComment returns the Comment field.
  642. func (c *CommitCommentEvent) GetComment() *RepositoryComment {
  643. if c == nil {
  644. return nil
  645. }
  646. return c.Comment
  647. }
  648. // GetInstallation returns the Installation field.
  649. func (c *CommitCommentEvent) GetInstallation() *Installation {
  650. if c == nil {
  651. return nil
  652. }
  653. return c.Installation
  654. }
  655. // GetRepo returns the Repo field.
  656. func (c *CommitCommentEvent) GetRepo() *Repository {
  657. if c == nil {
  658. return nil
  659. }
  660. return c.Repo
  661. }
  662. // GetSender returns the Sender field.
  663. func (c *CommitCommentEvent) GetSender() *User {
  664. if c == nil {
  665. return nil
  666. }
  667. return c.Sender
  668. }
  669. // GetAdditions returns the Additions field if it's non-nil, zero value otherwise.
  670. func (c *CommitFile) GetAdditions() int {
  671. if c == nil || c.Additions == nil {
  672. return 0
  673. }
  674. return *c.Additions
  675. }
  676. // GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise.
  677. func (c *CommitFile) GetBlobURL() string {
  678. if c == nil || c.BlobURL == nil {
  679. return ""
  680. }
  681. return *c.BlobURL
  682. }
  683. // GetChanges returns the Changes field if it's non-nil, zero value otherwise.
  684. func (c *CommitFile) GetChanges() int {
  685. if c == nil || c.Changes == nil {
  686. return 0
  687. }
  688. return *c.Changes
  689. }
  690. // GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise.
  691. func (c *CommitFile) GetContentsURL() string {
  692. if c == nil || c.ContentsURL == nil {
  693. return ""
  694. }
  695. return *c.ContentsURL
  696. }
  697. // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise.
  698. func (c *CommitFile) GetDeletions() int {
  699. if c == nil || c.Deletions == nil {
  700. return 0
  701. }
  702. return *c.Deletions
  703. }
  704. // GetFilename returns the Filename field if it's non-nil, zero value otherwise.
  705. func (c *CommitFile) GetFilename() string {
  706. if c == nil || c.Filename == nil {
  707. return ""
  708. }
  709. return *c.Filename
  710. }
  711. // GetPatch returns the Patch field if it's non-nil, zero value otherwise.
  712. func (c *CommitFile) GetPatch() string {
  713. if c == nil || c.Patch == nil {
  714. return ""
  715. }
  716. return *c.Patch
  717. }
  718. // GetRawURL returns the RawURL field if it's non-nil, zero value otherwise.
  719. func (c *CommitFile) GetRawURL() string {
  720. if c == nil || c.RawURL == nil {
  721. return ""
  722. }
  723. return *c.RawURL
  724. }
  725. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  726. func (c *CommitFile) GetSHA() string {
  727. if c == nil || c.SHA == nil {
  728. return ""
  729. }
  730. return *c.SHA
  731. }
  732. // GetStatus returns the Status field if it's non-nil, zero value otherwise.
  733. func (c *CommitFile) GetStatus() string {
  734. if c == nil || c.Status == nil {
  735. return ""
  736. }
  737. return *c.Status
  738. }
  739. // GetAuthor returns the Author field.
  740. func (c *CommitResult) GetAuthor() *User {
  741. if c == nil {
  742. return nil
  743. }
  744. return c.Author
  745. }
  746. // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.
  747. func (c *CommitResult) GetCommentsURL() string {
  748. if c == nil || c.CommentsURL == nil {
  749. return ""
  750. }
  751. return *c.CommentsURL
  752. }
  753. // GetCommit returns the Commit field.
  754. func (c *CommitResult) GetCommit() *Commit {
  755. if c == nil {
  756. return nil
  757. }
  758. return c.Commit
  759. }
  760. // GetCommitter returns the Committer field.
  761. func (c *CommitResult) GetCommitter() *User {
  762. if c == nil {
  763. return nil
  764. }
  765. return c.Committer
  766. }
  767. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  768. func (c *CommitResult) GetHTMLURL() string {
  769. if c == nil || c.HTMLURL == nil {
  770. return ""
  771. }
  772. return *c.HTMLURL
  773. }
  774. // GetRepository returns the Repository field.
  775. func (c *CommitResult) GetRepository() *Repository {
  776. if c == nil {
  777. return nil
  778. }
  779. return c.Repository
  780. }
  781. // GetScore returns the Score field.
  782. func (c *CommitResult) GetScore() *float64 {
  783. if c == nil {
  784. return nil
  785. }
  786. return c.Score
  787. }
  788. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  789. func (c *CommitResult) GetSHA() string {
  790. if c == nil || c.SHA == nil {
  791. return ""
  792. }
  793. return *c.SHA
  794. }
  795. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  796. func (c *CommitResult) GetURL() string {
  797. if c == nil || c.URL == nil {
  798. return ""
  799. }
  800. return *c.URL
  801. }
  802. // GetAheadBy returns the AheadBy field if it's non-nil, zero value otherwise.
  803. func (c *CommitsComparison) GetAheadBy() int {
  804. if c == nil || c.AheadBy == nil {
  805. return 0
  806. }
  807. return *c.AheadBy
  808. }
  809. // GetBaseCommit returns the BaseCommit field.
  810. func (c *CommitsComparison) GetBaseCommit() *RepositoryCommit {
  811. if c == nil {
  812. return nil
  813. }
  814. return c.BaseCommit
  815. }
  816. // GetBehindBy returns the BehindBy field if it's non-nil, zero value otherwise.
  817. func (c *CommitsComparison) GetBehindBy() int {
  818. if c == nil || c.BehindBy == nil {
  819. return 0
  820. }
  821. return *c.BehindBy
  822. }
  823. // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise.
  824. func (c *CommitsComparison) GetDiffURL() string {
  825. if c == nil || c.DiffURL == nil {
  826. return ""
  827. }
  828. return *c.DiffURL
  829. }
  830. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  831. func (c *CommitsComparison) GetHTMLURL() string {
  832. if c == nil || c.HTMLURL == nil {
  833. return ""
  834. }
  835. return *c.HTMLURL
  836. }
  837. // GetMergeBaseCommit returns the MergeBaseCommit field.
  838. func (c *CommitsComparison) GetMergeBaseCommit() *RepositoryCommit {
  839. if c == nil {
  840. return nil
  841. }
  842. return c.MergeBaseCommit
  843. }
  844. // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise.
  845. func (c *CommitsComparison) GetPatchURL() string {
  846. if c == nil || c.PatchURL == nil {
  847. return ""
  848. }
  849. return *c.PatchURL
  850. }
  851. // GetPermalinkURL returns the PermalinkURL field if it's non-nil, zero value otherwise.
  852. func (c *CommitsComparison) GetPermalinkURL() string {
  853. if c == nil || c.PermalinkURL == nil {
  854. return ""
  855. }
  856. return *c.PermalinkURL
  857. }
  858. // GetStatus returns the Status field if it's non-nil, zero value otherwise.
  859. func (c *CommitsComparison) GetStatus() string {
  860. if c == nil || c.Status == nil {
  861. return ""
  862. }
  863. return *c.Status
  864. }
  865. // GetTotalCommits returns the TotalCommits field if it's non-nil, zero value otherwise.
  866. func (c *CommitsComparison) GetTotalCommits() int {
  867. if c == nil || c.TotalCommits == nil {
  868. return 0
  869. }
  870. return *c.TotalCommits
  871. }
  872. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  873. func (c *CommitsComparison) GetURL() string {
  874. if c == nil || c.URL == nil {
  875. return ""
  876. }
  877. return *c.URL
  878. }
  879. // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.
  880. func (c *CommitsSearchResult) GetIncompleteResults() bool {
  881. if c == nil || c.IncompleteResults == nil {
  882. return false
  883. }
  884. return *c.IncompleteResults
  885. }
  886. // GetTotal returns the Total field if it's non-nil, zero value otherwise.
  887. func (c *CommitsSearchResult) GetTotal() int {
  888. if c == nil || c.Total == nil {
  889. return 0
  890. }
  891. return *c.Total
  892. }
  893. // GetAdditions returns the Additions field if it's non-nil, zero value otherwise.
  894. func (c *CommitStats) GetAdditions() int {
  895. if c == nil || c.Additions == nil {
  896. return 0
  897. }
  898. return *c.Additions
  899. }
  900. // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise.
  901. func (c *CommitStats) GetDeletions() int {
  902. if c == nil || c.Deletions == nil {
  903. return 0
  904. }
  905. return *c.Deletions
  906. }
  907. // GetTotal returns the Total field if it's non-nil, zero value otherwise.
  908. func (c *CommitStats) GetTotal() int {
  909. if c == nil || c.Total == nil {
  910. return 0
  911. }
  912. return *c.Total
  913. }
  914. // GetCodeOfConduct returns the CodeOfConduct field.
  915. func (c *CommunityHealthFiles) GetCodeOfConduct() *Metric {
  916. if c == nil {
  917. return nil
  918. }
  919. return c.CodeOfConduct
  920. }
  921. // GetContributing returns the Contributing field.
  922. func (c *CommunityHealthFiles) GetContributing() *Metric {
  923. if c == nil {
  924. return nil
  925. }
  926. return c.Contributing
  927. }
  928. // GetLicense returns the License field.
  929. func (c *CommunityHealthFiles) GetLicense() *Metric {
  930. if c == nil {
  931. return nil
  932. }
  933. return c.License
  934. }
  935. // GetReadme returns the Readme field.
  936. func (c *CommunityHealthFiles) GetReadme() *Metric {
  937. if c == nil {
  938. return nil
  939. }
  940. return c.Readme
  941. }
  942. // GetFiles returns the Files field.
  943. func (c *CommunityHealthMetrics) GetFiles() *CommunityHealthFiles {
  944. if c == nil {
  945. return nil
  946. }
  947. return c.Files
  948. }
  949. // GetHealthPercentage returns the HealthPercentage field if it's non-nil, zero value otherwise.
  950. func (c *CommunityHealthMetrics) GetHealthPercentage() int {
  951. if c == nil || c.HealthPercentage == nil {
  952. return 0
  953. }
  954. return *c.HealthPercentage
  955. }
  956. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  957. func (c *CommunityHealthMetrics) GetUpdatedAt() time.Time {
  958. if c == nil || c.UpdatedAt == nil {
  959. return time.Time{}
  960. }
  961. return *c.UpdatedAt
  962. }
  963. // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.
  964. func (c *Contributor) GetAvatarURL() string {
  965. if c == nil || c.AvatarURL == nil {
  966. return ""
  967. }
  968. return *c.AvatarURL
  969. }
  970. // GetContributions returns the Contributions field if it's non-nil, zero value otherwise.
  971. func (c *Contributor) GetContributions() int {
  972. if c == nil || c.Contributions == nil {
  973. return 0
  974. }
  975. return *c.Contributions
  976. }
  977. // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.
  978. func (c *Contributor) GetEventsURL() string {
  979. if c == nil || c.EventsURL == nil {
  980. return ""
  981. }
  982. return *c.EventsURL
  983. }
  984. // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise.
  985. func (c *Contributor) GetFollowersURL() string {
  986. if c == nil || c.FollowersURL == nil {
  987. return ""
  988. }
  989. return *c.FollowersURL
  990. }
  991. // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise.
  992. func (c *Contributor) GetFollowingURL() string {
  993. if c == nil || c.FollowingURL == nil {
  994. return ""
  995. }
  996. return *c.FollowingURL
  997. }
  998. // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise.
  999. func (c *Contributor) GetGistsURL() string {
  1000. if c == nil || c.GistsURL == nil {
  1001. return ""
  1002. }
  1003. return *c.GistsURL
  1004. }
  1005. // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise.
  1006. func (c *Contributor) GetGravatarID() string {
  1007. if c == nil || c.GravatarID == nil {
  1008. return ""
  1009. }
  1010. return *c.GravatarID
  1011. }
  1012. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  1013. func (c *Contributor) GetHTMLURL() string {
  1014. if c == nil || c.HTMLURL == nil {
  1015. return ""
  1016. }
  1017. return *c.HTMLURL
  1018. }
  1019. // GetID returns the ID field if it's non-nil, zero value otherwise.
  1020. func (c *Contributor) GetID() int64 {
  1021. if c == nil || c.ID == nil {
  1022. return 0
  1023. }
  1024. return *c.ID
  1025. }
  1026. // GetLogin returns the Login field if it's non-nil, zero value otherwise.
  1027. func (c *Contributor) GetLogin() string {
  1028. if c == nil || c.Login == nil {
  1029. return ""
  1030. }
  1031. return *c.Login
  1032. }
  1033. // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise.
  1034. func (c *Contributor) GetOrganizationsURL() string {
  1035. if c == nil || c.OrganizationsURL == nil {
  1036. return ""
  1037. }
  1038. return *c.OrganizationsURL
  1039. }
  1040. // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise.
  1041. func (c *Contributor) GetReceivedEventsURL() string {
  1042. if c == nil || c.ReceivedEventsURL == nil {
  1043. return ""
  1044. }
  1045. return *c.ReceivedEventsURL
  1046. }
  1047. // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise.
  1048. func (c *Contributor) GetReposURL() string {
  1049. if c == nil || c.ReposURL == nil {
  1050. return ""
  1051. }
  1052. return *c.ReposURL
  1053. }
  1054. // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise.
  1055. func (c *Contributor) GetSiteAdmin() bool {
  1056. if c == nil || c.SiteAdmin == nil {
  1057. return false
  1058. }
  1059. return *c.SiteAdmin
  1060. }
  1061. // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise.
  1062. func (c *Contributor) GetStarredURL() string {
  1063. if c == nil || c.StarredURL == nil {
  1064. return ""
  1065. }
  1066. return *c.StarredURL
  1067. }
  1068. // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise.
  1069. func (c *Contributor) GetSubscriptionsURL() string {
  1070. if c == nil || c.SubscriptionsURL == nil {
  1071. return ""
  1072. }
  1073. return *c.SubscriptionsURL
  1074. }
  1075. // GetType returns the Type field if it's non-nil, zero value otherwise.
  1076. func (c *Contributor) GetType() string {
  1077. if c == nil || c.Type == nil {
  1078. return ""
  1079. }
  1080. return *c.Type
  1081. }
  1082. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  1083. func (c *Contributor) GetURL() string {
  1084. if c == nil || c.URL == nil {
  1085. return ""
  1086. }
  1087. return *c.URL
  1088. }
  1089. // GetAuthor returns the Author field.
  1090. func (c *ContributorStats) GetAuthor() *Contributor {
  1091. if c == nil {
  1092. return nil
  1093. }
  1094. return c.Author
  1095. }
  1096. // GetTotal returns the Total field if it's non-nil, zero value otherwise.
  1097. func (c *ContributorStats) GetTotal() int {
  1098. if c == nil || c.Total == nil {
  1099. return 0
  1100. }
  1101. return *c.Total
  1102. }
  1103. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  1104. func (c *CreateEvent) GetDescription() string {
  1105. if c == nil || c.Description == nil {
  1106. return ""
  1107. }
  1108. return *c.Description
  1109. }
  1110. // GetInstallation returns the Installation field.
  1111. func (c *CreateEvent) GetInstallation() *Installation {
  1112. if c == nil {
  1113. return nil
  1114. }
  1115. return c.Installation
  1116. }
  1117. // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise.
  1118. func (c *CreateEvent) GetMasterBranch() string {
  1119. if c == nil || c.MasterBranch == nil {
  1120. return ""
  1121. }
  1122. return *c.MasterBranch
  1123. }
  1124. // GetPusherType returns the PusherType field if it's non-nil, zero value otherwise.
  1125. func (c *CreateEvent) GetPusherType() string {
  1126. if c == nil || c.PusherType == nil {
  1127. return ""
  1128. }
  1129. return *c.PusherType
  1130. }
  1131. // GetRef returns the Ref field if it's non-nil, zero value otherwise.
  1132. func (c *CreateEvent) GetRef() string {
  1133. if c == nil || c.Ref == nil {
  1134. return ""
  1135. }
  1136. return *c.Ref
  1137. }
  1138. // GetRefType returns the RefType field if it's non-nil, zero value otherwise.
  1139. func (c *CreateEvent) GetRefType() string {
  1140. if c == nil || c.RefType == nil {
  1141. return ""
  1142. }
  1143. return *c.RefType
  1144. }
  1145. // GetRepo returns the Repo field.
  1146. func (c *CreateEvent) GetRepo() *Repository {
  1147. if c == nil {
  1148. return nil
  1149. }
  1150. return c.Repo
  1151. }
  1152. // GetSender returns the Sender field.
  1153. func (c *CreateEvent) GetSender() *User {
  1154. if c == nil {
  1155. return nil
  1156. }
  1157. return c.Sender
  1158. }
  1159. // GetEmail returns the Email field if it's non-nil, zero value otherwise.
  1160. func (c *CreateOrgInvitationOptions) GetEmail() string {
  1161. if c == nil || c.Email == nil {
  1162. return ""
  1163. }
  1164. return *c.Email
  1165. }
  1166. // GetInviteeID returns the InviteeID field if it's non-nil, zero value otherwise.
  1167. func (c *CreateOrgInvitationOptions) GetInviteeID() int64 {
  1168. if c == nil || c.InviteeID == nil {
  1169. return 0
  1170. }
  1171. return *c.InviteeID
  1172. }
  1173. // GetRole returns the Role field if it's non-nil, zero value otherwise.
  1174. func (c *CreateOrgInvitationOptions) GetRole() string {
  1175. if c == nil || c.Role == nil {
  1176. return ""
  1177. }
  1178. return *c.Role
  1179. }
  1180. // GetInstallation returns the Installation field.
  1181. func (d *DeleteEvent) GetInstallation() *Installation {
  1182. if d == nil {
  1183. return nil
  1184. }
  1185. return d.Installation
  1186. }
  1187. // GetPusherType returns the PusherType field if it's non-nil, zero value otherwise.
  1188. func (d *DeleteEvent) GetPusherType() string {
  1189. if d == nil || d.PusherType == nil {
  1190. return ""
  1191. }
  1192. return *d.PusherType
  1193. }
  1194. // GetRef returns the Ref field if it's non-nil, zero value otherwise.
  1195. func (d *DeleteEvent) GetRef() string {
  1196. if d == nil || d.Ref == nil {
  1197. return ""
  1198. }
  1199. return *d.Ref
  1200. }
  1201. // GetRefType returns the RefType field if it's non-nil, zero value otherwise.
  1202. func (d *DeleteEvent) GetRefType() string {
  1203. if d == nil || d.RefType == nil {
  1204. return ""
  1205. }
  1206. return *d.RefType
  1207. }
  1208. // GetRepo returns the Repo field.
  1209. func (d *DeleteEvent) GetRepo() *Repository {
  1210. if d == nil {
  1211. return nil
  1212. }
  1213. return d.Repo
  1214. }
  1215. // GetSender returns the Sender field.
  1216. func (d *DeleteEvent) GetSender() *User {
  1217. if d == nil {
  1218. return nil
  1219. }
  1220. return d.Sender
  1221. }
  1222. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  1223. func (d *Deployment) GetCreatedAt() Timestamp {
  1224. if d == nil || d.CreatedAt == nil {
  1225. return Timestamp{}
  1226. }
  1227. return *d.CreatedAt
  1228. }
  1229. // GetCreator returns the Creator field.
  1230. func (d *Deployment) GetCreator() *User {
  1231. if d == nil {
  1232. return nil
  1233. }
  1234. return d.Creator
  1235. }
  1236. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  1237. func (d *Deployment) GetDescription() string {
  1238. if d == nil || d.Description == nil {
  1239. return ""
  1240. }
  1241. return *d.Description
  1242. }
  1243. // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise.
  1244. func (d *Deployment) GetEnvironment() string {
  1245. if d == nil || d.Environment == nil {
  1246. return ""
  1247. }
  1248. return *d.Environment
  1249. }
  1250. // GetID returns the ID field if it's non-nil, zero value otherwise.
  1251. func (d *Deployment) GetID() int64 {
  1252. if d == nil || d.ID == nil {
  1253. return 0
  1254. }
  1255. return *d.ID
  1256. }
  1257. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  1258. func (d *Deployment) GetNodeID() string {
  1259. if d == nil || d.NodeID == nil {
  1260. return ""
  1261. }
  1262. return *d.NodeID
  1263. }
  1264. // GetRef returns the Ref field if it's non-nil, zero value otherwise.
  1265. func (d *Deployment) GetRef() string {
  1266. if d == nil || d.Ref == nil {
  1267. return ""
  1268. }
  1269. return *d.Ref
  1270. }
  1271. // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
  1272. func (d *Deployment) GetRepositoryURL() string {
  1273. if d == nil || d.RepositoryURL == nil {
  1274. return ""
  1275. }
  1276. return *d.RepositoryURL
  1277. }
  1278. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  1279. func (d *Deployment) GetSHA() string {
  1280. if d == nil || d.SHA == nil {
  1281. return ""
  1282. }
  1283. return *d.SHA
  1284. }
  1285. // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise.
  1286. func (d *Deployment) GetStatusesURL() string {
  1287. if d == nil || d.StatusesURL == nil {
  1288. return ""
  1289. }
  1290. return *d.StatusesURL
  1291. }
  1292. // GetTask returns the Task field if it's non-nil, zero value otherwise.
  1293. func (d *Deployment) GetTask() string {
  1294. if d == nil || d.Task == nil {
  1295. return ""
  1296. }
  1297. return *d.Task
  1298. }
  1299. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  1300. func (d *Deployment) GetUpdatedAt() Timestamp {
  1301. if d == nil || d.UpdatedAt == nil {
  1302. return Timestamp{}
  1303. }
  1304. return *d.UpdatedAt
  1305. }
  1306. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  1307. func (d *Deployment) GetURL() string {
  1308. if d == nil || d.URL == nil {
  1309. return ""
  1310. }
  1311. return *d.URL
  1312. }
  1313. // GetDeployment returns the Deployment field.
  1314. func (d *DeploymentEvent) GetDeployment() *Deployment {
  1315. if d == nil {
  1316. return nil
  1317. }
  1318. return d.Deployment
  1319. }
  1320. // GetInstallation returns the Installation field.
  1321. func (d *DeploymentEvent) GetInstallation() *Installation {
  1322. if d == nil {
  1323. return nil
  1324. }
  1325. return d.Installation
  1326. }
  1327. // GetRepo returns the Repo field.
  1328. func (d *DeploymentEvent) GetRepo() *Repository {
  1329. if d == nil {
  1330. return nil
  1331. }
  1332. return d.Repo
  1333. }
  1334. // GetSender returns the Sender field.
  1335. func (d *DeploymentEvent) GetSender() *User {
  1336. if d == nil {
  1337. return nil
  1338. }
  1339. return d.Sender
  1340. }
  1341. // GetAutoMerge returns the AutoMerge field if it's non-nil, zero value otherwise.
  1342. func (d *DeploymentRequest) GetAutoMerge() bool {
  1343. if d == nil || d.AutoMerge == nil {
  1344. return false
  1345. }
  1346. return *d.AutoMerge
  1347. }
  1348. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  1349. func (d *DeploymentRequest) GetDescription() string {
  1350. if d == nil || d.Description == nil {
  1351. return ""
  1352. }
  1353. return *d.Description
  1354. }
  1355. // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise.
  1356. func (d *DeploymentRequest) GetEnvironment() string {
  1357. if d == nil || d.Environment == nil {
  1358. return ""
  1359. }
  1360. return *d.Environment
  1361. }
  1362. // GetPayload returns the Payload field if it's non-nil, zero value otherwise.
  1363. func (d *DeploymentRequest) GetPayload() string {
  1364. if d == nil || d.Payload == nil {
  1365. return ""
  1366. }
  1367. return *d.Payload
  1368. }
  1369. // GetProductionEnvironment returns the ProductionEnvironment field if it's non-nil, zero value otherwise.
  1370. func (d *DeploymentRequest) GetProductionEnvironment() bool {
  1371. if d == nil || d.ProductionEnvironment == nil {
  1372. return false
  1373. }
  1374. return *d.ProductionEnvironment
  1375. }
  1376. // GetRef returns the Ref field if it's non-nil, zero value otherwise.
  1377. func (d *DeploymentRequest) GetRef() string {
  1378. if d == nil || d.Ref == nil {
  1379. return ""
  1380. }
  1381. return *d.Ref
  1382. }
  1383. // GetRequiredContexts returns the RequiredContexts field if it's non-nil, zero value otherwise.
  1384. func (d *DeploymentRequest) GetRequiredContexts() []string {
  1385. if d == nil || d.RequiredContexts == nil {
  1386. return nil
  1387. }
  1388. return *d.RequiredContexts
  1389. }
  1390. // GetTask returns the Task field if it's non-nil, zero value otherwise.
  1391. func (d *DeploymentRequest) GetTask() string {
  1392. if d == nil || d.Task == nil {
  1393. return ""
  1394. }
  1395. return *d.Task
  1396. }
  1397. // GetTransientEnvironment returns the TransientEnvironment field if it's non-nil, zero value otherwise.
  1398. func (d *DeploymentRequest) GetTransientEnvironment() bool {
  1399. if d == nil || d.TransientEnvironment == nil {
  1400. return false
  1401. }
  1402. return *d.TransientEnvironment
  1403. }
  1404. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  1405. func (d *DeploymentStatus) GetCreatedAt() Timestamp {
  1406. if d == nil || d.CreatedAt == nil {
  1407. return Timestamp{}
  1408. }
  1409. return *d.CreatedAt
  1410. }
  1411. // GetCreator returns the Creator field.
  1412. func (d *DeploymentStatus) GetCreator() *User {
  1413. if d == nil {
  1414. return nil
  1415. }
  1416. return d.Creator
  1417. }
  1418. // GetDeploymentURL returns the DeploymentURL field if it's non-nil, zero value otherwise.
  1419. func (d *DeploymentStatus) GetDeploymentURL() string {
  1420. if d == nil || d.DeploymentURL == nil {
  1421. return ""
  1422. }
  1423. return *d.DeploymentURL
  1424. }
  1425. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  1426. func (d *DeploymentStatus) GetDescription() string {
  1427. if d == nil || d.Description == nil {
  1428. return ""
  1429. }
  1430. return *d.Description
  1431. }
  1432. // GetID returns the ID field if it's non-nil, zero value otherwise.
  1433. func (d *DeploymentStatus) GetID() int64 {
  1434. if d == nil || d.ID == nil {
  1435. return 0
  1436. }
  1437. return *d.ID
  1438. }
  1439. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  1440. func (d *DeploymentStatus) GetNodeID() string {
  1441. if d == nil || d.NodeID == nil {
  1442. return ""
  1443. }
  1444. return *d.NodeID
  1445. }
  1446. // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
  1447. func (d *DeploymentStatus) GetRepositoryURL() string {
  1448. if d == nil || d.RepositoryURL == nil {
  1449. return ""
  1450. }
  1451. return *d.RepositoryURL
  1452. }
  1453. // GetState returns the State field if it's non-nil, zero value otherwise.
  1454. func (d *DeploymentStatus) GetState() string {
  1455. if d == nil || d.State == nil {
  1456. return ""
  1457. }
  1458. return *d.State
  1459. }
  1460. // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise.
  1461. func (d *DeploymentStatus) GetTargetURL() string {
  1462. if d == nil || d.TargetURL == nil {
  1463. return ""
  1464. }
  1465. return *d.TargetURL
  1466. }
  1467. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  1468. func (d *DeploymentStatus) GetUpdatedAt() Timestamp {
  1469. if d == nil || d.UpdatedAt == nil {
  1470. return Timestamp{}
  1471. }
  1472. return *d.UpdatedAt
  1473. }
  1474. // GetDeployment returns the Deployment field.
  1475. func (d *DeploymentStatusEvent) GetDeployment() *Deployment {
  1476. if d == nil {
  1477. return nil
  1478. }
  1479. return d.Deployment
  1480. }
  1481. // GetDeploymentStatus returns the DeploymentStatus field.
  1482. func (d *DeploymentStatusEvent) GetDeploymentStatus() *DeploymentStatus {
  1483. if d == nil {
  1484. return nil
  1485. }
  1486. return d.DeploymentStatus
  1487. }
  1488. // GetInstallation returns the Installation field.
  1489. func (d *DeploymentStatusEvent) GetInstallation() *Installation {
  1490. if d == nil {
  1491. return nil
  1492. }
  1493. return d.Installation
  1494. }
  1495. // GetRepo returns the Repo field.
  1496. func (d *DeploymentStatusEvent) GetRepo() *Repository {
  1497. if d == nil {
  1498. return nil
  1499. }
  1500. return d.Repo
  1501. }
  1502. // GetSender returns the Sender field.
  1503. func (d *DeploymentStatusEvent) GetSender() *User {
  1504. if d == nil {
  1505. return nil
  1506. }
  1507. return d.Sender
  1508. }
  1509. // GetAutoInactive returns the AutoInactive field if it's non-nil, zero value otherwise.
  1510. func (d *DeploymentStatusRequest) GetAutoInactive() bool {
  1511. if d == nil || d.AutoInactive == nil {
  1512. return false
  1513. }
  1514. return *d.AutoInactive
  1515. }
  1516. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  1517. func (d *DeploymentStatusRequest) GetDescription() string {
  1518. if d == nil || d.Description == nil {
  1519. return ""
  1520. }
  1521. return *d.Description
  1522. }
  1523. // GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise.
  1524. func (d *DeploymentStatusRequest) GetEnvironmentURL() string {
  1525. if d == nil || d.EnvironmentURL == nil {
  1526. return ""
  1527. }
  1528. return *d.EnvironmentURL
  1529. }
  1530. // GetLogURL returns the LogURL field if it's non-nil, zero value otherwise.
  1531. func (d *DeploymentStatusRequest) GetLogURL() string {
  1532. if d == nil || d.LogURL == nil {
  1533. return ""
  1534. }
  1535. return *d.LogURL
  1536. }
  1537. // GetState returns the State field if it's non-nil, zero value otherwise.
  1538. func (d *DeploymentStatusRequest) GetState() string {
  1539. if d == nil || d.State == nil {
  1540. return ""
  1541. }
  1542. return *d.State
  1543. }
  1544. // GetAuthor returns the Author field.
  1545. func (d *DiscussionComment) GetAuthor() *User {
  1546. if d == nil {
  1547. return nil
  1548. }
  1549. return d.Author
  1550. }
  1551. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  1552. func (d *DiscussionComment) GetBody() string {
  1553. if d == nil || d.Body == nil {
  1554. return ""
  1555. }
  1556. return *d.Body
  1557. }
  1558. // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise.
  1559. func (d *DiscussionComment) GetBodyHTML() string {
  1560. if d == nil || d.BodyHTML == nil {
  1561. return ""
  1562. }
  1563. return *d.BodyHTML
  1564. }
  1565. // GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise.
  1566. func (d *DiscussionComment) GetBodyVersion() string {
  1567. if d == nil || d.BodyVersion == nil {
  1568. return ""
  1569. }
  1570. return *d.BodyVersion
  1571. }
  1572. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  1573. func (d *DiscussionComment) GetCreatedAt() Timestamp {
  1574. if d == nil || d.CreatedAt == nil {
  1575. return Timestamp{}
  1576. }
  1577. return *d.CreatedAt
  1578. }
  1579. // GetDiscussionURL returns the DiscussionURL field if it's non-nil, zero value otherwise.
  1580. func (d *DiscussionComment) GetDiscussionURL() string {
  1581. if d == nil || d.DiscussionURL == nil {
  1582. return ""
  1583. }
  1584. return *d.DiscussionURL
  1585. }
  1586. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  1587. func (d *DiscussionComment) GetHTMLURL() string {
  1588. if d == nil || d.HTMLURL == nil {
  1589. return ""
  1590. }
  1591. return *d.HTMLURL
  1592. }
  1593. // GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise.
  1594. func (d *DiscussionComment) GetLastEditedAt() Timestamp {
  1595. if d == nil || d.LastEditedAt == nil {
  1596. return Timestamp{}
  1597. }
  1598. return *d.LastEditedAt
  1599. }
  1600. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  1601. func (d *DiscussionComment) GetNodeID() string {
  1602. if d == nil || d.NodeID == nil {
  1603. return ""
  1604. }
  1605. return *d.NodeID
  1606. }
  1607. // GetNumber returns the Number field if it's non-nil, zero value otherwise.
  1608. func (d *DiscussionComment) GetNumber() int64 {
  1609. if d == nil || d.Number == nil {
  1610. return 0
  1611. }
  1612. return *d.Number
  1613. }
  1614. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  1615. func (d *DiscussionComment) GetUpdatedAt() Timestamp {
  1616. if d == nil || d.UpdatedAt == nil {
  1617. return Timestamp{}
  1618. }
  1619. return *d.UpdatedAt
  1620. }
  1621. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  1622. func (d *DiscussionComment) GetURL() string {
  1623. if d == nil || d.URL == nil {
  1624. return ""
  1625. }
  1626. return *d.URL
  1627. }
  1628. // GetTeams returns the Teams field if it's non-nil, zero value otherwise.
  1629. func (d *DismissalRestrictionsRequest) GetTeams() []string {
  1630. if d == nil || d.Teams == nil {
  1631. return nil
  1632. }
  1633. return *d.Teams
  1634. }
  1635. // GetUsers returns the Users field if it's non-nil, zero value otherwise.
  1636. func (d *DismissalRestrictionsRequest) GetUsers() []string {
  1637. if d == nil || d.Users == nil {
  1638. return nil
  1639. }
  1640. return *d.Users
  1641. }
  1642. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  1643. func (d *DraftReviewComment) GetBody() string {
  1644. if d == nil || d.Body == nil {
  1645. return ""
  1646. }
  1647. return *d.Body
  1648. }
  1649. // GetPath returns the Path field if it's non-nil, zero value otherwise.
  1650. func (d *DraftReviewComment) GetPath() string {
  1651. if d == nil || d.Path == nil {
  1652. return ""
  1653. }
  1654. return *d.Path
  1655. }
  1656. // GetPosition returns the Position field if it's non-nil, zero value otherwise.
  1657. func (d *DraftReviewComment) GetPosition() int {
  1658. if d == nil || d.Position == nil {
  1659. return 0
  1660. }
  1661. return *d.Position
  1662. }
  1663. // GetActor returns the Actor field.
  1664. func (e *Event) GetActor() *User {
  1665. if e == nil {
  1666. return nil
  1667. }
  1668. return e.Actor
  1669. }
  1670. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  1671. func (e *Event) GetCreatedAt() time.Time {
  1672. if e == nil || e.CreatedAt == nil {
  1673. return time.Time{}
  1674. }
  1675. return *e.CreatedAt
  1676. }
  1677. // GetID returns the ID field if it's non-nil, zero value otherwise.
  1678. func (e *Event) GetID() string {
  1679. if e == nil || e.ID == nil {
  1680. return ""
  1681. }
  1682. return *e.ID
  1683. }
  1684. // GetOrg returns the Org field.
  1685. func (e *Event) GetOrg() *Organization {
  1686. if e == nil {
  1687. return nil
  1688. }
  1689. return e.Org
  1690. }
  1691. // GetPublic returns the Public field if it's non-nil, zero value otherwise.
  1692. func (e *Event) GetPublic() bool {
  1693. if e == nil || e.Public == nil {
  1694. return false
  1695. }
  1696. return *e.Public
  1697. }
  1698. // GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise.
  1699. func (e *Event) GetRawPayload() json.RawMessage {
  1700. if e == nil || e.RawPayload == nil {
  1701. return json.RawMessage{}
  1702. }
  1703. return *e.RawPayload
  1704. }
  1705. // GetRepo returns the Repo field.
  1706. func (e *Event) GetRepo() *Repository {
  1707. if e == nil {
  1708. return nil
  1709. }
  1710. return e.Repo
  1711. }
  1712. // GetType returns the Type field if it's non-nil, zero value otherwise.
  1713. func (e *Event) GetType() string {
  1714. if e == nil || e.Type == nil {
  1715. return ""
  1716. }
  1717. return *e.Type
  1718. }
  1719. // GetHRef returns the HRef field if it's non-nil, zero value otherwise.
  1720. func (f *FeedLink) GetHRef() string {
  1721. if f == nil || f.HRef == nil {
  1722. return ""
  1723. }
  1724. return *f.HRef
  1725. }
  1726. // GetType returns the Type field if it's non-nil, zero value otherwise.
  1727. func (f *FeedLink) GetType() string {
  1728. if f == nil || f.Type == nil {
  1729. return ""
  1730. }
  1731. return *f.Type
  1732. }
  1733. // GetCurrentUserActorURL returns the CurrentUserActorURL field if it's non-nil, zero value otherwise.
  1734. func (f *Feeds) GetCurrentUserActorURL() string {
  1735. if f == nil || f.CurrentUserActorURL == nil {
  1736. return ""
  1737. }
  1738. return *f.CurrentUserActorURL
  1739. }
  1740. // GetCurrentUserOrganizationURL returns the CurrentUserOrganizationURL field if it's non-nil, zero value otherwise.
  1741. func (f *Feeds) GetCurrentUserOrganizationURL() string {
  1742. if f == nil || f.CurrentUserOrganizationURL == nil {
  1743. return ""
  1744. }
  1745. return *f.CurrentUserOrganizationURL
  1746. }
  1747. // GetCurrentUserPublicURL returns the CurrentUserPublicURL field if it's non-nil, zero value otherwise.
  1748. func (f *Feeds) GetCurrentUserPublicURL() string {
  1749. if f == nil || f.CurrentUserPublicURL == nil {
  1750. return ""
  1751. }
  1752. return *f.CurrentUserPublicURL
  1753. }
  1754. // GetCurrentUserURL returns the CurrentUserURL field if it's non-nil, zero value otherwise.
  1755. func (f *Feeds) GetCurrentUserURL() string {
  1756. if f == nil || f.CurrentUserURL == nil {
  1757. return ""
  1758. }
  1759. return *f.CurrentUserURL
  1760. }
  1761. // GetTimelineURL returns the TimelineURL field if it's non-nil, zero value otherwise.
  1762. func (f *Feeds) GetTimelineURL() string {
  1763. if f == nil || f.TimelineURL == nil {
  1764. return ""
  1765. }
  1766. return *f.TimelineURL
  1767. }
  1768. // GetUserURL returns the UserURL field if it's non-nil, zero value otherwise.
  1769. func (f *Feeds) GetUserURL() string {
  1770. if f == nil || f.UserURL == nil {
  1771. return ""
  1772. }
  1773. return *f.UserURL
  1774. }
  1775. // GetForkee returns the Forkee field.
  1776. func (f *ForkEvent) GetForkee() *Repository {
  1777. if f == nil {
  1778. return nil
  1779. }
  1780. return f.Forkee
  1781. }
  1782. // GetInstallation returns the Installation field.
  1783. func (f *ForkEvent) GetInstallation() *Installation {
  1784. if f == nil {
  1785. return nil
  1786. }
  1787. return f.Installation
  1788. }
  1789. // GetRepo returns the Repo field.
  1790. func (f *ForkEvent) GetRepo() *Repository {
  1791. if f == nil {
  1792. return nil
  1793. }
  1794. return f.Repo
  1795. }
  1796. // GetSender returns the Sender field.
  1797. func (f *ForkEvent) GetSender() *User {
  1798. if f == nil {
  1799. return nil
  1800. }
  1801. return f.Sender
  1802. }
  1803. // GetComments returns the Comments field if it's non-nil, zero value otherwise.
  1804. func (g *Gist) GetComments() int {
  1805. if g == nil || g.Comments == nil {
  1806. return 0
  1807. }
  1808. return *g.Comments
  1809. }
  1810. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  1811. func (g *Gist) GetCreatedAt() time.Time {
  1812. if g == nil || g.CreatedAt == nil {
  1813. return time.Time{}
  1814. }
  1815. return *g.CreatedAt
  1816. }
  1817. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  1818. func (g *Gist) GetDescription() string {
  1819. if g == nil || g.Description == nil {
  1820. return ""
  1821. }
  1822. return *g.Description
  1823. }
  1824. // GetGitPullURL returns the GitPullURL field if it's non-nil, zero value otherwise.
  1825. func (g *Gist) GetGitPullURL() string {
  1826. if g == nil || g.GitPullURL == nil {
  1827. return ""
  1828. }
  1829. return *g.GitPullURL
  1830. }
  1831. // GetGitPushURL returns the GitPushURL field if it's non-nil, zero value otherwise.
  1832. func (g *Gist) GetGitPushURL() string {
  1833. if g == nil || g.GitPushURL == nil {
  1834. return ""
  1835. }
  1836. return *g.GitPushURL
  1837. }
  1838. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  1839. func (g *Gist) GetHTMLURL() string {
  1840. if g == nil || g.HTMLURL == nil {
  1841. return ""
  1842. }
  1843. return *g.HTMLURL
  1844. }
  1845. // GetID returns the ID field if it's non-nil, zero value otherwise.
  1846. func (g *Gist) GetID() string {
  1847. if g == nil || g.ID == nil {
  1848. return ""
  1849. }
  1850. return *g.ID
  1851. }
  1852. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  1853. func (g *Gist) GetNodeID() string {
  1854. if g == nil || g.NodeID == nil {
  1855. return ""
  1856. }
  1857. return *g.NodeID
  1858. }
  1859. // GetOwner returns the Owner field.
  1860. func (g *Gist) GetOwner() *User {
  1861. if g == nil {
  1862. return nil
  1863. }
  1864. return g.Owner
  1865. }
  1866. // GetPublic returns the Public field if it's non-nil, zero value otherwise.
  1867. func (g *Gist) GetPublic() bool {
  1868. if g == nil || g.Public == nil {
  1869. return false
  1870. }
  1871. return *g.Public
  1872. }
  1873. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  1874. func (g *Gist) GetUpdatedAt() time.Time {
  1875. if g == nil || g.UpdatedAt == nil {
  1876. return time.Time{}
  1877. }
  1878. return *g.UpdatedAt
  1879. }
  1880. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  1881. func (g *GistComment) GetBody() string {
  1882. if g == nil || g.Body == nil {
  1883. return ""
  1884. }
  1885. return *g.Body
  1886. }
  1887. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  1888. func (g *GistComment) GetCreatedAt() time.Time {
  1889. if g == nil || g.CreatedAt == nil {
  1890. return time.Time{}
  1891. }
  1892. return *g.CreatedAt
  1893. }
  1894. // GetID returns the ID field if it's non-nil, zero value otherwise.
  1895. func (g *GistComment) GetID() int64 {
  1896. if g == nil || g.ID == nil {
  1897. return 0
  1898. }
  1899. return *g.ID
  1900. }
  1901. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  1902. func (g *GistComment) GetURL() string {
  1903. if g == nil || g.URL == nil {
  1904. return ""
  1905. }
  1906. return *g.URL
  1907. }
  1908. // GetUser returns the User field.
  1909. func (g *GistComment) GetUser() *User {
  1910. if g == nil {
  1911. return nil
  1912. }
  1913. return g.User
  1914. }
  1915. // GetChangeStatus returns the ChangeStatus field.
  1916. func (g *GistCommit) GetChangeStatus() *CommitStats {
  1917. if g == nil {
  1918. return nil
  1919. }
  1920. return g.ChangeStatus
  1921. }
  1922. // GetCommittedAt returns the CommittedAt field if it's non-nil, zero value otherwise.
  1923. func (g *GistCommit) GetCommittedAt() Timestamp {
  1924. if g == nil || g.CommittedAt == nil {
  1925. return Timestamp{}
  1926. }
  1927. return *g.CommittedAt
  1928. }
  1929. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  1930. func (g *GistCommit) GetNodeID() string {
  1931. if g == nil || g.NodeID == nil {
  1932. return ""
  1933. }
  1934. return *g.NodeID
  1935. }
  1936. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  1937. func (g *GistCommit) GetURL() string {
  1938. if g == nil || g.URL == nil {
  1939. return ""
  1940. }
  1941. return *g.URL
  1942. }
  1943. // GetUser returns the User field.
  1944. func (g *GistCommit) GetUser() *User {
  1945. if g == nil {
  1946. return nil
  1947. }
  1948. return g.User
  1949. }
  1950. // GetVersion returns the Version field if it's non-nil, zero value otherwise.
  1951. func (g *GistCommit) GetVersion() string {
  1952. if g == nil || g.Version == nil {
  1953. return ""
  1954. }
  1955. return *g.Version
  1956. }
  1957. // GetContent returns the Content field if it's non-nil, zero value otherwise.
  1958. func (g *GistFile) GetContent() string {
  1959. if g == nil || g.Content == nil {
  1960. return ""
  1961. }
  1962. return *g.Content
  1963. }
  1964. // GetFilename returns the Filename field if it's non-nil, zero value otherwise.
  1965. func (g *GistFile) GetFilename() string {
  1966. if g == nil || g.Filename == nil {
  1967. return ""
  1968. }
  1969. return *g.Filename
  1970. }
  1971. // GetLanguage returns the Language field if it's non-nil, zero value otherwise.
  1972. func (g *GistFile) GetLanguage() string {
  1973. if g == nil || g.Language == nil {
  1974. return ""
  1975. }
  1976. return *g.Language
  1977. }
  1978. // GetRawURL returns the RawURL field if it's non-nil, zero value otherwise.
  1979. func (g *GistFile) GetRawURL() string {
  1980. if g == nil || g.RawURL == nil {
  1981. return ""
  1982. }
  1983. return *g.RawURL
  1984. }
  1985. // GetSize returns the Size field if it's non-nil, zero value otherwise.
  1986. func (g *GistFile) GetSize() int {
  1987. if g == nil || g.Size == nil {
  1988. return 0
  1989. }
  1990. return *g.Size
  1991. }
  1992. // GetType returns the Type field if it's non-nil, zero value otherwise.
  1993. func (g *GistFile) GetType() string {
  1994. if g == nil || g.Type == nil {
  1995. return ""
  1996. }
  1997. return *g.Type
  1998. }
  1999. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  2000. func (g *GistFork) GetCreatedAt() Timestamp {
  2001. if g == nil || g.CreatedAt == nil {
  2002. return Timestamp{}
  2003. }
  2004. return *g.CreatedAt
  2005. }
  2006. // GetID returns the ID field if it's non-nil, zero value otherwise.
  2007. func (g *GistFork) GetID() string {
  2008. if g == nil || g.ID == nil {
  2009. return ""
  2010. }
  2011. return *g.ID
  2012. }
  2013. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  2014. func (g *GistFork) GetNodeID() string {
  2015. if g == nil || g.NodeID == nil {
  2016. return ""
  2017. }
  2018. return *g.NodeID
  2019. }
  2020. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  2021. func (g *GistFork) GetUpdatedAt() Timestamp {
  2022. if g == nil || g.UpdatedAt == nil {
  2023. return Timestamp{}
  2024. }
  2025. return *g.UpdatedAt
  2026. }
  2027. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  2028. func (g *GistFork) GetURL() string {
  2029. if g == nil || g.URL == nil {
  2030. return ""
  2031. }
  2032. return *g.URL
  2033. }
  2034. // GetUser returns the User field.
  2035. func (g *GistFork) GetUser() *User {
  2036. if g == nil {
  2037. return nil
  2038. }
  2039. return g.User
  2040. }
  2041. // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise.
  2042. func (g *GistStats) GetPrivateGists() int {
  2043. if g == nil || g.PrivateGists == nil {
  2044. return 0
  2045. }
  2046. return *g.PrivateGists
  2047. }
  2048. // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise.
  2049. func (g *GistStats) GetPublicGists() int {
  2050. if g == nil || g.PublicGists == nil {
  2051. return 0
  2052. }
  2053. return *g.PublicGists
  2054. }
  2055. // GetTotalGists returns the TotalGists field if it's non-nil, zero value otherwise.
  2056. func (g *GistStats) GetTotalGists() int {
  2057. if g == nil || g.TotalGists == nil {
  2058. return 0
  2059. }
  2060. return *g.TotalGists
  2061. }
  2062. // GetName returns the Name field if it's non-nil, zero value otherwise.
  2063. func (g *Gitignore) GetName() string {
  2064. if g == nil || g.Name == nil {
  2065. return ""
  2066. }
  2067. return *g.Name
  2068. }
  2069. // GetSource returns the Source field if it's non-nil, zero value otherwise.
  2070. func (g *Gitignore) GetSource() string {
  2071. if g == nil || g.Source == nil {
  2072. return ""
  2073. }
  2074. return *g.Source
  2075. }
  2076. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  2077. func (g *GitObject) GetSHA() string {
  2078. if g == nil || g.SHA == nil {
  2079. return ""
  2080. }
  2081. return *g.SHA
  2082. }
  2083. // GetType returns the Type field if it's non-nil, zero value otherwise.
  2084. func (g *GitObject) GetType() string {
  2085. if g == nil || g.Type == nil {
  2086. return ""
  2087. }
  2088. return *g.Type
  2089. }
  2090. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  2091. func (g *GitObject) GetURL() string {
  2092. if g == nil || g.URL == nil {
  2093. return ""
  2094. }
  2095. return *g.URL
  2096. }
  2097. // GetInstallation returns the Installation field.
  2098. func (g *GollumEvent) GetInstallation() *Installation {
  2099. if g == nil {
  2100. return nil
  2101. }
  2102. return g.Installation
  2103. }
  2104. // GetRepo returns the Repo field.
  2105. func (g *GollumEvent) GetRepo() *Repository {
  2106. if g == nil {
  2107. return nil
  2108. }
  2109. return g.Repo
  2110. }
  2111. // GetSender returns the Sender field.
  2112. func (g *GollumEvent) GetSender() *User {
  2113. if g == nil {
  2114. return nil
  2115. }
  2116. return g.Sender
  2117. }
  2118. // GetEmail returns the Email field if it's non-nil, zero value otherwise.
  2119. func (g *GPGEmail) GetEmail() string {
  2120. if g == nil || g.Email == nil {
  2121. return ""
  2122. }
  2123. return *g.Email
  2124. }
  2125. // GetVerified returns the Verified field if it's non-nil, zero value otherwise.
  2126. func (g *GPGEmail) GetVerified() bool {
  2127. if g == nil || g.Verified == nil {
  2128. return false
  2129. }
  2130. return *g.Verified
  2131. }
  2132. // GetCanCertify returns the CanCertify field if it's non-nil, zero value otherwise.
  2133. func (g *GPGKey) GetCanCertify() bool {
  2134. if g == nil || g.CanCertify == nil {
  2135. return false
  2136. }
  2137. return *g.CanCertify
  2138. }
  2139. // GetCanEncryptComms returns the CanEncryptComms field if it's non-nil, zero value otherwise.
  2140. func (g *GPGKey) GetCanEncryptComms() bool {
  2141. if g == nil || g.CanEncryptComms == nil {
  2142. return false
  2143. }
  2144. return *g.CanEncryptComms
  2145. }
  2146. // GetCanEncryptStorage returns the CanEncryptStorage field if it's non-nil, zero value otherwise.
  2147. func (g *GPGKey) GetCanEncryptStorage() bool {
  2148. if g == nil || g.CanEncryptStorage == nil {
  2149. return false
  2150. }
  2151. return *g.CanEncryptStorage
  2152. }
  2153. // GetCanSign returns the CanSign field if it's non-nil, zero value otherwise.
  2154. func (g *GPGKey) GetCanSign() bool {
  2155. if g == nil || g.CanSign == nil {
  2156. return false
  2157. }
  2158. return *g.CanSign
  2159. }
  2160. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  2161. func (g *GPGKey) GetCreatedAt() time.Time {
  2162. if g == nil || g.CreatedAt == nil {
  2163. return time.Time{}
  2164. }
  2165. return *g.CreatedAt
  2166. }
  2167. // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise.
  2168. func (g *GPGKey) GetExpiresAt() time.Time {
  2169. if g == nil || g.ExpiresAt == nil {
  2170. return time.Time{}
  2171. }
  2172. return *g.ExpiresAt
  2173. }
  2174. // GetID returns the ID field if it's non-nil, zero value otherwise.
  2175. func (g *GPGKey) GetID() int64 {
  2176. if g == nil || g.ID == nil {
  2177. return 0
  2178. }
  2179. return *g.ID
  2180. }
  2181. // GetKeyID returns the KeyID field if it's non-nil, zero value otherwise.
  2182. func (g *GPGKey) GetKeyID() string {
  2183. if g == nil || g.KeyID == nil {
  2184. return ""
  2185. }
  2186. return *g.KeyID
  2187. }
  2188. // GetPrimaryKeyID returns the PrimaryKeyID field if it's non-nil, zero value otherwise.
  2189. func (g *GPGKey) GetPrimaryKeyID() int64 {
  2190. if g == nil || g.PrimaryKeyID == nil {
  2191. return 0
  2192. }
  2193. return *g.PrimaryKeyID
  2194. }
  2195. // GetPublicKey returns the PublicKey field if it's non-nil, zero value otherwise.
  2196. func (g *GPGKey) GetPublicKey() string {
  2197. if g == nil || g.PublicKey == nil {
  2198. return ""
  2199. }
  2200. return *g.PublicKey
  2201. }
  2202. // GetApp returns the App field.
  2203. func (g *Grant) GetApp() *AuthorizationApp {
  2204. if g == nil {
  2205. return nil
  2206. }
  2207. return g.App
  2208. }
  2209. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  2210. func (g *Grant) GetCreatedAt() Timestamp {
  2211. if g == nil || g.CreatedAt == nil {
  2212. return Timestamp{}
  2213. }
  2214. return *g.CreatedAt
  2215. }
  2216. // GetID returns the ID field if it's non-nil, zero value otherwise.
  2217. func (g *Grant) GetID() int64 {
  2218. if g == nil || g.ID == nil {
  2219. return 0
  2220. }
  2221. return *g.ID
  2222. }
  2223. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  2224. func (g *Grant) GetUpdatedAt() Timestamp {
  2225. if g == nil || g.UpdatedAt == nil {
  2226. return Timestamp{}
  2227. }
  2228. return *g.UpdatedAt
  2229. }
  2230. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  2231. func (g *Grant) GetURL() string {
  2232. if g == nil || g.URL == nil {
  2233. return ""
  2234. }
  2235. return *g.URL
  2236. }
  2237. // GetActive returns the Active field if it's non-nil, zero value otherwise.
  2238. func (h *Hook) GetActive() bool {
  2239. if h == nil || h.Active == nil {
  2240. return false
  2241. }
  2242. return *h.Active
  2243. }
  2244. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  2245. func (h *Hook) GetCreatedAt() time.Time {
  2246. if h == nil || h.CreatedAt == nil {
  2247. return time.Time{}
  2248. }
  2249. return *h.CreatedAt
  2250. }
  2251. // GetID returns the ID field if it's non-nil, zero value otherwise.
  2252. func (h *Hook) GetID() int64 {
  2253. if h == nil || h.ID == nil {
  2254. return 0
  2255. }
  2256. return *h.ID
  2257. }
  2258. // GetName returns the Name field if it's non-nil, zero value otherwise.
  2259. func (h *Hook) GetName() string {
  2260. if h == nil || h.Name == nil {
  2261. return ""
  2262. }
  2263. return *h.Name
  2264. }
  2265. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  2266. func (h *Hook) GetUpdatedAt() time.Time {
  2267. if h == nil || h.UpdatedAt == nil {
  2268. return time.Time{}
  2269. }
  2270. return *h.UpdatedAt
  2271. }
  2272. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  2273. func (h *Hook) GetURL() string {
  2274. if h == nil || h.URL == nil {
  2275. return ""
  2276. }
  2277. return *h.URL
  2278. }
  2279. // GetActiveHooks returns the ActiveHooks field if it's non-nil, zero value otherwise.
  2280. func (h *HookStats) GetActiveHooks() int {
  2281. if h == nil || h.ActiveHooks == nil {
  2282. return 0
  2283. }
  2284. return *h.ActiveHooks
  2285. }
  2286. // GetInactiveHooks returns the InactiveHooks field if it's non-nil, zero value otherwise.
  2287. func (h *HookStats) GetInactiveHooks() int {
  2288. if h == nil || h.InactiveHooks == nil {
  2289. return 0
  2290. }
  2291. return *h.InactiveHooks
  2292. }
  2293. // GetTotalHooks returns the TotalHooks field if it's non-nil, zero value otherwise.
  2294. func (h *HookStats) GetTotalHooks() int {
  2295. if h == nil || h.TotalHooks == nil {
  2296. return 0
  2297. }
  2298. return *h.TotalHooks
  2299. }
  2300. // GetAuthorsCount returns the AuthorsCount field if it's non-nil, zero value otherwise.
  2301. func (i *Import) GetAuthorsCount() int {
  2302. if i == nil || i.AuthorsCount == nil {
  2303. return 0
  2304. }
  2305. return *i.AuthorsCount
  2306. }
  2307. // GetAuthorsURL returns the AuthorsURL field if it's non-nil, zero value otherwise.
  2308. func (i *Import) GetAuthorsURL() string {
  2309. if i == nil || i.AuthorsURL == nil {
  2310. return ""
  2311. }
  2312. return *i.AuthorsURL
  2313. }
  2314. // GetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise.
  2315. func (i *Import) GetCommitCount() int {
  2316. if i == nil || i.CommitCount == nil {
  2317. return 0
  2318. }
  2319. return *i.CommitCount
  2320. }
  2321. // GetFailedStep returns the FailedStep field if it's non-nil, zero value otherwise.
  2322. func (i *Import) GetFailedStep() string {
  2323. if i == nil || i.FailedStep == nil {
  2324. return ""
  2325. }
  2326. return *i.FailedStep
  2327. }
  2328. // GetHasLargeFiles returns the HasLargeFiles field if it's non-nil, zero value otherwise.
  2329. func (i *Import) GetHasLargeFiles() bool {
  2330. if i == nil || i.HasLargeFiles == nil {
  2331. return false
  2332. }
  2333. return *i.HasLargeFiles
  2334. }
  2335. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  2336. func (i *Import) GetHTMLURL() string {
  2337. if i == nil || i.HTMLURL == nil {
  2338. return ""
  2339. }
  2340. return *i.HTMLURL
  2341. }
  2342. // GetHumanName returns the HumanName field if it's non-nil, zero value otherwise.
  2343. func (i *Import) GetHumanName() string {
  2344. if i == nil || i.HumanName == nil {
  2345. return ""
  2346. }
  2347. return *i.HumanName
  2348. }
  2349. // GetLargeFilesCount returns the LargeFilesCount field if it's non-nil, zero value otherwise.
  2350. func (i *Import) GetLargeFilesCount() int {
  2351. if i == nil || i.LargeFilesCount == nil {
  2352. return 0
  2353. }
  2354. return *i.LargeFilesCount
  2355. }
  2356. // GetLargeFilesSize returns the LargeFilesSize field if it's non-nil, zero value otherwise.
  2357. func (i *Import) GetLargeFilesSize() int {
  2358. if i == nil || i.LargeFilesSize == nil {
  2359. return 0
  2360. }
  2361. return *i.LargeFilesSize
  2362. }
  2363. // GetMessage returns the Message field if it's non-nil, zero value otherwise.
  2364. func (i *Import) GetMessage() string {
  2365. if i == nil || i.Message == nil {
  2366. return ""
  2367. }
  2368. return *i.Message
  2369. }
  2370. // GetPercent returns the Percent field if it's non-nil, zero value otherwise.
  2371. func (i *Import) GetPercent() int {
  2372. if i == nil || i.Percent == nil {
  2373. return 0
  2374. }
  2375. return *i.Percent
  2376. }
  2377. // GetPushPercent returns the PushPercent field if it's non-nil, zero value otherwise.
  2378. func (i *Import) GetPushPercent() int {
  2379. if i == nil || i.PushPercent == nil {
  2380. return 0
  2381. }
  2382. return *i.PushPercent
  2383. }
  2384. // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
  2385. func (i *Import) GetRepositoryURL() string {
  2386. if i == nil || i.RepositoryURL == nil {
  2387. return ""
  2388. }
  2389. return *i.RepositoryURL
  2390. }
  2391. // GetStatus returns the Status field if it's non-nil, zero value otherwise.
  2392. func (i *Import) GetStatus() string {
  2393. if i == nil || i.Status == nil {
  2394. return ""
  2395. }
  2396. return *i.Status
  2397. }
  2398. // GetStatusText returns the StatusText field if it's non-nil, zero value otherwise.
  2399. func (i *Import) GetStatusText() string {
  2400. if i == nil || i.StatusText == nil {
  2401. return ""
  2402. }
  2403. return *i.StatusText
  2404. }
  2405. // GetTFVCProject returns the TFVCProject field if it's non-nil, zero value otherwise.
  2406. func (i *Import) GetTFVCProject() string {
  2407. if i == nil || i.TFVCProject == nil {
  2408. return ""
  2409. }
  2410. return *i.TFVCProject
  2411. }
  2412. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  2413. func (i *Import) GetURL() string {
  2414. if i == nil || i.URL == nil {
  2415. return ""
  2416. }
  2417. return *i.URL
  2418. }
  2419. // GetUseLFS returns the UseLFS field if it's non-nil, zero value otherwise.
  2420. func (i *Import) GetUseLFS() string {
  2421. if i == nil || i.UseLFS == nil {
  2422. return ""
  2423. }
  2424. return *i.UseLFS
  2425. }
  2426. // GetVCS returns the VCS field if it's non-nil, zero value otherwise.
  2427. func (i *Import) GetVCS() string {
  2428. if i == nil || i.VCS == nil {
  2429. return ""
  2430. }
  2431. return *i.VCS
  2432. }
  2433. // GetVCSPassword returns the VCSPassword field if it's non-nil, zero value otherwise.
  2434. func (i *Import) GetVCSPassword() string {
  2435. if i == nil || i.VCSPassword == nil {
  2436. return ""
  2437. }
  2438. return *i.VCSPassword
  2439. }
  2440. // GetVCSURL returns the VCSURL field if it's non-nil, zero value otherwise.
  2441. func (i *Import) GetVCSURL() string {
  2442. if i == nil || i.VCSURL == nil {
  2443. return ""
  2444. }
  2445. return *i.VCSURL
  2446. }
  2447. // GetVCSUsername returns the VCSUsername field if it's non-nil, zero value otherwise.
  2448. func (i *Import) GetVCSUsername() string {
  2449. if i == nil || i.VCSUsername == nil {
  2450. return ""
  2451. }
  2452. return *i.VCSUsername
  2453. }
  2454. // GetAccessTokensURL returns the AccessTokensURL field if it's non-nil, zero value otherwise.
  2455. func (i *Installation) GetAccessTokensURL() string {
  2456. if i == nil || i.AccessTokensURL == nil {
  2457. return ""
  2458. }
  2459. return *i.AccessTokensURL
  2460. }
  2461. // GetAccount returns the Account field.
  2462. func (i *Installation) GetAccount() *User {
  2463. if i == nil {
  2464. return nil
  2465. }
  2466. return i.Account
  2467. }
  2468. // GetAppID returns the AppID field if it's non-nil, zero value otherwise.
  2469. func (i *Installation) GetAppID() int64 {
  2470. if i == nil || i.AppID == nil {
  2471. return 0
  2472. }
  2473. return *i.AppID
  2474. }
  2475. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  2476. func (i *Installation) GetHTMLURL() string {
  2477. if i == nil || i.HTMLURL == nil {
  2478. return ""
  2479. }
  2480. return *i.HTMLURL
  2481. }
  2482. // GetID returns the ID field if it's non-nil, zero value otherwise.
  2483. func (i *Installation) GetID() int64 {
  2484. if i == nil || i.ID == nil {
  2485. return 0
  2486. }
  2487. return *i.ID
  2488. }
  2489. // GetPermissions returns the Permissions field.
  2490. func (i *Installation) GetPermissions() *InstallationPermissions {
  2491. if i == nil {
  2492. return nil
  2493. }
  2494. return i.Permissions
  2495. }
  2496. // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise.
  2497. func (i *Installation) GetRepositoriesURL() string {
  2498. if i == nil || i.RepositoriesURL == nil {
  2499. return ""
  2500. }
  2501. return *i.RepositoriesURL
  2502. }
  2503. // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise.
  2504. func (i *Installation) GetRepositorySelection() string {
  2505. if i == nil || i.RepositorySelection == nil {
  2506. return ""
  2507. }
  2508. return *i.RepositorySelection
  2509. }
  2510. // GetSingleFileName returns the SingleFileName field if it's non-nil, zero value otherwise.
  2511. func (i *Installation) GetSingleFileName() string {
  2512. if i == nil || i.SingleFileName == nil {
  2513. return ""
  2514. }
  2515. return *i.SingleFileName
  2516. }
  2517. // GetTargetID returns the TargetID field if it's non-nil, zero value otherwise.
  2518. func (i *Installation) GetTargetID() int64 {
  2519. if i == nil || i.TargetID == nil {
  2520. return 0
  2521. }
  2522. return *i.TargetID
  2523. }
  2524. // GetTargetType returns the TargetType field if it's non-nil, zero value otherwise.
  2525. func (i *Installation) GetTargetType() string {
  2526. if i == nil || i.TargetType == nil {
  2527. return ""
  2528. }
  2529. return *i.TargetType
  2530. }
  2531. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  2532. func (i *InstallationEvent) GetAction() string {
  2533. if i == nil || i.Action == nil {
  2534. return ""
  2535. }
  2536. return *i.Action
  2537. }
  2538. // GetInstallation returns the Installation field.
  2539. func (i *InstallationEvent) GetInstallation() *Installation {
  2540. if i == nil {
  2541. return nil
  2542. }
  2543. return i.Installation
  2544. }
  2545. // GetSender returns the Sender field.
  2546. func (i *InstallationEvent) GetSender() *User {
  2547. if i == nil {
  2548. return nil
  2549. }
  2550. return i.Sender
  2551. }
  2552. // GetContents returns the Contents field if it's non-nil, zero value otherwise.
  2553. func (i *InstallationPermissions) GetContents() string {
  2554. if i == nil || i.Contents == nil {
  2555. return ""
  2556. }
  2557. return *i.Contents
  2558. }
  2559. // GetIssues returns the Issues field if it's non-nil, zero value otherwise.
  2560. func (i *InstallationPermissions) GetIssues() string {
  2561. if i == nil || i.Issues == nil {
  2562. return ""
  2563. }
  2564. return *i.Issues
  2565. }
  2566. // GetMetadata returns the Metadata field if it's non-nil, zero value otherwise.
  2567. func (i *InstallationPermissions) GetMetadata() string {
  2568. if i == nil || i.Metadata == nil {
  2569. return ""
  2570. }
  2571. return *i.Metadata
  2572. }
  2573. // GetSingleFile returns the SingleFile field if it's non-nil, zero value otherwise.
  2574. func (i *InstallationPermissions) GetSingleFile() string {
  2575. if i == nil || i.SingleFile == nil {
  2576. return ""
  2577. }
  2578. return *i.SingleFile
  2579. }
  2580. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  2581. func (i *InstallationRepositoriesEvent) GetAction() string {
  2582. if i == nil || i.Action == nil {
  2583. return ""
  2584. }
  2585. return *i.Action
  2586. }
  2587. // GetInstallation returns the Installation field.
  2588. func (i *InstallationRepositoriesEvent) GetInstallation() *Installation {
  2589. if i == nil {
  2590. return nil
  2591. }
  2592. return i.Installation
  2593. }
  2594. // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise.
  2595. func (i *InstallationRepositoriesEvent) GetRepositorySelection() string {
  2596. if i == nil || i.RepositorySelection == nil {
  2597. return ""
  2598. }
  2599. return *i.RepositorySelection
  2600. }
  2601. // GetSender returns the Sender field.
  2602. func (i *InstallationRepositoriesEvent) GetSender() *User {
  2603. if i == nil {
  2604. return nil
  2605. }
  2606. return i.Sender
  2607. }
  2608. // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise.
  2609. func (i *InstallationToken) GetExpiresAt() time.Time {
  2610. if i == nil || i.ExpiresAt == nil {
  2611. return time.Time{}
  2612. }
  2613. return *i.ExpiresAt
  2614. }
  2615. // GetToken returns the Token field if it's non-nil, zero value otherwise.
  2616. func (i *InstallationToken) GetToken() string {
  2617. if i == nil || i.Token == nil {
  2618. return ""
  2619. }
  2620. return *i.Token
  2621. }
  2622. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  2623. func (i *Invitation) GetCreatedAt() time.Time {
  2624. if i == nil || i.CreatedAt == nil {
  2625. return time.Time{}
  2626. }
  2627. return *i.CreatedAt
  2628. }
  2629. // GetEmail returns the Email field if it's non-nil, zero value otherwise.
  2630. func (i *Invitation) GetEmail() string {
  2631. if i == nil || i.Email == nil {
  2632. return ""
  2633. }
  2634. return *i.Email
  2635. }
  2636. // GetID returns the ID field if it's non-nil, zero value otherwise.
  2637. func (i *Invitation) GetID() int64 {
  2638. if i == nil || i.ID == nil {
  2639. return 0
  2640. }
  2641. return *i.ID
  2642. }
  2643. // GetInvitationTeamURL returns the InvitationTeamURL field if it's non-nil, zero value otherwise.
  2644. func (i *Invitation) GetInvitationTeamURL() string {
  2645. if i == nil || i.InvitationTeamURL == nil {
  2646. return ""
  2647. }
  2648. return *i.InvitationTeamURL
  2649. }
  2650. // GetInviter returns the Inviter field.
  2651. func (i *Invitation) GetInviter() *User {
  2652. if i == nil {
  2653. return nil
  2654. }
  2655. return i.Inviter
  2656. }
  2657. // GetLogin returns the Login field if it's non-nil, zero value otherwise.
  2658. func (i *Invitation) GetLogin() string {
  2659. if i == nil || i.Login == nil {
  2660. return ""
  2661. }
  2662. return *i.Login
  2663. }
  2664. // GetRole returns the Role field if it's non-nil, zero value otherwise.
  2665. func (i *Invitation) GetRole() string {
  2666. if i == nil || i.Role == nil {
  2667. return ""
  2668. }
  2669. return *i.Role
  2670. }
  2671. // GetTeamCount returns the TeamCount field if it's non-nil, zero value otherwise.
  2672. func (i *Invitation) GetTeamCount() int {
  2673. if i == nil || i.TeamCount == nil {
  2674. return 0
  2675. }
  2676. return *i.TeamCount
  2677. }
  2678. // GetAssignee returns the Assignee field.
  2679. func (i *Issue) GetAssignee() *User {
  2680. if i == nil {
  2681. return nil
  2682. }
  2683. return i.Assignee
  2684. }
  2685. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  2686. func (i *Issue) GetBody() string {
  2687. if i == nil || i.Body == nil {
  2688. return ""
  2689. }
  2690. return *i.Body
  2691. }
  2692. // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.
  2693. func (i *Issue) GetClosedAt() time.Time {
  2694. if i == nil || i.ClosedAt == nil {
  2695. return time.Time{}
  2696. }
  2697. return *i.ClosedAt
  2698. }
  2699. // GetClosedBy returns the ClosedBy field.
  2700. func (i *Issue) GetClosedBy() *User {
  2701. if i == nil {
  2702. return nil
  2703. }
  2704. return i.ClosedBy
  2705. }
  2706. // GetComments returns the Comments field if it's non-nil, zero value otherwise.
  2707. func (i *Issue) GetComments() int {
  2708. if i == nil || i.Comments == nil {
  2709. return 0
  2710. }
  2711. return *i.Comments
  2712. }
  2713. // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.
  2714. func (i *Issue) GetCommentsURL() string {
  2715. if i == nil || i.CommentsURL == nil {
  2716. return ""
  2717. }
  2718. return *i.CommentsURL
  2719. }
  2720. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  2721. func (i *Issue) GetCreatedAt() time.Time {
  2722. if i == nil || i.CreatedAt == nil {
  2723. return time.Time{}
  2724. }
  2725. return *i.CreatedAt
  2726. }
  2727. // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.
  2728. func (i *Issue) GetEventsURL() string {
  2729. if i == nil || i.EventsURL == nil {
  2730. return ""
  2731. }
  2732. return *i.EventsURL
  2733. }
  2734. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  2735. func (i *Issue) GetHTMLURL() string {
  2736. if i == nil || i.HTMLURL == nil {
  2737. return ""
  2738. }
  2739. return *i.HTMLURL
  2740. }
  2741. // GetID returns the ID field if it's non-nil, zero value otherwise.
  2742. func (i *Issue) GetID() int64 {
  2743. if i == nil || i.ID == nil {
  2744. return 0
  2745. }
  2746. return *i.ID
  2747. }
  2748. // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise.
  2749. func (i *Issue) GetLabelsURL() string {
  2750. if i == nil || i.LabelsURL == nil {
  2751. return ""
  2752. }
  2753. return *i.LabelsURL
  2754. }
  2755. // GetLocked returns the Locked field if it's non-nil, zero value otherwise.
  2756. func (i *Issue) GetLocked() bool {
  2757. if i == nil || i.Locked == nil {
  2758. return false
  2759. }
  2760. return *i.Locked
  2761. }
  2762. // GetMilestone returns the Milestone field.
  2763. func (i *Issue) GetMilestone() *Milestone {
  2764. if i == nil {
  2765. return nil
  2766. }
  2767. return i.Milestone
  2768. }
  2769. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  2770. func (i *Issue) GetNodeID() string {
  2771. if i == nil || i.NodeID == nil {
  2772. return ""
  2773. }
  2774. return *i.NodeID
  2775. }
  2776. // GetNumber returns the Number field if it's non-nil, zero value otherwise.
  2777. func (i *Issue) GetNumber() int {
  2778. if i == nil || i.Number == nil {
  2779. return 0
  2780. }
  2781. return *i.Number
  2782. }
  2783. // GetPullRequestLinks returns the PullRequestLinks field.
  2784. func (i *Issue) GetPullRequestLinks() *PullRequestLinks {
  2785. if i == nil {
  2786. return nil
  2787. }
  2788. return i.PullRequestLinks
  2789. }
  2790. // GetReactions returns the Reactions field.
  2791. func (i *Issue) GetReactions() *Reactions {
  2792. if i == nil {
  2793. return nil
  2794. }
  2795. return i.Reactions
  2796. }
  2797. // GetRepository returns the Repository field.
  2798. func (i *Issue) GetRepository() *Repository {
  2799. if i == nil {
  2800. return nil
  2801. }
  2802. return i.Repository
  2803. }
  2804. // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
  2805. func (i *Issue) GetRepositoryURL() string {
  2806. if i == nil || i.RepositoryURL == nil {
  2807. return ""
  2808. }
  2809. return *i.RepositoryURL
  2810. }
  2811. // GetState returns the State field if it's non-nil, zero value otherwise.
  2812. func (i *Issue) GetState() string {
  2813. if i == nil || i.State == nil {
  2814. return ""
  2815. }
  2816. return *i.State
  2817. }
  2818. // GetTitle returns the Title field if it's non-nil, zero value otherwise.
  2819. func (i *Issue) GetTitle() string {
  2820. if i == nil || i.Title == nil {
  2821. return ""
  2822. }
  2823. return *i.Title
  2824. }
  2825. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  2826. func (i *Issue) GetUpdatedAt() time.Time {
  2827. if i == nil || i.UpdatedAt == nil {
  2828. return time.Time{}
  2829. }
  2830. return *i.UpdatedAt
  2831. }
  2832. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  2833. func (i *Issue) GetURL() string {
  2834. if i == nil || i.URL == nil {
  2835. return ""
  2836. }
  2837. return *i.URL
  2838. }
  2839. // GetUser returns the User field.
  2840. func (i *Issue) GetUser() *User {
  2841. if i == nil {
  2842. return nil
  2843. }
  2844. return i.User
  2845. }
  2846. // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise.
  2847. func (i *IssueComment) GetAuthorAssociation() string {
  2848. if i == nil || i.AuthorAssociation == nil {
  2849. return ""
  2850. }
  2851. return *i.AuthorAssociation
  2852. }
  2853. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  2854. func (i *IssueComment) GetBody() string {
  2855. if i == nil || i.Body == nil {
  2856. return ""
  2857. }
  2858. return *i.Body
  2859. }
  2860. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  2861. func (i *IssueComment) GetCreatedAt() time.Time {
  2862. if i == nil || i.CreatedAt == nil {
  2863. return time.Time{}
  2864. }
  2865. return *i.CreatedAt
  2866. }
  2867. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  2868. func (i *IssueComment) GetHTMLURL() string {
  2869. if i == nil || i.HTMLURL == nil {
  2870. return ""
  2871. }
  2872. return *i.HTMLURL
  2873. }
  2874. // GetID returns the ID field if it's non-nil, zero value otherwise.
  2875. func (i *IssueComment) GetID() int64 {
  2876. if i == nil || i.ID == nil {
  2877. return 0
  2878. }
  2879. return *i.ID
  2880. }
  2881. // GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise.
  2882. func (i *IssueComment) GetIssueURL() string {
  2883. if i == nil || i.IssueURL == nil {
  2884. return ""
  2885. }
  2886. return *i.IssueURL
  2887. }
  2888. // GetReactions returns the Reactions field.
  2889. func (i *IssueComment) GetReactions() *Reactions {
  2890. if i == nil {
  2891. return nil
  2892. }
  2893. return i.Reactions
  2894. }
  2895. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  2896. func (i *IssueComment) GetUpdatedAt() time.Time {
  2897. if i == nil || i.UpdatedAt == nil {
  2898. return time.Time{}
  2899. }
  2900. return *i.UpdatedAt
  2901. }
  2902. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  2903. func (i *IssueComment) GetURL() string {
  2904. if i == nil || i.URL == nil {
  2905. return ""
  2906. }
  2907. return *i.URL
  2908. }
  2909. // GetUser returns the User field.
  2910. func (i *IssueComment) GetUser() *User {
  2911. if i == nil {
  2912. return nil
  2913. }
  2914. return i.User
  2915. }
  2916. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  2917. func (i *IssueCommentEvent) GetAction() string {
  2918. if i == nil || i.Action == nil {
  2919. return ""
  2920. }
  2921. return *i.Action
  2922. }
  2923. // GetChanges returns the Changes field.
  2924. func (i *IssueCommentEvent) GetChanges() *EditChange {
  2925. if i == nil {
  2926. return nil
  2927. }
  2928. return i.Changes
  2929. }
  2930. // GetComment returns the Comment field.
  2931. func (i *IssueCommentEvent) GetComment() *IssueComment {
  2932. if i == nil {
  2933. return nil
  2934. }
  2935. return i.Comment
  2936. }
  2937. // GetInstallation returns the Installation field.
  2938. func (i *IssueCommentEvent) GetInstallation() *Installation {
  2939. if i == nil {
  2940. return nil
  2941. }
  2942. return i.Installation
  2943. }
  2944. // GetIssue returns the Issue field.
  2945. func (i *IssueCommentEvent) GetIssue() *Issue {
  2946. if i == nil {
  2947. return nil
  2948. }
  2949. return i.Issue
  2950. }
  2951. // GetRepo returns the Repo field.
  2952. func (i *IssueCommentEvent) GetRepo() *Repository {
  2953. if i == nil {
  2954. return nil
  2955. }
  2956. return i.Repo
  2957. }
  2958. // GetSender returns the Sender field.
  2959. func (i *IssueCommentEvent) GetSender() *User {
  2960. if i == nil {
  2961. return nil
  2962. }
  2963. return i.Sender
  2964. }
  2965. // GetActor returns the Actor field.
  2966. func (i *IssueEvent) GetActor() *User {
  2967. if i == nil {
  2968. return nil
  2969. }
  2970. return i.Actor
  2971. }
  2972. // GetAssignee returns the Assignee field.
  2973. func (i *IssueEvent) GetAssignee() *User {
  2974. if i == nil {
  2975. return nil
  2976. }
  2977. return i.Assignee
  2978. }
  2979. // GetAssigner returns the Assigner field.
  2980. func (i *IssueEvent) GetAssigner() *User {
  2981. if i == nil {
  2982. return nil
  2983. }
  2984. return i.Assigner
  2985. }
  2986. // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise.
  2987. func (i *IssueEvent) GetCommitID() string {
  2988. if i == nil || i.CommitID == nil {
  2989. return ""
  2990. }
  2991. return *i.CommitID
  2992. }
  2993. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  2994. func (i *IssueEvent) GetCreatedAt() time.Time {
  2995. if i == nil || i.CreatedAt == nil {
  2996. return time.Time{}
  2997. }
  2998. return *i.CreatedAt
  2999. }
  3000. // GetEvent returns the Event field if it's non-nil, zero value otherwise.
  3001. func (i *IssueEvent) GetEvent() string {
  3002. if i == nil || i.Event == nil {
  3003. return ""
  3004. }
  3005. return *i.Event
  3006. }
  3007. // GetID returns the ID field if it's non-nil, zero value otherwise.
  3008. func (i *IssueEvent) GetID() int64 {
  3009. if i == nil || i.ID == nil {
  3010. return 0
  3011. }
  3012. return *i.ID
  3013. }
  3014. // GetIssue returns the Issue field.
  3015. func (i *IssueEvent) GetIssue() *Issue {
  3016. if i == nil {
  3017. return nil
  3018. }
  3019. return i.Issue
  3020. }
  3021. // GetLabel returns the Label field.
  3022. func (i *IssueEvent) GetLabel() *Label {
  3023. if i == nil {
  3024. return nil
  3025. }
  3026. return i.Label
  3027. }
  3028. // GetMilestone returns the Milestone field.
  3029. func (i *IssueEvent) GetMilestone() *Milestone {
  3030. if i == nil {
  3031. return nil
  3032. }
  3033. return i.Milestone
  3034. }
  3035. // GetRename returns the Rename field.
  3036. func (i *IssueEvent) GetRename() *Rename {
  3037. if i == nil {
  3038. return nil
  3039. }
  3040. return i.Rename
  3041. }
  3042. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  3043. func (i *IssueEvent) GetURL() string {
  3044. if i == nil || i.URL == nil {
  3045. return ""
  3046. }
  3047. return *i.URL
  3048. }
  3049. // GetAssignee returns the Assignee field if it's non-nil, zero value otherwise.
  3050. func (i *IssueRequest) GetAssignee() string {
  3051. if i == nil || i.Assignee == nil {
  3052. return ""
  3053. }
  3054. return *i.Assignee
  3055. }
  3056. // GetAssignees returns the Assignees field if it's non-nil, zero value otherwise.
  3057. func (i *IssueRequest) GetAssignees() []string {
  3058. if i == nil || i.Assignees == nil {
  3059. return nil
  3060. }
  3061. return *i.Assignees
  3062. }
  3063. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  3064. func (i *IssueRequest) GetBody() string {
  3065. if i == nil || i.Body == nil {
  3066. return ""
  3067. }
  3068. return *i.Body
  3069. }
  3070. // GetLabels returns the Labels field if it's non-nil, zero value otherwise.
  3071. func (i *IssueRequest) GetLabels() []string {
  3072. if i == nil || i.Labels == nil {
  3073. return nil
  3074. }
  3075. return *i.Labels
  3076. }
  3077. // GetMilestone returns the Milestone field if it's non-nil, zero value otherwise.
  3078. func (i *IssueRequest) GetMilestone() int {
  3079. if i == nil || i.Milestone == nil {
  3080. return 0
  3081. }
  3082. return *i.Milestone
  3083. }
  3084. // GetState returns the State field if it's non-nil, zero value otherwise.
  3085. func (i *IssueRequest) GetState() string {
  3086. if i == nil || i.State == nil {
  3087. return ""
  3088. }
  3089. return *i.State
  3090. }
  3091. // GetTitle returns the Title field if it's non-nil, zero value otherwise.
  3092. func (i *IssueRequest) GetTitle() string {
  3093. if i == nil || i.Title == nil {
  3094. return ""
  3095. }
  3096. return *i.Title
  3097. }
  3098. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  3099. func (i *IssuesEvent) GetAction() string {
  3100. if i == nil || i.Action == nil {
  3101. return ""
  3102. }
  3103. return *i.Action
  3104. }
  3105. // GetAssignee returns the Assignee field.
  3106. func (i *IssuesEvent) GetAssignee() *User {
  3107. if i == nil {
  3108. return nil
  3109. }
  3110. return i.Assignee
  3111. }
  3112. // GetChanges returns the Changes field.
  3113. func (i *IssuesEvent) GetChanges() *EditChange {
  3114. if i == nil {
  3115. return nil
  3116. }
  3117. return i.Changes
  3118. }
  3119. // GetInstallation returns the Installation field.
  3120. func (i *IssuesEvent) GetInstallation() *Installation {
  3121. if i == nil {
  3122. return nil
  3123. }
  3124. return i.Installation
  3125. }
  3126. // GetIssue returns the Issue field.
  3127. func (i *IssuesEvent) GetIssue() *Issue {
  3128. if i == nil {
  3129. return nil
  3130. }
  3131. return i.Issue
  3132. }
  3133. // GetLabel returns the Label field.
  3134. func (i *IssuesEvent) GetLabel() *Label {
  3135. if i == nil {
  3136. return nil
  3137. }
  3138. return i.Label
  3139. }
  3140. // GetRepo returns the Repo field.
  3141. func (i *IssuesEvent) GetRepo() *Repository {
  3142. if i == nil {
  3143. return nil
  3144. }
  3145. return i.Repo
  3146. }
  3147. // GetSender returns the Sender field.
  3148. func (i *IssuesEvent) GetSender() *User {
  3149. if i == nil {
  3150. return nil
  3151. }
  3152. return i.Sender
  3153. }
  3154. // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.
  3155. func (i *IssuesSearchResult) GetIncompleteResults() bool {
  3156. if i == nil || i.IncompleteResults == nil {
  3157. return false
  3158. }
  3159. return *i.IncompleteResults
  3160. }
  3161. // GetTotal returns the Total field if it's non-nil, zero value otherwise.
  3162. func (i *IssuesSearchResult) GetTotal() int {
  3163. if i == nil || i.Total == nil {
  3164. return 0
  3165. }
  3166. return *i.Total
  3167. }
  3168. // GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise.
  3169. func (i *IssueStats) GetClosedIssues() int {
  3170. if i == nil || i.ClosedIssues == nil {
  3171. return 0
  3172. }
  3173. return *i.ClosedIssues
  3174. }
  3175. // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise.
  3176. func (i *IssueStats) GetOpenIssues() int {
  3177. if i == nil || i.OpenIssues == nil {
  3178. return 0
  3179. }
  3180. return *i.OpenIssues
  3181. }
  3182. // GetTotalIssues returns the TotalIssues field if it's non-nil, zero value otherwise.
  3183. func (i *IssueStats) GetTotalIssues() int {
  3184. if i == nil || i.TotalIssues == nil {
  3185. return 0
  3186. }
  3187. return *i.TotalIssues
  3188. }
  3189. // GetID returns the ID field if it's non-nil, zero value otherwise.
  3190. func (k *Key) GetID() int64 {
  3191. if k == nil || k.ID == nil {
  3192. return 0
  3193. }
  3194. return *k.ID
  3195. }
  3196. // GetKey returns the Key field if it's non-nil, zero value otherwise.
  3197. func (k *Key) GetKey() string {
  3198. if k == nil || k.Key == nil {
  3199. return ""
  3200. }
  3201. return *k.Key
  3202. }
  3203. // GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise.
  3204. func (k *Key) GetReadOnly() bool {
  3205. if k == nil || k.ReadOnly == nil {
  3206. return false
  3207. }
  3208. return *k.ReadOnly
  3209. }
  3210. // GetTitle returns the Title field if it's non-nil, zero value otherwise.
  3211. func (k *Key) GetTitle() string {
  3212. if k == nil || k.Title == nil {
  3213. return ""
  3214. }
  3215. return *k.Title
  3216. }
  3217. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  3218. func (k *Key) GetURL() string {
  3219. if k == nil || k.URL == nil {
  3220. return ""
  3221. }
  3222. return *k.URL
  3223. }
  3224. // GetColor returns the Color field if it's non-nil, zero value otherwise.
  3225. func (l *Label) GetColor() string {
  3226. if l == nil || l.Color == nil {
  3227. return ""
  3228. }
  3229. return *l.Color
  3230. }
  3231. // GetDefault returns the Default field if it's non-nil, zero value otherwise.
  3232. func (l *Label) GetDefault() bool {
  3233. if l == nil || l.Default == nil {
  3234. return false
  3235. }
  3236. return *l.Default
  3237. }
  3238. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  3239. func (l *Label) GetDescription() string {
  3240. if l == nil || l.Description == nil {
  3241. return ""
  3242. }
  3243. return *l.Description
  3244. }
  3245. // GetID returns the ID field if it's non-nil, zero value otherwise.
  3246. func (l *Label) GetID() int64 {
  3247. if l == nil || l.ID == nil {
  3248. return 0
  3249. }
  3250. return *l.ID
  3251. }
  3252. // GetName returns the Name field if it's non-nil, zero value otherwise.
  3253. func (l *Label) GetName() string {
  3254. if l == nil || l.Name == nil {
  3255. return ""
  3256. }
  3257. return *l.Name
  3258. }
  3259. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  3260. func (l *Label) GetNodeID() string {
  3261. if l == nil || l.NodeID == nil {
  3262. return ""
  3263. }
  3264. return *l.NodeID
  3265. }
  3266. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  3267. func (l *Label) GetURL() string {
  3268. if l == nil || l.URL == nil {
  3269. return ""
  3270. }
  3271. return *l.URL
  3272. }
  3273. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  3274. func (l *LabelEvent) GetAction() string {
  3275. if l == nil || l.Action == nil {
  3276. return ""
  3277. }
  3278. return *l.Action
  3279. }
  3280. // GetChanges returns the Changes field.
  3281. func (l *LabelEvent) GetChanges() *EditChange {
  3282. if l == nil {
  3283. return nil
  3284. }
  3285. return l.Changes
  3286. }
  3287. // GetInstallation returns the Installation field.
  3288. func (l *LabelEvent) GetInstallation() *Installation {
  3289. if l == nil {
  3290. return nil
  3291. }
  3292. return l.Installation
  3293. }
  3294. // GetLabel returns the Label field.
  3295. func (l *LabelEvent) GetLabel() *Label {
  3296. if l == nil {
  3297. return nil
  3298. }
  3299. return l.Label
  3300. }
  3301. // GetOrg returns the Org field.
  3302. func (l *LabelEvent) GetOrg() *Organization {
  3303. if l == nil {
  3304. return nil
  3305. }
  3306. return l.Org
  3307. }
  3308. // GetRepo returns the Repo field.
  3309. func (l *LabelEvent) GetRepo() *Repository {
  3310. if l == nil {
  3311. return nil
  3312. }
  3313. return l.Repo
  3314. }
  3315. // GetColor returns the Color field if it's non-nil, zero value otherwise.
  3316. func (l *LabelResult) GetColor() string {
  3317. if l == nil || l.Color == nil {
  3318. return ""
  3319. }
  3320. return *l.Color
  3321. }
  3322. // GetDefault returns the Default field if it's non-nil, zero value otherwise.
  3323. func (l *LabelResult) GetDefault() bool {
  3324. if l == nil || l.Default == nil {
  3325. return false
  3326. }
  3327. return *l.Default
  3328. }
  3329. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  3330. func (l *LabelResult) GetDescription() string {
  3331. if l == nil || l.Description == nil {
  3332. return ""
  3333. }
  3334. return *l.Description
  3335. }
  3336. // GetID returns the ID field if it's non-nil, zero value otherwise.
  3337. func (l *LabelResult) GetID() int64 {
  3338. if l == nil || l.ID == nil {
  3339. return 0
  3340. }
  3341. return *l.ID
  3342. }
  3343. // GetName returns the Name field if it's non-nil, zero value otherwise.
  3344. func (l *LabelResult) GetName() string {
  3345. if l == nil || l.Name == nil {
  3346. return ""
  3347. }
  3348. return *l.Name
  3349. }
  3350. // GetScore returns the Score field.
  3351. func (l *LabelResult) GetScore() *float64 {
  3352. if l == nil {
  3353. return nil
  3354. }
  3355. return l.Score
  3356. }
  3357. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  3358. func (l *LabelResult) GetURL() string {
  3359. if l == nil || l.URL == nil {
  3360. return ""
  3361. }
  3362. return *l.URL
  3363. }
  3364. // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.
  3365. func (l *LabelsSearchResult) GetIncompleteResults() bool {
  3366. if l == nil || l.IncompleteResults == nil {
  3367. return false
  3368. }
  3369. return *l.IncompleteResults
  3370. }
  3371. // GetTotal returns the Total field if it's non-nil, zero value otherwise.
  3372. func (l *LabelsSearchResult) GetTotal() int {
  3373. if l == nil || l.Total == nil {
  3374. return 0
  3375. }
  3376. return *l.Total
  3377. }
  3378. // GetOID returns the OID field if it's non-nil, zero value otherwise.
  3379. func (l *LargeFile) GetOID() string {
  3380. if l == nil || l.OID == nil {
  3381. return ""
  3382. }
  3383. return *l.OID
  3384. }
  3385. // GetPath returns the Path field if it's non-nil, zero value otherwise.
  3386. func (l *LargeFile) GetPath() string {
  3387. if l == nil || l.Path == nil {
  3388. return ""
  3389. }
  3390. return *l.Path
  3391. }
  3392. // GetRefName returns the RefName field if it's non-nil, zero value otherwise.
  3393. func (l *LargeFile) GetRefName() string {
  3394. if l == nil || l.RefName == nil {
  3395. return ""
  3396. }
  3397. return *l.RefName
  3398. }
  3399. // GetSize returns the Size field if it's non-nil, zero value otherwise.
  3400. func (l *LargeFile) GetSize() int {
  3401. if l == nil || l.Size == nil {
  3402. return 0
  3403. }
  3404. return *l.Size
  3405. }
  3406. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  3407. func (l *License) GetBody() string {
  3408. if l == nil || l.Body == nil {
  3409. return ""
  3410. }
  3411. return *l.Body
  3412. }
  3413. // GetConditions returns the Conditions field if it's non-nil, zero value otherwise.
  3414. func (l *License) GetConditions() []string {
  3415. if l == nil || l.Conditions == nil {
  3416. return nil
  3417. }
  3418. return *l.Conditions
  3419. }
  3420. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  3421. func (l *License) GetDescription() string {
  3422. if l == nil || l.Description == nil {
  3423. return ""
  3424. }
  3425. return *l.Description
  3426. }
  3427. // GetFeatured returns the Featured field if it's non-nil, zero value otherwise.
  3428. func (l *License) GetFeatured() bool {
  3429. if l == nil || l.Featured == nil {
  3430. return false
  3431. }
  3432. return *l.Featured
  3433. }
  3434. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  3435. func (l *License) GetHTMLURL() string {
  3436. if l == nil || l.HTMLURL == nil {
  3437. return ""
  3438. }
  3439. return *l.HTMLURL
  3440. }
  3441. // GetImplementation returns the Implementation field if it's non-nil, zero value otherwise.
  3442. func (l *License) GetImplementation() string {
  3443. if l == nil || l.Implementation == nil {
  3444. return ""
  3445. }
  3446. return *l.Implementation
  3447. }
  3448. // GetKey returns the Key field if it's non-nil, zero value otherwise.
  3449. func (l *License) GetKey() string {
  3450. if l == nil || l.Key == nil {
  3451. return ""
  3452. }
  3453. return *l.Key
  3454. }
  3455. // GetLimitations returns the Limitations field if it's non-nil, zero value otherwise.
  3456. func (l *License) GetLimitations() []string {
  3457. if l == nil || l.Limitations == nil {
  3458. return nil
  3459. }
  3460. return *l.Limitations
  3461. }
  3462. // GetName returns the Name field if it's non-nil, zero value otherwise.
  3463. func (l *License) GetName() string {
  3464. if l == nil || l.Name == nil {
  3465. return ""
  3466. }
  3467. return *l.Name
  3468. }
  3469. // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise.
  3470. func (l *License) GetPermissions() []string {
  3471. if l == nil || l.Permissions == nil {
  3472. return nil
  3473. }
  3474. return *l.Permissions
  3475. }
  3476. // GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise.
  3477. func (l *License) GetSPDXID() string {
  3478. if l == nil || l.SPDXID == nil {
  3479. return ""
  3480. }
  3481. return *l.SPDXID
  3482. }
  3483. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  3484. func (l *License) GetURL() string {
  3485. if l == nil || l.URL == nil {
  3486. return ""
  3487. }
  3488. return *l.URL
  3489. }
  3490. // GetAccountsURL returns the AccountsURL field if it's non-nil, zero value otherwise.
  3491. func (m *MarketplacePlan) GetAccountsURL() string {
  3492. if m == nil || m.AccountsURL == nil {
  3493. return ""
  3494. }
  3495. return *m.AccountsURL
  3496. }
  3497. // GetBullets returns the Bullets field if it's non-nil, zero value otherwise.
  3498. func (m *MarketplacePlan) GetBullets() []string {
  3499. if m == nil || m.Bullets == nil {
  3500. return nil
  3501. }
  3502. return *m.Bullets
  3503. }
  3504. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  3505. func (m *MarketplacePlan) GetDescription() string {
  3506. if m == nil || m.Description == nil {
  3507. return ""
  3508. }
  3509. return *m.Description
  3510. }
  3511. // GetID returns the ID field if it's non-nil, zero value otherwise.
  3512. func (m *MarketplacePlan) GetID() int64 {
  3513. if m == nil || m.ID == nil {
  3514. return 0
  3515. }
  3516. return *m.ID
  3517. }
  3518. // GetMonthlyPriceInCents returns the MonthlyPriceInCents field if it's non-nil, zero value otherwise.
  3519. func (m *MarketplacePlan) GetMonthlyPriceInCents() int {
  3520. if m == nil || m.MonthlyPriceInCents == nil {
  3521. return 0
  3522. }
  3523. return *m.MonthlyPriceInCents
  3524. }
  3525. // GetName returns the Name field if it's non-nil, zero value otherwise.
  3526. func (m *MarketplacePlan) GetName() string {
  3527. if m == nil || m.Name == nil {
  3528. return ""
  3529. }
  3530. return *m.Name
  3531. }
  3532. // GetPriceModel returns the PriceModel field if it's non-nil, zero value otherwise.
  3533. func (m *MarketplacePlan) GetPriceModel() string {
  3534. if m == nil || m.PriceModel == nil {
  3535. return ""
  3536. }
  3537. return *m.PriceModel
  3538. }
  3539. // GetUnitName returns the UnitName field if it's non-nil, zero value otherwise.
  3540. func (m *MarketplacePlan) GetUnitName() string {
  3541. if m == nil || m.UnitName == nil {
  3542. return ""
  3543. }
  3544. return *m.UnitName
  3545. }
  3546. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  3547. func (m *MarketplacePlan) GetURL() string {
  3548. if m == nil || m.URL == nil {
  3549. return ""
  3550. }
  3551. return *m.URL
  3552. }
  3553. // GetYearlyPriceInCents returns the YearlyPriceInCents field if it's non-nil, zero value otherwise.
  3554. func (m *MarketplacePlan) GetYearlyPriceInCents() int {
  3555. if m == nil || m.YearlyPriceInCents == nil {
  3556. return 0
  3557. }
  3558. return *m.YearlyPriceInCents
  3559. }
  3560. // GetEmail returns the Email field if it's non-nil, zero value otherwise.
  3561. func (m *MarketplacePlanAccount) GetEmail() string {
  3562. if m == nil || m.Email == nil {
  3563. return ""
  3564. }
  3565. return *m.Email
  3566. }
  3567. // GetID returns the ID field if it's non-nil, zero value otherwise.
  3568. func (m *MarketplacePlanAccount) GetID() int64 {
  3569. if m == nil || m.ID == nil {
  3570. return 0
  3571. }
  3572. return *m.ID
  3573. }
  3574. // GetLogin returns the Login field if it's non-nil, zero value otherwise.
  3575. func (m *MarketplacePlanAccount) GetLogin() string {
  3576. if m == nil || m.Login == nil {
  3577. return ""
  3578. }
  3579. return *m.Login
  3580. }
  3581. // GetMarketplacePurchase returns the MarketplacePurchase field.
  3582. func (m *MarketplacePlanAccount) GetMarketplacePurchase() *MarketplacePurchase {
  3583. if m == nil {
  3584. return nil
  3585. }
  3586. return m.MarketplacePurchase
  3587. }
  3588. // GetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise.
  3589. func (m *MarketplacePlanAccount) GetOrganizationBillingEmail() string {
  3590. if m == nil || m.OrganizationBillingEmail == nil {
  3591. return ""
  3592. }
  3593. return *m.OrganizationBillingEmail
  3594. }
  3595. // GetType returns the Type field if it's non-nil, zero value otherwise.
  3596. func (m *MarketplacePlanAccount) GetType() string {
  3597. if m == nil || m.Type == nil {
  3598. return ""
  3599. }
  3600. return *m.Type
  3601. }
  3602. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  3603. func (m *MarketplacePlanAccount) GetURL() string {
  3604. if m == nil || m.URL == nil {
  3605. return ""
  3606. }
  3607. return *m.URL
  3608. }
  3609. // GetAccount returns the Account field.
  3610. func (m *MarketplacePurchase) GetAccount() *MarketplacePlanAccount {
  3611. if m == nil {
  3612. return nil
  3613. }
  3614. return m.Account
  3615. }
  3616. // GetBillingCycle returns the BillingCycle field if it's non-nil, zero value otherwise.
  3617. func (m *MarketplacePurchase) GetBillingCycle() string {
  3618. if m == nil || m.BillingCycle == nil {
  3619. return ""
  3620. }
  3621. return *m.BillingCycle
  3622. }
  3623. // GetNextBillingDate returns the NextBillingDate field if it's non-nil, zero value otherwise.
  3624. func (m *MarketplacePurchase) GetNextBillingDate() string {
  3625. if m == nil || m.NextBillingDate == nil {
  3626. return ""
  3627. }
  3628. return *m.NextBillingDate
  3629. }
  3630. // GetPlan returns the Plan field.
  3631. func (m *MarketplacePurchase) GetPlan() *MarketplacePlan {
  3632. if m == nil {
  3633. return nil
  3634. }
  3635. return m.Plan
  3636. }
  3637. // GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise.
  3638. func (m *MarketplacePurchase) GetUnitCount() int {
  3639. if m == nil || m.UnitCount == nil {
  3640. return 0
  3641. }
  3642. return *m.UnitCount
  3643. }
  3644. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  3645. func (m *MarketplacePurchaseEvent) GetAction() string {
  3646. if m == nil || m.Action == nil {
  3647. return ""
  3648. }
  3649. return *m.Action
  3650. }
  3651. // GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise.
  3652. func (m *MarketplacePurchaseEvent) GetEffectiveDate() Timestamp {
  3653. if m == nil || m.EffectiveDate == nil {
  3654. return Timestamp{}
  3655. }
  3656. return *m.EffectiveDate
  3657. }
  3658. // GetInstallation returns the Installation field.
  3659. func (m *MarketplacePurchaseEvent) GetInstallation() *Installation {
  3660. if m == nil {
  3661. return nil
  3662. }
  3663. return m.Installation
  3664. }
  3665. // GetMarketplacePurchase returns the MarketplacePurchase field.
  3666. func (m *MarketplacePurchaseEvent) GetMarketplacePurchase() *MarketplacePurchase {
  3667. if m == nil {
  3668. return nil
  3669. }
  3670. return m.MarketplacePurchase
  3671. }
  3672. // GetPreviousMarketplacePurchase returns the PreviousMarketplacePurchase field.
  3673. func (m *MarketplacePurchaseEvent) GetPreviousMarketplacePurchase() *MarketplacePurchase {
  3674. if m == nil {
  3675. return nil
  3676. }
  3677. return m.PreviousMarketplacePurchase
  3678. }
  3679. // GetSender returns the Sender field.
  3680. func (m *MarketplacePurchaseEvent) GetSender() *User {
  3681. if m == nil {
  3682. return nil
  3683. }
  3684. return m.Sender
  3685. }
  3686. // GetText returns the Text field if it's non-nil, zero value otherwise.
  3687. func (m *Match) GetText() string {
  3688. if m == nil || m.Text == nil {
  3689. return ""
  3690. }
  3691. return *m.Text
  3692. }
  3693. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  3694. func (m *MemberEvent) GetAction() string {
  3695. if m == nil || m.Action == nil {
  3696. return ""
  3697. }
  3698. return *m.Action
  3699. }
  3700. // GetInstallation returns the Installation field.
  3701. func (m *MemberEvent) GetInstallation() *Installation {
  3702. if m == nil {
  3703. return nil
  3704. }
  3705. return m.Installation
  3706. }
  3707. // GetMember returns the Member field.
  3708. func (m *MemberEvent) GetMember() *User {
  3709. if m == nil {
  3710. return nil
  3711. }
  3712. return m.Member
  3713. }
  3714. // GetRepo returns the Repo field.
  3715. func (m *MemberEvent) GetRepo() *Repository {
  3716. if m == nil {
  3717. return nil
  3718. }
  3719. return m.Repo
  3720. }
  3721. // GetSender returns the Sender field.
  3722. func (m *MemberEvent) GetSender() *User {
  3723. if m == nil {
  3724. return nil
  3725. }
  3726. return m.Sender
  3727. }
  3728. // GetOrganization returns the Organization field.
  3729. func (m *Membership) GetOrganization() *Organization {
  3730. if m == nil {
  3731. return nil
  3732. }
  3733. return m.Organization
  3734. }
  3735. // GetOrganizationURL returns the OrganizationURL field if it's non-nil, zero value otherwise.
  3736. func (m *Membership) GetOrganizationURL() string {
  3737. if m == nil || m.OrganizationURL == nil {
  3738. return ""
  3739. }
  3740. return *m.OrganizationURL
  3741. }
  3742. // GetRole returns the Role field if it's non-nil, zero value otherwise.
  3743. func (m *Membership) GetRole() string {
  3744. if m == nil || m.Role == nil {
  3745. return ""
  3746. }
  3747. return *m.Role
  3748. }
  3749. // GetState returns the State field if it's non-nil, zero value otherwise.
  3750. func (m *Membership) GetState() string {
  3751. if m == nil || m.State == nil {
  3752. return ""
  3753. }
  3754. return *m.State
  3755. }
  3756. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  3757. func (m *Membership) GetURL() string {
  3758. if m == nil || m.URL == nil {
  3759. return ""
  3760. }
  3761. return *m.URL
  3762. }
  3763. // GetUser returns the User field.
  3764. func (m *Membership) GetUser() *User {
  3765. if m == nil {
  3766. return nil
  3767. }
  3768. return m.User
  3769. }
  3770. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  3771. func (m *MembershipEvent) GetAction() string {
  3772. if m == nil || m.Action == nil {
  3773. return ""
  3774. }
  3775. return *m.Action
  3776. }
  3777. // GetInstallation returns the Installation field.
  3778. func (m *MembershipEvent) GetInstallation() *Installation {
  3779. if m == nil {
  3780. return nil
  3781. }
  3782. return m.Installation
  3783. }
  3784. // GetMember returns the Member field.
  3785. func (m *MembershipEvent) GetMember() *User {
  3786. if m == nil {
  3787. return nil
  3788. }
  3789. return m.Member
  3790. }
  3791. // GetOrg returns the Org field.
  3792. func (m *MembershipEvent) GetOrg() *Organization {
  3793. if m == nil {
  3794. return nil
  3795. }
  3796. return m.Org
  3797. }
  3798. // GetScope returns the Scope field if it's non-nil, zero value otherwise.
  3799. func (m *MembershipEvent) GetScope() string {
  3800. if m == nil || m.Scope == nil {
  3801. return ""
  3802. }
  3803. return *m.Scope
  3804. }
  3805. // GetSender returns the Sender field.
  3806. func (m *MembershipEvent) GetSender() *User {
  3807. if m == nil {
  3808. return nil
  3809. }
  3810. return m.Sender
  3811. }
  3812. // GetTeam returns the Team field.
  3813. func (m *MembershipEvent) GetTeam() *Team {
  3814. if m == nil {
  3815. return nil
  3816. }
  3817. return m.Team
  3818. }
  3819. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  3820. func (m *Metric) GetHTMLURL() string {
  3821. if m == nil || m.HTMLURL == nil {
  3822. return ""
  3823. }
  3824. return *m.HTMLURL
  3825. }
  3826. // GetKey returns the Key field if it's non-nil, zero value otherwise.
  3827. func (m *Metric) GetKey() string {
  3828. if m == nil || m.Key == nil {
  3829. return ""
  3830. }
  3831. return *m.Key
  3832. }
  3833. // GetName returns the Name field if it's non-nil, zero value otherwise.
  3834. func (m *Metric) GetName() string {
  3835. if m == nil || m.Name == nil {
  3836. return ""
  3837. }
  3838. return *m.Name
  3839. }
  3840. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  3841. func (m *Metric) GetURL() string {
  3842. if m == nil || m.URL == nil {
  3843. return ""
  3844. }
  3845. return *m.URL
  3846. }
  3847. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  3848. func (m *Migration) GetCreatedAt() string {
  3849. if m == nil || m.CreatedAt == nil {
  3850. return ""
  3851. }
  3852. return *m.CreatedAt
  3853. }
  3854. // GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise.
  3855. func (m *Migration) GetExcludeAttachments() bool {
  3856. if m == nil || m.ExcludeAttachments == nil {
  3857. return false
  3858. }
  3859. return *m.ExcludeAttachments
  3860. }
  3861. // GetGUID returns the GUID field if it's non-nil, zero value otherwise.
  3862. func (m *Migration) GetGUID() string {
  3863. if m == nil || m.GUID == nil {
  3864. return ""
  3865. }
  3866. return *m.GUID
  3867. }
  3868. // GetID returns the ID field if it's non-nil, zero value otherwise.
  3869. func (m *Migration) GetID() int64 {
  3870. if m == nil || m.ID == nil {
  3871. return 0
  3872. }
  3873. return *m.ID
  3874. }
  3875. // GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise.
  3876. func (m *Migration) GetLockRepositories() bool {
  3877. if m == nil || m.LockRepositories == nil {
  3878. return false
  3879. }
  3880. return *m.LockRepositories
  3881. }
  3882. // GetState returns the State field if it's non-nil, zero value otherwise.
  3883. func (m *Migration) GetState() string {
  3884. if m == nil || m.State == nil {
  3885. return ""
  3886. }
  3887. return *m.State
  3888. }
  3889. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  3890. func (m *Migration) GetUpdatedAt() string {
  3891. if m == nil || m.UpdatedAt == nil {
  3892. return ""
  3893. }
  3894. return *m.UpdatedAt
  3895. }
  3896. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  3897. func (m *Migration) GetURL() string {
  3898. if m == nil || m.URL == nil {
  3899. return ""
  3900. }
  3901. return *m.URL
  3902. }
  3903. // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.
  3904. func (m *Milestone) GetClosedAt() time.Time {
  3905. if m == nil || m.ClosedAt == nil {
  3906. return time.Time{}
  3907. }
  3908. return *m.ClosedAt
  3909. }
  3910. // GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise.
  3911. func (m *Milestone) GetClosedIssues() int {
  3912. if m == nil || m.ClosedIssues == nil {
  3913. return 0
  3914. }
  3915. return *m.ClosedIssues
  3916. }
  3917. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  3918. func (m *Milestone) GetCreatedAt() time.Time {
  3919. if m == nil || m.CreatedAt == nil {
  3920. return time.Time{}
  3921. }
  3922. return *m.CreatedAt
  3923. }
  3924. // GetCreator returns the Creator field.
  3925. func (m *Milestone) GetCreator() *User {
  3926. if m == nil {
  3927. return nil
  3928. }
  3929. return m.Creator
  3930. }
  3931. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  3932. func (m *Milestone) GetDescription() string {
  3933. if m == nil || m.Description == nil {
  3934. return ""
  3935. }
  3936. return *m.Description
  3937. }
  3938. // GetDueOn returns the DueOn field if it's non-nil, zero value otherwise.
  3939. func (m *Milestone) GetDueOn() time.Time {
  3940. if m == nil || m.DueOn == nil {
  3941. return time.Time{}
  3942. }
  3943. return *m.DueOn
  3944. }
  3945. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  3946. func (m *Milestone) GetHTMLURL() string {
  3947. if m == nil || m.HTMLURL == nil {
  3948. return ""
  3949. }
  3950. return *m.HTMLURL
  3951. }
  3952. // GetID returns the ID field if it's non-nil, zero value otherwise.
  3953. func (m *Milestone) GetID() int64 {
  3954. if m == nil || m.ID == nil {
  3955. return 0
  3956. }
  3957. return *m.ID
  3958. }
  3959. // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise.
  3960. func (m *Milestone) GetLabelsURL() string {
  3961. if m == nil || m.LabelsURL == nil {
  3962. return ""
  3963. }
  3964. return *m.LabelsURL
  3965. }
  3966. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  3967. func (m *Milestone) GetNodeID() string {
  3968. if m == nil || m.NodeID == nil {
  3969. return ""
  3970. }
  3971. return *m.NodeID
  3972. }
  3973. // GetNumber returns the Number field if it's non-nil, zero value otherwise.
  3974. func (m *Milestone) GetNumber() int {
  3975. if m == nil || m.Number == nil {
  3976. return 0
  3977. }
  3978. return *m.Number
  3979. }
  3980. // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise.
  3981. func (m *Milestone) GetOpenIssues() int {
  3982. if m == nil || m.OpenIssues == nil {
  3983. return 0
  3984. }
  3985. return *m.OpenIssues
  3986. }
  3987. // GetState returns the State field if it's non-nil, zero value otherwise.
  3988. func (m *Milestone) GetState() string {
  3989. if m == nil || m.State == nil {
  3990. return ""
  3991. }
  3992. return *m.State
  3993. }
  3994. // GetTitle returns the Title field if it's non-nil, zero value otherwise.
  3995. func (m *Milestone) GetTitle() string {
  3996. if m == nil || m.Title == nil {
  3997. return ""
  3998. }
  3999. return *m.Title
  4000. }
  4001. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  4002. func (m *Milestone) GetUpdatedAt() time.Time {
  4003. if m == nil || m.UpdatedAt == nil {
  4004. return time.Time{}
  4005. }
  4006. return *m.UpdatedAt
  4007. }
  4008. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  4009. func (m *Milestone) GetURL() string {
  4010. if m == nil || m.URL == nil {
  4011. return ""
  4012. }
  4013. return *m.URL
  4014. }
  4015. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  4016. func (m *MilestoneEvent) GetAction() string {
  4017. if m == nil || m.Action == nil {
  4018. return ""
  4019. }
  4020. return *m.Action
  4021. }
  4022. // GetChanges returns the Changes field.
  4023. func (m *MilestoneEvent) GetChanges() *EditChange {
  4024. if m == nil {
  4025. return nil
  4026. }
  4027. return m.Changes
  4028. }
  4029. // GetInstallation returns the Installation field.
  4030. func (m *MilestoneEvent) GetInstallation() *Installation {
  4031. if m == nil {
  4032. return nil
  4033. }
  4034. return m.Installation
  4035. }
  4036. // GetMilestone returns the Milestone field.
  4037. func (m *MilestoneEvent) GetMilestone() *Milestone {
  4038. if m == nil {
  4039. return nil
  4040. }
  4041. return m.Milestone
  4042. }
  4043. // GetOrg returns the Org field.
  4044. func (m *MilestoneEvent) GetOrg() *Organization {
  4045. if m == nil {
  4046. return nil
  4047. }
  4048. return m.Org
  4049. }
  4050. // GetRepo returns the Repo field.
  4051. func (m *MilestoneEvent) GetRepo() *Repository {
  4052. if m == nil {
  4053. return nil
  4054. }
  4055. return m.Repo
  4056. }
  4057. // GetSender returns the Sender field.
  4058. func (m *MilestoneEvent) GetSender() *User {
  4059. if m == nil {
  4060. return nil
  4061. }
  4062. return m.Sender
  4063. }
  4064. // GetClosedMilestones returns the ClosedMilestones field if it's non-nil, zero value otherwise.
  4065. func (m *MilestoneStats) GetClosedMilestones() int {
  4066. if m == nil || m.ClosedMilestones == nil {
  4067. return 0
  4068. }
  4069. return *m.ClosedMilestones
  4070. }
  4071. // GetOpenMilestones returns the OpenMilestones field if it's non-nil, zero value otherwise.
  4072. func (m *MilestoneStats) GetOpenMilestones() int {
  4073. if m == nil || m.OpenMilestones == nil {
  4074. return 0
  4075. }
  4076. return *m.OpenMilestones
  4077. }
  4078. // GetTotalMilestones returns the TotalMilestones field if it's non-nil, zero value otherwise.
  4079. func (m *MilestoneStats) GetTotalMilestones() int {
  4080. if m == nil || m.TotalMilestones == nil {
  4081. return 0
  4082. }
  4083. return *m.TotalMilestones
  4084. }
  4085. // GetBase returns the Base field if it's non-nil, zero value otherwise.
  4086. func (n *NewPullRequest) GetBase() string {
  4087. if n == nil || n.Base == nil {
  4088. return ""
  4089. }
  4090. return *n.Base
  4091. }
  4092. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  4093. func (n *NewPullRequest) GetBody() string {
  4094. if n == nil || n.Body == nil {
  4095. return ""
  4096. }
  4097. return *n.Body
  4098. }
  4099. // GetHead returns the Head field if it's non-nil, zero value otherwise.
  4100. func (n *NewPullRequest) GetHead() string {
  4101. if n == nil || n.Head == nil {
  4102. return ""
  4103. }
  4104. return *n.Head
  4105. }
  4106. // GetIssue returns the Issue field if it's non-nil, zero value otherwise.
  4107. func (n *NewPullRequest) GetIssue() int {
  4108. if n == nil || n.Issue == nil {
  4109. return 0
  4110. }
  4111. return *n.Issue
  4112. }
  4113. // GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise.
  4114. func (n *NewPullRequest) GetMaintainerCanModify() bool {
  4115. if n == nil || n.MaintainerCanModify == nil {
  4116. return false
  4117. }
  4118. return *n.MaintainerCanModify
  4119. }
  4120. // GetTitle returns the Title field if it's non-nil, zero value otherwise.
  4121. func (n *NewPullRequest) GetTitle() string {
  4122. if n == nil || n.Title == nil {
  4123. return ""
  4124. }
  4125. return *n.Title
  4126. }
  4127. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  4128. func (n *NewTeam) GetDescription() string {
  4129. if n == nil || n.Description == nil {
  4130. return ""
  4131. }
  4132. return *n.Description
  4133. }
  4134. // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise.
  4135. func (n *NewTeam) GetLDAPDN() string {
  4136. if n == nil || n.LDAPDN == nil {
  4137. return ""
  4138. }
  4139. return *n.LDAPDN
  4140. }
  4141. // GetParentTeamID returns the ParentTeamID field if it's non-nil, zero value otherwise.
  4142. func (n *NewTeam) GetParentTeamID() int64 {
  4143. if n == nil || n.ParentTeamID == nil {
  4144. return 0
  4145. }
  4146. return *n.ParentTeamID
  4147. }
  4148. // GetPermission returns the Permission field if it's non-nil, zero value otherwise.
  4149. func (n *NewTeam) GetPermission() string {
  4150. if n == nil || n.Permission == nil {
  4151. return ""
  4152. }
  4153. return *n.Permission
  4154. }
  4155. // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise.
  4156. func (n *NewTeam) GetPrivacy() string {
  4157. if n == nil || n.Privacy == nil {
  4158. return ""
  4159. }
  4160. return *n.Privacy
  4161. }
  4162. // GetID returns the ID field if it's non-nil, zero value otherwise.
  4163. func (n *Notification) GetID() string {
  4164. if n == nil || n.ID == nil {
  4165. return ""
  4166. }
  4167. return *n.ID
  4168. }
  4169. // GetLastReadAt returns the LastReadAt field if it's non-nil, zero value otherwise.
  4170. func (n *Notification) GetLastReadAt() time.Time {
  4171. if n == nil || n.LastReadAt == nil {
  4172. return time.Time{}
  4173. }
  4174. return *n.LastReadAt
  4175. }
  4176. // GetReason returns the Reason field if it's non-nil, zero value otherwise.
  4177. func (n *Notification) GetReason() string {
  4178. if n == nil || n.Reason == nil {
  4179. return ""
  4180. }
  4181. return *n.Reason
  4182. }
  4183. // GetRepository returns the Repository field.
  4184. func (n *Notification) GetRepository() *Repository {
  4185. if n == nil {
  4186. return nil
  4187. }
  4188. return n.Repository
  4189. }
  4190. // GetSubject returns the Subject field.
  4191. func (n *Notification) GetSubject() *NotificationSubject {
  4192. if n == nil {
  4193. return nil
  4194. }
  4195. return n.Subject
  4196. }
  4197. // GetUnread returns the Unread field if it's non-nil, zero value otherwise.
  4198. func (n *Notification) GetUnread() bool {
  4199. if n == nil || n.Unread == nil {
  4200. return false
  4201. }
  4202. return *n.Unread
  4203. }
  4204. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  4205. func (n *Notification) GetUpdatedAt() time.Time {
  4206. if n == nil || n.UpdatedAt == nil {
  4207. return time.Time{}
  4208. }
  4209. return *n.UpdatedAt
  4210. }
  4211. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  4212. func (n *Notification) GetURL() string {
  4213. if n == nil || n.URL == nil {
  4214. return ""
  4215. }
  4216. return *n.URL
  4217. }
  4218. // GetLatestCommentURL returns the LatestCommentURL field if it's non-nil, zero value otherwise.
  4219. func (n *NotificationSubject) GetLatestCommentURL() string {
  4220. if n == nil || n.LatestCommentURL == nil {
  4221. return ""
  4222. }
  4223. return *n.LatestCommentURL
  4224. }
  4225. // GetTitle returns the Title field if it's non-nil, zero value otherwise.
  4226. func (n *NotificationSubject) GetTitle() string {
  4227. if n == nil || n.Title == nil {
  4228. return ""
  4229. }
  4230. return *n.Title
  4231. }
  4232. // GetType returns the Type field if it's non-nil, zero value otherwise.
  4233. func (n *NotificationSubject) GetType() string {
  4234. if n == nil || n.Type == nil {
  4235. return ""
  4236. }
  4237. return *n.Type
  4238. }
  4239. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  4240. func (n *NotificationSubject) GetURL() string {
  4241. if n == nil || n.URL == nil {
  4242. return ""
  4243. }
  4244. return *n.URL
  4245. }
  4246. // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.
  4247. func (o *Organization) GetAvatarURL() string {
  4248. if o == nil || o.AvatarURL == nil {
  4249. return ""
  4250. }
  4251. return *o.AvatarURL
  4252. }
  4253. // GetBillingEmail returns the BillingEmail field if it's non-nil, zero value otherwise.
  4254. func (o *Organization) GetBillingEmail() string {
  4255. if o == nil || o.BillingEmail == nil {
  4256. return ""
  4257. }
  4258. return *o.BillingEmail
  4259. }
  4260. // GetBlog returns the Blog field if it's non-nil, zero value otherwise.
  4261. func (o *Organization) GetBlog() string {
  4262. if o == nil || o.Blog == nil {
  4263. return ""
  4264. }
  4265. return *o.Blog
  4266. }
  4267. // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise.
  4268. func (o *Organization) GetCollaborators() int {
  4269. if o == nil || o.Collaborators == nil {
  4270. return 0
  4271. }
  4272. return *o.Collaborators
  4273. }
  4274. // GetCompany returns the Company field if it's non-nil, zero value otherwise.
  4275. func (o *Organization) GetCompany() string {
  4276. if o == nil || o.Company == nil {
  4277. return ""
  4278. }
  4279. return *o.Company
  4280. }
  4281. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  4282. func (o *Organization) GetCreatedAt() time.Time {
  4283. if o == nil || o.CreatedAt == nil {
  4284. return time.Time{}
  4285. }
  4286. return *o.CreatedAt
  4287. }
  4288. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  4289. func (o *Organization) GetDescription() string {
  4290. if o == nil || o.Description == nil {
  4291. return ""
  4292. }
  4293. return *o.Description
  4294. }
  4295. // GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise.
  4296. func (o *Organization) GetDiskUsage() int {
  4297. if o == nil || o.DiskUsage == nil {
  4298. return 0
  4299. }
  4300. return *o.DiskUsage
  4301. }
  4302. // GetEmail returns the Email field if it's non-nil, zero value otherwise.
  4303. func (o *Organization) GetEmail() string {
  4304. if o == nil || o.Email == nil {
  4305. return ""
  4306. }
  4307. return *o.Email
  4308. }
  4309. // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.
  4310. func (o *Organization) GetEventsURL() string {
  4311. if o == nil || o.EventsURL == nil {
  4312. return ""
  4313. }
  4314. return *o.EventsURL
  4315. }
  4316. // GetFollowers returns the Followers field if it's non-nil, zero value otherwise.
  4317. func (o *Organization) GetFollowers() int {
  4318. if o == nil || o.Followers == nil {
  4319. return 0
  4320. }
  4321. return *o.Followers
  4322. }
  4323. // GetFollowing returns the Following field if it's non-nil, zero value otherwise.
  4324. func (o *Organization) GetFollowing() int {
  4325. if o == nil || o.Following == nil {
  4326. return 0
  4327. }
  4328. return *o.Following
  4329. }
  4330. // GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise.
  4331. func (o *Organization) GetHooksURL() string {
  4332. if o == nil || o.HooksURL == nil {
  4333. return ""
  4334. }
  4335. return *o.HooksURL
  4336. }
  4337. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  4338. func (o *Organization) GetHTMLURL() string {
  4339. if o == nil || o.HTMLURL == nil {
  4340. return ""
  4341. }
  4342. return *o.HTMLURL
  4343. }
  4344. // GetID returns the ID field if it's non-nil, zero value otherwise.
  4345. func (o *Organization) GetID() int64 {
  4346. if o == nil || o.ID == nil {
  4347. return 0
  4348. }
  4349. return *o.ID
  4350. }
  4351. // GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise.
  4352. func (o *Organization) GetIssuesURL() string {
  4353. if o == nil || o.IssuesURL == nil {
  4354. return ""
  4355. }
  4356. return *o.IssuesURL
  4357. }
  4358. // GetLocation returns the Location field if it's non-nil, zero value otherwise.
  4359. func (o *Organization) GetLocation() string {
  4360. if o == nil || o.Location == nil {
  4361. return ""
  4362. }
  4363. return *o.Location
  4364. }
  4365. // GetLogin returns the Login field if it's non-nil, zero value otherwise.
  4366. func (o *Organization) GetLogin() string {
  4367. if o == nil || o.Login == nil {
  4368. return ""
  4369. }
  4370. return *o.Login
  4371. }
  4372. // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise.
  4373. func (o *Organization) GetMembersURL() string {
  4374. if o == nil || o.MembersURL == nil {
  4375. return ""
  4376. }
  4377. return *o.MembersURL
  4378. }
  4379. // GetName returns the Name field if it's non-nil, zero value otherwise.
  4380. func (o *Organization) GetName() string {
  4381. if o == nil || o.Name == nil {
  4382. return ""
  4383. }
  4384. return *o.Name
  4385. }
  4386. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  4387. func (o *Organization) GetNodeID() string {
  4388. if o == nil || o.NodeID == nil {
  4389. return ""
  4390. }
  4391. return *o.NodeID
  4392. }
  4393. // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise.
  4394. func (o *Organization) GetOwnedPrivateRepos() int {
  4395. if o == nil || o.OwnedPrivateRepos == nil {
  4396. return 0
  4397. }
  4398. return *o.OwnedPrivateRepos
  4399. }
  4400. // GetPlan returns the Plan field.
  4401. func (o *Organization) GetPlan() *Plan {
  4402. if o == nil {
  4403. return nil
  4404. }
  4405. return o.Plan
  4406. }
  4407. // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise.
  4408. func (o *Organization) GetPrivateGists() int {
  4409. if o == nil || o.PrivateGists == nil {
  4410. return 0
  4411. }
  4412. return *o.PrivateGists
  4413. }
  4414. // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise.
  4415. func (o *Organization) GetPublicGists() int {
  4416. if o == nil || o.PublicGists == nil {
  4417. return 0
  4418. }
  4419. return *o.PublicGists
  4420. }
  4421. // GetPublicMembersURL returns the PublicMembersURL field if it's non-nil, zero value otherwise.
  4422. func (o *Organization) GetPublicMembersURL() string {
  4423. if o == nil || o.PublicMembersURL == nil {
  4424. return ""
  4425. }
  4426. return *o.PublicMembersURL
  4427. }
  4428. // GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise.
  4429. func (o *Organization) GetPublicRepos() int {
  4430. if o == nil || o.PublicRepos == nil {
  4431. return 0
  4432. }
  4433. return *o.PublicRepos
  4434. }
  4435. // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise.
  4436. func (o *Organization) GetReposURL() string {
  4437. if o == nil || o.ReposURL == nil {
  4438. return ""
  4439. }
  4440. return *o.ReposURL
  4441. }
  4442. // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise.
  4443. func (o *Organization) GetTotalPrivateRepos() int {
  4444. if o == nil || o.TotalPrivateRepos == nil {
  4445. return 0
  4446. }
  4447. return *o.TotalPrivateRepos
  4448. }
  4449. // GetType returns the Type field if it's non-nil, zero value otherwise.
  4450. func (o *Organization) GetType() string {
  4451. if o == nil || o.Type == nil {
  4452. return ""
  4453. }
  4454. return *o.Type
  4455. }
  4456. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  4457. func (o *Organization) GetUpdatedAt() time.Time {
  4458. if o == nil || o.UpdatedAt == nil {
  4459. return time.Time{}
  4460. }
  4461. return *o.UpdatedAt
  4462. }
  4463. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  4464. func (o *Organization) GetURL() string {
  4465. if o == nil || o.URL == nil {
  4466. return ""
  4467. }
  4468. return *o.URL
  4469. }
  4470. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  4471. func (o *OrganizationEvent) GetAction() string {
  4472. if o == nil || o.Action == nil {
  4473. return ""
  4474. }
  4475. return *o.Action
  4476. }
  4477. // GetInstallation returns the Installation field.
  4478. func (o *OrganizationEvent) GetInstallation() *Installation {
  4479. if o == nil {
  4480. return nil
  4481. }
  4482. return o.Installation
  4483. }
  4484. // GetInvitation returns the Invitation field.
  4485. func (o *OrganizationEvent) GetInvitation() *Invitation {
  4486. if o == nil {
  4487. return nil
  4488. }
  4489. return o.Invitation
  4490. }
  4491. // GetMembership returns the Membership field.
  4492. func (o *OrganizationEvent) GetMembership() *Membership {
  4493. if o == nil {
  4494. return nil
  4495. }
  4496. return o.Membership
  4497. }
  4498. // GetOrganization returns the Organization field.
  4499. func (o *OrganizationEvent) GetOrganization() *Organization {
  4500. if o == nil {
  4501. return nil
  4502. }
  4503. return o.Organization
  4504. }
  4505. // GetSender returns the Sender field.
  4506. func (o *OrganizationEvent) GetSender() *User {
  4507. if o == nil {
  4508. return nil
  4509. }
  4510. return o.Sender
  4511. }
  4512. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  4513. func (o *OrgBlockEvent) GetAction() string {
  4514. if o == nil || o.Action == nil {
  4515. return ""
  4516. }
  4517. return *o.Action
  4518. }
  4519. // GetBlockedUser returns the BlockedUser field.
  4520. func (o *OrgBlockEvent) GetBlockedUser() *User {
  4521. if o == nil {
  4522. return nil
  4523. }
  4524. return o.BlockedUser
  4525. }
  4526. // GetInstallation returns the Installation field.
  4527. func (o *OrgBlockEvent) GetInstallation() *Installation {
  4528. if o == nil {
  4529. return nil
  4530. }
  4531. return o.Installation
  4532. }
  4533. // GetOrganization returns the Organization field.
  4534. func (o *OrgBlockEvent) GetOrganization() *Organization {
  4535. if o == nil {
  4536. return nil
  4537. }
  4538. return o.Organization
  4539. }
  4540. // GetSender returns the Sender field.
  4541. func (o *OrgBlockEvent) GetSender() *User {
  4542. if o == nil {
  4543. return nil
  4544. }
  4545. return o.Sender
  4546. }
  4547. // GetDisabledOrgs returns the DisabledOrgs field if it's non-nil, zero value otherwise.
  4548. func (o *OrgStats) GetDisabledOrgs() int {
  4549. if o == nil || o.DisabledOrgs == nil {
  4550. return 0
  4551. }
  4552. return *o.DisabledOrgs
  4553. }
  4554. // GetTotalOrgs returns the TotalOrgs field if it's non-nil, zero value otherwise.
  4555. func (o *OrgStats) GetTotalOrgs() int {
  4556. if o == nil || o.TotalOrgs == nil {
  4557. return 0
  4558. }
  4559. return *o.TotalOrgs
  4560. }
  4561. // GetTotalTeamMembers returns the TotalTeamMembers field if it's non-nil, zero value otherwise.
  4562. func (o *OrgStats) GetTotalTeamMembers() int {
  4563. if o == nil || o.TotalTeamMembers == nil {
  4564. return 0
  4565. }
  4566. return *o.TotalTeamMembers
  4567. }
  4568. // GetTotalTeams returns the TotalTeams field if it's non-nil, zero value otherwise.
  4569. func (o *OrgStats) GetTotalTeams() int {
  4570. if o == nil || o.TotalTeams == nil {
  4571. return 0
  4572. }
  4573. return *o.TotalTeams
  4574. }
  4575. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  4576. func (p *Page) GetAction() string {
  4577. if p == nil || p.Action == nil {
  4578. return ""
  4579. }
  4580. return *p.Action
  4581. }
  4582. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  4583. func (p *Page) GetHTMLURL() string {
  4584. if p == nil || p.HTMLURL == nil {
  4585. return ""
  4586. }
  4587. return *p.HTMLURL
  4588. }
  4589. // GetPageName returns the PageName field if it's non-nil, zero value otherwise.
  4590. func (p *Page) GetPageName() string {
  4591. if p == nil || p.PageName == nil {
  4592. return ""
  4593. }
  4594. return *p.PageName
  4595. }
  4596. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  4597. func (p *Page) GetSHA() string {
  4598. if p == nil || p.SHA == nil {
  4599. return ""
  4600. }
  4601. return *p.SHA
  4602. }
  4603. // GetSummary returns the Summary field if it's non-nil, zero value otherwise.
  4604. func (p *Page) GetSummary() string {
  4605. if p == nil || p.Summary == nil {
  4606. return ""
  4607. }
  4608. return *p.Summary
  4609. }
  4610. // GetTitle returns the Title field if it's non-nil, zero value otherwise.
  4611. func (p *Page) GetTitle() string {
  4612. if p == nil || p.Title == nil {
  4613. return ""
  4614. }
  4615. return *p.Title
  4616. }
  4617. // GetBuild returns the Build field.
  4618. func (p *PageBuildEvent) GetBuild() *PagesBuild {
  4619. if p == nil {
  4620. return nil
  4621. }
  4622. return p.Build
  4623. }
  4624. // GetID returns the ID field if it's non-nil, zero value otherwise.
  4625. func (p *PageBuildEvent) GetID() int64 {
  4626. if p == nil || p.ID == nil {
  4627. return 0
  4628. }
  4629. return *p.ID
  4630. }
  4631. // GetInstallation returns the Installation field.
  4632. func (p *PageBuildEvent) GetInstallation() *Installation {
  4633. if p == nil {
  4634. return nil
  4635. }
  4636. return p.Installation
  4637. }
  4638. // GetRepo returns the Repo field.
  4639. func (p *PageBuildEvent) GetRepo() *Repository {
  4640. if p == nil {
  4641. return nil
  4642. }
  4643. return p.Repo
  4644. }
  4645. // GetSender returns the Sender field.
  4646. func (p *PageBuildEvent) GetSender() *User {
  4647. if p == nil {
  4648. return nil
  4649. }
  4650. return p.Sender
  4651. }
  4652. // GetCNAME returns the CNAME field if it's non-nil, zero value otherwise.
  4653. func (p *Pages) GetCNAME() string {
  4654. if p == nil || p.CNAME == nil {
  4655. return ""
  4656. }
  4657. return *p.CNAME
  4658. }
  4659. // GetCustom404 returns the Custom404 field if it's non-nil, zero value otherwise.
  4660. func (p *Pages) GetCustom404() bool {
  4661. if p == nil || p.Custom404 == nil {
  4662. return false
  4663. }
  4664. return *p.Custom404
  4665. }
  4666. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  4667. func (p *Pages) GetHTMLURL() string {
  4668. if p == nil || p.HTMLURL == nil {
  4669. return ""
  4670. }
  4671. return *p.HTMLURL
  4672. }
  4673. // GetStatus returns the Status field if it's non-nil, zero value otherwise.
  4674. func (p *Pages) GetStatus() string {
  4675. if p == nil || p.Status == nil {
  4676. return ""
  4677. }
  4678. return *p.Status
  4679. }
  4680. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  4681. func (p *Pages) GetURL() string {
  4682. if p == nil || p.URL == nil {
  4683. return ""
  4684. }
  4685. return *p.URL
  4686. }
  4687. // GetCommit returns the Commit field if it's non-nil, zero value otherwise.
  4688. func (p *PagesBuild) GetCommit() string {
  4689. if p == nil || p.Commit == nil {
  4690. return ""
  4691. }
  4692. return *p.Commit
  4693. }
  4694. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  4695. func (p *PagesBuild) GetCreatedAt() Timestamp {
  4696. if p == nil || p.CreatedAt == nil {
  4697. return Timestamp{}
  4698. }
  4699. return *p.CreatedAt
  4700. }
  4701. // GetDuration returns the Duration field if it's non-nil, zero value otherwise.
  4702. func (p *PagesBuild) GetDuration() int {
  4703. if p == nil || p.Duration == nil {
  4704. return 0
  4705. }
  4706. return *p.Duration
  4707. }
  4708. // GetError returns the Error field.
  4709. func (p *PagesBuild) GetError() *PagesError {
  4710. if p == nil {
  4711. return nil
  4712. }
  4713. return p.Error
  4714. }
  4715. // GetPusher returns the Pusher field.
  4716. func (p *PagesBuild) GetPusher() *User {
  4717. if p == nil {
  4718. return nil
  4719. }
  4720. return p.Pusher
  4721. }
  4722. // GetStatus returns the Status field if it's non-nil, zero value otherwise.
  4723. func (p *PagesBuild) GetStatus() string {
  4724. if p == nil || p.Status == nil {
  4725. return ""
  4726. }
  4727. return *p.Status
  4728. }
  4729. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  4730. func (p *PagesBuild) GetUpdatedAt() Timestamp {
  4731. if p == nil || p.UpdatedAt == nil {
  4732. return Timestamp{}
  4733. }
  4734. return *p.UpdatedAt
  4735. }
  4736. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  4737. func (p *PagesBuild) GetURL() string {
  4738. if p == nil || p.URL == nil {
  4739. return ""
  4740. }
  4741. return *p.URL
  4742. }
  4743. // GetMessage returns the Message field if it's non-nil, zero value otherwise.
  4744. func (p *PagesError) GetMessage() string {
  4745. if p == nil || p.Message == nil {
  4746. return ""
  4747. }
  4748. return *p.Message
  4749. }
  4750. // GetTotalPages returns the TotalPages field if it's non-nil, zero value otherwise.
  4751. func (p *PageStats) GetTotalPages() int {
  4752. if p == nil || p.TotalPages == nil {
  4753. return 0
  4754. }
  4755. return *p.TotalPages
  4756. }
  4757. // GetHook returns the Hook field.
  4758. func (p *PingEvent) GetHook() *Hook {
  4759. if p == nil {
  4760. return nil
  4761. }
  4762. return p.Hook
  4763. }
  4764. // GetHookID returns the HookID field if it's non-nil, zero value otherwise.
  4765. func (p *PingEvent) GetHookID() int64 {
  4766. if p == nil || p.HookID == nil {
  4767. return 0
  4768. }
  4769. return *p.HookID
  4770. }
  4771. // GetInstallation returns the Installation field.
  4772. func (p *PingEvent) GetInstallation() *Installation {
  4773. if p == nil {
  4774. return nil
  4775. }
  4776. return p.Installation
  4777. }
  4778. // GetZen returns the Zen field if it's non-nil, zero value otherwise.
  4779. func (p *PingEvent) GetZen() string {
  4780. if p == nil || p.Zen == nil {
  4781. return ""
  4782. }
  4783. return *p.Zen
  4784. }
  4785. // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise.
  4786. func (p *Plan) GetCollaborators() int {
  4787. if p == nil || p.Collaborators == nil {
  4788. return 0
  4789. }
  4790. return *p.Collaborators
  4791. }
  4792. // GetName returns the Name field if it's non-nil, zero value otherwise.
  4793. func (p *Plan) GetName() string {
  4794. if p == nil || p.Name == nil {
  4795. return ""
  4796. }
  4797. return *p.Name
  4798. }
  4799. // GetPrivateRepos returns the PrivateRepos field if it's non-nil, zero value otherwise.
  4800. func (p *Plan) GetPrivateRepos() int {
  4801. if p == nil || p.PrivateRepos == nil {
  4802. return 0
  4803. }
  4804. return *p.PrivateRepos
  4805. }
  4806. // GetSpace returns the Space field if it's non-nil, zero value otherwise.
  4807. func (p *Plan) GetSpace() int {
  4808. if p == nil || p.Space == nil {
  4809. return 0
  4810. }
  4811. return *p.Space
  4812. }
  4813. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  4814. func (p *Project) GetBody() string {
  4815. if p == nil || p.Body == nil {
  4816. return ""
  4817. }
  4818. return *p.Body
  4819. }
  4820. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  4821. func (p *Project) GetCreatedAt() Timestamp {
  4822. if p == nil || p.CreatedAt == nil {
  4823. return Timestamp{}
  4824. }
  4825. return *p.CreatedAt
  4826. }
  4827. // GetCreator returns the Creator field.
  4828. func (p *Project) GetCreator() *User {
  4829. if p == nil {
  4830. return nil
  4831. }
  4832. return p.Creator
  4833. }
  4834. // GetID returns the ID field if it's non-nil, zero value otherwise.
  4835. func (p *Project) GetID() int64 {
  4836. if p == nil || p.ID == nil {
  4837. return 0
  4838. }
  4839. return *p.ID
  4840. }
  4841. // GetName returns the Name field if it's non-nil, zero value otherwise.
  4842. func (p *Project) GetName() string {
  4843. if p == nil || p.Name == nil {
  4844. return ""
  4845. }
  4846. return *p.Name
  4847. }
  4848. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  4849. func (p *Project) GetNodeID() string {
  4850. if p == nil || p.NodeID == nil {
  4851. return ""
  4852. }
  4853. return *p.NodeID
  4854. }
  4855. // GetNumber returns the Number field if it's non-nil, zero value otherwise.
  4856. func (p *Project) GetNumber() int {
  4857. if p == nil || p.Number == nil {
  4858. return 0
  4859. }
  4860. return *p.Number
  4861. }
  4862. // GetOwnerURL returns the OwnerURL field if it's non-nil, zero value otherwise.
  4863. func (p *Project) GetOwnerURL() string {
  4864. if p == nil || p.OwnerURL == nil {
  4865. return ""
  4866. }
  4867. return *p.OwnerURL
  4868. }
  4869. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  4870. func (p *Project) GetUpdatedAt() Timestamp {
  4871. if p == nil || p.UpdatedAt == nil {
  4872. return Timestamp{}
  4873. }
  4874. return *p.UpdatedAt
  4875. }
  4876. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  4877. func (p *Project) GetURL() string {
  4878. if p == nil || p.URL == nil {
  4879. return ""
  4880. }
  4881. return *p.URL
  4882. }
  4883. // GetColumnID returns the ColumnID field if it's non-nil, zero value otherwise.
  4884. func (p *ProjectCard) GetColumnID() int64 {
  4885. if p == nil || p.ColumnID == nil {
  4886. return 0
  4887. }
  4888. return *p.ColumnID
  4889. }
  4890. // GetColumnURL returns the ColumnURL field if it's non-nil, zero value otherwise.
  4891. func (p *ProjectCard) GetColumnURL() string {
  4892. if p == nil || p.ColumnURL == nil {
  4893. return ""
  4894. }
  4895. return *p.ColumnURL
  4896. }
  4897. // GetContentURL returns the ContentURL field if it's non-nil, zero value otherwise.
  4898. func (p *ProjectCard) GetContentURL() string {
  4899. if p == nil || p.ContentURL == nil {
  4900. return ""
  4901. }
  4902. return *p.ContentURL
  4903. }
  4904. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  4905. func (p *ProjectCard) GetCreatedAt() Timestamp {
  4906. if p == nil || p.CreatedAt == nil {
  4907. return Timestamp{}
  4908. }
  4909. return *p.CreatedAt
  4910. }
  4911. // GetCreator returns the Creator field.
  4912. func (p *ProjectCard) GetCreator() *User {
  4913. if p == nil {
  4914. return nil
  4915. }
  4916. return p.Creator
  4917. }
  4918. // GetID returns the ID field if it's non-nil, zero value otherwise.
  4919. func (p *ProjectCard) GetID() int64 {
  4920. if p == nil || p.ID == nil {
  4921. return 0
  4922. }
  4923. return *p.ID
  4924. }
  4925. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  4926. func (p *ProjectCard) GetNodeID() string {
  4927. if p == nil || p.NodeID == nil {
  4928. return ""
  4929. }
  4930. return *p.NodeID
  4931. }
  4932. // GetNote returns the Note field if it's non-nil, zero value otherwise.
  4933. func (p *ProjectCard) GetNote() string {
  4934. if p == nil || p.Note == nil {
  4935. return ""
  4936. }
  4937. return *p.Note
  4938. }
  4939. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  4940. func (p *ProjectCard) GetUpdatedAt() Timestamp {
  4941. if p == nil || p.UpdatedAt == nil {
  4942. return Timestamp{}
  4943. }
  4944. return *p.UpdatedAt
  4945. }
  4946. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  4947. func (p *ProjectCard) GetURL() string {
  4948. if p == nil || p.URL == nil {
  4949. return ""
  4950. }
  4951. return *p.URL
  4952. }
  4953. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  4954. func (p *ProjectCardEvent) GetAction() string {
  4955. if p == nil || p.Action == nil {
  4956. return ""
  4957. }
  4958. return *p.Action
  4959. }
  4960. // GetAfterID returns the AfterID field if it's non-nil, zero value otherwise.
  4961. func (p *ProjectCardEvent) GetAfterID() int64 {
  4962. if p == nil || p.AfterID == nil {
  4963. return 0
  4964. }
  4965. return *p.AfterID
  4966. }
  4967. // GetChanges returns the Changes field.
  4968. func (p *ProjectCardEvent) GetChanges() *ProjectCardChange {
  4969. if p == nil {
  4970. return nil
  4971. }
  4972. return p.Changes
  4973. }
  4974. // GetInstallation returns the Installation field.
  4975. func (p *ProjectCardEvent) GetInstallation() *Installation {
  4976. if p == nil {
  4977. return nil
  4978. }
  4979. return p.Installation
  4980. }
  4981. // GetOrg returns the Org field.
  4982. func (p *ProjectCardEvent) GetOrg() *Organization {
  4983. if p == nil {
  4984. return nil
  4985. }
  4986. return p.Org
  4987. }
  4988. // GetProjectCard returns the ProjectCard field.
  4989. func (p *ProjectCardEvent) GetProjectCard() *ProjectCard {
  4990. if p == nil {
  4991. return nil
  4992. }
  4993. return p.ProjectCard
  4994. }
  4995. // GetRepo returns the Repo field.
  4996. func (p *ProjectCardEvent) GetRepo() *Repository {
  4997. if p == nil {
  4998. return nil
  4999. }
  5000. return p.Repo
  5001. }
  5002. // GetSender returns the Sender field.
  5003. func (p *ProjectCardEvent) GetSender() *User {
  5004. if p == nil {
  5005. return nil
  5006. }
  5007. return p.Sender
  5008. }
  5009. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  5010. func (p *ProjectColumn) GetCreatedAt() Timestamp {
  5011. if p == nil || p.CreatedAt == nil {
  5012. return Timestamp{}
  5013. }
  5014. return *p.CreatedAt
  5015. }
  5016. // GetID returns the ID field if it's non-nil, zero value otherwise.
  5017. func (p *ProjectColumn) GetID() int64 {
  5018. if p == nil || p.ID == nil {
  5019. return 0
  5020. }
  5021. return *p.ID
  5022. }
  5023. // GetName returns the Name field if it's non-nil, zero value otherwise.
  5024. func (p *ProjectColumn) GetName() string {
  5025. if p == nil || p.Name == nil {
  5026. return ""
  5027. }
  5028. return *p.Name
  5029. }
  5030. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  5031. func (p *ProjectColumn) GetNodeID() string {
  5032. if p == nil || p.NodeID == nil {
  5033. return ""
  5034. }
  5035. return *p.NodeID
  5036. }
  5037. // GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise.
  5038. func (p *ProjectColumn) GetProjectURL() string {
  5039. if p == nil || p.ProjectURL == nil {
  5040. return ""
  5041. }
  5042. return *p.ProjectURL
  5043. }
  5044. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  5045. func (p *ProjectColumn) GetUpdatedAt() Timestamp {
  5046. if p == nil || p.UpdatedAt == nil {
  5047. return Timestamp{}
  5048. }
  5049. return *p.UpdatedAt
  5050. }
  5051. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  5052. func (p *ProjectColumnEvent) GetAction() string {
  5053. if p == nil || p.Action == nil {
  5054. return ""
  5055. }
  5056. return *p.Action
  5057. }
  5058. // GetAfterID returns the AfterID field if it's non-nil, zero value otherwise.
  5059. func (p *ProjectColumnEvent) GetAfterID() int64 {
  5060. if p == nil || p.AfterID == nil {
  5061. return 0
  5062. }
  5063. return *p.AfterID
  5064. }
  5065. // GetChanges returns the Changes field.
  5066. func (p *ProjectColumnEvent) GetChanges() *ProjectColumnChange {
  5067. if p == nil {
  5068. return nil
  5069. }
  5070. return p.Changes
  5071. }
  5072. // GetInstallation returns the Installation field.
  5073. func (p *ProjectColumnEvent) GetInstallation() *Installation {
  5074. if p == nil {
  5075. return nil
  5076. }
  5077. return p.Installation
  5078. }
  5079. // GetOrg returns the Org field.
  5080. func (p *ProjectColumnEvent) GetOrg() *Organization {
  5081. if p == nil {
  5082. return nil
  5083. }
  5084. return p.Org
  5085. }
  5086. // GetProjectColumn returns the ProjectColumn field.
  5087. func (p *ProjectColumnEvent) GetProjectColumn() *ProjectColumn {
  5088. if p == nil {
  5089. return nil
  5090. }
  5091. return p.ProjectColumn
  5092. }
  5093. // GetRepo returns the Repo field.
  5094. func (p *ProjectColumnEvent) GetRepo() *Repository {
  5095. if p == nil {
  5096. return nil
  5097. }
  5098. return p.Repo
  5099. }
  5100. // GetSender returns the Sender field.
  5101. func (p *ProjectColumnEvent) GetSender() *User {
  5102. if p == nil {
  5103. return nil
  5104. }
  5105. return p.Sender
  5106. }
  5107. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  5108. func (p *ProjectEvent) GetAction() string {
  5109. if p == nil || p.Action == nil {
  5110. return ""
  5111. }
  5112. return *p.Action
  5113. }
  5114. // GetChanges returns the Changes field.
  5115. func (p *ProjectEvent) GetChanges() *ProjectChange {
  5116. if p == nil {
  5117. return nil
  5118. }
  5119. return p.Changes
  5120. }
  5121. // GetInstallation returns the Installation field.
  5122. func (p *ProjectEvent) GetInstallation() *Installation {
  5123. if p == nil {
  5124. return nil
  5125. }
  5126. return p.Installation
  5127. }
  5128. // GetOrg returns the Org field.
  5129. func (p *ProjectEvent) GetOrg() *Organization {
  5130. if p == nil {
  5131. return nil
  5132. }
  5133. return p.Org
  5134. }
  5135. // GetProject returns the Project field.
  5136. func (p *ProjectEvent) GetProject() *Project {
  5137. if p == nil {
  5138. return nil
  5139. }
  5140. return p.Project
  5141. }
  5142. // GetRepo returns the Repo field.
  5143. func (p *ProjectEvent) GetRepo() *Repository {
  5144. if p == nil {
  5145. return nil
  5146. }
  5147. return p.Repo
  5148. }
  5149. // GetSender returns the Sender field.
  5150. func (p *ProjectEvent) GetSender() *User {
  5151. if p == nil {
  5152. return nil
  5153. }
  5154. return p.Sender
  5155. }
  5156. // GetEnforceAdmins returns the EnforceAdmins field.
  5157. func (p *Protection) GetEnforceAdmins() *AdminEnforcement {
  5158. if p == nil {
  5159. return nil
  5160. }
  5161. return p.EnforceAdmins
  5162. }
  5163. // GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field.
  5164. func (p *Protection) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcement {
  5165. if p == nil {
  5166. return nil
  5167. }
  5168. return p.RequiredPullRequestReviews
  5169. }
  5170. // GetRequiredStatusChecks returns the RequiredStatusChecks field.
  5171. func (p *Protection) GetRequiredStatusChecks() *RequiredStatusChecks {
  5172. if p == nil {
  5173. return nil
  5174. }
  5175. return p.RequiredStatusChecks
  5176. }
  5177. // GetRestrictions returns the Restrictions field.
  5178. func (p *Protection) GetRestrictions() *BranchRestrictions {
  5179. if p == nil {
  5180. return nil
  5181. }
  5182. return p.Restrictions
  5183. }
  5184. // GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field.
  5185. func (p *ProtectionRequest) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcementRequest {
  5186. if p == nil {
  5187. return nil
  5188. }
  5189. return p.RequiredPullRequestReviews
  5190. }
  5191. // GetRequiredStatusChecks returns the RequiredStatusChecks field.
  5192. func (p *ProtectionRequest) GetRequiredStatusChecks() *RequiredStatusChecks {
  5193. if p == nil {
  5194. return nil
  5195. }
  5196. return p.RequiredStatusChecks
  5197. }
  5198. // GetRestrictions returns the Restrictions field.
  5199. func (p *ProtectionRequest) GetRestrictions() *BranchRestrictionsRequest {
  5200. if p == nil {
  5201. return nil
  5202. }
  5203. return p.Restrictions
  5204. }
  5205. // GetInstallation returns the Installation field.
  5206. func (p *PublicEvent) GetInstallation() *Installation {
  5207. if p == nil {
  5208. return nil
  5209. }
  5210. return p.Installation
  5211. }
  5212. // GetRepo returns the Repo field.
  5213. func (p *PublicEvent) GetRepo() *Repository {
  5214. if p == nil {
  5215. return nil
  5216. }
  5217. return p.Repo
  5218. }
  5219. // GetSender returns the Sender field.
  5220. func (p *PublicEvent) GetSender() *User {
  5221. if p == nil {
  5222. return nil
  5223. }
  5224. return p.Sender
  5225. }
  5226. // GetAdditions returns the Additions field if it's non-nil, zero value otherwise.
  5227. func (p *PullRequest) GetAdditions() int {
  5228. if p == nil || p.Additions == nil {
  5229. return 0
  5230. }
  5231. return *p.Additions
  5232. }
  5233. // GetAssignee returns the Assignee field.
  5234. func (p *PullRequest) GetAssignee() *User {
  5235. if p == nil {
  5236. return nil
  5237. }
  5238. return p.Assignee
  5239. }
  5240. // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise.
  5241. func (p *PullRequest) GetAuthorAssociation() string {
  5242. if p == nil || p.AuthorAssociation == nil {
  5243. return ""
  5244. }
  5245. return *p.AuthorAssociation
  5246. }
  5247. // GetBase returns the Base field.
  5248. func (p *PullRequest) GetBase() *PullRequestBranch {
  5249. if p == nil {
  5250. return nil
  5251. }
  5252. return p.Base
  5253. }
  5254. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  5255. func (p *PullRequest) GetBody() string {
  5256. if p == nil || p.Body == nil {
  5257. return ""
  5258. }
  5259. return *p.Body
  5260. }
  5261. // GetChangedFiles returns the ChangedFiles field if it's non-nil, zero value otherwise.
  5262. func (p *PullRequest) GetChangedFiles() int {
  5263. if p == nil || p.ChangedFiles == nil {
  5264. return 0
  5265. }
  5266. return *p.ChangedFiles
  5267. }
  5268. // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise.
  5269. func (p *PullRequest) GetClosedAt() time.Time {
  5270. if p == nil || p.ClosedAt == nil {
  5271. return time.Time{}
  5272. }
  5273. return *p.ClosedAt
  5274. }
  5275. // GetComments returns the Comments field if it's non-nil, zero value otherwise.
  5276. func (p *PullRequest) GetComments() int {
  5277. if p == nil || p.Comments == nil {
  5278. return 0
  5279. }
  5280. return *p.Comments
  5281. }
  5282. // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.
  5283. func (p *PullRequest) GetCommentsURL() string {
  5284. if p == nil || p.CommentsURL == nil {
  5285. return ""
  5286. }
  5287. return *p.CommentsURL
  5288. }
  5289. // GetCommits returns the Commits field if it's non-nil, zero value otherwise.
  5290. func (p *PullRequest) GetCommits() int {
  5291. if p == nil || p.Commits == nil {
  5292. return 0
  5293. }
  5294. return *p.Commits
  5295. }
  5296. // GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise.
  5297. func (p *PullRequest) GetCommitsURL() string {
  5298. if p == nil || p.CommitsURL == nil {
  5299. return ""
  5300. }
  5301. return *p.CommitsURL
  5302. }
  5303. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  5304. func (p *PullRequest) GetCreatedAt() time.Time {
  5305. if p == nil || p.CreatedAt == nil {
  5306. return time.Time{}
  5307. }
  5308. return *p.CreatedAt
  5309. }
  5310. // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise.
  5311. func (p *PullRequest) GetDeletions() int {
  5312. if p == nil || p.Deletions == nil {
  5313. return 0
  5314. }
  5315. return *p.Deletions
  5316. }
  5317. // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise.
  5318. func (p *PullRequest) GetDiffURL() string {
  5319. if p == nil || p.DiffURL == nil {
  5320. return ""
  5321. }
  5322. return *p.DiffURL
  5323. }
  5324. // GetHead returns the Head field.
  5325. func (p *PullRequest) GetHead() *PullRequestBranch {
  5326. if p == nil {
  5327. return nil
  5328. }
  5329. return p.Head
  5330. }
  5331. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  5332. func (p *PullRequest) GetHTMLURL() string {
  5333. if p == nil || p.HTMLURL == nil {
  5334. return ""
  5335. }
  5336. return *p.HTMLURL
  5337. }
  5338. // GetID returns the ID field if it's non-nil, zero value otherwise.
  5339. func (p *PullRequest) GetID() int64 {
  5340. if p == nil || p.ID == nil {
  5341. return 0
  5342. }
  5343. return *p.ID
  5344. }
  5345. // GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise.
  5346. func (p *PullRequest) GetIssueURL() string {
  5347. if p == nil || p.IssueURL == nil {
  5348. return ""
  5349. }
  5350. return *p.IssueURL
  5351. }
  5352. // GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise.
  5353. func (p *PullRequest) GetMaintainerCanModify() bool {
  5354. if p == nil || p.MaintainerCanModify == nil {
  5355. return false
  5356. }
  5357. return *p.MaintainerCanModify
  5358. }
  5359. // GetMergeable returns the Mergeable field if it's non-nil, zero value otherwise.
  5360. func (p *PullRequest) GetMergeable() bool {
  5361. if p == nil || p.Mergeable == nil {
  5362. return false
  5363. }
  5364. return *p.Mergeable
  5365. }
  5366. // GetMergeableState returns the MergeableState field if it's non-nil, zero value otherwise.
  5367. func (p *PullRequest) GetMergeableState() string {
  5368. if p == nil || p.MergeableState == nil {
  5369. return ""
  5370. }
  5371. return *p.MergeableState
  5372. }
  5373. // GetMergeCommitSHA returns the MergeCommitSHA field if it's non-nil, zero value otherwise.
  5374. func (p *PullRequest) GetMergeCommitSHA() string {
  5375. if p == nil || p.MergeCommitSHA == nil {
  5376. return ""
  5377. }
  5378. return *p.MergeCommitSHA
  5379. }
  5380. // GetMerged returns the Merged field if it's non-nil, zero value otherwise.
  5381. func (p *PullRequest) GetMerged() bool {
  5382. if p == nil || p.Merged == nil {
  5383. return false
  5384. }
  5385. return *p.Merged
  5386. }
  5387. // GetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise.
  5388. func (p *PullRequest) GetMergedAt() time.Time {
  5389. if p == nil || p.MergedAt == nil {
  5390. return time.Time{}
  5391. }
  5392. return *p.MergedAt
  5393. }
  5394. // GetMergedBy returns the MergedBy field.
  5395. func (p *PullRequest) GetMergedBy() *User {
  5396. if p == nil {
  5397. return nil
  5398. }
  5399. return p.MergedBy
  5400. }
  5401. // GetMilestone returns the Milestone field.
  5402. func (p *PullRequest) GetMilestone() *Milestone {
  5403. if p == nil {
  5404. return nil
  5405. }
  5406. return p.Milestone
  5407. }
  5408. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  5409. func (p *PullRequest) GetNodeID() string {
  5410. if p == nil || p.NodeID == nil {
  5411. return ""
  5412. }
  5413. return *p.NodeID
  5414. }
  5415. // GetNumber returns the Number field if it's non-nil, zero value otherwise.
  5416. func (p *PullRequest) GetNumber() int {
  5417. if p == nil || p.Number == nil {
  5418. return 0
  5419. }
  5420. return *p.Number
  5421. }
  5422. // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise.
  5423. func (p *PullRequest) GetPatchURL() string {
  5424. if p == nil || p.PatchURL == nil {
  5425. return ""
  5426. }
  5427. return *p.PatchURL
  5428. }
  5429. // GetReviewCommentsURL returns the ReviewCommentsURL field if it's non-nil, zero value otherwise.
  5430. func (p *PullRequest) GetReviewCommentsURL() string {
  5431. if p == nil || p.ReviewCommentsURL == nil {
  5432. return ""
  5433. }
  5434. return *p.ReviewCommentsURL
  5435. }
  5436. // GetReviewCommentURL returns the ReviewCommentURL field if it's non-nil, zero value otherwise.
  5437. func (p *PullRequest) GetReviewCommentURL() string {
  5438. if p == nil || p.ReviewCommentURL == nil {
  5439. return ""
  5440. }
  5441. return *p.ReviewCommentURL
  5442. }
  5443. // GetState returns the State field if it's non-nil, zero value otherwise.
  5444. func (p *PullRequest) GetState() string {
  5445. if p == nil || p.State == nil {
  5446. return ""
  5447. }
  5448. return *p.State
  5449. }
  5450. // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise.
  5451. func (p *PullRequest) GetStatusesURL() string {
  5452. if p == nil || p.StatusesURL == nil {
  5453. return ""
  5454. }
  5455. return *p.StatusesURL
  5456. }
  5457. // GetTitle returns the Title field if it's non-nil, zero value otherwise.
  5458. func (p *PullRequest) GetTitle() string {
  5459. if p == nil || p.Title == nil {
  5460. return ""
  5461. }
  5462. return *p.Title
  5463. }
  5464. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  5465. func (p *PullRequest) GetUpdatedAt() time.Time {
  5466. if p == nil || p.UpdatedAt == nil {
  5467. return time.Time{}
  5468. }
  5469. return *p.UpdatedAt
  5470. }
  5471. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  5472. func (p *PullRequest) GetURL() string {
  5473. if p == nil || p.URL == nil {
  5474. return ""
  5475. }
  5476. return *p.URL
  5477. }
  5478. // GetUser returns the User field.
  5479. func (p *PullRequest) GetUser() *User {
  5480. if p == nil {
  5481. return nil
  5482. }
  5483. return p.User
  5484. }
  5485. // GetLabel returns the Label field if it's non-nil, zero value otherwise.
  5486. func (p *PullRequestBranch) GetLabel() string {
  5487. if p == nil || p.Label == nil {
  5488. return ""
  5489. }
  5490. return *p.Label
  5491. }
  5492. // GetRef returns the Ref field if it's non-nil, zero value otherwise.
  5493. func (p *PullRequestBranch) GetRef() string {
  5494. if p == nil || p.Ref == nil {
  5495. return ""
  5496. }
  5497. return *p.Ref
  5498. }
  5499. // GetRepo returns the Repo field.
  5500. func (p *PullRequestBranch) GetRepo() *Repository {
  5501. if p == nil {
  5502. return nil
  5503. }
  5504. return p.Repo
  5505. }
  5506. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  5507. func (p *PullRequestBranch) GetSHA() string {
  5508. if p == nil || p.SHA == nil {
  5509. return ""
  5510. }
  5511. return *p.SHA
  5512. }
  5513. // GetUser returns the User field.
  5514. func (p *PullRequestBranch) GetUser() *User {
  5515. if p == nil {
  5516. return nil
  5517. }
  5518. return p.User
  5519. }
  5520. // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise.
  5521. func (p *PullRequestComment) GetAuthorAssociation() string {
  5522. if p == nil || p.AuthorAssociation == nil {
  5523. return ""
  5524. }
  5525. return *p.AuthorAssociation
  5526. }
  5527. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  5528. func (p *PullRequestComment) GetBody() string {
  5529. if p == nil || p.Body == nil {
  5530. return ""
  5531. }
  5532. return *p.Body
  5533. }
  5534. // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise.
  5535. func (p *PullRequestComment) GetCommitID() string {
  5536. if p == nil || p.CommitID == nil {
  5537. return ""
  5538. }
  5539. return *p.CommitID
  5540. }
  5541. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  5542. func (p *PullRequestComment) GetCreatedAt() time.Time {
  5543. if p == nil || p.CreatedAt == nil {
  5544. return time.Time{}
  5545. }
  5546. return *p.CreatedAt
  5547. }
  5548. // GetDiffHunk returns the DiffHunk field if it's non-nil, zero value otherwise.
  5549. func (p *PullRequestComment) GetDiffHunk() string {
  5550. if p == nil || p.DiffHunk == nil {
  5551. return ""
  5552. }
  5553. return *p.DiffHunk
  5554. }
  5555. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  5556. func (p *PullRequestComment) GetHTMLURL() string {
  5557. if p == nil || p.HTMLURL == nil {
  5558. return ""
  5559. }
  5560. return *p.HTMLURL
  5561. }
  5562. // GetID returns the ID field if it's non-nil, zero value otherwise.
  5563. func (p *PullRequestComment) GetID() int64 {
  5564. if p == nil || p.ID == nil {
  5565. return 0
  5566. }
  5567. return *p.ID
  5568. }
  5569. // GetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise.
  5570. func (p *PullRequestComment) GetInReplyTo() int64 {
  5571. if p == nil || p.InReplyTo == nil {
  5572. return 0
  5573. }
  5574. return *p.InReplyTo
  5575. }
  5576. // GetOriginalCommitID returns the OriginalCommitID field if it's non-nil, zero value otherwise.
  5577. func (p *PullRequestComment) GetOriginalCommitID() string {
  5578. if p == nil || p.OriginalCommitID == nil {
  5579. return ""
  5580. }
  5581. return *p.OriginalCommitID
  5582. }
  5583. // GetOriginalPosition returns the OriginalPosition field if it's non-nil, zero value otherwise.
  5584. func (p *PullRequestComment) GetOriginalPosition() int {
  5585. if p == nil || p.OriginalPosition == nil {
  5586. return 0
  5587. }
  5588. return *p.OriginalPosition
  5589. }
  5590. // GetPath returns the Path field if it's non-nil, zero value otherwise.
  5591. func (p *PullRequestComment) GetPath() string {
  5592. if p == nil || p.Path == nil {
  5593. return ""
  5594. }
  5595. return *p.Path
  5596. }
  5597. // GetPosition returns the Position field if it's non-nil, zero value otherwise.
  5598. func (p *PullRequestComment) GetPosition() int {
  5599. if p == nil || p.Position == nil {
  5600. return 0
  5601. }
  5602. return *p.Position
  5603. }
  5604. // GetPullRequestReviewID returns the PullRequestReviewID field if it's non-nil, zero value otherwise.
  5605. func (p *PullRequestComment) GetPullRequestReviewID() int64 {
  5606. if p == nil || p.PullRequestReviewID == nil {
  5607. return 0
  5608. }
  5609. return *p.PullRequestReviewID
  5610. }
  5611. // GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise.
  5612. func (p *PullRequestComment) GetPullRequestURL() string {
  5613. if p == nil || p.PullRequestURL == nil {
  5614. return ""
  5615. }
  5616. return *p.PullRequestURL
  5617. }
  5618. // GetReactions returns the Reactions field.
  5619. func (p *PullRequestComment) GetReactions() *Reactions {
  5620. if p == nil {
  5621. return nil
  5622. }
  5623. return p.Reactions
  5624. }
  5625. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  5626. func (p *PullRequestComment) GetUpdatedAt() time.Time {
  5627. if p == nil || p.UpdatedAt == nil {
  5628. return time.Time{}
  5629. }
  5630. return *p.UpdatedAt
  5631. }
  5632. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  5633. func (p *PullRequestComment) GetURL() string {
  5634. if p == nil || p.URL == nil {
  5635. return ""
  5636. }
  5637. return *p.URL
  5638. }
  5639. // GetUser returns the User field.
  5640. func (p *PullRequestComment) GetUser() *User {
  5641. if p == nil {
  5642. return nil
  5643. }
  5644. return p.User
  5645. }
  5646. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  5647. func (p *PullRequestEvent) GetAction() string {
  5648. if p == nil || p.Action == nil {
  5649. return ""
  5650. }
  5651. return *p.Action
  5652. }
  5653. // GetChanges returns the Changes field.
  5654. func (p *PullRequestEvent) GetChanges() *EditChange {
  5655. if p == nil {
  5656. return nil
  5657. }
  5658. return p.Changes
  5659. }
  5660. // GetInstallation returns the Installation field.
  5661. func (p *PullRequestEvent) GetInstallation() *Installation {
  5662. if p == nil {
  5663. return nil
  5664. }
  5665. return p.Installation
  5666. }
  5667. // GetLabel returns the Label field.
  5668. func (p *PullRequestEvent) GetLabel() *Label {
  5669. if p == nil {
  5670. return nil
  5671. }
  5672. return p.Label
  5673. }
  5674. // GetNumber returns the Number field if it's non-nil, zero value otherwise.
  5675. func (p *PullRequestEvent) GetNumber() int {
  5676. if p == nil || p.Number == nil {
  5677. return 0
  5678. }
  5679. return *p.Number
  5680. }
  5681. // GetPullRequest returns the PullRequest field.
  5682. func (p *PullRequestEvent) GetPullRequest() *PullRequest {
  5683. if p == nil {
  5684. return nil
  5685. }
  5686. return p.PullRequest
  5687. }
  5688. // GetRepo returns the Repo field.
  5689. func (p *PullRequestEvent) GetRepo() *Repository {
  5690. if p == nil {
  5691. return nil
  5692. }
  5693. return p.Repo
  5694. }
  5695. // GetRequestedReviewer returns the RequestedReviewer field.
  5696. func (p *PullRequestEvent) GetRequestedReviewer() *User {
  5697. if p == nil {
  5698. return nil
  5699. }
  5700. return p.RequestedReviewer
  5701. }
  5702. // GetSender returns the Sender field.
  5703. func (p *PullRequestEvent) GetSender() *User {
  5704. if p == nil {
  5705. return nil
  5706. }
  5707. return p.Sender
  5708. }
  5709. // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise.
  5710. func (p *PullRequestLinks) GetDiffURL() string {
  5711. if p == nil || p.DiffURL == nil {
  5712. return ""
  5713. }
  5714. return *p.DiffURL
  5715. }
  5716. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  5717. func (p *PullRequestLinks) GetHTMLURL() string {
  5718. if p == nil || p.HTMLURL == nil {
  5719. return ""
  5720. }
  5721. return *p.HTMLURL
  5722. }
  5723. // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise.
  5724. func (p *PullRequestLinks) GetPatchURL() string {
  5725. if p == nil || p.PatchURL == nil {
  5726. return ""
  5727. }
  5728. return *p.PatchURL
  5729. }
  5730. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  5731. func (p *PullRequestLinks) GetURL() string {
  5732. if p == nil || p.URL == nil {
  5733. return ""
  5734. }
  5735. return *p.URL
  5736. }
  5737. // GetMerged returns the Merged field if it's non-nil, zero value otherwise.
  5738. func (p *PullRequestMergeResult) GetMerged() bool {
  5739. if p == nil || p.Merged == nil {
  5740. return false
  5741. }
  5742. return *p.Merged
  5743. }
  5744. // GetMessage returns the Message field if it's non-nil, zero value otherwise.
  5745. func (p *PullRequestMergeResult) GetMessage() string {
  5746. if p == nil || p.Message == nil {
  5747. return ""
  5748. }
  5749. return *p.Message
  5750. }
  5751. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  5752. func (p *PullRequestMergeResult) GetSHA() string {
  5753. if p == nil || p.SHA == nil {
  5754. return ""
  5755. }
  5756. return *p.SHA
  5757. }
  5758. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  5759. func (p *PullRequestReview) GetBody() string {
  5760. if p == nil || p.Body == nil {
  5761. return ""
  5762. }
  5763. return *p.Body
  5764. }
  5765. // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise.
  5766. func (p *PullRequestReview) GetCommitID() string {
  5767. if p == nil || p.CommitID == nil {
  5768. return ""
  5769. }
  5770. return *p.CommitID
  5771. }
  5772. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  5773. func (p *PullRequestReview) GetHTMLURL() string {
  5774. if p == nil || p.HTMLURL == nil {
  5775. return ""
  5776. }
  5777. return *p.HTMLURL
  5778. }
  5779. // GetID returns the ID field if it's non-nil, zero value otherwise.
  5780. func (p *PullRequestReview) GetID() int64 {
  5781. if p == nil || p.ID == nil {
  5782. return 0
  5783. }
  5784. return *p.ID
  5785. }
  5786. // GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise.
  5787. func (p *PullRequestReview) GetPullRequestURL() string {
  5788. if p == nil || p.PullRequestURL == nil {
  5789. return ""
  5790. }
  5791. return *p.PullRequestURL
  5792. }
  5793. // GetState returns the State field if it's non-nil, zero value otherwise.
  5794. func (p *PullRequestReview) GetState() string {
  5795. if p == nil || p.State == nil {
  5796. return ""
  5797. }
  5798. return *p.State
  5799. }
  5800. // GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise.
  5801. func (p *PullRequestReview) GetSubmittedAt() time.Time {
  5802. if p == nil || p.SubmittedAt == nil {
  5803. return time.Time{}
  5804. }
  5805. return *p.SubmittedAt
  5806. }
  5807. // GetUser returns the User field.
  5808. func (p *PullRequestReview) GetUser() *User {
  5809. if p == nil {
  5810. return nil
  5811. }
  5812. return p.User
  5813. }
  5814. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  5815. func (p *PullRequestReviewCommentEvent) GetAction() string {
  5816. if p == nil || p.Action == nil {
  5817. return ""
  5818. }
  5819. return *p.Action
  5820. }
  5821. // GetChanges returns the Changes field.
  5822. func (p *PullRequestReviewCommentEvent) GetChanges() *EditChange {
  5823. if p == nil {
  5824. return nil
  5825. }
  5826. return p.Changes
  5827. }
  5828. // GetComment returns the Comment field.
  5829. func (p *PullRequestReviewCommentEvent) GetComment() *PullRequestComment {
  5830. if p == nil {
  5831. return nil
  5832. }
  5833. return p.Comment
  5834. }
  5835. // GetInstallation returns the Installation field.
  5836. func (p *PullRequestReviewCommentEvent) GetInstallation() *Installation {
  5837. if p == nil {
  5838. return nil
  5839. }
  5840. return p.Installation
  5841. }
  5842. // GetPullRequest returns the PullRequest field.
  5843. func (p *PullRequestReviewCommentEvent) GetPullRequest() *PullRequest {
  5844. if p == nil {
  5845. return nil
  5846. }
  5847. return p.PullRequest
  5848. }
  5849. // GetRepo returns the Repo field.
  5850. func (p *PullRequestReviewCommentEvent) GetRepo() *Repository {
  5851. if p == nil {
  5852. return nil
  5853. }
  5854. return p.Repo
  5855. }
  5856. // GetSender returns the Sender field.
  5857. func (p *PullRequestReviewCommentEvent) GetSender() *User {
  5858. if p == nil {
  5859. return nil
  5860. }
  5861. return p.Sender
  5862. }
  5863. // GetMessage returns the Message field if it's non-nil, zero value otherwise.
  5864. func (p *PullRequestReviewDismissalRequest) GetMessage() string {
  5865. if p == nil || p.Message == nil {
  5866. return ""
  5867. }
  5868. return *p.Message
  5869. }
  5870. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  5871. func (p *PullRequestReviewEvent) GetAction() string {
  5872. if p == nil || p.Action == nil {
  5873. return ""
  5874. }
  5875. return *p.Action
  5876. }
  5877. // GetInstallation returns the Installation field.
  5878. func (p *PullRequestReviewEvent) GetInstallation() *Installation {
  5879. if p == nil {
  5880. return nil
  5881. }
  5882. return p.Installation
  5883. }
  5884. // GetOrganization returns the Organization field.
  5885. func (p *PullRequestReviewEvent) GetOrganization() *Organization {
  5886. if p == nil {
  5887. return nil
  5888. }
  5889. return p.Organization
  5890. }
  5891. // GetPullRequest returns the PullRequest field.
  5892. func (p *PullRequestReviewEvent) GetPullRequest() *PullRequest {
  5893. if p == nil {
  5894. return nil
  5895. }
  5896. return p.PullRequest
  5897. }
  5898. // GetRepo returns the Repo field.
  5899. func (p *PullRequestReviewEvent) GetRepo() *Repository {
  5900. if p == nil {
  5901. return nil
  5902. }
  5903. return p.Repo
  5904. }
  5905. // GetReview returns the Review field.
  5906. func (p *PullRequestReviewEvent) GetReview() *PullRequestReview {
  5907. if p == nil {
  5908. return nil
  5909. }
  5910. return p.Review
  5911. }
  5912. // GetSender returns the Sender field.
  5913. func (p *PullRequestReviewEvent) GetSender() *User {
  5914. if p == nil {
  5915. return nil
  5916. }
  5917. return p.Sender
  5918. }
  5919. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  5920. func (p *PullRequestReviewRequest) GetBody() string {
  5921. if p == nil || p.Body == nil {
  5922. return ""
  5923. }
  5924. return *p.Body
  5925. }
  5926. // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise.
  5927. func (p *PullRequestReviewRequest) GetCommitID() string {
  5928. if p == nil || p.CommitID == nil {
  5929. return ""
  5930. }
  5931. return *p.CommitID
  5932. }
  5933. // GetEvent returns the Event field if it's non-nil, zero value otherwise.
  5934. func (p *PullRequestReviewRequest) GetEvent() string {
  5935. if p == nil || p.Event == nil {
  5936. return ""
  5937. }
  5938. return *p.Event
  5939. }
  5940. // GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field.
  5941. func (p *PullRequestReviewsEnforcementRequest) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest {
  5942. if p == nil {
  5943. return nil
  5944. }
  5945. return p.DismissalRestrictionsRequest
  5946. }
  5947. // GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field.
  5948. func (p *PullRequestReviewsEnforcementUpdate) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest {
  5949. if p == nil {
  5950. return nil
  5951. }
  5952. return p.DismissalRestrictionsRequest
  5953. }
  5954. // GetDismissStaleReviews returns the DismissStaleReviews field if it's non-nil, zero value otherwise.
  5955. func (p *PullRequestReviewsEnforcementUpdate) GetDismissStaleReviews() bool {
  5956. if p == nil || p.DismissStaleReviews == nil {
  5957. return false
  5958. }
  5959. return *p.DismissStaleReviews
  5960. }
  5961. // GetMergablePulls returns the MergablePulls field if it's non-nil, zero value otherwise.
  5962. func (p *PullStats) GetMergablePulls() int {
  5963. if p == nil || p.MergablePulls == nil {
  5964. return 0
  5965. }
  5966. return *p.MergablePulls
  5967. }
  5968. // GetMergedPulls returns the MergedPulls field if it's non-nil, zero value otherwise.
  5969. func (p *PullStats) GetMergedPulls() int {
  5970. if p == nil || p.MergedPulls == nil {
  5971. return 0
  5972. }
  5973. return *p.MergedPulls
  5974. }
  5975. // GetTotalPulls returns the TotalPulls field if it's non-nil, zero value otherwise.
  5976. func (p *PullStats) GetTotalPulls() int {
  5977. if p == nil || p.TotalPulls == nil {
  5978. return 0
  5979. }
  5980. return *p.TotalPulls
  5981. }
  5982. // GetUnmergablePulls returns the UnmergablePulls field if it's non-nil, zero value otherwise.
  5983. func (p *PullStats) GetUnmergablePulls() int {
  5984. if p == nil || p.UnmergablePulls == nil {
  5985. return 0
  5986. }
  5987. return *p.UnmergablePulls
  5988. }
  5989. // GetCommits returns the Commits field if it's non-nil, zero value otherwise.
  5990. func (p *PunchCard) GetCommits() int {
  5991. if p == nil || p.Commits == nil {
  5992. return 0
  5993. }
  5994. return *p.Commits
  5995. }
  5996. // GetDay returns the Day field if it's non-nil, zero value otherwise.
  5997. func (p *PunchCard) GetDay() int {
  5998. if p == nil || p.Day == nil {
  5999. return 0
  6000. }
  6001. return *p.Day
  6002. }
  6003. // GetHour returns the Hour field if it's non-nil, zero value otherwise.
  6004. func (p *PunchCard) GetHour() int {
  6005. if p == nil || p.Hour == nil {
  6006. return 0
  6007. }
  6008. return *p.Hour
  6009. }
  6010. // GetAfter returns the After field if it's non-nil, zero value otherwise.
  6011. func (p *PushEvent) GetAfter() string {
  6012. if p == nil || p.After == nil {
  6013. return ""
  6014. }
  6015. return *p.After
  6016. }
  6017. // GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise.
  6018. func (p *PushEvent) GetBaseRef() string {
  6019. if p == nil || p.BaseRef == nil {
  6020. return ""
  6021. }
  6022. return *p.BaseRef
  6023. }
  6024. // GetBefore returns the Before field if it's non-nil, zero value otherwise.
  6025. func (p *PushEvent) GetBefore() string {
  6026. if p == nil || p.Before == nil {
  6027. return ""
  6028. }
  6029. return *p.Before
  6030. }
  6031. // GetCompare returns the Compare field if it's non-nil, zero value otherwise.
  6032. func (p *PushEvent) GetCompare() string {
  6033. if p == nil || p.Compare == nil {
  6034. return ""
  6035. }
  6036. return *p.Compare
  6037. }
  6038. // GetCreated returns the Created field if it's non-nil, zero value otherwise.
  6039. func (p *PushEvent) GetCreated() bool {
  6040. if p == nil || p.Created == nil {
  6041. return false
  6042. }
  6043. return *p.Created
  6044. }
  6045. // GetDeleted returns the Deleted field if it's non-nil, zero value otherwise.
  6046. func (p *PushEvent) GetDeleted() bool {
  6047. if p == nil || p.Deleted == nil {
  6048. return false
  6049. }
  6050. return *p.Deleted
  6051. }
  6052. // GetDistinctSize returns the DistinctSize field if it's non-nil, zero value otherwise.
  6053. func (p *PushEvent) GetDistinctSize() int {
  6054. if p == nil || p.DistinctSize == nil {
  6055. return 0
  6056. }
  6057. return *p.DistinctSize
  6058. }
  6059. // GetForced returns the Forced field if it's non-nil, zero value otherwise.
  6060. func (p *PushEvent) GetForced() bool {
  6061. if p == nil || p.Forced == nil {
  6062. return false
  6063. }
  6064. return *p.Forced
  6065. }
  6066. // GetHead returns the Head field if it's non-nil, zero value otherwise.
  6067. func (p *PushEvent) GetHead() string {
  6068. if p == nil || p.Head == nil {
  6069. return ""
  6070. }
  6071. return *p.Head
  6072. }
  6073. // GetHeadCommit returns the HeadCommit field.
  6074. func (p *PushEvent) GetHeadCommit() *PushEventCommit {
  6075. if p == nil {
  6076. return nil
  6077. }
  6078. return p.HeadCommit
  6079. }
  6080. // GetInstallation returns the Installation field.
  6081. func (p *PushEvent) GetInstallation() *Installation {
  6082. if p == nil {
  6083. return nil
  6084. }
  6085. return p.Installation
  6086. }
  6087. // GetPusher returns the Pusher field.
  6088. func (p *PushEvent) GetPusher() *User {
  6089. if p == nil {
  6090. return nil
  6091. }
  6092. return p.Pusher
  6093. }
  6094. // GetPushID returns the PushID field if it's non-nil, zero value otherwise.
  6095. func (p *PushEvent) GetPushID() int64 {
  6096. if p == nil || p.PushID == nil {
  6097. return 0
  6098. }
  6099. return *p.PushID
  6100. }
  6101. // GetRef returns the Ref field if it's non-nil, zero value otherwise.
  6102. func (p *PushEvent) GetRef() string {
  6103. if p == nil || p.Ref == nil {
  6104. return ""
  6105. }
  6106. return *p.Ref
  6107. }
  6108. // GetRepo returns the Repo field.
  6109. func (p *PushEvent) GetRepo() *PushEventRepository {
  6110. if p == nil {
  6111. return nil
  6112. }
  6113. return p.Repo
  6114. }
  6115. // GetSender returns the Sender field.
  6116. func (p *PushEvent) GetSender() *User {
  6117. if p == nil {
  6118. return nil
  6119. }
  6120. return p.Sender
  6121. }
  6122. // GetSize returns the Size field if it's non-nil, zero value otherwise.
  6123. func (p *PushEvent) GetSize() int {
  6124. if p == nil || p.Size == nil {
  6125. return 0
  6126. }
  6127. return *p.Size
  6128. }
  6129. // GetAuthor returns the Author field.
  6130. func (p *PushEventCommit) GetAuthor() *CommitAuthor {
  6131. if p == nil {
  6132. return nil
  6133. }
  6134. return p.Author
  6135. }
  6136. // GetCommitter returns the Committer field.
  6137. func (p *PushEventCommit) GetCommitter() *CommitAuthor {
  6138. if p == nil {
  6139. return nil
  6140. }
  6141. return p.Committer
  6142. }
  6143. // GetDistinct returns the Distinct field if it's non-nil, zero value otherwise.
  6144. func (p *PushEventCommit) GetDistinct() bool {
  6145. if p == nil || p.Distinct == nil {
  6146. return false
  6147. }
  6148. return *p.Distinct
  6149. }
  6150. // GetID returns the ID field if it's non-nil, zero value otherwise.
  6151. func (p *PushEventCommit) GetID() string {
  6152. if p == nil || p.ID == nil {
  6153. return ""
  6154. }
  6155. return *p.ID
  6156. }
  6157. // GetMessage returns the Message field if it's non-nil, zero value otherwise.
  6158. func (p *PushEventCommit) GetMessage() string {
  6159. if p == nil || p.Message == nil {
  6160. return ""
  6161. }
  6162. return *p.Message
  6163. }
  6164. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  6165. func (p *PushEventCommit) GetSHA() string {
  6166. if p == nil || p.SHA == nil {
  6167. return ""
  6168. }
  6169. return *p.SHA
  6170. }
  6171. // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise.
  6172. func (p *PushEventCommit) GetTimestamp() Timestamp {
  6173. if p == nil || p.Timestamp == nil {
  6174. return Timestamp{}
  6175. }
  6176. return *p.Timestamp
  6177. }
  6178. // GetTreeID returns the TreeID field if it's non-nil, zero value otherwise.
  6179. func (p *PushEventCommit) GetTreeID() string {
  6180. if p == nil || p.TreeID == nil {
  6181. return ""
  6182. }
  6183. return *p.TreeID
  6184. }
  6185. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  6186. func (p *PushEventCommit) GetURL() string {
  6187. if p == nil || p.URL == nil {
  6188. return ""
  6189. }
  6190. return *p.URL
  6191. }
  6192. // GetEmail returns the Email field if it's non-nil, zero value otherwise.
  6193. func (p *PushEventRepoOwner) GetEmail() string {
  6194. if p == nil || p.Email == nil {
  6195. return ""
  6196. }
  6197. return *p.Email
  6198. }
  6199. // GetName returns the Name field if it's non-nil, zero value otherwise.
  6200. func (p *PushEventRepoOwner) GetName() string {
  6201. if p == nil || p.Name == nil {
  6202. return ""
  6203. }
  6204. return *p.Name
  6205. }
  6206. // GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise.
  6207. func (p *PushEventRepository) GetArchiveURL() string {
  6208. if p == nil || p.ArchiveURL == nil {
  6209. return ""
  6210. }
  6211. return *p.ArchiveURL
  6212. }
  6213. // GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise.
  6214. func (p *PushEventRepository) GetCloneURL() string {
  6215. if p == nil || p.CloneURL == nil {
  6216. return ""
  6217. }
  6218. return *p.CloneURL
  6219. }
  6220. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  6221. func (p *PushEventRepository) GetCreatedAt() Timestamp {
  6222. if p == nil || p.CreatedAt == nil {
  6223. return Timestamp{}
  6224. }
  6225. return *p.CreatedAt
  6226. }
  6227. // GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise.
  6228. func (p *PushEventRepository) GetDefaultBranch() string {
  6229. if p == nil || p.DefaultBranch == nil {
  6230. return ""
  6231. }
  6232. return *p.DefaultBranch
  6233. }
  6234. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  6235. func (p *PushEventRepository) GetDescription() string {
  6236. if p == nil || p.Description == nil {
  6237. return ""
  6238. }
  6239. return *p.Description
  6240. }
  6241. // GetFork returns the Fork field if it's non-nil, zero value otherwise.
  6242. func (p *PushEventRepository) GetFork() bool {
  6243. if p == nil || p.Fork == nil {
  6244. return false
  6245. }
  6246. return *p.Fork
  6247. }
  6248. // GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise.
  6249. func (p *PushEventRepository) GetForksCount() int {
  6250. if p == nil || p.ForksCount == nil {
  6251. return 0
  6252. }
  6253. return *p.ForksCount
  6254. }
  6255. // GetFullName returns the FullName field if it's non-nil, zero value otherwise.
  6256. func (p *PushEventRepository) GetFullName() string {
  6257. if p == nil || p.FullName == nil {
  6258. return ""
  6259. }
  6260. return *p.FullName
  6261. }
  6262. // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise.
  6263. func (p *PushEventRepository) GetGitURL() string {
  6264. if p == nil || p.GitURL == nil {
  6265. return ""
  6266. }
  6267. return *p.GitURL
  6268. }
  6269. // GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise.
  6270. func (p *PushEventRepository) GetHasDownloads() bool {
  6271. if p == nil || p.HasDownloads == nil {
  6272. return false
  6273. }
  6274. return *p.HasDownloads
  6275. }
  6276. // GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise.
  6277. func (p *PushEventRepository) GetHasIssues() bool {
  6278. if p == nil || p.HasIssues == nil {
  6279. return false
  6280. }
  6281. return *p.HasIssues
  6282. }
  6283. // GetHasPages returns the HasPages field if it's non-nil, zero value otherwise.
  6284. func (p *PushEventRepository) GetHasPages() bool {
  6285. if p == nil || p.HasPages == nil {
  6286. return false
  6287. }
  6288. return *p.HasPages
  6289. }
  6290. // GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise.
  6291. func (p *PushEventRepository) GetHasWiki() bool {
  6292. if p == nil || p.HasWiki == nil {
  6293. return false
  6294. }
  6295. return *p.HasWiki
  6296. }
  6297. // GetHomepage returns the Homepage field if it's non-nil, zero value otherwise.
  6298. func (p *PushEventRepository) GetHomepage() string {
  6299. if p == nil || p.Homepage == nil {
  6300. return ""
  6301. }
  6302. return *p.Homepage
  6303. }
  6304. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  6305. func (p *PushEventRepository) GetHTMLURL() string {
  6306. if p == nil || p.HTMLURL == nil {
  6307. return ""
  6308. }
  6309. return *p.HTMLURL
  6310. }
  6311. // GetID returns the ID field if it's non-nil, zero value otherwise.
  6312. func (p *PushEventRepository) GetID() int64 {
  6313. if p == nil || p.ID == nil {
  6314. return 0
  6315. }
  6316. return *p.ID
  6317. }
  6318. // GetLanguage returns the Language field if it's non-nil, zero value otherwise.
  6319. func (p *PushEventRepository) GetLanguage() string {
  6320. if p == nil || p.Language == nil {
  6321. return ""
  6322. }
  6323. return *p.Language
  6324. }
  6325. // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise.
  6326. func (p *PushEventRepository) GetMasterBranch() string {
  6327. if p == nil || p.MasterBranch == nil {
  6328. return ""
  6329. }
  6330. return *p.MasterBranch
  6331. }
  6332. // GetName returns the Name field if it's non-nil, zero value otherwise.
  6333. func (p *PushEventRepository) GetName() string {
  6334. if p == nil || p.Name == nil {
  6335. return ""
  6336. }
  6337. return *p.Name
  6338. }
  6339. // GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise.
  6340. func (p *PushEventRepository) GetOpenIssuesCount() int {
  6341. if p == nil || p.OpenIssuesCount == nil {
  6342. return 0
  6343. }
  6344. return *p.OpenIssuesCount
  6345. }
  6346. // GetOrganization returns the Organization field if it's non-nil, zero value otherwise.
  6347. func (p *PushEventRepository) GetOrganization() string {
  6348. if p == nil || p.Organization == nil {
  6349. return ""
  6350. }
  6351. return *p.Organization
  6352. }
  6353. // GetOwner returns the Owner field.
  6354. func (p *PushEventRepository) GetOwner() *PushEventRepoOwner {
  6355. if p == nil {
  6356. return nil
  6357. }
  6358. return p.Owner
  6359. }
  6360. // GetPrivate returns the Private field if it's non-nil, zero value otherwise.
  6361. func (p *PushEventRepository) GetPrivate() bool {
  6362. if p == nil || p.Private == nil {
  6363. return false
  6364. }
  6365. return *p.Private
  6366. }
  6367. // GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise.
  6368. func (p *PushEventRepository) GetPushedAt() Timestamp {
  6369. if p == nil || p.PushedAt == nil {
  6370. return Timestamp{}
  6371. }
  6372. return *p.PushedAt
  6373. }
  6374. // GetSize returns the Size field if it's non-nil, zero value otherwise.
  6375. func (p *PushEventRepository) GetSize() int {
  6376. if p == nil || p.Size == nil {
  6377. return 0
  6378. }
  6379. return *p.Size
  6380. }
  6381. // GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise.
  6382. func (p *PushEventRepository) GetSSHURL() string {
  6383. if p == nil || p.SSHURL == nil {
  6384. return ""
  6385. }
  6386. return *p.SSHURL
  6387. }
  6388. // GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise.
  6389. func (p *PushEventRepository) GetStargazersCount() int {
  6390. if p == nil || p.StargazersCount == nil {
  6391. return 0
  6392. }
  6393. return *p.StargazersCount
  6394. }
  6395. // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise.
  6396. func (p *PushEventRepository) GetStatusesURL() string {
  6397. if p == nil || p.StatusesURL == nil {
  6398. return ""
  6399. }
  6400. return *p.StatusesURL
  6401. }
  6402. // GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise.
  6403. func (p *PushEventRepository) GetSVNURL() string {
  6404. if p == nil || p.SVNURL == nil {
  6405. return ""
  6406. }
  6407. return *p.SVNURL
  6408. }
  6409. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  6410. func (p *PushEventRepository) GetUpdatedAt() Timestamp {
  6411. if p == nil || p.UpdatedAt == nil {
  6412. return Timestamp{}
  6413. }
  6414. return *p.UpdatedAt
  6415. }
  6416. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  6417. func (p *PushEventRepository) GetURL() string {
  6418. if p == nil || p.URL == nil {
  6419. return ""
  6420. }
  6421. return *p.URL
  6422. }
  6423. // GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise.
  6424. func (p *PushEventRepository) GetWatchersCount() int {
  6425. if p == nil || p.WatchersCount == nil {
  6426. return 0
  6427. }
  6428. return *p.WatchersCount
  6429. }
  6430. // GetCore returns the Core field.
  6431. func (r *RateLimits) GetCore() *Rate {
  6432. if r == nil {
  6433. return nil
  6434. }
  6435. return r.Core
  6436. }
  6437. // GetSearch returns the Search field.
  6438. func (r *RateLimits) GetSearch() *Rate {
  6439. if r == nil {
  6440. return nil
  6441. }
  6442. return r.Search
  6443. }
  6444. // GetContent returns the Content field if it's non-nil, zero value otherwise.
  6445. func (r *Reaction) GetContent() string {
  6446. if r == nil || r.Content == nil {
  6447. return ""
  6448. }
  6449. return *r.Content
  6450. }
  6451. // GetID returns the ID field if it's non-nil, zero value otherwise.
  6452. func (r *Reaction) GetID() int64 {
  6453. if r == nil || r.ID == nil {
  6454. return 0
  6455. }
  6456. return *r.ID
  6457. }
  6458. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  6459. func (r *Reaction) GetNodeID() string {
  6460. if r == nil || r.NodeID == nil {
  6461. return ""
  6462. }
  6463. return *r.NodeID
  6464. }
  6465. // GetUser returns the User field.
  6466. func (r *Reaction) GetUser() *User {
  6467. if r == nil {
  6468. return nil
  6469. }
  6470. return r.User
  6471. }
  6472. // GetConfused returns the Confused field if it's non-nil, zero value otherwise.
  6473. func (r *Reactions) GetConfused() int {
  6474. if r == nil || r.Confused == nil {
  6475. return 0
  6476. }
  6477. return *r.Confused
  6478. }
  6479. // GetHeart returns the Heart field if it's non-nil, zero value otherwise.
  6480. func (r *Reactions) GetHeart() int {
  6481. if r == nil || r.Heart == nil {
  6482. return 0
  6483. }
  6484. return *r.Heart
  6485. }
  6486. // GetHooray returns the Hooray field if it's non-nil, zero value otherwise.
  6487. func (r *Reactions) GetHooray() int {
  6488. if r == nil || r.Hooray == nil {
  6489. return 0
  6490. }
  6491. return *r.Hooray
  6492. }
  6493. // GetLaugh returns the Laugh field if it's non-nil, zero value otherwise.
  6494. func (r *Reactions) GetLaugh() int {
  6495. if r == nil || r.Laugh == nil {
  6496. return 0
  6497. }
  6498. return *r.Laugh
  6499. }
  6500. // GetMinusOne returns the MinusOne field if it's non-nil, zero value otherwise.
  6501. func (r *Reactions) GetMinusOne() int {
  6502. if r == nil || r.MinusOne == nil {
  6503. return 0
  6504. }
  6505. return *r.MinusOne
  6506. }
  6507. // GetPlusOne returns the PlusOne field if it's non-nil, zero value otherwise.
  6508. func (r *Reactions) GetPlusOne() int {
  6509. if r == nil || r.PlusOne == nil {
  6510. return 0
  6511. }
  6512. return *r.PlusOne
  6513. }
  6514. // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.
  6515. func (r *Reactions) GetTotalCount() int {
  6516. if r == nil || r.TotalCount == nil {
  6517. return 0
  6518. }
  6519. return *r.TotalCount
  6520. }
  6521. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  6522. func (r *Reactions) GetURL() string {
  6523. if r == nil || r.URL == nil {
  6524. return ""
  6525. }
  6526. return *r.URL
  6527. }
  6528. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  6529. func (r *Reference) GetNodeID() string {
  6530. if r == nil || r.NodeID == nil {
  6531. return ""
  6532. }
  6533. return *r.NodeID
  6534. }
  6535. // GetObject returns the Object field.
  6536. func (r *Reference) GetObject() *GitObject {
  6537. if r == nil {
  6538. return nil
  6539. }
  6540. return r.Object
  6541. }
  6542. // GetRef returns the Ref field if it's non-nil, zero value otherwise.
  6543. func (r *Reference) GetRef() string {
  6544. if r == nil || r.Ref == nil {
  6545. return ""
  6546. }
  6547. return *r.Ref
  6548. }
  6549. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  6550. func (r *Reference) GetURL() string {
  6551. if r == nil || r.URL == nil {
  6552. return ""
  6553. }
  6554. return *r.URL
  6555. }
  6556. // GetBrowserDownloadURL returns the BrowserDownloadURL field if it's non-nil, zero value otherwise.
  6557. func (r *ReleaseAsset) GetBrowserDownloadURL() string {
  6558. if r == nil || r.BrowserDownloadURL == nil {
  6559. return ""
  6560. }
  6561. return *r.BrowserDownloadURL
  6562. }
  6563. // GetContentType returns the ContentType field if it's non-nil, zero value otherwise.
  6564. func (r *ReleaseAsset) GetContentType() string {
  6565. if r == nil || r.ContentType == nil {
  6566. return ""
  6567. }
  6568. return *r.ContentType
  6569. }
  6570. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  6571. func (r *ReleaseAsset) GetCreatedAt() Timestamp {
  6572. if r == nil || r.CreatedAt == nil {
  6573. return Timestamp{}
  6574. }
  6575. return *r.CreatedAt
  6576. }
  6577. // GetDownloadCount returns the DownloadCount field if it's non-nil, zero value otherwise.
  6578. func (r *ReleaseAsset) GetDownloadCount() int {
  6579. if r == nil || r.DownloadCount == nil {
  6580. return 0
  6581. }
  6582. return *r.DownloadCount
  6583. }
  6584. // GetID returns the ID field if it's non-nil, zero value otherwise.
  6585. func (r *ReleaseAsset) GetID() int64 {
  6586. if r == nil || r.ID == nil {
  6587. return 0
  6588. }
  6589. return *r.ID
  6590. }
  6591. // GetLabel returns the Label field if it's non-nil, zero value otherwise.
  6592. func (r *ReleaseAsset) GetLabel() string {
  6593. if r == nil || r.Label == nil {
  6594. return ""
  6595. }
  6596. return *r.Label
  6597. }
  6598. // GetName returns the Name field if it's non-nil, zero value otherwise.
  6599. func (r *ReleaseAsset) GetName() string {
  6600. if r == nil || r.Name == nil {
  6601. return ""
  6602. }
  6603. return *r.Name
  6604. }
  6605. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  6606. func (r *ReleaseAsset) GetNodeID() string {
  6607. if r == nil || r.NodeID == nil {
  6608. return ""
  6609. }
  6610. return *r.NodeID
  6611. }
  6612. // GetSize returns the Size field if it's non-nil, zero value otherwise.
  6613. func (r *ReleaseAsset) GetSize() int {
  6614. if r == nil || r.Size == nil {
  6615. return 0
  6616. }
  6617. return *r.Size
  6618. }
  6619. // GetState returns the State field if it's non-nil, zero value otherwise.
  6620. func (r *ReleaseAsset) GetState() string {
  6621. if r == nil || r.State == nil {
  6622. return ""
  6623. }
  6624. return *r.State
  6625. }
  6626. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  6627. func (r *ReleaseAsset) GetUpdatedAt() Timestamp {
  6628. if r == nil || r.UpdatedAt == nil {
  6629. return Timestamp{}
  6630. }
  6631. return *r.UpdatedAt
  6632. }
  6633. // GetUploader returns the Uploader field.
  6634. func (r *ReleaseAsset) GetUploader() *User {
  6635. if r == nil {
  6636. return nil
  6637. }
  6638. return r.Uploader
  6639. }
  6640. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  6641. func (r *ReleaseAsset) GetURL() string {
  6642. if r == nil || r.URL == nil {
  6643. return ""
  6644. }
  6645. return *r.URL
  6646. }
  6647. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  6648. func (r *ReleaseEvent) GetAction() string {
  6649. if r == nil || r.Action == nil {
  6650. return ""
  6651. }
  6652. return *r.Action
  6653. }
  6654. // GetInstallation returns the Installation field.
  6655. func (r *ReleaseEvent) GetInstallation() *Installation {
  6656. if r == nil {
  6657. return nil
  6658. }
  6659. return r.Installation
  6660. }
  6661. // GetRelease returns the Release field.
  6662. func (r *ReleaseEvent) GetRelease() *RepositoryRelease {
  6663. if r == nil {
  6664. return nil
  6665. }
  6666. return r.Release
  6667. }
  6668. // GetRepo returns the Repo field.
  6669. func (r *ReleaseEvent) GetRepo() *Repository {
  6670. if r == nil {
  6671. return nil
  6672. }
  6673. return r.Repo
  6674. }
  6675. // GetSender returns the Sender field.
  6676. func (r *ReleaseEvent) GetSender() *User {
  6677. if r == nil {
  6678. return nil
  6679. }
  6680. return r.Sender
  6681. }
  6682. // GetFrom returns the From field if it's non-nil, zero value otherwise.
  6683. func (r *Rename) GetFrom() string {
  6684. if r == nil || r.From == nil {
  6685. return ""
  6686. }
  6687. return *r.From
  6688. }
  6689. // GetTo returns the To field if it's non-nil, zero value otherwise.
  6690. func (r *Rename) GetTo() string {
  6691. if r == nil || r.To == nil {
  6692. return ""
  6693. }
  6694. return *r.To
  6695. }
  6696. // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.
  6697. func (r *RepositoriesSearchResult) GetIncompleteResults() bool {
  6698. if r == nil || r.IncompleteResults == nil {
  6699. return false
  6700. }
  6701. return *r.IncompleteResults
  6702. }
  6703. // GetTotal returns the Total field if it's non-nil, zero value otherwise.
  6704. func (r *RepositoriesSearchResult) GetTotal() int {
  6705. if r == nil || r.Total == nil {
  6706. return 0
  6707. }
  6708. return *r.Total
  6709. }
  6710. // GetAllowMergeCommit returns the AllowMergeCommit field if it's non-nil, zero value otherwise.
  6711. func (r *Repository) GetAllowMergeCommit() bool {
  6712. if r == nil || r.AllowMergeCommit == nil {
  6713. return false
  6714. }
  6715. return *r.AllowMergeCommit
  6716. }
  6717. // GetAllowRebaseMerge returns the AllowRebaseMerge field if it's non-nil, zero value otherwise.
  6718. func (r *Repository) GetAllowRebaseMerge() bool {
  6719. if r == nil || r.AllowRebaseMerge == nil {
  6720. return false
  6721. }
  6722. return *r.AllowRebaseMerge
  6723. }
  6724. // GetAllowSquashMerge returns the AllowSquashMerge field if it's non-nil, zero value otherwise.
  6725. func (r *Repository) GetAllowSquashMerge() bool {
  6726. if r == nil || r.AllowSquashMerge == nil {
  6727. return false
  6728. }
  6729. return *r.AllowSquashMerge
  6730. }
  6731. // GetArchived returns the Archived field if it's non-nil, zero value otherwise.
  6732. func (r *Repository) GetArchived() bool {
  6733. if r == nil || r.Archived == nil {
  6734. return false
  6735. }
  6736. return *r.Archived
  6737. }
  6738. // GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise.
  6739. func (r *Repository) GetArchiveURL() string {
  6740. if r == nil || r.ArchiveURL == nil {
  6741. return ""
  6742. }
  6743. return *r.ArchiveURL
  6744. }
  6745. // GetAssigneesURL returns the AssigneesURL field if it's non-nil, zero value otherwise.
  6746. func (r *Repository) GetAssigneesURL() string {
  6747. if r == nil || r.AssigneesURL == nil {
  6748. return ""
  6749. }
  6750. return *r.AssigneesURL
  6751. }
  6752. // GetAutoInit returns the AutoInit field if it's non-nil, zero value otherwise.
  6753. func (r *Repository) GetAutoInit() bool {
  6754. if r == nil || r.AutoInit == nil {
  6755. return false
  6756. }
  6757. return *r.AutoInit
  6758. }
  6759. // GetBlobsURL returns the BlobsURL field if it's non-nil, zero value otherwise.
  6760. func (r *Repository) GetBlobsURL() string {
  6761. if r == nil || r.BlobsURL == nil {
  6762. return ""
  6763. }
  6764. return *r.BlobsURL
  6765. }
  6766. // GetBranchesURL returns the BranchesURL field if it's non-nil, zero value otherwise.
  6767. func (r *Repository) GetBranchesURL() string {
  6768. if r == nil || r.BranchesURL == nil {
  6769. return ""
  6770. }
  6771. return *r.BranchesURL
  6772. }
  6773. // GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise.
  6774. func (r *Repository) GetCloneURL() string {
  6775. if r == nil || r.CloneURL == nil {
  6776. return ""
  6777. }
  6778. return *r.CloneURL
  6779. }
  6780. // GetCodeOfConduct returns the CodeOfConduct field.
  6781. func (r *Repository) GetCodeOfConduct() *CodeOfConduct {
  6782. if r == nil {
  6783. return nil
  6784. }
  6785. return r.CodeOfConduct
  6786. }
  6787. // GetCollaboratorsURL returns the CollaboratorsURL field if it's non-nil, zero value otherwise.
  6788. func (r *Repository) GetCollaboratorsURL() string {
  6789. if r == nil || r.CollaboratorsURL == nil {
  6790. return ""
  6791. }
  6792. return *r.CollaboratorsURL
  6793. }
  6794. // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.
  6795. func (r *Repository) GetCommentsURL() string {
  6796. if r == nil || r.CommentsURL == nil {
  6797. return ""
  6798. }
  6799. return *r.CommentsURL
  6800. }
  6801. // GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise.
  6802. func (r *Repository) GetCommitsURL() string {
  6803. if r == nil || r.CommitsURL == nil {
  6804. return ""
  6805. }
  6806. return *r.CommitsURL
  6807. }
  6808. // GetCompareURL returns the CompareURL field if it's non-nil, zero value otherwise.
  6809. func (r *Repository) GetCompareURL() string {
  6810. if r == nil || r.CompareURL == nil {
  6811. return ""
  6812. }
  6813. return *r.CompareURL
  6814. }
  6815. // GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise.
  6816. func (r *Repository) GetContentsURL() string {
  6817. if r == nil || r.ContentsURL == nil {
  6818. return ""
  6819. }
  6820. return *r.ContentsURL
  6821. }
  6822. // GetContributorsURL returns the ContributorsURL field if it's non-nil, zero value otherwise.
  6823. func (r *Repository) GetContributorsURL() string {
  6824. if r == nil || r.ContributorsURL == nil {
  6825. return ""
  6826. }
  6827. return *r.ContributorsURL
  6828. }
  6829. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  6830. func (r *Repository) GetCreatedAt() Timestamp {
  6831. if r == nil || r.CreatedAt == nil {
  6832. return Timestamp{}
  6833. }
  6834. return *r.CreatedAt
  6835. }
  6836. // GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise.
  6837. func (r *Repository) GetDefaultBranch() string {
  6838. if r == nil || r.DefaultBranch == nil {
  6839. return ""
  6840. }
  6841. return *r.DefaultBranch
  6842. }
  6843. // GetDeploymentsURL returns the DeploymentsURL field if it's non-nil, zero value otherwise.
  6844. func (r *Repository) GetDeploymentsURL() string {
  6845. if r == nil || r.DeploymentsURL == nil {
  6846. return ""
  6847. }
  6848. return *r.DeploymentsURL
  6849. }
  6850. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  6851. func (r *Repository) GetDescription() string {
  6852. if r == nil || r.Description == nil {
  6853. return ""
  6854. }
  6855. return *r.Description
  6856. }
  6857. // GetDownloadsURL returns the DownloadsURL field if it's non-nil, zero value otherwise.
  6858. func (r *Repository) GetDownloadsURL() string {
  6859. if r == nil || r.DownloadsURL == nil {
  6860. return ""
  6861. }
  6862. return *r.DownloadsURL
  6863. }
  6864. // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.
  6865. func (r *Repository) GetEventsURL() string {
  6866. if r == nil || r.EventsURL == nil {
  6867. return ""
  6868. }
  6869. return *r.EventsURL
  6870. }
  6871. // GetFork returns the Fork field if it's non-nil, zero value otherwise.
  6872. func (r *Repository) GetFork() bool {
  6873. if r == nil || r.Fork == nil {
  6874. return false
  6875. }
  6876. return *r.Fork
  6877. }
  6878. // GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise.
  6879. func (r *Repository) GetForksCount() int {
  6880. if r == nil || r.ForksCount == nil {
  6881. return 0
  6882. }
  6883. return *r.ForksCount
  6884. }
  6885. // GetForksURL returns the ForksURL field if it's non-nil, zero value otherwise.
  6886. func (r *Repository) GetForksURL() string {
  6887. if r == nil || r.ForksURL == nil {
  6888. return ""
  6889. }
  6890. return *r.ForksURL
  6891. }
  6892. // GetFullName returns the FullName field if it's non-nil, zero value otherwise.
  6893. func (r *Repository) GetFullName() string {
  6894. if r == nil || r.FullName == nil {
  6895. return ""
  6896. }
  6897. return *r.FullName
  6898. }
  6899. // GetGitCommitsURL returns the GitCommitsURL field if it's non-nil, zero value otherwise.
  6900. func (r *Repository) GetGitCommitsURL() string {
  6901. if r == nil || r.GitCommitsURL == nil {
  6902. return ""
  6903. }
  6904. return *r.GitCommitsURL
  6905. }
  6906. // GetGitignoreTemplate returns the GitignoreTemplate field if it's non-nil, zero value otherwise.
  6907. func (r *Repository) GetGitignoreTemplate() string {
  6908. if r == nil || r.GitignoreTemplate == nil {
  6909. return ""
  6910. }
  6911. return *r.GitignoreTemplate
  6912. }
  6913. // GetGitRefsURL returns the GitRefsURL field if it's non-nil, zero value otherwise.
  6914. func (r *Repository) GetGitRefsURL() string {
  6915. if r == nil || r.GitRefsURL == nil {
  6916. return ""
  6917. }
  6918. return *r.GitRefsURL
  6919. }
  6920. // GetGitTagsURL returns the GitTagsURL field if it's non-nil, zero value otherwise.
  6921. func (r *Repository) GetGitTagsURL() string {
  6922. if r == nil || r.GitTagsURL == nil {
  6923. return ""
  6924. }
  6925. return *r.GitTagsURL
  6926. }
  6927. // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise.
  6928. func (r *Repository) GetGitURL() string {
  6929. if r == nil || r.GitURL == nil {
  6930. return ""
  6931. }
  6932. return *r.GitURL
  6933. }
  6934. // GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise.
  6935. func (r *Repository) GetHasDownloads() bool {
  6936. if r == nil || r.HasDownloads == nil {
  6937. return false
  6938. }
  6939. return *r.HasDownloads
  6940. }
  6941. // GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise.
  6942. func (r *Repository) GetHasIssues() bool {
  6943. if r == nil || r.HasIssues == nil {
  6944. return false
  6945. }
  6946. return *r.HasIssues
  6947. }
  6948. // GetHasPages returns the HasPages field if it's non-nil, zero value otherwise.
  6949. func (r *Repository) GetHasPages() bool {
  6950. if r == nil || r.HasPages == nil {
  6951. return false
  6952. }
  6953. return *r.HasPages
  6954. }
  6955. // GetHasProjects returns the HasProjects field if it's non-nil, zero value otherwise.
  6956. func (r *Repository) GetHasProjects() bool {
  6957. if r == nil || r.HasProjects == nil {
  6958. return false
  6959. }
  6960. return *r.HasProjects
  6961. }
  6962. // GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise.
  6963. func (r *Repository) GetHasWiki() bool {
  6964. if r == nil || r.HasWiki == nil {
  6965. return false
  6966. }
  6967. return *r.HasWiki
  6968. }
  6969. // GetHomepage returns the Homepage field if it's non-nil, zero value otherwise.
  6970. func (r *Repository) GetHomepage() string {
  6971. if r == nil || r.Homepage == nil {
  6972. return ""
  6973. }
  6974. return *r.Homepage
  6975. }
  6976. // GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise.
  6977. func (r *Repository) GetHooksURL() string {
  6978. if r == nil || r.HooksURL == nil {
  6979. return ""
  6980. }
  6981. return *r.HooksURL
  6982. }
  6983. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  6984. func (r *Repository) GetHTMLURL() string {
  6985. if r == nil || r.HTMLURL == nil {
  6986. return ""
  6987. }
  6988. return *r.HTMLURL
  6989. }
  6990. // GetID returns the ID field if it's non-nil, zero value otherwise.
  6991. func (r *Repository) GetID() int64 {
  6992. if r == nil || r.ID == nil {
  6993. return 0
  6994. }
  6995. return *r.ID
  6996. }
  6997. // GetIssueCommentURL returns the IssueCommentURL field if it's non-nil, zero value otherwise.
  6998. func (r *Repository) GetIssueCommentURL() string {
  6999. if r == nil || r.IssueCommentURL == nil {
  7000. return ""
  7001. }
  7002. return *r.IssueCommentURL
  7003. }
  7004. // GetIssueEventsURL returns the IssueEventsURL field if it's non-nil, zero value otherwise.
  7005. func (r *Repository) GetIssueEventsURL() string {
  7006. if r == nil || r.IssueEventsURL == nil {
  7007. return ""
  7008. }
  7009. return *r.IssueEventsURL
  7010. }
  7011. // GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise.
  7012. func (r *Repository) GetIssuesURL() string {
  7013. if r == nil || r.IssuesURL == nil {
  7014. return ""
  7015. }
  7016. return *r.IssuesURL
  7017. }
  7018. // GetKeysURL returns the KeysURL field if it's non-nil, zero value otherwise.
  7019. func (r *Repository) GetKeysURL() string {
  7020. if r == nil || r.KeysURL == nil {
  7021. return ""
  7022. }
  7023. return *r.KeysURL
  7024. }
  7025. // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise.
  7026. func (r *Repository) GetLabelsURL() string {
  7027. if r == nil || r.LabelsURL == nil {
  7028. return ""
  7029. }
  7030. return *r.LabelsURL
  7031. }
  7032. // GetLanguage returns the Language field if it's non-nil, zero value otherwise.
  7033. func (r *Repository) GetLanguage() string {
  7034. if r == nil || r.Language == nil {
  7035. return ""
  7036. }
  7037. return *r.Language
  7038. }
  7039. // GetLanguagesURL returns the LanguagesURL field if it's non-nil, zero value otherwise.
  7040. func (r *Repository) GetLanguagesURL() string {
  7041. if r == nil || r.LanguagesURL == nil {
  7042. return ""
  7043. }
  7044. return *r.LanguagesURL
  7045. }
  7046. // GetLicense returns the License field.
  7047. func (r *Repository) GetLicense() *License {
  7048. if r == nil {
  7049. return nil
  7050. }
  7051. return r.License
  7052. }
  7053. // GetLicenseTemplate returns the LicenseTemplate field if it's non-nil, zero value otherwise.
  7054. func (r *Repository) GetLicenseTemplate() string {
  7055. if r == nil || r.LicenseTemplate == nil {
  7056. return ""
  7057. }
  7058. return *r.LicenseTemplate
  7059. }
  7060. // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise.
  7061. func (r *Repository) GetMasterBranch() string {
  7062. if r == nil || r.MasterBranch == nil {
  7063. return ""
  7064. }
  7065. return *r.MasterBranch
  7066. }
  7067. // GetMergesURL returns the MergesURL field if it's non-nil, zero value otherwise.
  7068. func (r *Repository) GetMergesURL() string {
  7069. if r == nil || r.MergesURL == nil {
  7070. return ""
  7071. }
  7072. return *r.MergesURL
  7073. }
  7074. // GetMilestonesURL returns the MilestonesURL field if it's non-nil, zero value otherwise.
  7075. func (r *Repository) GetMilestonesURL() string {
  7076. if r == nil || r.MilestonesURL == nil {
  7077. return ""
  7078. }
  7079. return *r.MilestonesURL
  7080. }
  7081. // GetMirrorURL returns the MirrorURL field if it's non-nil, zero value otherwise.
  7082. func (r *Repository) GetMirrorURL() string {
  7083. if r == nil || r.MirrorURL == nil {
  7084. return ""
  7085. }
  7086. return *r.MirrorURL
  7087. }
  7088. // GetName returns the Name field if it's non-nil, zero value otherwise.
  7089. func (r *Repository) GetName() string {
  7090. if r == nil || r.Name == nil {
  7091. return ""
  7092. }
  7093. return *r.Name
  7094. }
  7095. // GetNetworkCount returns the NetworkCount field if it's non-nil, zero value otherwise.
  7096. func (r *Repository) GetNetworkCount() int {
  7097. if r == nil || r.NetworkCount == nil {
  7098. return 0
  7099. }
  7100. return *r.NetworkCount
  7101. }
  7102. // GetNotificationsURL returns the NotificationsURL field if it's non-nil, zero value otherwise.
  7103. func (r *Repository) GetNotificationsURL() string {
  7104. if r == nil || r.NotificationsURL == nil {
  7105. return ""
  7106. }
  7107. return *r.NotificationsURL
  7108. }
  7109. // GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise.
  7110. func (r *Repository) GetOpenIssuesCount() int {
  7111. if r == nil || r.OpenIssuesCount == nil {
  7112. return 0
  7113. }
  7114. return *r.OpenIssuesCount
  7115. }
  7116. // GetOrganization returns the Organization field.
  7117. func (r *Repository) GetOrganization() *Organization {
  7118. if r == nil {
  7119. return nil
  7120. }
  7121. return r.Organization
  7122. }
  7123. // GetOwner returns the Owner field.
  7124. func (r *Repository) GetOwner() *User {
  7125. if r == nil {
  7126. return nil
  7127. }
  7128. return r.Owner
  7129. }
  7130. // GetParent returns the Parent field.
  7131. func (r *Repository) GetParent() *Repository {
  7132. if r == nil {
  7133. return nil
  7134. }
  7135. return r.Parent
  7136. }
  7137. // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise.
  7138. func (r *Repository) GetPermissions() map[string]bool {
  7139. if r == nil || r.Permissions == nil {
  7140. return map[string]bool{}
  7141. }
  7142. return *r.Permissions
  7143. }
  7144. // GetPrivate returns the Private field if it's non-nil, zero value otherwise.
  7145. func (r *Repository) GetPrivate() bool {
  7146. if r == nil || r.Private == nil {
  7147. return false
  7148. }
  7149. return *r.Private
  7150. }
  7151. // GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise.
  7152. func (r *Repository) GetPullsURL() string {
  7153. if r == nil || r.PullsURL == nil {
  7154. return ""
  7155. }
  7156. return *r.PullsURL
  7157. }
  7158. // GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise.
  7159. func (r *Repository) GetPushedAt() Timestamp {
  7160. if r == nil || r.PushedAt == nil {
  7161. return Timestamp{}
  7162. }
  7163. return *r.PushedAt
  7164. }
  7165. // GetReleasesURL returns the ReleasesURL field if it's non-nil, zero value otherwise.
  7166. func (r *Repository) GetReleasesURL() string {
  7167. if r == nil || r.ReleasesURL == nil {
  7168. return ""
  7169. }
  7170. return *r.ReleasesURL
  7171. }
  7172. // GetSize returns the Size field if it's non-nil, zero value otherwise.
  7173. func (r *Repository) GetSize() int {
  7174. if r == nil || r.Size == nil {
  7175. return 0
  7176. }
  7177. return *r.Size
  7178. }
  7179. // GetSource returns the Source field.
  7180. func (r *Repository) GetSource() *Repository {
  7181. if r == nil {
  7182. return nil
  7183. }
  7184. return r.Source
  7185. }
  7186. // GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise.
  7187. func (r *Repository) GetSSHURL() string {
  7188. if r == nil || r.SSHURL == nil {
  7189. return ""
  7190. }
  7191. return *r.SSHURL
  7192. }
  7193. // GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise.
  7194. func (r *Repository) GetStargazersCount() int {
  7195. if r == nil || r.StargazersCount == nil {
  7196. return 0
  7197. }
  7198. return *r.StargazersCount
  7199. }
  7200. // GetStargazersURL returns the StargazersURL field if it's non-nil, zero value otherwise.
  7201. func (r *Repository) GetStargazersURL() string {
  7202. if r == nil || r.StargazersURL == nil {
  7203. return ""
  7204. }
  7205. return *r.StargazersURL
  7206. }
  7207. // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise.
  7208. func (r *Repository) GetStatusesURL() string {
  7209. if r == nil || r.StatusesURL == nil {
  7210. return ""
  7211. }
  7212. return *r.StatusesURL
  7213. }
  7214. // GetSubscribersCount returns the SubscribersCount field if it's non-nil, zero value otherwise.
  7215. func (r *Repository) GetSubscribersCount() int {
  7216. if r == nil || r.SubscribersCount == nil {
  7217. return 0
  7218. }
  7219. return *r.SubscribersCount
  7220. }
  7221. // GetSubscribersURL returns the SubscribersURL field if it's non-nil, zero value otherwise.
  7222. func (r *Repository) GetSubscribersURL() string {
  7223. if r == nil || r.SubscribersURL == nil {
  7224. return ""
  7225. }
  7226. return *r.SubscribersURL
  7227. }
  7228. // GetSubscriptionURL returns the SubscriptionURL field if it's non-nil, zero value otherwise.
  7229. func (r *Repository) GetSubscriptionURL() string {
  7230. if r == nil || r.SubscriptionURL == nil {
  7231. return ""
  7232. }
  7233. return *r.SubscriptionURL
  7234. }
  7235. // GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise.
  7236. func (r *Repository) GetSVNURL() string {
  7237. if r == nil || r.SVNURL == nil {
  7238. return ""
  7239. }
  7240. return *r.SVNURL
  7241. }
  7242. // GetTagsURL returns the TagsURL field if it's non-nil, zero value otherwise.
  7243. func (r *Repository) GetTagsURL() string {
  7244. if r == nil || r.TagsURL == nil {
  7245. return ""
  7246. }
  7247. return *r.TagsURL
  7248. }
  7249. // GetTeamID returns the TeamID field if it's non-nil, zero value otherwise.
  7250. func (r *Repository) GetTeamID() int64 {
  7251. if r == nil || r.TeamID == nil {
  7252. return 0
  7253. }
  7254. return *r.TeamID
  7255. }
  7256. // GetTeamsURL returns the TeamsURL field if it's non-nil, zero value otherwise.
  7257. func (r *Repository) GetTeamsURL() string {
  7258. if r == nil || r.TeamsURL == nil {
  7259. return ""
  7260. }
  7261. return *r.TeamsURL
  7262. }
  7263. // GetTreesURL returns the TreesURL field if it's non-nil, zero value otherwise.
  7264. func (r *Repository) GetTreesURL() string {
  7265. if r == nil || r.TreesURL == nil {
  7266. return ""
  7267. }
  7268. return *r.TreesURL
  7269. }
  7270. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  7271. func (r *Repository) GetUpdatedAt() Timestamp {
  7272. if r == nil || r.UpdatedAt == nil {
  7273. return Timestamp{}
  7274. }
  7275. return *r.UpdatedAt
  7276. }
  7277. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  7278. func (r *Repository) GetURL() string {
  7279. if r == nil || r.URL == nil {
  7280. return ""
  7281. }
  7282. return *r.URL
  7283. }
  7284. // GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise.
  7285. func (r *Repository) GetWatchersCount() int {
  7286. if r == nil || r.WatchersCount == nil {
  7287. return 0
  7288. }
  7289. return *r.WatchersCount
  7290. }
  7291. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  7292. func (r *RepositoryComment) GetBody() string {
  7293. if r == nil || r.Body == nil {
  7294. return ""
  7295. }
  7296. return *r.Body
  7297. }
  7298. // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise.
  7299. func (r *RepositoryComment) GetCommitID() string {
  7300. if r == nil || r.CommitID == nil {
  7301. return ""
  7302. }
  7303. return *r.CommitID
  7304. }
  7305. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  7306. func (r *RepositoryComment) GetCreatedAt() time.Time {
  7307. if r == nil || r.CreatedAt == nil {
  7308. return time.Time{}
  7309. }
  7310. return *r.CreatedAt
  7311. }
  7312. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  7313. func (r *RepositoryComment) GetHTMLURL() string {
  7314. if r == nil || r.HTMLURL == nil {
  7315. return ""
  7316. }
  7317. return *r.HTMLURL
  7318. }
  7319. // GetID returns the ID field if it's non-nil, zero value otherwise.
  7320. func (r *RepositoryComment) GetID() int64 {
  7321. if r == nil || r.ID == nil {
  7322. return 0
  7323. }
  7324. return *r.ID
  7325. }
  7326. // GetPath returns the Path field if it's non-nil, zero value otherwise.
  7327. func (r *RepositoryComment) GetPath() string {
  7328. if r == nil || r.Path == nil {
  7329. return ""
  7330. }
  7331. return *r.Path
  7332. }
  7333. // GetPosition returns the Position field if it's non-nil, zero value otherwise.
  7334. func (r *RepositoryComment) GetPosition() int {
  7335. if r == nil || r.Position == nil {
  7336. return 0
  7337. }
  7338. return *r.Position
  7339. }
  7340. // GetReactions returns the Reactions field.
  7341. func (r *RepositoryComment) GetReactions() *Reactions {
  7342. if r == nil {
  7343. return nil
  7344. }
  7345. return r.Reactions
  7346. }
  7347. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  7348. func (r *RepositoryComment) GetUpdatedAt() time.Time {
  7349. if r == nil || r.UpdatedAt == nil {
  7350. return time.Time{}
  7351. }
  7352. return *r.UpdatedAt
  7353. }
  7354. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  7355. func (r *RepositoryComment) GetURL() string {
  7356. if r == nil || r.URL == nil {
  7357. return ""
  7358. }
  7359. return *r.URL
  7360. }
  7361. // GetUser returns the User field.
  7362. func (r *RepositoryComment) GetUser() *User {
  7363. if r == nil {
  7364. return nil
  7365. }
  7366. return r.User
  7367. }
  7368. // GetAuthor returns the Author field.
  7369. func (r *RepositoryCommit) GetAuthor() *User {
  7370. if r == nil {
  7371. return nil
  7372. }
  7373. return r.Author
  7374. }
  7375. // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.
  7376. func (r *RepositoryCommit) GetCommentsURL() string {
  7377. if r == nil || r.CommentsURL == nil {
  7378. return ""
  7379. }
  7380. return *r.CommentsURL
  7381. }
  7382. // GetCommit returns the Commit field.
  7383. func (r *RepositoryCommit) GetCommit() *Commit {
  7384. if r == nil {
  7385. return nil
  7386. }
  7387. return r.Commit
  7388. }
  7389. // GetCommitter returns the Committer field.
  7390. func (r *RepositoryCommit) GetCommitter() *User {
  7391. if r == nil {
  7392. return nil
  7393. }
  7394. return r.Committer
  7395. }
  7396. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  7397. func (r *RepositoryCommit) GetHTMLURL() string {
  7398. if r == nil || r.HTMLURL == nil {
  7399. return ""
  7400. }
  7401. return *r.HTMLURL
  7402. }
  7403. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  7404. func (r *RepositoryCommit) GetSHA() string {
  7405. if r == nil || r.SHA == nil {
  7406. return ""
  7407. }
  7408. return *r.SHA
  7409. }
  7410. // GetStats returns the Stats field.
  7411. func (r *RepositoryCommit) GetStats() *CommitStats {
  7412. if r == nil {
  7413. return nil
  7414. }
  7415. return r.Stats
  7416. }
  7417. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  7418. func (r *RepositoryCommit) GetURL() string {
  7419. if r == nil || r.URL == nil {
  7420. return ""
  7421. }
  7422. return *r.URL
  7423. }
  7424. // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise.
  7425. func (r *RepositoryContent) GetDownloadURL() string {
  7426. if r == nil || r.DownloadURL == nil {
  7427. return ""
  7428. }
  7429. return *r.DownloadURL
  7430. }
  7431. // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise.
  7432. func (r *RepositoryContent) GetEncoding() string {
  7433. if r == nil || r.Encoding == nil {
  7434. return ""
  7435. }
  7436. return *r.Encoding
  7437. }
  7438. // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise.
  7439. func (r *RepositoryContent) GetGitURL() string {
  7440. if r == nil || r.GitURL == nil {
  7441. return ""
  7442. }
  7443. return *r.GitURL
  7444. }
  7445. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  7446. func (r *RepositoryContent) GetHTMLURL() string {
  7447. if r == nil || r.HTMLURL == nil {
  7448. return ""
  7449. }
  7450. return *r.HTMLURL
  7451. }
  7452. // GetName returns the Name field if it's non-nil, zero value otherwise.
  7453. func (r *RepositoryContent) GetName() string {
  7454. if r == nil || r.Name == nil {
  7455. return ""
  7456. }
  7457. return *r.Name
  7458. }
  7459. // GetPath returns the Path field if it's non-nil, zero value otherwise.
  7460. func (r *RepositoryContent) GetPath() string {
  7461. if r == nil || r.Path == nil {
  7462. return ""
  7463. }
  7464. return *r.Path
  7465. }
  7466. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  7467. func (r *RepositoryContent) GetSHA() string {
  7468. if r == nil || r.SHA == nil {
  7469. return ""
  7470. }
  7471. return *r.SHA
  7472. }
  7473. // GetSize returns the Size field if it's non-nil, zero value otherwise.
  7474. func (r *RepositoryContent) GetSize() int {
  7475. if r == nil || r.Size == nil {
  7476. return 0
  7477. }
  7478. return *r.Size
  7479. }
  7480. // GetType returns the Type field if it's non-nil, zero value otherwise.
  7481. func (r *RepositoryContent) GetType() string {
  7482. if r == nil || r.Type == nil {
  7483. return ""
  7484. }
  7485. return *r.Type
  7486. }
  7487. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  7488. func (r *RepositoryContent) GetURL() string {
  7489. if r == nil || r.URL == nil {
  7490. return ""
  7491. }
  7492. return *r.URL
  7493. }
  7494. // GetAuthor returns the Author field.
  7495. func (r *RepositoryContentFileOptions) GetAuthor() *CommitAuthor {
  7496. if r == nil {
  7497. return nil
  7498. }
  7499. return r.Author
  7500. }
  7501. // GetBranch returns the Branch field if it's non-nil, zero value otherwise.
  7502. func (r *RepositoryContentFileOptions) GetBranch() string {
  7503. if r == nil || r.Branch == nil {
  7504. return ""
  7505. }
  7506. return *r.Branch
  7507. }
  7508. // GetCommitter returns the Committer field.
  7509. func (r *RepositoryContentFileOptions) GetCommitter() *CommitAuthor {
  7510. if r == nil {
  7511. return nil
  7512. }
  7513. return r.Committer
  7514. }
  7515. // GetMessage returns the Message field if it's non-nil, zero value otherwise.
  7516. func (r *RepositoryContentFileOptions) GetMessage() string {
  7517. if r == nil || r.Message == nil {
  7518. return ""
  7519. }
  7520. return *r.Message
  7521. }
  7522. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  7523. func (r *RepositoryContentFileOptions) GetSHA() string {
  7524. if r == nil || r.SHA == nil {
  7525. return ""
  7526. }
  7527. return *r.SHA
  7528. }
  7529. // GetContent returns the Content field.
  7530. func (r *RepositoryContentResponse) GetContent() *RepositoryContent {
  7531. if r == nil {
  7532. return nil
  7533. }
  7534. return r.Content
  7535. }
  7536. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  7537. func (r *RepositoryEvent) GetAction() string {
  7538. if r == nil || r.Action == nil {
  7539. return ""
  7540. }
  7541. return *r.Action
  7542. }
  7543. // GetInstallation returns the Installation field.
  7544. func (r *RepositoryEvent) GetInstallation() *Installation {
  7545. if r == nil {
  7546. return nil
  7547. }
  7548. return r.Installation
  7549. }
  7550. // GetOrg returns the Org field.
  7551. func (r *RepositoryEvent) GetOrg() *Organization {
  7552. if r == nil {
  7553. return nil
  7554. }
  7555. return r.Org
  7556. }
  7557. // GetRepo returns the Repo field.
  7558. func (r *RepositoryEvent) GetRepo() *Repository {
  7559. if r == nil {
  7560. return nil
  7561. }
  7562. return r.Repo
  7563. }
  7564. // GetSender returns the Sender field.
  7565. func (r *RepositoryEvent) GetSender() *User {
  7566. if r == nil {
  7567. return nil
  7568. }
  7569. return r.Sender
  7570. }
  7571. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  7572. func (r *RepositoryInvitation) GetCreatedAt() Timestamp {
  7573. if r == nil || r.CreatedAt == nil {
  7574. return Timestamp{}
  7575. }
  7576. return *r.CreatedAt
  7577. }
  7578. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  7579. func (r *RepositoryInvitation) GetHTMLURL() string {
  7580. if r == nil || r.HTMLURL == nil {
  7581. return ""
  7582. }
  7583. return *r.HTMLURL
  7584. }
  7585. // GetID returns the ID field if it's non-nil, zero value otherwise.
  7586. func (r *RepositoryInvitation) GetID() int64 {
  7587. if r == nil || r.ID == nil {
  7588. return 0
  7589. }
  7590. return *r.ID
  7591. }
  7592. // GetInvitee returns the Invitee field.
  7593. func (r *RepositoryInvitation) GetInvitee() *User {
  7594. if r == nil {
  7595. return nil
  7596. }
  7597. return r.Invitee
  7598. }
  7599. // GetInviter returns the Inviter field.
  7600. func (r *RepositoryInvitation) GetInviter() *User {
  7601. if r == nil {
  7602. return nil
  7603. }
  7604. return r.Inviter
  7605. }
  7606. // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise.
  7607. func (r *RepositoryInvitation) GetPermissions() string {
  7608. if r == nil || r.Permissions == nil {
  7609. return ""
  7610. }
  7611. return *r.Permissions
  7612. }
  7613. // GetRepo returns the Repo field.
  7614. func (r *RepositoryInvitation) GetRepo() *Repository {
  7615. if r == nil {
  7616. return nil
  7617. }
  7618. return r.Repo
  7619. }
  7620. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  7621. func (r *RepositoryInvitation) GetURL() string {
  7622. if r == nil || r.URL == nil {
  7623. return ""
  7624. }
  7625. return *r.URL
  7626. }
  7627. // GetContent returns the Content field if it's non-nil, zero value otherwise.
  7628. func (r *RepositoryLicense) GetContent() string {
  7629. if r == nil || r.Content == nil {
  7630. return ""
  7631. }
  7632. return *r.Content
  7633. }
  7634. // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise.
  7635. func (r *RepositoryLicense) GetDownloadURL() string {
  7636. if r == nil || r.DownloadURL == nil {
  7637. return ""
  7638. }
  7639. return *r.DownloadURL
  7640. }
  7641. // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise.
  7642. func (r *RepositoryLicense) GetEncoding() string {
  7643. if r == nil || r.Encoding == nil {
  7644. return ""
  7645. }
  7646. return *r.Encoding
  7647. }
  7648. // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise.
  7649. func (r *RepositoryLicense) GetGitURL() string {
  7650. if r == nil || r.GitURL == nil {
  7651. return ""
  7652. }
  7653. return *r.GitURL
  7654. }
  7655. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  7656. func (r *RepositoryLicense) GetHTMLURL() string {
  7657. if r == nil || r.HTMLURL == nil {
  7658. return ""
  7659. }
  7660. return *r.HTMLURL
  7661. }
  7662. // GetLicense returns the License field.
  7663. func (r *RepositoryLicense) GetLicense() *License {
  7664. if r == nil {
  7665. return nil
  7666. }
  7667. return r.License
  7668. }
  7669. // GetName returns the Name field if it's non-nil, zero value otherwise.
  7670. func (r *RepositoryLicense) GetName() string {
  7671. if r == nil || r.Name == nil {
  7672. return ""
  7673. }
  7674. return *r.Name
  7675. }
  7676. // GetPath returns the Path field if it's non-nil, zero value otherwise.
  7677. func (r *RepositoryLicense) GetPath() string {
  7678. if r == nil || r.Path == nil {
  7679. return ""
  7680. }
  7681. return *r.Path
  7682. }
  7683. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  7684. func (r *RepositoryLicense) GetSHA() string {
  7685. if r == nil || r.SHA == nil {
  7686. return ""
  7687. }
  7688. return *r.SHA
  7689. }
  7690. // GetSize returns the Size field if it's non-nil, zero value otherwise.
  7691. func (r *RepositoryLicense) GetSize() int {
  7692. if r == nil || r.Size == nil {
  7693. return 0
  7694. }
  7695. return *r.Size
  7696. }
  7697. // GetType returns the Type field if it's non-nil, zero value otherwise.
  7698. func (r *RepositoryLicense) GetType() string {
  7699. if r == nil || r.Type == nil {
  7700. return ""
  7701. }
  7702. return *r.Type
  7703. }
  7704. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  7705. func (r *RepositoryLicense) GetURL() string {
  7706. if r == nil || r.URL == nil {
  7707. return ""
  7708. }
  7709. return *r.URL
  7710. }
  7711. // GetBase returns the Base field if it's non-nil, zero value otherwise.
  7712. func (r *RepositoryMergeRequest) GetBase() string {
  7713. if r == nil || r.Base == nil {
  7714. return ""
  7715. }
  7716. return *r.Base
  7717. }
  7718. // GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise.
  7719. func (r *RepositoryMergeRequest) GetCommitMessage() string {
  7720. if r == nil || r.CommitMessage == nil {
  7721. return ""
  7722. }
  7723. return *r.CommitMessage
  7724. }
  7725. // GetHead returns the Head field if it's non-nil, zero value otherwise.
  7726. func (r *RepositoryMergeRequest) GetHead() string {
  7727. if r == nil || r.Head == nil {
  7728. return ""
  7729. }
  7730. return *r.Head
  7731. }
  7732. // GetPermission returns the Permission field if it's non-nil, zero value otherwise.
  7733. func (r *RepositoryPermissionLevel) GetPermission() string {
  7734. if r == nil || r.Permission == nil {
  7735. return ""
  7736. }
  7737. return *r.Permission
  7738. }
  7739. // GetUser returns the User field.
  7740. func (r *RepositoryPermissionLevel) GetUser() *User {
  7741. if r == nil {
  7742. return nil
  7743. }
  7744. return r.User
  7745. }
  7746. // GetAssetsURL returns the AssetsURL field if it's non-nil, zero value otherwise.
  7747. func (r *RepositoryRelease) GetAssetsURL() string {
  7748. if r == nil || r.AssetsURL == nil {
  7749. return ""
  7750. }
  7751. return *r.AssetsURL
  7752. }
  7753. // GetAuthor returns the Author field.
  7754. func (r *RepositoryRelease) GetAuthor() *User {
  7755. if r == nil {
  7756. return nil
  7757. }
  7758. return r.Author
  7759. }
  7760. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  7761. func (r *RepositoryRelease) GetBody() string {
  7762. if r == nil || r.Body == nil {
  7763. return ""
  7764. }
  7765. return *r.Body
  7766. }
  7767. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  7768. func (r *RepositoryRelease) GetCreatedAt() Timestamp {
  7769. if r == nil || r.CreatedAt == nil {
  7770. return Timestamp{}
  7771. }
  7772. return *r.CreatedAt
  7773. }
  7774. // GetDraft returns the Draft field if it's non-nil, zero value otherwise.
  7775. func (r *RepositoryRelease) GetDraft() bool {
  7776. if r == nil || r.Draft == nil {
  7777. return false
  7778. }
  7779. return *r.Draft
  7780. }
  7781. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  7782. func (r *RepositoryRelease) GetHTMLURL() string {
  7783. if r == nil || r.HTMLURL == nil {
  7784. return ""
  7785. }
  7786. return *r.HTMLURL
  7787. }
  7788. // GetID returns the ID field if it's non-nil, zero value otherwise.
  7789. func (r *RepositoryRelease) GetID() int64 {
  7790. if r == nil || r.ID == nil {
  7791. return 0
  7792. }
  7793. return *r.ID
  7794. }
  7795. // GetName returns the Name field if it's non-nil, zero value otherwise.
  7796. func (r *RepositoryRelease) GetName() string {
  7797. if r == nil || r.Name == nil {
  7798. return ""
  7799. }
  7800. return *r.Name
  7801. }
  7802. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  7803. func (r *RepositoryRelease) GetNodeID() string {
  7804. if r == nil || r.NodeID == nil {
  7805. return ""
  7806. }
  7807. return *r.NodeID
  7808. }
  7809. // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise.
  7810. func (r *RepositoryRelease) GetPrerelease() bool {
  7811. if r == nil || r.Prerelease == nil {
  7812. return false
  7813. }
  7814. return *r.Prerelease
  7815. }
  7816. // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise.
  7817. func (r *RepositoryRelease) GetPublishedAt() Timestamp {
  7818. if r == nil || r.PublishedAt == nil {
  7819. return Timestamp{}
  7820. }
  7821. return *r.PublishedAt
  7822. }
  7823. // GetTagName returns the TagName field if it's non-nil, zero value otherwise.
  7824. func (r *RepositoryRelease) GetTagName() string {
  7825. if r == nil || r.TagName == nil {
  7826. return ""
  7827. }
  7828. return *r.TagName
  7829. }
  7830. // GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise.
  7831. func (r *RepositoryRelease) GetTarballURL() string {
  7832. if r == nil || r.TarballURL == nil {
  7833. return ""
  7834. }
  7835. return *r.TarballURL
  7836. }
  7837. // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise.
  7838. func (r *RepositoryRelease) GetTargetCommitish() string {
  7839. if r == nil || r.TargetCommitish == nil {
  7840. return ""
  7841. }
  7842. return *r.TargetCommitish
  7843. }
  7844. // GetUploadURL returns the UploadURL field if it's non-nil, zero value otherwise.
  7845. func (r *RepositoryRelease) GetUploadURL() string {
  7846. if r == nil || r.UploadURL == nil {
  7847. return ""
  7848. }
  7849. return *r.UploadURL
  7850. }
  7851. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  7852. func (r *RepositoryRelease) GetURL() string {
  7853. if r == nil || r.URL == nil {
  7854. return ""
  7855. }
  7856. return *r.URL
  7857. }
  7858. // GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise.
  7859. func (r *RepositoryRelease) GetZipballURL() string {
  7860. if r == nil || r.ZipballURL == nil {
  7861. return ""
  7862. }
  7863. return *r.ZipballURL
  7864. }
  7865. // GetCommit returns the Commit field.
  7866. func (r *RepositoryTag) GetCommit() *Commit {
  7867. if r == nil {
  7868. return nil
  7869. }
  7870. return r.Commit
  7871. }
  7872. // GetName returns the Name field if it's non-nil, zero value otherwise.
  7873. func (r *RepositoryTag) GetName() string {
  7874. if r == nil || r.Name == nil {
  7875. return ""
  7876. }
  7877. return *r.Name
  7878. }
  7879. // GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise.
  7880. func (r *RepositoryTag) GetTarballURL() string {
  7881. if r == nil || r.TarballURL == nil {
  7882. return ""
  7883. }
  7884. return *r.TarballURL
  7885. }
  7886. // GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise.
  7887. func (r *RepositoryTag) GetZipballURL() string {
  7888. if r == nil || r.ZipballURL == nil {
  7889. return ""
  7890. }
  7891. return *r.ZipballURL
  7892. }
  7893. // GetForkRepos returns the ForkRepos field if it's non-nil, zero value otherwise.
  7894. func (r *RepoStats) GetForkRepos() int {
  7895. if r == nil || r.ForkRepos == nil {
  7896. return 0
  7897. }
  7898. return *r.ForkRepos
  7899. }
  7900. // GetOrgRepos returns the OrgRepos field if it's non-nil, zero value otherwise.
  7901. func (r *RepoStats) GetOrgRepos() int {
  7902. if r == nil || r.OrgRepos == nil {
  7903. return 0
  7904. }
  7905. return *r.OrgRepos
  7906. }
  7907. // GetRootRepos returns the RootRepos field if it's non-nil, zero value otherwise.
  7908. func (r *RepoStats) GetRootRepos() int {
  7909. if r == nil || r.RootRepos == nil {
  7910. return 0
  7911. }
  7912. return *r.RootRepos
  7913. }
  7914. // GetTotalPushes returns the TotalPushes field if it's non-nil, zero value otherwise.
  7915. func (r *RepoStats) GetTotalPushes() int {
  7916. if r == nil || r.TotalPushes == nil {
  7917. return 0
  7918. }
  7919. return *r.TotalPushes
  7920. }
  7921. // GetTotalRepos returns the TotalRepos field if it's non-nil, zero value otherwise.
  7922. func (r *RepoStats) GetTotalRepos() int {
  7923. if r == nil || r.TotalRepos == nil {
  7924. return 0
  7925. }
  7926. return *r.TotalRepos
  7927. }
  7928. // GetTotalWikis returns the TotalWikis field if it's non-nil, zero value otherwise.
  7929. func (r *RepoStats) GetTotalWikis() int {
  7930. if r == nil || r.TotalWikis == nil {
  7931. return 0
  7932. }
  7933. return *r.TotalWikis
  7934. }
  7935. // GetContext returns the Context field if it's non-nil, zero value otherwise.
  7936. func (r *RepoStatus) GetContext() string {
  7937. if r == nil || r.Context == nil {
  7938. return ""
  7939. }
  7940. return *r.Context
  7941. }
  7942. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  7943. func (r *RepoStatus) GetCreatedAt() time.Time {
  7944. if r == nil || r.CreatedAt == nil {
  7945. return time.Time{}
  7946. }
  7947. return *r.CreatedAt
  7948. }
  7949. // GetCreator returns the Creator field.
  7950. func (r *RepoStatus) GetCreator() *User {
  7951. if r == nil {
  7952. return nil
  7953. }
  7954. return r.Creator
  7955. }
  7956. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  7957. func (r *RepoStatus) GetDescription() string {
  7958. if r == nil || r.Description == nil {
  7959. return ""
  7960. }
  7961. return *r.Description
  7962. }
  7963. // GetID returns the ID field if it's non-nil, zero value otherwise.
  7964. func (r *RepoStatus) GetID() int64 {
  7965. if r == nil || r.ID == nil {
  7966. return 0
  7967. }
  7968. return *r.ID
  7969. }
  7970. // GetState returns the State field if it's non-nil, zero value otherwise.
  7971. func (r *RepoStatus) GetState() string {
  7972. if r == nil || r.State == nil {
  7973. return ""
  7974. }
  7975. return *r.State
  7976. }
  7977. // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise.
  7978. func (r *RepoStatus) GetTargetURL() string {
  7979. if r == nil || r.TargetURL == nil {
  7980. return ""
  7981. }
  7982. return *r.TargetURL
  7983. }
  7984. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  7985. func (r *RepoStatus) GetUpdatedAt() time.Time {
  7986. if r == nil || r.UpdatedAt == nil {
  7987. return time.Time{}
  7988. }
  7989. return *r.UpdatedAt
  7990. }
  7991. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  7992. func (r *RepoStatus) GetURL() string {
  7993. if r == nil || r.URL == nil {
  7994. return ""
  7995. }
  7996. return *r.URL
  7997. }
  7998. // GetName returns the Name field if it's non-nil, zero value otherwise.
  7999. func (s *ServiceHook) GetName() string {
  8000. if s == nil || s.Name == nil {
  8001. return ""
  8002. }
  8003. return *s.Name
  8004. }
  8005. // GetPayload returns the Payload field if it's non-nil, zero value otherwise.
  8006. func (s *SignatureVerification) GetPayload() string {
  8007. if s == nil || s.Payload == nil {
  8008. return ""
  8009. }
  8010. return *s.Payload
  8011. }
  8012. // GetReason returns the Reason field if it's non-nil, zero value otherwise.
  8013. func (s *SignatureVerification) GetReason() string {
  8014. if s == nil || s.Reason == nil {
  8015. return ""
  8016. }
  8017. return *s.Reason
  8018. }
  8019. // GetSignature returns the Signature field if it's non-nil, zero value otherwise.
  8020. func (s *SignatureVerification) GetSignature() string {
  8021. if s == nil || s.Signature == nil {
  8022. return ""
  8023. }
  8024. return *s.Signature
  8025. }
  8026. // GetVerified returns the Verified field if it's non-nil, zero value otherwise.
  8027. func (s *SignatureVerification) GetVerified() bool {
  8028. if s == nil || s.Verified == nil {
  8029. return false
  8030. }
  8031. return *s.Verified
  8032. }
  8033. // GetActor returns the Actor field.
  8034. func (s *Source) GetActor() *User {
  8035. if s == nil {
  8036. return nil
  8037. }
  8038. return s.Actor
  8039. }
  8040. // GetID returns the ID field if it's non-nil, zero value otherwise.
  8041. func (s *Source) GetID() int64 {
  8042. if s == nil || s.ID == nil {
  8043. return 0
  8044. }
  8045. return *s.ID
  8046. }
  8047. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  8048. func (s *Source) GetURL() string {
  8049. if s == nil || s.URL == nil {
  8050. return ""
  8051. }
  8052. return *s.URL
  8053. }
  8054. // GetEmail returns the Email field if it's non-nil, zero value otherwise.
  8055. func (s *SourceImportAuthor) GetEmail() string {
  8056. if s == nil || s.Email == nil {
  8057. return ""
  8058. }
  8059. return *s.Email
  8060. }
  8061. // GetID returns the ID field if it's non-nil, zero value otherwise.
  8062. func (s *SourceImportAuthor) GetID() int64 {
  8063. if s == nil || s.ID == nil {
  8064. return 0
  8065. }
  8066. return *s.ID
  8067. }
  8068. // GetImportURL returns the ImportURL field if it's non-nil, zero value otherwise.
  8069. func (s *SourceImportAuthor) GetImportURL() string {
  8070. if s == nil || s.ImportURL == nil {
  8071. return ""
  8072. }
  8073. return *s.ImportURL
  8074. }
  8075. // GetName returns the Name field if it's non-nil, zero value otherwise.
  8076. func (s *SourceImportAuthor) GetName() string {
  8077. if s == nil || s.Name == nil {
  8078. return ""
  8079. }
  8080. return *s.Name
  8081. }
  8082. // GetRemoteID returns the RemoteID field if it's non-nil, zero value otherwise.
  8083. func (s *SourceImportAuthor) GetRemoteID() string {
  8084. if s == nil || s.RemoteID == nil {
  8085. return ""
  8086. }
  8087. return *s.RemoteID
  8088. }
  8089. // GetRemoteName returns the RemoteName field if it's non-nil, zero value otherwise.
  8090. func (s *SourceImportAuthor) GetRemoteName() string {
  8091. if s == nil || s.RemoteName == nil {
  8092. return ""
  8093. }
  8094. return *s.RemoteName
  8095. }
  8096. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  8097. func (s *SourceImportAuthor) GetURL() string {
  8098. if s == nil || s.URL == nil {
  8099. return ""
  8100. }
  8101. return *s.URL
  8102. }
  8103. // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise.
  8104. func (s *Stargazer) GetStarredAt() Timestamp {
  8105. if s == nil || s.StarredAt == nil {
  8106. return Timestamp{}
  8107. }
  8108. return *s.StarredAt
  8109. }
  8110. // GetUser returns the User field.
  8111. func (s *Stargazer) GetUser() *User {
  8112. if s == nil {
  8113. return nil
  8114. }
  8115. return s.User
  8116. }
  8117. // GetRepository returns the Repository field.
  8118. func (s *StarredRepository) GetRepository() *Repository {
  8119. if s == nil {
  8120. return nil
  8121. }
  8122. return s.Repository
  8123. }
  8124. // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise.
  8125. func (s *StarredRepository) GetStarredAt() Timestamp {
  8126. if s == nil || s.StarredAt == nil {
  8127. return Timestamp{}
  8128. }
  8129. return *s.StarredAt
  8130. }
  8131. // GetCommit returns the Commit field.
  8132. func (s *StatusEvent) GetCommit() *RepositoryCommit {
  8133. if s == nil {
  8134. return nil
  8135. }
  8136. return s.Commit
  8137. }
  8138. // GetContext returns the Context field if it's non-nil, zero value otherwise.
  8139. func (s *StatusEvent) GetContext() string {
  8140. if s == nil || s.Context == nil {
  8141. return ""
  8142. }
  8143. return *s.Context
  8144. }
  8145. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  8146. func (s *StatusEvent) GetCreatedAt() Timestamp {
  8147. if s == nil || s.CreatedAt == nil {
  8148. return Timestamp{}
  8149. }
  8150. return *s.CreatedAt
  8151. }
  8152. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  8153. func (s *StatusEvent) GetDescription() string {
  8154. if s == nil || s.Description == nil {
  8155. return ""
  8156. }
  8157. return *s.Description
  8158. }
  8159. // GetID returns the ID field if it's non-nil, zero value otherwise.
  8160. func (s *StatusEvent) GetID() int64 {
  8161. if s == nil || s.ID == nil {
  8162. return 0
  8163. }
  8164. return *s.ID
  8165. }
  8166. // GetInstallation returns the Installation field.
  8167. func (s *StatusEvent) GetInstallation() *Installation {
  8168. if s == nil {
  8169. return nil
  8170. }
  8171. return s.Installation
  8172. }
  8173. // GetName returns the Name field if it's non-nil, zero value otherwise.
  8174. func (s *StatusEvent) GetName() string {
  8175. if s == nil || s.Name == nil {
  8176. return ""
  8177. }
  8178. return *s.Name
  8179. }
  8180. // GetRepo returns the Repo field.
  8181. func (s *StatusEvent) GetRepo() *Repository {
  8182. if s == nil {
  8183. return nil
  8184. }
  8185. return s.Repo
  8186. }
  8187. // GetSender returns the Sender field.
  8188. func (s *StatusEvent) GetSender() *User {
  8189. if s == nil {
  8190. return nil
  8191. }
  8192. return s.Sender
  8193. }
  8194. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  8195. func (s *StatusEvent) GetSHA() string {
  8196. if s == nil || s.SHA == nil {
  8197. return ""
  8198. }
  8199. return *s.SHA
  8200. }
  8201. // GetState returns the State field if it's non-nil, zero value otherwise.
  8202. func (s *StatusEvent) GetState() string {
  8203. if s == nil || s.State == nil {
  8204. return ""
  8205. }
  8206. return *s.State
  8207. }
  8208. // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise.
  8209. func (s *StatusEvent) GetTargetURL() string {
  8210. if s == nil || s.TargetURL == nil {
  8211. return ""
  8212. }
  8213. return *s.TargetURL
  8214. }
  8215. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  8216. func (s *StatusEvent) GetUpdatedAt() Timestamp {
  8217. if s == nil || s.UpdatedAt == nil {
  8218. return Timestamp{}
  8219. }
  8220. return *s.UpdatedAt
  8221. }
  8222. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  8223. func (s *Subscription) GetCreatedAt() Timestamp {
  8224. if s == nil || s.CreatedAt == nil {
  8225. return Timestamp{}
  8226. }
  8227. return *s.CreatedAt
  8228. }
  8229. // GetIgnored returns the Ignored field if it's non-nil, zero value otherwise.
  8230. func (s *Subscription) GetIgnored() bool {
  8231. if s == nil || s.Ignored == nil {
  8232. return false
  8233. }
  8234. return *s.Ignored
  8235. }
  8236. // GetReason returns the Reason field if it's non-nil, zero value otherwise.
  8237. func (s *Subscription) GetReason() string {
  8238. if s == nil || s.Reason == nil {
  8239. return ""
  8240. }
  8241. return *s.Reason
  8242. }
  8243. // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
  8244. func (s *Subscription) GetRepositoryURL() string {
  8245. if s == nil || s.RepositoryURL == nil {
  8246. return ""
  8247. }
  8248. return *s.RepositoryURL
  8249. }
  8250. // GetSubscribed returns the Subscribed field if it's non-nil, zero value otherwise.
  8251. func (s *Subscription) GetSubscribed() bool {
  8252. if s == nil || s.Subscribed == nil {
  8253. return false
  8254. }
  8255. return *s.Subscribed
  8256. }
  8257. // GetThreadURL returns the ThreadURL field if it's non-nil, zero value otherwise.
  8258. func (s *Subscription) GetThreadURL() string {
  8259. if s == nil || s.ThreadURL == nil {
  8260. return ""
  8261. }
  8262. return *s.ThreadURL
  8263. }
  8264. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  8265. func (s *Subscription) GetURL() string {
  8266. if s == nil || s.URL == nil {
  8267. return ""
  8268. }
  8269. return *s.URL
  8270. }
  8271. // GetMessage returns the Message field if it's non-nil, zero value otherwise.
  8272. func (t *Tag) GetMessage() string {
  8273. if t == nil || t.Message == nil {
  8274. return ""
  8275. }
  8276. return *t.Message
  8277. }
  8278. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  8279. func (t *Tag) GetNodeID() string {
  8280. if t == nil || t.NodeID == nil {
  8281. return ""
  8282. }
  8283. return *t.NodeID
  8284. }
  8285. // GetObject returns the Object field.
  8286. func (t *Tag) GetObject() *GitObject {
  8287. if t == nil {
  8288. return nil
  8289. }
  8290. return t.Object
  8291. }
  8292. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  8293. func (t *Tag) GetSHA() string {
  8294. if t == nil || t.SHA == nil {
  8295. return ""
  8296. }
  8297. return *t.SHA
  8298. }
  8299. // GetTag returns the Tag field if it's non-nil, zero value otherwise.
  8300. func (t *Tag) GetTag() string {
  8301. if t == nil || t.Tag == nil {
  8302. return ""
  8303. }
  8304. return *t.Tag
  8305. }
  8306. // GetTagger returns the Tagger field.
  8307. func (t *Tag) GetTagger() *CommitAuthor {
  8308. if t == nil {
  8309. return nil
  8310. }
  8311. return t.Tagger
  8312. }
  8313. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  8314. func (t *Tag) GetURL() string {
  8315. if t == nil || t.URL == nil {
  8316. return ""
  8317. }
  8318. return *t.URL
  8319. }
  8320. // GetVerification returns the Verification field.
  8321. func (t *Tag) GetVerification() *SignatureVerification {
  8322. if t == nil {
  8323. return nil
  8324. }
  8325. return t.Verification
  8326. }
  8327. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  8328. func (t *Team) GetDescription() string {
  8329. if t == nil || t.Description == nil {
  8330. return ""
  8331. }
  8332. return *t.Description
  8333. }
  8334. // GetID returns the ID field if it's non-nil, zero value otherwise.
  8335. func (t *Team) GetID() int64 {
  8336. if t == nil || t.ID == nil {
  8337. return 0
  8338. }
  8339. return *t.ID
  8340. }
  8341. // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise.
  8342. func (t *Team) GetLDAPDN() string {
  8343. if t == nil || t.LDAPDN == nil {
  8344. return ""
  8345. }
  8346. return *t.LDAPDN
  8347. }
  8348. // GetMembersCount returns the MembersCount field if it's non-nil, zero value otherwise.
  8349. func (t *Team) GetMembersCount() int {
  8350. if t == nil || t.MembersCount == nil {
  8351. return 0
  8352. }
  8353. return *t.MembersCount
  8354. }
  8355. // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise.
  8356. func (t *Team) GetMembersURL() string {
  8357. if t == nil || t.MembersURL == nil {
  8358. return ""
  8359. }
  8360. return *t.MembersURL
  8361. }
  8362. // GetName returns the Name field if it's non-nil, zero value otherwise.
  8363. func (t *Team) GetName() string {
  8364. if t == nil || t.Name == nil {
  8365. return ""
  8366. }
  8367. return *t.Name
  8368. }
  8369. // GetOrganization returns the Organization field.
  8370. func (t *Team) GetOrganization() *Organization {
  8371. if t == nil {
  8372. return nil
  8373. }
  8374. return t.Organization
  8375. }
  8376. // GetParent returns the Parent field.
  8377. func (t *Team) GetParent() *Team {
  8378. if t == nil {
  8379. return nil
  8380. }
  8381. return t.Parent
  8382. }
  8383. // GetPermission returns the Permission field if it's non-nil, zero value otherwise.
  8384. func (t *Team) GetPermission() string {
  8385. if t == nil || t.Permission == nil {
  8386. return ""
  8387. }
  8388. return *t.Permission
  8389. }
  8390. // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise.
  8391. func (t *Team) GetPrivacy() string {
  8392. if t == nil || t.Privacy == nil {
  8393. return ""
  8394. }
  8395. return *t.Privacy
  8396. }
  8397. // GetReposCount returns the ReposCount field if it's non-nil, zero value otherwise.
  8398. func (t *Team) GetReposCount() int {
  8399. if t == nil || t.ReposCount == nil {
  8400. return 0
  8401. }
  8402. return *t.ReposCount
  8403. }
  8404. // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise.
  8405. func (t *Team) GetRepositoriesURL() string {
  8406. if t == nil || t.RepositoriesURL == nil {
  8407. return ""
  8408. }
  8409. return *t.RepositoriesURL
  8410. }
  8411. // GetSlug returns the Slug field if it's non-nil, zero value otherwise.
  8412. func (t *Team) GetSlug() string {
  8413. if t == nil || t.Slug == nil {
  8414. return ""
  8415. }
  8416. return *t.Slug
  8417. }
  8418. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  8419. func (t *Team) GetURL() string {
  8420. if t == nil || t.URL == nil {
  8421. return ""
  8422. }
  8423. return *t.URL
  8424. }
  8425. // GetInstallation returns the Installation field.
  8426. func (t *TeamAddEvent) GetInstallation() *Installation {
  8427. if t == nil {
  8428. return nil
  8429. }
  8430. return t.Installation
  8431. }
  8432. // GetOrg returns the Org field.
  8433. func (t *TeamAddEvent) GetOrg() *Organization {
  8434. if t == nil {
  8435. return nil
  8436. }
  8437. return t.Org
  8438. }
  8439. // GetRepo returns the Repo field.
  8440. func (t *TeamAddEvent) GetRepo() *Repository {
  8441. if t == nil {
  8442. return nil
  8443. }
  8444. return t.Repo
  8445. }
  8446. // GetSender returns the Sender field.
  8447. func (t *TeamAddEvent) GetSender() *User {
  8448. if t == nil {
  8449. return nil
  8450. }
  8451. return t.Sender
  8452. }
  8453. // GetTeam returns the Team field.
  8454. func (t *TeamAddEvent) GetTeam() *Team {
  8455. if t == nil {
  8456. return nil
  8457. }
  8458. return t.Team
  8459. }
  8460. // GetAuthor returns the Author field.
  8461. func (t *TeamDiscussion) GetAuthor() *User {
  8462. if t == nil {
  8463. return nil
  8464. }
  8465. return t.Author
  8466. }
  8467. // GetBody returns the Body field if it's non-nil, zero value otherwise.
  8468. func (t *TeamDiscussion) GetBody() string {
  8469. if t == nil || t.Body == nil {
  8470. return ""
  8471. }
  8472. return *t.Body
  8473. }
  8474. // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise.
  8475. func (t *TeamDiscussion) GetBodyHTML() string {
  8476. if t == nil || t.BodyHTML == nil {
  8477. return ""
  8478. }
  8479. return *t.BodyHTML
  8480. }
  8481. // GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise.
  8482. func (t *TeamDiscussion) GetBodyVersion() string {
  8483. if t == nil || t.BodyVersion == nil {
  8484. return ""
  8485. }
  8486. return *t.BodyVersion
  8487. }
  8488. // GetCommentsCount returns the CommentsCount field if it's non-nil, zero value otherwise.
  8489. func (t *TeamDiscussion) GetCommentsCount() int64 {
  8490. if t == nil || t.CommentsCount == nil {
  8491. return 0
  8492. }
  8493. return *t.CommentsCount
  8494. }
  8495. // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.
  8496. func (t *TeamDiscussion) GetCommentsURL() string {
  8497. if t == nil || t.CommentsURL == nil {
  8498. return ""
  8499. }
  8500. return *t.CommentsURL
  8501. }
  8502. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  8503. func (t *TeamDiscussion) GetCreatedAt() Timestamp {
  8504. if t == nil || t.CreatedAt == nil {
  8505. return Timestamp{}
  8506. }
  8507. return *t.CreatedAt
  8508. }
  8509. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  8510. func (t *TeamDiscussion) GetHTMLURL() string {
  8511. if t == nil || t.HTMLURL == nil {
  8512. return ""
  8513. }
  8514. return *t.HTMLURL
  8515. }
  8516. // GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise.
  8517. func (t *TeamDiscussion) GetLastEditedAt() Timestamp {
  8518. if t == nil || t.LastEditedAt == nil {
  8519. return Timestamp{}
  8520. }
  8521. return *t.LastEditedAt
  8522. }
  8523. // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
  8524. func (t *TeamDiscussion) GetNodeID() string {
  8525. if t == nil || t.NodeID == nil {
  8526. return ""
  8527. }
  8528. return *t.NodeID
  8529. }
  8530. // GetNumber returns the Number field if it's non-nil, zero value otherwise.
  8531. func (t *TeamDiscussion) GetNumber() int64 {
  8532. if t == nil || t.Number == nil {
  8533. return 0
  8534. }
  8535. return *t.Number
  8536. }
  8537. // GetPinned returns the Pinned field if it's non-nil, zero value otherwise.
  8538. func (t *TeamDiscussion) GetPinned() bool {
  8539. if t == nil || t.Pinned == nil {
  8540. return false
  8541. }
  8542. return *t.Pinned
  8543. }
  8544. // GetPrivate returns the Private field if it's non-nil, zero value otherwise.
  8545. func (t *TeamDiscussion) GetPrivate() bool {
  8546. if t == nil || t.Private == nil {
  8547. return false
  8548. }
  8549. return *t.Private
  8550. }
  8551. // GetTeamURL returns the TeamURL field if it's non-nil, zero value otherwise.
  8552. func (t *TeamDiscussion) GetTeamURL() string {
  8553. if t == nil || t.TeamURL == nil {
  8554. return ""
  8555. }
  8556. return *t.TeamURL
  8557. }
  8558. // GetTitle returns the Title field if it's non-nil, zero value otherwise.
  8559. func (t *TeamDiscussion) GetTitle() string {
  8560. if t == nil || t.Title == nil {
  8561. return ""
  8562. }
  8563. return *t.Title
  8564. }
  8565. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  8566. func (t *TeamDiscussion) GetUpdatedAt() Timestamp {
  8567. if t == nil || t.UpdatedAt == nil {
  8568. return Timestamp{}
  8569. }
  8570. return *t.UpdatedAt
  8571. }
  8572. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  8573. func (t *TeamDiscussion) GetURL() string {
  8574. if t == nil || t.URL == nil {
  8575. return ""
  8576. }
  8577. return *t.URL
  8578. }
  8579. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  8580. func (t *TeamEvent) GetAction() string {
  8581. if t == nil || t.Action == nil {
  8582. return ""
  8583. }
  8584. return *t.Action
  8585. }
  8586. // GetChanges returns the Changes field.
  8587. func (t *TeamEvent) GetChanges() *TeamChange {
  8588. if t == nil {
  8589. return nil
  8590. }
  8591. return t.Changes
  8592. }
  8593. // GetInstallation returns the Installation field.
  8594. func (t *TeamEvent) GetInstallation() *Installation {
  8595. if t == nil {
  8596. return nil
  8597. }
  8598. return t.Installation
  8599. }
  8600. // GetOrg returns the Org field.
  8601. func (t *TeamEvent) GetOrg() *Organization {
  8602. if t == nil {
  8603. return nil
  8604. }
  8605. return t.Org
  8606. }
  8607. // GetRepo returns the Repo field.
  8608. func (t *TeamEvent) GetRepo() *Repository {
  8609. if t == nil {
  8610. return nil
  8611. }
  8612. return t.Repo
  8613. }
  8614. // GetSender returns the Sender field.
  8615. func (t *TeamEvent) GetSender() *User {
  8616. if t == nil {
  8617. return nil
  8618. }
  8619. return t.Sender
  8620. }
  8621. // GetTeam returns the Team field.
  8622. func (t *TeamEvent) GetTeam() *Team {
  8623. if t == nil {
  8624. return nil
  8625. }
  8626. return t.Team
  8627. }
  8628. // GetDescription returns the Description field if it's non-nil, zero value otherwise.
  8629. func (t *TeamLDAPMapping) GetDescription() string {
  8630. if t == nil || t.Description == nil {
  8631. return ""
  8632. }
  8633. return *t.Description
  8634. }
  8635. // GetID returns the ID field if it's non-nil, zero value otherwise.
  8636. func (t *TeamLDAPMapping) GetID() int64 {
  8637. if t == nil || t.ID == nil {
  8638. return 0
  8639. }
  8640. return *t.ID
  8641. }
  8642. // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise.
  8643. func (t *TeamLDAPMapping) GetLDAPDN() string {
  8644. if t == nil || t.LDAPDN == nil {
  8645. return ""
  8646. }
  8647. return *t.LDAPDN
  8648. }
  8649. // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise.
  8650. func (t *TeamLDAPMapping) GetMembersURL() string {
  8651. if t == nil || t.MembersURL == nil {
  8652. return ""
  8653. }
  8654. return *t.MembersURL
  8655. }
  8656. // GetName returns the Name field if it's non-nil, zero value otherwise.
  8657. func (t *TeamLDAPMapping) GetName() string {
  8658. if t == nil || t.Name == nil {
  8659. return ""
  8660. }
  8661. return *t.Name
  8662. }
  8663. // GetPermission returns the Permission field if it's non-nil, zero value otherwise.
  8664. func (t *TeamLDAPMapping) GetPermission() string {
  8665. if t == nil || t.Permission == nil {
  8666. return ""
  8667. }
  8668. return *t.Permission
  8669. }
  8670. // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise.
  8671. func (t *TeamLDAPMapping) GetPrivacy() string {
  8672. if t == nil || t.Privacy == nil {
  8673. return ""
  8674. }
  8675. return *t.Privacy
  8676. }
  8677. // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise.
  8678. func (t *TeamLDAPMapping) GetRepositoriesURL() string {
  8679. if t == nil || t.RepositoriesURL == nil {
  8680. return ""
  8681. }
  8682. return *t.RepositoriesURL
  8683. }
  8684. // GetSlug returns the Slug field if it's non-nil, zero value otherwise.
  8685. func (t *TeamLDAPMapping) GetSlug() string {
  8686. if t == nil || t.Slug == nil {
  8687. return ""
  8688. }
  8689. return *t.Slug
  8690. }
  8691. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  8692. func (t *TeamLDAPMapping) GetURL() string {
  8693. if t == nil || t.URL == nil {
  8694. return ""
  8695. }
  8696. return *t.URL
  8697. }
  8698. // GetFragment returns the Fragment field if it's non-nil, zero value otherwise.
  8699. func (t *TextMatch) GetFragment() string {
  8700. if t == nil || t.Fragment == nil {
  8701. return ""
  8702. }
  8703. return *t.Fragment
  8704. }
  8705. // GetObjectType returns the ObjectType field if it's non-nil, zero value otherwise.
  8706. func (t *TextMatch) GetObjectType() string {
  8707. if t == nil || t.ObjectType == nil {
  8708. return ""
  8709. }
  8710. return *t.ObjectType
  8711. }
  8712. // GetObjectURL returns the ObjectURL field if it's non-nil, zero value otherwise.
  8713. func (t *TextMatch) GetObjectURL() string {
  8714. if t == nil || t.ObjectURL == nil {
  8715. return ""
  8716. }
  8717. return *t.ObjectURL
  8718. }
  8719. // GetProperty returns the Property field if it's non-nil, zero value otherwise.
  8720. func (t *TextMatch) GetProperty() string {
  8721. if t == nil || t.Property == nil {
  8722. return ""
  8723. }
  8724. return *t.Property
  8725. }
  8726. // GetActor returns the Actor field.
  8727. func (t *Timeline) GetActor() *User {
  8728. if t == nil {
  8729. return nil
  8730. }
  8731. return t.Actor
  8732. }
  8733. // GetAssignee returns the Assignee field.
  8734. func (t *Timeline) GetAssignee() *User {
  8735. if t == nil {
  8736. return nil
  8737. }
  8738. return t.Assignee
  8739. }
  8740. // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise.
  8741. func (t *Timeline) GetCommitID() string {
  8742. if t == nil || t.CommitID == nil {
  8743. return ""
  8744. }
  8745. return *t.CommitID
  8746. }
  8747. // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise.
  8748. func (t *Timeline) GetCommitURL() string {
  8749. if t == nil || t.CommitURL == nil {
  8750. return ""
  8751. }
  8752. return *t.CommitURL
  8753. }
  8754. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  8755. func (t *Timeline) GetCreatedAt() time.Time {
  8756. if t == nil || t.CreatedAt == nil {
  8757. return time.Time{}
  8758. }
  8759. return *t.CreatedAt
  8760. }
  8761. // GetEvent returns the Event field if it's non-nil, zero value otherwise.
  8762. func (t *Timeline) GetEvent() string {
  8763. if t == nil || t.Event == nil {
  8764. return ""
  8765. }
  8766. return *t.Event
  8767. }
  8768. // GetID returns the ID field if it's non-nil, zero value otherwise.
  8769. func (t *Timeline) GetID() int64 {
  8770. if t == nil || t.ID == nil {
  8771. return 0
  8772. }
  8773. return *t.ID
  8774. }
  8775. // GetLabel returns the Label field.
  8776. func (t *Timeline) GetLabel() *Label {
  8777. if t == nil {
  8778. return nil
  8779. }
  8780. return t.Label
  8781. }
  8782. // GetMilestone returns the Milestone field.
  8783. func (t *Timeline) GetMilestone() *Milestone {
  8784. if t == nil {
  8785. return nil
  8786. }
  8787. return t.Milestone
  8788. }
  8789. // GetRename returns the Rename field.
  8790. func (t *Timeline) GetRename() *Rename {
  8791. if t == nil {
  8792. return nil
  8793. }
  8794. return t.Rename
  8795. }
  8796. // GetSource returns the Source field.
  8797. func (t *Timeline) GetSource() *Source {
  8798. if t == nil {
  8799. return nil
  8800. }
  8801. return t.Source
  8802. }
  8803. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  8804. func (t *Timeline) GetURL() string {
  8805. if t == nil || t.URL == nil {
  8806. return ""
  8807. }
  8808. return *t.URL
  8809. }
  8810. // GetCount returns the Count field if it's non-nil, zero value otherwise.
  8811. func (t *TrafficClones) GetCount() int {
  8812. if t == nil || t.Count == nil {
  8813. return 0
  8814. }
  8815. return *t.Count
  8816. }
  8817. // GetUniques returns the Uniques field if it's non-nil, zero value otherwise.
  8818. func (t *TrafficClones) GetUniques() int {
  8819. if t == nil || t.Uniques == nil {
  8820. return 0
  8821. }
  8822. return *t.Uniques
  8823. }
  8824. // GetCount returns the Count field if it's non-nil, zero value otherwise.
  8825. func (t *TrafficData) GetCount() int {
  8826. if t == nil || t.Count == nil {
  8827. return 0
  8828. }
  8829. return *t.Count
  8830. }
  8831. // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise.
  8832. func (t *TrafficData) GetTimestamp() Timestamp {
  8833. if t == nil || t.Timestamp == nil {
  8834. return Timestamp{}
  8835. }
  8836. return *t.Timestamp
  8837. }
  8838. // GetUniques returns the Uniques field if it's non-nil, zero value otherwise.
  8839. func (t *TrafficData) GetUniques() int {
  8840. if t == nil || t.Uniques == nil {
  8841. return 0
  8842. }
  8843. return *t.Uniques
  8844. }
  8845. // GetCount returns the Count field if it's non-nil, zero value otherwise.
  8846. func (t *TrafficPath) GetCount() int {
  8847. if t == nil || t.Count == nil {
  8848. return 0
  8849. }
  8850. return *t.Count
  8851. }
  8852. // GetPath returns the Path field if it's non-nil, zero value otherwise.
  8853. func (t *TrafficPath) GetPath() string {
  8854. if t == nil || t.Path == nil {
  8855. return ""
  8856. }
  8857. return *t.Path
  8858. }
  8859. // GetTitle returns the Title field if it's non-nil, zero value otherwise.
  8860. func (t *TrafficPath) GetTitle() string {
  8861. if t == nil || t.Title == nil {
  8862. return ""
  8863. }
  8864. return *t.Title
  8865. }
  8866. // GetUniques returns the Uniques field if it's non-nil, zero value otherwise.
  8867. func (t *TrafficPath) GetUniques() int {
  8868. if t == nil || t.Uniques == nil {
  8869. return 0
  8870. }
  8871. return *t.Uniques
  8872. }
  8873. // GetCount returns the Count field if it's non-nil, zero value otherwise.
  8874. func (t *TrafficReferrer) GetCount() int {
  8875. if t == nil || t.Count == nil {
  8876. return 0
  8877. }
  8878. return *t.Count
  8879. }
  8880. // GetReferrer returns the Referrer field if it's non-nil, zero value otherwise.
  8881. func (t *TrafficReferrer) GetReferrer() string {
  8882. if t == nil || t.Referrer == nil {
  8883. return ""
  8884. }
  8885. return *t.Referrer
  8886. }
  8887. // GetUniques returns the Uniques field if it's non-nil, zero value otherwise.
  8888. func (t *TrafficReferrer) GetUniques() int {
  8889. if t == nil || t.Uniques == nil {
  8890. return 0
  8891. }
  8892. return *t.Uniques
  8893. }
  8894. // GetCount returns the Count field if it's non-nil, zero value otherwise.
  8895. func (t *TrafficViews) GetCount() int {
  8896. if t == nil || t.Count == nil {
  8897. return 0
  8898. }
  8899. return *t.Count
  8900. }
  8901. // GetUniques returns the Uniques field if it's non-nil, zero value otherwise.
  8902. func (t *TrafficViews) GetUniques() int {
  8903. if t == nil || t.Uniques == nil {
  8904. return 0
  8905. }
  8906. return *t.Uniques
  8907. }
  8908. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  8909. func (t *Tree) GetSHA() string {
  8910. if t == nil || t.SHA == nil {
  8911. return ""
  8912. }
  8913. return *t.SHA
  8914. }
  8915. // GetContent returns the Content field if it's non-nil, zero value otherwise.
  8916. func (t *TreeEntry) GetContent() string {
  8917. if t == nil || t.Content == nil {
  8918. return ""
  8919. }
  8920. return *t.Content
  8921. }
  8922. // GetMode returns the Mode field if it's non-nil, zero value otherwise.
  8923. func (t *TreeEntry) GetMode() string {
  8924. if t == nil || t.Mode == nil {
  8925. return ""
  8926. }
  8927. return *t.Mode
  8928. }
  8929. // GetPath returns the Path field if it's non-nil, zero value otherwise.
  8930. func (t *TreeEntry) GetPath() string {
  8931. if t == nil || t.Path == nil {
  8932. return ""
  8933. }
  8934. return *t.Path
  8935. }
  8936. // GetSHA returns the SHA field if it's non-nil, zero value otherwise.
  8937. func (t *TreeEntry) GetSHA() string {
  8938. if t == nil || t.SHA == nil {
  8939. return ""
  8940. }
  8941. return *t.SHA
  8942. }
  8943. // GetSize returns the Size field if it's non-nil, zero value otherwise.
  8944. func (t *TreeEntry) GetSize() int {
  8945. if t == nil || t.Size == nil {
  8946. return 0
  8947. }
  8948. return *t.Size
  8949. }
  8950. // GetType returns the Type field if it's non-nil, zero value otherwise.
  8951. func (t *TreeEntry) GetType() string {
  8952. if t == nil || t.Type == nil {
  8953. return ""
  8954. }
  8955. return *t.Type
  8956. }
  8957. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  8958. func (t *TreeEntry) GetURL() string {
  8959. if t == nil || t.URL == nil {
  8960. return ""
  8961. }
  8962. return *t.URL
  8963. }
  8964. // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.
  8965. func (u *User) GetAvatarURL() string {
  8966. if u == nil || u.AvatarURL == nil {
  8967. return ""
  8968. }
  8969. return *u.AvatarURL
  8970. }
  8971. // GetBio returns the Bio field if it's non-nil, zero value otherwise.
  8972. func (u *User) GetBio() string {
  8973. if u == nil || u.Bio == nil {
  8974. return ""
  8975. }
  8976. return *u.Bio
  8977. }
  8978. // GetBlog returns the Blog field if it's non-nil, zero value otherwise.
  8979. func (u *User) GetBlog() string {
  8980. if u == nil || u.Blog == nil {
  8981. return ""
  8982. }
  8983. return *u.Blog
  8984. }
  8985. // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise.
  8986. func (u *User) GetCollaborators() int {
  8987. if u == nil || u.Collaborators == nil {
  8988. return 0
  8989. }
  8990. return *u.Collaborators
  8991. }
  8992. // GetCompany returns the Company field if it's non-nil, zero value otherwise.
  8993. func (u *User) GetCompany() string {
  8994. if u == nil || u.Company == nil {
  8995. return ""
  8996. }
  8997. return *u.Company
  8998. }
  8999. // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
  9000. func (u *User) GetCreatedAt() Timestamp {
  9001. if u == nil || u.CreatedAt == nil {
  9002. return Timestamp{}
  9003. }
  9004. return *u.CreatedAt
  9005. }
  9006. // GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise.
  9007. func (u *User) GetDiskUsage() int {
  9008. if u == nil || u.DiskUsage == nil {
  9009. return 0
  9010. }
  9011. return *u.DiskUsage
  9012. }
  9013. // GetEmail returns the Email field if it's non-nil, zero value otherwise.
  9014. func (u *User) GetEmail() string {
  9015. if u == nil || u.Email == nil {
  9016. return ""
  9017. }
  9018. return *u.Email
  9019. }
  9020. // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.
  9021. func (u *User) GetEventsURL() string {
  9022. if u == nil || u.EventsURL == nil {
  9023. return ""
  9024. }
  9025. return *u.EventsURL
  9026. }
  9027. // GetFollowers returns the Followers field if it's non-nil, zero value otherwise.
  9028. func (u *User) GetFollowers() int {
  9029. if u == nil || u.Followers == nil {
  9030. return 0
  9031. }
  9032. return *u.Followers
  9033. }
  9034. // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise.
  9035. func (u *User) GetFollowersURL() string {
  9036. if u == nil || u.FollowersURL == nil {
  9037. return ""
  9038. }
  9039. return *u.FollowersURL
  9040. }
  9041. // GetFollowing returns the Following field if it's non-nil, zero value otherwise.
  9042. func (u *User) GetFollowing() int {
  9043. if u == nil || u.Following == nil {
  9044. return 0
  9045. }
  9046. return *u.Following
  9047. }
  9048. // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise.
  9049. func (u *User) GetFollowingURL() string {
  9050. if u == nil || u.FollowingURL == nil {
  9051. return ""
  9052. }
  9053. return *u.FollowingURL
  9054. }
  9055. // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise.
  9056. func (u *User) GetGistsURL() string {
  9057. if u == nil || u.GistsURL == nil {
  9058. return ""
  9059. }
  9060. return *u.GistsURL
  9061. }
  9062. // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise.
  9063. func (u *User) GetGravatarID() string {
  9064. if u == nil || u.GravatarID == nil {
  9065. return ""
  9066. }
  9067. return *u.GravatarID
  9068. }
  9069. // GetHireable returns the Hireable field if it's non-nil, zero value otherwise.
  9070. func (u *User) GetHireable() bool {
  9071. if u == nil || u.Hireable == nil {
  9072. return false
  9073. }
  9074. return *u.Hireable
  9075. }
  9076. // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
  9077. func (u *User) GetHTMLURL() string {
  9078. if u == nil || u.HTMLURL == nil {
  9079. return ""
  9080. }
  9081. return *u.HTMLURL
  9082. }
  9083. // GetID returns the ID field if it's non-nil, zero value otherwise.
  9084. func (u *User) GetID() int64 {
  9085. if u == nil || u.ID == nil {
  9086. return 0
  9087. }
  9088. return *u.ID
  9089. }
  9090. // GetLocation returns the Location field if it's non-nil, zero value otherwise.
  9091. func (u *User) GetLocation() string {
  9092. if u == nil || u.Location == nil {
  9093. return ""
  9094. }
  9095. return *u.Location
  9096. }
  9097. // GetLogin returns the Login field if it's non-nil, zero value otherwise.
  9098. func (u *User) GetLogin() string {
  9099. if u == nil || u.Login == nil {
  9100. return ""
  9101. }
  9102. return *u.Login
  9103. }
  9104. // GetName returns the Name field if it's non-nil, zero value otherwise.
  9105. func (u *User) GetName() string {
  9106. if u == nil || u.Name == nil {
  9107. return ""
  9108. }
  9109. return *u.Name
  9110. }
  9111. // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise.
  9112. func (u *User) GetOrganizationsURL() string {
  9113. if u == nil || u.OrganizationsURL == nil {
  9114. return ""
  9115. }
  9116. return *u.OrganizationsURL
  9117. }
  9118. // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise.
  9119. func (u *User) GetOwnedPrivateRepos() int {
  9120. if u == nil || u.OwnedPrivateRepos == nil {
  9121. return 0
  9122. }
  9123. return *u.OwnedPrivateRepos
  9124. }
  9125. // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise.
  9126. func (u *User) GetPermissions() map[string]bool {
  9127. if u == nil || u.Permissions == nil {
  9128. return map[string]bool{}
  9129. }
  9130. return *u.Permissions
  9131. }
  9132. // GetPlan returns the Plan field.
  9133. func (u *User) GetPlan() *Plan {
  9134. if u == nil {
  9135. return nil
  9136. }
  9137. return u.Plan
  9138. }
  9139. // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise.
  9140. func (u *User) GetPrivateGists() int {
  9141. if u == nil || u.PrivateGists == nil {
  9142. return 0
  9143. }
  9144. return *u.PrivateGists
  9145. }
  9146. // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise.
  9147. func (u *User) GetPublicGists() int {
  9148. if u == nil || u.PublicGists == nil {
  9149. return 0
  9150. }
  9151. return *u.PublicGists
  9152. }
  9153. // GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise.
  9154. func (u *User) GetPublicRepos() int {
  9155. if u == nil || u.PublicRepos == nil {
  9156. return 0
  9157. }
  9158. return *u.PublicRepos
  9159. }
  9160. // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise.
  9161. func (u *User) GetReceivedEventsURL() string {
  9162. if u == nil || u.ReceivedEventsURL == nil {
  9163. return ""
  9164. }
  9165. return *u.ReceivedEventsURL
  9166. }
  9167. // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise.
  9168. func (u *User) GetReposURL() string {
  9169. if u == nil || u.ReposURL == nil {
  9170. return ""
  9171. }
  9172. return *u.ReposURL
  9173. }
  9174. // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise.
  9175. func (u *User) GetSiteAdmin() bool {
  9176. if u == nil || u.SiteAdmin == nil {
  9177. return false
  9178. }
  9179. return *u.SiteAdmin
  9180. }
  9181. // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise.
  9182. func (u *User) GetStarredURL() string {
  9183. if u == nil || u.StarredURL == nil {
  9184. return ""
  9185. }
  9186. return *u.StarredURL
  9187. }
  9188. // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise.
  9189. func (u *User) GetSubscriptionsURL() string {
  9190. if u == nil || u.SubscriptionsURL == nil {
  9191. return ""
  9192. }
  9193. return *u.SubscriptionsURL
  9194. }
  9195. // GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise.
  9196. func (u *User) GetSuspendedAt() Timestamp {
  9197. if u == nil || u.SuspendedAt == nil {
  9198. return Timestamp{}
  9199. }
  9200. return *u.SuspendedAt
  9201. }
  9202. // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise.
  9203. func (u *User) GetTotalPrivateRepos() int {
  9204. if u == nil || u.TotalPrivateRepos == nil {
  9205. return 0
  9206. }
  9207. return *u.TotalPrivateRepos
  9208. }
  9209. // GetType returns the Type field if it's non-nil, zero value otherwise.
  9210. func (u *User) GetType() string {
  9211. if u == nil || u.Type == nil {
  9212. return ""
  9213. }
  9214. return *u.Type
  9215. }
  9216. // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
  9217. func (u *User) GetUpdatedAt() Timestamp {
  9218. if u == nil || u.UpdatedAt == nil {
  9219. return Timestamp{}
  9220. }
  9221. return *u.UpdatedAt
  9222. }
  9223. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  9224. func (u *User) GetURL() string {
  9225. if u == nil || u.URL == nil {
  9226. return ""
  9227. }
  9228. return *u.URL
  9229. }
  9230. // GetEmail returns the Email field if it's non-nil, zero value otherwise.
  9231. func (u *UserEmail) GetEmail() string {
  9232. if u == nil || u.Email == nil {
  9233. return ""
  9234. }
  9235. return *u.Email
  9236. }
  9237. // GetPrimary returns the Primary field if it's non-nil, zero value otherwise.
  9238. func (u *UserEmail) GetPrimary() bool {
  9239. if u == nil || u.Primary == nil {
  9240. return false
  9241. }
  9242. return *u.Primary
  9243. }
  9244. // GetVerified returns the Verified field if it's non-nil, zero value otherwise.
  9245. func (u *UserEmail) GetVerified() bool {
  9246. if u == nil || u.Verified == nil {
  9247. return false
  9248. }
  9249. return *u.Verified
  9250. }
  9251. // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.
  9252. func (u *UserLDAPMapping) GetAvatarURL() string {
  9253. if u == nil || u.AvatarURL == nil {
  9254. return ""
  9255. }
  9256. return *u.AvatarURL
  9257. }
  9258. // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.
  9259. func (u *UserLDAPMapping) GetEventsURL() string {
  9260. if u == nil || u.EventsURL == nil {
  9261. return ""
  9262. }
  9263. return *u.EventsURL
  9264. }
  9265. // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise.
  9266. func (u *UserLDAPMapping) GetFollowersURL() string {
  9267. if u == nil || u.FollowersURL == nil {
  9268. return ""
  9269. }
  9270. return *u.FollowersURL
  9271. }
  9272. // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise.
  9273. func (u *UserLDAPMapping) GetFollowingURL() string {
  9274. if u == nil || u.FollowingURL == nil {
  9275. return ""
  9276. }
  9277. return *u.FollowingURL
  9278. }
  9279. // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise.
  9280. func (u *UserLDAPMapping) GetGistsURL() string {
  9281. if u == nil || u.GistsURL == nil {
  9282. return ""
  9283. }
  9284. return *u.GistsURL
  9285. }
  9286. // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise.
  9287. func (u *UserLDAPMapping) GetGravatarID() string {
  9288. if u == nil || u.GravatarID == nil {
  9289. return ""
  9290. }
  9291. return *u.GravatarID
  9292. }
  9293. // GetID returns the ID field if it's non-nil, zero value otherwise.
  9294. func (u *UserLDAPMapping) GetID() int64 {
  9295. if u == nil || u.ID == nil {
  9296. return 0
  9297. }
  9298. return *u.ID
  9299. }
  9300. // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise.
  9301. func (u *UserLDAPMapping) GetLDAPDN() string {
  9302. if u == nil || u.LDAPDN == nil {
  9303. return ""
  9304. }
  9305. return *u.LDAPDN
  9306. }
  9307. // GetLogin returns the Login field if it's non-nil, zero value otherwise.
  9308. func (u *UserLDAPMapping) GetLogin() string {
  9309. if u == nil || u.Login == nil {
  9310. return ""
  9311. }
  9312. return *u.Login
  9313. }
  9314. // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise.
  9315. func (u *UserLDAPMapping) GetOrganizationsURL() string {
  9316. if u == nil || u.OrganizationsURL == nil {
  9317. return ""
  9318. }
  9319. return *u.OrganizationsURL
  9320. }
  9321. // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise.
  9322. func (u *UserLDAPMapping) GetReceivedEventsURL() string {
  9323. if u == nil || u.ReceivedEventsURL == nil {
  9324. return ""
  9325. }
  9326. return *u.ReceivedEventsURL
  9327. }
  9328. // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise.
  9329. func (u *UserLDAPMapping) GetReposURL() string {
  9330. if u == nil || u.ReposURL == nil {
  9331. return ""
  9332. }
  9333. return *u.ReposURL
  9334. }
  9335. // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise.
  9336. func (u *UserLDAPMapping) GetSiteAdmin() bool {
  9337. if u == nil || u.SiteAdmin == nil {
  9338. return false
  9339. }
  9340. return *u.SiteAdmin
  9341. }
  9342. // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise.
  9343. func (u *UserLDAPMapping) GetStarredURL() string {
  9344. if u == nil || u.StarredURL == nil {
  9345. return ""
  9346. }
  9347. return *u.StarredURL
  9348. }
  9349. // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise.
  9350. func (u *UserLDAPMapping) GetSubscriptionsURL() string {
  9351. if u == nil || u.SubscriptionsURL == nil {
  9352. return ""
  9353. }
  9354. return *u.SubscriptionsURL
  9355. }
  9356. // GetType returns the Type field if it's non-nil, zero value otherwise.
  9357. func (u *UserLDAPMapping) GetType() string {
  9358. if u == nil || u.Type == nil {
  9359. return ""
  9360. }
  9361. return *u.Type
  9362. }
  9363. // GetURL returns the URL field if it's non-nil, zero value otherwise.
  9364. func (u *UserLDAPMapping) GetURL() string {
  9365. if u == nil || u.URL == nil {
  9366. return ""
  9367. }
  9368. return *u.URL
  9369. }
  9370. // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.
  9371. func (u *UsersSearchResult) GetIncompleteResults() bool {
  9372. if u == nil || u.IncompleteResults == nil {
  9373. return false
  9374. }
  9375. return *u.IncompleteResults
  9376. }
  9377. // GetTotal returns the Total field if it's non-nil, zero value otherwise.
  9378. func (u *UsersSearchResult) GetTotal() int {
  9379. if u == nil || u.Total == nil {
  9380. return 0
  9381. }
  9382. return *u.Total
  9383. }
  9384. // GetAdminUsers returns the AdminUsers field if it's non-nil, zero value otherwise.
  9385. func (u *UserStats) GetAdminUsers() int {
  9386. if u == nil || u.AdminUsers == nil {
  9387. return 0
  9388. }
  9389. return *u.AdminUsers
  9390. }
  9391. // GetSuspendedUsers returns the SuspendedUsers field if it's non-nil, zero value otherwise.
  9392. func (u *UserStats) GetSuspendedUsers() int {
  9393. if u == nil || u.SuspendedUsers == nil {
  9394. return 0
  9395. }
  9396. return *u.SuspendedUsers
  9397. }
  9398. // GetTotalUsers returns the TotalUsers field if it's non-nil, zero value otherwise.
  9399. func (u *UserStats) GetTotalUsers() int {
  9400. if u == nil || u.TotalUsers == nil {
  9401. return 0
  9402. }
  9403. return *u.TotalUsers
  9404. }
  9405. // GetAction returns the Action field if it's non-nil, zero value otherwise.
  9406. func (w *WatchEvent) GetAction() string {
  9407. if w == nil || w.Action == nil {
  9408. return ""
  9409. }
  9410. return *w.Action
  9411. }
  9412. // GetInstallation returns the Installation field.
  9413. func (w *WatchEvent) GetInstallation() *Installation {
  9414. if w == nil {
  9415. return nil
  9416. }
  9417. return w.Installation
  9418. }
  9419. // GetRepo returns the Repo field.
  9420. func (w *WatchEvent) GetRepo() *Repository {
  9421. if w == nil {
  9422. return nil
  9423. }
  9424. return w.Repo
  9425. }
  9426. // GetSender returns the Sender field.
  9427. func (w *WatchEvent) GetSender() *User {
  9428. if w == nil {
  9429. return nil
  9430. }
  9431. return w.Sender
  9432. }
  9433. // GetEmail returns the Email field if it's non-nil, zero value otherwise.
  9434. func (w *WebHookAuthor) GetEmail() string {
  9435. if w == nil || w.Email == nil {
  9436. return ""
  9437. }
  9438. return *w.Email
  9439. }
  9440. // GetName returns the Name field if it's non-nil, zero value otherwise.
  9441. func (w *WebHookAuthor) GetName() string {
  9442. if w == nil || w.Name == nil {
  9443. return ""
  9444. }
  9445. return *w.Name
  9446. }
  9447. // GetUsername returns the Username field if it's non-nil, zero value otherwise.
  9448. func (w *WebHookAuthor) GetUsername() string {
  9449. if w == nil || w.Username == nil {
  9450. return ""
  9451. }
  9452. return *w.Username
  9453. }
  9454. // GetAuthor returns the Author field.
  9455. func (w *WebHookCommit) GetAuthor() *WebHookAuthor {
  9456. if w == nil {
  9457. return nil
  9458. }
  9459. return w.Author
  9460. }
  9461. // GetCommitter returns the Committer field.
  9462. func (w *WebHookCommit) GetCommitter() *WebHookAuthor {
  9463. if w == nil {
  9464. return nil
  9465. }
  9466. return w.Committer
  9467. }
  9468. // GetDistinct returns the Distinct field if it's non-nil, zero value otherwise.
  9469. func (w *WebHookCommit) GetDistinct() bool {
  9470. if w == nil || w.Distinct == nil {
  9471. return false
  9472. }
  9473. return *w.Distinct
  9474. }
  9475. // GetID returns the ID field if it's non-nil, zero value otherwise.
  9476. func (w *WebHookCommit) GetID() string {
  9477. if w == nil || w.ID == nil {
  9478. return ""
  9479. }
  9480. return *w.ID
  9481. }
  9482. // GetMessage returns the Message field if it's non-nil, zero value otherwise.
  9483. func (w *WebHookCommit) GetMessage() string {
  9484. if w == nil || w.Message == nil {
  9485. return ""
  9486. }
  9487. return *w.Message
  9488. }
  9489. // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise.
  9490. func (w *WebHookCommit) GetTimestamp() time.Time {
  9491. if w == nil || w.Timestamp == nil {
  9492. return time.Time{}
  9493. }
  9494. return *w.Timestamp
  9495. }
  9496. // GetAfter returns the After field if it's non-nil, zero value otherwise.
  9497. func (w *WebHookPayload) GetAfter() string {
  9498. if w == nil || w.After == nil {
  9499. return ""
  9500. }
  9501. return *w.After
  9502. }
  9503. // GetBefore returns the Before field if it's non-nil, zero value otherwise.
  9504. func (w *WebHookPayload) GetBefore() string {
  9505. if w == nil || w.Before == nil {
  9506. return ""
  9507. }
  9508. return *w.Before
  9509. }
  9510. // GetCompare returns the Compare field if it's non-nil, zero value otherwise.
  9511. func (w *WebHookPayload) GetCompare() string {
  9512. if w == nil || w.Compare == nil {
  9513. return ""
  9514. }
  9515. return *w.Compare
  9516. }
  9517. // GetCreated returns the Created field if it's non-nil, zero value otherwise.
  9518. func (w *WebHookPayload) GetCreated() bool {
  9519. if w == nil || w.Created == nil {
  9520. return false
  9521. }
  9522. return *w.Created
  9523. }
  9524. // GetDeleted returns the Deleted field if it's non-nil, zero value otherwise.
  9525. func (w *WebHookPayload) GetDeleted() bool {
  9526. if w == nil || w.Deleted == nil {
  9527. return false
  9528. }
  9529. return *w.Deleted
  9530. }
  9531. // GetForced returns the Forced field if it's non-nil, zero value otherwise.
  9532. func (w *WebHookPayload) GetForced() bool {
  9533. if w == nil || w.Forced == nil {
  9534. return false
  9535. }
  9536. return *w.Forced
  9537. }
  9538. // GetHeadCommit returns the HeadCommit field.
  9539. func (w *WebHookPayload) GetHeadCommit() *WebHookCommit {
  9540. if w == nil {
  9541. return nil
  9542. }
  9543. return w.HeadCommit
  9544. }
  9545. // GetPusher returns the Pusher field.
  9546. func (w *WebHookPayload) GetPusher() *User {
  9547. if w == nil {
  9548. return nil
  9549. }
  9550. return w.Pusher
  9551. }
  9552. // GetRef returns the Ref field if it's non-nil, zero value otherwise.
  9553. func (w *WebHookPayload) GetRef() string {
  9554. if w == nil || w.Ref == nil {
  9555. return ""
  9556. }
  9557. return *w.Ref
  9558. }
  9559. // GetRepo returns the Repo field.
  9560. func (w *WebHookPayload) GetRepo() *Repository {
  9561. if w == nil {
  9562. return nil
  9563. }
  9564. return w.Repo
  9565. }
  9566. // GetSender returns the Sender field.
  9567. func (w *WebHookPayload) GetSender() *User {
  9568. if w == nil {
  9569. return nil
  9570. }
  9571. return w.Sender
  9572. }
  9573. // GetTotal returns the Total field if it's non-nil, zero value otherwise.
  9574. func (w *WeeklyCommitActivity) GetTotal() int {
  9575. if w == nil || w.Total == nil {
  9576. return 0
  9577. }
  9578. return *w.Total
  9579. }
  9580. // GetWeek returns the Week field if it's non-nil, zero value otherwise.
  9581. func (w *WeeklyCommitActivity) GetWeek() Timestamp {
  9582. if w == nil || w.Week == nil {
  9583. return Timestamp{}
  9584. }
  9585. return *w.Week
  9586. }
  9587. // GetAdditions returns the Additions field if it's non-nil, zero value otherwise.
  9588. func (w *WeeklyStats) GetAdditions() int {
  9589. if w == nil || w.Additions == nil {
  9590. return 0
  9591. }
  9592. return *w.Additions
  9593. }
  9594. // GetCommits returns the Commits field if it's non-nil, zero value otherwise.
  9595. func (w *WeeklyStats) GetCommits() int {
  9596. if w == nil || w.Commits == nil {
  9597. return 0
  9598. }
  9599. return *w.Commits
  9600. }
  9601. // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise.
  9602. func (w *WeeklyStats) GetDeletions() int {
  9603. if w == nil || w.Deletions == nil {
  9604. return 0
  9605. }
  9606. return *w.Deletions
  9607. }
  9608. // GetWeek returns the Week field if it's non-nil, zero value otherwise.
  9609. func (w *WeeklyStats) GetWeek() Timestamp {
  9610. if w == nil || w.Week == nil {
  9611. return Timestamp{}
  9612. }
  9613. return *w.Week
  9614. }