github-accessors.go 253 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990
  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. }