You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

github-accessors.go 286KB

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