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