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 6// Code generated by gen-accessors; DO NOT EDIT. 7 8package github 9 10import ( 11 "encoding/json" 12 "time" 13) 14 15// GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise. 16func (a *AbuseRateLimitError) GetRetryAfter() time.Duration { 17 if a == nil || a.RetryAfter == nil { 18 return 0 19 } 20 return *a.RetryAfter 21} 22 23// GetURL returns the URL field if it's non-nil, zero value otherwise. 24func (a *AdminEnforcement) GetURL() string { 25 if a == nil || a.URL == nil { 26 return "" 27 } 28 return *a.URL 29} 30 31// GetVerifiablePasswordAuthentication returns the VerifiablePasswordAuthentication field if it's non-nil, zero value otherwise. 32func (a *APIMeta) GetVerifiablePasswordAuthentication() bool { 33 if a == nil || a.VerifiablePasswordAuthentication == nil { 34 return false 35 } 36 return *a.VerifiablePasswordAuthentication 37} 38 39// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 40func (a *Authorization) GetCreatedAt() Timestamp { 41 if a == nil || a.CreatedAt == nil { 42 return Timestamp{} 43 } 44 return *a.CreatedAt 45} 46 47// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 48func (a *Authorization) GetFingerprint() string { 49 if a == nil || a.Fingerprint == nil { 50 return "" 51 } 52 return *a.Fingerprint 53} 54 55// GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. 56func (a *Authorization) GetHashedToken() string { 57 if a == nil || a.HashedToken == nil { 58 return "" 59 } 60 return *a.HashedToken 61} 62 63// GetID returns the ID field if it's non-nil, zero value otherwise. 64func (a *Authorization) GetID() int { 65 if a == nil || a.ID == nil { 66 return 0 67 } 68 return *a.ID 69} 70 71// GetNote returns the Note field if it's non-nil, zero value otherwise. 72func (a *Authorization) GetNote() string { 73 if a == nil || a.Note == nil { 74 return "" 75 } 76 return *a.Note 77} 78 79// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 80func (a *Authorization) GetNoteURL() string { 81 if a == nil || a.NoteURL == nil { 82 return "" 83 } 84 return *a.NoteURL 85} 86 87// GetToken returns the Token field if it's non-nil, zero value otherwise. 88func (a *Authorization) GetToken() string { 89 if a == nil || a.Token == nil { 90 return "" 91 } 92 return *a.Token 93} 94 95// GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. 96func (a *Authorization) GetTokenLastEight() string { 97 if a == nil || a.TokenLastEight == nil { 98 return "" 99 } 100 return *a.TokenLastEight 101} 102 103// GetUpdateAt returns the UpdateAt field if it's non-nil, zero value otherwise. 104func (a *Authorization) GetUpdateAt() Timestamp { 105 if a == nil || a.UpdateAt == nil { 106 return Timestamp{} 107 } 108 return *a.UpdateAt 109} 110 111// GetURL returns the URL field if it's non-nil, zero value otherwise. 112func (a *Authorization) GetURL() string { 113 if a == nil || a.URL == nil { 114 return "" 115 } 116 return *a.URL 117} 118 119// GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 120func (a *AuthorizationApp) GetClientID() string { 121 if a == nil || a.ClientID == nil { 122 return "" 123 } 124 return *a.ClientID 125} 126 127// GetName returns the Name field if it's non-nil, zero value otherwise. 128func (a *AuthorizationApp) GetName() string { 129 if a == nil || a.Name == nil { 130 return "" 131 } 132 return *a.Name 133} 134 135// GetURL returns the URL field if it's non-nil, zero value otherwise. 136func (a *AuthorizationApp) GetURL() string { 137 if a == nil || a.URL == nil { 138 return "" 139 } 140 return *a.URL 141} 142 143// GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 144func (a *AuthorizationRequest) GetClientID() string { 145 if a == nil || a.ClientID == nil { 146 return "" 147 } 148 return *a.ClientID 149} 150 151// GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. 152func (a *AuthorizationRequest) GetClientSecret() string { 153 if a == nil || a.ClientSecret == nil { 154 return "" 155 } 156 return *a.ClientSecret 157} 158 159// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 160func (a *AuthorizationRequest) GetFingerprint() string { 161 if a == nil || a.Fingerprint == nil { 162 return "" 163 } 164 return *a.Fingerprint 165} 166 167// GetNote returns the Note field if it's non-nil, zero value otherwise. 168func (a *AuthorizationRequest) GetNote() string { 169 if a == nil || a.Note == nil { 170 return "" 171 } 172 return *a.Note 173} 174 175// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 176func (a *AuthorizationRequest) GetNoteURL() string { 177 if a == nil || a.NoteURL == nil { 178 return "" 179 } 180 return *a.NoteURL 181} 182 183// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 184func (a *AuthorizationUpdateRequest) GetFingerprint() string { 185 if a == nil || a.Fingerprint == nil { 186 return "" 187 } 188 return *a.Fingerprint 189} 190 191// GetNote returns the Note field if it's non-nil, zero value otherwise. 192func (a *AuthorizationUpdateRequest) GetNote() string { 193 if a == nil || a.Note == nil { 194 return "" 195 } 196 return *a.Note 197} 198 199// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 200func (a *AuthorizationUpdateRequest) GetNoteURL() string { 201 if a == nil || a.NoteURL == nil { 202 return "" 203 } 204 return *a.NoteURL 205} 206 207// GetContent returns the Content field if it's non-nil, zero value otherwise. 208func (b *Blob) GetContent() string { 209 if b == nil || b.Content == nil { 210 return "" 211 } 212 return *b.Content 213} 214 215// GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 216func (b *Blob) GetEncoding() string { 217 if b == nil || b.Encoding == nil { 218 return "" 219 } 220 return *b.Encoding 221} 222 223// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 224func (b *Blob) GetSHA() string { 225 if b == nil || b.SHA == nil { 226 return "" 227 } 228 return *b.SHA 229} 230 231// GetSize returns the Size field if it's non-nil, zero value otherwise. 232func (b *Blob) GetSize() int { 233 if b == nil || b.Size == nil { 234 return 0 235 } 236 return *b.Size 237} 238 239// GetURL returns the URL field if it's non-nil, zero value otherwise. 240func (b *Blob) GetURL() string { 241 if b == nil || b.URL == nil { 242 return "" 243 } 244 return *b.URL 245} 246 247// GetName returns the Name field if it's non-nil, zero value otherwise. 248func (b *Branch) GetName() string { 249 if b == nil || b.Name == nil { 250 return "" 251 } 252 return *b.Name 253} 254 255// GetProtected returns the Protected field if it's non-nil, zero value otherwise. 256func (b *Branch) GetProtected() bool { 257 if b == nil || b.Protected == nil { 258 return false 259 } 260 return *b.Protected 261} 262 263// GetBody returns the Body field if it's non-nil, zero value otherwise. 264func (c *CodeOfConduct) GetBody() string { 265 if c == nil || c.Body == nil { 266 return "" 267 } 268 return *c.Body 269} 270 271// GetKey returns the Key field if it's non-nil, zero value otherwise. 272func (c *CodeOfConduct) GetKey() string { 273 if c == nil || c.Key == nil { 274 return "" 275 } 276 return *c.Key 277} 278 279// GetName returns the Name field if it's non-nil, zero value otherwise. 280func (c *CodeOfConduct) GetName() string { 281 if c == nil || c.Name == nil { 282 return "" 283 } 284 return *c.Name 285} 286 287// GetURL returns the URL field if it's non-nil, zero value otherwise. 288func (c *CodeOfConduct) GetURL() string { 289 if c == nil || c.URL == nil { 290 return "" 291 } 292 return *c.URL 293} 294 295// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 296func (c *CodeResult) GetHTMLURL() string { 297 if c == nil || c.HTMLURL == nil { 298 return "" 299 } 300 return *c.HTMLURL 301} 302 303// GetName returns the Name field if it's non-nil, zero value otherwise. 304func (c *CodeResult) GetName() string { 305 if c == nil || c.Name == nil { 306 return "" 307 } 308 return *c.Name 309} 310 311// GetPath returns the Path field if it's non-nil, zero value otherwise. 312func (c *CodeResult) GetPath() string { 313 if c == nil || c.Path == nil { 314 return "" 315 } 316 return *c.Path 317} 318 319// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 320func (c *CodeResult) GetSHA() string { 321 if c == nil || c.SHA == nil { 322 return "" 323 } 324 return *c.SHA 325} 326 327// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 328func (c *CodeSearchResult) GetIncompleteResults() bool { 329 if c == nil || c.IncompleteResults == nil { 330 return false 331 } 332 return *c.IncompleteResults 333} 334 335// GetTotal returns the Total field if it's non-nil, zero value otherwise. 336func (c *CodeSearchResult) GetTotal() int { 337 if c == nil || c.Total == nil { 338 return 0 339 } 340 return *c.Total 341} 342 343// GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 344func (c *CombinedStatus) GetCommitURL() string { 345 if c == nil || c.CommitURL == nil { 346 return "" 347 } 348 return *c.CommitURL 349} 350 351// GetName returns the Name field if it's non-nil, zero value otherwise. 352func (c *CombinedStatus) GetName() string { 353 if c == nil || c.Name == nil { 354 return "" 355 } 356 return *c.Name 357} 358 359// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 360func (c *CombinedStatus) GetRepositoryURL() string { 361 if c == nil || c.RepositoryURL == nil { 362 return "" 363 } 364 return *c.RepositoryURL 365} 366 367// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 368func (c *CombinedStatus) GetSHA() string { 369 if c == nil || c.SHA == nil { 370 return "" 371 } 372 return *c.SHA 373} 374 375// GetState returns the State field if it's non-nil, zero value otherwise. 376func (c *CombinedStatus) GetState() string { 377 if c == nil || c.State == nil { 378 return "" 379 } 380 return *c.State 381} 382 383// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 384func (c *CombinedStatus) GetTotalCount() int { 385 if c == nil || c.TotalCount == nil { 386 return 0 387 } 388 return *c.TotalCount 389} 390 391// GetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise. 392func (c *Commit) GetCommentCount() int { 393 if c == nil || c.CommentCount == nil { 394 return 0 395 } 396 return *c.CommentCount 397} 398 399// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 400func (c *Commit) GetHTMLURL() string { 401 if c == nil || c.HTMLURL == nil { 402 return "" 403 } 404 return *c.HTMLURL 405} 406 407// GetMessage returns the Message field if it's non-nil, zero value otherwise. 408func (c *Commit) GetMessage() string { 409 if c == nil || c.Message == nil { 410 return "" 411 } 412 return *c.Message 413} 414 415// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 416func (c *Commit) GetSHA() string { 417 if c == nil || c.SHA == nil { 418 return "" 419 } 420 return *c.SHA 421} 422 423// GetURL returns the URL field if it's non-nil, zero value otherwise. 424func (c *Commit) GetURL() string { 425 if c == nil || c.URL == nil { 426 return "" 427 } 428 return *c.URL 429} 430 431// GetDate returns the Date field if it's non-nil, zero value otherwise. 432func (c *CommitAuthor) GetDate() time.Time { 433 if c == nil || c.Date == nil { 434 return time.Time{} 435 } 436 return *c.Date 437} 438 439// GetEmail returns the Email field if it's non-nil, zero value otherwise. 440func (c *CommitAuthor) GetEmail() string { 441 if c == nil || c.Email == nil { 442 return "" 443 } 444 return *c.Email 445} 446 447// GetLogin returns the Login field if it's non-nil, zero value otherwise. 448func (c *CommitAuthor) GetLogin() string { 449 if c == nil || c.Login == nil { 450 return "" 451 } 452 return *c.Login 453} 454 455// GetName returns the Name field if it's non-nil, zero value otherwise. 456func (c *CommitAuthor) GetName() string { 457 if c == nil || c.Name == nil { 458 return "" 459 } 460 return *c.Name 461} 462 463// GetAction returns the Action field if it's non-nil, zero value otherwise. 464func (c *CommitCommentEvent) GetAction() string { 465 if c == nil || c.Action == nil { 466 return "" 467 } 468 return *c.Action 469} 470 471// GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 472func (c *CommitFile) GetAdditions() int { 473 if c == nil || c.Additions == nil { 474 return 0 475 } 476 return *c.Additions 477} 478 479// GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise. 480func (c *CommitFile) GetBlobURL() string { 481 if c == nil || c.BlobURL == nil { 482 return "" 483 } 484 return *c.BlobURL 485} 486 487// GetChanges returns the Changes field if it's non-nil, zero value otherwise. 488func (c *CommitFile) GetChanges() int { 489 if c == nil || c.Changes == nil { 490 return 0 491 } 492 return *c.Changes 493} 494 495// GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 496func (c *CommitFile) GetContentsURL() string { 497 if c == nil || c.ContentsURL == nil { 498 return "" 499 } 500 return *c.ContentsURL 501} 502 503// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 504func (c *CommitFile) GetDeletions() int { 505 if c == nil || c.Deletions == nil { 506 return 0 507 } 508 return *c.Deletions 509} 510 511// GetFilename returns the Filename field if it's non-nil, zero value otherwise. 512func (c *CommitFile) GetFilename() string { 513 if c == nil || c.Filename == nil { 514 return "" 515 } 516 return *c.Filename 517} 518 519// GetPatch returns the Patch field if it's non-nil, zero value otherwise. 520func (c *CommitFile) GetPatch() string { 521 if c == nil || c.Patch == nil { 522 return "" 523 } 524 return *c.Patch 525} 526 527// GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 528func (c *CommitFile) GetRawURL() string { 529 if c == nil || c.RawURL == nil { 530 return "" 531 } 532 return *c.RawURL 533} 534 535// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 536func (c *CommitFile) GetSHA() string { 537 if c == nil || c.SHA == nil { 538 return "" 539 } 540 return *c.SHA 541} 542 543// GetStatus returns the Status field if it's non-nil, zero value otherwise. 544func (c *CommitFile) GetStatus() string { 545 if c == nil || c.Status == nil { 546 return "" 547 } 548 return *c.Status 549} 550 551// GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 552func (c *CommitResult) GetCommentsURL() string { 553 if c == nil || c.CommentsURL == nil { 554 return "" 555 } 556 return *c.CommentsURL 557} 558 559// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 560func (c *CommitResult) GetHTMLURL() string { 561 if c == nil || c.HTMLURL == nil { 562 return "" 563 } 564 return *c.HTMLURL 565} 566 567// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 568func (c *CommitResult) GetSHA() string { 569 if c == nil || c.SHA == nil { 570 return "" 571 } 572 return *c.SHA 573} 574 575// GetURL returns the URL field if it's non-nil, zero value otherwise. 576func (c *CommitResult) GetURL() string { 577 if c == nil || c.URL == nil { 578 return "" 579 } 580 return *c.URL 581} 582 583// GetAheadBy returns the AheadBy field if it's non-nil, zero value otherwise. 584func (c *CommitsComparison) GetAheadBy() int { 585 if c == nil || c.AheadBy == nil { 586 return 0 587 } 588 return *c.AheadBy 589} 590 591// GetBehindBy returns the BehindBy field if it's non-nil, zero value otherwise. 592func (c *CommitsComparison) GetBehindBy() int { 593 if c == nil || c.BehindBy == nil { 594 return 0 595 } 596 return *c.BehindBy 597} 598 599// GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 600func (c *CommitsComparison) GetDiffURL() string { 601 if c == nil || c.DiffURL == nil { 602 return "" 603 } 604 return *c.DiffURL 605} 606 607// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 608func (c *CommitsComparison) GetHTMLURL() string { 609 if c == nil || c.HTMLURL == nil { 610 return "" 611 } 612 return *c.HTMLURL 613} 614 615// GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 616func (c *CommitsComparison) GetPatchURL() string { 617 if c == nil || c.PatchURL == nil { 618 return "" 619 } 620 return *c.PatchURL 621} 622 623// GetPermalinkURL returns the PermalinkURL field if it's non-nil, zero value otherwise. 624func (c *CommitsComparison) GetPermalinkURL() string { 625 if c == nil || c.PermalinkURL == nil { 626 return "" 627 } 628 return *c.PermalinkURL 629} 630 631// GetStatus returns the Status field if it's non-nil, zero value otherwise. 632func (c *CommitsComparison) GetStatus() string { 633 if c == nil || c.Status == nil { 634 return "" 635 } 636 return *c.Status 637} 638 639// GetTotalCommits returns the TotalCommits field if it's non-nil, zero value otherwise. 640func (c *CommitsComparison) GetTotalCommits() int { 641 if c == nil || c.TotalCommits == nil { 642 return 0 643 } 644 return *c.TotalCommits 645} 646 647// GetURL returns the URL field if it's non-nil, zero value otherwise. 648func (c *CommitsComparison) GetURL() string { 649 if c == nil || c.URL == nil { 650 return "" 651 } 652 return *c.URL 653} 654 655// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 656func (c *CommitsSearchResult) GetIncompleteResults() bool { 657 if c == nil || c.IncompleteResults == nil { 658 return false 659 } 660 return *c.IncompleteResults 661} 662 663// GetTotal returns the Total field if it's non-nil, zero value otherwise. 664func (c *CommitsSearchResult) GetTotal() int { 665 if c == nil || c.Total == nil { 666 return 0 667 } 668 return *c.Total 669} 670 671// GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 672func (c *CommitStats) GetAdditions() int { 673 if c == nil || c.Additions == nil { 674 return 0 675 } 676 return *c.Additions 677} 678 679// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 680func (c *CommitStats) GetDeletions() int { 681 if c == nil || c.Deletions == nil { 682 return 0 683 } 684 return *c.Deletions 685} 686 687// GetTotal returns the Total field if it's non-nil, zero value otherwise. 688func (c *CommitStats) GetTotal() int { 689 if c == nil || c.Total == nil { 690 return 0 691 } 692 return *c.Total 693} 694 695// GetHealthPercentage returns the HealthPercentage field if it's non-nil, zero value otherwise. 696func (c *CommunityHealthMetrics) GetHealthPercentage() int { 697 if c == nil || c.HealthPercentage == nil { 698 return 0 699 } 700 return *c.HealthPercentage 701} 702 703// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 704func (c *CommunityHealthMetrics) GetUpdatedAt() time.Time { 705 if c == nil || c.UpdatedAt == nil { 706 return time.Time{} 707 } 708 return *c.UpdatedAt 709} 710 711// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 712func (c *Contributor) GetAvatarURL() string { 713 if c == nil || c.AvatarURL == nil { 714 return "" 715 } 716 return *c.AvatarURL 717} 718 719// GetContributions returns the Contributions field if it's non-nil, zero value otherwise. 720func (c *Contributor) GetContributions() int { 721 if c == nil || c.Contributions == nil { 722 return 0 723 } 724 return *c.Contributions 725} 726 727// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 728func (c *Contributor) GetEventsURL() string { 729 if c == nil || c.EventsURL == nil { 730 return "" 731 } 732 return *c.EventsURL 733} 734 735// GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 736func (c *Contributor) GetFollowersURL() string { 737 if c == nil || c.FollowersURL == nil { 738 return "" 739 } 740 return *c.FollowersURL 741} 742 743// GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 744func (c *Contributor) GetFollowingURL() string { 745 if c == nil || c.FollowingURL == nil { 746 return "" 747 } 748 return *c.FollowingURL 749} 750 751// GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 752func (c *Contributor) GetGistsURL() string { 753 if c == nil || c.GistsURL == nil { 754 return "" 755 } 756 return *c.GistsURL 757} 758 759// GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 760func (c *Contributor) GetGravatarID() string { 761 if c == nil || c.GravatarID == nil { 762 return "" 763 } 764 return *c.GravatarID 765} 766 767// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 768func (c *Contributor) GetHTMLURL() string { 769 if c == nil || c.HTMLURL == nil { 770 return "" 771 } 772 return *c.HTMLURL 773} 774 775// GetID returns the ID field if it's non-nil, zero value otherwise. 776func (c *Contributor) GetID() int { 777 if c == nil || c.ID == nil { 778 return 0 779 } 780 return *c.ID 781} 782 783// GetLogin returns the Login field if it's non-nil, zero value otherwise. 784func (c *Contributor) GetLogin() string { 785 if c == nil || c.Login == nil { 786 return "" 787 } 788 return *c.Login 789} 790 791// GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 792func (c *Contributor) GetOrganizationsURL() string { 793 if c == nil || c.OrganizationsURL == nil { 794 return "" 795 } 796 return *c.OrganizationsURL 797} 798 799// GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 800func (c *Contributor) GetReceivedEventsURL() string { 801 if c == nil || c.ReceivedEventsURL == nil { 802 return "" 803 } 804 return *c.ReceivedEventsURL 805} 806 807// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 808func (c *Contributor) GetReposURL() string { 809 if c == nil || c.ReposURL == nil { 810 return "" 811 } 812 return *c.ReposURL 813} 814 815// GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 816func (c *Contributor) GetSiteAdmin() bool { 817 if c == nil || c.SiteAdmin == nil { 818 return false 819 } 820 return *c.SiteAdmin 821} 822 823// GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 824func (c *Contributor) GetStarredURL() string { 825 if c == nil || c.StarredURL == nil { 826 return "" 827 } 828 return *c.StarredURL 829} 830 831// GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 832func (c *Contributor) GetSubscriptionsURL() string { 833 if c == nil || c.SubscriptionsURL == nil { 834 return "" 835 } 836 return *c.SubscriptionsURL 837} 838 839// GetType returns the Type field if it's non-nil, zero value otherwise. 840func (c *Contributor) GetType() string { 841 if c == nil || c.Type == nil { 842 return "" 843 } 844 return *c.Type 845} 846 847// GetURL returns the URL field if it's non-nil, zero value otherwise. 848func (c *Contributor) GetURL() string { 849 if c == nil || c.URL == nil { 850 return "" 851 } 852 return *c.URL 853} 854 855// GetTotal returns the Total field if it's non-nil, zero value otherwise. 856func (c *ContributorStats) GetTotal() int { 857 if c == nil || c.Total == nil { 858 return 0 859 } 860 return *c.Total 861} 862 863// GetMessage returns the Message field if it's non-nil, zero value otherwise. 864func (c *createCommit) GetMessage() string { 865 if c == nil || c.Message == nil { 866 return "" 867 } 868 return *c.Message 869} 870 871// GetTree returns the Tree field if it's non-nil, zero value otherwise. 872func (c *createCommit) GetTree() string { 873 if c == nil || c.Tree == nil { 874 return "" 875 } 876 return *c.Tree 877} 878 879// GetDescription returns the Description field if it's non-nil, zero value otherwise. 880func (c *CreateEvent) GetDescription() string { 881 if c == nil || c.Description == nil { 882 return "" 883 } 884 return *c.Description 885} 886 887// GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 888func (c *CreateEvent) GetMasterBranch() string { 889 if c == nil || c.MasterBranch == nil { 890 return "" 891 } 892 return *c.MasterBranch 893} 894 895// GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 896func (c *CreateEvent) GetPusherType() string { 897 if c == nil || c.PusherType == nil { 898 return "" 899 } 900 return *c.PusherType 901} 902 903// GetRef returns the Ref field if it's non-nil, zero value otherwise. 904func (c *CreateEvent) GetRef() string { 905 if c == nil || c.Ref == nil { 906 return "" 907 } 908 return *c.Ref 909} 910 911// GetRefType returns the RefType field if it's non-nil, zero value otherwise. 912func (c *CreateEvent) GetRefType() string { 913 if c == nil || c.RefType == nil { 914 return "" 915 } 916 return *c.RefType 917} 918 919// GetRef returns the Ref field if it's non-nil, zero value otherwise. 920func (c *createRefRequest) GetRef() string { 921 if c == nil || c.Ref == nil { 922 return "" 923 } 924 return *c.Ref 925} 926 927// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 928func (c *createRefRequest) GetSHA() string { 929 if c == nil || c.SHA == nil { 930 return "" 931 } 932 return *c.SHA 933} 934 935// GetMessage returns the Message field if it's non-nil, zero value otherwise. 936func (c *createTagRequest) GetMessage() string { 937 if c == nil || c.Message == nil { 938 return "" 939 } 940 return *c.Message 941} 942 943// GetObject returns the Object field if it's non-nil, zero value otherwise. 944func (c *createTagRequest) GetObject() string { 945 if c == nil || c.Object == nil { 946 return "" 947 } 948 return *c.Object 949} 950 951// GetTag returns the Tag field if it's non-nil, zero value otherwise. 952func (c *createTagRequest) GetTag() string { 953 if c == nil || c.Tag == nil { 954 return "" 955 } 956 return *c.Tag 957} 958 959// GetType returns the Type field if it's non-nil, zero value otherwise. 960func (c *createTagRequest) GetType() string { 961 if c == nil || c.Type == nil { 962 return "" 963 } 964 return *c.Type 965} 966 967// GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 968func (d *DeleteEvent) GetPusherType() string { 969 if d == nil || d.PusherType == nil { 970 return "" 971 } 972 return *d.PusherType 973} 974 975// GetRef returns the Ref field if it's non-nil, zero value otherwise. 976func (d *DeleteEvent) GetRef() string { 977 if d == nil || d.Ref == nil { 978 return "" 979 } 980 return *d.Ref 981} 982 983// GetRefType returns the RefType field if it's non-nil, zero value otherwise. 984func (d *DeleteEvent) GetRefType() string { 985 if d == nil || d.RefType == nil { 986 return "" 987 } 988 return *d.RefType 989} 990 991// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 992func (d *Deployment) GetCreatedAt() Timestamp { 993 if d == nil || d.CreatedAt == nil { 994 return Timestamp{} 995 } 996 return *d.CreatedAt 997} 998 999// GetDescription returns the Description field if it's non-nil, zero value otherwise. 1000func (d *Deployment) GetDescription() string { 1001 if d == nil || d.Description == nil { 1002 return "" 1003 } 1004 return *d.Description 1005} 1006 1007// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 1008func (d *Deployment) GetEnvironment() string { 1009 if d == nil || d.Environment == nil { 1010 return "" 1011 } 1012 return *d.Environment 1013} 1014 1015// GetID returns the ID field if it's non-nil, zero value otherwise. 1016func (d *Deployment) GetID() int { 1017 if d == nil || d.ID == nil { 1018 return 0 1019 } 1020 return *d.ID 1021} 1022 1023// GetRef returns the Ref field if it's non-nil, zero value otherwise. 1024func (d *Deployment) GetRef() string { 1025 if d == nil || d.Ref == nil { 1026 return "" 1027 } 1028 return *d.Ref 1029} 1030 1031// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 1032func (d *Deployment) GetRepositoryURL() string { 1033 if d == nil || d.RepositoryURL == nil { 1034 return "" 1035 } 1036 return *d.RepositoryURL 1037} 1038 1039// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1040func (d *Deployment) GetSHA() string { 1041 if d == nil || d.SHA == nil { 1042 return "" 1043 } 1044 return *d.SHA 1045} 1046 1047// GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 1048func (d *Deployment) GetStatusesURL() string { 1049 if d == nil || d.StatusesURL == nil { 1050 return "" 1051 } 1052 return *d.StatusesURL 1053} 1054 1055// GetTask returns the Task field if it's non-nil, zero value otherwise. 1056func (d *Deployment) GetTask() string { 1057 if d == nil || d.Task == nil { 1058 return "" 1059 } 1060 return *d.Task 1061} 1062 1063// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 1064func (d *Deployment) GetUpdatedAt() Timestamp { 1065 if d == nil || d.UpdatedAt == nil { 1066 return Timestamp{} 1067 } 1068 return *d.UpdatedAt 1069} 1070 1071// GetURL returns the URL field if it's non-nil, zero value otherwise. 1072func (d *Deployment) GetURL() string { 1073 if d == nil || d.URL == nil { 1074 return "" 1075 } 1076 return *d.URL 1077} 1078 1079// GetAutoMerge returns the AutoMerge field if it's non-nil, zero value otherwise. 1080func (d *DeploymentRequest) GetAutoMerge() bool { 1081 if d == nil || d.AutoMerge == nil { 1082 return false 1083 } 1084 return *d.AutoMerge 1085} 1086 1087// GetDescription returns the Description field if it's non-nil, zero value otherwise. 1088func (d *DeploymentRequest) GetDescription() string { 1089 if d == nil || d.Description == nil { 1090 return "" 1091 } 1092 return *d.Description 1093} 1094 1095// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 1096func (d *DeploymentRequest) GetEnvironment() string { 1097 if d == nil || d.Environment == nil { 1098 return "" 1099 } 1100 return *d.Environment 1101} 1102 1103// GetPayload returns the Payload field if it's non-nil, zero value otherwise. 1104func (d *DeploymentRequest) GetPayload() string { 1105 if d == nil || d.Payload == nil { 1106 return "" 1107 } 1108 return *d.Payload 1109} 1110 1111// GetProductionEnvironment returns the ProductionEnvironment field if it's non-nil, zero value otherwise. 1112func (d *DeploymentRequest) GetProductionEnvironment() bool { 1113 if d == nil || d.ProductionEnvironment == nil { 1114 return false 1115 } 1116 return *d.ProductionEnvironment 1117} 1118 1119// GetRef returns the Ref field if it's non-nil, zero value otherwise. 1120func (d *DeploymentRequest) GetRef() string { 1121 if d == nil || d.Ref == nil { 1122 return "" 1123 } 1124 return *d.Ref 1125} 1126 1127// GetRequiredContexts returns the RequiredContexts field if it's non-nil, zero value otherwise. 1128func (d *DeploymentRequest) GetRequiredContexts() []string { 1129 if d == nil || d.RequiredContexts == nil { 1130 return nil 1131 } 1132 return *d.RequiredContexts 1133} 1134 1135// GetTask returns the Task field if it's non-nil, zero value otherwise. 1136func (d *DeploymentRequest) GetTask() string { 1137 if d == nil || d.Task == nil { 1138 return "" 1139 } 1140 return *d.Task 1141} 1142 1143// GetTransientEnvironment returns the TransientEnvironment field if it's non-nil, zero value otherwise. 1144func (d *DeploymentRequest) GetTransientEnvironment() bool { 1145 if d == nil || d.TransientEnvironment == nil { 1146 return false 1147 } 1148 return *d.TransientEnvironment 1149} 1150 1151// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1152func (d *DeploymentStatus) GetCreatedAt() Timestamp { 1153 if d == nil || d.CreatedAt == nil { 1154 return Timestamp{} 1155 } 1156 return *d.CreatedAt 1157} 1158 1159// GetDeploymentURL returns the DeploymentURL field if it's non-nil, zero value otherwise. 1160func (d *DeploymentStatus) GetDeploymentURL() string { 1161 if d == nil || d.DeploymentURL == nil { 1162 return "" 1163 } 1164 return *d.DeploymentURL 1165} 1166 1167// GetDescription returns the Description field if it's non-nil, zero value otherwise. 1168func (d *DeploymentStatus) GetDescription() string { 1169 if d == nil || d.Description == nil { 1170 return "" 1171 } 1172 return *d.Description 1173} 1174 1175// GetID returns the ID field if it's non-nil, zero value otherwise. 1176func (d *DeploymentStatus) GetID() int { 1177 if d == nil || d.ID == nil { 1178 return 0 1179 } 1180 return *d.ID 1181} 1182 1183// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 1184func (d *DeploymentStatus) GetRepositoryURL() string { 1185 if d == nil || d.RepositoryURL == nil { 1186 return "" 1187 } 1188 return *d.RepositoryURL 1189} 1190 1191// GetState returns the State field if it's non-nil, zero value otherwise. 1192func (d *DeploymentStatus) GetState() string { 1193 if d == nil || d.State == nil { 1194 return "" 1195 } 1196 return *d.State 1197} 1198 1199// GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 1200func (d *DeploymentStatus) GetTargetURL() string { 1201 if d == nil || d.TargetURL == nil { 1202 return "" 1203 } 1204 return *d.TargetURL 1205} 1206 1207// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 1208func (d *DeploymentStatus) GetUpdatedAt() Timestamp { 1209 if d == nil || d.UpdatedAt == nil { 1210 return Timestamp{} 1211 } 1212 return *d.UpdatedAt 1213} 1214 1215// GetAutoInactive returns the AutoInactive field if it's non-nil, zero value otherwise. 1216func (d *DeploymentStatusRequest) GetAutoInactive() bool { 1217 if d == nil || d.AutoInactive == nil { 1218 return false 1219 } 1220 return *d.AutoInactive 1221} 1222 1223// GetDescription returns the Description field if it's non-nil, zero value otherwise. 1224func (d *DeploymentStatusRequest) GetDescription() string { 1225 if d == nil || d.Description == nil { 1226 return "" 1227 } 1228 return *d.Description 1229} 1230 1231// GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. 1232func (d *DeploymentStatusRequest) GetEnvironmentURL() string { 1233 if d == nil || d.EnvironmentURL == nil { 1234 return "" 1235 } 1236 return *d.EnvironmentURL 1237} 1238 1239// GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. 1240func (d *DeploymentStatusRequest) GetLogURL() string { 1241 if d == nil || d.LogURL == nil { 1242 return "" 1243 } 1244 return *d.LogURL 1245} 1246 1247// GetState returns the State field if it's non-nil, zero value otherwise. 1248func (d *DeploymentStatusRequest) GetState() string { 1249 if d == nil || d.State == nil { 1250 return "" 1251 } 1252 return *d.State 1253} 1254 1255// GetBody returns the Body field if it's non-nil, zero value otherwise. 1256func (d *DraftReviewComment) GetBody() string { 1257 if d == nil || d.Body == nil { 1258 return "" 1259 } 1260 return *d.Body 1261} 1262 1263// GetPath returns the Path field if it's non-nil, zero value otherwise. 1264func (d *DraftReviewComment) GetPath() string { 1265 if d == nil || d.Path == nil { 1266 return "" 1267 } 1268 return *d.Path 1269} 1270 1271// GetPosition returns the Position field if it's non-nil, zero value otherwise. 1272func (d *DraftReviewComment) GetPosition() int { 1273 if d == nil || d.Position == nil { 1274 return 0 1275 } 1276 return *d.Position 1277} 1278 1279// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1280func (e *Event) GetCreatedAt() time.Time { 1281 if e == nil || e.CreatedAt == nil { 1282 return time.Time{} 1283 } 1284 return *e.CreatedAt 1285} 1286 1287// GetID returns the ID field if it's non-nil, zero value otherwise. 1288func (e *Event) GetID() string { 1289 if e == nil || e.ID == nil { 1290 return "" 1291 } 1292 return *e.ID 1293} 1294 1295// GetPublic returns the Public field if it's non-nil, zero value otherwise. 1296func (e *Event) GetPublic() bool { 1297 if e == nil || e.Public == nil { 1298 return false 1299 } 1300 return *e.Public 1301} 1302 1303// GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 1304func (e *Event) GetRawPayload() json.RawMessage { 1305 if e == nil || e.RawPayload == nil { 1306 return json.RawMessage{} 1307 } 1308 return *e.RawPayload 1309} 1310 1311// GetType returns the Type field if it's non-nil, zero value otherwise. 1312func (e *Event) GetType() string { 1313 if e == nil || e.Type == nil { 1314 return "" 1315 } 1316 return *e.Type 1317} 1318 1319// GetHRef returns the HRef field if it's non-nil, zero value otherwise. 1320func (f *FeedLink) GetHRef() string { 1321 if f == nil || f.HRef == nil { 1322 return "" 1323 } 1324 return *f.HRef 1325} 1326 1327// GetType returns the Type field if it's non-nil, zero value otherwise. 1328func (f *FeedLink) GetType() string { 1329 if f == nil || f.Type == nil { 1330 return "" 1331 } 1332 return *f.Type 1333} 1334 1335// GetCurrentUserActorURL returns the CurrentUserActorURL field if it's non-nil, zero value otherwise. 1336func (f *Feeds) GetCurrentUserActorURL() string { 1337 if f == nil || f.CurrentUserActorURL == nil { 1338 return "" 1339 } 1340 return *f.CurrentUserActorURL 1341} 1342 1343// GetCurrentUserOrganizationURL returns the CurrentUserOrganizationURL field if it's non-nil, zero value otherwise. 1344func (f *Feeds) GetCurrentUserOrganizationURL() string { 1345 if f == nil || f.CurrentUserOrganizationURL == nil { 1346 return "" 1347 } 1348 return *f.CurrentUserOrganizationURL 1349} 1350 1351// GetCurrentUserPublicURL returns the CurrentUserPublicURL field if it's non-nil, zero value otherwise. 1352func (f *Feeds) GetCurrentUserPublicURL() string { 1353 if f == nil || f.CurrentUserPublicURL == nil { 1354 return "" 1355 } 1356 return *f.CurrentUserPublicURL 1357} 1358 1359// GetCurrentUserURL returns the CurrentUserURL field if it's non-nil, zero value otherwise. 1360func (f *Feeds) GetCurrentUserURL() string { 1361 if f == nil || f.CurrentUserURL == nil { 1362 return "" 1363 } 1364 return *f.CurrentUserURL 1365} 1366 1367// GetTimelineURL returns the TimelineURL field if it's non-nil, zero value otherwise. 1368func (f *Feeds) GetTimelineURL() string { 1369 if f == nil || f.TimelineURL == nil { 1370 return "" 1371 } 1372 return *f.TimelineURL 1373} 1374 1375// GetUserURL returns the UserURL field if it's non-nil, zero value otherwise. 1376func (f *Feeds) GetUserURL() string { 1377 if f == nil || f.UserURL == nil { 1378 return "" 1379 } 1380 return *f.UserURL 1381} 1382 1383// GetComments returns the Comments field if it's non-nil, zero value otherwise. 1384func (g *Gist) GetComments() int { 1385 if g == nil || g.Comments == nil { 1386 return 0 1387 } 1388 return *g.Comments 1389} 1390 1391// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1392func (g *Gist) GetCreatedAt() time.Time { 1393 if g == nil || g.CreatedAt == nil { 1394 return time.Time{} 1395 } 1396 return *g.CreatedAt 1397} 1398 1399// GetDescription returns the Description field if it's non-nil, zero value otherwise. 1400func (g *Gist) GetDescription() string { 1401 if g == nil || g.Description == nil { 1402 return "" 1403 } 1404 return *g.Description 1405} 1406 1407// GetGitPullURL returns the GitPullURL field if it's non-nil, zero value otherwise. 1408func (g *Gist) GetGitPullURL() string { 1409 if g == nil || g.GitPullURL == nil { 1410 return "" 1411 } 1412 return *g.GitPullURL 1413} 1414 1415// GetGitPushURL returns the GitPushURL field if it's non-nil, zero value otherwise. 1416func (g *Gist) GetGitPushURL() string { 1417 if g == nil || g.GitPushURL == nil { 1418 return "" 1419 } 1420 return *g.GitPushURL 1421} 1422 1423// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1424func (g *Gist) GetHTMLURL() string { 1425 if g == nil || g.HTMLURL == nil { 1426 return "" 1427 } 1428 return *g.HTMLURL 1429} 1430 1431// GetID returns the ID field if it's non-nil, zero value otherwise. 1432func (g *Gist) GetID() string { 1433 if g == nil || g.ID == nil { 1434 return "" 1435 } 1436 return *g.ID 1437} 1438 1439// GetPublic returns the Public field if it's non-nil, zero value otherwise. 1440func (g *Gist) GetPublic() bool { 1441 if g == nil || g.Public == nil { 1442 return false 1443 } 1444 return *g.Public 1445} 1446 1447// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 1448func (g *Gist) GetUpdatedAt() time.Time { 1449 if g == nil || g.UpdatedAt == nil { 1450 return time.Time{} 1451 } 1452 return *g.UpdatedAt 1453} 1454 1455// GetBody returns the Body field if it's non-nil, zero value otherwise. 1456func (g *GistComment) GetBody() string { 1457 if g == nil || g.Body == nil { 1458 return "" 1459 } 1460 return *g.Body 1461} 1462 1463// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1464func (g *GistComment) GetCreatedAt() time.Time { 1465 if g == nil || g.CreatedAt == nil { 1466 return time.Time{} 1467 } 1468 return *g.CreatedAt 1469} 1470 1471// GetID returns the ID field if it's non-nil, zero value otherwise. 1472func (g *GistComment) GetID() int { 1473 if g == nil || g.ID == nil { 1474 return 0 1475 } 1476 return *g.ID 1477} 1478 1479// GetURL returns the URL field if it's non-nil, zero value otherwise. 1480func (g *GistComment) GetURL() string { 1481 if g == nil || g.URL == nil { 1482 return "" 1483 } 1484 return *g.URL 1485} 1486 1487// GetCommittedAt returns the CommittedAt field if it's non-nil, zero value otherwise. 1488func (g *GistCommit) GetCommittedAt() Timestamp { 1489 if g == nil || g.CommittedAt == nil { 1490 return Timestamp{} 1491 } 1492 return *g.CommittedAt 1493} 1494 1495// GetURL returns the URL field if it's non-nil, zero value otherwise. 1496func (g *GistCommit) GetURL() string { 1497 if g == nil || g.URL == nil { 1498 return "" 1499 } 1500 return *g.URL 1501} 1502 1503// GetVersion returns the Version field if it's non-nil, zero value otherwise. 1504func (g *GistCommit) GetVersion() string { 1505 if g == nil || g.Version == nil { 1506 return "" 1507 } 1508 return *g.Version 1509} 1510 1511// GetContent returns the Content field if it's non-nil, zero value otherwise. 1512func (g *GistFile) GetContent() string { 1513 if g == nil || g.Content == nil { 1514 return "" 1515 } 1516 return *g.Content 1517} 1518 1519// GetFilename returns the Filename field if it's non-nil, zero value otherwise. 1520func (g *GistFile) GetFilename() string { 1521 if g == nil || g.Filename == nil { 1522 return "" 1523 } 1524 return *g.Filename 1525} 1526 1527// GetLanguage returns the Language field if it's non-nil, zero value otherwise. 1528func (g *GistFile) GetLanguage() string { 1529 if g == nil || g.Language == nil { 1530 return "" 1531 } 1532 return *g.Language 1533} 1534 1535// GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 1536func (g *GistFile) GetRawURL() string { 1537 if g == nil || g.RawURL == nil { 1538 return "" 1539 } 1540 return *g.RawURL 1541} 1542 1543// GetSize returns the Size field if it's non-nil, zero value otherwise. 1544func (g *GistFile) GetSize() int { 1545 if g == nil || g.Size == nil { 1546 return 0 1547 } 1548 return *g.Size 1549} 1550 1551// GetType returns the Type field if it's non-nil, zero value otherwise. 1552func (g *GistFile) GetType() string { 1553 if g == nil || g.Type == nil { 1554 return "" 1555 } 1556 return *g.Type 1557} 1558 1559// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1560func (g *GistFork) GetCreatedAt() Timestamp { 1561 if g == nil || g.CreatedAt == nil { 1562 return Timestamp{} 1563 } 1564 return *g.CreatedAt 1565} 1566 1567// GetID returns the ID field if it's non-nil, zero value otherwise. 1568func (g *GistFork) GetID() string { 1569 if g == nil || g.ID == nil { 1570 return "" 1571 } 1572 return *g.ID 1573} 1574 1575// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 1576func (g *GistFork) GetUpdatedAt() Timestamp { 1577 if g == nil || g.UpdatedAt == nil { 1578 return Timestamp{} 1579 } 1580 return *g.UpdatedAt 1581} 1582 1583// GetURL returns the URL field if it's non-nil, zero value otherwise. 1584func (g *GistFork) GetURL() string { 1585 if g == nil || g.URL == nil { 1586 return "" 1587 } 1588 return *g.URL 1589} 1590 1591// GetName returns the Name field if it's non-nil, zero value otherwise. 1592func (g *Gitignore) GetName() string { 1593 if g == nil || g.Name == nil { 1594 return "" 1595 } 1596 return *g.Name 1597} 1598 1599// GetSource returns the Source field if it's non-nil, zero value otherwise. 1600func (g *Gitignore) GetSource() string { 1601 if g == nil || g.Source == nil { 1602 return "" 1603 } 1604 return *g.Source 1605} 1606 1607// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1608func (g *GitObject) GetSHA() string { 1609 if g == nil || g.SHA == nil { 1610 return "" 1611 } 1612 return *g.SHA 1613} 1614 1615// GetType returns the Type field if it's non-nil, zero value otherwise. 1616func (g *GitObject) GetType() string { 1617 if g == nil || g.Type == nil { 1618 return "" 1619 } 1620 return *g.Type 1621} 1622 1623// GetURL returns the URL field if it's non-nil, zero value otherwise. 1624func (g *GitObject) GetURL() string { 1625 if g == nil || g.URL == nil { 1626 return "" 1627 } 1628 return *g.URL 1629} 1630 1631// GetEmail returns the Email field if it's non-nil, zero value otherwise. 1632func (g *GPGEmail) GetEmail() string { 1633 if g == nil || g.Email == nil { 1634 return "" 1635 } 1636 return *g.Email 1637} 1638 1639// GetVerified returns the Verified field if it's non-nil, zero value otherwise. 1640func (g *GPGEmail) GetVerified() bool { 1641 if g == nil || g.Verified == nil { 1642 return false 1643 } 1644 return *g.Verified 1645} 1646 1647// GetCanCertify returns the CanCertify field if it's non-nil, zero value otherwise. 1648func (g *GPGKey) GetCanCertify() bool { 1649 if g == nil || g.CanCertify == nil { 1650 return false 1651 } 1652 return *g.CanCertify 1653} 1654 1655// GetCanEncryptComms returns the CanEncryptComms field if it's non-nil, zero value otherwise. 1656func (g *GPGKey) GetCanEncryptComms() bool { 1657 if g == nil || g.CanEncryptComms == nil { 1658 return false 1659 } 1660 return *g.CanEncryptComms 1661} 1662 1663// GetCanEncryptStorage returns the CanEncryptStorage field if it's non-nil, zero value otherwise. 1664func (g *GPGKey) GetCanEncryptStorage() bool { 1665 if g == nil || g.CanEncryptStorage == nil { 1666 return false 1667 } 1668 return *g.CanEncryptStorage 1669} 1670 1671// GetCanSign returns the CanSign field if it's non-nil, zero value otherwise. 1672func (g *GPGKey) GetCanSign() bool { 1673 if g == nil || g.CanSign == nil { 1674 return false 1675 } 1676 return *g.CanSign 1677} 1678 1679// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1680func (g *GPGKey) GetCreatedAt() time.Time { 1681 if g == nil || g.CreatedAt == nil { 1682 return time.Time{} 1683 } 1684 return *g.CreatedAt 1685} 1686 1687// GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 1688func (g *GPGKey) GetExpiresAt() time.Time { 1689 if g == nil || g.ExpiresAt == nil { 1690 return time.Time{} 1691 } 1692 return *g.ExpiresAt 1693} 1694 1695// GetID returns the ID field if it's non-nil, zero value otherwise. 1696func (g *GPGKey) GetID() int { 1697 if g == nil || g.ID == nil { 1698 return 0 1699 } 1700 return *g.ID 1701} 1702 1703// GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. 1704func (g *GPGKey) GetKeyID() string { 1705 if g == nil || g.KeyID == nil { 1706 return "" 1707 } 1708 return *g.KeyID 1709} 1710 1711// GetPrimaryKeyID returns the PrimaryKeyID field if it's non-nil, zero value otherwise. 1712func (g *GPGKey) GetPrimaryKeyID() int { 1713 if g == nil || g.PrimaryKeyID == nil { 1714 return 0 1715 } 1716 return *g.PrimaryKeyID 1717} 1718 1719// GetPublicKey returns the PublicKey field if it's non-nil, zero value otherwise. 1720func (g *GPGKey) GetPublicKey() string { 1721 if g == nil || g.PublicKey == nil { 1722 return "" 1723 } 1724 return *g.PublicKey 1725} 1726 1727// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1728func (g *Grant) GetCreatedAt() Timestamp { 1729 if g == nil || g.CreatedAt == nil { 1730 return Timestamp{} 1731 } 1732 return *g.CreatedAt 1733} 1734 1735// GetID returns the ID field if it's non-nil, zero value otherwise. 1736func (g *Grant) GetID() int { 1737 if g == nil || g.ID == nil { 1738 return 0 1739 } 1740 return *g.ID 1741} 1742 1743// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 1744func (g *Grant) GetUpdatedAt() Timestamp { 1745 if g == nil || g.UpdatedAt == nil { 1746 return Timestamp{} 1747 } 1748 return *g.UpdatedAt 1749} 1750 1751// GetURL returns the URL field if it's non-nil, zero value otherwise. 1752func (g *Grant) GetURL() string { 1753 if g == nil || g.URL == nil { 1754 return "" 1755 } 1756 return *g.URL 1757} 1758 1759// GetActive returns the Active field if it's non-nil, zero value otherwise. 1760func (h *Hook) GetActive() bool { 1761 if h == nil || h.Active == nil { 1762 return false 1763 } 1764 return *h.Active 1765} 1766 1767// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1768func (h *Hook) GetCreatedAt() time.Time { 1769 if h == nil || h.CreatedAt == nil { 1770 return time.Time{} 1771 } 1772 return *h.CreatedAt 1773} 1774 1775// GetID returns the ID field if it's non-nil, zero value otherwise. 1776func (h *Hook) GetID() int { 1777 if h == nil || h.ID == nil { 1778 return 0 1779 } 1780 return *h.ID 1781} 1782 1783// GetName returns the Name field if it's non-nil, zero value otherwise. 1784func (h *Hook) GetName() string { 1785 if h == nil || h.Name == nil { 1786 return "" 1787 } 1788 return *h.Name 1789} 1790 1791// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 1792func (h *Hook) GetUpdatedAt() time.Time { 1793 if h == nil || h.UpdatedAt == nil { 1794 return time.Time{} 1795 } 1796 return *h.UpdatedAt 1797} 1798 1799// GetURL returns the URL field if it's non-nil, zero value otherwise. 1800func (h *Hook) GetURL() string { 1801 if h == nil || h.URL == nil { 1802 return "" 1803 } 1804 return *h.URL 1805} 1806 1807// GetAuthorsCount returns the AuthorsCount field if it's non-nil, zero value otherwise. 1808func (i *Import) GetAuthorsCount() int { 1809 if i == nil || i.AuthorsCount == nil { 1810 return 0 1811 } 1812 return *i.AuthorsCount 1813} 1814 1815// GetAuthorsURL returns the AuthorsURL field if it's non-nil, zero value otherwise. 1816func (i *Import) GetAuthorsURL() string { 1817 if i == nil || i.AuthorsURL == nil { 1818 return "" 1819 } 1820 return *i.AuthorsURL 1821} 1822 1823// GetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise. 1824func (i *Import) GetCommitCount() int { 1825 if i == nil || i.CommitCount == nil { 1826 return 0 1827 } 1828 return *i.CommitCount 1829} 1830 1831// GetFailedStep returns the FailedStep field if it's non-nil, zero value otherwise. 1832func (i *Import) GetFailedStep() string { 1833 if i == nil || i.FailedStep == nil { 1834 return "" 1835 } 1836 return *i.FailedStep 1837} 1838 1839// GetHasLargeFiles returns the HasLargeFiles field if it's non-nil, zero value otherwise. 1840func (i *Import) GetHasLargeFiles() bool { 1841 if i == nil || i.HasLargeFiles == nil { 1842 return false 1843 } 1844 return *i.HasLargeFiles 1845} 1846 1847// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1848func (i *Import) GetHTMLURL() string { 1849 if i == nil || i.HTMLURL == nil { 1850 return "" 1851 } 1852 return *i.HTMLURL 1853} 1854 1855// GetHumanName returns the HumanName field if it's non-nil, zero value otherwise. 1856func (i *Import) GetHumanName() string { 1857 if i == nil || i.HumanName == nil { 1858 return "" 1859 } 1860 return *i.HumanName 1861} 1862 1863// GetLargeFilesCount returns the LargeFilesCount field if it's non-nil, zero value otherwise. 1864func (i *Import) GetLargeFilesCount() int { 1865 if i == nil || i.LargeFilesCount == nil { 1866 return 0 1867 } 1868 return *i.LargeFilesCount 1869} 1870 1871// GetLargeFilesSize returns the LargeFilesSize field if it's non-nil, zero value otherwise. 1872func (i *Import) GetLargeFilesSize() int { 1873 if i == nil || i.LargeFilesSize == nil { 1874 return 0 1875 } 1876 return *i.LargeFilesSize 1877} 1878 1879// GetMessage returns the Message field if it's non-nil, zero value otherwise. 1880func (i *Import) GetMessage() string { 1881 if i == nil || i.Message == nil { 1882 return "" 1883 } 1884 return *i.Message 1885} 1886 1887// GetPercent returns the Percent field if it's non-nil, zero value otherwise. 1888func (i *Import) GetPercent() int { 1889 if i == nil || i.Percent == nil { 1890 return 0 1891 } 1892 return *i.Percent 1893} 1894 1895// GetPushPercent returns the PushPercent field if it's non-nil, zero value otherwise. 1896func (i *Import) GetPushPercent() int { 1897 if i == nil || i.PushPercent == nil { 1898 return 0 1899 } 1900 return *i.PushPercent 1901} 1902 1903// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 1904func (i *Import) GetRepositoryURL() string { 1905 if i == nil || i.RepositoryURL == nil { 1906 return "" 1907 } 1908 return *i.RepositoryURL 1909} 1910 1911// GetStatus returns the Status field if it's non-nil, zero value otherwise. 1912func (i *Import) GetStatus() string { 1913 if i == nil || i.Status == nil { 1914 return "" 1915 } 1916 return *i.Status 1917} 1918 1919// GetStatusText returns the StatusText field if it's non-nil, zero value otherwise. 1920func (i *Import) GetStatusText() string { 1921 if i == nil || i.StatusText == nil { 1922 return "" 1923 } 1924 return *i.StatusText 1925} 1926 1927// GetTFVCProject returns the TFVCProject field if it's non-nil, zero value otherwise. 1928func (i *Import) GetTFVCProject() string { 1929 if i == nil || i.TFVCProject == nil { 1930 return "" 1931 } 1932 return *i.TFVCProject 1933} 1934 1935// GetURL returns the URL field if it's non-nil, zero value otherwise. 1936func (i *Import) GetURL() string { 1937 if i == nil || i.URL == nil { 1938 return "" 1939 } 1940 return *i.URL 1941} 1942 1943// GetUseLFS returns the UseLFS field if it's non-nil, zero value otherwise. 1944func (i *Import) GetUseLFS() string { 1945 if i == nil || i.UseLFS == nil { 1946 return "" 1947 } 1948 return *i.UseLFS 1949} 1950 1951// GetVCS returns the VCS field if it's non-nil, zero value otherwise. 1952func (i *Import) GetVCS() string { 1953 if i == nil || i.VCS == nil { 1954 return "" 1955 } 1956 return *i.VCS 1957} 1958 1959// GetVCSPassword returns the VCSPassword field if it's non-nil, zero value otherwise. 1960func (i *Import) GetVCSPassword() string { 1961 if i == nil || i.VCSPassword == nil { 1962 return "" 1963 } 1964 return *i.VCSPassword 1965} 1966 1967// GetVCSURL returns the VCSURL field if it's non-nil, zero value otherwise. 1968func (i *Import) GetVCSURL() string { 1969 if i == nil || i.VCSURL == nil { 1970 return "" 1971 } 1972 return *i.VCSURL 1973} 1974 1975// GetVCSUsername returns the VCSUsername field if it's non-nil, zero value otherwise. 1976func (i *Import) GetVCSUsername() string { 1977 if i == nil || i.VCSUsername == nil { 1978 return "" 1979 } 1980 return *i.VCSUsername 1981} 1982 1983// GetAccessTokensURL returns the AccessTokensURL field if it's non-nil, zero value otherwise. 1984func (i *Installation) GetAccessTokensURL() string { 1985 if i == nil || i.AccessTokensURL == nil { 1986 return "" 1987 } 1988 return *i.AccessTokensURL 1989} 1990 1991// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1992func (i *Installation) GetHTMLURL() string { 1993 if i == nil || i.HTMLURL == nil { 1994 return "" 1995 } 1996 return *i.HTMLURL 1997} 1998 1999// GetID returns the ID field if it's non-nil, zero value otherwise. 2000func (i *Installation) GetID() int { 2001 if i == nil || i.ID == nil { 2002 return 0 2003 } 2004 return *i.ID 2005} 2006 2007// GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 2008func (i *Installation) GetRepositoriesURL() string { 2009 if i == nil || i.RepositoriesURL == nil { 2010 return "" 2011 } 2012 return *i.RepositoriesURL 2013} 2014 2015// GetAction returns the Action field if it's non-nil, zero value otherwise. 2016func (i *InstallationEvent) GetAction() string { 2017 if i == nil || i.Action == nil { 2018 return "" 2019 } 2020 return *i.Action 2021} 2022 2023// GetAction returns the Action field if it's non-nil, zero value otherwise. 2024func (i *InstallationRepositoriesEvent) GetAction() string { 2025 if i == nil || i.Action == nil { 2026 return "" 2027 } 2028 return *i.Action 2029} 2030 2031// GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 2032func (i *InstallationRepositoriesEvent) GetRepositorySelection() string { 2033 if i == nil || i.RepositorySelection == nil { 2034 return "" 2035 } 2036 return *i.RepositorySelection 2037} 2038 2039// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2040func (i *Invitation) GetCreatedAt() time.Time { 2041 if i == nil || i.CreatedAt == nil { 2042 return time.Time{} 2043 } 2044 return *i.CreatedAt 2045} 2046 2047// GetEmail returns the Email field if it's non-nil, zero value otherwise. 2048func (i *Invitation) GetEmail() string { 2049 if i == nil || i.Email == nil { 2050 return "" 2051 } 2052 return *i.Email 2053} 2054 2055// GetID returns the ID field if it's non-nil, zero value otherwise. 2056func (i *Invitation) GetID() int { 2057 if i == nil || i.ID == nil { 2058 return 0 2059 } 2060 return *i.ID 2061} 2062 2063// GetLogin returns the Login field if it's non-nil, zero value otherwise. 2064func (i *Invitation) GetLogin() string { 2065 if i == nil || i.Login == nil { 2066 return "" 2067 } 2068 return *i.Login 2069} 2070 2071// GetRole returns the Role field if it's non-nil, zero value otherwise. 2072func (i *Invitation) GetRole() string { 2073 if i == nil || i.Role == nil { 2074 return "" 2075 } 2076 return *i.Role 2077} 2078 2079// GetBody returns the Body field if it's non-nil, zero value otherwise. 2080func (i *Issue) GetBody() string { 2081 if i == nil || i.Body == nil { 2082 return "" 2083 } 2084 return *i.Body 2085} 2086 2087// GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 2088func (i *Issue) GetClosedAt() time.Time { 2089 if i == nil || i.ClosedAt == nil { 2090 return time.Time{} 2091 } 2092 return *i.ClosedAt 2093} 2094 2095// GetComments returns the Comments field if it's non-nil, zero value otherwise. 2096func (i *Issue) GetComments() int { 2097 if i == nil || i.Comments == nil { 2098 return 0 2099 } 2100 return *i.Comments 2101} 2102 2103// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2104func (i *Issue) GetCreatedAt() time.Time { 2105 if i == nil || i.CreatedAt == nil { 2106 return time.Time{} 2107 } 2108 return *i.CreatedAt 2109} 2110 2111// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2112func (i *Issue) GetHTMLURL() string { 2113 if i == nil || i.HTMLURL == nil { 2114 return "" 2115 } 2116 return *i.HTMLURL 2117} 2118 2119// GetID returns the ID field if it's non-nil, zero value otherwise. 2120func (i *Issue) GetID() int { 2121 if i == nil || i.ID == nil { 2122 return 0 2123 } 2124 return *i.ID 2125} 2126 2127// GetLocked returns the Locked field if it's non-nil, zero value otherwise. 2128func (i *Issue) GetLocked() bool { 2129 if i == nil || i.Locked == nil { 2130 return false 2131 } 2132 return *i.Locked 2133} 2134 2135// GetNumber returns the Number field if it's non-nil, zero value otherwise. 2136func (i *Issue) GetNumber() int { 2137 if i == nil || i.Number == nil { 2138 return 0 2139 } 2140 return *i.Number 2141} 2142 2143// GetState returns the State field if it's non-nil, zero value otherwise. 2144func (i *Issue) GetState() string { 2145 if i == nil || i.State == nil { 2146 return "" 2147 } 2148 return *i.State 2149} 2150 2151// GetTitle returns the Title field if it's non-nil, zero value otherwise. 2152func (i *Issue) GetTitle() string { 2153 if i == nil || i.Title == nil { 2154 return "" 2155 } 2156 return *i.Title 2157} 2158 2159// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2160func (i *Issue) GetUpdatedAt() time.Time { 2161 if i == nil || i.UpdatedAt == nil { 2162 return time.Time{} 2163 } 2164 return *i.UpdatedAt 2165} 2166 2167// GetURL returns the URL field if it's non-nil, zero value otherwise. 2168func (i *Issue) GetURL() string { 2169 if i == nil || i.URL == nil { 2170 return "" 2171 } 2172 return *i.URL 2173} 2174 2175// GetBody returns the Body field if it's non-nil, zero value otherwise. 2176func (i *IssueComment) GetBody() string { 2177 if i == nil || i.Body == nil { 2178 return "" 2179 } 2180 return *i.Body 2181} 2182 2183// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2184func (i *IssueComment) GetCreatedAt() time.Time { 2185 if i == nil || i.CreatedAt == nil { 2186 return time.Time{} 2187 } 2188 return *i.CreatedAt 2189} 2190 2191// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2192func (i *IssueComment) GetHTMLURL() string { 2193 if i == nil || i.HTMLURL == nil { 2194 return "" 2195 } 2196 return *i.HTMLURL 2197} 2198 2199// GetID returns the ID field if it's non-nil, zero value otherwise. 2200func (i *IssueComment) GetID() int { 2201 if i == nil || i.ID == nil { 2202 return 0 2203 } 2204 return *i.ID 2205} 2206 2207// GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 2208func (i *IssueComment) GetIssueURL() string { 2209 if i == nil || i.IssueURL == nil { 2210 return "" 2211 } 2212 return *i.IssueURL 2213} 2214 2215// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2216func (i *IssueComment) GetUpdatedAt() time.Time { 2217 if i == nil || i.UpdatedAt == nil { 2218 return time.Time{} 2219 } 2220 return *i.UpdatedAt 2221} 2222 2223// GetURL returns the URL field if it's non-nil, zero value otherwise. 2224func (i *IssueComment) GetURL() string { 2225 if i == nil || i.URL == nil { 2226 return "" 2227 } 2228 return *i.URL 2229} 2230 2231// GetAction returns the Action field if it's non-nil, zero value otherwise. 2232func (i *IssueCommentEvent) GetAction() string { 2233 if i == nil || i.Action == nil { 2234 return "" 2235 } 2236 return *i.Action 2237} 2238 2239// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 2240func (i *IssueEvent) GetCommitID() string { 2241 if i == nil || i.CommitID == nil { 2242 return "" 2243 } 2244 return *i.CommitID 2245} 2246 2247// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2248func (i *IssueEvent) GetCreatedAt() time.Time { 2249 if i == nil || i.CreatedAt == nil { 2250 return time.Time{} 2251 } 2252 return *i.CreatedAt 2253} 2254 2255// GetEvent returns the Event field if it's non-nil, zero value otherwise. 2256func (i *IssueEvent) GetEvent() string { 2257 if i == nil || i.Event == nil { 2258 return "" 2259 } 2260 return *i.Event 2261} 2262 2263// GetID returns the ID field if it's non-nil, zero value otherwise. 2264func (i *IssueEvent) GetID() int { 2265 if i == nil || i.ID == nil { 2266 return 0 2267 } 2268 return *i.ID 2269} 2270 2271// GetURL returns the URL field if it's non-nil, zero value otherwise. 2272func (i *IssueEvent) GetURL() string { 2273 if i == nil || i.URL == nil { 2274 return "" 2275 } 2276 return *i.URL 2277} 2278 2279// GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. 2280func (i *IssueRequest) GetAssignee() string { 2281 if i == nil || i.Assignee == nil { 2282 return "" 2283 } 2284 return *i.Assignee 2285} 2286 2287// GetAssignees returns the Assignees field if it's non-nil, zero value otherwise. 2288func (i *IssueRequest) GetAssignees() []string { 2289 if i == nil || i.Assignees == nil { 2290 return nil 2291 } 2292 return *i.Assignees 2293} 2294 2295// GetBody returns the Body field if it's non-nil, zero value otherwise. 2296func (i *IssueRequest) GetBody() string { 2297 if i == nil || i.Body == nil { 2298 return "" 2299 } 2300 return *i.Body 2301} 2302 2303// GetLabels returns the Labels field if it's non-nil, zero value otherwise. 2304func (i *IssueRequest) GetLabels() []string { 2305 if i == nil || i.Labels == nil { 2306 return nil 2307 } 2308 return *i.Labels 2309} 2310 2311// GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. 2312func (i *IssueRequest) GetMilestone() int { 2313 if i == nil || i.Milestone == nil { 2314 return 0 2315 } 2316 return *i.Milestone 2317} 2318 2319// GetState returns the State field if it's non-nil, zero value otherwise. 2320func (i *IssueRequest) GetState() string { 2321 if i == nil || i.State == nil { 2322 return "" 2323 } 2324 return *i.State 2325} 2326 2327// GetTitle returns the Title field if it's non-nil, zero value otherwise. 2328func (i *IssueRequest) GetTitle() string { 2329 if i == nil || i.Title == nil { 2330 return "" 2331 } 2332 return *i.Title 2333} 2334 2335// GetAction returns the Action field if it's non-nil, zero value otherwise. 2336func (i *IssuesEvent) GetAction() string { 2337 if i == nil || i.Action == nil { 2338 return "" 2339 } 2340 return *i.Action 2341} 2342 2343// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 2344func (i *IssuesSearchResult) GetIncompleteResults() bool { 2345 if i == nil || i.IncompleteResults == nil { 2346 return false 2347 } 2348 return *i.IncompleteResults 2349} 2350 2351// GetTotal returns the Total field if it's non-nil, zero value otherwise. 2352func (i *IssuesSearchResult) GetTotal() int { 2353 if i == nil || i.Total == nil { 2354 return 0 2355 } 2356 return *i.Total 2357} 2358 2359// GetID returns the ID field if it's non-nil, zero value otherwise. 2360func (k *Key) GetID() int { 2361 if k == nil || k.ID == nil { 2362 return 0 2363 } 2364 return *k.ID 2365} 2366 2367// GetKey returns the Key field if it's non-nil, zero value otherwise. 2368func (k *Key) GetKey() string { 2369 if k == nil || k.Key == nil { 2370 return "" 2371 } 2372 return *k.Key 2373} 2374 2375// GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise. 2376func (k *Key) GetReadOnly() bool { 2377 if k == nil || k.ReadOnly == nil { 2378 return false 2379 } 2380 return *k.ReadOnly 2381} 2382 2383// GetTitle returns the Title field if it's non-nil, zero value otherwise. 2384func (k *Key) GetTitle() string { 2385 if k == nil || k.Title == nil { 2386 return "" 2387 } 2388 return *k.Title 2389} 2390 2391// GetURL returns the URL field if it's non-nil, zero value otherwise. 2392func (k *Key) GetURL() string { 2393 if k == nil || k.URL == nil { 2394 return "" 2395 } 2396 return *k.URL 2397} 2398 2399// GetColor returns the Color field if it's non-nil, zero value otherwise. 2400func (l *Label) GetColor() string { 2401 if l == nil || l.Color == nil { 2402 return "" 2403 } 2404 return *l.Color 2405} 2406 2407// GetID returns the ID field if it's non-nil, zero value otherwise. 2408func (l *Label) GetID() int { 2409 if l == nil || l.ID == nil { 2410 return 0 2411 } 2412 return *l.ID 2413} 2414 2415// GetName returns the Name field if it's non-nil, zero value otherwise. 2416func (l *Label) GetName() string { 2417 if l == nil || l.Name == nil { 2418 return "" 2419 } 2420 return *l.Name 2421} 2422 2423// GetURL returns the URL field if it's non-nil, zero value otherwise. 2424func (l *Label) GetURL() string { 2425 if l == nil || l.URL == nil { 2426 return "" 2427 } 2428 return *l.URL 2429} 2430 2431// GetAction returns the Action field if it's non-nil, zero value otherwise. 2432func (l *LabelEvent) GetAction() string { 2433 if l == nil || l.Action == nil { 2434 return "" 2435 } 2436 return *l.Action 2437} 2438 2439// GetOID returns the OID field if it's non-nil, zero value otherwise. 2440func (l *LargeFile) GetOID() string { 2441 if l == nil || l.OID == nil { 2442 return "" 2443 } 2444 return *l.OID 2445} 2446 2447// GetPath returns the Path field if it's non-nil, zero value otherwise. 2448func (l *LargeFile) GetPath() string { 2449 if l == nil || l.Path == nil { 2450 return "" 2451 } 2452 return *l.Path 2453} 2454 2455// GetRefName returns the RefName field if it's non-nil, zero value otherwise. 2456func (l *LargeFile) GetRefName() string { 2457 if l == nil || l.RefName == nil { 2458 return "" 2459 } 2460 return *l.RefName 2461} 2462 2463// GetSize returns the Size field if it's non-nil, zero value otherwise. 2464func (l *LargeFile) GetSize() int { 2465 if l == nil || l.Size == nil { 2466 return 0 2467 } 2468 return *l.Size 2469} 2470 2471// GetBody returns the Body field if it's non-nil, zero value otherwise. 2472func (l *License) GetBody() string { 2473 if l == nil || l.Body == nil { 2474 return "" 2475 } 2476 return *l.Body 2477} 2478 2479// GetConditions returns the Conditions field if it's non-nil, zero value otherwise. 2480func (l *License) GetConditions() []string { 2481 if l == nil || l.Conditions == nil { 2482 return nil 2483 } 2484 return *l.Conditions 2485} 2486 2487// GetDescription returns the Description field if it's non-nil, zero value otherwise. 2488func (l *License) GetDescription() string { 2489 if l == nil || l.Description == nil { 2490 return "" 2491 } 2492 return *l.Description 2493} 2494 2495// GetFeatured returns the Featured field if it's non-nil, zero value otherwise. 2496func (l *License) GetFeatured() bool { 2497 if l == nil || l.Featured == nil { 2498 return false 2499 } 2500 return *l.Featured 2501} 2502 2503// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2504func (l *License) GetHTMLURL() string { 2505 if l == nil || l.HTMLURL == nil { 2506 return "" 2507 } 2508 return *l.HTMLURL 2509} 2510 2511// GetImplementation returns the Implementation field if it's non-nil, zero value otherwise. 2512func (l *License) GetImplementation() string { 2513 if l == nil || l.Implementation == nil { 2514 return "" 2515 } 2516 return *l.Implementation 2517} 2518 2519// GetKey returns the Key field if it's non-nil, zero value otherwise. 2520func (l *License) GetKey() string { 2521 if l == nil || l.Key == nil { 2522 return "" 2523 } 2524 return *l.Key 2525} 2526 2527// GetLimitations returns the Limitations field if it's non-nil, zero value otherwise. 2528func (l *License) GetLimitations() []string { 2529 if l == nil || l.Limitations == nil { 2530 return nil 2531 } 2532 return *l.Limitations 2533} 2534 2535// GetName returns the Name field if it's non-nil, zero value otherwise. 2536func (l *License) GetName() string { 2537 if l == nil || l.Name == nil { 2538 return "" 2539 } 2540 return *l.Name 2541} 2542 2543// GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 2544func (l *License) GetPermissions() []string { 2545 if l == nil || l.Permissions == nil { 2546 return nil 2547 } 2548 return *l.Permissions 2549} 2550 2551// GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. 2552func (l *License) GetSPDXID() string { 2553 if l == nil || l.SPDXID == nil { 2554 return "" 2555 } 2556 return *l.SPDXID 2557} 2558 2559// GetURL returns the URL field if it's non-nil, zero value otherwise. 2560func (l *License) GetURL() string { 2561 if l == nil || l.URL == nil { 2562 return "" 2563 } 2564 return *l.URL 2565} 2566 2567// GetContext returns the Context field if it's non-nil, zero value otherwise. 2568func (m *markdownRequest) GetContext() string { 2569 if m == nil || m.Context == nil { 2570 return "" 2571 } 2572 return *m.Context 2573} 2574 2575// GetMode returns the Mode field if it's non-nil, zero value otherwise. 2576func (m *markdownRequest) GetMode() string { 2577 if m == nil || m.Mode == nil { 2578 return "" 2579 } 2580 return *m.Mode 2581} 2582 2583// GetText returns the Text field if it's non-nil, zero value otherwise. 2584func (m *markdownRequest) GetText() string { 2585 if m == nil || m.Text == nil { 2586 return "" 2587 } 2588 return *m.Text 2589} 2590 2591// GetText returns the Text field if it's non-nil, zero value otherwise. 2592func (m *Match) GetText() string { 2593 if m == nil || m.Text == nil { 2594 return "" 2595 } 2596 return *m.Text 2597} 2598 2599// GetAction returns the Action field if it's non-nil, zero value otherwise. 2600func (m *MemberEvent) GetAction() string { 2601 if m == nil || m.Action == nil { 2602 return "" 2603 } 2604 return *m.Action 2605} 2606 2607// GetOrganizationURL returns the OrganizationURL field if it's non-nil, zero value otherwise. 2608func (m *Membership) GetOrganizationURL() string { 2609 if m == nil || m.OrganizationURL == nil { 2610 return "" 2611 } 2612 return *m.OrganizationURL 2613} 2614 2615// GetRole returns the Role field if it's non-nil, zero value otherwise. 2616func (m *Membership) GetRole() string { 2617 if m == nil || m.Role == nil { 2618 return "" 2619 } 2620 return *m.Role 2621} 2622 2623// GetState returns the State field if it's non-nil, zero value otherwise. 2624func (m *Membership) GetState() string { 2625 if m == nil || m.State == nil { 2626 return "" 2627 } 2628 return *m.State 2629} 2630 2631// GetURL returns the URL field if it's non-nil, zero value otherwise. 2632func (m *Membership) GetURL() string { 2633 if m == nil || m.URL == nil { 2634 return "" 2635 } 2636 return *m.URL 2637} 2638 2639// GetAction returns the Action field if it's non-nil, zero value otherwise. 2640func (m *MembershipEvent) GetAction() string { 2641 if m == nil || m.Action == nil { 2642 return "" 2643 } 2644 return *m.Action 2645} 2646 2647// GetScope returns the Scope field if it's non-nil, zero value otherwise. 2648func (m *MembershipEvent) GetScope() string { 2649 if m == nil || m.Scope == nil { 2650 return "" 2651 } 2652 return *m.Scope 2653} 2654 2655// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2656func (m *Metric) GetHTMLURL() string { 2657 if m == nil || m.HTMLURL == nil { 2658 return "" 2659 } 2660 return *m.HTMLURL 2661} 2662 2663// GetKey returns the Key field if it's non-nil, zero value otherwise. 2664func (m *Metric) GetKey() string { 2665 if m == nil || m.Key == nil { 2666 return "" 2667 } 2668 return *m.Key 2669} 2670 2671// GetName returns the Name field if it's non-nil, zero value otherwise. 2672func (m *Metric) GetName() string { 2673 if m == nil || m.Name == nil { 2674 return "" 2675 } 2676 return *m.Name 2677} 2678 2679// GetURL returns the URL field if it's non-nil, zero value otherwise. 2680func (m *Metric) GetURL() string { 2681 if m == nil || m.URL == nil { 2682 return "" 2683 } 2684 return *m.URL 2685} 2686 2687// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2688func (m *Migration) GetCreatedAt() string { 2689 if m == nil || m.CreatedAt == nil { 2690 return "" 2691 } 2692 return *m.CreatedAt 2693} 2694 2695// GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 2696func (m *Migration) GetExcludeAttachments() bool { 2697 if m == nil || m.ExcludeAttachments == nil { 2698 return false 2699 } 2700 return *m.ExcludeAttachments 2701} 2702 2703// GetGUID returns the GUID field if it's non-nil, zero value otherwise. 2704func (m *Migration) GetGUID() string { 2705 if m == nil || m.GUID == nil { 2706 return "" 2707 } 2708 return *m.GUID 2709} 2710 2711// GetID returns the ID field if it's non-nil, zero value otherwise. 2712func (m *Migration) GetID() int { 2713 if m == nil || m.ID == nil { 2714 return 0 2715 } 2716 return *m.ID 2717} 2718 2719// GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 2720func (m *Migration) GetLockRepositories() bool { 2721 if m == nil || m.LockRepositories == nil { 2722 return false 2723 } 2724 return *m.LockRepositories 2725} 2726 2727// GetState returns the State field if it's non-nil, zero value otherwise. 2728func (m *Migration) GetState() string { 2729 if m == nil || m.State == nil { 2730 return "" 2731 } 2732 return *m.State 2733} 2734 2735// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2736func (m *Migration) GetUpdatedAt() string { 2737 if m == nil || m.UpdatedAt == nil { 2738 return "" 2739 } 2740 return *m.UpdatedAt 2741} 2742 2743// GetURL returns the URL field if it's non-nil, zero value otherwise. 2744func (m *Migration) GetURL() string { 2745 if m == nil || m.URL == nil { 2746 return "" 2747 } 2748 return *m.URL 2749} 2750 2751// GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 2752func (m *Milestone) GetClosedAt() time.Time { 2753 if m == nil || m.ClosedAt == nil { 2754 return time.Time{} 2755 } 2756 return *m.ClosedAt 2757} 2758 2759// GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. 2760func (m *Milestone) GetClosedIssues() int { 2761 if m == nil || m.ClosedIssues == nil { 2762 return 0 2763 } 2764 return *m.ClosedIssues 2765} 2766 2767// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2768func (m *Milestone) GetCreatedAt() time.Time { 2769 if m == nil || m.CreatedAt == nil { 2770 return time.Time{} 2771 } 2772 return *m.CreatedAt 2773} 2774 2775// GetDescription returns the Description field if it's non-nil, zero value otherwise. 2776func (m *Milestone) GetDescription() string { 2777 if m == nil || m.Description == nil { 2778 return "" 2779 } 2780 return *m.Description 2781} 2782 2783// GetDueOn returns the DueOn field if it's non-nil, zero value otherwise. 2784func (m *Milestone) GetDueOn() time.Time { 2785 if m == nil || m.DueOn == nil { 2786 return time.Time{} 2787 } 2788 return *m.DueOn 2789} 2790 2791// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2792func (m *Milestone) GetHTMLURL() string { 2793 if m == nil || m.HTMLURL == nil { 2794 return "" 2795 } 2796 return *m.HTMLURL 2797} 2798 2799// GetID returns the ID field if it's non-nil, zero value otherwise. 2800func (m *Milestone) GetID() int { 2801 if m == nil || m.ID == nil { 2802 return 0 2803 } 2804 return *m.ID 2805} 2806 2807// GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 2808func (m *Milestone) GetLabelsURL() string { 2809 if m == nil || m.LabelsURL == nil { 2810 return "" 2811 } 2812 return *m.LabelsURL 2813} 2814 2815// GetNumber returns the Number field if it's non-nil, zero value otherwise. 2816func (m *Milestone) GetNumber() int { 2817 if m == nil || m.Number == nil { 2818 return 0 2819 } 2820 return *m.Number 2821} 2822 2823// GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 2824func (m *Milestone) GetOpenIssues() int { 2825 if m == nil || m.OpenIssues == nil { 2826 return 0 2827 } 2828 return *m.OpenIssues 2829} 2830 2831// GetState returns the State field if it's non-nil, zero value otherwise. 2832func (m *Milestone) GetState() string { 2833 if m == nil || m.State == nil { 2834 return "" 2835 } 2836 return *m.State 2837} 2838 2839// GetTitle returns the Title field if it's non-nil, zero value otherwise. 2840func (m *Milestone) GetTitle() string { 2841 if m == nil || m.Title == nil { 2842 return "" 2843 } 2844 return *m.Title 2845} 2846 2847// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2848func (m *Milestone) GetUpdatedAt() time.Time { 2849 if m == nil || m.UpdatedAt == nil { 2850 return time.Time{} 2851 } 2852 return *m.UpdatedAt 2853} 2854 2855// GetURL returns the URL field if it's non-nil, zero value otherwise. 2856func (m *Milestone) GetURL() string { 2857 if m == nil || m.URL == nil { 2858 return "" 2859 } 2860 return *m.URL 2861} 2862 2863// GetAction returns the Action field if it's non-nil, zero value otherwise. 2864func (m *MilestoneEvent) GetAction() string { 2865 if m == nil || m.Action == nil { 2866 return "" 2867 } 2868 return *m.Action 2869} 2870 2871// GetBase returns the Base field if it's non-nil, zero value otherwise. 2872func (n *NewPullRequest) GetBase() string { 2873 if n == nil || n.Base == nil { 2874 return "" 2875 } 2876 return *n.Base 2877} 2878 2879// GetBody returns the Body field if it's non-nil, zero value otherwise. 2880func (n *NewPullRequest) GetBody() string { 2881 if n == nil || n.Body == nil { 2882 return "" 2883 } 2884 return *n.Body 2885} 2886 2887// GetHead returns the Head field if it's non-nil, zero value otherwise. 2888func (n *NewPullRequest) GetHead() string { 2889 if n == nil || n.Head == nil { 2890 return "" 2891 } 2892 return *n.Head 2893} 2894 2895// GetIssue returns the Issue field if it's non-nil, zero value otherwise. 2896func (n *NewPullRequest) GetIssue() int { 2897 if n == nil || n.Issue == nil { 2898 return 0 2899 } 2900 return *n.Issue 2901} 2902 2903// GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 2904func (n *NewPullRequest) GetMaintainerCanModify() bool { 2905 if n == nil || n.MaintainerCanModify == nil { 2906 return false 2907 } 2908 return *n.MaintainerCanModify 2909} 2910 2911// GetTitle returns the Title field if it's non-nil, zero value otherwise. 2912func (n *NewPullRequest) GetTitle() string { 2913 if n == nil || n.Title == nil { 2914 return "" 2915 } 2916 return *n.Title 2917} 2918 2919// GetID returns the ID field if it's non-nil, zero value otherwise. 2920func (n *Notification) GetID() string { 2921 if n == nil || n.ID == nil { 2922 return "" 2923 } 2924 return *n.ID 2925} 2926 2927// GetLastReadAt returns the LastReadAt field if it's non-nil, zero value otherwise. 2928func (n *Notification) GetLastReadAt() time.Time { 2929 if n == nil || n.LastReadAt == nil { 2930 return time.Time{} 2931 } 2932 return *n.LastReadAt 2933} 2934 2935// GetReason returns the Reason field if it's non-nil, zero value otherwise. 2936func (n *Notification) GetReason() string { 2937 if n == nil || n.Reason == nil { 2938 return "" 2939 } 2940 return *n.Reason 2941} 2942 2943// GetUnread returns the Unread field if it's non-nil, zero value otherwise. 2944func (n *Notification) GetUnread() bool { 2945 if n == nil || n.Unread == nil { 2946 return false 2947 } 2948 return *n.Unread 2949} 2950 2951// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2952func (n *Notification) GetUpdatedAt() time.Time { 2953 if n == nil || n.UpdatedAt == nil { 2954 return time.Time{} 2955 } 2956 return *n.UpdatedAt 2957} 2958 2959// GetURL returns the URL field if it's non-nil, zero value otherwise. 2960func (n *Notification) GetURL() string { 2961 if n == nil || n.URL == nil { 2962 return "" 2963 } 2964 return *n.URL 2965} 2966 2967// GetLatestCommentURL returns the LatestCommentURL field if it's non-nil, zero value otherwise. 2968func (n *NotificationSubject) GetLatestCommentURL() string { 2969 if n == nil || n.LatestCommentURL == nil { 2970 return "" 2971 } 2972 return *n.LatestCommentURL 2973} 2974 2975// GetTitle returns the Title field if it's non-nil, zero value otherwise. 2976func (n *NotificationSubject) GetTitle() string { 2977 if n == nil || n.Title == nil { 2978 return "" 2979 } 2980 return *n.Title 2981} 2982 2983// GetType returns the Type field if it's non-nil, zero value otherwise. 2984func (n *NotificationSubject) GetType() string { 2985 if n == nil || n.Type == nil { 2986 return "" 2987 } 2988 return *n.Type 2989} 2990 2991// GetURL returns the URL field if it's non-nil, zero value otherwise. 2992func (n *NotificationSubject) GetURL() string { 2993 if n == nil || n.URL == nil { 2994 return "" 2995 } 2996 return *n.URL 2997} 2998 2999// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 3000func (o *Organization) GetAvatarURL() string { 3001 if o == nil || o.AvatarURL == nil { 3002 return "" 3003 } 3004 return *o.AvatarURL 3005} 3006 3007// GetBillingEmail returns the BillingEmail field if it's non-nil, zero value otherwise. 3008func (o *Organization) GetBillingEmail() string { 3009 if o == nil || o.BillingEmail == nil { 3010 return "" 3011 } 3012 return *o.BillingEmail 3013} 3014 3015// GetBlog returns the Blog field if it's non-nil, zero value otherwise. 3016func (o *Organization) GetBlog() string { 3017 if o == nil || o.Blog == nil { 3018 return "" 3019 } 3020 return *o.Blog 3021} 3022 3023// GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 3024func (o *Organization) GetCollaborators() int { 3025 if o == nil || o.Collaborators == nil { 3026 return 0 3027 } 3028 return *o.Collaborators 3029} 3030 3031// GetCompany returns the Company field if it's non-nil, zero value otherwise. 3032func (o *Organization) GetCompany() string { 3033 if o == nil || o.Company == nil { 3034 return "" 3035 } 3036 return *o.Company 3037} 3038 3039// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3040func (o *Organization) GetCreatedAt() time.Time { 3041 if o == nil || o.CreatedAt == nil { 3042 return time.Time{} 3043 } 3044 return *o.CreatedAt 3045} 3046 3047// GetDescription returns the Description field if it's non-nil, zero value otherwise. 3048func (o *Organization) GetDescription() string { 3049 if o == nil || o.Description == nil { 3050 return "" 3051 } 3052 return *o.Description 3053} 3054 3055// GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 3056func (o *Organization) GetDiskUsage() int { 3057 if o == nil || o.DiskUsage == nil { 3058 return 0 3059 } 3060 return *o.DiskUsage 3061} 3062 3063// GetEmail returns the Email field if it's non-nil, zero value otherwise. 3064func (o *Organization) GetEmail() string { 3065 if o == nil || o.Email == nil { 3066 return "" 3067 } 3068 return *o.Email 3069} 3070 3071// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 3072func (o *Organization) GetEventsURL() string { 3073 if o == nil || o.EventsURL == nil { 3074 return "" 3075 } 3076 return *o.EventsURL 3077} 3078 3079// GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 3080func (o *Organization) GetFollowers() int { 3081 if o == nil || o.Followers == nil { 3082 return 0 3083 } 3084 return *o.Followers 3085} 3086 3087// GetFollowing returns the Following field if it's non-nil, zero value otherwise. 3088func (o *Organization) GetFollowing() int { 3089 if o == nil || o.Following == nil { 3090 return 0 3091 } 3092 return *o.Following 3093} 3094 3095// GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 3096func (o *Organization) GetHooksURL() string { 3097 if o == nil || o.HooksURL == nil { 3098 return "" 3099 } 3100 return *o.HooksURL 3101} 3102 3103// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3104func (o *Organization) GetHTMLURL() string { 3105 if o == nil || o.HTMLURL == nil { 3106 return "" 3107 } 3108 return *o.HTMLURL 3109} 3110 3111// GetID returns the ID field if it's non-nil, zero value otherwise. 3112func (o *Organization) GetID() int { 3113 if o == nil || o.ID == nil { 3114 return 0 3115 } 3116 return *o.ID 3117} 3118 3119// GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 3120func (o *Organization) GetIssuesURL() string { 3121 if o == nil || o.IssuesURL == nil { 3122 return "" 3123 } 3124 return *o.IssuesURL 3125} 3126 3127// GetLocation returns the Location field if it's non-nil, zero value otherwise. 3128func (o *Organization) GetLocation() string { 3129 if o == nil || o.Location == nil { 3130 return "" 3131 } 3132 return *o.Location 3133} 3134 3135// GetLogin returns the Login field if it's non-nil, zero value otherwise. 3136func (o *Organization) GetLogin() string { 3137 if o == nil || o.Login == nil { 3138 return "" 3139 } 3140 return *o.Login 3141} 3142 3143// GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 3144func (o *Organization) GetMembersURL() string { 3145 if o == nil || o.MembersURL == nil { 3146 return "" 3147 } 3148 return *o.MembersURL 3149} 3150 3151// GetName returns the Name field if it's non-nil, zero value otherwise. 3152func (o *Organization) GetName() string { 3153 if o == nil || o.Name == nil { 3154 return "" 3155 } 3156 return *o.Name 3157} 3158 3159// GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 3160func (o *Organization) GetOwnedPrivateRepos() int { 3161 if o == nil || o.OwnedPrivateRepos == nil { 3162 return 0 3163 } 3164 return *o.OwnedPrivateRepos 3165} 3166 3167// GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 3168func (o *Organization) GetPrivateGists() int { 3169 if o == nil || o.PrivateGists == nil { 3170 return 0 3171 } 3172 return *o.PrivateGists 3173} 3174 3175// GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 3176func (o *Organization) GetPublicGists() int { 3177 if o == nil || o.PublicGists == nil { 3178 return 0 3179 } 3180 return *o.PublicGists 3181} 3182 3183// GetPublicMembersURL returns the PublicMembersURL field if it's non-nil, zero value otherwise. 3184func (o *Organization) GetPublicMembersURL() string { 3185 if o == nil || o.PublicMembersURL == nil { 3186 return "" 3187 } 3188 return *o.PublicMembersURL 3189} 3190 3191// GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 3192func (o *Organization) GetPublicRepos() int { 3193 if o == nil || o.PublicRepos == nil { 3194 return 0 3195 } 3196 return *o.PublicRepos 3197} 3198 3199// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 3200func (o *Organization) GetReposURL() string { 3201 if o == nil || o.ReposURL == nil { 3202 return "" 3203 } 3204 return *o.ReposURL 3205} 3206 3207// GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 3208func (o *Organization) GetTotalPrivateRepos() int { 3209 if o == nil || o.TotalPrivateRepos == nil { 3210 return 0 3211 } 3212 return *o.TotalPrivateRepos 3213} 3214 3215// GetType returns the Type field if it's non-nil, zero value otherwise. 3216func (o *Organization) GetType() string { 3217 if o == nil || o.Type == nil { 3218 return "" 3219 } 3220 return *o.Type 3221} 3222 3223// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3224func (o *Organization) GetUpdatedAt() time.Time { 3225 if o == nil || o.UpdatedAt == nil { 3226 return time.Time{} 3227 } 3228 return *o.UpdatedAt 3229} 3230 3231// GetURL returns the URL field if it's non-nil, zero value otherwise. 3232func (o *Organization) GetURL() string { 3233 if o == nil || o.URL == nil { 3234 return "" 3235 } 3236 return *o.URL 3237} 3238 3239// GetAction returns the Action field if it's non-nil, zero value otherwise. 3240func (o *OrganizationEvent) GetAction() string { 3241 if o == nil || o.Action == nil { 3242 return "" 3243 } 3244 return *o.Action 3245} 3246 3247// GetAction returns the Action field if it's non-nil, zero value otherwise. 3248func (o *OrgBlockEvent) GetAction() string { 3249 if o == nil || o.Action == nil { 3250 return "" 3251 } 3252 return *o.Action 3253} 3254 3255// GetAction returns the Action field if it's non-nil, zero value otherwise. 3256func (p *Page) GetAction() string { 3257 if p == nil || p.Action == nil { 3258 return "" 3259 } 3260 return *p.Action 3261} 3262 3263// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3264func (p *Page) GetHTMLURL() string { 3265 if p == nil || p.HTMLURL == nil { 3266 return "" 3267 } 3268 return *p.HTMLURL 3269} 3270 3271// GetPageName returns the PageName field if it's non-nil, zero value otherwise. 3272func (p *Page) GetPageName() string { 3273 if p == nil || p.PageName == nil { 3274 return "" 3275 } 3276 return *p.PageName 3277} 3278 3279// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3280func (p *Page) GetSHA() string { 3281 if p == nil || p.SHA == nil { 3282 return "" 3283 } 3284 return *p.SHA 3285} 3286 3287// GetSummary returns the Summary field if it's non-nil, zero value otherwise. 3288func (p *Page) GetSummary() string { 3289 if p == nil || p.Summary == nil { 3290 return "" 3291 } 3292 return *p.Summary 3293} 3294 3295// GetTitle returns the Title field if it's non-nil, zero value otherwise. 3296func (p *Page) GetTitle() string { 3297 if p == nil || p.Title == nil { 3298 return "" 3299 } 3300 return *p.Title 3301} 3302 3303// GetID returns the ID field if it's non-nil, zero value otherwise. 3304func (p *PageBuildEvent) GetID() int { 3305 if p == nil || p.ID == nil { 3306 return 0 3307 } 3308 return *p.ID 3309} 3310 3311// GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. 3312func (p *Pages) GetCNAME() string { 3313 if p == nil || p.CNAME == nil { 3314 return "" 3315 } 3316 return *p.CNAME 3317} 3318 3319// GetCustom404 returns the Custom404 field if it's non-nil, zero value otherwise. 3320func (p *Pages) GetCustom404() bool { 3321 if p == nil || p.Custom404 == nil { 3322 return false 3323 } 3324 return *p.Custom404 3325} 3326 3327// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3328func (p *Pages) GetHTMLURL() string { 3329 if p == nil || p.HTMLURL == nil { 3330 return "" 3331 } 3332 return *p.HTMLURL 3333} 3334 3335// GetStatus returns the Status field if it's non-nil, zero value otherwise. 3336func (p *Pages) GetStatus() string { 3337 if p == nil || p.Status == nil { 3338 return "" 3339 } 3340 return *p.Status 3341} 3342 3343// GetURL returns the URL field if it's non-nil, zero value otherwise. 3344func (p *Pages) GetURL() string { 3345 if p == nil || p.URL == nil { 3346 return "" 3347 } 3348 return *p.URL 3349} 3350 3351// GetCommit returns the Commit field if it's non-nil, zero value otherwise. 3352func (p *PagesBuild) GetCommit() string { 3353 if p == nil || p.Commit == nil { 3354 return "" 3355 } 3356 return *p.Commit 3357} 3358 3359// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3360func (p *PagesBuild) GetCreatedAt() Timestamp { 3361 if p == nil || p.CreatedAt == nil { 3362 return Timestamp{} 3363 } 3364 return *p.CreatedAt 3365} 3366 3367// GetDuration returns the Duration field if it's non-nil, zero value otherwise. 3368func (p *PagesBuild) GetDuration() int { 3369 if p == nil || p.Duration == nil { 3370 return 0 3371 } 3372 return *p.Duration 3373} 3374 3375// GetStatus returns the Status field if it's non-nil, zero value otherwise. 3376func (p *PagesBuild) GetStatus() string { 3377 if p == nil || p.Status == nil { 3378 return "" 3379 } 3380 return *p.Status 3381} 3382 3383// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3384func (p *PagesBuild) GetUpdatedAt() Timestamp { 3385 if p == nil || p.UpdatedAt == nil { 3386 return Timestamp{} 3387 } 3388 return *p.UpdatedAt 3389} 3390 3391// GetURL returns the URL field if it's non-nil, zero value otherwise. 3392func (p *PagesBuild) GetURL() string { 3393 if p == nil || p.URL == nil { 3394 return "" 3395 } 3396 return *p.URL 3397} 3398 3399// GetMessage returns the Message field if it's non-nil, zero value otherwise. 3400func (p *PagesError) GetMessage() string { 3401 if p == nil || p.Message == nil { 3402 return "" 3403 } 3404 return *p.Message 3405} 3406 3407// GetHookID returns the HookID field if it's non-nil, zero value otherwise. 3408func (p *PingEvent) GetHookID() int { 3409 if p == nil || p.HookID == nil { 3410 return 0 3411 } 3412 return *p.HookID 3413} 3414 3415// GetZen returns the Zen field if it's non-nil, zero value otherwise. 3416func (p *PingEvent) GetZen() string { 3417 if p == nil || p.Zen == nil { 3418 return "" 3419 } 3420 return *p.Zen 3421} 3422 3423// GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 3424func (p *Plan) GetCollaborators() int { 3425 if p == nil || p.Collaborators == nil { 3426 return 0 3427 } 3428 return *p.Collaborators 3429} 3430 3431// GetName returns the Name field if it's non-nil, zero value otherwise. 3432func (p *Plan) GetName() string { 3433 if p == nil || p.Name == nil { 3434 return "" 3435 } 3436 return *p.Name 3437} 3438 3439// GetPrivateRepos returns the PrivateRepos field if it's non-nil, zero value otherwise. 3440func (p *Plan) GetPrivateRepos() int { 3441 if p == nil || p.PrivateRepos == nil { 3442 return 0 3443 } 3444 return *p.PrivateRepos 3445} 3446 3447// GetSpace returns the Space field if it's non-nil, zero value otherwise. 3448func (p *Plan) GetSpace() int { 3449 if p == nil || p.Space == nil { 3450 return 0 3451 } 3452 return *p.Space 3453} 3454 3455// GetBody returns the Body field if it's non-nil, zero value otherwise. 3456func (p *Project) GetBody() string { 3457 if p == nil || p.Body == nil { 3458 return "" 3459 } 3460 return *p.Body 3461} 3462 3463// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3464func (p *Project) GetCreatedAt() Timestamp { 3465 if p == nil || p.CreatedAt == nil { 3466 return Timestamp{} 3467 } 3468 return *p.CreatedAt 3469} 3470 3471// GetID returns the ID field if it's non-nil, zero value otherwise. 3472func (p *Project) GetID() int { 3473 if p == nil || p.ID == nil { 3474 return 0 3475 } 3476 return *p.ID 3477} 3478 3479// GetName returns the Name field if it's non-nil, zero value otherwise. 3480func (p *Project) GetName() string { 3481 if p == nil || p.Name == nil { 3482 return "" 3483 } 3484 return *p.Name 3485} 3486 3487// GetNumber returns the Number field if it's non-nil, zero value otherwise. 3488func (p *Project) GetNumber() int { 3489 if p == nil || p.Number == nil { 3490 return 0 3491 } 3492 return *p.Number 3493} 3494 3495// GetOwnerURL returns the OwnerURL field if it's non-nil, zero value otherwise. 3496func (p *Project) GetOwnerURL() string { 3497 if p == nil || p.OwnerURL == nil { 3498 return "" 3499 } 3500 return *p.OwnerURL 3501} 3502 3503// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3504func (p *Project) GetUpdatedAt() Timestamp { 3505 if p == nil || p.UpdatedAt == nil { 3506 return Timestamp{} 3507 } 3508 return *p.UpdatedAt 3509} 3510 3511// GetURL returns the URL field if it's non-nil, zero value otherwise. 3512func (p *Project) GetURL() string { 3513 if p == nil || p.URL == nil { 3514 return "" 3515 } 3516 return *p.URL 3517} 3518 3519// GetColumnURL returns the ColumnURL field if it's non-nil, zero value otherwise. 3520func (p *ProjectCard) GetColumnURL() string { 3521 if p == nil || p.ColumnURL == nil { 3522 return "" 3523 } 3524 return *p.ColumnURL 3525} 3526 3527// GetContentURL returns the ContentURL field if it's non-nil, zero value otherwise. 3528func (p *ProjectCard) GetContentURL() string { 3529 if p == nil || p.ContentURL == nil { 3530 return "" 3531 } 3532 return *p.ContentURL 3533} 3534 3535// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3536func (p *ProjectCard) GetCreatedAt() Timestamp { 3537 if p == nil || p.CreatedAt == nil { 3538 return Timestamp{} 3539 } 3540 return *p.CreatedAt 3541} 3542 3543// GetID returns the ID field if it's non-nil, zero value otherwise. 3544func (p *ProjectCard) GetID() int { 3545 if p == nil || p.ID == nil { 3546 return 0 3547 } 3548 return *p.ID 3549} 3550 3551// GetNote returns the Note field if it's non-nil, zero value otherwise. 3552func (p *ProjectCard) GetNote() string { 3553 if p == nil || p.Note == nil { 3554 return "" 3555 } 3556 return *p.Note 3557} 3558 3559// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3560func (p *ProjectCard) GetUpdatedAt() Timestamp { 3561 if p == nil || p.UpdatedAt == nil { 3562 return Timestamp{} 3563 } 3564 return *p.UpdatedAt 3565} 3566 3567// GetAction returns the Action field if it's non-nil, zero value otherwise. 3568func (p *ProjectCardEvent) GetAction() string { 3569 if p == nil || p.Action == nil { 3570 return "" 3571 } 3572 return *p.Action 3573} 3574 3575// GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 3576func (p *ProjectCardEvent) GetAfterID() int { 3577 if p == nil || p.AfterID == nil { 3578 return 0 3579 } 3580 return *p.AfterID 3581} 3582 3583// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3584func (p *ProjectColumn) GetCreatedAt() Timestamp { 3585 if p == nil || p.CreatedAt == nil { 3586 return Timestamp{} 3587 } 3588 return *p.CreatedAt 3589} 3590 3591// GetID returns the ID field if it's non-nil, zero value otherwise. 3592func (p *ProjectColumn) GetID() int { 3593 if p == nil || p.ID == nil { 3594 return 0 3595 } 3596 return *p.ID 3597} 3598 3599// GetName returns the Name field if it's non-nil, zero value otherwise. 3600func (p *ProjectColumn) GetName() string { 3601 if p == nil || p.Name == nil { 3602 return "" 3603 } 3604 return *p.Name 3605} 3606 3607// GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. 3608func (p *ProjectColumn) GetProjectURL() string { 3609 if p == nil || p.ProjectURL == nil { 3610 return "" 3611 } 3612 return *p.ProjectURL 3613} 3614 3615// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3616func (p *ProjectColumn) GetUpdatedAt() Timestamp { 3617 if p == nil || p.UpdatedAt == nil { 3618 return Timestamp{} 3619 } 3620 return *p.UpdatedAt 3621} 3622 3623// GetAction returns the Action field if it's non-nil, zero value otherwise. 3624func (p *ProjectColumnEvent) GetAction() string { 3625 if p == nil || p.Action == nil { 3626 return "" 3627 } 3628 return *p.Action 3629} 3630 3631// GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 3632func (p *ProjectColumnEvent) GetAfterID() int { 3633 if p == nil || p.AfterID == nil { 3634 return 0 3635 } 3636 return *p.AfterID 3637} 3638 3639// GetAction returns the Action field if it's non-nil, zero value otherwise. 3640func (p *ProjectEvent) GetAction() string { 3641 if p == nil || p.Action == nil { 3642 return "" 3643 } 3644 return *p.Action 3645} 3646 3647// GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 3648func (p *PullRequest) GetAdditions() int { 3649 if p == nil || p.Additions == nil { 3650 return 0 3651 } 3652 return *p.Additions 3653} 3654 3655// GetBody returns the Body field if it's non-nil, zero value otherwise. 3656func (p *PullRequest) GetBody() string { 3657 if p == nil || p.Body == nil { 3658 return "" 3659 } 3660 return *p.Body 3661} 3662 3663// GetChangedFiles returns the ChangedFiles field if it's non-nil, zero value otherwise. 3664func (p *PullRequest) GetChangedFiles() int { 3665 if p == nil || p.ChangedFiles == nil { 3666 return 0 3667 } 3668 return *p.ChangedFiles 3669} 3670 3671// GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 3672func (p *PullRequest) GetClosedAt() time.Time { 3673 if p == nil || p.ClosedAt == nil { 3674 return time.Time{} 3675 } 3676 return *p.ClosedAt 3677} 3678 3679// GetComments returns the Comments field if it's non-nil, zero value otherwise. 3680func (p *PullRequest) GetComments() int { 3681 if p == nil || p.Comments == nil { 3682 return 0 3683 } 3684 return *p.Comments 3685} 3686 3687// GetCommits returns the Commits field if it's non-nil, zero value otherwise. 3688func (p *PullRequest) GetCommits() int { 3689 if p == nil || p.Commits == nil { 3690 return 0 3691 } 3692 return *p.Commits 3693} 3694 3695// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3696func (p *PullRequest) GetCreatedAt() time.Time { 3697 if p == nil || p.CreatedAt == nil { 3698 return time.Time{} 3699 } 3700 return *p.CreatedAt 3701} 3702 3703// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 3704func (p *PullRequest) GetDeletions() int { 3705 if p == nil || p.Deletions == nil { 3706 return 0 3707 } 3708 return *p.Deletions 3709} 3710 3711// GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 3712func (p *PullRequest) GetDiffURL() string { 3713 if p == nil || p.DiffURL == nil { 3714 return "" 3715 } 3716 return *p.DiffURL 3717} 3718 3719// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3720func (p *PullRequest) GetHTMLURL() string { 3721 if p == nil || p.HTMLURL == nil { 3722 return "" 3723 } 3724 return *p.HTMLURL 3725} 3726 3727// GetID returns the ID field if it's non-nil, zero value otherwise. 3728func (p *PullRequest) GetID() int { 3729 if p == nil || p.ID == nil { 3730 return 0 3731 } 3732 return *p.ID 3733} 3734 3735// GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 3736func (p *PullRequest) GetIssueURL() string { 3737 if p == nil || p.IssueURL == nil { 3738 return "" 3739 } 3740 return *p.IssueURL 3741} 3742 3743// GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 3744func (p *PullRequest) GetMaintainerCanModify() bool { 3745 if p == nil || p.MaintainerCanModify == nil { 3746 return false 3747 } 3748 return *p.MaintainerCanModify 3749} 3750 3751// GetMergeable returns the Mergeable field if it's non-nil, zero value otherwise. 3752func (p *PullRequest) GetMergeable() bool { 3753 if p == nil || p.Mergeable == nil { 3754 return false 3755 } 3756 return *p.Mergeable 3757} 3758 3759// GetMergeCommitSHA returns the MergeCommitSHA field if it's non-nil, zero value otherwise. 3760func (p *PullRequest) GetMergeCommitSHA() string { 3761 if p == nil || p.MergeCommitSHA == nil { 3762 return "" 3763 } 3764 return *p.MergeCommitSHA 3765} 3766 3767// GetMerged returns the Merged field if it's non-nil, zero value otherwise. 3768func (p *PullRequest) GetMerged() bool { 3769 if p == nil || p.Merged == nil { 3770 return false 3771 } 3772 return *p.Merged 3773} 3774 3775// GetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise. 3776func (p *PullRequest) GetMergedAt() time.Time { 3777 if p == nil || p.MergedAt == nil { 3778 return time.Time{} 3779 } 3780 return *p.MergedAt 3781} 3782 3783// GetNumber returns the Number field if it's non-nil, zero value otherwise. 3784func (p *PullRequest) GetNumber() int { 3785 if p == nil || p.Number == nil { 3786 return 0 3787 } 3788 return *p.Number 3789} 3790 3791// GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 3792func (p *PullRequest) GetPatchURL() string { 3793 if p == nil || p.PatchURL == nil { 3794 return "" 3795 } 3796 return *p.PatchURL 3797} 3798 3799// GetReviewCommentsURL returns the ReviewCommentsURL field if it's non-nil, zero value otherwise. 3800func (p *PullRequest) GetReviewCommentsURL() string { 3801 if p == nil || p.ReviewCommentsURL == nil { 3802 return "" 3803 } 3804 return *p.ReviewCommentsURL 3805} 3806 3807// GetReviewCommentURL returns the ReviewCommentURL field if it's non-nil, zero value otherwise. 3808func (p *PullRequest) GetReviewCommentURL() string { 3809 if p == nil || p.ReviewCommentURL == nil { 3810 return "" 3811 } 3812 return *p.ReviewCommentURL 3813} 3814 3815// GetState returns the State field if it's non-nil, zero value otherwise. 3816func (p *PullRequest) GetState() string { 3817 if p == nil || p.State == nil { 3818 return "" 3819 } 3820 return *p.State 3821} 3822 3823// GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 3824func (p *PullRequest) GetStatusesURL() string { 3825 if p == nil || p.StatusesURL == nil { 3826 return "" 3827 } 3828 return *p.StatusesURL 3829} 3830 3831// GetTitle returns the Title field if it's non-nil, zero value otherwise. 3832func (p *PullRequest) GetTitle() string { 3833 if p == nil || p.Title == nil { 3834 return "" 3835 } 3836 return *p.Title 3837} 3838 3839// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3840func (p *PullRequest) GetUpdatedAt() time.Time { 3841 if p == nil || p.UpdatedAt == nil { 3842 return time.Time{} 3843 } 3844 return *p.UpdatedAt 3845} 3846 3847// GetURL returns the URL field if it's non-nil, zero value otherwise. 3848func (p *PullRequest) GetURL() string { 3849 if p == nil || p.URL == nil { 3850 return "" 3851 } 3852 return *p.URL 3853} 3854 3855// GetLabel returns the Label field if it's non-nil, zero value otherwise. 3856func (p *PullRequestBranch) GetLabel() string { 3857 if p == nil || p.Label == nil { 3858 return "" 3859 } 3860 return *p.Label 3861} 3862 3863// GetRef returns the Ref field if it's non-nil, zero value otherwise. 3864func (p *PullRequestBranch) GetRef() string { 3865 if p == nil || p.Ref == nil { 3866 return "" 3867 } 3868 return *p.Ref 3869} 3870 3871// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3872func (p *PullRequestBranch) GetSHA() string { 3873 if p == nil || p.SHA == nil { 3874 return "" 3875 } 3876 return *p.SHA 3877} 3878 3879// GetBody returns the Body field if it's non-nil, zero value otherwise. 3880func (p *PullRequestComment) GetBody() string { 3881 if p == nil || p.Body == nil { 3882 return "" 3883 } 3884 return *p.Body 3885} 3886 3887// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 3888func (p *PullRequestComment) GetCommitID() string { 3889 if p == nil || p.CommitID == nil { 3890 return "" 3891 } 3892 return *p.CommitID 3893} 3894 3895// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3896func (p *PullRequestComment) GetCreatedAt() time.Time { 3897 if p == nil || p.CreatedAt == nil { 3898 return time.Time{} 3899 } 3900 return *p.CreatedAt 3901} 3902 3903// GetDiffHunk returns the DiffHunk field if it's non-nil, zero value otherwise. 3904func (p *PullRequestComment) GetDiffHunk() string { 3905 if p == nil || p.DiffHunk == nil { 3906 return "" 3907 } 3908 return *p.DiffHunk 3909} 3910 3911// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3912func (p *PullRequestComment) GetHTMLURL() string { 3913 if p == nil || p.HTMLURL == nil { 3914 return "" 3915 } 3916 return *p.HTMLURL 3917} 3918 3919// GetID returns the ID field if it's non-nil, zero value otherwise. 3920func (p *PullRequestComment) GetID() int { 3921 if p == nil || p.ID == nil { 3922 return 0 3923 } 3924 return *p.ID 3925} 3926 3927// GetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise. 3928func (p *PullRequestComment) GetInReplyTo() int { 3929 if p == nil || p.InReplyTo == nil { 3930 return 0 3931 } 3932 return *p.InReplyTo 3933} 3934 3935// GetOriginalCommitID returns the OriginalCommitID field if it's non-nil, zero value otherwise. 3936func (p *PullRequestComment) GetOriginalCommitID() string { 3937 if p == nil || p.OriginalCommitID == nil { 3938 return "" 3939 } 3940 return *p.OriginalCommitID 3941} 3942 3943// GetOriginalPosition returns the OriginalPosition field if it's non-nil, zero value otherwise. 3944func (p *PullRequestComment) GetOriginalPosition() int { 3945 if p == nil || p.OriginalPosition == nil { 3946 return 0 3947 } 3948 return *p.OriginalPosition 3949} 3950 3951// GetPath returns the Path field if it's non-nil, zero value otherwise. 3952func (p *PullRequestComment) GetPath() string { 3953 if p == nil || p.Path == nil { 3954 return "" 3955 } 3956 return *p.Path 3957} 3958 3959// GetPosition returns the Position field if it's non-nil, zero value otherwise. 3960func (p *PullRequestComment) GetPosition() int { 3961 if p == nil || p.Position == nil { 3962 return 0 3963 } 3964 return *p.Position 3965} 3966 3967// GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 3968func (p *PullRequestComment) GetPullRequestURL() string { 3969 if p == nil || p.PullRequestURL == nil { 3970 return "" 3971 } 3972 return *p.PullRequestURL 3973} 3974 3975// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3976func (p *PullRequestComment) GetUpdatedAt() time.Time { 3977 if p == nil || p.UpdatedAt == nil { 3978 return time.Time{} 3979 } 3980 return *p.UpdatedAt 3981} 3982 3983// GetURL returns the URL field if it's non-nil, zero value otherwise. 3984func (p *PullRequestComment) GetURL() string { 3985 if p == nil || p.URL == nil { 3986 return "" 3987 } 3988 return *p.URL 3989} 3990 3991// GetAction returns the Action field if it's non-nil, zero value otherwise. 3992func (p *PullRequestEvent) GetAction() string { 3993 if p == nil || p.Action == nil { 3994 return "" 3995 } 3996 return *p.Action 3997} 3998 3999// GetNumber returns the Number field if it's non-nil, zero value otherwise. 4000func (p *PullRequestEvent) GetNumber() int { 4001 if p == nil || p.Number == nil { 4002 return 0 4003 } 4004 return *p.Number 4005} 4006 4007// GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 4008func (p *PullRequestLinks) GetDiffURL() string { 4009 if p == nil || p.DiffURL == nil { 4010 return "" 4011 } 4012 return *p.DiffURL 4013} 4014 4015// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4016func (p *PullRequestLinks) GetHTMLURL() string { 4017 if p == nil || p.HTMLURL == nil { 4018 return "" 4019 } 4020 return *p.HTMLURL 4021} 4022 4023// GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 4024func (p *PullRequestLinks) GetPatchURL() string { 4025 if p == nil || p.PatchURL == nil { 4026 return "" 4027 } 4028 return *p.PatchURL 4029} 4030 4031// GetURL returns the URL field if it's non-nil, zero value otherwise. 4032func (p *PullRequestLinks) GetURL() string { 4033 if p == nil || p.URL == nil { 4034 return "" 4035 } 4036 return *p.URL 4037} 4038 4039// GetMerged returns the Merged field if it's non-nil, zero value otherwise. 4040func (p *PullRequestMergeResult) GetMerged() bool { 4041 if p == nil || p.Merged == nil { 4042 return false 4043 } 4044 return *p.Merged 4045} 4046 4047// GetMessage returns the Message field if it's non-nil, zero value otherwise. 4048func (p *PullRequestMergeResult) GetMessage() string { 4049 if p == nil || p.Message == nil { 4050 return "" 4051 } 4052 return *p.Message 4053} 4054 4055// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 4056func (p *PullRequestMergeResult) GetSHA() string { 4057 if p == nil || p.SHA == nil { 4058 return "" 4059 } 4060 return *p.SHA 4061} 4062 4063// GetBody returns the Body field if it's non-nil, zero value otherwise. 4064func (p *PullRequestReview) GetBody() string { 4065 if p == nil || p.Body == nil { 4066 return "" 4067 } 4068 return *p.Body 4069} 4070 4071// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 4072func (p *PullRequestReview) GetCommitID() string { 4073 if p == nil || p.CommitID == nil { 4074 return "" 4075 } 4076 return *p.CommitID 4077} 4078 4079// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4080func (p *PullRequestReview) GetHTMLURL() string { 4081 if p == nil || p.HTMLURL == nil { 4082 return "" 4083 } 4084 return *p.HTMLURL 4085} 4086 4087// GetID returns the ID field if it's non-nil, zero value otherwise. 4088func (p *PullRequestReview) GetID() int { 4089 if p == nil || p.ID == nil { 4090 return 0 4091 } 4092 return *p.ID 4093} 4094 4095// GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 4096func (p *PullRequestReview) GetPullRequestURL() string { 4097 if p == nil || p.PullRequestURL == nil { 4098 return "" 4099 } 4100 return *p.PullRequestURL 4101} 4102 4103// GetState returns the State field if it's non-nil, zero value otherwise. 4104func (p *PullRequestReview) GetState() string { 4105 if p == nil || p.State == nil { 4106 return "" 4107 } 4108 return *p.State 4109} 4110 4111// GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. 4112func (p *PullRequestReview) GetSubmittedAt() time.Time { 4113 if p == nil || p.SubmittedAt == nil { 4114 return time.Time{} 4115 } 4116 return *p.SubmittedAt 4117} 4118 4119// GetAction returns the Action field if it's non-nil, zero value otherwise. 4120func (p *PullRequestReviewCommentEvent) GetAction() string { 4121 if p == nil || p.Action == nil { 4122 return "" 4123 } 4124 return *p.Action 4125} 4126 4127// GetMessage returns the Message field if it's non-nil, zero value otherwise. 4128func (p *PullRequestReviewDismissalRequest) GetMessage() string { 4129 if p == nil || p.Message == nil { 4130 return "" 4131 } 4132 return *p.Message 4133} 4134 4135// GetAction returns the Action field if it's non-nil, zero value otherwise. 4136func (p *PullRequestReviewEvent) GetAction() string { 4137 if p == nil || p.Action == nil { 4138 return "" 4139 } 4140 return *p.Action 4141} 4142 4143// GetBody returns the Body field if it's non-nil, zero value otherwise. 4144func (p *PullRequestReviewRequest) GetBody() string { 4145 if p == nil || p.Body == nil { 4146 return "" 4147 } 4148 return *p.Body 4149} 4150 4151// GetEvent returns the Event field if it's non-nil, zero value otherwise. 4152func (p *PullRequestReviewRequest) GetEvent() string { 4153 if p == nil || p.Event == nil { 4154 return "" 4155 } 4156 return *p.Event 4157} 4158 4159// GetBase returns the Base field if it's non-nil, zero value otherwise. 4160func (p *pullRequestUpdate) GetBase() string { 4161 if p == nil || p.Base == nil { 4162 return "" 4163 } 4164 return *p.Base 4165} 4166 4167// GetBody returns the Body field if it's non-nil, zero value otherwise. 4168func (p *pullRequestUpdate) GetBody() string { 4169 if p == nil || p.Body == nil { 4170 return "" 4171 } 4172 return *p.Body 4173} 4174 4175// GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 4176func (p *pullRequestUpdate) GetMaintainerCanModify() bool { 4177 if p == nil || p.MaintainerCanModify == nil { 4178 return false 4179 } 4180 return *p.MaintainerCanModify 4181} 4182 4183// GetState returns the State field if it's non-nil, zero value otherwise. 4184func (p *pullRequestUpdate) GetState() string { 4185 if p == nil || p.State == nil { 4186 return "" 4187 } 4188 return *p.State 4189} 4190 4191// GetTitle returns the Title field if it's non-nil, zero value otherwise. 4192func (p *pullRequestUpdate) GetTitle() string { 4193 if p == nil || p.Title == nil { 4194 return "" 4195 } 4196 return *p.Title 4197} 4198 4199// GetCommits returns the Commits field if it's non-nil, zero value otherwise. 4200func (p *PunchCard) GetCommits() int { 4201 if p == nil || p.Commits == nil { 4202 return 0 4203 } 4204 return *p.Commits 4205} 4206 4207// GetDay returns the Day field if it's non-nil, zero value otherwise. 4208func (p *PunchCard) GetDay() int { 4209 if p == nil || p.Day == nil { 4210 return 0 4211 } 4212 return *p.Day 4213} 4214 4215// GetHour returns the Hour field if it's non-nil, zero value otherwise. 4216func (p *PunchCard) GetHour() int { 4217 if p == nil || p.Hour == nil { 4218 return 0 4219 } 4220 return *p.Hour 4221} 4222 4223// GetAfter returns the After field if it's non-nil, zero value otherwise. 4224func (p *PushEvent) GetAfter() string { 4225 if p == nil || p.After == nil { 4226 return "" 4227 } 4228 return *p.After 4229} 4230 4231// GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise. 4232func (p *PushEvent) GetBaseRef() string { 4233 if p == nil || p.BaseRef == nil { 4234 return "" 4235 } 4236 return *p.BaseRef 4237} 4238 4239// GetBefore returns the Before field if it's non-nil, zero value otherwise. 4240func (p *PushEvent) GetBefore() string { 4241 if p == nil || p.Before == nil { 4242 return "" 4243 } 4244 return *p.Before 4245} 4246 4247// GetCompare returns the Compare field if it's non-nil, zero value otherwise. 4248func (p *PushEvent) GetCompare() string { 4249 if p == nil || p.Compare == nil { 4250 return "" 4251 } 4252 return *p.Compare 4253} 4254 4255// GetCreated returns the Created field if it's non-nil, zero value otherwise. 4256func (p *PushEvent) GetCreated() bool { 4257 if p == nil || p.Created == nil { 4258 return false 4259 } 4260 return *p.Created 4261} 4262 4263// GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. 4264func (p *PushEvent) GetDeleted() bool { 4265 if p == nil || p.Deleted == nil { 4266 return false 4267 } 4268 return *p.Deleted 4269} 4270 4271// GetDistinctSize returns the DistinctSize field if it's non-nil, zero value otherwise. 4272func (p *PushEvent) GetDistinctSize() int { 4273 if p == nil || p.DistinctSize == nil { 4274 return 0 4275 } 4276 return *p.DistinctSize 4277} 4278 4279// GetForced returns the Forced field if it's non-nil, zero value otherwise. 4280func (p *PushEvent) GetForced() bool { 4281 if p == nil || p.Forced == nil { 4282 return false 4283 } 4284 return *p.Forced 4285} 4286 4287// GetHead returns the Head field if it's non-nil, zero value otherwise. 4288func (p *PushEvent) GetHead() string { 4289 if p == nil || p.Head == nil { 4290 return "" 4291 } 4292 return *p.Head 4293} 4294 4295// GetPushID returns the PushID field if it's non-nil, zero value otherwise. 4296func (p *PushEvent) GetPushID() int { 4297 if p == nil || p.PushID == nil { 4298 return 0 4299 } 4300 return *p.PushID 4301} 4302 4303// GetRef returns the Ref field if it's non-nil, zero value otherwise. 4304func (p *PushEvent) GetRef() string { 4305 if p == nil || p.Ref == nil { 4306 return "" 4307 } 4308 return *p.Ref 4309} 4310 4311// GetSize returns the Size field if it's non-nil, zero value otherwise. 4312func (p *PushEvent) GetSize() int { 4313 if p == nil || p.Size == nil { 4314 return 0 4315 } 4316 return *p.Size 4317} 4318 4319// GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. 4320func (p *PushEventCommit) GetDistinct() bool { 4321 if p == nil || p.Distinct == nil { 4322 return false 4323 } 4324 return *p.Distinct 4325} 4326 4327// GetID returns the ID field if it's non-nil, zero value otherwise. 4328func (p *PushEventCommit) GetID() string { 4329 if p == nil || p.ID == nil { 4330 return "" 4331 } 4332 return *p.ID 4333} 4334 4335// GetMessage returns the Message field if it's non-nil, zero value otherwise. 4336func (p *PushEventCommit) GetMessage() string { 4337 if p == nil || p.Message == nil { 4338 return "" 4339 } 4340 return *p.Message 4341} 4342 4343// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 4344func (p *PushEventCommit) GetSHA() string { 4345 if p == nil || p.SHA == nil { 4346 return "" 4347 } 4348 return *p.SHA 4349} 4350 4351// GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 4352func (p *PushEventCommit) GetTimestamp() Timestamp { 4353 if p == nil || p.Timestamp == nil { 4354 return Timestamp{} 4355 } 4356 return *p.Timestamp 4357} 4358 4359// GetTreeID returns the TreeID field if it's non-nil, zero value otherwise. 4360func (p *PushEventCommit) GetTreeID() string { 4361 if p == nil || p.TreeID == nil { 4362 return "" 4363 } 4364 return *p.TreeID 4365} 4366 4367// GetURL returns the URL field if it's non-nil, zero value otherwise. 4368func (p *PushEventCommit) GetURL() string { 4369 if p == nil || p.URL == nil { 4370 return "" 4371 } 4372 return *p.URL 4373} 4374 4375// GetEmail returns the Email field if it's non-nil, zero value otherwise. 4376func (p *PushEventRepoOwner) GetEmail() string { 4377 if p == nil || p.Email == nil { 4378 return "" 4379 } 4380 return *p.Email 4381} 4382 4383// GetName returns the Name field if it's non-nil, zero value otherwise. 4384func (p *PushEventRepoOwner) GetName() string { 4385 if p == nil || p.Name == nil { 4386 return "" 4387 } 4388 return *p.Name 4389} 4390 4391// GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 4392func (p *PushEventRepository) GetArchiveURL() string { 4393 if p == nil || p.ArchiveURL == nil { 4394 return "" 4395 } 4396 return *p.ArchiveURL 4397} 4398 4399// GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 4400func (p *PushEventRepository) GetCloneURL() string { 4401 if p == nil || p.CloneURL == nil { 4402 return "" 4403 } 4404 return *p.CloneURL 4405} 4406 4407// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4408func (p *PushEventRepository) GetCreatedAt() Timestamp { 4409 if p == nil || p.CreatedAt == nil { 4410 return Timestamp{} 4411 } 4412 return *p.CreatedAt 4413} 4414 4415// GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 4416func (p *PushEventRepository) GetDefaultBranch() string { 4417 if p == nil || p.DefaultBranch == nil { 4418 return "" 4419 } 4420 return *p.DefaultBranch 4421} 4422 4423// GetDescription returns the Description field if it's non-nil, zero value otherwise. 4424func (p *PushEventRepository) GetDescription() string { 4425 if p == nil || p.Description == nil { 4426 return "" 4427 } 4428 return *p.Description 4429} 4430 4431// GetFork returns the Fork field if it's non-nil, zero value otherwise. 4432func (p *PushEventRepository) GetFork() bool { 4433 if p == nil || p.Fork == nil { 4434 return false 4435 } 4436 return *p.Fork 4437} 4438 4439// GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 4440func (p *PushEventRepository) GetForksCount() int { 4441 if p == nil || p.ForksCount == nil { 4442 return 0 4443 } 4444 return *p.ForksCount 4445} 4446 4447// GetFullName returns the FullName field if it's non-nil, zero value otherwise. 4448func (p *PushEventRepository) GetFullName() string { 4449 if p == nil || p.FullName == nil { 4450 return "" 4451 } 4452 return *p.FullName 4453} 4454 4455// GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 4456func (p *PushEventRepository) GetGitURL() string { 4457 if p == nil || p.GitURL == nil { 4458 return "" 4459 } 4460 return *p.GitURL 4461} 4462 4463// GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 4464func (p *PushEventRepository) GetHasDownloads() bool { 4465 if p == nil || p.HasDownloads == nil { 4466 return false 4467 } 4468 return *p.HasDownloads 4469} 4470 4471// GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 4472func (p *PushEventRepository) GetHasIssues() bool { 4473 if p == nil || p.HasIssues == nil { 4474 return false 4475 } 4476 return *p.HasIssues 4477} 4478 4479// GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 4480func (p *PushEventRepository) GetHasPages() bool { 4481 if p == nil || p.HasPages == nil { 4482 return false 4483 } 4484 return *p.HasPages 4485} 4486 4487// GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 4488func (p *PushEventRepository) GetHasWiki() bool { 4489 if p == nil || p.HasWiki == nil { 4490 return false 4491 } 4492 return *p.HasWiki 4493} 4494 4495// GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 4496func (p *PushEventRepository) GetHomepage() string { 4497 if p == nil || p.Homepage == nil { 4498 return "" 4499 } 4500 return *p.Homepage 4501} 4502 4503// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4504func (p *PushEventRepository) GetHTMLURL() string { 4505 if p == nil || p.HTMLURL == nil { 4506 return "" 4507 } 4508 return *p.HTMLURL 4509} 4510 4511// GetID returns the ID field if it's non-nil, zero value otherwise. 4512func (p *PushEventRepository) GetID() int { 4513 if p == nil || p.ID == nil { 4514 return 0 4515 } 4516 return *p.ID 4517} 4518 4519// GetLanguage returns the Language field if it's non-nil, zero value otherwise. 4520func (p *PushEventRepository) GetLanguage() string { 4521 if p == nil || p.Language == nil { 4522 return "" 4523 } 4524 return *p.Language 4525} 4526 4527// GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 4528func (p *PushEventRepository) GetMasterBranch() string { 4529 if p == nil || p.MasterBranch == nil { 4530 return "" 4531 } 4532 return *p.MasterBranch 4533} 4534 4535// GetName returns the Name field if it's non-nil, zero value otherwise. 4536func (p *PushEventRepository) GetName() string { 4537 if p == nil || p.Name == nil { 4538 return "" 4539 } 4540 return *p.Name 4541} 4542 4543// GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 4544func (p *PushEventRepository) GetOpenIssuesCount() int { 4545 if p == nil || p.OpenIssuesCount == nil { 4546 return 0 4547 } 4548 return *p.OpenIssuesCount 4549} 4550 4551// GetOrganization returns the Organization field if it's non-nil, zero value otherwise. 4552func (p *PushEventRepository) GetOrganization() string { 4553 if p == nil || p.Organization == nil { 4554 return "" 4555 } 4556 return *p.Organization 4557} 4558 4559// GetPrivate returns the Private field if it's non-nil, zero value otherwise. 4560func (p *PushEventRepository) GetPrivate() bool { 4561 if p == nil || p.Private == nil { 4562 return false 4563 } 4564 return *p.Private 4565} 4566 4567// GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 4568func (p *PushEventRepository) GetPushedAt() Timestamp { 4569 if p == nil || p.PushedAt == nil { 4570 return Timestamp{} 4571 } 4572 return *p.PushedAt 4573} 4574 4575// GetSize returns the Size field if it's non-nil, zero value otherwise. 4576func (p *PushEventRepository) GetSize() int { 4577 if p == nil || p.Size == nil { 4578 return 0 4579 } 4580 return *p.Size 4581} 4582 4583// GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 4584func (p *PushEventRepository) GetSSHURL() string { 4585 if p == nil || p.SSHURL == nil { 4586 return "" 4587 } 4588 return *p.SSHURL 4589} 4590 4591// GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 4592func (p *PushEventRepository) GetStargazersCount() int { 4593 if p == nil || p.StargazersCount == nil { 4594 return 0 4595 } 4596 return *p.StargazersCount 4597} 4598 4599// GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 4600func (p *PushEventRepository) GetStatusesURL() string { 4601 if p == nil || p.StatusesURL == nil { 4602 return "" 4603 } 4604 return *p.StatusesURL 4605} 4606 4607// GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 4608func (p *PushEventRepository) GetSVNURL() string { 4609 if p == nil || p.SVNURL == nil { 4610 return "" 4611 } 4612 return *p.SVNURL 4613} 4614 4615// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4616func (p *PushEventRepository) GetUpdatedAt() Timestamp { 4617 if p == nil || p.UpdatedAt == nil { 4618 return Timestamp{} 4619 } 4620 return *p.UpdatedAt 4621} 4622 4623// GetURL returns the URL field if it's non-nil, zero value otherwise. 4624func (p *PushEventRepository) GetURL() string { 4625 if p == nil || p.URL == nil { 4626 return "" 4627 } 4628 return *p.URL 4629} 4630 4631// GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 4632func (p *PushEventRepository) GetWatchersCount() int { 4633 if p == nil || p.WatchersCount == nil { 4634 return 0 4635 } 4636 return *p.WatchersCount 4637} 4638 4639// GetContent returns the Content field if it's non-nil, zero value otherwise. 4640func (r *Reaction) GetContent() string { 4641 if r == nil || r.Content == nil { 4642 return "" 4643 } 4644 return *r.Content 4645} 4646 4647// GetID returns the ID field if it's non-nil, zero value otherwise. 4648func (r *Reaction) GetID() int { 4649 if r == nil || r.ID == nil { 4650 return 0 4651 } 4652 return *r.ID 4653} 4654 4655// GetConfused returns the Confused field if it's non-nil, zero value otherwise. 4656func (r *Reactions) GetConfused() int { 4657 if r == nil || r.Confused == nil { 4658 return 0 4659 } 4660 return *r.Confused 4661} 4662 4663// GetHeart returns the Heart field if it's non-nil, zero value otherwise. 4664func (r *Reactions) GetHeart() int { 4665 if r == nil || r.Heart == nil { 4666 return 0 4667 } 4668 return *r.Heart 4669} 4670 4671// GetHooray returns the Hooray field if it's non-nil, zero value otherwise. 4672func (r *Reactions) GetHooray() int { 4673 if r == nil || r.Hooray == nil { 4674 return 0 4675 } 4676 return *r.Hooray 4677} 4678 4679// GetLaugh returns the Laugh field if it's non-nil, zero value otherwise. 4680func (r *Reactions) GetLaugh() int { 4681 if r == nil || r.Laugh == nil { 4682 return 0 4683 } 4684 return *r.Laugh 4685} 4686 4687// GetMinusOne returns the MinusOne field if it's non-nil, zero value otherwise. 4688func (r *Reactions) GetMinusOne() int { 4689 if r == nil || r.MinusOne == nil { 4690 return 0 4691 } 4692 return *r.MinusOne 4693} 4694 4695// GetPlusOne returns the PlusOne field if it's non-nil, zero value otherwise. 4696func (r *Reactions) GetPlusOne() int { 4697 if r == nil || r.PlusOne == nil { 4698 return 0 4699 } 4700 return *r.PlusOne 4701} 4702 4703// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 4704func (r *Reactions) GetTotalCount() int { 4705 if r == nil || r.TotalCount == nil { 4706 return 0 4707 } 4708 return *r.TotalCount 4709} 4710 4711// GetURL returns the URL field if it's non-nil, zero value otherwise. 4712func (r *Reactions) GetURL() string { 4713 if r == nil || r.URL == nil { 4714 return "" 4715 } 4716 return *r.URL 4717} 4718 4719// GetRef returns the Ref field if it's non-nil, zero value otherwise. 4720func (r *Reference) GetRef() string { 4721 if r == nil || r.Ref == nil { 4722 return "" 4723 } 4724 return *r.Ref 4725} 4726 4727// GetURL returns the URL field if it's non-nil, zero value otherwise. 4728func (r *Reference) GetURL() string { 4729 if r == nil || r.URL == nil { 4730 return "" 4731 } 4732 return *r.URL 4733} 4734 4735// GetBrowserDownloadURL returns the BrowserDownloadURL field if it's non-nil, zero value otherwise. 4736func (r *ReleaseAsset) GetBrowserDownloadURL() string { 4737 if r == nil || r.BrowserDownloadURL == nil { 4738 return "" 4739 } 4740 return *r.BrowserDownloadURL 4741} 4742 4743// GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 4744func (r *ReleaseAsset) GetContentType() string { 4745 if r == nil || r.ContentType == nil { 4746 return "" 4747 } 4748 return *r.ContentType 4749} 4750 4751// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4752func (r *ReleaseAsset) GetCreatedAt() Timestamp { 4753 if r == nil || r.CreatedAt == nil { 4754 return Timestamp{} 4755 } 4756 return *r.CreatedAt 4757} 4758 4759// GetDownloadCount returns the DownloadCount field if it's non-nil, zero value otherwise. 4760func (r *ReleaseAsset) GetDownloadCount() int { 4761 if r == nil || r.DownloadCount == nil { 4762 return 0 4763 } 4764 return *r.DownloadCount 4765} 4766 4767// GetID returns the ID field if it's non-nil, zero value otherwise. 4768func (r *ReleaseAsset) GetID() int { 4769 if r == nil || r.ID == nil { 4770 return 0 4771 } 4772 return *r.ID 4773} 4774 4775// GetLabel returns the Label field if it's non-nil, zero value otherwise. 4776func (r *ReleaseAsset) GetLabel() string { 4777 if r == nil || r.Label == nil { 4778 return "" 4779 } 4780 return *r.Label 4781} 4782 4783// GetName returns the Name field if it's non-nil, zero value otherwise. 4784func (r *ReleaseAsset) GetName() string { 4785 if r == nil || r.Name == nil { 4786 return "" 4787 } 4788 return *r.Name 4789} 4790 4791// GetSize returns the Size field if it's non-nil, zero value otherwise. 4792func (r *ReleaseAsset) GetSize() int { 4793 if r == nil || r.Size == nil { 4794 return 0 4795 } 4796 return *r.Size 4797} 4798 4799// GetState returns the State field if it's non-nil, zero value otherwise. 4800func (r *ReleaseAsset) GetState() string { 4801 if r == nil || r.State == nil { 4802 return "" 4803 } 4804 return *r.State 4805} 4806 4807// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4808func (r *ReleaseAsset) GetUpdatedAt() Timestamp { 4809 if r == nil || r.UpdatedAt == nil { 4810 return Timestamp{} 4811 } 4812 return *r.UpdatedAt 4813} 4814 4815// GetURL returns the URL field if it's non-nil, zero value otherwise. 4816func (r *ReleaseAsset) GetURL() string { 4817 if r == nil || r.URL == nil { 4818 return "" 4819 } 4820 return *r.URL 4821} 4822 4823// GetAction returns the Action field if it's non-nil, zero value otherwise. 4824func (r *ReleaseEvent) GetAction() string { 4825 if r == nil || r.Action == nil { 4826 return "" 4827 } 4828 return *r.Action 4829} 4830 4831// GetFrom returns the From field if it's non-nil, zero value otherwise. 4832func (r *Rename) GetFrom() string { 4833 if r == nil || r.From == nil { 4834 return "" 4835 } 4836 return *r.From 4837} 4838 4839// GetTo returns the To field if it's non-nil, zero value otherwise. 4840func (r *Rename) GetTo() string { 4841 if r == nil || r.To == nil { 4842 return "" 4843 } 4844 return *r.To 4845} 4846 4847// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 4848func (r *RepositoriesSearchResult) GetIncompleteResults() bool { 4849 if r == nil || r.IncompleteResults == nil { 4850 return false 4851 } 4852 return *r.IncompleteResults 4853} 4854 4855// GetTotal returns the Total field if it's non-nil, zero value otherwise. 4856func (r *RepositoriesSearchResult) GetTotal() int { 4857 if r == nil || r.Total == nil { 4858 return 0 4859 } 4860 return *r.Total 4861} 4862 4863// GetAllowMergeCommit returns the AllowMergeCommit field if it's non-nil, zero value otherwise. 4864func (r *Repository) GetAllowMergeCommit() bool { 4865 if r == nil || r.AllowMergeCommit == nil { 4866 return false 4867 } 4868 return *r.AllowMergeCommit 4869} 4870 4871// GetAllowRebaseMerge returns the AllowRebaseMerge field if it's non-nil, zero value otherwise. 4872func (r *Repository) GetAllowRebaseMerge() bool { 4873 if r == nil || r.AllowRebaseMerge == nil { 4874 return false 4875 } 4876 return *r.AllowRebaseMerge 4877} 4878 4879// GetAllowSquashMerge returns the AllowSquashMerge field if it's non-nil, zero value otherwise. 4880func (r *Repository) GetAllowSquashMerge() bool { 4881 if r == nil || r.AllowSquashMerge == nil { 4882 return false 4883 } 4884 return *r.AllowSquashMerge 4885} 4886 4887// GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 4888func (r *Repository) GetArchiveURL() string { 4889 if r == nil || r.ArchiveURL == nil { 4890 return "" 4891 } 4892 return *r.ArchiveURL 4893} 4894 4895// GetAssigneesURL returns the AssigneesURL field if it's non-nil, zero value otherwise. 4896func (r *Repository) GetAssigneesURL() string { 4897 if r == nil || r.AssigneesURL == nil { 4898 return "" 4899 } 4900 return *r.AssigneesURL 4901} 4902 4903// GetAutoInit returns the AutoInit field if it's non-nil, zero value otherwise. 4904func (r *Repository) GetAutoInit() bool { 4905 if r == nil || r.AutoInit == nil { 4906 return false 4907 } 4908 return *r.AutoInit 4909} 4910 4911// GetBlobsURL returns the BlobsURL field if it's non-nil, zero value otherwise. 4912func (r *Repository) GetBlobsURL() string { 4913 if r == nil || r.BlobsURL == nil { 4914 return "" 4915 } 4916 return *r.BlobsURL 4917} 4918 4919// GetBranchesURL returns the BranchesURL field if it's non-nil, zero value otherwise. 4920func (r *Repository) GetBranchesURL() string { 4921 if r == nil || r.BranchesURL == nil { 4922 return "" 4923 } 4924 return *r.BranchesURL 4925} 4926 4927// GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 4928func (r *Repository) GetCloneURL() string { 4929 if r == nil || r.CloneURL == nil { 4930 return "" 4931 } 4932 return *r.CloneURL 4933} 4934 4935// GetCollaboratorsURL returns the CollaboratorsURL field if it's non-nil, zero value otherwise. 4936func (r *Repository) GetCollaboratorsURL() string { 4937 if r == nil || r.CollaboratorsURL == nil { 4938 return "" 4939 } 4940 return *r.CollaboratorsURL 4941} 4942 4943// GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 4944func (r *Repository) GetCommentsURL() string { 4945 if r == nil || r.CommentsURL == nil { 4946 return "" 4947 } 4948 return *r.CommentsURL 4949} 4950 4951// GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. 4952func (r *Repository) GetCommitsURL() string { 4953 if r == nil || r.CommitsURL == nil { 4954 return "" 4955 } 4956 return *r.CommitsURL 4957} 4958 4959// GetCompareURL returns the CompareURL field if it's non-nil, zero value otherwise. 4960func (r *Repository) GetCompareURL() string { 4961 if r == nil || r.CompareURL == nil { 4962 return "" 4963 } 4964 return *r.CompareURL 4965} 4966 4967// GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 4968func (r *Repository) GetContentsURL() string { 4969 if r == nil || r.ContentsURL == nil { 4970 return "" 4971 } 4972 return *r.ContentsURL 4973} 4974 4975// GetContributorsURL returns the ContributorsURL field if it's non-nil, zero value otherwise. 4976func (r *Repository) GetContributorsURL() string { 4977 if r == nil || r.ContributorsURL == nil { 4978 return "" 4979 } 4980 return *r.ContributorsURL 4981} 4982 4983// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4984func (r *Repository) GetCreatedAt() Timestamp { 4985 if r == nil || r.CreatedAt == nil { 4986 return Timestamp{} 4987 } 4988 return *r.CreatedAt 4989} 4990 4991// GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 4992func (r *Repository) GetDefaultBranch() string { 4993 if r == nil || r.DefaultBranch == nil { 4994 return "" 4995 } 4996 return *r.DefaultBranch 4997} 4998 4999// GetDeploymentsURL returns the DeploymentsURL field if it's non-nil, zero value otherwise. 5000func (r *Repository) GetDeploymentsURL() string { 5001 if r == nil || r.DeploymentsURL == nil { 5002 return "" 5003 } 5004 return *r.DeploymentsURL 5005} 5006 5007// GetDescription returns the Description field if it's non-nil, zero value otherwise. 5008func (r *Repository) GetDescription() string { 5009 if r == nil || r.Description == nil { 5010 return "" 5011 } 5012 return *r.Description 5013} 5014 5015// GetDownloadsURL returns the DownloadsURL field if it's non-nil, zero value otherwise. 5016func (r *Repository) GetDownloadsURL() string { 5017 if r == nil || r.DownloadsURL == nil { 5018 return "" 5019 } 5020 return *r.DownloadsURL 5021} 5022 5023// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 5024func (r *Repository) GetEventsURL() string { 5025 if r == nil || r.EventsURL == nil { 5026 return "" 5027 } 5028 return *r.EventsURL 5029} 5030 5031// GetFork returns the Fork field if it's non-nil, zero value otherwise. 5032func (r *Repository) GetFork() bool { 5033 if r == nil || r.Fork == nil { 5034 return false 5035 } 5036 return *r.Fork 5037} 5038 5039// GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 5040func (r *Repository) GetForksCount() int { 5041 if r == nil || r.ForksCount == nil { 5042 return 0 5043 } 5044 return *r.ForksCount 5045} 5046 5047// GetForksURL returns the ForksURL field if it's non-nil, zero value otherwise. 5048func (r *Repository) GetForksURL() string { 5049 if r == nil || r.ForksURL == nil { 5050 return "" 5051 } 5052 return *r.ForksURL 5053} 5054 5055// GetFullName returns the FullName field if it's non-nil, zero value otherwise. 5056func (r *Repository) GetFullName() string { 5057 if r == nil || r.FullName == nil { 5058 return "" 5059 } 5060 return *r.FullName 5061} 5062 5063// GetGitCommitsURL returns the GitCommitsURL field if it's non-nil, zero value otherwise. 5064func (r *Repository) GetGitCommitsURL() string { 5065 if r == nil || r.GitCommitsURL == nil { 5066 return "" 5067 } 5068 return *r.GitCommitsURL 5069} 5070 5071// GetGitignoreTemplate returns the GitignoreTemplate field if it's non-nil, zero value otherwise. 5072func (r *Repository) GetGitignoreTemplate() string { 5073 if r == nil || r.GitignoreTemplate == nil { 5074 return "" 5075 } 5076 return *r.GitignoreTemplate 5077} 5078 5079// GetGitRefsURL returns the GitRefsURL field if it's non-nil, zero value otherwise. 5080func (r *Repository) GetGitRefsURL() string { 5081 if r == nil || r.GitRefsURL == nil { 5082 return "" 5083 } 5084 return *r.GitRefsURL 5085} 5086 5087// GetGitTagsURL returns the GitTagsURL field if it's non-nil, zero value otherwise. 5088func (r *Repository) GetGitTagsURL() string { 5089 if r == nil || r.GitTagsURL == nil { 5090 return "" 5091 } 5092 return *r.GitTagsURL 5093} 5094 5095// GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 5096func (r *Repository) GetGitURL() string { 5097 if r == nil || r.GitURL == nil { 5098 return "" 5099 } 5100 return *r.GitURL 5101} 5102 5103// GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 5104func (r *Repository) GetHasDownloads() bool { 5105 if r == nil || r.HasDownloads == nil { 5106 return false 5107 } 5108 return *r.HasDownloads 5109} 5110 5111// GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 5112func (r *Repository) GetHasIssues() bool { 5113 if r == nil || r.HasIssues == nil { 5114 return false 5115 } 5116 return *r.HasIssues 5117} 5118 5119// GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 5120func (r *Repository) GetHasPages() bool { 5121 if r == nil || r.HasPages == nil { 5122 return false 5123 } 5124 return *r.HasPages 5125} 5126 5127// GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 5128func (r *Repository) GetHasWiki() bool { 5129 if r == nil || r.HasWiki == nil { 5130 return false 5131 } 5132 return *r.HasWiki 5133} 5134 5135// GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 5136func (r *Repository) GetHomepage() string { 5137 if r == nil || r.Homepage == nil { 5138 return "" 5139 } 5140 return *r.Homepage 5141} 5142 5143// GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 5144func (r *Repository) GetHooksURL() string { 5145 if r == nil || r.HooksURL == nil { 5146 return "" 5147 } 5148 return *r.HooksURL 5149} 5150 5151// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5152func (r *Repository) GetHTMLURL() string { 5153 if r == nil || r.HTMLURL == nil { 5154 return "" 5155 } 5156 return *r.HTMLURL 5157} 5158 5159// GetID returns the ID field if it's non-nil, zero value otherwise. 5160func (r *Repository) GetID() int { 5161 if r == nil || r.ID == nil { 5162 return 0 5163 } 5164 return *r.ID 5165} 5166 5167// GetIssueCommentURL returns the IssueCommentURL field if it's non-nil, zero value otherwise. 5168func (r *Repository) GetIssueCommentURL() string { 5169 if r == nil || r.IssueCommentURL == nil { 5170 return "" 5171 } 5172 return *r.IssueCommentURL 5173} 5174 5175// GetIssueEventsURL returns the IssueEventsURL field if it's non-nil, zero value otherwise. 5176func (r *Repository) GetIssueEventsURL() string { 5177 if r == nil || r.IssueEventsURL == nil { 5178 return "" 5179 } 5180 return *r.IssueEventsURL 5181} 5182 5183// GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 5184func (r *Repository) GetIssuesURL() string { 5185 if r == nil || r.IssuesURL == nil { 5186 return "" 5187 } 5188 return *r.IssuesURL 5189} 5190 5191// GetKeysURL returns the KeysURL field if it's non-nil, zero value otherwise. 5192func (r *Repository) GetKeysURL() string { 5193 if r == nil || r.KeysURL == nil { 5194 return "" 5195 } 5196 return *r.KeysURL 5197} 5198 5199// GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 5200func (r *Repository) GetLabelsURL() string { 5201 if r == nil || r.LabelsURL == nil { 5202 return "" 5203 } 5204 return *r.LabelsURL 5205} 5206 5207// GetLanguage returns the Language field if it's non-nil, zero value otherwise. 5208func (r *Repository) GetLanguage() string { 5209 if r == nil || r.Language == nil { 5210 return "" 5211 } 5212 return *r.Language 5213} 5214 5215// GetLanguagesURL returns the LanguagesURL field if it's non-nil, zero value otherwise. 5216func (r *Repository) GetLanguagesURL() string { 5217 if r == nil || r.LanguagesURL == nil { 5218 return "" 5219 } 5220 return *r.LanguagesURL 5221} 5222 5223// GetLicenseTemplate returns the LicenseTemplate field if it's non-nil, zero value otherwise. 5224func (r *Repository) GetLicenseTemplate() string { 5225 if r == nil || r.LicenseTemplate == nil { 5226 return "" 5227 } 5228 return *r.LicenseTemplate 5229} 5230 5231// GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 5232func (r *Repository) GetMasterBranch() string { 5233 if r == nil || r.MasterBranch == nil { 5234 return "" 5235 } 5236 return *r.MasterBranch 5237} 5238 5239// GetMergesURL returns the MergesURL field if it's non-nil, zero value otherwise. 5240func (r *Repository) GetMergesURL() string { 5241 if r == nil || r.MergesURL == nil { 5242 return "" 5243 } 5244 return *r.MergesURL 5245} 5246 5247// GetMilestonesURL returns the MilestonesURL field if it's non-nil, zero value otherwise. 5248func (r *Repository) GetMilestonesURL() string { 5249 if r == nil || r.MilestonesURL == nil { 5250 return "" 5251 } 5252 return *r.MilestonesURL 5253} 5254 5255// GetMirrorURL returns the MirrorURL field if it's non-nil, zero value otherwise. 5256func (r *Repository) GetMirrorURL() string { 5257 if r == nil || r.MirrorURL == nil { 5258 return "" 5259 } 5260 return *r.MirrorURL 5261} 5262 5263// GetName returns the Name field if it's non-nil, zero value otherwise. 5264func (r *Repository) GetName() string { 5265 if r == nil || r.Name == nil { 5266 return "" 5267 } 5268 return *r.Name 5269} 5270 5271// GetNetworkCount returns the NetworkCount field if it's non-nil, zero value otherwise. 5272func (r *Repository) GetNetworkCount() int { 5273 if r == nil || r.NetworkCount == nil { 5274 return 0 5275 } 5276 return *r.NetworkCount 5277} 5278 5279// GetNotificationsURL returns the NotificationsURL field if it's non-nil, zero value otherwise. 5280func (r *Repository) GetNotificationsURL() string { 5281 if r == nil || r.NotificationsURL == nil { 5282 return "" 5283 } 5284 return *r.NotificationsURL 5285} 5286 5287// GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 5288func (r *Repository) GetOpenIssuesCount() int { 5289 if r == nil || r.OpenIssuesCount == nil { 5290 return 0 5291 } 5292 return *r.OpenIssuesCount 5293} 5294 5295// GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 5296func (r *Repository) GetPermissions() map[string]bool { 5297 if r == nil || r.Permissions == nil { 5298 return map[string]bool{} 5299 } 5300 return *r.Permissions 5301} 5302 5303// GetPrivate returns the Private field if it's non-nil, zero value otherwise. 5304func (r *Repository) GetPrivate() bool { 5305 if r == nil || r.Private == nil { 5306 return false 5307 } 5308 return *r.Private 5309} 5310 5311// GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 5312func (r *Repository) GetPullsURL() string { 5313 if r == nil || r.PullsURL == nil { 5314 return "" 5315 } 5316 return *r.PullsURL 5317} 5318 5319// GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 5320func (r *Repository) GetPushedAt() Timestamp { 5321 if r == nil || r.PushedAt == nil { 5322 return Timestamp{} 5323 } 5324 return *r.PushedAt 5325} 5326 5327// GetReleasesURL returns the ReleasesURL field if it's non-nil, zero value otherwise. 5328func (r *Repository) GetReleasesURL() string { 5329 if r == nil || r.ReleasesURL == nil { 5330 return "" 5331 } 5332 return *r.ReleasesURL 5333} 5334 5335// GetSize returns the Size field if it's non-nil, zero value otherwise. 5336func (r *Repository) GetSize() int { 5337 if r == nil || r.Size == nil { 5338 return 0 5339 } 5340 return *r.Size 5341} 5342 5343// GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 5344func (r *Repository) GetSSHURL() string { 5345 if r == nil || r.SSHURL == nil { 5346 return "" 5347 } 5348 return *r.SSHURL 5349} 5350 5351// GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 5352func (r *Repository) GetStargazersCount() int { 5353 if r == nil || r.StargazersCount == nil { 5354 return 0 5355 } 5356 return *r.StargazersCount 5357} 5358 5359// GetStargazersURL returns the StargazersURL field if it's non-nil, zero value otherwise. 5360func (r *Repository) GetStargazersURL() string { 5361 if r == nil || r.StargazersURL == nil { 5362 return "" 5363 } 5364 return *r.StargazersURL 5365} 5366 5367// GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 5368func (r *Repository) GetStatusesURL() string { 5369 if r == nil || r.StatusesURL == nil { 5370 return "" 5371 } 5372 return *r.StatusesURL 5373} 5374 5375// GetSubscribersCount returns the SubscribersCount field if it's non-nil, zero value otherwise. 5376func (r *Repository) GetSubscribersCount() int { 5377 if r == nil || r.SubscribersCount == nil { 5378 return 0 5379 } 5380 return *r.SubscribersCount 5381} 5382 5383// GetSubscribersURL returns the SubscribersURL field if it's non-nil, zero value otherwise. 5384func (r *Repository) GetSubscribersURL() string { 5385 if r == nil || r.SubscribersURL == nil { 5386 return "" 5387 } 5388 return *r.SubscribersURL 5389} 5390 5391// GetSubscriptionURL returns the SubscriptionURL field if it's non-nil, zero value otherwise. 5392func (r *Repository) GetSubscriptionURL() string { 5393 if r == nil || r.SubscriptionURL == nil { 5394 return "" 5395 } 5396 return *r.SubscriptionURL 5397} 5398 5399// GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 5400func (r *Repository) GetSVNURL() string { 5401 if r == nil || r.SVNURL == nil { 5402 return "" 5403 } 5404 return *r.SVNURL 5405} 5406 5407// GetTagsURL returns the TagsURL field if it's non-nil, zero value otherwise. 5408func (r *Repository) GetTagsURL() string { 5409 if r == nil || r.TagsURL == nil { 5410 return "" 5411 } 5412 return *r.TagsURL 5413} 5414 5415// GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. 5416func (r *Repository) GetTeamID() int { 5417 if r == nil || r.TeamID == nil { 5418 return 0 5419 } 5420 return *r.TeamID 5421} 5422 5423// GetTeamsURL returns the TeamsURL field if it's non-nil, zero value otherwise. 5424func (r *Repository) GetTeamsURL() string { 5425 if r == nil || r.TeamsURL == nil { 5426 return "" 5427 } 5428 return *r.TeamsURL 5429} 5430 5431// GetTreesURL returns the TreesURL field if it's non-nil, zero value otherwise. 5432func (r *Repository) GetTreesURL() string { 5433 if r == nil || r.TreesURL == nil { 5434 return "" 5435 } 5436 return *r.TreesURL 5437} 5438 5439// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5440func (r *Repository) GetUpdatedAt() Timestamp { 5441 if r == nil || r.UpdatedAt == nil { 5442 return Timestamp{} 5443 } 5444 return *r.UpdatedAt 5445} 5446 5447// GetURL returns the URL field if it's non-nil, zero value otherwise. 5448func (r *Repository) GetURL() string { 5449 if r == nil || r.URL == nil { 5450 return "" 5451 } 5452 return *r.URL 5453} 5454 5455// GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 5456func (r *Repository) GetWatchersCount() int { 5457 if r == nil || r.WatchersCount == nil { 5458 return 0 5459 } 5460 return *r.WatchersCount 5461} 5462 5463// GetBody returns the Body field if it's non-nil, zero value otherwise. 5464func (r *RepositoryComment) GetBody() string { 5465 if r == nil || r.Body == nil { 5466 return "" 5467 } 5468 return *r.Body 5469} 5470 5471// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 5472func (r *RepositoryComment) GetCommitID() string { 5473 if r == nil || r.CommitID == nil { 5474 return "" 5475 } 5476 return *r.CommitID 5477} 5478 5479// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5480func (r *RepositoryComment) GetCreatedAt() time.Time { 5481 if r == nil || r.CreatedAt == nil { 5482 return time.Time{} 5483 } 5484 return *r.CreatedAt 5485} 5486 5487// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5488func (r *RepositoryComment) GetHTMLURL() string { 5489 if r == nil || r.HTMLURL == nil { 5490 return "" 5491 } 5492 return *r.HTMLURL 5493} 5494 5495// GetID returns the ID field if it's non-nil, zero value otherwise. 5496func (r *RepositoryComment) GetID() int { 5497 if r == nil || r.ID == nil { 5498 return 0 5499 } 5500 return *r.ID 5501} 5502 5503// GetPath returns the Path field if it's non-nil, zero value otherwise. 5504func (r *RepositoryComment) GetPath() string { 5505 if r == nil || r.Path == nil { 5506 return "" 5507 } 5508 return *r.Path 5509} 5510 5511// GetPosition returns the Position field if it's non-nil, zero value otherwise. 5512func (r *RepositoryComment) GetPosition() int { 5513 if r == nil || r.Position == nil { 5514 return 0 5515 } 5516 return *r.Position 5517} 5518 5519// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5520func (r *RepositoryComment) GetUpdatedAt() time.Time { 5521 if r == nil || r.UpdatedAt == nil { 5522 return time.Time{} 5523 } 5524 return *r.UpdatedAt 5525} 5526 5527// GetURL returns the URL field if it's non-nil, zero value otherwise. 5528func (r *RepositoryComment) GetURL() string { 5529 if r == nil || r.URL == nil { 5530 return "" 5531 } 5532 return *r.URL 5533} 5534 5535// GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 5536func (r *RepositoryCommit) GetCommentsURL() string { 5537 if r == nil || r.CommentsURL == nil { 5538 return "" 5539 } 5540 return *r.CommentsURL 5541} 5542 5543// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5544func (r *RepositoryCommit) GetHTMLURL() string { 5545 if r == nil || r.HTMLURL == nil { 5546 return "" 5547 } 5548 return *r.HTMLURL 5549} 5550 5551// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 5552func (r *RepositoryCommit) GetSHA() string { 5553 if r == nil || r.SHA == nil { 5554 return "" 5555 } 5556 return *r.SHA 5557} 5558 5559// GetURL returns the URL field if it's non-nil, zero value otherwise. 5560func (r *RepositoryCommit) GetURL() string { 5561 if r == nil || r.URL == nil { 5562 return "" 5563 } 5564 return *r.URL 5565} 5566 5567// GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 5568func (r *RepositoryContent) GetDownloadURL() string { 5569 if r == nil || r.DownloadURL == nil { 5570 return "" 5571 } 5572 return *r.DownloadURL 5573} 5574 5575// GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 5576func (r *RepositoryContent) GetEncoding() string { 5577 if r == nil || r.Encoding == nil { 5578 return "" 5579 } 5580 return *r.Encoding 5581} 5582 5583// GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 5584func (r *RepositoryContent) GetGitURL() string { 5585 if r == nil || r.GitURL == nil { 5586 return "" 5587 } 5588 return *r.GitURL 5589} 5590 5591// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5592func (r *RepositoryContent) GetHTMLURL() string { 5593 if r == nil || r.HTMLURL == nil { 5594 return "" 5595 } 5596 return *r.HTMLURL 5597} 5598 5599// GetName returns the Name field if it's non-nil, zero value otherwise. 5600func (r *RepositoryContent) GetName() string { 5601 if r == nil || r.Name == nil { 5602 return "" 5603 } 5604 return *r.Name 5605} 5606 5607// GetPath returns the Path field if it's non-nil, zero value otherwise. 5608func (r *RepositoryContent) GetPath() string { 5609 if r == nil || r.Path == nil { 5610 return "" 5611 } 5612 return *r.Path 5613} 5614 5615// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 5616func (r *RepositoryContent) GetSHA() string { 5617 if r == nil || r.SHA == nil { 5618 return "" 5619 } 5620 return *r.SHA 5621} 5622 5623// GetSize returns the Size field if it's non-nil, zero value otherwise. 5624func (r *RepositoryContent) GetSize() int { 5625 if r == nil || r.Size == nil { 5626 return 0 5627 } 5628 return *r.Size 5629} 5630 5631// GetType returns the Type field if it's non-nil, zero value otherwise. 5632func (r *RepositoryContent) GetType() string { 5633 if r == nil || r.Type == nil { 5634 return "" 5635 } 5636 return *r.Type 5637} 5638 5639// GetURL returns the URL field if it's non-nil, zero value otherwise. 5640func (r *RepositoryContent) GetURL() string { 5641 if r == nil || r.URL == nil { 5642 return "" 5643 } 5644 return *r.URL 5645} 5646 5647// GetBranch returns the Branch field if it's non-nil, zero value otherwise. 5648func (r *RepositoryContentFileOptions) GetBranch() string { 5649 if r == nil || r.Branch == nil { 5650 return "" 5651 } 5652 return *r.Branch 5653} 5654 5655// GetMessage returns the Message field if it's non-nil, zero value otherwise. 5656func (r *RepositoryContentFileOptions) GetMessage() string { 5657 if r == nil || r.Message == nil { 5658 return "" 5659 } 5660 return *r.Message 5661} 5662 5663// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 5664func (r *RepositoryContentFileOptions) GetSHA() string { 5665 if r == nil || r.SHA == nil { 5666 return "" 5667 } 5668 return *r.SHA 5669} 5670 5671// GetAction returns the Action field if it's non-nil, zero value otherwise. 5672func (r *RepositoryEvent) GetAction() string { 5673 if r == nil || r.Action == nil { 5674 return "" 5675 } 5676 return *r.Action 5677} 5678 5679// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5680func (r *RepositoryInvitation) GetCreatedAt() Timestamp { 5681 if r == nil || r.CreatedAt == nil { 5682 return Timestamp{} 5683 } 5684 return *r.CreatedAt 5685} 5686 5687// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5688func (r *RepositoryInvitation) GetHTMLURL() string { 5689 if r == nil || r.HTMLURL == nil { 5690 return "" 5691 } 5692 return *r.HTMLURL 5693} 5694 5695// GetID returns the ID field if it's non-nil, zero value otherwise. 5696func (r *RepositoryInvitation) GetID() int { 5697 if r == nil || r.ID == nil { 5698 return 0 5699 } 5700 return *r.ID 5701} 5702 5703// GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 5704func (r *RepositoryInvitation) GetPermissions() string { 5705 if r == nil || r.Permissions == nil { 5706 return "" 5707 } 5708 return *r.Permissions 5709} 5710 5711// GetURL returns the URL field if it's non-nil, zero value otherwise. 5712func (r *RepositoryInvitation) GetURL() string { 5713 if r == nil || r.URL == nil { 5714 return "" 5715 } 5716 return *r.URL 5717} 5718 5719// GetContent returns the Content field if it's non-nil, zero value otherwise. 5720func (r *RepositoryLicense) GetContent() string { 5721 if r == nil || r.Content == nil { 5722 return "" 5723 } 5724 return *r.Content 5725} 5726 5727// GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 5728func (r *RepositoryLicense) GetDownloadURL() string { 5729 if r == nil || r.DownloadURL == nil { 5730 return "" 5731 } 5732 return *r.DownloadURL 5733} 5734 5735// GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 5736func (r *RepositoryLicense) GetEncoding() string { 5737 if r == nil || r.Encoding == nil { 5738 return "" 5739 } 5740 return *r.Encoding 5741} 5742 5743// GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 5744func (r *RepositoryLicense) GetGitURL() string { 5745 if r == nil || r.GitURL == nil { 5746 return "" 5747 } 5748 return *r.GitURL 5749} 5750 5751// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5752func (r *RepositoryLicense) GetHTMLURL() string { 5753 if r == nil || r.HTMLURL == nil { 5754 return "" 5755 } 5756 return *r.HTMLURL 5757} 5758 5759// GetName returns the Name field if it's non-nil, zero value otherwise. 5760func (r *RepositoryLicense) GetName() string { 5761 if r == nil || r.Name == nil { 5762 return "" 5763 } 5764 return *r.Name 5765} 5766 5767// GetPath returns the Path field if it's non-nil, zero value otherwise. 5768func (r *RepositoryLicense) GetPath() string { 5769 if r == nil || r.Path == nil { 5770 return "" 5771 } 5772 return *r.Path 5773} 5774 5775// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 5776func (r *RepositoryLicense) GetSHA() string { 5777 if r == nil || r.SHA == nil { 5778 return "" 5779 } 5780 return *r.SHA 5781} 5782 5783// GetSize returns the Size field if it's non-nil, zero value otherwise. 5784func (r *RepositoryLicense) GetSize() int { 5785 if r == nil || r.Size == nil { 5786 return 0 5787 } 5788 return *r.Size 5789} 5790 5791// GetType returns the Type field if it's non-nil, zero value otherwise. 5792func (r *RepositoryLicense) GetType() string { 5793 if r == nil || r.Type == nil { 5794 return "" 5795 } 5796 return *r.Type 5797} 5798 5799// GetURL returns the URL field if it's non-nil, zero value otherwise. 5800func (r *RepositoryLicense) GetURL() string { 5801 if r == nil || r.URL == nil { 5802 return "" 5803 } 5804 return *r.URL 5805} 5806 5807// GetBase returns the Base field if it's non-nil, zero value otherwise. 5808func (r *RepositoryMergeRequest) GetBase() string { 5809 if r == nil || r.Base == nil { 5810 return "" 5811 } 5812 return *r.Base 5813} 5814 5815// GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. 5816func (r *RepositoryMergeRequest) GetCommitMessage() string { 5817 if r == nil || r.CommitMessage == nil { 5818 return "" 5819 } 5820 return *r.CommitMessage 5821} 5822 5823// GetHead returns the Head field if it's non-nil, zero value otherwise. 5824func (r *RepositoryMergeRequest) GetHead() string { 5825 if r == nil || r.Head == nil { 5826 return "" 5827 } 5828 return *r.Head 5829} 5830 5831// GetPermission returns the Permission field if it's non-nil, zero value otherwise. 5832func (r *RepositoryPermissionLevel) GetPermission() string { 5833 if r == nil || r.Permission == nil { 5834 return "" 5835 } 5836 return *r.Permission 5837} 5838 5839// GetAssetsURL returns the AssetsURL field if it's non-nil, zero value otherwise. 5840func (r *RepositoryRelease) GetAssetsURL() string { 5841 if r == nil || r.AssetsURL == nil { 5842 return "" 5843 } 5844 return *r.AssetsURL 5845} 5846 5847// GetBody returns the Body field if it's non-nil, zero value otherwise. 5848func (r *RepositoryRelease) GetBody() string { 5849 if r == nil || r.Body == nil { 5850 return "" 5851 } 5852 return *r.Body 5853} 5854 5855// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5856func (r *RepositoryRelease) GetCreatedAt() Timestamp { 5857 if r == nil || r.CreatedAt == nil { 5858 return Timestamp{} 5859 } 5860 return *r.CreatedAt 5861} 5862 5863// GetDraft returns the Draft field if it's non-nil, zero value otherwise. 5864func (r *RepositoryRelease) GetDraft() bool { 5865 if r == nil || r.Draft == nil { 5866 return false 5867 } 5868 return *r.Draft 5869} 5870 5871// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5872func (r *RepositoryRelease) GetHTMLURL() string { 5873 if r == nil || r.HTMLURL == nil { 5874 return "" 5875 } 5876 return *r.HTMLURL 5877} 5878 5879// GetID returns the ID field if it's non-nil, zero value otherwise. 5880func (r *RepositoryRelease) GetID() int { 5881 if r == nil || r.ID == nil { 5882 return 0 5883 } 5884 return *r.ID 5885} 5886 5887// GetName returns the Name field if it's non-nil, zero value otherwise. 5888func (r *RepositoryRelease) GetName() string { 5889 if r == nil || r.Name == nil { 5890 return "" 5891 } 5892 return *r.Name 5893} 5894 5895// GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 5896func (r *RepositoryRelease) GetPrerelease() bool { 5897 if r == nil || r.Prerelease == nil { 5898 return false 5899 } 5900 return *r.Prerelease 5901} 5902 5903// GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 5904func (r *RepositoryRelease) GetPublishedAt() Timestamp { 5905 if r == nil || r.PublishedAt == nil { 5906 return Timestamp{} 5907 } 5908 return *r.PublishedAt 5909} 5910 5911// GetTagName returns the TagName field if it's non-nil, zero value otherwise. 5912func (r *RepositoryRelease) GetTagName() string { 5913 if r == nil || r.TagName == nil { 5914 return "" 5915 } 5916 return *r.TagName 5917} 5918 5919// GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 5920func (r *RepositoryRelease) GetTarballURL() string { 5921 if r == nil || r.TarballURL == nil { 5922 return "" 5923 } 5924 return *r.TarballURL 5925} 5926 5927// GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 5928func (r *RepositoryRelease) GetTargetCommitish() string { 5929 if r == nil || r.TargetCommitish == nil { 5930 return "" 5931 } 5932 return *r.TargetCommitish 5933} 5934 5935// GetUploadURL returns the UploadURL field if it's non-nil, zero value otherwise. 5936func (r *RepositoryRelease) GetUploadURL() string { 5937 if r == nil || r.UploadURL == nil { 5938 return "" 5939 } 5940 return *r.UploadURL 5941} 5942 5943// GetURL returns the URL field if it's non-nil, zero value otherwise. 5944func (r *RepositoryRelease) GetURL() string { 5945 if r == nil || r.URL == nil { 5946 return "" 5947 } 5948 return *r.URL 5949} 5950 5951// GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 5952func (r *RepositoryRelease) GetZipballURL() string { 5953 if r == nil || r.ZipballURL == nil { 5954 return "" 5955 } 5956 return *r.ZipballURL 5957} 5958 5959// GetName returns the Name field if it's non-nil, zero value otherwise. 5960func (r *RepositoryTag) GetName() string { 5961 if r == nil || r.Name == nil { 5962 return "" 5963 } 5964 return *r.Name 5965} 5966 5967// GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 5968func (r *RepositoryTag) GetTarballURL() string { 5969 if r == nil || r.TarballURL == nil { 5970 return "" 5971 } 5972 return *r.TarballURL 5973} 5974 5975// GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 5976func (r *RepositoryTag) GetZipballURL() string { 5977 if r == nil || r.ZipballURL == nil { 5978 return "" 5979 } 5980 return *r.ZipballURL 5981} 5982 5983// GetContext returns the Context field if it's non-nil, zero value otherwise. 5984func (r *RepoStatus) GetContext() string { 5985 if r == nil || r.Context == nil { 5986 return "" 5987 } 5988 return *r.Context 5989} 5990 5991// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5992func (r *RepoStatus) GetCreatedAt() time.Time { 5993 if r == nil || r.CreatedAt == nil { 5994 return time.Time{} 5995 } 5996 return *r.CreatedAt 5997} 5998 5999// GetDescription returns the Description field if it's non-nil, zero value otherwise. 6000func (r *RepoStatus) GetDescription() string { 6001 if r == nil || r.Description == nil { 6002 return "" 6003 } 6004 return *r.Description 6005} 6006 6007// GetID returns the ID field if it's non-nil, zero value otherwise. 6008func (r *RepoStatus) GetID() int { 6009 if r == nil || r.ID == nil { 6010 return 0 6011 } 6012 return *r.ID 6013} 6014 6015// GetState returns the State field if it's non-nil, zero value otherwise. 6016func (r *RepoStatus) GetState() string { 6017 if r == nil || r.State == nil { 6018 return "" 6019 } 6020 return *r.State 6021} 6022 6023// GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 6024func (r *RepoStatus) GetTargetURL() string { 6025 if r == nil || r.TargetURL == nil { 6026 return "" 6027 } 6028 return *r.TargetURL 6029} 6030 6031// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6032func (r *RepoStatus) GetUpdatedAt() time.Time { 6033 if r == nil || r.UpdatedAt == nil { 6034 return time.Time{} 6035 } 6036 return *r.UpdatedAt 6037} 6038 6039// GetURL returns the URL field if it's non-nil, zero value otherwise. 6040func (r *RepoStatus) GetURL() string { 6041 if r == nil || r.URL == nil { 6042 return "" 6043 } 6044 return *r.URL 6045} 6046 6047// GetName returns the Name field if it's non-nil, zero value otherwise. 6048func (s *ServiceHook) GetName() string { 6049 if s == nil || s.Name == nil { 6050 return "" 6051 } 6052 return *s.Name 6053} 6054 6055// GetPayload returns the Payload field if it's non-nil, zero value otherwise. 6056func (s *SignatureVerification) GetPayload() string { 6057 if s == nil || s.Payload == nil { 6058 return "" 6059 } 6060 return *s.Payload 6061} 6062 6063// GetReason returns the Reason field if it's non-nil, zero value otherwise. 6064func (s *SignatureVerification) GetReason() string { 6065 if s == nil || s.Reason == nil { 6066 return "" 6067 } 6068 return *s.Reason 6069} 6070 6071// GetSignature returns the Signature field if it's non-nil, zero value otherwise. 6072func (s *SignatureVerification) GetSignature() string { 6073 if s == nil || s.Signature == nil { 6074 return "" 6075 } 6076 return *s.Signature 6077} 6078 6079// GetVerified returns the Verified field if it's non-nil, zero value otherwise. 6080func (s *SignatureVerification) GetVerified() bool { 6081 if s == nil || s.Verified == nil { 6082 return false 6083 } 6084 return *s.Verified 6085} 6086 6087// GetID returns the ID field if it's non-nil, zero value otherwise. 6088func (s *Source) GetID() int { 6089 if s == nil || s.ID == nil { 6090 return 0 6091 } 6092 return *s.ID 6093} 6094 6095// GetURL returns the URL field if it's non-nil, zero value otherwise. 6096func (s *Source) GetURL() string { 6097 if s == nil || s.URL == nil { 6098 return "" 6099 } 6100 return *s.URL 6101} 6102 6103// GetEmail returns the Email field if it's non-nil, zero value otherwise. 6104func (s *SourceImportAuthor) GetEmail() string { 6105 if s == nil || s.Email == nil { 6106 return "" 6107 } 6108 return *s.Email 6109} 6110 6111// GetID returns the ID field if it's non-nil, zero value otherwise. 6112func (s *SourceImportAuthor) GetID() int { 6113 if s == nil || s.ID == nil { 6114 return 0 6115 } 6116 return *s.ID 6117} 6118 6119// GetImportURL returns the ImportURL field if it's non-nil, zero value otherwise. 6120func (s *SourceImportAuthor) GetImportURL() string { 6121 if s == nil || s.ImportURL == nil { 6122 return "" 6123 } 6124 return *s.ImportURL 6125} 6126 6127// GetName returns the Name field if it's non-nil, zero value otherwise. 6128func (s *SourceImportAuthor) GetName() string { 6129 if s == nil || s.Name == nil { 6130 return "" 6131 } 6132 return *s.Name 6133} 6134 6135// GetRemoteID returns the RemoteID field if it's non-nil, zero value otherwise. 6136func (s *SourceImportAuthor) GetRemoteID() string { 6137 if s == nil || s.RemoteID == nil { 6138 return "" 6139 } 6140 return *s.RemoteID 6141} 6142 6143// GetRemoteName returns the RemoteName field if it's non-nil, zero value otherwise. 6144func (s *SourceImportAuthor) GetRemoteName() string { 6145 if s == nil || s.RemoteName == nil { 6146 return "" 6147 } 6148 return *s.RemoteName 6149} 6150 6151// GetURL returns the URL field if it's non-nil, zero value otherwise. 6152func (s *SourceImportAuthor) GetURL() string { 6153 if s == nil || s.URL == nil { 6154 return "" 6155 } 6156 return *s.URL 6157} 6158 6159// GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 6160func (s *Stargazer) GetStarredAt() Timestamp { 6161 if s == nil || s.StarredAt == nil { 6162 return Timestamp{} 6163 } 6164 return *s.StarredAt 6165} 6166 6167// GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 6168func (s *StarredRepository) GetStarredAt() Timestamp { 6169 if s == nil || s.StarredAt == nil { 6170 return Timestamp{} 6171 } 6172 return *s.StarredAt 6173} 6174 6175// GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 6176func (s *startMigration) GetExcludeAttachments() bool { 6177 if s == nil || s.ExcludeAttachments == nil { 6178 return false 6179 } 6180 return *s.ExcludeAttachments 6181} 6182 6183// GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 6184func (s *startMigration) GetLockRepositories() bool { 6185 if s == nil || s.LockRepositories == nil { 6186 return false 6187 } 6188 return *s.LockRepositories 6189} 6190 6191// GetContext returns the Context field if it's non-nil, zero value otherwise. 6192func (s *StatusEvent) GetContext() string { 6193 if s == nil || s.Context == nil { 6194 return "" 6195 } 6196 return *s.Context 6197} 6198 6199// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6200func (s *StatusEvent) GetCreatedAt() Timestamp { 6201 if s == nil || s.CreatedAt == nil { 6202 return Timestamp{} 6203 } 6204 return *s.CreatedAt 6205} 6206 6207// GetDescription returns the Description field if it's non-nil, zero value otherwise. 6208func (s *StatusEvent) GetDescription() string { 6209 if s == nil || s.Description == nil { 6210 return "" 6211 } 6212 return *s.Description 6213} 6214 6215// GetID returns the ID field if it's non-nil, zero value otherwise. 6216func (s *StatusEvent) GetID() int { 6217 if s == nil || s.ID == nil { 6218 return 0 6219 } 6220 return *s.ID 6221} 6222 6223// GetName returns the Name field if it's non-nil, zero value otherwise. 6224func (s *StatusEvent) GetName() string { 6225 if s == nil || s.Name == nil { 6226 return "" 6227 } 6228 return *s.Name 6229} 6230 6231// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 6232func (s *StatusEvent) GetSHA() string { 6233 if s == nil || s.SHA == nil { 6234 return "" 6235 } 6236 return *s.SHA 6237} 6238 6239// GetState returns the State field if it's non-nil, zero value otherwise. 6240func (s *StatusEvent) GetState() string { 6241 if s == nil || s.State == nil { 6242 return "" 6243 } 6244 return *s.State 6245} 6246 6247// GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 6248func (s *StatusEvent) GetTargetURL() string { 6249 if s == nil || s.TargetURL == nil { 6250 return "" 6251 } 6252 return *s.TargetURL 6253} 6254 6255// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6256func (s *StatusEvent) GetUpdatedAt() Timestamp { 6257 if s == nil || s.UpdatedAt == nil { 6258 return Timestamp{} 6259 } 6260 return *s.UpdatedAt 6261} 6262 6263// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6264func (s *Subscription) GetCreatedAt() Timestamp { 6265 if s == nil || s.CreatedAt == nil { 6266 return Timestamp{} 6267 } 6268 return *s.CreatedAt 6269} 6270 6271// GetIgnored returns the Ignored field if it's non-nil, zero value otherwise. 6272func (s *Subscription) GetIgnored() bool { 6273 if s == nil || s.Ignored == nil { 6274 return false 6275 } 6276 return *s.Ignored 6277} 6278 6279// GetReason returns the Reason field if it's non-nil, zero value otherwise. 6280func (s *Subscription) GetReason() string { 6281 if s == nil || s.Reason == nil { 6282 return "" 6283 } 6284 return *s.Reason 6285} 6286 6287// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 6288func (s *Subscription) GetRepositoryURL() string { 6289 if s == nil || s.RepositoryURL == nil { 6290 return "" 6291 } 6292 return *s.RepositoryURL 6293} 6294 6295// GetSubscribed returns the Subscribed field if it's non-nil, zero value otherwise. 6296func (s *Subscription) GetSubscribed() bool { 6297 if s == nil || s.Subscribed == nil { 6298 return false 6299 } 6300 return *s.Subscribed 6301} 6302 6303// GetThreadURL returns the ThreadURL field if it's non-nil, zero value otherwise. 6304func (s *Subscription) GetThreadURL() string { 6305 if s == nil || s.ThreadURL == nil { 6306 return "" 6307 } 6308 return *s.ThreadURL 6309} 6310 6311// GetURL returns the URL field if it's non-nil, zero value otherwise. 6312func (s *Subscription) GetURL() string { 6313 if s == nil || s.URL == nil { 6314 return "" 6315 } 6316 return *s.URL 6317} 6318 6319// GetMessage returns the Message field if it's non-nil, zero value otherwise. 6320func (t *Tag) GetMessage() string { 6321 if t == nil || t.Message == nil { 6322 return "" 6323 } 6324 return *t.Message 6325} 6326 6327// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 6328func (t *Tag) GetSHA() string { 6329 if t == nil || t.SHA == nil { 6330 return "" 6331 } 6332 return *t.SHA 6333} 6334 6335// GetTag returns the Tag field if it's non-nil, zero value otherwise. 6336func (t *Tag) GetTag() string { 6337 if t == nil || t.Tag == nil { 6338 return "" 6339 } 6340 return *t.Tag 6341} 6342 6343// GetURL returns the URL field if it's non-nil, zero value otherwise. 6344func (t *Tag) GetURL() string { 6345 if t == nil || t.URL == nil { 6346 return "" 6347 } 6348 return *t.URL 6349} 6350 6351// GetDescription returns the Description field if it's non-nil, zero value otherwise. 6352func (t *Team) GetDescription() string { 6353 if t == nil || t.Description == nil { 6354 return "" 6355 } 6356 return *t.Description 6357} 6358 6359// GetID returns the ID field if it's non-nil, zero value otherwise. 6360func (t *Team) GetID() int { 6361 if t == nil || t.ID == nil { 6362 return 0 6363 } 6364 return *t.ID 6365} 6366 6367// GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 6368func (t *Team) GetLDAPDN() string { 6369 if t == nil || t.LDAPDN == nil { 6370 return "" 6371 } 6372 return *t.LDAPDN 6373} 6374 6375// GetMembersCount returns the MembersCount field if it's non-nil, zero value otherwise. 6376func (t *Team) GetMembersCount() int { 6377 if t == nil || t.MembersCount == nil { 6378 return 0 6379 } 6380 return *t.MembersCount 6381} 6382 6383// GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 6384func (t *Team) GetMembersURL() string { 6385 if t == nil || t.MembersURL == nil { 6386 return "" 6387 } 6388 return *t.MembersURL 6389} 6390 6391// GetName returns the Name field if it's non-nil, zero value otherwise. 6392func (t *Team) GetName() string { 6393 if t == nil || t.Name == nil { 6394 return "" 6395 } 6396 return *t.Name 6397} 6398 6399// GetPermission returns the Permission field if it's non-nil, zero value otherwise. 6400func (t *Team) GetPermission() string { 6401 if t == nil || t.Permission == nil { 6402 return "" 6403 } 6404 return *t.Permission 6405} 6406 6407// GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 6408func (t *Team) GetPrivacy() string { 6409 if t == nil || t.Privacy == nil { 6410 return "" 6411 } 6412 return *t.Privacy 6413} 6414 6415// GetReposCount returns the ReposCount field if it's non-nil, zero value otherwise. 6416func (t *Team) GetReposCount() int { 6417 if t == nil || t.ReposCount == nil { 6418 return 0 6419 } 6420 return *t.ReposCount 6421} 6422 6423// GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 6424func (t *Team) GetRepositoriesURL() string { 6425 if t == nil || t.RepositoriesURL == nil { 6426 return "" 6427 } 6428 return *t.RepositoriesURL 6429} 6430 6431// GetSlug returns the Slug field if it's non-nil, zero value otherwise. 6432func (t *Team) GetSlug() string { 6433 if t == nil || t.Slug == nil { 6434 return "" 6435 } 6436 return *t.Slug 6437} 6438 6439// GetURL returns the URL field if it's non-nil, zero value otherwise. 6440func (t *Team) GetURL() string { 6441 if t == nil || t.URL == nil { 6442 return "" 6443 } 6444 return *t.URL 6445} 6446 6447// GetAction returns the Action field if it's non-nil, zero value otherwise. 6448func (t *TeamEvent) GetAction() string { 6449 if t == nil || t.Action == nil { 6450 return "" 6451 } 6452 return *t.Action 6453} 6454 6455// GetDescription returns the Description field if it's non-nil, zero value otherwise. 6456func (t *TeamLDAPMapping) GetDescription() string { 6457 if t == nil || t.Description == nil { 6458 return "" 6459 } 6460 return *t.Description 6461} 6462 6463// GetID returns the ID field if it's non-nil, zero value otherwise. 6464func (t *TeamLDAPMapping) GetID() int { 6465 if t == nil || t.ID == nil { 6466 return 0 6467 } 6468 return *t.ID 6469} 6470 6471// GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 6472func (t *TeamLDAPMapping) GetLDAPDN() string { 6473 if t == nil || t.LDAPDN == nil { 6474 return "" 6475 } 6476 return *t.LDAPDN 6477} 6478 6479// GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 6480func (t *TeamLDAPMapping) GetMembersURL() string { 6481 if t == nil || t.MembersURL == nil { 6482 return "" 6483 } 6484 return *t.MembersURL 6485} 6486 6487// GetName returns the Name field if it's non-nil, zero value otherwise. 6488func (t *TeamLDAPMapping) GetName() string { 6489 if t == nil || t.Name == nil { 6490 return "" 6491 } 6492 return *t.Name 6493} 6494 6495// GetPermission returns the Permission field if it's non-nil, zero value otherwise. 6496func (t *TeamLDAPMapping) GetPermission() string { 6497 if t == nil || t.Permission == nil { 6498 return "" 6499 } 6500 return *t.Permission 6501} 6502 6503// GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 6504func (t *TeamLDAPMapping) GetPrivacy() string { 6505 if t == nil || t.Privacy == nil { 6506 return "" 6507 } 6508 return *t.Privacy 6509} 6510 6511// GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 6512func (t *TeamLDAPMapping) GetRepositoriesURL() string { 6513 if t == nil || t.RepositoriesURL == nil { 6514 return "" 6515 } 6516 return *t.RepositoriesURL 6517} 6518 6519// GetSlug returns the Slug field if it's non-nil, zero value otherwise. 6520func (t *TeamLDAPMapping) GetSlug() string { 6521 if t == nil || t.Slug == nil { 6522 return "" 6523 } 6524 return *t.Slug 6525} 6526 6527// GetURL returns the URL field if it's non-nil, zero value otherwise. 6528func (t *TeamLDAPMapping) GetURL() string { 6529 if t == nil || t.URL == nil { 6530 return "" 6531 } 6532 return *t.URL 6533} 6534 6535// GetFragment returns the Fragment field if it's non-nil, zero value otherwise. 6536func (t *TextMatch) GetFragment() string { 6537 if t == nil || t.Fragment == nil { 6538 return "" 6539 } 6540 return *t.Fragment 6541} 6542 6543// GetObjectType returns the ObjectType field if it's non-nil, zero value otherwise. 6544func (t *TextMatch) GetObjectType() string { 6545 if t == nil || t.ObjectType == nil { 6546 return "" 6547 } 6548 return *t.ObjectType 6549} 6550 6551// GetObjectURL returns the ObjectURL field if it's non-nil, zero value otherwise. 6552func (t *TextMatch) GetObjectURL() string { 6553 if t == nil || t.ObjectURL == nil { 6554 return "" 6555 } 6556 return *t.ObjectURL 6557} 6558 6559// GetProperty returns the Property field if it's non-nil, zero value otherwise. 6560func (t *TextMatch) GetProperty() string { 6561 if t == nil || t.Property == nil { 6562 return "" 6563 } 6564 return *t.Property 6565} 6566 6567// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 6568func (t *Timeline) GetCommitID() string { 6569 if t == nil || t.CommitID == nil { 6570 return "" 6571 } 6572 return *t.CommitID 6573} 6574 6575// GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 6576func (t *Timeline) GetCommitURL() string { 6577 if t == nil || t.CommitURL == nil { 6578 return "" 6579 } 6580 return *t.CommitURL 6581} 6582 6583// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6584func (t *Timeline) GetCreatedAt() time.Time { 6585 if t == nil || t.CreatedAt == nil { 6586 return time.Time{} 6587 } 6588 return *t.CreatedAt 6589} 6590 6591// GetEvent returns the Event field if it's non-nil, zero value otherwise. 6592func (t *Timeline) GetEvent() string { 6593 if t == nil || t.Event == nil { 6594 return "" 6595 } 6596 return *t.Event 6597} 6598 6599// GetID returns the ID field if it's non-nil, zero value otherwise. 6600func (t *Timeline) GetID() int { 6601 if t == nil || t.ID == nil { 6602 return 0 6603 } 6604 return *t.ID 6605} 6606 6607// GetURL returns the URL field if it's non-nil, zero value otherwise. 6608func (t *Timeline) GetURL() string { 6609 if t == nil || t.URL == nil { 6610 return "" 6611 } 6612 return *t.URL 6613} 6614 6615// GetCount returns the Count field if it's non-nil, zero value otherwise. 6616func (t *TrafficClones) GetCount() int { 6617 if t == nil || t.Count == nil { 6618 return 0 6619 } 6620 return *t.Count 6621} 6622 6623// GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 6624func (t *TrafficClones) GetUniques() int { 6625 if t == nil || t.Uniques == nil { 6626 return 0 6627 } 6628 return *t.Uniques 6629} 6630 6631// GetCount returns the Count field if it's non-nil, zero value otherwise. 6632func (t *TrafficData) GetCount() int { 6633 if t == nil || t.Count == nil { 6634 return 0 6635 } 6636 return *t.Count 6637} 6638 6639// GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 6640func (t *TrafficData) GetTimestamp() Timestamp { 6641 if t == nil || t.Timestamp == nil { 6642 return Timestamp{} 6643 } 6644 return *t.Timestamp 6645} 6646 6647// GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 6648func (t *TrafficData) GetUniques() int { 6649 if t == nil || t.Uniques == nil { 6650 return 0 6651 } 6652 return *t.Uniques 6653} 6654 6655// GetCount returns the Count field if it's non-nil, zero value otherwise. 6656func (t *TrafficPath) GetCount() int { 6657 if t == nil || t.Count == nil { 6658 return 0 6659 } 6660 return *t.Count 6661} 6662 6663// GetPath returns the Path field if it's non-nil, zero value otherwise. 6664func (t *TrafficPath) GetPath() string { 6665 if t == nil || t.Path == nil { 6666 return "" 6667 } 6668 return *t.Path 6669} 6670 6671// GetTitle returns the Title field if it's non-nil, zero value otherwise. 6672func (t *TrafficPath) GetTitle() string { 6673 if t == nil || t.Title == nil { 6674 return "" 6675 } 6676 return *t.Title 6677} 6678 6679// GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 6680func (t *TrafficPath) GetUniques() int { 6681 if t == nil || t.Uniques == nil { 6682 return 0 6683 } 6684 return *t.Uniques 6685} 6686 6687// GetCount returns the Count field if it's non-nil, zero value otherwise. 6688func (t *TrafficReferrer) GetCount() int { 6689 if t == nil || t.Count == nil { 6690 return 0 6691 } 6692 return *t.Count 6693} 6694 6695// GetReferrer returns the Referrer field if it's non-nil, zero value otherwise. 6696func (t *TrafficReferrer) GetReferrer() string { 6697 if t == nil || t.Referrer == nil { 6698 return "" 6699 } 6700 return *t.Referrer 6701} 6702 6703// GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 6704func (t *TrafficReferrer) GetUniques() int { 6705 if t == nil || t.Uniques == nil { 6706 return 0 6707 } 6708 return *t.Uniques 6709} 6710 6711// GetCount returns the Count field if it's non-nil, zero value otherwise. 6712func (t *TrafficViews) GetCount() int { 6713 if t == nil || t.Count == nil { 6714 return 0 6715 } 6716 return *t.Count 6717} 6718 6719// GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 6720func (t *TrafficViews) GetUniques() int { 6721 if t == nil || t.Uniques == nil { 6722 return 0 6723 } 6724 return *t.Uniques 6725} 6726 6727// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 6728func (t *Tree) GetSHA() string { 6729 if t == nil || t.SHA == nil { 6730 return "" 6731 } 6732 return *t.SHA 6733} 6734 6735// GetContent returns the Content field if it's non-nil, zero value otherwise. 6736func (t *TreeEntry) GetContent() string { 6737 if t == nil || t.Content == nil { 6738 return "" 6739 } 6740 return *t.Content 6741} 6742 6743// GetMode returns the Mode field if it's non-nil, zero value otherwise. 6744func (t *TreeEntry) GetMode() string { 6745 if t == nil || t.Mode == nil { 6746 return "" 6747 } 6748 return *t.Mode 6749} 6750 6751// GetPath returns the Path field if it's non-nil, zero value otherwise. 6752func (t *TreeEntry) GetPath() string { 6753 if t == nil || t.Path == nil { 6754 return "" 6755 } 6756 return *t.Path 6757} 6758 6759// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 6760func (t *TreeEntry) GetSHA() string { 6761 if t == nil || t.SHA == nil { 6762 return "" 6763 } 6764 return *t.SHA 6765} 6766 6767// GetSize returns the Size field if it's non-nil, zero value otherwise. 6768func (t *TreeEntry) GetSize() int { 6769 if t == nil || t.Size == nil { 6770 return 0 6771 } 6772 return *t.Size 6773} 6774 6775// GetType returns the Type field if it's non-nil, zero value otherwise. 6776func (t *TreeEntry) GetType() string { 6777 if t == nil || t.Type == nil { 6778 return "" 6779 } 6780 return *t.Type 6781} 6782 6783// GetURL returns the URL field if it's non-nil, zero value otherwise. 6784func (t *TreeEntry) GetURL() string { 6785 if t == nil || t.URL == nil { 6786 return "" 6787 } 6788 return *t.URL 6789} 6790 6791// GetForce returns the Force field if it's non-nil, zero value otherwise. 6792func (u *updateRefRequest) GetForce() bool { 6793 if u == nil || u.Force == nil { 6794 return false 6795 } 6796 return *u.Force 6797} 6798 6799// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 6800func (u *updateRefRequest) GetSHA() string { 6801 if u == nil || u.SHA == nil { 6802 return "" 6803 } 6804 return *u.SHA 6805} 6806 6807// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 6808func (u *User) GetAvatarURL() string { 6809 if u == nil || u.AvatarURL == nil { 6810 return "" 6811 } 6812 return *u.AvatarURL 6813} 6814 6815// GetBio returns the Bio field if it's non-nil, zero value otherwise. 6816func (u *User) GetBio() string { 6817 if u == nil || u.Bio == nil { 6818 return "" 6819 } 6820 return *u.Bio 6821} 6822 6823// GetBlog returns the Blog field if it's non-nil, zero value otherwise. 6824func (u *User) GetBlog() string { 6825 if u == nil || u.Blog == nil { 6826 return "" 6827 } 6828 return *u.Blog 6829} 6830 6831// GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 6832func (u *User) GetCollaborators() int { 6833 if u == nil || u.Collaborators == nil { 6834 return 0 6835 } 6836 return *u.Collaborators 6837} 6838 6839// GetCompany returns the Company field if it's non-nil, zero value otherwise. 6840func (u *User) GetCompany() string { 6841 if u == nil || u.Company == nil { 6842 return "" 6843 } 6844 return *u.Company 6845} 6846 6847// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6848func (u *User) GetCreatedAt() Timestamp { 6849 if u == nil || u.CreatedAt == nil { 6850 return Timestamp{} 6851 } 6852 return *u.CreatedAt 6853} 6854 6855// GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 6856func (u *User) GetDiskUsage() int { 6857 if u == nil || u.DiskUsage == nil { 6858 return 0 6859 } 6860 return *u.DiskUsage 6861} 6862 6863// GetEmail returns the Email field if it's non-nil, zero value otherwise. 6864func (u *User) GetEmail() string { 6865 if u == nil || u.Email == nil { 6866 return "" 6867 } 6868 return *u.Email 6869} 6870 6871// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 6872func (u *User) GetEventsURL() string { 6873 if u == nil || u.EventsURL == nil { 6874 return "" 6875 } 6876 return *u.EventsURL 6877} 6878 6879// GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 6880func (u *User) GetFollowers() int { 6881 if u == nil || u.Followers == nil { 6882 return 0 6883 } 6884 return *u.Followers 6885} 6886 6887// GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 6888func (u *User) GetFollowersURL() string { 6889 if u == nil || u.FollowersURL == nil { 6890 return "" 6891 } 6892 return *u.FollowersURL 6893} 6894 6895// GetFollowing returns the Following field if it's non-nil, zero value otherwise. 6896func (u *User) GetFollowing() int { 6897 if u == nil || u.Following == nil { 6898 return 0 6899 } 6900 return *u.Following 6901} 6902 6903// GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 6904func (u *User) GetFollowingURL() string { 6905 if u == nil || u.FollowingURL == nil { 6906 return "" 6907 } 6908 return *u.FollowingURL 6909} 6910 6911// GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 6912func (u *User) GetGistsURL() string { 6913 if u == nil || u.GistsURL == nil { 6914 return "" 6915 } 6916 return *u.GistsURL 6917} 6918 6919// GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 6920func (u *User) GetGravatarID() string { 6921 if u == nil || u.GravatarID == nil { 6922 return "" 6923 } 6924 return *u.GravatarID 6925} 6926 6927// GetHireable returns the Hireable field if it's non-nil, zero value otherwise. 6928func (u *User) GetHireable() bool { 6929 if u == nil || u.Hireable == nil { 6930 return false 6931 } 6932 return *u.Hireable 6933} 6934 6935// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6936func (u *User) GetHTMLURL() string { 6937 if u == nil || u.HTMLURL == nil { 6938 return "" 6939 } 6940 return *u.HTMLURL 6941} 6942 6943// GetID returns the ID field if it's non-nil, zero value otherwise. 6944func (u *User) GetID() int { 6945 if u == nil || u.ID == nil { 6946 return 0 6947 } 6948 return *u.ID 6949} 6950 6951// GetLocation returns the Location field if it's non-nil, zero value otherwise. 6952func (u *User) GetLocation() string { 6953 if u == nil || u.Location == nil { 6954 return "" 6955 } 6956 return *u.Location 6957} 6958 6959// GetLogin returns the Login field if it's non-nil, zero value otherwise. 6960func (u *User) GetLogin() string { 6961 if u == nil || u.Login == nil { 6962 return "" 6963 } 6964 return *u.Login 6965} 6966 6967// GetName returns the Name field if it's non-nil, zero value otherwise. 6968func (u *User) GetName() string { 6969 if u == nil || u.Name == nil { 6970 return "" 6971 } 6972 return *u.Name 6973} 6974 6975// GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 6976func (u *User) GetOrganizationsURL() string { 6977 if u == nil || u.OrganizationsURL == nil { 6978 return "" 6979 } 6980 return *u.OrganizationsURL 6981} 6982 6983// GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 6984func (u *User) GetOwnedPrivateRepos() int { 6985 if u == nil || u.OwnedPrivateRepos == nil { 6986 return 0 6987 } 6988 return *u.OwnedPrivateRepos 6989} 6990 6991// GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 6992func (u *User) GetPermissions() map[string]bool { 6993 if u == nil || u.Permissions == nil { 6994 return map[string]bool{} 6995 } 6996 return *u.Permissions 6997} 6998 6999// GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 7000func (u *User) GetPrivateGists() int { 7001 if u == nil || u.PrivateGists == nil { 7002 return 0 7003 } 7004 return *u.PrivateGists 7005} 7006 7007// GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 7008func (u *User) GetPublicGists() int { 7009 if u == nil || u.PublicGists == nil { 7010 return 0 7011 } 7012 return *u.PublicGists 7013} 7014 7015// GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 7016func (u *User) GetPublicRepos() int { 7017 if u == nil || u.PublicRepos == nil { 7018 return 0 7019 } 7020 return *u.PublicRepos 7021} 7022 7023// GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 7024func (u *User) GetReceivedEventsURL() string { 7025 if u == nil || u.ReceivedEventsURL == nil { 7026 return "" 7027 } 7028 return *u.ReceivedEventsURL 7029} 7030 7031// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 7032func (u *User) GetReposURL() string { 7033 if u == nil || u.ReposURL == nil { 7034 return "" 7035 } 7036 return *u.ReposURL 7037} 7038 7039// GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 7040func (u *User) GetSiteAdmin() bool { 7041 if u == nil || u.SiteAdmin == nil { 7042 return false 7043 } 7044 return *u.SiteAdmin 7045} 7046 7047// GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 7048func (u *User) GetStarredURL() string { 7049 if u == nil || u.StarredURL == nil { 7050 return "" 7051 } 7052 return *u.StarredURL 7053} 7054 7055// GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 7056func (u *User) GetSubscriptionsURL() string { 7057 if u == nil || u.SubscriptionsURL == nil { 7058 return "" 7059 } 7060 return *u.SubscriptionsURL 7061} 7062 7063// GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise. 7064func (u *User) GetSuspendedAt() Timestamp { 7065 if u == nil || u.SuspendedAt == nil { 7066 return Timestamp{} 7067 } 7068 return *u.SuspendedAt 7069} 7070 7071// GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 7072func (u *User) GetTotalPrivateRepos() int { 7073 if u == nil || u.TotalPrivateRepos == nil { 7074 return 0 7075 } 7076 return *u.TotalPrivateRepos 7077} 7078 7079// GetType returns the Type field if it's non-nil, zero value otherwise. 7080func (u *User) GetType() string { 7081 if u == nil || u.Type == nil { 7082 return "" 7083 } 7084 return *u.Type 7085} 7086 7087// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7088func (u *User) GetUpdatedAt() Timestamp { 7089 if u == nil || u.UpdatedAt == nil { 7090 return Timestamp{} 7091 } 7092 return *u.UpdatedAt 7093} 7094 7095// GetURL returns the URL field if it's non-nil, zero value otherwise. 7096func (u *User) GetURL() string { 7097 if u == nil || u.URL == nil { 7098 return "" 7099 } 7100 return *u.URL 7101} 7102 7103// GetEmail returns the Email field if it's non-nil, zero value otherwise. 7104func (u *UserEmail) GetEmail() string { 7105 if u == nil || u.Email == nil { 7106 return "" 7107 } 7108 return *u.Email 7109} 7110 7111// GetPrimary returns the Primary field if it's non-nil, zero value otherwise. 7112func (u *UserEmail) GetPrimary() bool { 7113 if u == nil || u.Primary == nil { 7114 return false 7115 } 7116 return *u.Primary 7117} 7118 7119// GetVerified returns the Verified field if it's non-nil, zero value otherwise. 7120func (u *UserEmail) GetVerified() bool { 7121 if u == nil || u.Verified == nil { 7122 return false 7123 } 7124 return *u.Verified 7125} 7126 7127// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 7128func (u *UserLDAPMapping) GetAvatarURL() string { 7129 if u == nil || u.AvatarURL == nil { 7130 return "" 7131 } 7132 return *u.AvatarURL 7133} 7134 7135// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 7136func (u *UserLDAPMapping) GetEventsURL() string { 7137 if u == nil || u.EventsURL == nil { 7138 return "" 7139 } 7140 return *u.EventsURL 7141} 7142 7143// GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 7144func (u *UserLDAPMapping) GetFollowersURL() string { 7145 if u == nil || u.FollowersURL == nil { 7146 return "" 7147 } 7148 return *u.FollowersURL 7149} 7150 7151// GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 7152func (u *UserLDAPMapping) GetFollowingURL() string { 7153 if u == nil || u.FollowingURL == nil { 7154 return "" 7155 } 7156 return *u.FollowingURL 7157} 7158 7159// GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 7160func (u *UserLDAPMapping) GetGistsURL() string { 7161 if u == nil || u.GistsURL == nil { 7162 return "" 7163 } 7164 return *u.GistsURL 7165} 7166 7167// GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 7168func (u *UserLDAPMapping) GetGravatarID() string { 7169 if u == nil || u.GravatarID == nil { 7170 return "" 7171 } 7172 return *u.GravatarID 7173} 7174 7175// GetID returns the ID field if it's non-nil, zero value otherwise. 7176func (u *UserLDAPMapping) GetID() int { 7177 if u == nil || u.ID == nil { 7178 return 0 7179 } 7180 return *u.ID 7181} 7182 7183// GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 7184func (u *UserLDAPMapping) GetLDAPDN() string { 7185 if u == nil || u.LDAPDN == nil { 7186 return "" 7187 } 7188 return *u.LDAPDN 7189} 7190 7191// GetLogin returns the Login field if it's non-nil, zero value otherwise. 7192func (u *UserLDAPMapping) GetLogin() string { 7193 if u == nil || u.Login == nil { 7194 return "" 7195 } 7196 return *u.Login 7197} 7198 7199// GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 7200func (u *UserLDAPMapping) GetOrganizationsURL() string { 7201 if u == nil || u.OrganizationsURL == nil { 7202 return "" 7203 } 7204 return *u.OrganizationsURL 7205} 7206 7207// GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 7208func (u *UserLDAPMapping) GetReceivedEventsURL() string { 7209 if u == nil || u.ReceivedEventsURL == nil { 7210 return "" 7211 } 7212 return *u.ReceivedEventsURL 7213} 7214 7215// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 7216func (u *UserLDAPMapping) GetReposURL() string { 7217 if u == nil || u.ReposURL == nil { 7218 return "" 7219 } 7220 return *u.ReposURL 7221} 7222 7223// GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 7224func (u *UserLDAPMapping) GetSiteAdmin() bool { 7225 if u == nil || u.SiteAdmin == nil { 7226 return false 7227 } 7228 return *u.SiteAdmin 7229} 7230 7231// GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 7232func (u *UserLDAPMapping) GetStarredURL() string { 7233 if u == nil || u.StarredURL == nil { 7234 return "" 7235 } 7236 return *u.StarredURL 7237} 7238 7239// GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 7240func (u *UserLDAPMapping) GetSubscriptionsURL() string { 7241 if u == nil || u.SubscriptionsURL == nil { 7242 return "" 7243 } 7244 return *u.SubscriptionsURL 7245} 7246 7247// GetType returns the Type field if it's non-nil, zero value otherwise. 7248func (u *UserLDAPMapping) GetType() string { 7249 if u == nil || u.Type == nil { 7250 return "" 7251 } 7252 return *u.Type 7253} 7254 7255// GetURL returns the URL field if it's non-nil, zero value otherwise. 7256func (u *UserLDAPMapping) GetURL() string { 7257 if u == nil || u.URL == nil { 7258 return "" 7259 } 7260 return *u.URL 7261} 7262 7263// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 7264func (u *UsersSearchResult) GetIncompleteResults() bool { 7265 if u == nil || u.IncompleteResults == nil { 7266 return false 7267 } 7268 return *u.IncompleteResults 7269} 7270 7271// GetTotal returns the Total field if it's non-nil, zero value otherwise. 7272func (u *UsersSearchResult) GetTotal() int { 7273 if u == nil || u.Total == nil { 7274 return 0 7275 } 7276 return *u.Total 7277} 7278 7279// GetAction returns the Action field if it's non-nil, zero value otherwise. 7280func (w *WatchEvent) GetAction() string { 7281 if w == nil || w.Action == nil { 7282 return "" 7283 } 7284 return *w.Action 7285} 7286 7287// GetEmail returns the Email field if it's non-nil, zero value otherwise. 7288func (w *WebHookAuthor) GetEmail() string { 7289 if w == nil || w.Email == nil { 7290 return "" 7291 } 7292 return *w.Email 7293} 7294 7295// GetName returns the Name field if it's non-nil, zero value otherwise. 7296func (w *WebHookAuthor) GetName() string { 7297 if w == nil || w.Name == nil { 7298 return "" 7299 } 7300 return *w.Name 7301} 7302 7303// GetUsername returns the Username field if it's non-nil, zero value otherwise. 7304func (w *WebHookAuthor) GetUsername() string { 7305 if w == nil || w.Username == nil { 7306 return "" 7307 } 7308 return *w.Username 7309} 7310 7311// GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. 7312func (w *WebHookCommit) GetDistinct() bool { 7313 if w == nil || w.Distinct == nil { 7314 return false 7315 } 7316 return *w.Distinct 7317} 7318 7319// GetID returns the ID field if it's non-nil, zero value otherwise. 7320func (w *WebHookCommit) GetID() string { 7321 if w == nil || w.ID == nil { 7322 return "" 7323 } 7324 return *w.ID 7325} 7326 7327// GetMessage returns the Message field if it's non-nil, zero value otherwise. 7328func (w *WebHookCommit) GetMessage() string { 7329 if w == nil || w.Message == nil { 7330 return "" 7331 } 7332 return *w.Message 7333} 7334 7335// GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 7336func (w *WebHookCommit) GetTimestamp() time.Time { 7337 if w == nil || w.Timestamp == nil { 7338 return time.Time{} 7339 } 7340 return *w.Timestamp 7341} 7342 7343// GetAfter returns the After field if it's non-nil, zero value otherwise. 7344func (w *WebHookPayload) GetAfter() string { 7345 if w == nil || w.After == nil { 7346 return "" 7347 } 7348 return *w.After 7349} 7350 7351// GetBefore returns the Before field if it's non-nil, zero value otherwise. 7352func (w *WebHookPayload) GetBefore() string { 7353 if w == nil || w.Before == nil { 7354 return "" 7355 } 7356 return *w.Before 7357} 7358 7359// GetCompare returns the Compare field if it's non-nil, zero value otherwise. 7360func (w *WebHookPayload) GetCompare() string { 7361 if w == nil || w.Compare == nil { 7362 return "" 7363 } 7364 return *w.Compare 7365} 7366 7367// GetCreated returns the Created field if it's non-nil, zero value otherwise. 7368func (w *WebHookPayload) GetCreated() bool { 7369 if w == nil || w.Created == nil { 7370 return false 7371 } 7372 return *w.Created 7373} 7374 7375// GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. 7376func (w *WebHookPayload) GetDeleted() bool { 7377 if w == nil || w.Deleted == nil { 7378 return false 7379 } 7380 return *w.Deleted 7381} 7382 7383// GetForced returns the Forced field if it's non-nil, zero value otherwise. 7384func (w *WebHookPayload) GetForced() bool { 7385 if w == nil || w.Forced == nil { 7386 return false 7387 } 7388 return *w.Forced 7389} 7390 7391// GetRef returns the Ref field if it's non-nil, zero value otherwise. 7392func (w *WebHookPayload) GetRef() string { 7393 if w == nil || w.Ref == nil { 7394 return "" 7395 } 7396 return *w.Ref 7397} 7398 7399// GetTotal returns the Total field if it's non-nil, zero value otherwise. 7400func (w *WeeklyCommitActivity) GetTotal() int { 7401 if w == nil || w.Total == nil { 7402 return 0 7403 } 7404 return *w.Total 7405} 7406 7407// GetWeek returns the Week field if it's non-nil, zero value otherwise. 7408func (w *WeeklyCommitActivity) GetWeek() Timestamp { 7409 if w == nil || w.Week == nil { 7410 return Timestamp{} 7411 } 7412 return *w.Week 7413} 7414 7415// GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 7416func (w *WeeklyStats) GetAdditions() int { 7417 if w == nil || w.Additions == nil { 7418 return 0 7419 } 7420 return *w.Additions 7421} 7422 7423// GetCommits returns the Commits field if it's non-nil, zero value otherwise. 7424func (w *WeeklyStats) GetCommits() int { 7425 if w == nil || w.Commits == nil { 7426 return 0 7427 } 7428 return *w.Commits 7429} 7430 7431// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 7432func (w *WeeklyStats) GetDeletions() int { 7433 if w == nil || w.Deletions == nil { 7434 return 0 7435 } 7436 return *w.Deletions 7437} 7438 7439// GetWeek returns the Week field if it's non-nil, zero value otherwise. 7440func (w *WeeklyStats) GetWeek() Timestamp { 7441 if w == nil || w.Week == nil { 7442 return Timestamp{} 7443 } 7444 return *w.Week 7445} 7446