Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
12918 lines (11301 sloc) 299 KB
// Copyright 2017 The go-github AUTHORS. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by gen-accessors; DO NOT EDIT.
package github
import (
"encoding/json"
"time"
)
// GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise.
func (a *AbuseRateLimitError) GetRetryAfter() time.Duration {
if a == nil || a.RetryAfter == nil {
return 0
}
return *a.RetryAfter
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (a *AdminEnforcement) GetURL() string {
if a == nil || a.URL == nil {
return ""
}
return *a.URL
}
// GetComments returns the Comments field.
func (a *AdminStats) GetComments() *CommentStats {
if a == nil {
return nil
}
return a.Comments
}
// GetGists returns the Gists field.
func (a *AdminStats) GetGists() *GistStats {
if a == nil {
return nil
}
return a.Gists
}
// GetHooks returns the Hooks field.
func (a *AdminStats) GetHooks() *HookStats {
if a == nil {
return nil
}
return a.Hooks
}
// GetIssues returns the Issues field.
func (a *AdminStats) GetIssues() *IssueStats {
if a == nil {
return nil
}
return a.Issues
}
// GetMilestones returns the Milestones field.
func (a *AdminStats) GetMilestones() *MilestoneStats {
if a == nil {
return nil
}
return a.Milestones
}
// GetOrgs returns the Orgs field.
func (a *AdminStats) GetOrgs() *OrgStats {
if a == nil {
return nil
}
return a.Orgs
}
// GetPages returns the Pages field.
func (a *AdminStats) GetPages() *PageStats {
if a == nil {
return nil
}
return a.Pages
}
// GetPulls returns the Pulls field.
func (a *AdminStats) GetPulls() *PullStats {
if a == nil {
return nil
}
return a.Pulls
}
// GetRepos returns the Repos field.
func (a *AdminStats) GetRepos() *RepoStats {
if a == nil {
return nil
}
return a.Repos
}
// GetUsers returns the Users field.
func (a *AdminStats) GetUsers() *UserStats {
if a == nil {
return nil
}
return a.Users
}
// GetVerifiablePasswordAuthentication returns the VerifiablePasswordAuthentication field if it's non-nil, zero value otherwise.
func (a *APIMeta) GetVerifiablePasswordAuthentication() bool {
if a == nil || a.VerifiablePasswordAuthentication == nil {
return false
}
return *a.VerifiablePasswordAuthentication
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (a *App) GetCreatedAt() Timestamp {
if a == nil || a.CreatedAt == nil {
return Timestamp{}
}
return *a.CreatedAt
}
// GetDescription returns the Description field if it's non-nil, zero value otherwise.
func (a *App) GetDescription() string {
if a == nil || a.Description == nil {
return ""
}
return *a.Description
}
// GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise.
func (a *App) GetExternalURL() string {
if a == nil || a.ExternalURL == nil {
return ""
}
return *a.ExternalURL
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (a *App) GetHTMLURL() string {
if a == nil || a.HTMLURL == nil {
return ""
}
return *a.HTMLURL
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (a *App) GetID() int64 {
if a == nil || a.ID == nil {
return 0
}
return *a.ID
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (a *App) GetName() string {
if a == nil || a.Name == nil {
return ""
}
return *a.Name
}
// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
func (a *App) GetNodeID() string {
if a == nil || a.NodeID == nil {
return ""
}
return *a.NodeID
}
// GetOwner returns the Owner field.
func (a *App) GetOwner() *User {
if a == nil {
return nil
}
return a.Owner
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (a *App) GetUpdatedAt() Timestamp {
if a == nil || a.UpdatedAt == nil {
return Timestamp{}
}
return *a.UpdatedAt
}
// GetBody returns the Body field if it's non-nil, zero value otherwise.
func (a *Attachment) GetBody() string {
if a == nil || a.Body == nil {
return ""
}
return *a.Body
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (a *Attachment) GetID() int64 {
if a == nil || a.ID == nil {
return 0
}
return *a.ID
}
// GetTitle returns the Title field if it's non-nil, zero value otherwise.
func (a *Attachment) GetTitle() string {
if a == nil || a.Title == nil {
return ""
}
return *a.Title
}
// GetApp returns the App field.
func (a *Authorization) GetApp() *AuthorizationApp {
if a == nil {
return nil
}
return a.App
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (a *Authorization) GetCreatedAt() Timestamp {
if a == nil || a.CreatedAt == nil {
return Timestamp{}
}
return *a.CreatedAt
}
// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.
func (a *Authorization) GetFingerprint() string {
if a == nil || a.Fingerprint == nil {
return ""
}
return *a.Fingerprint
}
// GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise.
func (a *Authorization) GetHashedToken() string {
if a == nil || a.HashedToken == nil {
return ""
}
return *a.HashedToken
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (a *Authorization) GetID() int64 {
if a == nil || a.ID == nil {
return 0
}
return *a.ID
}
// GetNote returns the Note field if it's non-nil, zero value otherwise.
func (a *Authorization) GetNote() string {
if a == nil || a.Note == nil {
return ""
}
return *a.Note
}
// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.
func (a *Authorization) GetNoteURL() string {
if a == nil || a.NoteURL == nil {
return ""
}
return *a.NoteURL
}
// GetToken returns the Token field if it's non-nil, zero value otherwise.
func (a *Authorization) GetToken() string {
if a == nil || a.Token == nil {
return ""
}
return *a.Token
}
// GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise.
func (a *Authorization) GetTokenLastEight() string {
if a == nil || a.TokenLastEight == nil {
return ""
}
return *a.TokenLastEight
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (a *Authorization) GetUpdatedAt() Timestamp {
if a == nil || a.UpdatedAt == nil {
return Timestamp{}
}
return *a.UpdatedAt
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (a *Authorization) GetURL() string {
if a == nil || a.URL == nil {
return ""
}
return *a.URL
}
// GetUser returns the User field.
func (a *Authorization) GetUser() *User {
if a == nil {
return nil
}
return a.User
}
// GetClientID returns the ClientID field if it's non-nil, zero value otherwise.
func (a *AuthorizationApp) GetClientID() string {
if a == nil || a.ClientID == nil {
return ""
}
return *a.ClientID
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (a *AuthorizationApp) GetName() string {
if a == nil || a.Name == nil {
return ""
}
return *a.Name
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (a *AuthorizationApp) GetURL() string {
if a == nil || a.URL == nil {
return ""
}
return *a.URL
}
// GetClientID returns the ClientID field if it's non-nil, zero value otherwise.
func (a *AuthorizationRequest) GetClientID() string {
if a == nil || a.ClientID == nil {
return ""
}
return *a.ClientID
}
// GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise.
func (a *AuthorizationRequest) GetClientSecret() string {
if a == nil || a.ClientSecret == nil {
return ""
}
return *a.ClientSecret
}
// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.
func (a *AuthorizationRequest) GetFingerprint() string {
if a == nil || a.Fingerprint == nil {
return ""
}
return *a.Fingerprint
}
// GetNote returns the Note field if it's non-nil, zero value otherwise.
func (a *AuthorizationRequest) GetNote() string {
if a == nil || a.Note == nil {
return ""
}
return *a.Note
}
// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.
func (a *AuthorizationRequest) GetNoteURL() string {
if a == nil || a.NoteURL == nil {
return ""
}
return *a.NoteURL
}
// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.
func (a *AuthorizationUpdateRequest) GetFingerprint() string {
if a == nil || a.Fingerprint == nil {
return ""
}
return *a.Fingerprint
}
// GetNote returns the Note field if it's non-nil, zero value otherwise.
func (a *AuthorizationUpdateRequest) GetNote() string {
if a == nil || a.Note == nil {
return ""
}
return *a.Note
}
// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.
func (a *AuthorizationUpdateRequest) GetNoteURL() string {
if a == nil || a.NoteURL == nil {
return ""
}
return *a.NoteURL
}
// GetAppID returns the AppID field if it's non-nil, zero value otherwise.
func (a *AutoTriggerCheck) GetAppID() int64 {
if a == nil || a.AppID == nil {
return 0
}
return *a.AppID
}
// GetSetting returns the Setting field if it's non-nil, zero value otherwise.
func (a *AutoTriggerCheck) GetSetting() bool {
if a == nil || a.Setting == nil {
return false
}
return *a.Setting
}
// GetContent returns the Content field if it's non-nil, zero value otherwise.
func (b *Blob) GetContent() string {
if b == nil || b.Content == nil {
return ""
}
return *b.Content
}
// GetEncoding returns the Encoding field if it's non-nil, zero value otherwise.
func (b *Blob) GetEncoding() string {
if b == nil || b.Encoding == nil {
return ""
}
return *b.Encoding
}
// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
func (b *Blob) GetNodeID() string {
if b == nil || b.NodeID == nil {
return ""
}
return *b.NodeID
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (b *Blob) GetSHA() string {
if b == nil || b.SHA == nil {
return ""
}
return *b.SHA
}
// GetSize returns the Size field if it's non-nil, zero value otherwise.
func (b *Blob) GetSize() int {
if b == nil || b.Size == nil {
return 0
}
return *b.Size
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (b *Blob) GetURL() string {
if b == nil || b.URL == nil {
return ""
}
return *b.URL
}
// GetCommit returns the Commit field.
func (b *Branch) GetCommit() *RepositoryCommit {
if b == nil {
return nil
}
return b.Commit
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (b *Branch) GetName() string {
if b == nil || b.Name == nil {
return ""
}
return *b.Name
}
// GetProtected returns the Protected field if it's non-nil, zero value otherwise.
func (b *Branch) GetProtected() bool {
if b == nil || b.Protected == nil {
return false
}
return *b.Protected
}
// GetCommit returns the Commit field.
func (b *BranchCommit) GetCommit() *Commit {
if b == nil {
return nil
}
return b.Commit
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (b *BranchCommit) GetName() string {
if b == nil || b.Name == nil {
return ""
}
return *b.Name
}
// GetProtected returns the Protected field if it's non-nil, zero value otherwise.
func (b *BranchCommit) GetProtected() string {
if b == nil || b.Protected == nil {
return ""
}
return *b.Protected
}
// GetApp returns the App field.
func (c *CheckRun) GetApp() *App {
if c == nil {
return nil
}
return c.App
}
// GetCheckSuite returns the CheckSuite field.
func (c *CheckRun) GetCheckSuite() *CheckSuite {
if c == nil {
return nil
}
return c.CheckSuite
}
// GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetCompletedAt() Timestamp {
if c == nil || c.CompletedAt == nil {
return Timestamp{}
}
return *c.CompletedAt
}
// GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetConclusion() string {
if c == nil || c.Conclusion == nil {
return ""
}
return *c.Conclusion
}
// GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetDetailsURL() string {
if c == nil || c.DetailsURL == nil {
return ""
}
return *c.DetailsURL
}
// GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetExternalID() string {
if c == nil || c.ExternalID == nil {
return ""
}
return *c.ExternalID
}
// GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetHeadSHA() string {
if c == nil || c.HeadSHA == nil {
return ""
}
return *c.HeadSHA
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetHTMLURL() string {
if c == nil || c.HTMLURL == nil {
return ""
}
return *c.HTMLURL
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetID() int64 {
if c == nil || c.ID == nil {
return 0
}
return *c.ID
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetName() string {
if c == nil || c.Name == nil {
return ""
}
return *c.Name
}
// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetNodeID() string {
if c == nil || c.NodeID == nil {
return ""
}
return *c.NodeID
}
// GetOutput returns the Output field.
func (c *CheckRun) GetOutput() *CheckRunOutput {
if c == nil {
return nil
}
return c.Output
}
// GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetStartedAt() Timestamp {
if c == nil || c.StartedAt == nil {
return Timestamp{}
}
return *c.StartedAt
}
// GetStatus returns the Status field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetStatus() string {
if c == nil || c.Status == nil {
return ""
}
return *c.Status
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (c *CheckRun) GetURL() string {
if c == nil || c.URL == nil {
return ""
}
return *c.URL
}
// GetAnnotationLevel returns the AnnotationLevel field if it's non-nil, zero value otherwise.
func (c *CheckRunAnnotation) GetAnnotationLevel() string {
if c == nil || c.AnnotationLevel == nil {
return ""
}
return *c.AnnotationLevel
}
// GetBlobHRef returns the BlobHRef field if it's non-nil, zero value otherwise.
func (c *CheckRunAnnotation) GetBlobHRef() string {
if c == nil || c.BlobHRef == nil {
return ""
}
return *c.BlobHRef
}
// GetEndLine returns the EndLine field if it's non-nil, zero value otherwise.
func (c *CheckRunAnnotation) GetEndLine() int {
if c == nil || c.EndLine == nil {
return 0
}
return *c.EndLine
}
// GetMessage returns the Message field if it's non-nil, zero value otherwise.
func (c *CheckRunAnnotation) GetMessage() string {
if c == nil || c.Message == nil {
return ""
}
return *c.Message
}
// GetPath returns the Path field if it's non-nil, zero value otherwise.
func (c *CheckRunAnnotation) GetPath() string {
if c == nil || c.Path == nil {
return ""
}
return *c.Path
}
// GetRawDetails returns the RawDetails field if it's non-nil, zero value otherwise.
func (c *CheckRunAnnotation) GetRawDetails() string {
if c == nil || c.RawDetails == nil {
return ""
}
return *c.RawDetails
}
// GetStartLine returns the StartLine field if it's non-nil, zero value otherwise.
func (c *CheckRunAnnotation) GetStartLine() int {
if c == nil || c.StartLine == nil {
return 0
}
return *c.StartLine
}
// GetTitle returns the Title field if it's non-nil, zero value otherwise.
func (c *CheckRunAnnotation) GetTitle() string {
if c == nil || c.Title == nil {
return ""
}
return *c.Title
}
// GetAction returns the Action field if it's non-nil, zero value otherwise.
func (c *CheckRunEvent) GetAction() string {
if c == nil || c.Action == nil {
return ""
}
return *c.Action
}
// GetCheckRun returns the CheckRun field.
func (c *CheckRunEvent) GetCheckRun() *CheckRun {
if c == nil {
return nil
}
return c.CheckRun
}
// GetInstallation returns the Installation field.
func (c *CheckRunEvent) GetInstallation() *Installation {
if c == nil {
return nil
}
return c.Installation
}
// GetOrg returns the Org field.
func (c *CheckRunEvent) GetOrg() *Organization {
if c == nil {
return nil
}
return c.Org
}
// GetRepo returns the Repo field.
func (c *CheckRunEvent) GetRepo() *Repository {
if c == nil {
return nil
}
return c.Repo
}
// GetRequestedAction returns the RequestedAction field.
func (c *CheckRunEvent) GetRequestedAction() *RequestedAction {
if c == nil {
return nil
}
return c.RequestedAction
}
// GetSender returns the Sender field.
func (c *CheckRunEvent) GetSender() *User {
if c == nil {
return nil
}
return c.Sender
}
// GetAlt returns the Alt field if it's non-nil, zero value otherwise.
func (c *CheckRunImage) GetAlt() string {
if c == nil || c.Alt == nil {
return ""
}
return *c.Alt
}
// GetCaption returns the Caption field if it's non-nil, zero value otherwise.
func (c *CheckRunImage) GetCaption() string {
if c == nil || c.Caption == nil {
return ""
}
return *c.Caption
}
// GetImageURL returns the ImageURL field if it's non-nil, zero value otherwise.
func (c *CheckRunImage) GetImageURL() string {
if c == nil || c.ImageURL == nil {
return ""
}
return *c.ImageURL
}
// GetAnnotationsCount returns the AnnotationsCount field if it's non-nil, zero value otherwise.
func (c *CheckRunOutput) GetAnnotationsCount() int {
if c == nil || c.AnnotationsCount == nil {
return 0
}
return *c.AnnotationsCount
}
// GetAnnotationsURL returns the AnnotationsURL field if it's non-nil, zero value otherwise.
func (c *CheckRunOutput) GetAnnotationsURL() string {
if c == nil || c.AnnotationsURL == nil {
return ""
}
return *c.AnnotationsURL
}
// GetSummary returns the Summary field if it's non-nil, zero value otherwise.
func (c *CheckRunOutput) GetSummary() string {
if c == nil || c.Summary == nil {
return ""
}
return *c.Summary
}
// GetText returns the Text field if it's non-nil, zero value otherwise.
func (c *CheckRunOutput) GetText() string {
if c == nil || c.Text == nil {
return ""
}
return *c.Text
}
// GetTitle returns the Title field if it's non-nil, zero value otherwise.
func (c *CheckRunOutput) GetTitle() string {
if c == nil || c.Title == nil {
return ""
}
return *c.Title
}
// GetAfterSHA returns the AfterSHA field if it's non-nil, zero value otherwise.
func (c *CheckSuite) GetAfterSHA() string {
if c == nil || c.AfterSHA == nil {
return ""
}
return *c.AfterSHA
}
// GetApp returns the App field.
func (c *CheckSuite) GetApp() *App {
if c == nil {
return nil
}
return c.App
}
// GetBeforeSHA returns the BeforeSHA field if it's non-nil, zero value otherwise.
func (c *CheckSuite) GetBeforeSHA() string {
if c == nil || c.BeforeSHA == nil {
return ""
}
return *c.BeforeSHA
}
// GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.
func (c *CheckSuite) GetConclusion() string {
if c == nil || c.Conclusion == nil {
return ""
}
return *c.Conclusion
}
// GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise.
func (c *CheckSuite) GetHeadBranch() string {
if c == nil || c.HeadBranch == nil {
return ""
}
return *c.HeadBranch
}
// GetHeadCommit returns the HeadCommit field.
func (c *CheckSuite) GetHeadCommit() *Commit {
if c == nil {
return nil
}
return c.HeadCommit
}
// GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise.
func (c *CheckSuite) GetHeadSHA() string {
if c == nil || c.HeadSHA == nil {
return ""
}
return *c.HeadSHA
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (c *CheckSuite) GetID() int64 {
if c == nil || c.ID == nil {
return 0
}
return *c.ID
}
// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
func (c *CheckSuite) GetNodeID() string {
if c == nil || c.NodeID == nil {
return ""
}
return *c.NodeID
}
// GetRepository returns the Repository field.
func (c *CheckSuite) GetRepository() *Repository {
if c == nil {
return nil
}
return c.Repository
}
// GetStatus returns the Status field if it's non-nil, zero value otherwise.
func (c *CheckSuite) GetStatus() string {
if c == nil || c.Status == nil {
return ""
}
return *c.Status
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (c *CheckSuite) GetURL() string {
if c == nil || c.URL == nil {
return ""
}
return *c.URL
}
// GetAction returns the Action field if it's non-nil, zero value otherwise.
func (c *CheckSuiteEvent) GetAction() string {
if c == nil || c.Action == nil {
return ""
}
return *c.Action
}
// GetCheckSuite returns the CheckSuite field.
func (c *CheckSuiteEvent) GetCheckSuite() *CheckSuite {
if c == nil {
return nil
}
return c.CheckSuite
}
// GetInstallation returns the Installation field.
func (c *CheckSuiteEvent) GetInstallation() *Installation {
if c == nil {
return nil
}
return c.Installation
}
// GetOrg returns the Org field.
func (c *CheckSuiteEvent) GetOrg() *Organization {
if c == nil {
return nil
}
return c.Org
}
// GetRepo returns the Repo field.
func (c *CheckSuiteEvent) GetRepo() *Repository {
if c == nil {
return nil
}
return c.Repo
}
// GetSender returns the Sender field.
func (c *CheckSuiteEvent) GetSender() *User {
if c == nil {
return nil
}
return c.Sender
}
// GetPreferences returns the Preferences field.
func (c *CheckSuitePreferenceResults) GetPreferences() *PreferenceList {
if c == nil {
return nil
}
return c.Preferences
}
// GetRepository returns the Repository field.
func (c *CheckSuitePreferenceResults) GetRepository() *Repository {
if c == nil {
return nil
}
return c.Repository
}
// GetBody returns the Body field if it's non-nil, zero value otherwise.
func (c *CodeOfConduct) GetBody() string {
if c == nil || c.Body == nil {
return ""
}
return *c.Body
}
// GetKey returns the Key field if it's non-nil, zero value otherwise.
func (c *CodeOfConduct) GetKey() string {
if c == nil || c.Key == nil {
return ""
}
return *c.Key
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (c *CodeOfConduct) GetName() string {
if c == nil || c.Name == nil {
return ""
}
return *c.Name
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (c *CodeOfConduct) GetURL() string {
if c == nil || c.URL == nil {
return ""
}
return *c.URL
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (c *CodeResult) GetHTMLURL() string {
if c == nil || c.HTMLURL == nil {
return ""
}
return *c.HTMLURL
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (c *CodeResult) GetName() string {
if c == nil || c.Name == nil {
return ""
}
return *c.Name
}
// GetPath returns the Path field if it's non-nil, zero value otherwise.
func (c *CodeResult) GetPath() string {
if c == nil || c.Path == nil {
return ""
}
return *c.Path
}
// GetRepository returns the Repository field.
func (c *CodeResult) GetRepository() *Repository {
if c == nil {
return nil
}
return c.Repository
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (c *CodeResult) GetSHA() string {
if c == nil || c.SHA == nil {
return ""
}
return *c.SHA
}
// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.
func (c *CodeSearchResult) GetIncompleteResults() bool {
if c == nil || c.IncompleteResults == nil {
return false
}
return *c.IncompleteResults
}
// GetTotal returns the Total field if it's non-nil, zero value otherwise.
func (c *CodeSearchResult) GetTotal() int {
if c == nil || c.Total == nil {
return 0
}
return *c.Total
}
// GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetCommitURL() string {
if c == nil || c.CommitURL == nil {
return ""
}
return *c.CommitURL
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetName() string {
if c == nil || c.Name == nil {
return ""
}
return *c.Name
}
// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetRepositoryURL() string {
if c == nil || c.RepositoryURL == nil {
return ""
}
return *c.RepositoryURL
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetSHA() string {
if c == nil || c.SHA == nil {
return ""
}
return *c.SHA
}
// GetState returns the State field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetState() string {
if c == nil || c.State == nil {
return ""
}
return *c.State
}
// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetTotalCount() int {
if c == nil || c.TotalCount == nil {
return 0
}
return *c.TotalCount
}
// GetTotalCommitComments returns the TotalCommitComments field if it's non-nil, zero value otherwise.
func (c *CommentStats) GetTotalCommitComments() int {
if c == nil || c.TotalCommitComments == nil {
return 0
}
return *c.TotalCommitComments
}
// GetTotalGistComments returns the TotalGistComments field if it's non-nil, zero value otherwise.
func (c *CommentStats) GetTotalGistComments() int {
if c == nil || c.TotalGistComments == nil {
return 0
}
return *c.TotalGistComments
}
// GetTotalIssueComments returns the TotalIssueComments field if it's non-nil, zero value otherwise.
func (c *CommentStats) GetTotalIssueComments() int {
if c == nil || c.TotalIssueComments == nil {
return 0
}
return *c.TotalIssueComments
}
// GetTotalPullRequestComments returns the TotalPullRequestComments field if it's non-nil, zero value otherwise.
func (c *CommentStats) GetTotalPullRequestComments() int {
if c == nil || c.TotalPullRequestComments == nil {
return 0
}
return *c.TotalPullRequestComments
}
// GetAuthor returns the Author field.
func (c *Commit) GetAuthor() *CommitAuthor {
if c == nil {
return nil
}
return c.Author
}
// GetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise.
func (c *Commit) GetCommentCount() int {
if c == nil || c.CommentCount == nil {
return 0
}
return *c.CommentCount
}
// GetCommitter returns the Committer field.
func (c *Commit) GetCommitter() *CommitAuthor {
if c == nil {
return nil
}
return c.Committer
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (c *Commit) GetHTMLURL() string {
if c == nil || c.HTMLURL == nil {
return ""
}
return *c.HTMLURL
}
// GetMessage returns the Message field if it's non-nil, zero value otherwise.
func (c *Commit) GetMessage() string {
if c == nil || c.Message == nil {
return ""
}
return *c.Message
}
// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
func (c *Commit) GetNodeID() string {
if c == nil || c.NodeID == nil {
return ""
}
return *c.NodeID
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (c *Commit) GetSHA() string {
if c == nil || c.SHA == nil {
return ""
}
return *c.SHA
}
// GetStats returns the Stats field.
func (c *Commit) GetStats() *CommitStats {
if c == nil {
return nil
}
return c.Stats
}
// GetTree returns the Tree field.
func (c *Commit) GetTree() *Tree {
if c == nil {
return nil
}
return c.Tree
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (c *Commit) GetURL() string {
if c == nil || c.URL == nil {
return ""
}
return *c.URL
}
// GetVerification returns the Verification field.
func (c *Commit) GetVerification() *SignatureVerification {
if c == nil {
return nil
}
return c.Verification
}
// GetDate returns the Date field if it's non-nil, zero value otherwise.
func (c *CommitAuthor) GetDate() time.Time {
if c == nil || c.Date == nil {
return time.Time{}
}
return *c.Date
}
// GetEmail returns the Email field if it's non-nil, zero value otherwise.
func (c *CommitAuthor) GetEmail() string {
if c == nil || c.Email == nil {
return ""
}
return *c.Email
}
// GetLogin returns the Login field if it's non-nil, zero value otherwise.
func (c *CommitAuthor) GetLogin() string {
if c == nil || c.Login == nil {
return ""
}
return *c.Login
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (c *CommitAuthor) GetName() string {
if c == nil || c.Name == nil {
return ""
}
return *c.Name
}
// GetAction returns the Action field if it's non-nil, zero value otherwise.
func (c *CommitCommentEvent) GetAction() string {
if c == nil || c.Action == nil {
return ""
}
return *c.Action
}
// GetComment returns the Comment field.
func (c *CommitCommentEvent) GetComment() *RepositoryComment {
if c == nil {
return nil
}
return c.Comment
}
// GetInstallation returns the Installation field.
func (c *CommitCommentEvent) GetInstallation() *Installation {
if c == nil {
return nil
}
return c.Installation
}
// GetRepo returns the Repo field.
func (c *CommitCommentEvent) GetRepo() *Repository {
if c == nil {
return nil
}
return c.Repo
}
// GetSender returns the Sender field.
func (c *CommitCommentEvent) GetSender() *User {
if c == nil {
return nil
}
return c.Sender
}
// GetAdditions returns the Additions field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetAdditions() int {
if c == nil || c.Additions == nil {
return 0
}
return *c.Additions
}
// GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetBlobURL() string {
if c == nil || c.BlobURL == nil {
return ""
}
return *c.BlobURL
}
// GetChanges returns the Changes field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetChanges() int {
if c == nil || c.Changes == nil {
return 0
}
return *c.Changes
}
// GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetContentsURL() string {
if c == nil || c.ContentsURL == nil {
return ""
}
return *c.ContentsURL
}
// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetDeletions() int {
if c == nil || c.Deletions == nil {
return 0
}
return *c.Deletions
}
// GetFilename returns the Filename field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetFilename() string {
if c == nil || c.Filename == nil {
return ""
}
return *c.Filename
}
// GetPatch returns the Patch field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetPatch() string {
if c == nil || c.Patch == nil {
return ""
}
return *c.Patch
}
// GetPreviousFilename returns the PreviousFilename field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetPreviousFilename() string {
if c == nil || c.PreviousFilename == nil {
return ""
}
return *c.PreviousFilename
}
// GetRawURL returns the RawURL field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetRawURL() string {
if c == nil || c.RawURL == nil {
return ""
}
return *c.RawURL
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetSHA() string {
if c == nil || c.SHA == nil {
return ""
}
return *c.SHA
}
// GetStatus returns the Status field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetStatus() string {
if c == nil || c.Status == nil {
return ""
}
return *c.Status
}
// GetAuthor returns the Author field.
func (c *CommitResult) GetAuthor() *User {
if c == nil {
return nil
}
return c.Author
}
// GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.
func (c *CommitResult) GetCommentsURL() string {
if c == nil || c.CommentsURL == nil {
return ""
}
return *c.CommentsURL
}
// GetCommit returns the Commit field.
func (c *CommitResult) GetCommit() *Commit {
if c == nil {
return nil
}
return c.Commit
}
// GetCommitter returns the Committer field.
func (c *CommitResult) GetCommitter() *User {
if c == nil {
return nil
}
return c.Committer
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (c *CommitResult) GetHTMLURL() string {
if c == nil || c.HTMLURL == nil {
return ""
}
return *c.HTMLURL
}
// GetRepository returns the Repository field.
func (c *CommitResult) GetRepository() *Repository {
if c == nil {
return nil
}
return c.Repository
}
// GetScore returns the Score field.
func (c *CommitResult) GetScore() *float64 {
if c == nil {
return nil
}
return c.Score
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (c *CommitResult) GetSHA() string {
if c == nil || c.SHA == nil {
return ""
}
return *c.SHA
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (c *CommitResult) GetURL() string {
if c == nil || c.URL == nil {
return ""
}
return *c.URL
}
// GetAheadBy returns the AheadBy field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetAheadBy() int {
if c == nil || c.AheadBy == nil {
return 0
}
return *c.AheadBy
}
// GetBaseCommit returns the BaseCommit field.
func (c *CommitsComparison) GetBaseCommit() *RepositoryCommit {
if c == nil {
return nil
}
return c.BaseCommit
}
// GetBehindBy returns the BehindBy field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetBehindBy() int {
if c == nil || c.BehindBy == nil {
return 0
}
return *c.BehindBy
}
// GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetDiffURL() string {
if c == nil || c.DiffURL == nil {
return ""
}
return *c.DiffURL
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetHTMLURL() string {
if c == nil || c.HTMLURL == nil {
return ""
}
return *c.HTMLURL
}
// GetMergeBaseCommit returns the MergeBaseCommit field.
func (c *CommitsComparison) GetMergeBaseCommit() *RepositoryCommit {
if c == nil {
return nil
}
return c.MergeBaseCommit
}
// GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetPatchURL() string {
if c == nil || c.PatchURL == nil {
return ""
}
return *c.PatchURL
}
// GetPermalinkURL returns the PermalinkURL field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetPermalinkURL() string {
if c == nil || c.PermalinkURL == nil {
return ""
}
return *c.PermalinkURL
}
// GetStatus returns the Status field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetStatus() string {
if c == nil || c.Status == nil {
return ""
}
return *c.Status
}
// GetTotalCommits returns the TotalCommits field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetTotalCommits() int {
if c == nil || c.TotalCommits == nil {
return 0
}
return *c.TotalCommits
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetURL() string {
if c == nil || c.URL == nil {
return ""
}
return *c.URL
}
// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.
func (c *CommitsSearchResult) GetIncompleteResults() bool {
if c == nil || c.IncompleteResults == nil {
return false
}
return *c.IncompleteResults
}
// GetTotal returns the Total field if it's non-nil, zero value otherwise.
func (c *CommitsSearchResult) GetTotal() int {
if c == nil || c.Total == nil {
return 0
}
return *c.Total
}
// GetAdditions returns the Additions field if it's non-nil, zero value otherwise.
func (c *CommitStats) GetAdditions() int {
if c == nil || c.Additions == nil {
return 0
}
return *c.Additions
}
// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise.
func (c *CommitStats) GetDeletions() int {
if c == nil || c.Deletions == nil {
return 0
}
return *c.Deletions
}
// GetTotal returns the Total field if it's non-nil, zero value otherwise.
func (c *CommitStats) GetTotal() int {
if c == nil || c.Total == nil {
return 0
}
return *c.Total
}
// GetCodeOfConduct returns the CodeOfConduct field.
func (c *CommunityHealthFiles) GetCodeOfConduct() *Metric {
if c == nil {
return nil
}
return c.CodeOfConduct
}
// GetContributing returns the Contributing field.
func (c *CommunityHealthFiles) GetContributing() *Metric {
if c == nil {
return nil
}
return c.Contributing
}
// GetIssueTemplate returns the IssueTemplate field.
func (c *CommunityHealthFiles) GetIssueTemplate() *Metric {
if c == nil {
return nil
}
return c.IssueTemplate
}
// GetLicense returns the License field.
func (c *CommunityHealthFiles) GetLicense() *Metric {
if c == nil {
return nil
}
return c.License
}
// GetPullRequestTemplate returns the PullRequestTemplate field.
func (c *CommunityHealthFiles) GetPullRequestTemplate() *Metric {
if c == nil {
return nil
}
return c.PullRequestTemplate
}
// GetReadme returns the Readme field.
func (c *CommunityHealthFiles) GetReadme() *Metric {
if c == nil {
return nil
}
return c.Readme
}
// GetFiles returns the Files field.
func (c *CommunityHealthMetrics) GetFiles() *CommunityHealthFiles {
if c == nil {
return nil
}
return c.Files
}
// GetHealthPercentage returns the HealthPercentage field if it's non-nil, zero value otherwise.
func (c *CommunityHealthMetrics) GetHealthPercentage() int {
if c == nil || c.HealthPercentage == nil {
return 0
}
return *c.HealthPercentage
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (c *CommunityHealthMetrics) GetUpdatedAt() time.Time {
if c == nil || c.UpdatedAt == nil {
return time.Time{}
}
return *c.UpdatedAt
}
// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetAvatarURL() string {
if c == nil || c.AvatarURL == nil {
return ""
}
return *c.AvatarURL
}
// GetContributions returns the Contributions field if it's non-nil, zero value otherwise.
func (c *Contributor) GetContributions() int {
if c == nil || c.Contributions == nil {
return 0
}
return *c.Contributions
}
// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetEventsURL() string {
if c == nil || c.EventsURL == nil {
return ""
}
return *c.EventsURL
}
// GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetFollowersURL() string {
if c == nil || c.FollowersURL == nil {
return ""
}
return *c.FollowersURL
}
// GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetFollowingURL() string {
if c == nil || c.FollowingURL == nil {
return ""
}
return *c.FollowingURL
}
// GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetGistsURL() string {
if c == nil || c.GistsURL == nil {
return ""
}
return *c.GistsURL
}
// GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise.
func (c *Contributor) GetGravatarID() string {
if c == nil || c.GravatarID == nil {
return ""
}
return *c.GravatarID
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetHTMLURL() string {
if c == nil || c.HTMLURL == nil {
return ""
}
return *c.HTMLURL
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (c *Contributor) GetID() int64 {
if c == nil || c.ID == nil {
return 0
}
return *c.ID
}
// GetLogin returns the Login field if it's non-nil, zero value otherwise.
func (c *Contributor) GetLogin() string {
if c == nil || c.Login == nil {
return ""
}
return *c.Login
}
// GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetOrganizationsURL() string {
if c == nil || c.OrganizationsURL == nil {
return ""
}
return *c.OrganizationsURL
}
// GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetReceivedEventsURL() string {
if c == nil || c.ReceivedEventsURL == nil {
return ""
}
return *c.ReceivedEventsURL
}
// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetReposURL() string {
if c == nil || c.ReposURL == nil {
return ""
}
return *c.ReposURL
}
// GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise.
func (c *Contributor) GetSiteAdmin() bool {
if c == nil || c.SiteAdmin == nil {
return false
}
return *c.SiteAdmin
}
// GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetStarredURL() string {
if c == nil || c.StarredURL == nil {
return ""
}
return *c.StarredURL
}
// GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetSubscriptionsURL() string {
if c == nil || c.SubscriptionsURL == nil {
return ""
}
return *c.SubscriptionsURL
}
// GetType returns the Type field if it's non-nil, zero value otherwise.
func (c *Contributor) GetType() string {
if c == nil || c.Type == nil {
return ""
}
return *c.Type
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetURL() string {
if c == nil || c.URL == nil {
return ""
}
return *c.URL
}
// GetAuthor returns the Author field.
func (c *ContributorStats) GetAuthor() *Contributor {
if c == nil {
return nil
}
return c.Author
}
// GetTotal returns the Total field if it's non-nil, zero value otherwise.
func (c *ContributorStats) GetTotal() int {
if c == nil || c.Total == nil {
return 0
}
return *c.Total
}
// GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise.
func (c *CreateCheckRunOptions) GetCompletedAt() Timestamp {
if c == nil || c.CompletedAt == nil {
return Timestamp{}
}
return *c.CompletedAt
}
// GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise.
func (c *CreateCheckRunOptions) GetConclusion() string {
if c == nil || c.Conclusion == nil {
return ""
}
return *c.Conclusion
}
// GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise.
func (c *CreateCheckRunOptions) GetDetailsURL() string {
if c == nil || c.DetailsURL == nil {
return ""
}
return *c.DetailsURL
}
// GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise.
func (c *CreateCheckRunOptions) GetExternalID() string {
if c == nil || c.ExternalID == nil {
return ""
}
return *c.ExternalID
}
// GetOutput returns the Output field.
func (c *CreateCheckRunOptions) GetOutput() *CheckRunOutput {
if c == nil {
return nil
}
return c.Output
}
// GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise.
func (c *CreateCheckRunOptions) GetStartedAt() Timestamp {
if c == nil || c.StartedAt == nil {
return Timestamp{}
}
return *c.StartedAt
}
// GetStatus returns the Status field if it's non-nil, zero value otherwise.
func (c *CreateCheckRunOptions) GetStatus() string {
if c == nil || c.Status == nil {
return ""
}
return *c.Status
}
// GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise.
func (c *CreateCheckSuiteOptions) GetHeadBranch() string {
if c == nil || c.HeadBranch == nil {
return ""
}
return *c.HeadBranch
}
// GetDescription returns the Description field if it's non-nil, zero value otherwise.
func (c *CreateEvent) GetDescription() string {
if c == nil || c.Description == nil {
return ""
}
return *c.Description
}
// GetInstallation returns the Installation field.
func (c *CreateEvent) GetInstallation() *Installation {
if c == nil {
return nil
}
return c.Installation
}
// GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise.
func (c *CreateEvent) GetMasterBranch() string {
if c == nil || c.MasterBranch == nil {
return ""
}
return *c.MasterBranch
}
// GetPusherType returns the PusherType field if it's non-nil, zero value otherwise.
func (c *CreateEvent) GetPusherType() string {
if c == nil || c.PusherType == nil {
return ""
}
return *c.PusherType
}
// GetRef returns the Ref field if it's non-nil, zero value otherwise.
func (c *CreateEvent) GetRef() string {
if c == nil || c.Ref == nil {
return ""
}
return *c.Ref
}
// GetRefType returns the RefType field if it's non-nil, zero value otherwise.
func (c *CreateEvent) GetRefType() string {
if c == nil || c.RefType == nil {
return ""
}
return *c.RefType
}
// GetRepo returns the Repo field.
func (c *CreateEvent) GetRepo() *Repository {
if c == nil {
return nil
}
return c.Repo
}
// GetSender returns the Sender field.
func (c *CreateEvent) GetSender() *User {
if c == nil {
return nil
}
return c.Sender
}
// GetEmail returns the Email field if it's non-nil, zero value otherwise.
func (c *CreateOrgInvitationOptions) GetEmail() string {
if c == nil || c.Email == nil {
return ""
}
return *c.Email
}
// GetInviteeID returns the InviteeID field if it's non-nil, zero value otherwise.
func (c *CreateOrgInvitationOptions) GetInviteeID() int64 {
if c == nil || c.InviteeID == nil {
return 0
}
return *c.InviteeID
}
// GetRole returns the Role field if it's non-nil, zero value otherwise.
func (c *CreateOrgInvitationOptions) GetRole() string {
if c == nil || c.Role == nil {
return ""
}
return *c.Role
}
// GetInstallation returns the Installation field.
func (d *DeleteEvent) GetInstallation() *Installation {
if d == nil {
return nil
}
return d.Installation
}
// GetPusherType returns the PusherType field if it's non-nil, zero value otherwise.
func (d *DeleteEvent) GetPusherType() string {
if d == nil || d.PusherType == nil {
return ""
}
return *d.PusherType
}
// GetRef returns the Ref field if it's non-nil, zero value otherwise.
func (d *DeleteEvent) GetRef() string {
if d == nil || d.Ref == nil {
return ""
}
return *d.Ref
}
// GetRefType returns the RefType field if it's non-nil, zero value otherwise.
func (d *DeleteEvent) GetRefType() string {
if d == nil || d.RefType == nil {
return ""
}
return *d.RefType
}
// GetRepo returns the Repo field.
func (d *DeleteEvent) GetRepo() *Repository {
if d == nil {
return nil
}
return d.Repo
}
// GetSender returns the Sender field.
func (d *DeleteEvent) GetSender() *User {
if d == nil {
return nil
}
return d.Sender
}
// GetAction returns the Action field if it's non-nil, zero value otherwise.
func (d *DeployKeyEvent) GetAction() string {
if d == nil || d.Action == nil {
return ""
}
return *d.Action
}
// GetKey returns the Key field.
func (d *DeployKeyEvent) GetKey() *Key {
if d == nil {
return nil
}
return d.Key
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (d *Deployment) GetCreatedAt() Timestamp {
if d == nil || d.CreatedAt == nil {
return Timestamp{}
}
return *d.CreatedAt
}
// GetCreator returns the Creator field.
func (d *Deployment) GetCreator() *User {
if d == nil {
return nil
}
return d.Creator
}
// GetDescription returns the Description field if it's non-nil, zero value otherwise.
func (d *Deployment) GetDescription() string {
if d == nil || d.Description == nil {
return ""
}
return *d.Description
}
// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise.
func (d *Deployment) GetEnvironment() string {
if d == nil || d.Environment == nil {
return ""
}
return *d.Environment
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (d *Deployment) GetID() int64 {
if d == nil || d.ID == nil {
return 0
}
return *d.ID
}
// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
func (d *Deployment) GetNodeID() string {
if d == nil || d.NodeID == nil {
return ""
}
return *d.NodeID
}
// GetRef returns the Ref field if it's non-nil, zero value otherwise.
func (d *Deployment) GetRef() string {
if d == nil || d.Ref == nil {
return ""
}
return *d.Ref
}
// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
func (d *Deployment) GetRepositoryURL() string {
if d == nil || d.RepositoryURL == nil {
return ""
}
return *d.RepositoryURL
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (d *Deployment) GetSHA() string {
if d == nil || d.SHA == nil {
return ""
}
return *d.SHA
}
// GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise.
func (d *Deployment) GetStatusesURL() string {
if d == nil || d.StatusesURL == nil {
return ""
}
return *d.StatusesURL
}
// GetTask returns the Task field if it's non-nil, zero value otherwise.
func (d *Deployment) GetTask() string {
if d == nil || d.Task == nil {
return ""
}
return *d.Task
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (d *Deployment) GetUpdatedAt() Timestamp {
if d == nil || d.UpdatedAt == nil {
return Timestamp{}
}
return *d.UpdatedAt
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (d *Deployment) GetURL() string {
if d == nil || d.URL == nil {
return ""
}
return *d.URL
}
// GetDeployment returns the Deployment field.
func (d *DeploymentEvent) GetDeployment() *Deployment {
if d == nil {
return nil
}
return d.Deployment
}
// GetInstallation returns the Installation field.
func (d *DeploymentEvent) GetInstallation() *Installation {
if d == nil {
return nil
}
return d.Installation
}
// GetRepo returns the Repo field.
func (d *DeploymentEvent) GetRepo() *Repository {
if d == nil {
return nil
}
return d.Repo
}
// GetSender returns the Sender field.
func (d *DeploymentEvent) GetSender() *User {
if d == nil {
return nil
}
return d.Sender
}
// GetAutoMerge returns the AutoMerge field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetAutoMerge() bool {
if d == nil || d.AutoMerge == nil {
return false
}
return *d.AutoMerge
}
// GetDescription returns the Description field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetDescription() string {
if d == nil || d.Description == nil {
return ""
}
return *d.Description
}
// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetEnvironment() string {
if d == nil || d.Environment == nil {
return ""
}
return *d.Environment
}
// GetPayload returns the Payload field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetPayload() string {
if d == nil || d.Payload == nil {
return ""
}
return *d.Payload
}
// GetProductionEnvironment returns the ProductionEnvironment field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetProductionEnvironment() bool {
if d == nil || d.ProductionEnvironment == nil {
return false
}
return *d.ProductionEnvironment
}
// GetRef returns the Ref field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetRef() string {
if d == nil || d.Ref == nil {
return ""
}
return *d.Ref
}
// GetRequiredContexts returns the RequiredContexts field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetRequiredContexts() []string {
if d == nil || d.RequiredContexts == nil {
return nil
}
return *d.RequiredContexts
}
// GetTask returns the Task field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetTask() string {
if d == nil || d.Task == nil {
return ""
}
return *d.Task
}
// GetTransientEnvironment returns the TransientEnvironment field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetTransientEnvironment() bool {
if d == nil || d.TransientEnvironment == nil {
return false
}
return *d.TransientEnvironment
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (d *DeploymentStatus) GetCreatedAt() Timestamp {
if d == nil || d.CreatedAt == nil {
return Timestamp{}
}
return *d.CreatedAt
}
// GetCreator returns the Creator field.
func (d *DeploymentStatus) GetCreator() *User {
if d == nil {
return nil
}
return d.Creator
}
// GetDeploymentURL returns the DeploymentURL field if it's non-nil, zero value otherwise.
func (d *DeploymentStatus) GetDeploymentURL() string {
if d == nil || d.DeploymentURL == nil {
return ""
}
return *d.DeploymentURL
}
// GetDescription returns the Description field if it's non-nil, zero value otherwise.
func (d *DeploymentStatus) GetDescription() string {
if d == nil || d.Description == nil {
return ""
}
return *d.Description
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (d *DeploymentStatus) GetID() int64 {
if d == nil || d.ID == nil {
return 0
}
return *d.ID
}
// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
func (d *DeploymentStatus) GetNodeID() string {
if d == nil || d.NodeID == nil {
return ""
}
return *d.NodeID
}
// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
func (d *DeploymentStatus) GetRepositoryURL() string {
if d == nil || d.RepositoryURL == nil {
return ""
}
return *d.RepositoryURL
}
// GetState returns the State field if it's non-nil, zero value otherwise.
func (d *DeploymentStatus) GetState() string {
if d == nil || d.State == nil {
return ""
}
return *d.State
}
// GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise.
func (d *DeploymentStatus) GetTargetURL() string {
if d == nil || d.TargetURL == nil {
return ""
}
return *d.TargetURL
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (d *DeploymentStatus) GetUpdatedAt() Timestamp {
if d == nil || d.UpdatedAt == nil {
return Timestamp{}
}
return *d.UpdatedAt
}
// GetDeployment returns the Deployment field.
func (d *DeploymentStatusEvent) GetDeployment() *Deployment {
if d == nil {
return nil
}
return d.Deployment
}
// GetDeploymentStatus returns the DeploymentStatus field.
func (d *DeploymentStatusEvent) GetDeploymentStatus() *DeploymentStatus {
if d == nil {
return nil
}
return d.DeploymentStatus
}
// GetInstallation returns the Installation field.
func (d *DeploymentStatusEvent) GetInstallation() *Installation {
if d == nil {
return nil
}
return d.Installation
}
// GetRepo returns the Repo field.
func (d *DeploymentStatusEvent) GetRepo() *Repository {
if d == nil {
return nil
}
return d.Repo
}
// GetSender returns the Sender field.
func (d *DeploymentStatusEvent) GetSender() *User {
if d == nil {
return nil
}
return d.Sender
}
// GetAutoInactive returns the AutoInactive field if it's non-nil, zero value otherwise.
func (d *DeploymentStatusRequest) GetAutoInactive() bool {
if d == nil || d.AutoInactive == nil {
return false
}
return *d.AutoInactive
}
// GetDescription returns the Description field if it's non-nil, zero value otherwise.
func (d *DeploymentStatusRequest) GetDescription() string {
if d == nil || d.Description == nil {
return ""
}
return *d.Description
}
// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise.
func (d *DeploymentStatusRequest) GetEnvironment() string {
if d == nil || d.Environment == nil {
return ""
}
return *d.Environment
}
// GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise.
func (d *DeploymentStatusRequest) GetEnvironmentURL() string {
if d == nil || d.EnvironmentURL == nil {
return ""
}
return *d.EnvironmentURL
}
// GetLogURL returns the LogURL field if it's non-nil, zero value otherwise.
func (d *DeploymentStatusRequest) GetLogURL() string {
if d == nil || d.LogURL == nil {
return ""
}
return *d.LogURL
}
// GetState returns the State field if it's non-nil, zero value otherwise.
func (d *DeploymentStatusRequest) GetState() string {
if d == nil || d.State == nil {
return ""
}
return *d.State
}
// GetAuthor returns the Author field.
func (d *DiscussionComment) GetAuthor() *User {
if d == nil {
return nil
}
return d.Author
}
// GetBody returns the Body field if it's non-nil, zero value otherwise.
func (d *DiscussionComment) GetBody() string {
if d == nil || d.Body == nil {
return ""
}
return *d.Body
}
// GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise.
func (d *DiscussionComment) GetBodyHTML() string {
if d == nil || d.BodyHTML == nil {
return ""
}
return *d.BodyHTML
}
// GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise.
func (d *DiscussionComment) GetBodyVersion() string {
if d == nil || d.BodyVersion == nil {
return ""
}
return *d.BodyVersion
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (d *DiscussionComment) GetCreatedAt() Timestamp {
if d == nil || d.CreatedAt == nil {
return Timestamp{}
}
return *d.CreatedAt
}
// GetDiscussionURL returns the DiscussionURL field if it's non-nil, zero value otherwise.
func (d *DiscussionComment) GetDiscussionURL() string {
if d == nil || d.DiscussionURL == nil {
return ""
}
return *d.DiscussionURL
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (d *DiscussionComment) GetHTMLURL() string {
if d == nil || d.HTMLURL == nil {
return ""
}
return *d.HTMLURL
}
// GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise.
func (d *DiscussionComment) GetLastEditedAt() Timestamp {
if d == nil || d.LastEditedAt == nil {
return Timestamp{}
}
return *d.LastEditedAt
}
// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
func (d *DiscussionComment) GetNodeID() string {
if d == nil || d.NodeID == nil {
return ""
}
return *d.NodeID
}
// GetNumber returns the Number field if it's non-nil, zero value otherwise.
func (d *DiscussionComment) GetNumber() int {
if d == nil || d.Number == nil {
return 0
}
return *d.Number
}
// GetReactions returns the Reactions field.
func (d *DiscussionComment) GetReactions() *Reactions {
if d == nil {
return nil
}
return d.Reactions
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (d *DiscussionComment) GetUpdatedAt() Timestamp {
if d == nil || d.UpdatedAt == nil {
return Timestamp{}
}
return *d.UpdatedAt
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (d *DiscussionComment) GetURL() string {
if d == nil || d.URL == nil {
return ""
}
return *d.URL
}
// GetTeams returns the Teams field if it's non-nil, zero value otherwise.
func (d *DismissalRestrictionsRequest) GetTeams() []string {
if d == nil || d.Teams == nil {
return nil
}
return *d.Teams
}
// GetUsers returns the Users field if it's non-nil, zero value otherwise.
func (d *DismissalRestrictionsRequest) GetUsers() []string {
if d == nil || d.Users == nil {
return nil
}
return *d.Users
}
// GetDismissalCommitID returns the DismissalCommitID field if it's non-nil, zero value otherwise.
func (d *DismissedReview) GetDismissalCommitID() string {
if d == nil || d.DismissalCommitID == nil {
return ""
}
return *d.DismissalCommitID
}
// GetDismissalMessage returns the DismissalMessage field if it's non-nil, zero value otherwise.
func (d *DismissedReview) GetDismissalMessage() string {
if d == nil || d.DismissalMessage == nil {
return ""
}
return *d.DismissalMessage
}
// GetReviewID returns the ReviewID field if it's non-nil, zero value otherwise.
func (d *DismissedReview) GetReviewID() int64 {
if d == nil || d.ReviewID == nil {
return 0
}
return *d.ReviewID
}
// GetState returns the State field if it's non-nil, zero value otherwise.
func (d *DismissedReview) GetState() string {
if d == nil || d.State == nil {
return ""
}
return *d.State
}
// GetBody returns the Body field if it's non-nil, zero value otherwise.
func (d *DraftReviewComment) GetBody() string {
if d == nil || d.Body == nil {
return ""
}
return *d.Body
}
// GetPath returns the Path field if it's non-nil, zero value otherwise.
func (d *DraftReviewComment) GetPath() string {
if d == nil || d.Path == nil {
return ""
}
return *d.Path
}
// GetPosition returns the Position field if it's non-nil, zero value otherwise.
func (d *DraftReviewComment) GetPosition() int {
if d == nil || d.Position == nil {
return 0
}
return *d.Position
}
// GetActor returns the Actor field.
func (e *Event) GetActor() *User {
if e == nil {
return nil
}
return e.Actor
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (e *Event) GetCreatedAt() time.Time {
if e == nil || e.CreatedAt == nil {
return time.Time{}
}
return *e.CreatedAt
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (e *Event) GetID() string {
if e == nil || e.ID == nil {
return ""
}
return *e.ID
}
// GetOrg returns the Org field.
func (e *Event) GetOrg() *Organization {
if e == nil {
return nil
}
return e.Org
}
// GetPublic returns the Public field if it's non-nil, zero value otherwise.
func (e *Event) GetPublic() bool {
if e == nil || e.Public == nil {
return false
}
return *e.Public
}
// GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise.
func (e *Event) GetRawPayload() json.RawMessage {
if e == nil || e.RawPayload == nil {
return json.RawMessage{}
}
return *e.RawPayload
}
// GetRepo returns the Repo field.
func (e *Event) GetRepo() *Repository {
if e == nil {
return nil
}
return e.Repo
}
// GetType returns the Type field if it's non-nil, zero value otherwise.
func (e *Event) GetType() string {
if e == nil || e.Type == nil {
return ""
}
return *e.Type
}
// GetHRef returns the HRef field if it's non-nil, zero value otherwise.
func (f *FeedLink) GetHRef() string {
if f == nil || f.HRef == nil {
return ""
}
return *f.HRef
}
// GetType returns the Type field if it's non-nil, zero value otherwise.
func (f *FeedLink) GetType() string {
if f == nil || f.Type == nil {
return ""
}
return *f.Type
}
// GetCurrentUserActorURL returns the CurrentUserActorURL field if it's non-nil, zero value otherwise.
func (f *Feeds) GetCurrentUserActorURL() string {
if f == nil || f.CurrentUserActorURL == nil {
return ""
}
return *f.CurrentUserActorURL
}
// GetCurrentUserOrganizationURL returns the CurrentUserOrganizationURL field if it's non-nil, zero value otherwise.
func (f *Feeds) GetCurrentUserOrganizationURL() string {
if f == nil || f.CurrentUserOrganizationURL == nil {
return ""
}
return *f.CurrentUserOrganizationURL
}
// GetCurrentUserPublicURL returns the CurrentUserPublicURL field if it's non-nil, zero value otherwise.
func (f *Feeds) GetCurrentUserPublicURL() string {
if f == nil || f.CurrentUserPublicURL == nil {
return ""
}
return *f.CurrentUserPublicURL
}
// GetCurrentUserURL returns the CurrentUserURL field if it's non-nil, zero value otherwise.
func (f *Feeds) GetCurrentUserURL() string {
if f == nil || f.CurrentUserURL == nil {
return ""
}
return *f.CurrentUserURL
}
// GetTimelineURL returns the TimelineURL field if it's non-nil, zero value otherwise.
func (f *Feeds) GetTimelineURL() string {
if f == nil || f.TimelineURL == nil {
return ""
}
return *f.TimelineURL
}
// GetUserURL returns the UserURL field if it's non-nil, zero value otherwise.
func (f *Feeds) GetUserURL() string {
if f == nil || f.UserURL == nil {
return ""
}
return *f.UserURL
}
// GetForkee returns the Forkee field.
func (f *ForkEvent) GetForkee() *Repository {
if f == nil {
return nil
}
return f.Forkee
}
// GetInstallation returns the Installation field.
func (f *ForkEvent) GetInstallation() *Installation {
if f == nil {
return nil
}
return f.Installation
}
// GetRepo returns the Repo field.
func (f *ForkEvent) GetRepo() *Repository {
if f == nil {
return nil
}
return f.Repo
}
// GetSender returns the Sender field.
func (f *ForkEvent) GetSender() *User {
if f == nil {
return nil
}
return f.Sender
}
// GetComments returns the Comments field if it's non-nil, zero value otherwise.
func (g *Gist) GetComments() int {
if g == nil || g.Comments == nil {
return 0
}
return *g.Comments
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (g *Gist) GetCreatedAt() time.Time {
if g == nil || g.CreatedAt == nil {
return time.Time{}
}
return *g.CreatedAt
}
// GetDescription returns the Description field if it's non-nil, zero value otherwise.
func (g *Gist) GetDescription() string {
if g == nil || g.Description == nil {
return ""
}
return *g.Description
}
// GetGitPullURL returns the GitPullURL field if it's non-nil, zero value otherwise.
func (g *Gist) GetGitPullURL() string {
if g == nil || g.GitPullURL == nil {
return ""
}
return *g.GitPullURL
}
// GetGitPushURL returns the GitPushURL field if it's non-nil, zero value otherwise.
func (g *Gist) GetGitPushURL() string {
if g == nil || g.GitPushURL == nil {
return ""
}
return *g.GitPushURL
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (g *Gist) GetHTMLURL() string {
if g == nil || g.HTMLURL == nil {
return ""
}
return *g.HTMLURL
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (g *Gist) GetID() string {
if g == nil || g.ID == nil {
return ""
}
return *g.ID
}
// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
func (g *Gist) GetNodeID() string {
if g == nil || g.NodeID == nil {
return ""
}
return *g.NodeID
}
// GetOwner returns the Owner field.
func (g *Gist) GetOwner() *User {
if g == nil {
return nil
}
return g.Owner
}
// GetPublic returns the Public field if it's non-nil, zero value otherwise.
func (g *Gist) GetPublic() bool {
if g == nil || g.Public == nil {
return false
}
return *g.Public
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (g *Gist) GetUpdatedAt() time.Time {
if g == nil || g.UpdatedAt == nil {
return time.Time{}
}
return *g.UpdatedAt
}
// GetBody returns the Body field if it's non-nil, zero value otherwise.
func (g *GistComment) GetBody() string {
if g == nil || g.Body == nil {
return ""
}
return *g.Body
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (g *GistComment) GetCreatedAt() time.Time {
if g == nil || g.CreatedAt == nil {
return time.Time{}
}
return *g.CreatedAt
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (g *GistComment) GetID() int64 {
if g == nil || g.ID == nil {
return 0
}
return *g.ID
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (g *GistComment) GetURL() string {
if g == nil || g.URL == nil {
return ""
}
return *g.URL
}
// GetUser returns the User field.
func (g *GistComment) GetUser() *User {
if g == nil {
return nil
}
return g.User
}
// GetChangeStatus returns the ChangeStatus field.
func (g *GistCommit) GetChangeStatus() *CommitStats {
if g == nil {
return nil
}
return g.ChangeStatus
}
// GetCommittedAt returns the CommittedAt field if it's non-nil, zero value otherwise.
func (g *GistCommit) GetCommittedAt() Timestamp {
if g == nil || g.CommittedAt == nil {
return Timestamp{}
}
return *g.CommittedAt
}
// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
func (g *GistCommit) GetNodeID() string {
if g == nil || g.NodeID == nil {
return ""
}
return *g.NodeID
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (g *GistCommit) GetURL() string {
if g == nil || g.URL == nil {
return ""
}
return *g.URL
}
// GetUser returns the User field.
func (g *GistCommit) GetUser() *User {
if g == nil {
return nil
}
return g.User
}
// GetVersion returns the Version field if it's non-nil, zero value otherwise.
func (g *GistCommit) GetVersion() string {
if g == nil || g.Version == nil {
return ""
}
return *g.Version
}
// GetContent returns the Content field if it's non-nil, zero value otherwise.
func (g *GistFile) GetContent() string {
if g == nil || g.Content == nil {
return ""
}
return *g.Content
}
// GetFilename returns the Filename field if it's non-nil, zero value otherwise.
func (g *GistFile) GetFilename() string {
if g == nil || g.Filename == nil {
return ""
}
return *g.Filename
}
// GetLanguage returns the Language field if it's non-nil, zero value otherwise.
func (g *GistFile) GetLanguage() string {
if g == nil || g.Language == nil {
return ""
}
return *g.Language
}
// GetRawURL returns the RawURL field if it's non-nil, zero value otherwise.
func (g *GistFile) GetRawURL() string {
if g == nil || g.RawURL == nil {
return ""
}
return *g.RawURL
}
// GetSize returns the Size field if it's non-nil, zero value otherwise.
func (g *GistFile) GetSize() int {
if g == nil || g.Size == nil {
return 0
}
return *g.Size
}
// GetType returns the Type field if it's non-nil, zero value otherwise.
func (g *GistFile) GetType() string {
if g == nil || g.Type == nil {
return ""
}
return *g.Type
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (g *GistFork) GetCreatedAt() Timestamp {
if g == nil || g.CreatedAt == nil {
return Timestamp{}
}
return *g.CreatedAt
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (g *GistFork) GetID() string {
if g == nil || g.ID == nil {
return ""
}
return *g.ID
}
// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise.
func (g *GistFork) GetNodeID() string {
if g == nil || g.NodeID == nil {
return ""
}
return *g.NodeID
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (g *GistFork) GetUpdatedAt() Timestamp {
if g == nil || g.UpdatedAt == nil {
return Timestamp{}
}
return *g.UpdatedAt
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (g *GistFork) GetURL() string {
if g == nil || g.URL == nil {
return ""
}
return *g.URL
}
// GetUser returns the User field.
func (g *GistFork) GetUser() *User {
if g == nil {
return nil
}
return g.User
}
// GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise.
func (g *GistStats) GetPrivateGists() int {
if g == nil || g.PrivateGists == nil {
return 0
}
return *g.PrivateGists
}
// GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise.
func (g *GistStats) GetPublicGists() int {
if g == nil || g.PublicGists == nil {
return 0
}
return *g.PublicGists
}
// GetTotalGists returns the TotalGists field if it's non-nil, zero value otherwise.
func (g *GistStats) GetTotalGists() int {
if g == nil || g.TotalGists == nil {
return 0
}
return *g.TotalGists
}
// GetAction returns the Action field if it's non-nil, zero value otherwise.
func (g *GitHubAppAuthorizationEvent) GetAction() string {
if g == nil || g.Action == nil {
return ""
}
return *g.Action
}
// GetSender returns the Sender field.
func (g *GitHubAppAuthorizationEvent) GetSender() *User {
if g == nil {
return nil
}
return g.Sender
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (g *Gitignore) GetName() string {
if g == nil || g.Name == nil {
return ""
}
return *g.Name
}
// GetSource returns the Source field if it's non-nil, zero value otherwise.
func (g *Gitignore) GetSource() string {
if g == nil || g.Source == nil {
return ""
}
return *g.Source
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (g *GitObject) GetSHA() string {
if g == nil || g.SHA == nil {
return ""
}
return *g.SHA
}
// GetType returns the Type field if it's non-nil, zero value otherwise.
func (g *GitObject) GetType() string {
if g == nil || g.Type == nil {
return ""
}
return *g.Type
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (g *GitObject) GetURL() string {
if g == nil || g.URL == nil {
return ""
}
return *g.URL
}
// GetInstallation returns the Installation field.
func (g *GollumEvent) GetInstallation() *Installation {
if g == nil {
return nil
}
return g.Installation
}
// GetRepo returns the Repo field.
func (g *GollumEvent) GetRepo() *Repository {
if g == nil {
return nil
}
return g.Repo
}
// GetSender returns the Sender field.
func (g *GollumEvent) GetSender() *User {
if g == nil {
return nil
}
return g.Sender
}
// GetEmail returns the Email field if it's non-nil, zero value otherwise.
func (g *GPGEmail) GetEmail() string {
if g == nil || g.Email == nil {
return ""
}
return *g.Email
}
// GetVerified returns the Verified field if it's non-nil, zero value otherwise.
func (g *GPGEmail) GetVerified() bool {
if g == nil || g.Verified == nil {
return false
}
return *g.Verified
}
// GetCanCertify returns the CanCertify field if it's non-nil, zero value otherwise.
func (g *GPGKey) GetCanCertify() bool {
if g == nil || g.CanCertify == nil {
return false
}
return *g.CanCertify
}
// GetCanEncryptComms returns the CanEncryptComms field if it's non-nil, zero value otherwise.
func (g *GPGKey) GetCanEncryptComms() bool {
if g == nil || g.CanEncryptComms == nil {
return false
}
return *g.CanEncryptComms
}
// GetCanEncryptStorage returns the CanEncryptStorage field if it's non-nil, zero value otherwise.
func (g *GPGKey) GetCanEncryptStorage() bool {
if g == nil || g.CanEncryptStorage == nil {
return false
}
return *g.CanEncryptStorage
}
// GetCanSign returns the CanSign field if it's non-nil, zero value otherwise.
func (g *GPGKey) GetCanSign() bool {
if g == nil || g.CanSign == nil {
return false
}
return *g.CanSign
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (g *GPGKey) GetCreatedAt() time.Time {
if g == nil || g.CreatedAt == nil {
return time.Time{}
}
return *g.CreatedAt
}
// GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise.
func (g *GPGKey) GetExpiresAt() time.Time {
if g == nil || g.ExpiresAt == nil {
return time.Time{}
}
return *g.ExpiresAt
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (g *GPGKey) GetID() int64 {
if g == nil || g.ID == nil {
return 0
}
return *g.ID
}
// GetKeyID returns the KeyID field if it's non-nil, zero value otherwise.
func (g *GPGKey) GetKeyID() string {
if g == nil || g.KeyID == nil {
return ""
}
return *g.KeyID
}
// GetPrimaryKeyID returns the PrimaryKeyID field if it's non-nil, zero value otherwise.
func (g *GPGKey) GetPrimaryKeyID() int64 {
if g == nil || g.PrimaryKeyID == nil {
return 0
}
return *g.PrimaryKeyID
}
// GetPublicKey returns the PublicKey field if it's non-nil, zero value otherwise.
func (g *GPGKey) GetPublicKey() string {
if g == nil || g.PublicKey == nil {
return ""
}
return *g.PublicKey
}
// GetApp returns the App field.
func (g *Grant) GetApp() *AuthorizationApp {
if g == nil {
return nil
}
return g.App
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (g *Grant) GetCreatedAt() Timestamp {
if g == nil || g.CreatedAt == nil {
return Timestamp{}
}
return *g.CreatedAt
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (g *Grant) GetID() int64 {
if g == nil || g.ID == nil {
return 0
}
return *g.ID
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (g *Grant) GetUpdatedAt() Timestamp {
if g == nil || g.UpdatedAt == nil {
return Timestamp{}
}
return *g.UpdatedAt
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (g *Grant) GetURL() string {
if g == nil || g.URL == nil {
return ""
}
return *g.URL
}
// GetActive returns the Active field if it's non-nil, zero value otherwise.
func (h *Hook) GetActive() bool {
if h == nil || h.Active == nil {
return false
}
return *h.Active
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (h *Hook) GetCreatedAt() time.Time {
if h == nil || h.CreatedAt == nil {
return time.Time{}
}
return *h.CreatedAt
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (h *Hook) GetID() int64 {
if h == nil || h.ID == nil {
return 0
}
return *h.ID
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (h *Hook) GetUpdatedAt() time.Time {
if h == nil || h.UpdatedAt == nil {
return time.Time{}
}
return *h.UpdatedAt
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (h *Hook) GetURL() string {
if h == nil || h.URL == nil {
return ""
}
return *h.URL
}
// GetActiveHooks returns the ActiveHooks field if it's non-nil, zero value otherwise.
func (h *HookStats) GetActiveHooks() int {
if h == nil || h.ActiveHooks == nil {
return 0
}
return *h.ActiveHooks
}
// GetInactiveHooks returns the InactiveHooks field if it's non-nil, zero value otherwise.
func (h *HookStats) GetInactiveHooks() int {
if h == nil || h.InactiveHooks == nil {
return 0
}
return *h.InactiveHooks
}
// GetTotalHooks returns the TotalHooks field if it's non-nil, zero value otherwise.
func (h *HookStats) GetTotalHooks() int {
if h == nil || h.TotalHooks == nil {
return 0
}
return *h.TotalHooks
}
// GetGroupDescription returns the GroupDescription field if it's non-nil, zero value otherwise.
func (i *IDPGroup) GetGroupDescription() string {
if i == nil || i.GroupDescription == nil {
return ""
}
return *i.GroupDescription
}
// GetGroupID returns the GroupID field if it's non-nil, zero value otherwise.
func (i *IDPGroup) GetGroupID() string {
if i == nil || i.GroupID == nil {
return ""
}
return *i.GroupID
}
// GetGroupName returns the GroupName field if it's non-nil, zero value otherwise.
func (i *IDPGroup) GetGroupName() string {
if i == nil || i.GroupName == nil {
return ""
}
return *i.GroupName
}
// GetAuthorsCount returns the AuthorsCount field if it's non-nil, zero value otherwise.
func (i *Import) GetAuthorsCount() int {
if i == nil || i.AuthorsCount == nil {
return 0
}
return *i.AuthorsCount
}
// GetAuthorsURL returns the AuthorsURL field if it's non-nil, zero value otherwise.
func (i *Import) GetAuthorsURL() string {
if i == nil || i.AuthorsURL == nil {
return ""
}
return *i.AuthorsURL
}
// GetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise.
func (i *Import) GetCommitCount() int {
if i == nil || i.CommitCount == nil {
return 0
}
return *i.CommitCount
}
// GetFailedStep returns the FailedStep field if it's non-nil, zero value otherwise.
func (i *Import) GetFailedStep() string {
if i == nil || i.FailedStep == nil {
return ""
}
return *i.FailedStep
}
// GetHasLargeFiles returns the HasLargeFiles field if it's non-nil, zero value otherwise.
func (i *Import) GetHasLargeFiles() bool {
if i == nil || i.HasLargeFiles == nil {
return false
}
return *i.HasLargeFiles
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (i *Import) GetHTMLURL() string {
if i == nil || i.HTMLURL == nil {
return ""
}
return *i.HTMLURL
}
// GetHumanName returns the HumanName field if it's non-nil, zero value otherwise.
func (i *Import) GetHumanName() string {
if i == nil || i.HumanName == nil {
return ""
}
return *i.HumanName
}
// GetLargeFilesCount returns the LargeFilesCount field if it's non-nil, zero value otherwise.
func (i *Import) GetLargeFilesCount() int {
if i == nil || i.LargeFilesCount == nil {
return 0
}
return *i.LargeFilesCount
}
// GetLargeFilesSize returns the LargeFilesSize field if it's non-nil, zero value otherwise.
func (i *Import) GetLargeFilesSize() int {
if i == nil || i.LargeFilesSize == nil {
return 0
}
return *i.LargeFilesSize
}
// GetMessage returns the Message field if it's non-nil, zero value otherwise.
func (i *Import) GetMessage() string {
if i == nil || i.Message == nil {
return ""
}
return *i.Message
}
// GetPercent returns the Percent field if it's non-nil, zero value otherwise.
func (i *Import) GetPercent() int {
if i == nil || i.Percent == nil {
return 0
}
return *i.Percent
}
// GetPushPercent returns the PushPercent field if it's non-nil, zero value otherwise.
func (i *Import) GetPushPercent() int {
if i == nil || i.PushPercent == nil {
return 0
}
return *i.PushPercent
}
// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
func (i *Import) GetRepositoryURL() string {
if i == nil || i.RepositoryURL == nil {
return ""
}
return *i.RepositoryURL
}
// GetStatus returns the Status field if it's non-nil, zero value otherwise.
func (i *Import) GetStatus() string {
if i == nil || i.Status == nil {
return ""
}
return *i.Status
}
// GetStatusText returns the StatusText field if it's non-nil, zero value otherwise.
func (i *Import) GetStatusText() string {
if i == nil || i.StatusText == nil {
return ""
}
return *i.StatusText
}
// GetTFVCProject returns the TFVCProject field if it's non-nil, zero value otherwise.
func (i *Import) GetTFVCProject() string {
if i == nil || i.TFVCProject == nil {
return ""
}
return *i.TFVCProject
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (i *Import) GetURL() string {
if i == nil || i.URL == nil {
return ""
}
return *i.URL
}
// GetUseLFS returns the UseLFS field if it's non-nil, zero value otherwise.
func (i *Import) GetUseLFS() string {
if i == nil || i.UseLFS == nil {
return ""
}
return *i.UseLFS
}
// GetVCS returns the VCS field if it's non-nil, zero value otherwise.
func (i *Import) GetVCS() string {
if i == nil || i.VCS == nil {
return ""
}
return *i.VCS
}
// GetVCSPassword returns the VCSPassword field if it's non-nil, zero value otherwise.
func (i *Import) GetVCSPassword() string {
if i == nil || i.VCSPassword == nil {
return ""
}
return *i.VCSPassword
}
// GetVCSURL returns the VCSURL field if it's non-nil, zero value otherwise.
func (i *Import) GetVCSURL() string {
if i == nil || i.VCSURL == nil {
return ""
}
return *i.VCSURL
}
// GetVCSUsername returns the VCSUsername field if it's non-nil, zero value otherwise.
func (i *Import) GetVCSUsername() string {
if i == nil || i.VCSUsername == nil {
return ""
}
return *i.VCSUsername
}
// GetAccessTokensURL returns the AccessTokensURL field if it's non-nil, zero value otherwise.
func (i *Installation) GetAccessTokensURL() string {
if i == nil || i.AccessTokensURL == nil {
return ""
}
return *i.AccessTokensURL
}
// GetAccount returns the Account field.
func (i *Installation) GetAccount() *User {
if i == nil {
return nil
}
return i.Account
}
// GetAppID returns the AppID field if it's non-nil, zero value otherwise.
func (i *Installation) GetAppID() int64 {
if i == nil || i.AppID == nil {
return 0
}
return *i.AppID
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (i *Installation) GetCreatedAt() Timestamp {
if i == nil || i.CreatedAt == nil {
return Timestamp{}
}
return *i.CreatedAt
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (i *Installation) GetHTMLURL() string {
if i == nil || i.HTMLURL == nil {
return ""
}
return *i.HTMLURL
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (i *Installation) GetID() int64 {
if i == nil || i.ID == nil {
return 0
}
return *i.ID
}
// GetPermissions returns the Permissions field.
func (i *Installation) GetPermissions() *InstallationPermissions {
if i == nil {
return nil
}
return i.Permissions
}
// GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise.
func (i *Installation) GetRepositoriesURL() string {
if i == nil || i.RepositoriesURL == nil {
return ""
}
return *i.RepositoriesURL
}
// GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise.
func (i *Installation) GetRepositorySelection() string {
if i == nil || i.RepositorySelection == nil {
return ""
}
return *i.RepositorySelection
}
// GetSingleFileName returns the SingleFileName field if it's non-nil, zero value otherwise.
func (i *Installation) GetSingleFileName() string {
if i == nil || i.SingleFileName == nil {
return ""
}
return *i.SingleFileName
}
// GetTargetID returns the TargetID field if it's non-nil, zero value otherwise.
func (i *Installation) GetTargetID() int64 {
if i == nil || i.TargetID == nil {
return 0
}
return *i.TargetID
}
// GetTargetType returns the TargetType field if it's non-nil, zero value otherwise.
func (i *Installation) GetTargetType() string {
if i == nil || i.TargetType == nil {
return ""
}
return *i.TargetType
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (i *Installation) GetUpdatedAt() Timestamp {
if i == nil || i.UpdatedAt == nil {
return Timestamp{}
}
return *i.UpdatedAt
}
// GetAction returns the Action field if it's non-nil, zero value otherwise.
func (i *InstallationEvent) GetAction() string {
if i == nil || i.Action == nil {
return ""
}
return *i.Action
}
// GetInstallation returns the Installation field.
func (i *InstallationEvent) GetInstallation() *Installation {
if i == nil {
return nil
}
return i.Installation
}
// GetSender returns the Sender field.
func (i *InstallationEvent) GetSender() *User {
if i == nil {
return nil
}
return i.Sender
}
// GetAdministration returns the Administration field if it's non-nil, zero value otherwise.
func (i *InstallationPermissions) GetAdministration() string {
if i == nil || i.Administration == nil {
return ""
}
return *i.Administration
}
// GetChecks returns the Checks field if it's non-nil, zero value otherwise.
func (i *InstallationPermissions) GetChecks() string {
if i == nil || i.Checks == nil {
return ""
}
return *i.Checks
}
// GetContentReferences returns the ContentReferences field if it's non-nil, zero value otherwise.
func (i *InstallationPermissions) GetContentReferences() string {
if i == nil || i.ContentReferences == nil {
return ""
}
return *i.ContentReferences
}
// GetContents returns the Contents field if it's non-nil, zero value otherwise.
func (i *InstallationPermissions) GetContents() string {
if i == nil || i.Contents == nil {
return ""
}
return *i.Contents
}
// GetDeployments returns the Deployments field if it's non-nil, zero value otherwise.
func (i *InstallationPermissions) GetDeployments() string {
if i == nil || i.Deployments == nil {
return ""
}
return *i.Deployments
}
// GetIssues returns the Issues field if it's non-nil, zero value otherwise.
func (i *InstallationPermissions) GetIssues() string {
if i == nil || i.Issues == nil {
return ""
}
return *i.Issues
}
// GetMembers returns the Members field if it's non-nil, zero value otherwise.
func (i *InstallationPermissions) GetMembers() string {
if i == nil || i.Members == nil {
return ""
}
return *i.Members
}
// GetMetadata returns the Metadata field if it's non-nil, zero value otherwise.
func (i *InstallationPermissions) GetMetadata() string {
if i == nil || i.Metadata == nil {
return ""
}
return *i.Metadata
}
// GetOrganizationAdministration returns the OrganizationAdministration field if it's non-nil, zero value otherwise.
func (i *InstallationPermissions) GetOrganizationAdministration() string {
if i == nil || i.OrganizationAdministration == nil {
return ""