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// GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 112func (a *Alert) GetClosedAt() Timestamp { 113 if a == nil || a.ClosedAt == nil { 114 return Timestamp{} 115 } 116 return *a.ClosedAt 117} 118 119// GetClosedBy returns the ClosedBy field. 120func (a *Alert) GetClosedBy() *User { 121 if a == nil { 122 return nil 123 } 124 return a.ClosedBy 125} 126 127// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 128func (a *Alert) GetCreatedAt() Timestamp { 129 if a == nil || a.CreatedAt == nil { 130 return Timestamp{} 131 } 132 return *a.CreatedAt 133} 134 135// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 136func (a *Alert) GetHTMLURL() string { 137 if a == nil || a.HTMLURL == nil { 138 return "" 139 } 140 return *a.HTMLURL 141} 142 143// GetOpen returns the Open field if it's non-nil, zero value otherwise. 144func (a *Alert) GetOpen() bool { 145 if a == nil || a.Open == nil { 146 return false 147 } 148 return *a.Open 149} 150 151// GetRuleDescription returns the RuleDescription field if it's non-nil, zero value otherwise. 152func (a *Alert) GetRuleDescription() string { 153 if a == nil || a.RuleDescription == nil { 154 return "" 155 } 156 return *a.RuleDescription 157} 158 159// GetRuleID returns the RuleID field if it's non-nil, zero value otherwise. 160func (a *Alert) GetRuleID() string { 161 if a == nil || a.RuleID == nil { 162 return "" 163 } 164 return *a.RuleID 165} 166 167// GetRuleSeverity returns the RuleSeverity field if it's non-nil, zero value otherwise. 168func (a *Alert) GetRuleSeverity() string { 169 if a == nil || a.RuleSeverity == nil { 170 return "" 171 } 172 return *a.RuleSeverity 173} 174 175// GetTool returns the Tool field if it's non-nil, zero value otherwise. 176func (a *Alert) GetTool() string { 177 if a == nil || a.Tool == nil { 178 return "" 179 } 180 return *a.Tool 181} 182 183// GetURL returns the URL field if it's non-nil, zero value otherwise. 184func (a *Alert) GetURL() string { 185 if a == nil || a.URL == nil { 186 return "" 187 } 188 return *a.URL 189} 190 191// GetVerifiablePasswordAuthentication returns the VerifiablePasswordAuthentication field if it's non-nil, zero value otherwise. 192func (a *APIMeta) GetVerifiablePasswordAuthentication() bool { 193 if a == nil || a.VerifiablePasswordAuthentication == nil { 194 return false 195 } 196 return *a.VerifiablePasswordAuthentication 197} 198 199// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 200func (a *App) GetCreatedAt() Timestamp { 201 if a == nil || a.CreatedAt == nil { 202 return Timestamp{} 203 } 204 return *a.CreatedAt 205} 206 207// GetDescription returns the Description field if it's non-nil, zero value otherwise. 208func (a *App) GetDescription() string { 209 if a == nil || a.Description == nil { 210 return "" 211 } 212 return *a.Description 213} 214 215// GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise. 216func (a *App) GetExternalURL() string { 217 if a == nil || a.ExternalURL == nil { 218 return "" 219 } 220 return *a.ExternalURL 221} 222 223// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 224func (a *App) GetHTMLURL() string { 225 if a == nil || a.HTMLURL == nil { 226 return "" 227 } 228 return *a.HTMLURL 229} 230 231// GetID returns the ID field if it's non-nil, zero value otherwise. 232func (a *App) GetID() int64 { 233 if a == nil || a.ID == nil { 234 return 0 235 } 236 return *a.ID 237} 238 239// GetName returns the Name field if it's non-nil, zero value otherwise. 240func (a *App) GetName() string { 241 if a == nil || a.Name == nil { 242 return "" 243 } 244 return *a.Name 245} 246 247// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 248func (a *App) GetNodeID() string { 249 if a == nil || a.NodeID == nil { 250 return "" 251 } 252 return *a.NodeID 253} 254 255// GetOwner returns the Owner field. 256func (a *App) GetOwner() *User { 257 if a == nil { 258 return nil 259 } 260 return a.Owner 261} 262 263// GetPermissions returns the Permissions field. 264func (a *App) GetPermissions() *InstallationPermissions { 265 if a == nil { 266 return nil 267 } 268 return a.Permissions 269} 270 271// GetSlug returns the Slug field if it's non-nil, zero value otherwise. 272func (a *App) GetSlug() string { 273 if a == nil || a.Slug == nil { 274 return "" 275 } 276 return *a.Slug 277} 278 279// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 280func (a *App) GetUpdatedAt() Timestamp { 281 if a == nil || a.UpdatedAt == nil { 282 return Timestamp{} 283 } 284 return *a.UpdatedAt 285} 286 287// GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 288func (a *AppConfig) GetClientID() string { 289 if a == nil || a.ClientID == nil { 290 return "" 291 } 292 return *a.ClientID 293} 294 295// GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. 296func (a *AppConfig) GetClientSecret() string { 297 if a == nil || a.ClientSecret == nil { 298 return "" 299 } 300 return *a.ClientSecret 301} 302 303// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 304func (a *AppConfig) GetCreatedAt() Timestamp { 305 if a == nil || a.CreatedAt == nil { 306 return Timestamp{} 307 } 308 return *a.CreatedAt 309} 310 311// GetDescription returns the Description field if it's non-nil, zero value otherwise. 312func (a *AppConfig) GetDescription() string { 313 if a == nil || a.Description == nil { 314 return "" 315 } 316 return *a.Description 317} 318 319// GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise. 320func (a *AppConfig) GetExternalURL() string { 321 if a == nil || a.ExternalURL == nil { 322 return "" 323 } 324 return *a.ExternalURL 325} 326 327// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 328func (a *AppConfig) GetHTMLURL() string { 329 if a == nil || a.HTMLURL == nil { 330 return "" 331 } 332 return *a.HTMLURL 333} 334 335// GetID returns the ID field if it's non-nil, zero value otherwise. 336func (a *AppConfig) GetID() int64 { 337 if a == nil || a.ID == nil { 338 return 0 339 } 340 return *a.ID 341} 342 343// GetName returns the Name field if it's non-nil, zero value otherwise. 344func (a *AppConfig) GetName() string { 345 if a == nil || a.Name == nil { 346 return "" 347 } 348 return *a.Name 349} 350 351// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 352func (a *AppConfig) GetNodeID() string { 353 if a == nil || a.NodeID == nil { 354 return "" 355 } 356 return *a.NodeID 357} 358 359// GetOwner returns the Owner field. 360func (a *AppConfig) GetOwner() *User { 361 if a == nil { 362 return nil 363 } 364 return a.Owner 365} 366 367// GetPEM returns the PEM field if it's non-nil, zero value otherwise. 368func (a *AppConfig) GetPEM() string { 369 if a == nil || a.PEM == nil { 370 return "" 371 } 372 return *a.PEM 373} 374 375// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 376func (a *AppConfig) GetUpdatedAt() Timestamp { 377 if a == nil || a.UpdatedAt == nil { 378 return Timestamp{} 379 } 380 return *a.UpdatedAt 381} 382 383// GetWebhookSecret returns the WebhookSecret field if it's non-nil, zero value otherwise. 384func (a *AppConfig) GetWebhookSecret() string { 385 if a == nil || a.WebhookSecret == nil { 386 return "" 387 } 388 return *a.WebhookSecret 389} 390 391// GetArchiveDownloadURL returns the ArchiveDownloadURL field if it's non-nil, zero value otherwise. 392func (a *Artifact) GetArchiveDownloadURL() string { 393 if a == nil || a.ArchiveDownloadURL == nil { 394 return "" 395 } 396 return *a.ArchiveDownloadURL 397} 398 399// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 400func (a *Artifact) GetCreatedAt() Timestamp { 401 if a == nil || a.CreatedAt == nil { 402 return Timestamp{} 403 } 404 return *a.CreatedAt 405} 406 407// GetExpired returns the Expired field if it's non-nil, zero value otherwise. 408func (a *Artifact) GetExpired() bool { 409 if a == nil || a.Expired == nil { 410 return false 411 } 412 return *a.Expired 413} 414 415// GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 416func (a *Artifact) GetExpiresAt() Timestamp { 417 if a == nil || a.ExpiresAt == nil { 418 return Timestamp{} 419 } 420 return *a.ExpiresAt 421} 422 423// GetID returns the ID field if it's non-nil, zero value otherwise. 424func (a *Artifact) GetID() int64 { 425 if a == nil || a.ID == nil { 426 return 0 427 } 428 return *a.ID 429} 430 431// GetName returns the Name field if it's non-nil, zero value otherwise. 432func (a *Artifact) GetName() string { 433 if a == nil || a.Name == nil { 434 return "" 435 } 436 return *a.Name 437} 438 439// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 440func (a *Artifact) GetNodeID() string { 441 if a == nil || a.NodeID == nil { 442 return "" 443 } 444 return *a.NodeID 445} 446 447// GetSizeInBytes returns the SizeInBytes field if it's non-nil, zero value otherwise. 448func (a *Artifact) GetSizeInBytes() int64 { 449 if a == nil || a.SizeInBytes == nil { 450 return 0 451 } 452 return *a.SizeInBytes 453} 454 455// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 456func (a *ArtifactList) GetTotalCount() int64 { 457 if a == nil || a.TotalCount == nil { 458 return 0 459 } 460 return *a.TotalCount 461} 462 463// GetBody returns the Body field if it's non-nil, zero value otherwise. 464func (a *Attachment) GetBody() string { 465 if a == nil || a.Body == nil { 466 return "" 467 } 468 return *a.Body 469} 470 471// GetID returns the ID field if it's non-nil, zero value otherwise. 472func (a *Attachment) GetID() int64 { 473 if a == nil || a.ID == nil { 474 return 0 475 } 476 return *a.ID 477} 478 479// GetTitle returns the Title field if it's non-nil, zero value otherwise. 480func (a *Attachment) GetTitle() string { 481 if a == nil || a.Title == nil { 482 return "" 483 } 484 return *a.Title 485} 486 487// GetApp returns the App field. 488func (a *Authorization) GetApp() *AuthorizationApp { 489 if a == nil { 490 return nil 491 } 492 return a.App 493} 494 495// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 496func (a *Authorization) GetCreatedAt() Timestamp { 497 if a == nil || a.CreatedAt == nil { 498 return Timestamp{} 499 } 500 return *a.CreatedAt 501} 502 503// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 504func (a *Authorization) GetFingerprint() string { 505 if a == nil || a.Fingerprint == nil { 506 return "" 507 } 508 return *a.Fingerprint 509} 510 511// GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. 512func (a *Authorization) GetHashedToken() string { 513 if a == nil || a.HashedToken == nil { 514 return "" 515 } 516 return *a.HashedToken 517} 518 519// GetID returns the ID field if it's non-nil, zero value otherwise. 520func (a *Authorization) GetID() int64 { 521 if a == nil || a.ID == nil { 522 return 0 523 } 524 return *a.ID 525} 526 527// GetNote returns the Note field if it's non-nil, zero value otherwise. 528func (a *Authorization) GetNote() string { 529 if a == nil || a.Note == nil { 530 return "" 531 } 532 return *a.Note 533} 534 535// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 536func (a *Authorization) GetNoteURL() string { 537 if a == nil || a.NoteURL == nil { 538 return "" 539 } 540 return *a.NoteURL 541} 542 543// GetToken returns the Token field if it's non-nil, zero value otherwise. 544func (a *Authorization) GetToken() string { 545 if a == nil || a.Token == nil { 546 return "" 547 } 548 return *a.Token 549} 550 551// GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. 552func (a *Authorization) GetTokenLastEight() string { 553 if a == nil || a.TokenLastEight == nil { 554 return "" 555 } 556 return *a.TokenLastEight 557} 558 559// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 560func (a *Authorization) GetUpdatedAt() Timestamp { 561 if a == nil || a.UpdatedAt == nil { 562 return Timestamp{} 563 } 564 return *a.UpdatedAt 565} 566 567// GetURL returns the URL field if it's non-nil, zero value otherwise. 568func (a *Authorization) GetURL() string { 569 if a == nil || a.URL == nil { 570 return "" 571 } 572 return *a.URL 573} 574 575// GetUser returns the User field. 576func (a *Authorization) GetUser() *User { 577 if a == nil { 578 return nil 579 } 580 return a.User 581} 582 583// GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 584func (a *AuthorizationApp) GetClientID() string { 585 if a == nil || a.ClientID == nil { 586 return "" 587 } 588 return *a.ClientID 589} 590 591// GetName returns the Name field if it's non-nil, zero value otherwise. 592func (a *AuthorizationApp) GetName() string { 593 if a == nil || a.Name == nil { 594 return "" 595 } 596 return *a.Name 597} 598 599// GetURL returns the URL field if it's non-nil, zero value otherwise. 600func (a *AuthorizationApp) GetURL() string { 601 if a == nil || a.URL == nil { 602 return "" 603 } 604 return *a.URL 605} 606 607// GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 608func (a *AuthorizationRequest) GetClientID() string { 609 if a == nil || a.ClientID == nil { 610 return "" 611 } 612 return *a.ClientID 613} 614 615// GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. 616func (a *AuthorizationRequest) GetClientSecret() string { 617 if a == nil || a.ClientSecret == nil { 618 return "" 619 } 620 return *a.ClientSecret 621} 622 623// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 624func (a *AuthorizationRequest) GetFingerprint() string { 625 if a == nil || a.Fingerprint == nil { 626 return "" 627 } 628 return *a.Fingerprint 629} 630 631// GetNote returns the Note field if it's non-nil, zero value otherwise. 632func (a *AuthorizationRequest) GetNote() string { 633 if a == nil || a.Note == nil { 634 return "" 635 } 636 return *a.Note 637} 638 639// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 640func (a *AuthorizationRequest) GetNoteURL() string { 641 if a == nil || a.NoteURL == nil { 642 return "" 643 } 644 return *a.NoteURL 645} 646 647// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 648func (a *AuthorizationUpdateRequest) GetFingerprint() string { 649 if a == nil || a.Fingerprint == nil { 650 return "" 651 } 652 return *a.Fingerprint 653} 654 655// GetNote returns the Note field if it's non-nil, zero value otherwise. 656func (a *AuthorizationUpdateRequest) GetNote() string { 657 if a == nil || a.Note == nil { 658 return "" 659 } 660 return *a.Note 661} 662 663// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 664func (a *AuthorizationUpdateRequest) GetNoteURL() string { 665 if a == nil || a.NoteURL == nil { 666 return "" 667 } 668 return *a.NoteURL 669} 670 671// GetAppID returns the AppID field if it's non-nil, zero value otherwise. 672func (a *AutoTriggerCheck) GetAppID() int64 { 673 if a == nil || a.AppID == nil { 674 return 0 675 } 676 return *a.AppID 677} 678 679// GetSetting returns the Setting field if it's non-nil, zero value otherwise. 680func (a *AutoTriggerCheck) GetSetting() bool { 681 if a == nil || a.Setting == nil { 682 return false 683 } 684 return *a.Setting 685} 686 687// GetContent returns the Content field if it's non-nil, zero value otherwise. 688func (b *Blob) GetContent() string { 689 if b == nil || b.Content == nil { 690 return "" 691 } 692 return *b.Content 693} 694 695// GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 696func (b *Blob) GetEncoding() string { 697 if b == nil || b.Encoding == nil { 698 return "" 699 } 700 return *b.Encoding 701} 702 703// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 704func (b *Blob) GetNodeID() string { 705 if b == nil || b.NodeID == nil { 706 return "" 707 } 708 return *b.NodeID 709} 710 711// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 712func (b *Blob) GetSHA() string { 713 if b == nil || b.SHA == nil { 714 return "" 715 } 716 return *b.SHA 717} 718 719// GetSize returns the Size field if it's non-nil, zero value otherwise. 720func (b *Blob) GetSize() int { 721 if b == nil || b.Size == nil { 722 return 0 723 } 724 return *b.Size 725} 726 727// GetURL returns the URL field if it's non-nil, zero value otherwise. 728func (b *Blob) GetURL() string { 729 if b == nil || b.URL == nil { 730 return "" 731 } 732 return *b.URL 733} 734 735// GetCommit returns the Commit field. 736func (b *Branch) GetCommit() *RepositoryCommit { 737 if b == nil { 738 return nil 739 } 740 return b.Commit 741} 742 743// GetName returns the Name field if it's non-nil, zero value otherwise. 744func (b *Branch) GetName() string { 745 if b == nil || b.Name == nil { 746 return "" 747 } 748 return *b.Name 749} 750 751// GetProtected returns the Protected field if it's non-nil, zero value otherwise. 752func (b *Branch) GetProtected() bool { 753 if b == nil || b.Protected == nil { 754 return false 755 } 756 return *b.Protected 757} 758 759// GetCommit returns the Commit field. 760func (b *BranchCommit) GetCommit() *Commit { 761 if b == nil { 762 return nil 763 } 764 return b.Commit 765} 766 767// GetName returns the Name field if it's non-nil, zero value otherwise. 768func (b *BranchCommit) GetName() string { 769 if b == nil || b.Name == nil { 770 return "" 771 } 772 return *b.Name 773} 774 775// GetProtected returns the Protected field if it's non-nil, zero value otherwise. 776func (b *BranchCommit) GetProtected() bool { 777 if b == nil || b.Protected == nil { 778 return false 779 } 780 return *b.Protected 781} 782 783// GetProtected returns the Protected field if it's non-nil, zero value otherwise. 784func (b *BranchListOptions) GetProtected() bool { 785 if b == nil || b.Protected == nil { 786 return false 787 } 788 return *b.Protected 789} 790 791// GetApp returns the App field. 792func (c *CheckRun) GetApp() *App { 793 if c == nil { 794 return nil 795 } 796 return c.App 797} 798 799// GetCheckSuite returns the CheckSuite field. 800func (c *CheckRun) GetCheckSuite() *CheckSuite { 801 if c == nil { 802 return nil 803 } 804 return c.CheckSuite 805} 806 807// GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 808func (c *CheckRun) GetCompletedAt() Timestamp { 809 if c == nil || c.CompletedAt == nil { 810 return Timestamp{} 811 } 812 return *c.CompletedAt 813} 814 815// GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 816func (c *CheckRun) GetConclusion() string { 817 if c == nil || c.Conclusion == nil { 818 return "" 819 } 820 return *c.Conclusion 821} 822 823// GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 824func (c *CheckRun) GetDetailsURL() string { 825 if c == nil || c.DetailsURL == nil { 826 return "" 827 } 828 return *c.DetailsURL 829} 830 831// GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 832func (c *CheckRun) GetExternalID() string { 833 if c == nil || c.ExternalID == nil { 834 return "" 835 } 836 return *c.ExternalID 837} 838 839// GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 840func (c *CheckRun) GetHeadSHA() string { 841 if c == nil || c.HeadSHA == nil { 842 return "" 843 } 844 return *c.HeadSHA 845} 846 847// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 848func (c *CheckRun) GetHTMLURL() string { 849 if c == nil || c.HTMLURL == nil { 850 return "" 851 } 852 return *c.HTMLURL 853} 854 855// GetID returns the ID field if it's non-nil, zero value otherwise. 856func (c *CheckRun) GetID() int64 { 857 if c == nil || c.ID == nil { 858 return 0 859 } 860 return *c.ID 861} 862 863// GetName returns the Name field if it's non-nil, zero value otherwise. 864func (c *CheckRun) GetName() string { 865 if c == nil || c.Name == nil { 866 return "" 867 } 868 return *c.Name 869} 870 871// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 872func (c *CheckRun) GetNodeID() string { 873 if c == nil || c.NodeID == nil { 874 return "" 875 } 876 return *c.NodeID 877} 878 879// GetOutput returns the Output field. 880func (c *CheckRun) GetOutput() *CheckRunOutput { 881 if c == nil { 882 return nil 883 } 884 return c.Output 885} 886 887// GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 888func (c *CheckRun) GetStartedAt() Timestamp { 889 if c == nil || c.StartedAt == nil { 890 return Timestamp{} 891 } 892 return *c.StartedAt 893} 894 895// GetStatus returns the Status field if it's non-nil, zero value otherwise. 896func (c *CheckRun) GetStatus() string { 897 if c == nil || c.Status == nil { 898 return "" 899 } 900 return *c.Status 901} 902 903// GetURL returns the URL field if it's non-nil, zero value otherwise. 904func (c *CheckRun) GetURL() string { 905 if c == nil || c.URL == nil { 906 return "" 907 } 908 return *c.URL 909} 910 911// GetAnnotationLevel returns the AnnotationLevel field if it's non-nil, zero value otherwise. 912func (c *CheckRunAnnotation) GetAnnotationLevel() string { 913 if c == nil || c.AnnotationLevel == nil { 914 return "" 915 } 916 return *c.AnnotationLevel 917} 918 919// GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. 920func (c *CheckRunAnnotation) GetEndColumn() int { 921 if c == nil || c.EndColumn == nil { 922 return 0 923 } 924 return *c.EndColumn 925} 926 927// GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. 928func (c *CheckRunAnnotation) GetEndLine() int { 929 if c == nil || c.EndLine == nil { 930 return 0 931 } 932 return *c.EndLine 933} 934 935// GetMessage returns the Message field if it's non-nil, zero value otherwise. 936func (c *CheckRunAnnotation) GetMessage() string { 937 if c == nil || c.Message == nil { 938 return "" 939 } 940 return *c.Message 941} 942 943// GetPath returns the Path field if it's non-nil, zero value otherwise. 944func (c *CheckRunAnnotation) GetPath() string { 945 if c == nil || c.Path == nil { 946 return "" 947 } 948 return *c.Path 949} 950 951// GetRawDetails returns the RawDetails field if it's non-nil, zero value otherwise. 952func (c *CheckRunAnnotation) GetRawDetails() string { 953 if c == nil || c.RawDetails == nil { 954 return "" 955 } 956 return *c.RawDetails 957} 958 959// GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. 960func (c *CheckRunAnnotation) GetStartColumn() int { 961 if c == nil || c.StartColumn == nil { 962 return 0 963 } 964 return *c.StartColumn 965} 966 967// GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 968func (c *CheckRunAnnotation) GetStartLine() int { 969 if c == nil || c.StartLine == nil { 970 return 0 971 } 972 return *c.StartLine 973} 974 975// GetTitle returns the Title field if it's non-nil, zero value otherwise. 976func (c *CheckRunAnnotation) GetTitle() string { 977 if c == nil || c.Title == nil { 978 return "" 979 } 980 return *c.Title 981} 982 983// GetAction returns the Action field if it's non-nil, zero value otherwise. 984func (c *CheckRunEvent) GetAction() string { 985 if c == nil || c.Action == nil { 986 return "" 987 } 988 return *c.Action 989} 990 991// GetCheckRun returns the CheckRun field. 992func (c *CheckRunEvent) GetCheckRun() *CheckRun { 993 if c == nil { 994 return nil 995 } 996 return c.CheckRun 997} 998 999// GetInstallation returns the Installation field. 1000func (c *CheckRunEvent) GetInstallation() *Installation { 1001 if c == nil { 1002 return nil 1003 } 1004 return c.Installation 1005} 1006 1007// GetOrg returns the Org field. 1008func (c *CheckRunEvent) GetOrg() *Organization { 1009 if c == nil { 1010 return nil 1011 } 1012 return c.Org 1013} 1014 1015// GetRepo returns the Repo field. 1016func (c *CheckRunEvent) GetRepo() *Repository { 1017 if c == nil { 1018 return nil 1019 } 1020 return c.Repo 1021} 1022 1023// GetRequestedAction returns the RequestedAction field. 1024func (c *CheckRunEvent) GetRequestedAction() *RequestedAction { 1025 if c == nil { 1026 return nil 1027 } 1028 return c.RequestedAction 1029} 1030 1031// GetSender returns the Sender field. 1032func (c *CheckRunEvent) GetSender() *User { 1033 if c == nil { 1034 return nil 1035 } 1036 return c.Sender 1037} 1038 1039// GetAlt returns the Alt field if it's non-nil, zero value otherwise. 1040func (c *CheckRunImage) GetAlt() string { 1041 if c == nil || c.Alt == nil { 1042 return "" 1043 } 1044 return *c.Alt 1045} 1046 1047// GetCaption returns the Caption field if it's non-nil, zero value otherwise. 1048func (c *CheckRunImage) GetCaption() string { 1049 if c == nil || c.Caption == nil { 1050 return "" 1051 } 1052 return *c.Caption 1053} 1054 1055// GetImageURL returns the ImageURL field if it's non-nil, zero value otherwise. 1056func (c *CheckRunImage) GetImageURL() string { 1057 if c == nil || c.ImageURL == nil { 1058 return "" 1059 } 1060 return *c.ImageURL 1061} 1062 1063// GetAnnotationsCount returns the AnnotationsCount field if it's non-nil, zero value otherwise. 1064func (c *CheckRunOutput) GetAnnotationsCount() int { 1065 if c == nil || c.AnnotationsCount == nil { 1066 return 0 1067 } 1068 return *c.AnnotationsCount 1069} 1070 1071// GetAnnotationsURL returns the AnnotationsURL field if it's non-nil, zero value otherwise. 1072func (c *CheckRunOutput) GetAnnotationsURL() string { 1073 if c == nil || c.AnnotationsURL == nil { 1074 return "" 1075 } 1076 return *c.AnnotationsURL 1077} 1078 1079// GetSummary returns the Summary field if it's non-nil, zero value otherwise. 1080func (c *CheckRunOutput) GetSummary() string { 1081 if c == nil || c.Summary == nil { 1082 return "" 1083 } 1084 return *c.Summary 1085} 1086 1087// GetText returns the Text field if it's non-nil, zero value otherwise. 1088func (c *CheckRunOutput) GetText() string { 1089 if c == nil || c.Text == nil { 1090 return "" 1091 } 1092 return *c.Text 1093} 1094 1095// GetTitle returns the Title field if it's non-nil, zero value otherwise. 1096func (c *CheckRunOutput) GetTitle() string { 1097 if c == nil || c.Title == nil { 1098 return "" 1099 } 1100 return *c.Title 1101} 1102 1103// GetAfterSHA returns the AfterSHA field if it's non-nil, zero value otherwise. 1104func (c *CheckSuite) GetAfterSHA() string { 1105 if c == nil || c.AfterSHA == nil { 1106 return "" 1107 } 1108 return *c.AfterSHA 1109} 1110 1111// GetApp returns the App field. 1112func (c *CheckSuite) GetApp() *App { 1113 if c == nil { 1114 return nil 1115 } 1116 return c.App 1117} 1118 1119// GetBeforeSHA returns the BeforeSHA field if it's non-nil, zero value otherwise. 1120func (c *CheckSuite) GetBeforeSHA() string { 1121 if c == nil || c.BeforeSHA == nil { 1122 return "" 1123 } 1124 return *c.BeforeSHA 1125} 1126 1127// GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 1128func (c *CheckSuite) GetConclusion() string { 1129 if c == nil || c.Conclusion == nil { 1130 return "" 1131 } 1132 return *c.Conclusion 1133} 1134 1135// GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 1136func (c *CheckSuite) GetHeadBranch() string { 1137 if c == nil || c.HeadBranch == nil { 1138 return "" 1139 } 1140 return *c.HeadBranch 1141} 1142 1143// GetHeadCommit returns the HeadCommit field. 1144func (c *CheckSuite) GetHeadCommit() *Commit { 1145 if c == nil { 1146 return nil 1147 } 1148 return c.HeadCommit 1149} 1150 1151// GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 1152func (c *CheckSuite) GetHeadSHA() string { 1153 if c == nil || c.HeadSHA == nil { 1154 return "" 1155 } 1156 return *c.HeadSHA 1157} 1158 1159// GetID returns the ID field if it's non-nil, zero value otherwise. 1160func (c *CheckSuite) GetID() int64 { 1161 if c == nil || c.ID == nil { 1162 return 0 1163 } 1164 return *c.ID 1165} 1166 1167// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 1168func (c *CheckSuite) GetNodeID() string { 1169 if c == nil || c.NodeID == nil { 1170 return "" 1171 } 1172 return *c.NodeID 1173} 1174 1175// GetRepository returns the Repository field. 1176func (c *CheckSuite) GetRepository() *Repository { 1177 if c == nil { 1178 return nil 1179 } 1180 return c.Repository 1181} 1182 1183// GetStatus returns the Status field if it's non-nil, zero value otherwise. 1184func (c *CheckSuite) GetStatus() string { 1185 if c == nil || c.Status == nil { 1186 return "" 1187 } 1188 return *c.Status 1189} 1190 1191// GetURL returns the URL field if it's non-nil, zero value otherwise. 1192func (c *CheckSuite) GetURL() string { 1193 if c == nil || c.URL == nil { 1194 return "" 1195 } 1196 return *c.URL 1197} 1198 1199// GetAction returns the Action field if it's non-nil, zero value otherwise. 1200func (c *CheckSuiteEvent) GetAction() string { 1201 if c == nil || c.Action == nil { 1202 return "" 1203 } 1204 return *c.Action 1205} 1206 1207// GetCheckSuite returns the CheckSuite field. 1208func (c *CheckSuiteEvent) GetCheckSuite() *CheckSuite { 1209 if c == nil { 1210 return nil 1211 } 1212 return c.CheckSuite 1213} 1214 1215// GetInstallation returns the Installation field. 1216func (c *CheckSuiteEvent) GetInstallation() *Installation { 1217 if c == nil { 1218 return nil 1219 } 1220 return c.Installation 1221} 1222 1223// GetOrg returns the Org field. 1224func (c *CheckSuiteEvent) GetOrg() *Organization { 1225 if c == nil { 1226 return nil 1227 } 1228 return c.Org 1229} 1230 1231// GetRepo returns the Repo field. 1232func (c *CheckSuiteEvent) GetRepo() *Repository { 1233 if c == nil { 1234 return nil 1235 } 1236 return c.Repo 1237} 1238 1239// GetSender returns the Sender field. 1240func (c *CheckSuiteEvent) GetSender() *User { 1241 if c == nil { 1242 return nil 1243 } 1244 return c.Sender 1245} 1246 1247// GetPreferences returns the Preferences field. 1248func (c *CheckSuitePreferenceResults) GetPreferences() *PreferenceList { 1249 if c == nil { 1250 return nil 1251 } 1252 return c.Preferences 1253} 1254 1255// GetRepository returns the Repository field. 1256func (c *CheckSuitePreferenceResults) GetRepository() *Repository { 1257 if c == nil { 1258 return nil 1259 } 1260 return c.Repository 1261} 1262 1263// GetBody returns the Body field if it's non-nil, zero value otherwise. 1264func (c *CodeOfConduct) GetBody() string { 1265 if c == nil || c.Body == nil { 1266 return "" 1267 } 1268 return *c.Body 1269} 1270 1271// GetKey returns the Key field if it's non-nil, zero value otherwise. 1272func (c *CodeOfConduct) GetKey() string { 1273 if c == nil || c.Key == nil { 1274 return "" 1275 } 1276 return *c.Key 1277} 1278 1279// GetName returns the Name field if it's non-nil, zero value otherwise. 1280func (c *CodeOfConduct) GetName() string { 1281 if c == nil || c.Name == nil { 1282 return "" 1283 } 1284 return *c.Name 1285} 1286 1287// GetURL returns the URL field if it's non-nil, zero value otherwise. 1288func (c *CodeOfConduct) GetURL() string { 1289 if c == nil || c.URL == nil { 1290 return "" 1291 } 1292 return *c.URL 1293} 1294 1295// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1296func (c *CodeResult) GetHTMLURL() string { 1297 if c == nil || c.HTMLURL == nil { 1298 return "" 1299 } 1300 return *c.HTMLURL 1301} 1302 1303// GetName returns the Name field if it's non-nil, zero value otherwise. 1304func (c *CodeResult) GetName() string { 1305 if c == nil || c.Name == nil { 1306 return "" 1307 } 1308 return *c.Name 1309} 1310 1311// GetPath returns the Path field if it's non-nil, zero value otherwise. 1312func (c *CodeResult) GetPath() string { 1313 if c == nil || c.Path == nil { 1314 return "" 1315 } 1316 return *c.Path 1317} 1318 1319// GetRepository returns the Repository field. 1320func (c *CodeResult) GetRepository() *Repository { 1321 if c == nil { 1322 return nil 1323 } 1324 return c.Repository 1325} 1326 1327// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1328func (c *CodeResult) GetSHA() string { 1329 if c == nil || c.SHA == nil { 1330 return "" 1331 } 1332 return *c.SHA 1333} 1334 1335// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 1336func (c *CodeSearchResult) GetIncompleteResults() bool { 1337 if c == nil || c.IncompleteResults == nil { 1338 return false 1339 } 1340 return *c.IncompleteResults 1341} 1342 1343// GetTotal returns the Total field if it's non-nil, zero value otherwise. 1344func (c *CodeSearchResult) GetTotal() int { 1345 if c == nil || c.Total == nil { 1346 return 0 1347 } 1348 return *c.Total 1349} 1350 1351// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1352func (c *CollaboratorInvitation) GetCreatedAt() Timestamp { 1353 if c == nil || c.CreatedAt == nil { 1354 return Timestamp{} 1355 } 1356 return *c.CreatedAt 1357} 1358 1359// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1360func (c *CollaboratorInvitation) GetHTMLURL() string { 1361 if c == nil || c.HTMLURL == nil { 1362 return "" 1363 } 1364 return *c.HTMLURL 1365} 1366 1367// GetID returns the ID field if it's non-nil, zero value otherwise. 1368func (c *CollaboratorInvitation) GetID() int64 { 1369 if c == nil || c.ID == nil { 1370 return 0 1371 } 1372 return *c.ID 1373} 1374 1375// GetInvitee returns the Invitee field. 1376func (c *CollaboratorInvitation) GetInvitee() *User { 1377 if c == nil { 1378 return nil 1379 } 1380 return c.Invitee 1381} 1382 1383// GetInviter returns the Inviter field. 1384func (c *CollaboratorInvitation) GetInviter() *User { 1385 if c == nil { 1386 return nil 1387 } 1388 return c.Inviter 1389} 1390 1391// GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 1392func (c *CollaboratorInvitation) GetPermissions() string { 1393 if c == nil || c.Permissions == nil { 1394 return "" 1395 } 1396 return *c.Permissions 1397} 1398 1399// GetRepo returns the Repo field. 1400func (c *CollaboratorInvitation) GetRepo() *Repository { 1401 if c == nil { 1402 return nil 1403 } 1404 return c.Repo 1405} 1406 1407// GetURL returns the URL field if it's non-nil, zero value otherwise. 1408func (c *CollaboratorInvitation) GetURL() string { 1409 if c == nil || c.URL == nil { 1410 return "" 1411 } 1412 return *c.URL 1413} 1414 1415// GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 1416func (c *CombinedStatus) GetCommitURL() string { 1417 if c == nil || c.CommitURL == nil { 1418 return "" 1419 } 1420 return *c.CommitURL 1421} 1422 1423// GetName returns the Name field if it's non-nil, zero value otherwise. 1424func (c *CombinedStatus) GetName() string { 1425 if c == nil || c.Name == nil { 1426 return "" 1427 } 1428 return *c.Name 1429} 1430 1431// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 1432func (c *CombinedStatus) GetRepositoryURL() string { 1433 if c == nil || c.RepositoryURL == nil { 1434 return "" 1435 } 1436 return *c.RepositoryURL 1437} 1438 1439// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1440func (c *CombinedStatus) GetSHA() string { 1441 if c == nil || c.SHA == nil { 1442 return "" 1443 } 1444 return *c.SHA 1445} 1446 1447// GetState returns the State field if it's non-nil, zero value otherwise. 1448func (c *CombinedStatus) GetState() string { 1449 if c == nil || c.State == nil { 1450 return "" 1451 } 1452 return *c.State 1453} 1454 1455// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 1456func (c *CombinedStatus) GetTotalCount() int { 1457 if c == nil || c.TotalCount == nil { 1458 return 0 1459 } 1460 return *c.TotalCount 1461} 1462 1463// GetTotalCommitComments returns the TotalCommitComments field if it's non-nil, zero value otherwise. 1464func (c *CommentStats) GetTotalCommitComments() int { 1465 if c == nil || c.TotalCommitComments == nil { 1466 return 0 1467 } 1468 return *c.TotalCommitComments 1469} 1470 1471// GetTotalGistComments returns the TotalGistComments field if it's non-nil, zero value otherwise. 1472func (c *CommentStats) GetTotalGistComments() int { 1473 if c == nil || c.TotalGistComments == nil { 1474 return 0 1475 } 1476 return *c.TotalGistComments 1477} 1478 1479// GetTotalIssueComments returns the TotalIssueComments field if it's non-nil, zero value otherwise. 1480func (c *CommentStats) GetTotalIssueComments() int { 1481 if c == nil || c.TotalIssueComments == nil { 1482 return 0 1483 } 1484 return *c.TotalIssueComments 1485} 1486 1487// GetTotalPullRequestComments returns the TotalPullRequestComments field if it's non-nil, zero value otherwise. 1488func (c *CommentStats) GetTotalPullRequestComments() int { 1489 if c == nil || c.TotalPullRequestComments == nil { 1490 return 0 1491 } 1492 return *c.TotalPullRequestComments 1493} 1494 1495// GetAuthor returns the Author field. 1496func (c *Commit) GetAuthor() *CommitAuthor { 1497 if c == nil { 1498 return nil 1499 } 1500 return c.Author 1501} 1502 1503// GetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise. 1504func (c *Commit) GetCommentCount() int { 1505 if c == nil || c.CommentCount == nil { 1506 return 0 1507 } 1508 return *c.CommentCount 1509} 1510 1511// GetCommitter returns the Committer field. 1512func (c *Commit) GetCommitter() *CommitAuthor { 1513 if c == nil { 1514 return nil 1515 } 1516 return c.Committer 1517} 1518 1519// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1520func (c *Commit) GetHTMLURL() string { 1521 if c == nil || c.HTMLURL == nil { 1522 return "" 1523 } 1524 return *c.HTMLURL 1525} 1526 1527// GetMessage returns the Message field if it's non-nil, zero value otherwise. 1528func (c *Commit) GetMessage() string { 1529 if c == nil || c.Message == nil { 1530 return "" 1531 } 1532 return *c.Message 1533} 1534 1535// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 1536func (c *Commit) GetNodeID() string { 1537 if c == nil || c.NodeID == nil { 1538 return "" 1539 } 1540 return *c.NodeID 1541} 1542 1543// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1544func (c *Commit) GetSHA() string { 1545 if c == nil || c.SHA == nil { 1546 return "" 1547 } 1548 return *c.SHA 1549} 1550 1551// GetStats returns the Stats field. 1552func (c *Commit) GetStats() *CommitStats { 1553 if c == nil { 1554 return nil 1555 } 1556 return c.Stats 1557} 1558 1559// GetTree returns the Tree field. 1560func (c *Commit) GetTree() *Tree { 1561 if c == nil { 1562 return nil 1563 } 1564 return c.Tree 1565} 1566 1567// GetURL returns the URL field if it's non-nil, zero value otherwise. 1568func (c *Commit) GetURL() string { 1569 if c == nil || c.URL == nil { 1570 return "" 1571 } 1572 return *c.URL 1573} 1574 1575// GetVerification returns the Verification field. 1576func (c *Commit) GetVerification() *SignatureVerification { 1577 if c == nil { 1578 return nil 1579 } 1580 return c.Verification 1581} 1582 1583// GetDate returns the Date field if it's non-nil, zero value otherwise. 1584func (c *CommitAuthor) GetDate() time.Time { 1585 if c == nil || c.Date == nil { 1586 return time.Time{} 1587 } 1588 return *c.Date 1589} 1590 1591// GetEmail returns the Email field if it's non-nil, zero value otherwise. 1592func (c *CommitAuthor) GetEmail() string { 1593 if c == nil || c.Email == nil { 1594 return "" 1595 } 1596 return *c.Email 1597} 1598 1599// GetLogin returns the Login field if it's non-nil, zero value otherwise. 1600func (c *CommitAuthor) GetLogin() string { 1601 if c == nil || c.Login == nil { 1602 return "" 1603 } 1604 return *c.Login 1605} 1606 1607// GetName returns the Name field if it's non-nil, zero value otherwise. 1608func (c *CommitAuthor) GetName() string { 1609 if c == nil || c.Name == nil { 1610 return "" 1611 } 1612 return *c.Name 1613} 1614 1615// GetAction returns the Action field if it's non-nil, zero value otherwise. 1616func (c *CommitCommentEvent) GetAction() string { 1617 if c == nil || c.Action == nil { 1618 return "" 1619 } 1620 return *c.Action 1621} 1622 1623// GetComment returns the Comment field. 1624func (c *CommitCommentEvent) GetComment() *RepositoryComment { 1625 if c == nil { 1626 return nil 1627 } 1628 return c.Comment 1629} 1630 1631// GetInstallation returns the Installation field. 1632func (c *CommitCommentEvent) GetInstallation() *Installation { 1633 if c == nil { 1634 return nil 1635 } 1636 return c.Installation 1637} 1638 1639// GetRepo returns the Repo field. 1640func (c *CommitCommentEvent) GetRepo() *Repository { 1641 if c == nil { 1642 return nil 1643 } 1644 return c.Repo 1645} 1646 1647// GetSender returns the Sender field. 1648func (c *CommitCommentEvent) GetSender() *User { 1649 if c == nil { 1650 return nil 1651 } 1652 return c.Sender 1653} 1654 1655// GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 1656func (c *CommitFile) GetAdditions() int { 1657 if c == nil || c.Additions == nil { 1658 return 0 1659 } 1660 return *c.Additions 1661} 1662 1663// GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise. 1664func (c *CommitFile) GetBlobURL() string { 1665 if c == nil || c.BlobURL == nil { 1666 return "" 1667 } 1668 return *c.BlobURL 1669} 1670 1671// GetChanges returns the Changes field if it's non-nil, zero value otherwise. 1672func (c *CommitFile) GetChanges() int { 1673 if c == nil || c.Changes == nil { 1674 return 0 1675 } 1676 return *c.Changes 1677} 1678 1679// GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 1680func (c *CommitFile) GetContentsURL() string { 1681 if c == nil || c.ContentsURL == nil { 1682 return "" 1683 } 1684 return *c.ContentsURL 1685} 1686 1687// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 1688func (c *CommitFile) GetDeletions() int { 1689 if c == nil || c.Deletions == nil { 1690 return 0 1691 } 1692 return *c.Deletions 1693} 1694 1695// GetFilename returns the Filename field if it's non-nil, zero value otherwise. 1696func (c *CommitFile) GetFilename() string { 1697 if c == nil || c.Filename == nil { 1698 return "" 1699 } 1700 return *c.Filename 1701} 1702 1703// GetPatch returns the Patch field if it's non-nil, zero value otherwise. 1704func (c *CommitFile) GetPatch() string { 1705 if c == nil || c.Patch == nil { 1706 return "" 1707 } 1708 return *c.Patch 1709} 1710 1711// GetPreviousFilename returns the PreviousFilename field if it's non-nil, zero value otherwise. 1712func (c *CommitFile) GetPreviousFilename() string { 1713 if c == nil || c.PreviousFilename == nil { 1714 return "" 1715 } 1716 return *c.PreviousFilename 1717} 1718 1719// GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 1720func (c *CommitFile) GetRawURL() string { 1721 if c == nil || c.RawURL == nil { 1722 return "" 1723 } 1724 return *c.RawURL 1725} 1726 1727// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1728func (c *CommitFile) GetSHA() string { 1729 if c == nil || c.SHA == nil { 1730 return "" 1731 } 1732 return *c.SHA 1733} 1734 1735// GetStatus returns the Status field if it's non-nil, zero value otherwise. 1736func (c *CommitFile) GetStatus() string { 1737 if c == nil || c.Status == nil { 1738 return "" 1739 } 1740 return *c.Status 1741} 1742 1743// GetAuthor returns the Author field. 1744func (c *CommitResult) GetAuthor() *User { 1745 if c == nil { 1746 return nil 1747 } 1748 return c.Author 1749} 1750 1751// GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 1752func (c *CommitResult) GetCommentsURL() string { 1753 if c == nil || c.CommentsURL == nil { 1754 return "" 1755 } 1756 return *c.CommentsURL 1757} 1758 1759// GetCommit returns the Commit field. 1760func (c *CommitResult) GetCommit() *Commit { 1761 if c == nil { 1762 return nil 1763 } 1764 return c.Commit 1765} 1766 1767// GetCommitter returns the Committer field. 1768func (c *CommitResult) GetCommitter() *User { 1769 if c == nil { 1770 return nil 1771 } 1772 return c.Committer 1773} 1774 1775// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1776func (c *CommitResult) GetHTMLURL() string { 1777 if c == nil || c.HTMLURL == nil { 1778 return "" 1779 } 1780 return *c.HTMLURL 1781} 1782 1783// GetRepository returns the Repository field. 1784func (c *CommitResult) GetRepository() *Repository { 1785 if c == nil { 1786 return nil 1787 } 1788 return c.Repository 1789} 1790 1791// GetScore returns the Score field. 1792func (c *CommitResult) GetScore() *float64 { 1793 if c == nil { 1794 return nil 1795 } 1796 return c.Score 1797} 1798 1799// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1800func (c *CommitResult) GetSHA() string { 1801 if c == nil || c.SHA == nil { 1802 return "" 1803 } 1804 return *c.SHA 1805} 1806 1807// GetURL returns the URL field if it's non-nil, zero value otherwise. 1808func (c *CommitResult) GetURL() string { 1809 if c == nil || c.URL == nil { 1810 return "" 1811 } 1812 return *c.URL 1813} 1814 1815// GetAheadBy returns the AheadBy field if it's non-nil, zero value otherwise. 1816func (c *CommitsComparison) GetAheadBy() int { 1817 if c == nil || c.AheadBy == nil { 1818 return 0 1819 } 1820 return *c.AheadBy 1821} 1822 1823// GetBaseCommit returns the BaseCommit field. 1824func (c *CommitsComparison) GetBaseCommit() *RepositoryCommit { 1825 if c == nil { 1826 return nil 1827 } 1828 return c.BaseCommit 1829} 1830 1831// GetBehindBy returns the BehindBy field if it's non-nil, zero value otherwise. 1832func (c *CommitsComparison) GetBehindBy() int { 1833 if c == nil || c.BehindBy == nil { 1834 return 0 1835 } 1836 return *c.BehindBy 1837} 1838 1839// GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 1840func (c *CommitsComparison) GetDiffURL() string { 1841 if c == nil || c.DiffURL == nil { 1842 return "" 1843 } 1844 return *c.DiffURL 1845} 1846 1847// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1848func (c *CommitsComparison) GetHTMLURL() string { 1849 if c == nil || c.HTMLURL == nil { 1850 return "" 1851 } 1852 return *c.HTMLURL 1853} 1854 1855// GetMergeBaseCommit returns the MergeBaseCommit field. 1856func (c *CommitsComparison) GetMergeBaseCommit() *RepositoryCommit { 1857 if c == nil { 1858 return nil 1859 } 1860 return c.MergeBaseCommit 1861} 1862 1863// GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 1864func (c *CommitsComparison) GetPatchURL() string { 1865 if c == nil || c.PatchURL == nil { 1866 return "" 1867 } 1868 return *c.PatchURL 1869} 1870 1871// GetPermalinkURL returns the PermalinkURL field if it's non-nil, zero value otherwise. 1872func (c *CommitsComparison) GetPermalinkURL() string { 1873 if c == nil || c.PermalinkURL == nil { 1874 return "" 1875 } 1876 return *c.PermalinkURL 1877} 1878 1879// GetStatus returns the Status field if it's non-nil, zero value otherwise. 1880func (c *CommitsComparison) GetStatus() string { 1881 if c == nil || c.Status == nil { 1882 return "" 1883 } 1884 return *c.Status 1885} 1886 1887// GetTotalCommits returns the TotalCommits field if it's non-nil, zero value otherwise. 1888func (c *CommitsComparison) GetTotalCommits() int { 1889 if c == nil || c.TotalCommits == nil { 1890 return 0 1891 } 1892 return *c.TotalCommits 1893} 1894 1895// GetURL returns the URL field if it's non-nil, zero value otherwise. 1896func (c *CommitsComparison) GetURL() string { 1897 if c == nil || c.URL == nil { 1898 return "" 1899 } 1900 return *c.URL 1901} 1902 1903// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 1904func (c *CommitsSearchResult) GetIncompleteResults() bool { 1905 if c == nil || c.IncompleteResults == nil { 1906 return false 1907 } 1908 return *c.IncompleteResults 1909} 1910 1911// GetTotal returns the Total field if it's non-nil, zero value otherwise. 1912func (c *CommitsSearchResult) GetTotal() int { 1913 if c == nil || c.Total == nil { 1914 return 0 1915 } 1916 return *c.Total 1917} 1918 1919// GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 1920func (c *CommitStats) GetAdditions() int { 1921 if c == nil || c.Additions == nil { 1922 return 0 1923 } 1924 return *c.Additions 1925} 1926 1927// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 1928func (c *CommitStats) GetDeletions() int { 1929 if c == nil || c.Deletions == nil { 1930 return 0 1931 } 1932 return *c.Deletions 1933} 1934 1935// GetTotal returns the Total field if it's non-nil, zero value otherwise. 1936func (c *CommitStats) GetTotal() int { 1937 if c == nil || c.Total == nil { 1938 return 0 1939 } 1940 return *c.Total 1941} 1942 1943// GetCodeOfConduct returns the CodeOfConduct field. 1944func (c *CommunityHealthFiles) GetCodeOfConduct() *Metric { 1945 if c == nil { 1946 return nil 1947 } 1948 return c.CodeOfConduct 1949} 1950 1951// GetContributing returns the Contributing field. 1952func (c *CommunityHealthFiles) GetContributing() *Metric { 1953 if c == nil { 1954 return nil 1955 } 1956 return c.Contributing 1957} 1958 1959// GetIssueTemplate returns the IssueTemplate field. 1960func (c *CommunityHealthFiles) GetIssueTemplate() *Metric { 1961 if c == nil { 1962 return nil 1963 } 1964 return c.IssueTemplate 1965} 1966 1967// GetLicense returns the License field. 1968func (c *CommunityHealthFiles) GetLicense() *Metric { 1969 if c == nil { 1970 return nil 1971 } 1972 return c.License 1973} 1974 1975// GetPullRequestTemplate returns the PullRequestTemplate field. 1976func (c *CommunityHealthFiles) GetPullRequestTemplate() *Metric { 1977 if c == nil { 1978 return nil 1979 } 1980 return c.PullRequestTemplate 1981} 1982 1983// GetReadme returns the Readme field. 1984func (c *CommunityHealthFiles) GetReadme() *Metric { 1985 if c == nil { 1986 return nil 1987 } 1988 return c.Readme 1989} 1990 1991// GetFiles returns the Files field. 1992func (c *CommunityHealthMetrics) GetFiles() *CommunityHealthFiles { 1993 if c == nil { 1994 return nil 1995 } 1996 return c.Files 1997} 1998 1999// GetHealthPercentage returns the HealthPercentage field if it's non-nil, zero value otherwise. 2000func (c *CommunityHealthMetrics) GetHealthPercentage() int { 2001 if c == nil || c.HealthPercentage == nil { 2002 return 0 2003 } 2004 return *c.HealthPercentage 2005} 2006 2007// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2008func (c *CommunityHealthMetrics) GetUpdatedAt() time.Time { 2009 if c == nil || c.UpdatedAt == nil { 2010 return time.Time{} 2011 } 2012 return *c.UpdatedAt 2013} 2014 2015// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 2016func (c *Contributor) GetAvatarURL() string { 2017 if c == nil || c.AvatarURL == nil { 2018 return "" 2019 } 2020 return *c.AvatarURL 2021} 2022 2023// GetContributions returns the Contributions field if it's non-nil, zero value otherwise. 2024func (c *Contributor) GetContributions() int { 2025 if c == nil || c.Contributions == nil { 2026 return 0 2027 } 2028 return *c.Contributions 2029} 2030 2031// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 2032func (c *Contributor) GetEventsURL() string { 2033 if c == nil || c.EventsURL == nil { 2034 return "" 2035 } 2036 return *c.EventsURL 2037} 2038 2039// GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 2040func (c *Contributor) GetFollowersURL() string { 2041 if c == nil || c.FollowersURL == nil { 2042 return "" 2043 } 2044 return *c.FollowersURL 2045} 2046 2047// GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 2048func (c *Contributor) GetFollowingURL() string { 2049 if c == nil || c.FollowingURL == nil { 2050 return "" 2051 } 2052 return *c.FollowingURL 2053} 2054 2055// GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 2056func (c *Contributor) GetGistsURL() string { 2057 if c == nil || c.GistsURL == nil { 2058 return "" 2059 } 2060 return *c.GistsURL 2061} 2062 2063// GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 2064func (c *Contributor) GetGravatarID() string { 2065 if c == nil || c.GravatarID == nil { 2066 return "" 2067 } 2068 return *c.GravatarID 2069} 2070 2071// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2072func (c *Contributor) GetHTMLURL() string { 2073 if c == nil || c.HTMLURL == nil { 2074 return "" 2075 } 2076 return *c.HTMLURL 2077} 2078 2079// GetID returns the ID field if it's non-nil, zero value otherwise. 2080func (c *Contributor) GetID() int64 { 2081 if c == nil || c.ID == nil { 2082 return 0 2083 } 2084 return *c.ID 2085} 2086 2087// GetLogin returns the Login field if it's non-nil, zero value otherwise. 2088func (c *Contributor) GetLogin() string { 2089 if c == nil || c.Login == nil { 2090 return "" 2091 } 2092 return *c.Login 2093} 2094 2095// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2096func (c *Contributor) GetNodeID() string { 2097 if c == nil || c.NodeID == nil { 2098 return "" 2099 } 2100 return *c.NodeID 2101} 2102 2103// GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 2104func (c *Contributor) GetOrganizationsURL() string { 2105 if c == nil || c.OrganizationsURL == nil { 2106 return "" 2107 } 2108 return *c.OrganizationsURL 2109} 2110 2111// GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 2112func (c *Contributor) GetReceivedEventsURL() string { 2113 if c == nil || c.ReceivedEventsURL == nil { 2114 return "" 2115 } 2116 return *c.ReceivedEventsURL 2117} 2118 2119// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 2120func (c *Contributor) GetReposURL() string { 2121 if c == nil || c.ReposURL == nil { 2122 return "" 2123 } 2124 return *c.ReposURL 2125} 2126 2127// GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 2128func (c *Contributor) GetSiteAdmin() bool { 2129 if c == nil || c.SiteAdmin == nil { 2130 return false 2131 } 2132 return *c.SiteAdmin 2133} 2134 2135// GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 2136func (c *Contributor) GetStarredURL() string { 2137 if c == nil || c.StarredURL == nil { 2138 return "" 2139 } 2140 return *c.StarredURL 2141} 2142 2143// GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 2144func (c *Contributor) GetSubscriptionsURL() string { 2145 if c == nil || c.SubscriptionsURL == nil { 2146 return "" 2147 } 2148 return *c.SubscriptionsURL 2149} 2150 2151// GetType returns the Type field if it's non-nil, zero value otherwise. 2152func (c *Contributor) GetType() string { 2153 if c == nil || c.Type == nil { 2154 return "" 2155 } 2156 return *c.Type 2157} 2158 2159// GetURL returns the URL field if it's non-nil, zero value otherwise. 2160func (c *Contributor) GetURL() string { 2161 if c == nil || c.URL == nil { 2162 return "" 2163 } 2164 return *c.URL 2165} 2166 2167// GetAuthor returns the Author field. 2168func (c *ContributorStats) GetAuthor() *Contributor { 2169 if c == nil { 2170 return nil 2171 } 2172 return c.Author 2173} 2174 2175// GetTotal returns the Total field if it's non-nil, zero value otherwise. 2176func (c *ContributorStats) GetTotal() int { 2177 if c == nil || c.Total == nil { 2178 return 0 2179 } 2180 return *c.Total 2181} 2182 2183// GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 2184func (c *CreateCheckRunOptions) GetCompletedAt() Timestamp { 2185 if c == nil || c.CompletedAt == nil { 2186 return Timestamp{} 2187 } 2188 return *c.CompletedAt 2189} 2190 2191// GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 2192func (c *CreateCheckRunOptions) GetConclusion() string { 2193 if c == nil || c.Conclusion == nil { 2194 return "" 2195 } 2196 return *c.Conclusion 2197} 2198 2199// GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 2200func (c *CreateCheckRunOptions) GetDetailsURL() string { 2201 if c == nil || c.DetailsURL == nil { 2202 return "" 2203 } 2204 return *c.DetailsURL 2205} 2206 2207// GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 2208func (c *CreateCheckRunOptions) GetExternalID() string { 2209 if c == nil || c.ExternalID == nil { 2210 return "" 2211 } 2212 return *c.ExternalID 2213} 2214 2215// GetOutput returns the Output field. 2216func (c *CreateCheckRunOptions) GetOutput() *CheckRunOutput { 2217 if c == nil { 2218 return nil 2219 } 2220 return c.Output 2221} 2222 2223// GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 2224func (c *CreateCheckRunOptions) GetStartedAt() Timestamp { 2225 if c == nil || c.StartedAt == nil { 2226 return Timestamp{} 2227 } 2228 return *c.StartedAt 2229} 2230 2231// GetStatus returns the Status field if it's non-nil, zero value otherwise. 2232func (c *CreateCheckRunOptions) GetStatus() string { 2233 if c == nil || c.Status == nil { 2234 return "" 2235 } 2236 return *c.Status 2237} 2238 2239// GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 2240func (c *CreateCheckSuiteOptions) GetHeadBranch() string { 2241 if c == nil || c.HeadBranch == nil { 2242 return "" 2243 } 2244 return *c.HeadBranch 2245} 2246 2247// GetDescription returns the Description field if it's non-nil, zero value otherwise. 2248func (c *CreateEvent) GetDescription() string { 2249 if c == nil || c.Description == nil { 2250 return "" 2251 } 2252 return *c.Description 2253} 2254 2255// GetInstallation returns the Installation field. 2256func (c *CreateEvent) GetInstallation() *Installation { 2257 if c == nil { 2258 return nil 2259 } 2260 return c.Installation 2261} 2262 2263// GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 2264func (c *CreateEvent) GetMasterBranch() string { 2265 if c == nil || c.MasterBranch == nil { 2266 return "" 2267 } 2268 return *c.MasterBranch 2269} 2270 2271// GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 2272func (c *CreateEvent) GetPusherType() string { 2273 if c == nil || c.PusherType == nil { 2274 return "" 2275 } 2276 return *c.PusherType 2277} 2278 2279// GetRef returns the Ref field if it's non-nil, zero value otherwise. 2280func (c *CreateEvent) GetRef() string { 2281 if c == nil || c.Ref == nil { 2282 return "" 2283 } 2284 return *c.Ref 2285} 2286 2287// GetRefType returns the RefType field if it's non-nil, zero value otherwise. 2288func (c *CreateEvent) GetRefType() string { 2289 if c == nil || c.RefType == nil { 2290 return "" 2291 } 2292 return *c.RefType 2293} 2294 2295// GetRepo returns the Repo field. 2296func (c *CreateEvent) GetRepo() *Repository { 2297 if c == nil { 2298 return nil 2299 } 2300 return c.Repo 2301} 2302 2303// GetSender returns the Sender field. 2304func (c *CreateEvent) GetSender() *User { 2305 if c == nil { 2306 return nil 2307 } 2308 return c.Sender 2309} 2310 2311// GetEmail returns the Email field if it's non-nil, zero value otherwise. 2312func (c *CreateOrgInvitationOptions) GetEmail() string { 2313 if c == nil || c.Email == nil { 2314 return "" 2315 } 2316 return *c.Email 2317} 2318 2319// GetInviteeID returns the InviteeID field if it's non-nil, zero value otherwise. 2320func (c *CreateOrgInvitationOptions) GetInviteeID() int64 { 2321 if c == nil || c.InviteeID == nil { 2322 return 0 2323 } 2324 return *c.InviteeID 2325} 2326 2327// GetRole returns the Role field if it's non-nil, zero value otherwise. 2328func (c *CreateOrgInvitationOptions) GetRole() string { 2329 if c == nil || c.Role == nil { 2330 return "" 2331 } 2332 return *c.Role 2333} 2334 2335// GetBody returns the Body field if it's non-nil, zero value otherwise. 2336func (c *CreateUserProjectOptions) GetBody() string { 2337 if c == nil || c.Body == nil { 2338 return "" 2339 } 2340 return *c.Body 2341} 2342 2343// GetInstallation returns the Installation field. 2344func (d *DeleteEvent) GetInstallation() *Installation { 2345 if d == nil { 2346 return nil 2347 } 2348 return d.Installation 2349} 2350 2351// GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 2352func (d *DeleteEvent) GetPusherType() string { 2353 if d == nil || d.PusherType == nil { 2354 return "" 2355 } 2356 return *d.PusherType 2357} 2358 2359// GetRef returns the Ref field if it's non-nil, zero value otherwise. 2360func (d *DeleteEvent) GetRef() string { 2361 if d == nil || d.Ref == nil { 2362 return "" 2363 } 2364 return *d.Ref 2365} 2366 2367// GetRefType returns the RefType field if it's non-nil, zero value otherwise. 2368func (d *DeleteEvent) GetRefType() string { 2369 if d == nil || d.RefType == nil { 2370 return "" 2371 } 2372 return *d.RefType 2373} 2374 2375// GetRepo returns the Repo field. 2376func (d *DeleteEvent) GetRepo() *Repository { 2377 if d == nil { 2378 return nil 2379 } 2380 return d.Repo 2381} 2382 2383// GetSender returns the Sender field. 2384func (d *DeleteEvent) GetSender() *User { 2385 if d == nil { 2386 return nil 2387 } 2388 return d.Sender 2389} 2390 2391// GetAction returns the Action field if it's non-nil, zero value otherwise. 2392func (d *DeployKeyEvent) GetAction() string { 2393 if d == nil || d.Action == nil { 2394 return "" 2395 } 2396 return *d.Action 2397} 2398 2399// GetKey returns the Key field. 2400func (d *DeployKeyEvent) GetKey() *Key { 2401 if d == nil { 2402 return nil 2403 } 2404 return d.Key 2405} 2406 2407// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2408func (d *Deployment) GetCreatedAt() Timestamp { 2409 if d == nil || d.CreatedAt == nil { 2410 return Timestamp{} 2411 } 2412 return *d.CreatedAt 2413} 2414 2415// GetCreator returns the Creator field. 2416func (d *Deployment) GetCreator() *User { 2417 if d == nil { 2418 return nil 2419 } 2420 return d.Creator 2421} 2422 2423// GetDescription returns the Description field if it's non-nil, zero value otherwise. 2424func (d *Deployment) GetDescription() string { 2425 if d == nil || d.Description == nil { 2426 return "" 2427 } 2428 return *d.Description 2429} 2430 2431// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 2432func (d *Deployment) GetEnvironment() string { 2433 if d == nil || d.Environment == nil { 2434 return "" 2435 } 2436 return *d.Environment 2437} 2438 2439// GetID returns the ID field if it's non-nil, zero value otherwise. 2440func (d *Deployment) GetID() int64 { 2441 if d == nil || d.ID == nil { 2442 return 0 2443 } 2444 return *d.ID 2445} 2446 2447// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2448func (d *Deployment) GetNodeID() string { 2449 if d == nil || d.NodeID == nil { 2450 return "" 2451 } 2452 return *d.NodeID 2453} 2454 2455// GetRef returns the Ref field if it's non-nil, zero value otherwise. 2456func (d *Deployment) GetRef() string { 2457 if d == nil || d.Ref == nil { 2458 return "" 2459 } 2460 return *d.Ref 2461} 2462 2463// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 2464func (d *Deployment) GetRepositoryURL() string { 2465 if d == nil || d.RepositoryURL == nil { 2466 return "" 2467 } 2468 return *d.RepositoryURL 2469} 2470 2471// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2472func (d *Deployment) GetSHA() string { 2473 if d == nil || d.SHA == nil { 2474 return "" 2475 } 2476 return *d.SHA 2477} 2478 2479// GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 2480func (d *Deployment) GetStatusesURL() string { 2481 if d == nil || d.StatusesURL == nil { 2482 return "" 2483 } 2484 return *d.StatusesURL 2485} 2486 2487// GetTask returns the Task field if it's non-nil, zero value otherwise. 2488func (d *Deployment) GetTask() string { 2489 if d == nil || d.Task == nil { 2490 return "" 2491 } 2492 return *d.Task 2493} 2494 2495// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2496func (d *Deployment) GetUpdatedAt() Timestamp { 2497 if d == nil || d.UpdatedAt == nil { 2498 return Timestamp{} 2499 } 2500 return *d.UpdatedAt 2501} 2502 2503// GetURL returns the URL field if it's non-nil, zero value otherwise. 2504func (d *Deployment) GetURL() string { 2505 if d == nil || d.URL == nil { 2506 return "" 2507 } 2508 return *d.URL 2509} 2510 2511// GetDeployment returns the Deployment field. 2512func (d *DeploymentEvent) GetDeployment() *Deployment { 2513 if d == nil { 2514 return nil 2515 } 2516 return d.Deployment 2517} 2518 2519// GetInstallation returns the Installation field. 2520func (d *DeploymentEvent) GetInstallation() *Installation { 2521 if d == nil { 2522 return nil 2523 } 2524 return d.Installation 2525} 2526 2527// GetRepo returns the Repo field. 2528func (d *DeploymentEvent) GetRepo() *Repository { 2529 if d == nil { 2530 return nil 2531 } 2532 return d.Repo 2533} 2534 2535// GetSender returns the Sender field. 2536func (d *DeploymentEvent) GetSender() *User { 2537 if d == nil { 2538 return nil 2539 } 2540 return d.Sender 2541} 2542 2543// GetAutoMerge returns the AutoMerge field if it's non-nil, zero value otherwise. 2544func (d *DeploymentRequest) GetAutoMerge() bool { 2545 if d == nil || d.AutoMerge == nil { 2546 return false 2547 } 2548 return *d.AutoMerge 2549} 2550 2551// GetDescription returns the Description field if it's non-nil, zero value otherwise. 2552func (d *DeploymentRequest) GetDescription() string { 2553 if d == nil || d.Description == nil { 2554 return "" 2555 } 2556 return *d.Description 2557} 2558 2559// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 2560func (d *DeploymentRequest) GetEnvironment() string { 2561 if d == nil || d.Environment == nil { 2562 return "" 2563 } 2564 return *d.Environment 2565} 2566 2567// GetProductionEnvironment returns the ProductionEnvironment field if it's non-nil, zero value otherwise. 2568func (d *DeploymentRequest) GetProductionEnvironment() bool { 2569 if d == nil || d.ProductionEnvironment == nil { 2570 return false 2571 } 2572 return *d.ProductionEnvironment 2573} 2574 2575// GetRef returns the Ref field if it's non-nil, zero value otherwise. 2576func (d *DeploymentRequest) GetRef() string { 2577 if d == nil || d.Ref == nil { 2578 return "" 2579 } 2580 return *d.Ref 2581} 2582 2583// GetRequiredContexts returns the RequiredContexts field if it's non-nil, zero value otherwise. 2584func (d *DeploymentRequest) GetRequiredContexts() []string { 2585 if d == nil || d.RequiredContexts == nil { 2586 return nil 2587 } 2588 return *d.RequiredContexts 2589} 2590 2591// GetTask returns the Task field if it's non-nil, zero value otherwise. 2592func (d *DeploymentRequest) GetTask() string { 2593 if d == nil || d.Task == nil { 2594 return "" 2595 } 2596 return *d.Task 2597} 2598 2599// GetTransientEnvironment returns the TransientEnvironment field if it's non-nil, zero value otherwise. 2600func (d *DeploymentRequest) GetTransientEnvironment() bool { 2601 if d == nil || d.TransientEnvironment == nil { 2602 return false 2603 } 2604 return *d.TransientEnvironment 2605} 2606 2607// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2608func (d *DeploymentStatus) GetCreatedAt() Timestamp { 2609 if d == nil || d.CreatedAt == nil { 2610 return Timestamp{} 2611 } 2612 return *d.CreatedAt 2613} 2614 2615// GetCreator returns the Creator field. 2616func (d *DeploymentStatus) GetCreator() *User { 2617 if d == nil { 2618 return nil 2619 } 2620 return d.Creator 2621} 2622 2623// GetDeploymentURL returns the DeploymentURL field if it's non-nil, zero value otherwise. 2624func (d *DeploymentStatus) GetDeploymentURL() string { 2625 if d == nil || d.DeploymentURL == nil { 2626 return "" 2627 } 2628 return *d.DeploymentURL 2629} 2630 2631// GetDescription returns the Description field if it's non-nil, zero value otherwise. 2632func (d *DeploymentStatus) GetDescription() string { 2633 if d == nil || d.Description == nil { 2634 return "" 2635 } 2636 return *d.Description 2637} 2638 2639// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 2640func (d *DeploymentStatus) GetEnvironment() string { 2641 if d == nil || d.Environment == nil { 2642 return "" 2643 } 2644 return *d.Environment 2645} 2646 2647// GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. 2648func (d *DeploymentStatus) GetEnvironmentURL() string { 2649 if d == nil || d.EnvironmentURL == nil { 2650 return "" 2651 } 2652 return *d.EnvironmentURL 2653} 2654 2655// GetID returns the ID field if it's non-nil, zero value otherwise. 2656func (d *DeploymentStatus) GetID() int64 { 2657 if d == nil || d.ID == nil { 2658 return 0 2659 } 2660 return *d.ID 2661} 2662 2663// GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. 2664func (d *DeploymentStatus) GetLogURL() string { 2665 if d == nil || d.LogURL == nil { 2666 return "" 2667 } 2668 return *d.LogURL 2669} 2670 2671// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2672func (d *DeploymentStatus) GetNodeID() string { 2673 if d == nil || d.NodeID == nil { 2674 return "" 2675 } 2676 return *d.NodeID 2677} 2678 2679// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 2680func (d *DeploymentStatus) GetRepositoryURL() string { 2681 if d == nil || d.RepositoryURL == nil { 2682 return "" 2683 } 2684 return *d.RepositoryURL 2685} 2686 2687// GetState returns the State field if it's non-nil, zero value otherwise. 2688func (d *DeploymentStatus) GetState() string { 2689 if d == nil || d.State == nil { 2690 return "" 2691 } 2692 return *d.State 2693} 2694 2695// GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 2696func (d *DeploymentStatus) GetTargetURL() string { 2697 if d == nil || d.TargetURL == nil { 2698 return "" 2699 } 2700 return *d.TargetURL 2701} 2702 2703// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2704func (d *DeploymentStatus) GetUpdatedAt() Timestamp { 2705 if d == nil || d.UpdatedAt == nil { 2706 return Timestamp{} 2707 } 2708 return *d.UpdatedAt 2709} 2710 2711// GetURL returns the URL field if it's non-nil, zero value otherwise. 2712func (d *DeploymentStatus) GetURL() string { 2713 if d == nil || d.URL == nil { 2714 return "" 2715 } 2716 return *d.URL 2717} 2718 2719// GetDeployment returns the Deployment field. 2720func (d *DeploymentStatusEvent) GetDeployment() *Deployment { 2721 if d == nil { 2722 return nil 2723 } 2724 return d.Deployment 2725} 2726 2727// GetDeploymentStatus returns the DeploymentStatus field. 2728func (d *DeploymentStatusEvent) GetDeploymentStatus() *DeploymentStatus { 2729 if d == nil { 2730 return nil 2731 } 2732 return d.DeploymentStatus 2733} 2734 2735// GetInstallation returns the Installation field. 2736func (d *DeploymentStatusEvent) GetInstallation() *Installation { 2737 if d == nil { 2738 return nil 2739 } 2740 return d.Installation 2741} 2742 2743// GetRepo returns the Repo field. 2744func (d *DeploymentStatusEvent) GetRepo() *Repository { 2745 if d == nil { 2746 return nil 2747 } 2748 return d.Repo 2749} 2750 2751// GetSender returns the Sender field. 2752func (d *DeploymentStatusEvent) GetSender() *User { 2753 if d == nil { 2754 return nil 2755 } 2756 return d.Sender 2757} 2758 2759// GetAutoInactive returns the AutoInactive field if it's non-nil, zero value otherwise. 2760func (d *DeploymentStatusRequest) GetAutoInactive() bool { 2761 if d == nil || d.AutoInactive == nil { 2762 return false 2763 } 2764 return *d.AutoInactive 2765} 2766 2767// GetDescription returns the Description field if it's non-nil, zero value otherwise. 2768func (d *DeploymentStatusRequest) GetDescription() string { 2769 if d == nil || d.Description == nil { 2770 return "" 2771 } 2772 return *d.Description 2773} 2774 2775// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 2776func (d *DeploymentStatusRequest) GetEnvironment() string { 2777 if d == nil || d.Environment == nil { 2778 return "" 2779 } 2780 return *d.Environment 2781} 2782 2783// GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. 2784func (d *DeploymentStatusRequest) GetEnvironmentURL() string { 2785 if d == nil || d.EnvironmentURL == nil { 2786 return "" 2787 } 2788 return *d.EnvironmentURL 2789} 2790 2791// GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. 2792func (d *DeploymentStatusRequest) GetLogURL() string { 2793 if d == nil || d.LogURL == nil { 2794 return "" 2795 } 2796 return *d.LogURL 2797} 2798 2799// GetState returns the State field if it's non-nil, zero value otherwise. 2800func (d *DeploymentStatusRequest) GetState() string { 2801 if d == nil || d.State == nil { 2802 return "" 2803 } 2804 return *d.State 2805} 2806 2807// GetAuthor returns the Author field. 2808func (d *DiscussionComment) GetAuthor() *User { 2809 if d == nil { 2810 return nil 2811 } 2812 return d.Author 2813} 2814 2815// GetBody returns the Body field if it's non-nil, zero value otherwise. 2816func (d *DiscussionComment) GetBody() string { 2817 if d == nil || d.Body == nil { 2818 return "" 2819 } 2820 return *d.Body 2821} 2822 2823// GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 2824func (d *DiscussionComment) GetBodyHTML() string { 2825 if d == nil || d.BodyHTML == nil { 2826 return "" 2827 } 2828 return *d.BodyHTML 2829} 2830 2831// GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. 2832func (d *DiscussionComment) GetBodyVersion() string { 2833 if d == nil || d.BodyVersion == nil { 2834 return "" 2835 } 2836 return *d.BodyVersion 2837} 2838 2839// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2840func (d *DiscussionComment) GetCreatedAt() Timestamp { 2841 if d == nil || d.CreatedAt == nil { 2842 return Timestamp{} 2843 } 2844 return *d.CreatedAt 2845} 2846 2847// GetDiscussionURL returns the DiscussionURL field if it's non-nil, zero value otherwise. 2848func (d *DiscussionComment) GetDiscussionURL() string { 2849 if d == nil || d.DiscussionURL == nil { 2850 return "" 2851 } 2852 return *d.DiscussionURL 2853} 2854 2855// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2856func (d *DiscussionComment) GetHTMLURL() string { 2857 if d == nil || d.HTMLURL == nil { 2858 return "" 2859 } 2860 return *d.HTMLURL 2861} 2862 2863// GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. 2864func (d *DiscussionComment) GetLastEditedAt() Timestamp { 2865 if d == nil || d.LastEditedAt == nil { 2866 return Timestamp{} 2867 } 2868 return *d.LastEditedAt 2869} 2870 2871// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2872func (d *DiscussionComment) GetNodeID() string { 2873 if d == nil || d.NodeID == nil { 2874 return "" 2875 } 2876 return *d.NodeID 2877} 2878 2879// GetNumber returns the Number field if it's non-nil, zero value otherwise. 2880func (d *DiscussionComment) GetNumber() int { 2881 if d == nil || d.Number == nil { 2882 return 0 2883 } 2884 return *d.Number 2885} 2886 2887// GetReactions returns the Reactions field. 2888func (d *DiscussionComment) GetReactions() *Reactions { 2889 if d == nil { 2890 return nil 2891 } 2892 return d.Reactions 2893} 2894 2895// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2896func (d *DiscussionComment) GetUpdatedAt() Timestamp { 2897 if d == nil || d.UpdatedAt == nil { 2898 return Timestamp{} 2899 } 2900 return *d.UpdatedAt 2901} 2902 2903// GetURL returns the URL field if it's non-nil, zero value otherwise. 2904func (d *DiscussionComment) GetURL() string { 2905 if d == nil || d.URL == nil { 2906 return "" 2907 } 2908 return *d.URL 2909} 2910 2911// GetTeams returns the Teams field if it's non-nil, zero value otherwise. 2912func (d *DismissalRestrictionsRequest) GetTeams() []string { 2913 if d == nil || d.Teams == nil { 2914 return nil 2915 } 2916 return *d.Teams 2917} 2918 2919// GetUsers returns the Users field if it's non-nil, zero value otherwise. 2920func (d *DismissalRestrictionsRequest) GetUsers() []string { 2921 if d == nil || d.Users == nil { 2922 return nil 2923 } 2924 return *d.Users 2925} 2926 2927// GetDismissalCommitID returns the DismissalCommitID field if it's non-nil, zero value otherwise. 2928func (d *DismissedReview) GetDismissalCommitID() string { 2929 if d == nil || d.DismissalCommitID == nil { 2930 return "" 2931 } 2932 return *d.DismissalCommitID 2933} 2934 2935// GetDismissalMessage returns the DismissalMessage field if it's non-nil, zero value otherwise. 2936func (d *DismissedReview) GetDismissalMessage() string { 2937 if d == nil || d.DismissalMessage == nil { 2938 return "" 2939 } 2940 return *d.DismissalMessage 2941} 2942 2943// GetReviewID returns the ReviewID field if it's non-nil, zero value otherwise. 2944func (d *DismissedReview) GetReviewID() int64 { 2945 if d == nil || d.ReviewID == nil { 2946 return 0 2947 } 2948 return *d.ReviewID 2949} 2950 2951// GetState returns the State field if it's non-nil, zero value otherwise. 2952func (d *DismissedReview) GetState() string { 2953 if d == nil || d.State == nil { 2954 return "" 2955 } 2956 return *d.State 2957} 2958 2959// GetClientPayload returns the ClientPayload field if it's non-nil, zero value otherwise. 2960func (d *DispatchRequestOptions) GetClientPayload() json.RawMessage { 2961 if d == nil || d.ClientPayload == nil { 2962 return json.RawMessage{} 2963 } 2964 return *d.ClientPayload 2965} 2966 2967// GetBody returns the Body field if it's non-nil, zero value otherwise. 2968func (d *DraftReviewComment) GetBody() string { 2969 if d == nil || d.Body == nil { 2970 return "" 2971 } 2972 return *d.Body 2973} 2974 2975// GetLine returns the Line field if it's non-nil, zero value otherwise. 2976func (d *DraftReviewComment) GetLine() int { 2977 if d == nil || d.Line == nil { 2978 return 0 2979 } 2980 return *d.Line 2981} 2982 2983// GetPath returns the Path field if it's non-nil, zero value otherwise. 2984func (d *DraftReviewComment) GetPath() string { 2985 if d == nil || d.Path == nil { 2986 return "" 2987 } 2988 return *d.Path 2989} 2990 2991// GetPosition returns the Position field if it's non-nil, zero value otherwise. 2992func (d *DraftReviewComment) GetPosition() int { 2993 if d == nil || d.Position == nil { 2994 return 0 2995 } 2996 return *d.Position 2997} 2998 2999// GetSide returns the Side field if it's non-nil, zero value otherwise. 3000func (d *DraftReviewComment) GetSide() string { 3001 if d == nil || d.Side == nil { 3002 return "" 3003 } 3004 return *d.Side 3005} 3006 3007// GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 3008func (d *DraftReviewComment) GetStartLine() int { 3009 if d == nil || d.StartLine == nil { 3010 return 0 3011 } 3012 return *d.StartLine 3013} 3014 3015// GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. 3016func (d *DraftReviewComment) GetStartSide() string { 3017 if d == nil || d.StartSide == nil { 3018 return "" 3019 } 3020 return *d.StartSide 3021} 3022 3023// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 3024func (e *Enterprise) GetAvatarURL() string { 3025 if e == nil || e.AvatarURL == nil { 3026 return "" 3027 } 3028 return *e.AvatarURL 3029} 3030 3031// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3032func (e *Enterprise) GetCreatedAt() Timestamp { 3033 if e == nil || e.CreatedAt == nil { 3034 return Timestamp{} 3035 } 3036 return *e.CreatedAt 3037} 3038 3039// GetDescription returns the Description field if it's non-nil, zero value otherwise. 3040func (e *Enterprise) GetDescription() string { 3041 if e == nil || e.Description == nil { 3042 return "" 3043 } 3044 return *e.Description 3045} 3046 3047// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3048func (e *Enterprise) GetHTMLURL() string { 3049 if e == nil || e.HTMLURL == nil { 3050 return "" 3051 } 3052 return *e.HTMLURL 3053} 3054 3055// GetID returns the ID field if it's non-nil, zero value otherwise. 3056func (e *Enterprise) GetID() int { 3057 if e == nil || e.ID == nil { 3058 return 0 3059 } 3060 return *e.ID 3061} 3062 3063// GetName returns the Name field if it's non-nil, zero value otherwise. 3064func (e *Enterprise) GetName() string { 3065 if e == nil || e.Name == nil { 3066 return "" 3067 } 3068 return *e.Name 3069} 3070 3071// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3072func (e *Enterprise) GetNodeID() string { 3073 if e == nil || e.NodeID == nil { 3074 return "" 3075 } 3076 return *e.NodeID 3077} 3078 3079// GetSlug returns the Slug field if it's non-nil, zero value otherwise. 3080func (e *Enterprise) GetSlug() string { 3081 if e == nil || e.Slug == nil { 3082 return "" 3083 } 3084 return *e.Slug 3085} 3086 3087// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3088func (e *Enterprise) GetUpdatedAt() Timestamp { 3089 if e == nil || e.UpdatedAt == nil { 3090 return Timestamp{} 3091 } 3092 return *e.UpdatedAt 3093} 3094 3095// GetWebsiteURL returns the WebsiteURL field if it's non-nil, zero value otherwise. 3096func (e *Enterprise) GetWebsiteURL() string { 3097 if e == nil || e.WebsiteURL == nil { 3098 return "" 3099 } 3100 return *e.WebsiteURL 3101} 3102 3103// GetActor returns the Actor field. 3104func (e *Event) GetActor() *User { 3105 if e == nil { 3106 return nil 3107 } 3108 return e.Actor 3109} 3110 3111// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3112func (e *Event) GetCreatedAt() time.Time { 3113 if e == nil || e.CreatedAt == nil { 3114 return time.Time{} 3115 } 3116 return *e.CreatedAt 3117} 3118 3119// GetID returns the ID field if it's non-nil, zero value otherwise. 3120func (e *Event) GetID() string { 3121 if e == nil || e.ID == nil { 3122 return "" 3123 } 3124 return *e.ID 3125} 3126 3127// GetOrg returns the Org field. 3128func (e *Event) GetOrg() *Organization { 3129 if e == nil { 3130 return nil 3131 } 3132 return e.Org 3133} 3134 3135// GetPublic returns the Public field if it's non-nil, zero value otherwise. 3136func (e *Event) GetPublic() bool { 3137 if e == nil || e.Public == nil { 3138 return false 3139 } 3140 return *e.Public 3141} 3142 3143// GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 3144func (e *Event) GetRawPayload() json.RawMessage { 3145 if e == nil || e.RawPayload == nil { 3146 return json.RawMessage{} 3147 } 3148 return *e.RawPayload 3149} 3150 3151// GetRepo returns the Repo field. 3152func (e *Event) GetRepo() *Repository { 3153 if e == nil { 3154 return nil 3155 } 3156 return e.Repo 3157} 3158 3159// GetType returns the Type field if it's non-nil, zero value otherwise. 3160func (e *Event) GetType() string { 3161 if e == nil || e.Type == nil { 3162 return "" 3163 } 3164 return *e.Type 3165} 3166 3167// GetHRef returns the HRef field if it's non-nil, zero value otherwise. 3168func (f *FeedLink) GetHRef() string { 3169 if f == nil || f.HRef == nil { 3170 return "" 3171 } 3172 return *f.HRef 3173} 3174 3175// GetType returns the Type field if it's non-nil, zero value otherwise. 3176func (f *FeedLink) GetType() string { 3177 if f == nil || f.Type == nil { 3178 return "" 3179 } 3180 return *f.Type 3181} 3182 3183// GetCurrentUserActorURL returns the CurrentUserActorURL field if it's non-nil, zero value otherwise. 3184func (f *Feeds) GetCurrentUserActorURL() string { 3185 if f == nil || f.CurrentUserActorURL == nil { 3186 return "" 3187 } 3188 return *f.CurrentUserActorURL 3189} 3190 3191// GetCurrentUserOrganizationURL returns the CurrentUserOrganizationURL field if it's non-nil, zero value otherwise. 3192func (f *Feeds) GetCurrentUserOrganizationURL() string { 3193 if f == nil || f.CurrentUserOrganizationURL == nil { 3194 return "" 3195 } 3196 return *f.CurrentUserOrganizationURL 3197} 3198 3199// GetCurrentUserPublicURL returns the CurrentUserPublicURL field if it's non-nil, zero value otherwise. 3200func (f *Feeds) GetCurrentUserPublicURL() string { 3201 if f == nil || f.CurrentUserPublicURL == nil { 3202 return "" 3203 } 3204 return *f.CurrentUserPublicURL 3205} 3206 3207// GetCurrentUserURL returns the CurrentUserURL field if it's non-nil, zero value otherwise. 3208func (f *Feeds) GetCurrentUserURL() string { 3209 if f == nil || f.CurrentUserURL == nil { 3210 return "" 3211 } 3212 return *f.CurrentUserURL 3213} 3214 3215// GetTimelineURL returns the TimelineURL field if it's non-nil, zero value otherwise. 3216func (f *Feeds) GetTimelineURL() string { 3217 if f == nil || f.TimelineURL == nil { 3218 return "" 3219 } 3220 return *f.TimelineURL 3221} 3222 3223// GetUserURL returns the UserURL field if it's non-nil, zero value otherwise. 3224func (f *Feeds) GetUserURL() string { 3225 if f == nil || f.UserURL == nil { 3226 return "" 3227 } 3228 return *f.UserURL 3229} 3230 3231// GetForkee returns the Forkee field. 3232func (f *ForkEvent) GetForkee() *Repository { 3233 if f == nil { 3234 return nil 3235 } 3236 return f.Forkee 3237} 3238 3239// GetInstallation returns the Installation field. 3240func (f *ForkEvent) GetInstallation() *Installation { 3241 if f == nil { 3242 return nil 3243 } 3244 return f.Installation 3245} 3246 3247// GetRepo returns the Repo field. 3248func (f *ForkEvent) GetRepo() *Repository { 3249 if f == nil { 3250 return nil 3251 } 3252 return f.Repo 3253} 3254 3255// GetSender returns the Sender field. 3256func (f *ForkEvent) GetSender() *User { 3257 if f == nil { 3258 return nil 3259 } 3260 return f.Sender 3261} 3262 3263// GetComments returns the Comments field if it's non-nil, zero value otherwise. 3264func (g *Gist) GetComments() int { 3265 if g == nil || g.Comments == nil { 3266 return 0 3267 } 3268 return *g.Comments 3269} 3270 3271// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3272func (g *Gist) GetCreatedAt() time.Time { 3273 if g == nil || g.CreatedAt == nil { 3274 return time.Time{} 3275 } 3276 return *g.CreatedAt 3277} 3278 3279// GetDescription returns the Description field if it's non-nil, zero value otherwise. 3280func (g *Gist) GetDescription() string { 3281 if g == nil || g.Description == nil { 3282 return "" 3283 } 3284 return *g.Description 3285} 3286 3287// GetGitPullURL returns the GitPullURL field if it's non-nil, zero value otherwise. 3288func (g *Gist) GetGitPullURL() string { 3289 if g == nil || g.GitPullURL == nil { 3290 return "" 3291 } 3292 return *g.GitPullURL 3293} 3294 3295// GetGitPushURL returns the GitPushURL field if it's non-nil, zero value otherwise. 3296func (g *Gist) GetGitPushURL() string { 3297 if g == nil || g.GitPushURL == nil { 3298 return "" 3299 } 3300 return *g.GitPushURL 3301} 3302 3303// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3304func (g *Gist) GetHTMLURL() string { 3305 if g == nil || g.HTMLURL == nil { 3306 return "" 3307 } 3308 return *g.HTMLURL 3309} 3310 3311// GetID returns the ID field if it's non-nil, zero value otherwise. 3312func (g *Gist) GetID() string { 3313 if g == nil || g.ID == nil { 3314 return "" 3315 } 3316 return *g.ID 3317} 3318 3319// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3320func (g *Gist) GetNodeID() string { 3321 if g == nil || g.NodeID == nil { 3322 return "" 3323 } 3324 return *g.NodeID 3325} 3326 3327// GetOwner returns the Owner field. 3328func (g *Gist) GetOwner() *User { 3329 if g == nil { 3330 return nil 3331 } 3332 return g.Owner 3333} 3334 3335// GetPublic returns the Public field if it's non-nil, zero value otherwise. 3336func (g *Gist) GetPublic() bool { 3337 if g == nil || g.Public == nil { 3338 return false 3339 } 3340 return *g.Public 3341} 3342 3343// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3344func (g *Gist) GetUpdatedAt() time.Time { 3345 if g == nil || g.UpdatedAt == nil { 3346 return time.Time{} 3347 } 3348 return *g.UpdatedAt 3349} 3350 3351// GetBody returns the Body field if it's non-nil, zero value otherwise. 3352func (g *GistComment) GetBody() string { 3353 if g == nil || g.Body == nil { 3354 return "" 3355 } 3356 return *g.Body 3357} 3358 3359// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3360func (g *GistComment) GetCreatedAt() time.Time { 3361 if g == nil || g.CreatedAt == nil { 3362 return time.Time{} 3363 } 3364 return *g.CreatedAt 3365} 3366 3367// GetID returns the ID field if it's non-nil, zero value otherwise. 3368func (g *GistComment) GetID() int64 { 3369 if g == nil || g.ID == nil { 3370 return 0 3371 } 3372 return *g.ID 3373} 3374 3375// GetURL returns the URL field if it's non-nil, zero value otherwise. 3376func (g *GistComment) GetURL() string { 3377 if g == nil || g.URL == nil { 3378 return "" 3379 } 3380 return *g.URL 3381} 3382 3383// GetUser returns the User field. 3384func (g *GistComment) GetUser() *User { 3385 if g == nil { 3386 return nil 3387 } 3388 return g.User 3389} 3390 3391// GetChangeStatus returns the ChangeStatus field. 3392func (g *GistCommit) GetChangeStatus() *CommitStats { 3393 if g == nil { 3394 return nil 3395 } 3396 return g.ChangeStatus 3397} 3398 3399// GetCommittedAt returns the CommittedAt field if it's non-nil, zero value otherwise. 3400func (g *GistCommit) GetCommittedAt() Timestamp { 3401 if g == nil || g.CommittedAt == nil { 3402 return Timestamp{} 3403 } 3404 return *g.CommittedAt 3405} 3406 3407// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3408func (g *GistCommit) GetNodeID() string { 3409 if g == nil || g.NodeID == nil { 3410 return "" 3411 } 3412 return *g.NodeID 3413} 3414 3415// GetURL returns the URL field if it's non-nil, zero value otherwise. 3416func (g *GistCommit) GetURL() string { 3417 if g == nil || g.URL == nil { 3418 return "" 3419 } 3420 return *g.URL 3421} 3422 3423// GetUser returns the User field. 3424func (g *GistCommit) GetUser() *User { 3425 if g == nil { 3426 return nil 3427 } 3428 return g.User 3429} 3430 3431// GetVersion returns the Version field if it's non-nil, zero value otherwise. 3432func (g *GistCommit) GetVersion() string { 3433 if g == nil || g.Version == nil { 3434 return "" 3435 } 3436 return *g.Version 3437} 3438 3439// GetContent returns the Content field if it's non-nil, zero value otherwise. 3440func (g *GistFile) GetContent() string { 3441 if g == nil || g.Content == nil { 3442 return "" 3443 } 3444 return *g.Content 3445} 3446 3447// GetFilename returns the Filename field if it's non-nil, zero value otherwise. 3448func (g *GistFile) GetFilename() string { 3449 if g == nil || g.Filename == nil { 3450 return "" 3451 } 3452 return *g.Filename 3453} 3454 3455// GetLanguage returns the Language field if it's non-nil, zero value otherwise. 3456func (g *GistFile) GetLanguage() string { 3457 if g == nil || g.Language == nil { 3458 return "" 3459 } 3460 return *g.Language 3461} 3462 3463// GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 3464func (g *GistFile) GetRawURL() string { 3465 if g == nil || g.RawURL == nil { 3466 return "" 3467 } 3468 return *g.RawURL 3469} 3470 3471// GetSize returns the Size field if it's non-nil, zero value otherwise. 3472func (g *GistFile) GetSize() int { 3473 if g == nil || g.Size == nil { 3474 return 0 3475 } 3476 return *g.Size 3477} 3478 3479// GetType returns the Type field if it's non-nil, zero value otherwise. 3480func (g *GistFile) GetType() string { 3481 if g == nil || g.Type == nil { 3482 return "" 3483 } 3484 return *g.Type 3485} 3486 3487// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3488func (g *GistFork) GetCreatedAt() Timestamp { 3489 if g == nil || g.CreatedAt == nil { 3490 return Timestamp{} 3491 } 3492 return *g.CreatedAt 3493} 3494 3495// GetID returns the ID field if it's non-nil, zero value otherwise. 3496func (g *GistFork) GetID() string { 3497 if g == nil || g.ID == nil { 3498 return "" 3499 } 3500 return *g.ID 3501} 3502 3503// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3504func (g *GistFork) GetNodeID() string { 3505 if g == nil || g.NodeID == nil { 3506 return "" 3507 } 3508 return *g.NodeID 3509} 3510 3511// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3512func (g *GistFork) GetUpdatedAt() Timestamp { 3513 if g == nil || g.UpdatedAt == nil { 3514 return Timestamp{} 3515 } 3516 return *g.UpdatedAt 3517} 3518 3519// GetURL returns the URL field if it's non-nil, zero value otherwise. 3520func (g *GistFork) GetURL() string { 3521 if g == nil || g.URL == nil { 3522 return "" 3523 } 3524 return *g.URL 3525} 3526 3527// GetUser returns the User field. 3528func (g *GistFork) GetUser() *User { 3529 if g == nil { 3530 return nil 3531 } 3532 return g.User 3533} 3534 3535// GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 3536func (g *GistStats) GetPrivateGists() int { 3537 if g == nil || g.PrivateGists == nil { 3538 return 0 3539 } 3540 return *g.PrivateGists 3541} 3542 3543// GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 3544func (g *GistStats) GetPublicGists() int { 3545 if g == nil || g.PublicGists == nil { 3546 return 0 3547 } 3548 return *g.PublicGists 3549} 3550 3551// GetTotalGists returns the TotalGists field if it's non-nil, zero value otherwise. 3552func (g *GistStats) GetTotalGists() int { 3553 if g == nil || g.TotalGists == nil { 3554 return 0 3555 } 3556 return *g.TotalGists 3557} 3558 3559// GetAction returns the Action field if it's non-nil, zero value otherwise. 3560func (g *GitHubAppAuthorizationEvent) GetAction() string { 3561 if g == nil || g.Action == nil { 3562 return "" 3563 } 3564 return *g.Action 3565} 3566 3567// GetSender returns the Sender field. 3568func (g *GitHubAppAuthorizationEvent) GetSender() *User { 3569 if g == nil { 3570 return nil 3571 } 3572 return g.Sender 3573} 3574 3575// GetName returns the Name field if it's non-nil, zero value otherwise. 3576func (g *Gitignore) GetName() string { 3577 if g == nil || g.Name == nil { 3578 return "" 3579 } 3580 return *g.Name 3581} 3582 3583// GetSource returns the Source field if it's non-nil, zero value otherwise. 3584func (g *Gitignore) GetSource() string { 3585 if g == nil || g.Source == nil { 3586 return "" 3587 } 3588 return *g.Source 3589} 3590 3591// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3592func (g *GitObject) GetSHA() string { 3593 if g == nil || g.SHA == nil { 3594 return "" 3595 } 3596 return *g.SHA 3597} 3598 3599// GetType returns the Type field if it's non-nil, zero value otherwise. 3600func (g *GitObject) GetType() string { 3601 if g == nil || g.Type == nil { 3602 return "" 3603 } 3604 return *g.Type 3605} 3606 3607// GetURL returns the URL field if it's non-nil, zero value otherwise. 3608func (g *GitObject) GetURL() string { 3609 if g == nil || g.URL == nil { 3610 return "" 3611 } 3612 return *g.URL 3613} 3614 3615// GetInstallation returns the Installation field. 3616func (g *GollumEvent) GetInstallation() *Installation { 3617 if g == nil { 3618 return nil 3619 } 3620 return g.Installation 3621} 3622 3623// GetRepo returns the Repo field. 3624func (g *GollumEvent) GetRepo() *Repository { 3625 if g == nil { 3626 return nil 3627 } 3628 return g.Repo 3629} 3630 3631// GetSender returns the Sender field. 3632func (g *GollumEvent) GetSender() *User { 3633 if g == nil { 3634 return nil 3635 } 3636 return g.Sender 3637} 3638 3639// GetEmail returns the Email field if it's non-nil, zero value otherwise. 3640func (g *GPGEmail) GetEmail() string { 3641 if g == nil || g.Email == nil { 3642 return "" 3643 } 3644 return *g.Email 3645} 3646 3647// GetVerified returns the Verified field if it's non-nil, zero value otherwise. 3648func (g *GPGEmail) GetVerified() bool { 3649 if g == nil || g.Verified == nil { 3650 return false 3651 } 3652 return *g.Verified 3653} 3654 3655// GetCanCertify returns the CanCertify field if it's non-nil, zero value otherwise. 3656func (g *GPGKey) GetCanCertify() bool { 3657 if g == nil || g.CanCertify == nil { 3658 return false 3659 } 3660 return *g.CanCertify 3661} 3662 3663// GetCanEncryptComms returns the CanEncryptComms field if it's non-nil, zero value otherwise. 3664func (g *GPGKey) GetCanEncryptComms() bool { 3665 if g == nil || g.CanEncryptComms == nil { 3666 return false 3667 } 3668 return *g.CanEncryptComms 3669} 3670 3671// GetCanEncryptStorage returns the CanEncryptStorage field if it's non-nil, zero value otherwise. 3672func (g *GPGKey) GetCanEncryptStorage() bool { 3673 if g == nil || g.CanEncryptStorage == nil { 3674 return false 3675 } 3676 return *g.CanEncryptStorage 3677} 3678 3679// GetCanSign returns the CanSign field if it's non-nil, zero value otherwise. 3680func (g *GPGKey) GetCanSign() bool { 3681 if g == nil || g.CanSign == nil { 3682 return false 3683 } 3684 return *g.CanSign 3685} 3686 3687// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3688func (g *GPGKey) GetCreatedAt() time.Time { 3689 if g == nil || g.CreatedAt == nil { 3690 return time.Time{} 3691 } 3692 return *g.CreatedAt 3693} 3694 3695// GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 3696func (g *GPGKey) GetExpiresAt() time.Time { 3697 if g == nil || g.ExpiresAt == nil { 3698 return time.Time{} 3699 } 3700 return *g.ExpiresAt 3701} 3702 3703// GetID returns the ID field if it's non-nil, zero value otherwise. 3704func (g *GPGKey) GetID() int64 { 3705 if g == nil || g.ID == nil { 3706 return 0 3707 } 3708 return *g.ID 3709} 3710 3711// GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. 3712func (g *GPGKey) GetKeyID() string { 3713 if g == nil || g.KeyID == nil { 3714 return "" 3715 } 3716 return *g.KeyID 3717} 3718 3719// GetPrimaryKeyID returns the PrimaryKeyID field if it's non-nil, zero value otherwise. 3720func (g *GPGKey) GetPrimaryKeyID() int64 { 3721 if g == nil || g.PrimaryKeyID == nil { 3722 return 0 3723 } 3724 return *g.PrimaryKeyID 3725} 3726 3727// GetPublicKey returns the PublicKey field if it's non-nil, zero value otherwise. 3728func (g *GPGKey) GetPublicKey() string { 3729 if g == nil || g.PublicKey == nil { 3730 return "" 3731 } 3732 return *g.PublicKey 3733} 3734 3735// GetApp returns the App field. 3736func (g *Grant) GetApp() *AuthorizationApp { 3737 if g == nil { 3738 return nil 3739 } 3740 return g.App 3741} 3742 3743// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3744func (g *Grant) GetCreatedAt() Timestamp { 3745 if g == nil || g.CreatedAt == nil { 3746 return Timestamp{} 3747 } 3748 return *g.CreatedAt 3749} 3750 3751// GetID returns the ID field if it's non-nil, zero value otherwise. 3752func (g *Grant) GetID() int64 { 3753 if g == nil || g.ID == nil { 3754 return 0 3755 } 3756 return *g.ID 3757} 3758 3759// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3760func (g *Grant) GetUpdatedAt() Timestamp { 3761 if g == nil || g.UpdatedAt == nil { 3762 return Timestamp{} 3763 } 3764 return *g.UpdatedAt 3765} 3766 3767// GetURL returns the URL field if it's non-nil, zero value otherwise. 3768func (g *Grant) GetURL() string { 3769 if g == nil || g.URL == nil { 3770 return "" 3771 } 3772 return *g.URL 3773} 3774 3775// GetAuthor returns the Author field. 3776func (h *HeadCommit) GetAuthor() *CommitAuthor { 3777 if h == nil { 3778 return nil 3779 } 3780 return h.Author 3781} 3782 3783// GetCommitter returns the Committer field. 3784func (h *HeadCommit) GetCommitter() *CommitAuthor { 3785 if h == nil { 3786 return nil 3787 } 3788 return h.Committer 3789} 3790 3791// GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. 3792func (h *HeadCommit) GetDistinct() bool { 3793 if h == nil || h.Distinct == nil { 3794 return false 3795 } 3796 return *h.Distinct 3797} 3798 3799// GetID returns the ID field if it's non-nil, zero value otherwise. 3800func (h *HeadCommit) GetID() string { 3801 if h == nil || h.ID == nil { 3802 return "" 3803 } 3804 return *h.ID 3805} 3806 3807// GetMessage returns the Message field if it's non-nil, zero value otherwise. 3808func (h *HeadCommit) GetMessage() string { 3809 if h == nil || h.Message == nil { 3810 return "" 3811 } 3812 return *h.Message 3813} 3814 3815// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3816func (h *HeadCommit) GetSHA() string { 3817 if h == nil || h.SHA == nil { 3818 return "" 3819 } 3820 return *h.SHA 3821} 3822 3823// GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 3824func (h *HeadCommit) GetTimestamp() Timestamp { 3825 if h == nil || h.Timestamp == nil { 3826 return Timestamp{} 3827 } 3828 return *h.Timestamp 3829} 3830 3831// GetTreeID returns the TreeID field if it's non-nil, zero value otherwise. 3832func (h *HeadCommit) GetTreeID() string { 3833 if h == nil || h.TreeID == nil { 3834 return "" 3835 } 3836 return *h.TreeID 3837} 3838 3839// GetURL returns the URL field if it's non-nil, zero value otherwise. 3840func (h *HeadCommit) GetURL() string { 3841 if h == nil || h.URL == nil { 3842 return "" 3843 } 3844 return *h.URL 3845} 3846 3847// GetActive returns the Active field if it's non-nil, zero value otherwise. 3848func (h *Hook) GetActive() bool { 3849 if h == nil || h.Active == nil { 3850 return false 3851 } 3852 return *h.Active 3853} 3854 3855// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3856func (h *Hook) GetCreatedAt() time.Time { 3857 if h == nil || h.CreatedAt == nil { 3858 return time.Time{} 3859 } 3860 return *h.CreatedAt 3861} 3862 3863// GetID returns the ID field if it's non-nil, zero value otherwise. 3864func (h *Hook) GetID() int64 { 3865 if h == nil || h.ID == nil { 3866 return 0 3867 } 3868 return *h.ID 3869} 3870 3871// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3872func (h *Hook) GetUpdatedAt() time.Time { 3873 if h == nil || h.UpdatedAt == nil { 3874 return time.Time{} 3875 } 3876 return *h.UpdatedAt 3877} 3878 3879// GetURL returns the URL field if it's non-nil, zero value otherwise. 3880func (h *Hook) GetURL() string { 3881 if h == nil || h.URL == nil { 3882 return "" 3883 } 3884 return *h.URL 3885} 3886 3887// GetActiveHooks returns the ActiveHooks field if it's non-nil, zero value otherwise. 3888func (h *HookStats) GetActiveHooks() int { 3889 if h == nil || h.ActiveHooks == nil { 3890 return 0 3891 } 3892 return *h.ActiveHooks 3893} 3894 3895// GetInactiveHooks returns the InactiveHooks field if it's non-nil, zero value otherwise. 3896func (h *HookStats) GetInactiveHooks() int { 3897 if h == nil || h.InactiveHooks == nil { 3898 return 0 3899 } 3900 return *h.InactiveHooks 3901} 3902 3903// GetTotalHooks returns the TotalHooks field if it's non-nil, zero value otherwise. 3904func (h *HookStats) GetTotalHooks() int { 3905 if h == nil || h.TotalHooks == nil { 3906 return 0 3907 } 3908 return *h.TotalHooks 3909} 3910 3911// GetGroupDescription returns the GroupDescription field if it's non-nil, zero value otherwise. 3912func (i *IDPGroup) GetGroupDescription() string { 3913 if i == nil || i.GroupDescription == nil { 3914 return "" 3915 } 3916 return *i.GroupDescription 3917} 3918 3919// GetGroupID returns the GroupID field if it's non-nil, zero value otherwise. 3920func (i *IDPGroup) GetGroupID() string { 3921 if i == nil || i.GroupID == nil { 3922 return "" 3923 } 3924 return *i.GroupID 3925} 3926 3927// GetGroupName returns the GroupName field if it's non-nil, zero value otherwise. 3928func (i *IDPGroup) GetGroupName() string { 3929 if i == nil || i.GroupName == nil { 3930 return "" 3931 } 3932 return *i.GroupName 3933} 3934 3935// GetAuthorsCount returns the AuthorsCount field if it's non-nil, zero value otherwise. 3936func (i *Import) GetAuthorsCount() int { 3937 if i == nil || i.AuthorsCount == nil { 3938 return 0 3939 } 3940 return *i.AuthorsCount 3941} 3942 3943// GetAuthorsURL returns the AuthorsURL field if it's non-nil, zero value otherwise. 3944func (i *Import) GetAuthorsURL() string { 3945 if i == nil || i.AuthorsURL == nil { 3946 return "" 3947 } 3948 return *i.AuthorsURL 3949} 3950 3951// GetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise. 3952func (i *Import) GetCommitCount() int { 3953 if i == nil || i.CommitCount == nil { 3954 return 0 3955 } 3956 return *i.CommitCount 3957} 3958 3959// GetFailedStep returns the FailedStep field if it's non-nil, zero value otherwise. 3960func (i *Import) GetFailedStep() string { 3961 if i == nil || i.FailedStep == nil { 3962 return "" 3963 } 3964 return *i.FailedStep 3965} 3966 3967// GetHasLargeFiles returns the HasLargeFiles field if it's non-nil, zero value otherwise. 3968func (i *Import) GetHasLargeFiles() bool { 3969 if i == nil || i.HasLargeFiles == nil { 3970 return false 3971 } 3972 return *i.HasLargeFiles 3973} 3974 3975// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3976func (i *Import) GetHTMLURL() string { 3977 if i == nil || i.HTMLURL == nil { 3978 return "" 3979 } 3980 return *i.HTMLURL 3981} 3982 3983// GetHumanName returns the HumanName field if it's non-nil, zero value otherwise. 3984func (i *Import) GetHumanName() string { 3985 if i == nil || i.HumanName == nil { 3986 return "" 3987 } 3988 return *i.HumanName 3989} 3990 3991// GetLargeFilesCount returns the LargeFilesCount field if it's non-nil, zero value otherwise. 3992func (i *Import) GetLargeFilesCount() int { 3993 if i == nil || i.LargeFilesCount == nil { 3994 return 0 3995 } 3996 return *i.LargeFilesCount 3997} 3998 3999// GetLargeFilesSize returns the LargeFilesSize field if it's non-nil, zero value otherwise. 4000func (i *Import) GetLargeFilesSize() int { 4001 if i == nil || i.LargeFilesSize == nil { 4002 return 0 4003 } 4004 return *i.LargeFilesSize 4005} 4006 4007// GetMessage returns the Message field if it's non-nil, zero value otherwise. 4008func (i *Import) GetMessage() string { 4009 if i == nil || i.Message == nil { 4010 return "" 4011 } 4012 return *i.Message 4013} 4014 4015// GetPercent returns the Percent field if it's non-nil, zero value otherwise. 4016func (i *Import) GetPercent() int { 4017 if i == nil || i.Percent == nil { 4018 return 0 4019 } 4020 return *i.Percent 4021} 4022 4023// GetPushPercent returns the PushPercent field if it's non-nil, zero value otherwise. 4024func (i *Import) GetPushPercent() int { 4025 if i == nil || i.PushPercent == nil { 4026 return 0 4027 } 4028 return *i.PushPercent 4029} 4030 4031// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 4032func (i *Import) GetRepositoryURL() string { 4033 if i == nil || i.RepositoryURL == nil { 4034 return "" 4035 } 4036 return *i.RepositoryURL 4037} 4038 4039// GetStatus returns the Status field if it's non-nil, zero value otherwise. 4040func (i *Import) GetStatus() string { 4041 if i == nil || i.Status == nil { 4042 return "" 4043 } 4044 return *i.Status 4045} 4046 4047// GetStatusText returns the StatusText field if it's non-nil, zero value otherwise. 4048func (i *Import) GetStatusText() string { 4049 if i == nil || i.StatusText == nil { 4050 return "" 4051 } 4052 return *i.StatusText 4053} 4054 4055// GetTFVCProject returns the TFVCProject field if it's non-nil, zero value otherwise. 4056func (i *Import) GetTFVCProject() string { 4057 if i == nil || i.TFVCProject == nil { 4058 return "" 4059 } 4060 return *i.TFVCProject 4061} 4062 4063// GetURL returns the URL field if it's non-nil, zero value otherwise. 4064func (i *Import) GetURL() string { 4065 if i == nil || i.URL == nil { 4066 return "" 4067 } 4068 return *i.URL 4069} 4070 4071// GetUseLFS returns the UseLFS field if it's non-nil, zero value otherwise. 4072func (i *Import) GetUseLFS() string { 4073 if i == nil || i.UseLFS == nil { 4074 return "" 4075 } 4076 return *i.UseLFS 4077} 4078 4079// GetVCS returns the VCS field if it's non-nil, zero value otherwise. 4080func (i *Import) GetVCS() string { 4081 if i == nil || i.VCS == nil { 4082 return "" 4083 } 4084 return *i.VCS 4085} 4086 4087// GetVCSPassword returns the VCSPassword field if it's non-nil, zero value otherwise. 4088func (i *Import) GetVCSPassword() string { 4089 if i == nil || i.VCSPassword == nil { 4090 return "" 4091 } 4092 return *i.VCSPassword 4093} 4094 4095// GetVCSURL returns the VCSURL field if it's non-nil, zero value otherwise. 4096func (i *Import) GetVCSURL() string { 4097 if i == nil || i.VCSURL == nil { 4098 return "" 4099 } 4100 return *i.VCSURL 4101} 4102 4103// GetVCSUsername returns the VCSUsername field if it's non-nil, zero value otherwise. 4104func (i *Import) GetVCSUsername() string { 4105 if i == nil || i.VCSUsername == nil { 4106 return "" 4107 } 4108 return *i.VCSUsername 4109} 4110 4111// GetAccessTokensURL returns the AccessTokensURL field if it's non-nil, zero value otherwise. 4112func (i *Installation) GetAccessTokensURL() string { 4113 if i == nil || i.AccessTokensURL == nil { 4114 return "" 4115 } 4116 return *i.AccessTokensURL 4117} 4118 4119// GetAccount returns the Account field. 4120func (i *Installation) GetAccount() *User { 4121 if i == nil { 4122 return nil 4123 } 4124 return i.Account 4125} 4126 4127// GetAppID returns the AppID field if it's non-nil, zero value otherwise. 4128func (i *Installation) GetAppID() int64 { 4129 if i == nil || i.AppID == nil { 4130 return 0 4131 } 4132 return *i.AppID 4133} 4134 4135// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4136func (i *Installation) GetCreatedAt() Timestamp { 4137 if i == nil || i.CreatedAt == nil { 4138 return Timestamp{} 4139 } 4140 return *i.CreatedAt 4141} 4142 4143// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4144func (i *Installation) GetHTMLURL() string { 4145 if i == nil || i.HTMLURL == nil { 4146 return "" 4147 } 4148 return *i.HTMLURL 4149} 4150 4151// GetID returns the ID field if it's non-nil, zero value otherwise. 4152func (i *Installation) GetID() int64 { 4153 if i == nil || i.ID == nil { 4154 return 0 4155 } 4156 return *i.ID 4157} 4158 4159// GetPermissions returns the Permissions field. 4160func (i *Installation) GetPermissions() *InstallationPermissions { 4161 if i == nil { 4162 return nil 4163 } 4164 return i.Permissions 4165} 4166 4167// GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 4168func (i *Installation) GetRepositoriesURL() string { 4169 if i == nil || i.RepositoriesURL == nil { 4170 return "" 4171 } 4172 return *i.RepositoriesURL 4173} 4174 4175// GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 4176func (i *Installation) GetRepositorySelection() string { 4177 if i == nil || i.RepositorySelection == nil { 4178 return "" 4179 } 4180 return *i.RepositorySelection 4181} 4182 4183// GetSingleFileName returns the SingleFileName field if it's non-nil, zero value otherwise. 4184func (i *Installation) GetSingleFileName() string { 4185 if i == nil || i.SingleFileName == nil { 4186 return "" 4187 } 4188 return *i.SingleFileName 4189} 4190 4191// GetTargetID returns the TargetID field if it's non-nil, zero value otherwise. 4192func (i *Installation) GetTargetID() int64 { 4193 if i == nil || i.TargetID == nil { 4194 return 0 4195 } 4196 return *i.TargetID 4197} 4198 4199// GetTargetType returns the TargetType field if it's non-nil, zero value otherwise. 4200func (i *Installation) GetTargetType() string { 4201 if i == nil || i.TargetType == nil { 4202 return "" 4203 } 4204 return *i.TargetType 4205} 4206 4207// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4208func (i *Installation) GetUpdatedAt() Timestamp { 4209 if i == nil || i.UpdatedAt == nil { 4210 return Timestamp{} 4211 } 4212 return *i.UpdatedAt 4213} 4214 4215// GetAction returns the Action field if it's non-nil, zero value otherwise. 4216func (i *InstallationEvent) GetAction() string { 4217 if i == nil || i.Action == nil { 4218 return "" 4219 } 4220 return *i.Action 4221} 4222 4223// GetInstallation returns the Installation field. 4224func (i *InstallationEvent) GetInstallation() *Installation { 4225 if i == nil { 4226 return nil 4227 } 4228 return i.Installation 4229} 4230 4231// GetSender returns the Sender field. 4232func (i *InstallationEvent) GetSender() *User { 4233 if i == nil { 4234 return nil 4235 } 4236 return i.Sender 4237} 4238 4239// GetAdministration returns the Administration field if it's non-nil, zero value otherwise. 4240func (i *InstallationPermissions) GetAdministration() string { 4241 if i == nil || i.Administration == nil { 4242 return "" 4243 } 4244 return *i.Administration 4245} 4246 4247// GetBlocking returns the Blocking field if it's non-nil, zero value otherwise. 4248func (i *InstallationPermissions) GetBlocking() string { 4249 if i == nil || i.Blocking == nil { 4250 return "" 4251 } 4252 return *i.Blocking 4253} 4254 4255// GetChecks returns the Checks field if it's non-nil, zero value otherwise. 4256func (i *InstallationPermissions) GetChecks() string { 4257 if i == nil || i.Checks == nil { 4258 return "" 4259 } 4260 return *i.Checks 4261} 4262 4263// GetContentReferences returns the ContentReferences field if it's non-nil, zero value otherwise. 4264func (i *InstallationPermissions) GetContentReferences() string { 4265 if i == nil || i.ContentReferences == nil { 4266 return "" 4267 } 4268 return *i.ContentReferences 4269} 4270 4271// GetContents returns the Contents field if it's non-nil, zero value otherwise. 4272func (i *InstallationPermissions) GetContents() string { 4273 if i == nil || i.Contents == nil { 4274 return "" 4275 } 4276 return *i.Contents 4277} 4278 4279// GetDeployments returns the Deployments field if it's non-nil, zero value otherwise. 4280func (i *InstallationPermissions) GetDeployments() string { 4281 if i == nil || i.Deployments == nil { 4282 return "" 4283 } 4284 return *i.Deployments 4285} 4286 4287// GetEmails returns the Emails field if it's non-nil, zero value otherwise. 4288func (i *InstallationPermissions) GetEmails() string { 4289 if i == nil || i.Emails == nil { 4290 return "" 4291 } 4292 return *i.Emails 4293} 4294 4295// GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 4296func (i *InstallationPermissions) GetFollowers() string { 4297 if i == nil || i.Followers == nil { 4298 return "" 4299 } 4300 return *i.Followers 4301} 4302 4303// GetIssues returns the Issues field if it's non-nil, zero value otherwise. 4304func (i *InstallationPermissions) GetIssues() string { 4305 if i == nil || i.Issues == nil { 4306 return "" 4307 } 4308 return *i.Issues 4309} 4310 4311// GetMembers returns the Members field if it's non-nil, zero value otherwise. 4312func (i *InstallationPermissions) GetMembers() string { 4313 if i == nil || i.Members == nil { 4314 return "" 4315 } 4316 return *i.Members 4317} 4318 4319// GetMetadata returns the Metadata field if it's non-nil, zero value otherwise. 4320func (i *InstallationPermissions) GetMetadata() string { 4321 if i == nil || i.Metadata == nil { 4322 return "" 4323 } 4324 return *i.Metadata 4325} 4326 4327// GetOrganizationAdministration returns the OrganizationAdministration field if it's non-nil, zero value otherwise. 4328func (i *InstallationPermissions) GetOrganizationAdministration() string { 4329 if i == nil || i.OrganizationAdministration == nil { 4330 return "" 4331 } 4332 return *i.OrganizationAdministration 4333} 4334 4335// GetOrganizationHooks returns the OrganizationHooks field if it's non-nil, zero value otherwise. 4336func (i *InstallationPermissions) GetOrganizationHooks() string { 4337 if i == nil || i.OrganizationHooks == nil { 4338 return "" 4339 } 4340 return *i.OrganizationHooks 4341} 4342 4343// GetOrganizationPlan returns the OrganizationPlan field if it's non-nil, zero value otherwise. 4344func (i *InstallationPermissions) GetOrganizationPlan() string { 4345 if i == nil || i.OrganizationPlan == nil { 4346 return "" 4347 } 4348 return *i.OrganizationPlan 4349} 4350 4351// GetOrganizationPreReceiveHooks returns the OrganizationPreReceiveHooks field if it's non-nil, zero value otherwise. 4352func (i *InstallationPermissions) GetOrganizationPreReceiveHooks() string { 4353 if i == nil || i.OrganizationPreReceiveHooks == nil { 4354 return "" 4355 } 4356 return *i.OrganizationPreReceiveHooks 4357} 4358 4359// GetOrganizationProjects returns the OrganizationProjects field if it's non-nil, zero value otherwise. 4360func (i *InstallationPermissions) GetOrganizationProjects() string { 4361 if i == nil || i.OrganizationProjects == nil { 4362 return "" 4363 } 4364 return *i.OrganizationProjects 4365} 4366 4367// GetOrganizationUserBlocking returns the OrganizationUserBlocking field if it's non-nil, zero value otherwise. 4368func (i *InstallationPermissions) GetOrganizationUserBlocking() string { 4369 if i == nil || i.OrganizationUserBlocking == nil { 4370 return "" 4371 } 4372 return *i.OrganizationUserBlocking 4373} 4374 4375// GetPackages returns the Packages field if it's non-nil, zero value otherwise. 4376func (i *InstallationPermissions) GetPackages() string { 4377 if i == nil || i.Packages == nil { 4378 return "" 4379 } 4380 return *i.Packages 4381} 4382 4383// GetPages returns the Pages field if it's non-nil, zero value otherwise. 4384func (i *InstallationPermissions) GetPages() string { 4385 if i == nil || i.Pages == nil { 4386 return "" 4387 } 4388 return *i.Pages 4389} 4390 4391// GetPullRequests returns the PullRequests field if it's non-nil, zero value otherwise. 4392func (i *InstallationPermissions) GetPullRequests() string { 4393 if i == nil || i.PullRequests == nil { 4394 return "" 4395 } 4396 return *i.PullRequests 4397} 4398 4399// GetRepositoryHooks returns the RepositoryHooks field if it's non-nil, zero value otherwise. 4400func (i *InstallationPermissions) GetRepositoryHooks() string { 4401 if i == nil || i.RepositoryHooks == nil { 4402 return "" 4403 } 4404 return *i.RepositoryHooks 4405} 4406 4407// GetRepositoryPreReceiveHooks returns the RepositoryPreReceiveHooks field if it's non-nil, zero value otherwise. 4408func (i *InstallationPermissions) GetRepositoryPreReceiveHooks() string { 4409 if i == nil || i.RepositoryPreReceiveHooks == nil { 4410 return "" 4411 } 4412 return *i.RepositoryPreReceiveHooks 4413} 4414 4415// GetRepositoryProjects returns the RepositoryProjects field if it's non-nil, zero value otherwise. 4416func (i *InstallationPermissions) GetRepositoryProjects() string { 4417 if i == nil || i.RepositoryProjects == nil { 4418 return "" 4419 } 4420 return *i.RepositoryProjects 4421} 4422 4423// GetSingleFile returns the SingleFile field if it's non-nil, zero value otherwise. 4424func (i *InstallationPermissions) GetSingleFile() string { 4425 if i == nil || i.SingleFile == nil { 4426 return "" 4427 } 4428 return *i.SingleFile 4429} 4430 4431// GetStatuses returns the Statuses field if it's non-nil, zero value otherwise. 4432func (i *InstallationPermissions) GetStatuses() string { 4433 if i == nil || i.Statuses == nil { 4434 return "" 4435 } 4436 return *i.Statuses 4437} 4438 4439// GetTeamDiscussions returns the TeamDiscussions field if it's non-nil, zero value otherwise. 4440func (i *InstallationPermissions) GetTeamDiscussions() string { 4441 if i == nil || i.TeamDiscussions == nil { 4442 return "" 4443 } 4444 return *i.TeamDiscussions 4445} 4446 4447// GetVulnerabilityAlerts returns the VulnerabilityAlerts field if it's non-nil, zero value otherwise. 4448func (i *InstallationPermissions) GetVulnerabilityAlerts() string { 4449 if i == nil || i.VulnerabilityAlerts == nil { 4450 return "" 4451 } 4452 return *i.VulnerabilityAlerts 4453} 4454 4455// GetAction returns the Action field if it's non-nil, zero value otherwise. 4456func (i *InstallationRepositoriesEvent) GetAction() string { 4457 if i == nil || i.Action == nil { 4458 return "" 4459 } 4460 return *i.Action 4461} 4462 4463// GetInstallation returns the Installation field. 4464func (i *InstallationRepositoriesEvent) GetInstallation() *Installation { 4465 if i == nil { 4466 return nil 4467 } 4468 return i.Installation 4469} 4470 4471// GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 4472func (i *InstallationRepositoriesEvent) GetRepositorySelection() string { 4473 if i == nil || i.RepositorySelection == nil { 4474 return "" 4475 } 4476 return *i.RepositorySelection 4477} 4478 4479// GetSender returns the Sender field. 4480func (i *InstallationRepositoriesEvent) GetSender() *User { 4481 if i == nil { 4482 return nil 4483 } 4484 return i.Sender 4485} 4486 4487// GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 4488func (i *InstallationToken) GetExpiresAt() time.Time { 4489 if i == nil || i.ExpiresAt == nil { 4490 return time.Time{} 4491 } 4492 return *i.ExpiresAt 4493} 4494 4495// GetPermissions returns the Permissions field. 4496func (i *InstallationToken) GetPermissions() *InstallationPermissions { 4497 if i == nil { 4498 return nil 4499 } 4500 return i.Permissions 4501} 4502 4503// GetToken returns the Token field if it's non-nil, zero value otherwise. 4504func (i *InstallationToken) GetToken() string { 4505 if i == nil || i.Token == nil { 4506 return "" 4507 } 4508 return *i.Token 4509} 4510 4511// GetPermissions returns the Permissions field. 4512func (i *InstallationTokenOptions) GetPermissions() *InstallationPermissions { 4513 if i == nil { 4514 return nil 4515 } 4516 return i.Permissions 4517} 4518 4519// GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 4520func (i *InteractionRestriction) GetExpiresAt() Timestamp { 4521 if i == nil || i.ExpiresAt == nil { 4522 return Timestamp{} 4523 } 4524 return *i.ExpiresAt 4525} 4526 4527// GetLimit returns the Limit field if it's non-nil, zero value otherwise. 4528func (i *InteractionRestriction) GetLimit() string { 4529 if i == nil || i.Limit == nil { 4530 return "" 4531 } 4532 return *i.Limit 4533} 4534 4535// GetOrigin returns the Origin field if it's non-nil, zero value otherwise. 4536func (i *InteractionRestriction) GetOrigin() string { 4537 if i == nil || i.Origin == nil { 4538 return "" 4539 } 4540 return *i.Origin 4541} 4542 4543// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4544func (i *Invitation) GetCreatedAt() time.Time { 4545 if i == nil || i.CreatedAt == nil { 4546 return time.Time{} 4547 } 4548 return *i.CreatedAt 4549} 4550 4551// GetEmail returns the Email field if it's non-nil, zero value otherwise. 4552func (i *Invitation) GetEmail() string { 4553 if i == nil || i.Email == nil { 4554 return "" 4555 } 4556 return *i.Email 4557} 4558 4559// GetID returns the ID field if it's non-nil, zero value otherwise. 4560func (i *Invitation) GetID() int64 { 4561 if i == nil || i.ID == nil { 4562 return 0 4563 } 4564 return *i.ID 4565} 4566 4567// GetInvitationTeamURL returns the InvitationTeamURL field if it's non-nil, zero value otherwise. 4568func (i *Invitation) GetInvitationTeamURL() string { 4569 if i == nil || i.InvitationTeamURL == nil { 4570 return "" 4571 } 4572 return *i.InvitationTeamURL 4573} 4574 4575// GetInviter returns the Inviter field. 4576func (i *Invitation) GetInviter() *User { 4577 if i == nil { 4578 return nil 4579 } 4580 return i.Inviter 4581} 4582 4583// GetLogin returns the Login field if it's non-nil, zero value otherwise. 4584func (i *Invitation) GetLogin() string { 4585 if i == nil || i.Login == nil { 4586 return "" 4587 } 4588 return *i.Login 4589} 4590 4591// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4592func (i *Invitation) GetNodeID() string { 4593 if i == nil || i.NodeID == nil { 4594 return "" 4595 } 4596 return *i.NodeID 4597} 4598 4599// GetRole returns the Role field if it's non-nil, zero value otherwise. 4600func (i *Invitation) GetRole() string { 4601 if i == nil || i.Role == nil { 4602 return "" 4603 } 4604 return *i.Role 4605} 4606 4607// GetTeamCount returns the TeamCount field if it's non-nil, zero value otherwise. 4608func (i *Invitation) GetTeamCount() int { 4609 if i == nil || i.TeamCount == nil { 4610 return 0 4611 } 4612 return *i.TeamCount 4613} 4614 4615// GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 4616func (i *Issue) GetActiveLockReason() string { 4617 if i == nil || i.ActiveLockReason == nil { 4618 return "" 4619 } 4620 return *i.ActiveLockReason 4621} 4622 4623// GetAssignee returns the Assignee field. 4624func (i *Issue) GetAssignee() *User { 4625 if i == nil { 4626 return nil 4627 } 4628 return i.Assignee 4629} 4630 4631// GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 4632func (i *Issue) GetAuthorAssociation() string { 4633 if i == nil || i.AuthorAssociation == nil { 4634 return "" 4635 } 4636 return *i.AuthorAssociation 4637} 4638 4639// GetBody returns the Body field if it's non-nil, zero value otherwise. 4640func (i *Issue) GetBody() string { 4641 if i == nil || i.Body == nil { 4642 return "" 4643 } 4644 return *i.Body 4645} 4646 4647// GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 4648func (i *Issue) GetClosedAt() time.Time { 4649 if i == nil || i.ClosedAt == nil { 4650 return time.Time{} 4651 } 4652 return *i.ClosedAt 4653} 4654 4655// GetClosedBy returns the ClosedBy field. 4656func (i *Issue) GetClosedBy() *User { 4657 if i == nil { 4658 return nil 4659 } 4660 return i.ClosedBy 4661} 4662 4663// GetComments returns the Comments field if it's non-nil, zero value otherwise. 4664func (i *Issue) GetComments() int { 4665 if i == nil || i.Comments == nil { 4666 return 0 4667 } 4668 return *i.Comments 4669} 4670 4671// GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 4672func (i *Issue) GetCommentsURL() string { 4673 if i == nil || i.CommentsURL == nil { 4674 return "" 4675 } 4676 return *i.CommentsURL 4677} 4678 4679// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4680func (i *Issue) GetCreatedAt() time.Time { 4681 if i == nil || i.CreatedAt == nil { 4682 return time.Time{} 4683 } 4684 return *i.CreatedAt 4685} 4686 4687// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 4688func (i *Issue) GetEventsURL() string { 4689 if i == nil || i.EventsURL == nil { 4690 return "" 4691 } 4692 return *i.EventsURL 4693} 4694 4695// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4696func (i *Issue) GetHTMLURL() string { 4697 if i == nil || i.HTMLURL == nil { 4698 return "" 4699 } 4700 return *i.HTMLURL 4701} 4702 4703// GetID returns the ID field if it's non-nil, zero value otherwise. 4704func (i *Issue) GetID() int64 { 4705 if i == nil || i.ID == nil { 4706 return 0 4707 } 4708 return *i.ID 4709} 4710 4711// GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 4712func (i *Issue) GetLabelsURL() string { 4713 if i == nil || i.LabelsURL == nil { 4714 return "" 4715 } 4716 return *i.LabelsURL 4717} 4718 4719// GetLocked returns the Locked field if it's non-nil, zero value otherwise. 4720func (i *Issue) GetLocked() bool { 4721 if i == nil || i.Locked == nil { 4722 return false 4723 } 4724 return *i.Locked 4725} 4726 4727// GetMilestone returns the Milestone field. 4728func (i *Issue) GetMilestone() *Milestone { 4729 if i == nil { 4730 return nil 4731 } 4732 return i.Milestone 4733} 4734 4735// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4736func (i *Issue) GetNodeID() string { 4737 if i == nil || i.NodeID == nil { 4738 return "" 4739 } 4740 return *i.NodeID 4741} 4742 4743// GetNumber returns the Number field if it's non-nil, zero value otherwise. 4744func (i *Issue) GetNumber() int { 4745 if i == nil || i.Number == nil { 4746 return 0 4747 } 4748 return *i.Number 4749} 4750 4751// GetPullRequestLinks returns the PullRequestLinks field. 4752func (i *Issue) GetPullRequestLinks() *PullRequestLinks { 4753 if i == nil { 4754 return nil 4755 } 4756 return i.PullRequestLinks 4757} 4758 4759// GetReactions returns the Reactions field. 4760func (i *Issue) GetReactions() *Reactions { 4761 if i == nil { 4762 return nil 4763 } 4764 return i.Reactions 4765} 4766 4767// GetRepository returns the Repository field. 4768func (i *Issue) GetRepository() *Repository { 4769 if i == nil { 4770 return nil 4771 } 4772 return i.Repository 4773} 4774 4775// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 4776func (i *Issue) GetRepositoryURL() string { 4777 if i == nil || i.RepositoryURL == nil { 4778 return "" 4779 } 4780 return *i.RepositoryURL 4781} 4782 4783// GetState returns the State field if it's non-nil, zero value otherwise. 4784func (i *Issue) GetState() string { 4785 if i == nil || i.State == nil { 4786 return "" 4787 } 4788 return *i.State 4789} 4790 4791// GetTitle returns the Title field if it's non-nil, zero value otherwise. 4792func (i *Issue) GetTitle() string { 4793 if i == nil || i.Title == nil { 4794 return "" 4795 } 4796 return *i.Title 4797} 4798 4799// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4800func (i *Issue) GetUpdatedAt() time.Time { 4801 if i == nil || i.UpdatedAt == nil { 4802 return time.Time{} 4803 } 4804 return *i.UpdatedAt 4805} 4806 4807// GetURL returns the URL field if it's non-nil, zero value otherwise. 4808func (i *Issue) GetURL() string { 4809 if i == nil || i.URL == nil { 4810 return "" 4811 } 4812 return *i.URL 4813} 4814 4815// GetUser returns the User field. 4816func (i *Issue) GetUser() *User { 4817 if i == nil { 4818 return nil 4819 } 4820 return i.User 4821} 4822 4823// GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 4824func (i *IssueComment) GetAuthorAssociation() string { 4825 if i == nil || i.AuthorAssociation == nil { 4826 return "" 4827 } 4828 return *i.AuthorAssociation 4829} 4830 4831// GetBody returns the Body field if it's non-nil, zero value otherwise. 4832func (i *IssueComment) GetBody() string { 4833 if i == nil || i.Body == nil { 4834 return "" 4835 } 4836 return *i.Body 4837} 4838 4839// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4840func (i *IssueComment) GetCreatedAt() time.Time { 4841 if i == nil || i.CreatedAt == nil { 4842 return time.Time{} 4843 } 4844 return *i.CreatedAt 4845} 4846 4847// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4848func (i *IssueComment) GetHTMLURL() string { 4849 if i == nil || i.HTMLURL == nil { 4850 return "" 4851 } 4852 return *i.HTMLURL 4853} 4854 4855// GetID returns the ID field if it's non-nil, zero value otherwise. 4856func (i *IssueComment) GetID() int64 { 4857 if i == nil || i.ID == nil { 4858 return 0 4859 } 4860 return *i.ID 4861} 4862 4863// GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 4864func (i *IssueComment) GetIssueURL() string { 4865 if i == nil || i.IssueURL == nil { 4866 return "" 4867 } 4868 return *i.IssueURL 4869} 4870 4871// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4872func (i *IssueComment) GetNodeID() string { 4873 if i == nil || i.NodeID == nil { 4874 return "" 4875 } 4876 return *i.NodeID 4877} 4878 4879// GetReactions returns the Reactions field. 4880func (i *IssueComment) GetReactions() *Reactions { 4881 if i == nil { 4882 return nil 4883 } 4884 return i.Reactions 4885} 4886 4887// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4888func (i *IssueComment) GetUpdatedAt() time.Time { 4889 if i == nil || i.UpdatedAt == nil { 4890 return time.Time{} 4891 } 4892 return *i.UpdatedAt 4893} 4894 4895// GetURL returns the URL field if it's non-nil, zero value otherwise. 4896func (i *IssueComment) GetURL() string { 4897 if i == nil || i.URL == nil { 4898 return "" 4899 } 4900 return *i.URL 4901} 4902 4903// GetUser returns the User field. 4904func (i *IssueComment) GetUser() *User { 4905 if i == nil { 4906 return nil 4907 } 4908 return i.User 4909} 4910 4911// GetAction returns the Action field if it's non-nil, zero value otherwise. 4912func (i *IssueCommentEvent) GetAction() string { 4913 if i == nil || i.Action == nil { 4914 return "" 4915 } 4916 return *i.Action 4917} 4918 4919// GetChanges returns the Changes field. 4920func (i *IssueCommentEvent) GetChanges() *EditChange { 4921 if i == nil { 4922 return nil 4923 } 4924 return i.Changes 4925} 4926 4927// GetComment returns the Comment field. 4928func (i *IssueCommentEvent) GetComment() *IssueComment { 4929 if i == nil { 4930 return nil 4931 } 4932 return i.Comment 4933} 4934 4935// GetInstallation returns the Installation field. 4936func (i *IssueCommentEvent) GetInstallation() *Installation { 4937 if i == nil { 4938 return nil 4939 } 4940 return i.Installation 4941} 4942 4943// GetIssue returns the Issue field. 4944func (i *IssueCommentEvent) GetIssue() *Issue { 4945 if i == nil { 4946 return nil 4947 } 4948 return i.Issue 4949} 4950 4951// GetRepo returns the Repo field. 4952func (i *IssueCommentEvent) GetRepo() *Repository { 4953 if i == nil { 4954 return nil 4955 } 4956 return i.Repo 4957} 4958 4959// GetSender returns the Sender field. 4960func (i *IssueCommentEvent) GetSender() *User { 4961 if i == nil { 4962 return nil 4963 } 4964 return i.Sender 4965} 4966 4967// GetActor returns the Actor field. 4968func (i *IssueEvent) GetActor() *User { 4969 if i == nil { 4970 return nil 4971 } 4972 return i.Actor 4973} 4974 4975// GetAssignee returns the Assignee field. 4976func (i *IssueEvent) GetAssignee() *User { 4977 if i == nil { 4978 return nil 4979 } 4980 return i.Assignee 4981} 4982 4983// GetAssigner returns the Assigner field. 4984func (i *IssueEvent) GetAssigner() *User { 4985 if i == nil { 4986 return nil 4987 } 4988 return i.Assigner 4989} 4990 4991// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 4992func (i *IssueEvent) GetCommitID() string { 4993 if i == nil || i.CommitID == nil { 4994 return "" 4995 } 4996 return *i.CommitID 4997} 4998 4999// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5000func (i *IssueEvent) GetCreatedAt() time.Time { 5001 if i == nil || i.CreatedAt == nil { 5002 return time.Time{} 5003 } 5004 return *i.CreatedAt 5005} 5006 5007// GetDismissedReview returns the DismissedReview field. 5008func (i *IssueEvent) GetDismissedReview() *DismissedReview { 5009 if i == nil { 5010 return nil 5011 } 5012 return i.DismissedReview 5013} 5014 5015// GetEvent returns the Event field if it's non-nil, zero value otherwise. 5016func (i *IssueEvent) GetEvent() string { 5017 if i == nil || i.Event == nil { 5018 return "" 5019 } 5020 return *i.Event 5021} 5022 5023// GetID returns the ID field if it's non-nil, zero value otherwise. 5024func (i *IssueEvent) GetID() int64 { 5025 if i == nil || i.ID == nil { 5026 return 0 5027 } 5028 return *i.ID 5029} 5030 5031// GetIssue returns the Issue field. 5032func (i *IssueEvent) GetIssue() *Issue { 5033 if i == nil { 5034 return nil 5035 } 5036 return i.Issue 5037} 5038 5039// GetLabel returns the Label field. 5040func (i *IssueEvent) GetLabel() *Label { 5041 if i == nil { 5042 return nil 5043 } 5044 return i.Label 5045} 5046 5047// GetLockReason returns the LockReason field if it's non-nil, zero value otherwise. 5048func (i *IssueEvent) GetLockReason() string { 5049 if i == nil || i.LockReason == nil { 5050 return "" 5051 } 5052 return *i.LockReason 5053} 5054 5055// GetMilestone returns the Milestone field. 5056func (i *IssueEvent) GetMilestone() *Milestone { 5057 if i == nil { 5058 return nil 5059 } 5060 return i.Milestone 5061} 5062 5063// GetProjectCard returns the ProjectCard field. 5064func (i *IssueEvent) GetProjectCard() *ProjectCard { 5065 if i == nil { 5066 return nil 5067 } 5068 return i.ProjectCard 5069} 5070 5071// GetRename returns the Rename field. 5072func (i *IssueEvent) GetRename() *Rename { 5073 if i == nil { 5074 return nil 5075 } 5076 return i.Rename 5077} 5078 5079// GetURL returns the URL field if it's non-nil, zero value otherwise. 5080func (i *IssueEvent) GetURL() string { 5081 if i == nil || i.URL == nil { 5082 return "" 5083 } 5084 return *i.URL 5085} 5086 5087// GetDirection returns the Direction field if it's non-nil, zero value otherwise. 5088func (i *IssueListCommentsOptions) GetDirection() string { 5089 if i == nil || i.Direction == nil { 5090 return "" 5091 } 5092 return *i.Direction 5093} 5094 5095// GetSince returns the Since field if it's non-nil, zero value otherwise. 5096func (i *IssueListCommentsOptions) GetSince() time.Time { 5097 if i == nil || i.Since == nil { 5098 return time.Time{} 5099 } 5100 return *i.Since 5101} 5102 5103// GetSort returns the Sort field if it's non-nil, zero value otherwise. 5104func (i *IssueListCommentsOptions) GetSort() string { 5105 if i == nil || i.Sort == nil { 5106 return "" 5107 } 5108 return *i.Sort 5109} 5110 5111// GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. 5112func (i *IssueRequest) GetAssignee() string { 5113 if i == nil || i.Assignee == nil { 5114 return "" 5115 } 5116 return *i.Assignee 5117} 5118 5119// GetAssignees returns the Assignees field if it's non-nil, zero value otherwise. 5120func (i *IssueRequest) GetAssignees() []string { 5121 if i == nil || i.Assignees == nil { 5122 return nil 5123 } 5124 return *i.Assignees 5125} 5126 5127// GetBody returns the Body field if it's non-nil, zero value otherwise. 5128func (i *IssueRequest) GetBody() string { 5129 if i == nil || i.Body == nil { 5130 return "" 5131 } 5132 return *i.Body 5133} 5134 5135// GetLabels returns the Labels field if it's non-nil, zero value otherwise. 5136func (i *IssueRequest) GetLabels() []string { 5137 if i == nil || i.Labels == nil { 5138 return nil 5139 } 5140 return *i.Labels 5141} 5142 5143// GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. 5144func (i *IssueRequest) GetMilestone() int { 5145 if i == nil || i.Milestone == nil { 5146 return 0 5147 } 5148 return *i.Milestone 5149} 5150 5151// GetState returns the State field if it's non-nil, zero value otherwise. 5152func (i *IssueRequest) GetState() string { 5153 if i == nil || i.State == nil { 5154 return "" 5155 } 5156 return *i.State 5157} 5158 5159// GetTitle returns the Title field if it's non-nil, zero value otherwise. 5160func (i *IssueRequest) GetTitle() string { 5161 if i == nil || i.Title == nil { 5162 return "" 5163 } 5164 return *i.Title 5165} 5166 5167// GetAction returns the Action field if it's non-nil, zero value otherwise. 5168func (i *IssuesEvent) GetAction() string { 5169 if i == nil || i.Action == nil { 5170 return "" 5171 } 5172 return *i.Action 5173} 5174 5175// GetAssignee returns the Assignee field. 5176func (i *IssuesEvent) GetAssignee() *User { 5177 if i == nil { 5178 return nil 5179 } 5180 return i.Assignee 5181} 5182 5183// GetChanges returns the Changes field. 5184func (i *IssuesEvent) GetChanges() *EditChange { 5185 if i == nil { 5186 return nil 5187 } 5188 return i.Changes 5189} 5190 5191// GetInstallation returns the Installation field. 5192func (i *IssuesEvent) GetInstallation() *Installation { 5193 if i == nil { 5194 return nil 5195 } 5196 return i.Installation 5197} 5198 5199// GetIssue returns the Issue field. 5200func (i *IssuesEvent) GetIssue() *Issue { 5201 if i == nil { 5202 return nil 5203 } 5204 return i.Issue 5205} 5206 5207// GetLabel returns the Label field. 5208func (i *IssuesEvent) GetLabel() *Label { 5209 if i == nil { 5210 return nil 5211 } 5212 return i.Label 5213} 5214 5215// GetRepo returns the Repo field. 5216func (i *IssuesEvent) GetRepo() *Repository { 5217 if i == nil { 5218 return nil 5219 } 5220 return i.Repo 5221} 5222 5223// GetSender returns the Sender field. 5224func (i *IssuesEvent) GetSender() *User { 5225 if i == nil { 5226 return nil 5227 } 5228 return i.Sender 5229} 5230 5231// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 5232func (i *IssuesSearchResult) GetIncompleteResults() bool { 5233 if i == nil || i.IncompleteResults == nil { 5234 return false 5235 } 5236 return *i.IncompleteResults 5237} 5238 5239// GetTotal returns the Total field if it's non-nil, zero value otherwise. 5240func (i *IssuesSearchResult) GetTotal() int { 5241 if i == nil || i.Total == nil { 5242 return 0 5243 } 5244 return *i.Total 5245} 5246 5247// GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. 5248func (i *IssueStats) GetClosedIssues() int { 5249 if i == nil || i.ClosedIssues == nil { 5250 return 0 5251 } 5252 return *i.ClosedIssues 5253} 5254 5255// GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 5256func (i *IssueStats) GetOpenIssues() int { 5257 if i == nil || i.OpenIssues == nil { 5258 return 0 5259 } 5260 return *i.OpenIssues 5261} 5262 5263// GetTotalIssues returns the TotalIssues field if it's non-nil, zero value otherwise. 5264func (i *IssueStats) GetTotalIssues() int { 5265 if i == nil || i.TotalIssues == nil { 5266 return 0 5267 } 5268 return *i.TotalIssues 5269} 5270 5271// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 5272func (j *Jobs) GetTotalCount() int { 5273 if j == nil || j.TotalCount == nil { 5274 return 0 5275 } 5276 return *j.TotalCount 5277} 5278 5279// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5280func (k *Key) GetCreatedAt() Timestamp { 5281 if k == nil || k.CreatedAt == nil { 5282 return Timestamp{} 5283 } 5284 return *k.CreatedAt 5285} 5286 5287// GetID returns the ID field if it's non-nil, zero value otherwise. 5288func (k *Key) GetID() int64 { 5289 if k == nil || k.ID == nil { 5290 return 0 5291 } 5292 return *k.ID 5293} 5294 5295// GetKey returns the Key field if it's non-nil, zero value otherwise. 5296func (k *Key) GetKey() string { 5297 if k == nil || k.Key == nil { 5298 return "" 5299 } 5300 return *k.Key 5301} 5302 5303// GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise. 5304func (k *Key) GetReadOnly() bool { 5305 if k == nil || k.ReadOnly == nil { 5306 return false 5307 } 5308 return *k.ReadOnly 5309} 5310 5311// GetTitle returns the Title field if it's non-nil, zero value otherwise. 5312func (k *Key) GetTitle() string { 5313 if k == nil || k.Title == nil { 5314 return "" 5315 } 5316 return *k.Title 5317} 5318 5319// GetURL returns the URL field if it's non-nil, zero value otherwise. 5320func (k *Key) GetURL() string { 5321 if k == nil || k.URL == nil { 5322 return "" 5323 } 5324 return *k.URL 5325} 5326 5327// GetColor returns the Color field if it's non-nil, zero value otherwise. 5328func (l *Label) GetColor() string { 5329 if l == nil || l.Color == nil { 5330 return "" 5331 } 5332 return *l.Color 5333} 5334 5335// GetDefault returns the Default field if it's non-nil, zero value otherwise. 5336func (l *Label) GetDefault() bool { 5337 if l == nil || l.Default == nil { 5338 return false 5339 } 5340 return *l.Default 5341} 5342 5343// GetDescription returns the Description field if it's non-nil, zero value otherwise. 5344func (l *Label) GetDescription() string { 5345 if l == nil || l.Description == nil { 5346 return "" 5347 } 5348 return *l.Description 5349} 5350 5351// GetID returns the ID field if it's non-nil, zero value otherwise. 5352func (l *Label) GetID() int64 { 5353 if l == nil || l.ID == nil { 5354 return 0 5355 } 5356 return *l.ID 5357} 5358 5359// GetName returns the Name field if it's non-nil, zero value otherwise. 5360func (l *Label) GetName() string { 5361 if l == nil || l.Name == nil { 5362 return "" 5363 } 5364 return *l.Name 5365} 5366 5367// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5368func (l *Label) GetNodeID() string { 5369 if l == nil || l.NodeID == nil { 5370 return "" 5371 } 5372 return *l.NodeID 5373} 5374 5375// GetURL returns the URL field if it's non-nil, zero value otherwise. 5376func (l *Label) GetURL() string { 5377 if l == nil || l.URL == nil { 5378 return "" 5379 } 5380 return *l.URL 5381} 5382 5383// GetAction returns the Action field if it's non-nil, zero value otherwise. 5384func (l *LabelEvent) GetAction() string { 5385 if l == nil || l.Action == nil { 5386 return "" 5387 } 5388 return *l.Action 5389} 5390 5391// GetChanges returns the Changes field. 5392func (l *LabelEvent) GetChanges() *EditChange { 5393 if l == nil { 5394 return nil 5395 } 5396 return l.Changes 5397} 5398 5399// GetInstallation returns the Installation field. 5400func (l *LabelEvent) GetInstallation() *Installation { 5401 if l == nil { 5402 return nil 5403 } 5404 return l.Installation 5405} 5406 5407// GetLabel returns the Label field. 5408func (l *LabelEvent) GetLabel() *Label { 5409 if l == nil { 5410 return nil 5411 } 5412 return l.Label 5413} 5414 5415// GetOrg returns the Org field. 5416func (l *LabelEvent) GetOrg() *Organization { 5417 if l == nil { 5418 return nil 5419 } 5420 return l.Org 5421} 5422 5423// GetRepo returns the Repo field. 5424func (l *LabelEvent) GetRepo() *Repository { 5425 if l == nil { 5426 return nil 5427 } 5428 return l.Repo 5429} 5430 5431// GetColor returns the Color field if it's non-nil, zero value otherwise. 5432func (l *LabelResult) GetColor() string { 5433 if l == nil || l.Color == nil { 5434 return "" 5435 } 5436 return *l.Color 5437} 5438 5439// GetDefault returns the Default field if it's non-nil, zero value otherwise. 5440func (l *LabelResult) GetDefault() bool { 5441 if l == nil || l.Default == nil { 5442 return false 5443 } 5444 return *l.Default 5445} 5446 5447// GetDescription returns the Description field if it's non-nil, zero value otherwise. 5448func (l *LabelResult) GetDescription() string { 5449 if l == nil || l.Description == nil { 5450 return "" 5451 } 5452 return *l.Description 5453} 5454 5455// GetID returns the ID field if it's non-nil, zero value otherwise. 5456func (l *LabelResult) GetID() int64 { 5457 if l == nil || l.ID == nil { 5458 return 0 5459 } 5460 return *l.ID 5461} 5462 5463// GetName returns the Name field if it's non-nil, zero value otherwise. 5464func (l *LabelResult) GetName() string { 5465 if l == nil || l.Name == nil { 5466 return "" 5467 } 5468 return *l.Name 5469} 5470 5471// GetScore returns the Score field. 5472func (l *LabelResult) GetScore() *float64 { 5473 if l == nil { 5474 return nil 5475 } 5476 return l.Score 5477} 5478 5479// GetURL returns the URL field if it's non-nil, zero value otherwise. 5480func (l *LabelResult) GetURL() string { 5481 if l == nil || l.URL == nil { 5482 return "" 5483 } 5484 return *l.URL 5485} 5486 5487// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 5488func (l *LabelsSearchResult) GetIncompleteResults() bool { 5489 if l == nil || l.IncompleteResults == nil { 5490 return false 5491 } 5492 return *l.IncompleteResults 5493} 5494 5495// GetTotal returns the Total field if it's non-nil, zero value otherwise. 5496func (l *LabelsSearchResult) GetTotal() int { 5497 if l == nil || l.Total == nil { 5498 return 0 5499 } 5500 return *l.Total 5501} 5502 5503// GetOID returns the OID field if it's non-nil, zero value otherwise. 5504func (l *LargeFile) GetOID() string { 5505 if l == nil || l.OID == nil { 5506 return "" 5507 } 5508 return *l.OID 5509} 5510 5511// GetPath returns the Path field if it's non-nil, zero value otherwise. 5512func (l *LargeFile) GetPath() string { 5513 if l == nil || l.Path == nil { 5514 return "" 5515 } 5516 return *l.Path 5517} 5518 5519// GetRefName returns the RefName field if it's non-nil, zero value otherwise. 5520func (l *LargeFile) GetRefName() string { 5521 if l == nil || l.RefName == nil { 5522 return "" 5523 } 5524 return *l.RefName 5525} 5526 5527// GetSize returns the Size field if it's non-nil, zero value otherwise. 5528func (l *LargeFile) GetSize() int { 5529 if l == nil || l.Size == nil { 5530 return 0 5531 } 5532 return *l.Size 5533} 5534 5535// GetBody returns the Body field if it's non-nil, zero value otherwise. 5536func (l *License) GetBody() string { 5537 if l == nil || l.Body == nil { 5538 return "" 5539 } 5540 return *l.Body 5541} 5542 5543// GetConditions returns the Conditions field if it's non-nil, zero value otherwise. 5544func (l *License) GetConditions() []string { 5545 if l == nil || l.Conditions == nil { 5546 return nil 5547 } 5548 return *l.Conditions 5549} 5550 5551// GetDescription returns the Description field if it's non-nil, zero value otherwise. 5552func (l *License) GetDescription() string { 5553 if l == nil || l.Description == nil { 5554 return "" 5555 } 5556 return *l.Description 5557} 5558 5559// GetFeatured returns the Featured field if it's non-nil, zero value otherwise. 5560func (l *License) GetFeatured() bool { 5561 if l == nil || l.Featured == nil { 5562 return false 5563 } 5564 return *l.Featured 5565} 5566 5567// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5568func (l *License) GetHTMLURL() string { 5569 if l == nil || l.HTMLURL == nil { 5570 return "" 5571 } 5572 return *l.HTMLURL 5573} 5574 5575// GetImplementation returns the Implementation field if it's non-nil, zero value otherwise. 5576func (l *License) GetImplementation() string { 5577 if l == nil || l.Implementation == nil { 5578 return "" 5579 } 5580 return *l.Implementation 5581} 5582 5583// GetKey returns the Key field if it's non-nil, zero value otherwise. 5584func (l *License) GetKey() string { 5585 if l == nil || l.Key == nil { 5586 return "" 5587 } 5588 return *l.Key 5589} 5590 5591// GetLimitations returns the Limitations field if it's non-nil, zero value otherwise. 5592func (l *License) GetLimitations() []string { 5593 if l == nil || l.Limitations == nil { 5594 return nil 5595 } 5596 return *l.Limitations 5597} 5598 5599// GetName returns the Name field if it's non-nil, zero value otherwise. 5600func (l *License) GetName() string { 5601 if l == nil || l.Name == nil { 5602 return "" 5603 } 5604 return *l.Name 5605} 5606 5607// GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 5608func (l *License) GetPermissions() []string { 5609 if l == nil || l.Permissions == nil { 5610 return nil 5611 } 5612 return *l.Permissions 5613} 5614 5615// GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. 5616func (l *License) GetSPDXID() string { 5617 if l == nil || l.SPDXID == nil { 5618 return "" 5619 } 5620 return *l.SPDXID 5621} 5622 5623// GetURL returns the URL field if it's non-nil, zero value otherwise. 5624func (l *License) GetURL() string { 5625 if l == nil || l.URL == nil { 5626 return "" 5627 } 5628 return *l.URL 5629} 5630 5631// GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. 5632func (l *ListCheckRunsOptions) GetCheckName() string { 5633 if l == nil || l.CheckName == nil { 5634 return "" 5635 } 5636 return *l.CheckName 5637} 5638 5639// GetFilter returns the Filter field if it's non-nil, zero value otherwise. 5640func (l *ListCheckRunsOptions) GetFilter() string { 5641 if l == nil || l.Filter == nil { 5642 return "" 5643 } 5644 return *l.Filter 5645} 5646 5647// GetStatus returns the Status field if it's non-nil, zero value otherwise. 5648func (l *ListCheckRunsOptions) GetStatus() string { 5649 if l == nil || l.Status == nil { 5650 return "" 5651 } 5652 return *l.Status 5653} 5654 5655// GetTotal returns the Total field if it's non-nil, zero value otherwise. 5656func (l *ListCheckRunsResults) GetTotal() int { 5657 if l == nil || l.Total == nil { 5658 return 0 5659 } 5660 return *l.Total 5661} 5662 5663// GetAppID returns the AppID field if it's non-nil, zero value otherwise. 5664func (l *ListCheckSuiteOptions) GetAppID() int { 5665 if l == nil || l.AppID == nil { 5666 return 0 5667 } 5668 return *l.AppID 5669} 5670 5671// GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. 5672func (l *ListCheckSuiteOptions) GetCheckName() string { 5673 if l == nil || l.CheckName == nil { 5674 return "" 5675 } 5676 return *l.CheckName 5677} 5678 5679// GetTotal returns the Total field if it's non-nil, zero value otherwise. 5680func (l *ListCheckSuiteResults) GetTotal() int { 5681 if l == nil || l.Total == nil { 5682 return 0 5683 } 5684 return *l.Total 5685} 5686 5687// GetAffiliation returns the Affiliation field if it's non-nil, zero value otherwise. 5688func (l *ListCollaboratorOptions) GetAffiliation() string { 5689 if l == nil || l.Affiliation == nil { 5690 return "" 5691 } 5692 return *l.Affiliation 5693} 5694 5695// GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. 5696func (m *MarketplacePendingChange) GetEffectiveDate() Timestamp { 5697 if m == nil || m.EffectiveDate == nil { 5698 return Timestamp{} 5699 } 5700 return *m.EffectiveDate 5701} 5702 5703// GetID returns the ID field if it's non-nil, zero value otherwise. 5704func (m *MarketplacePendingChange) GetID() int64 { 5705 if m == nil || m.ID == nil { 5706 return 0 5707 } 5708 return *m.ID 5709} 5710 5711// GetPlan returns the Plan field. 5712func (m *MarketplacePendingChange) GetPlan() *MarketplacePlan { 5713 if m == nil { 5714 return nil 5715 } 5716 return m.Plan 5717} 5718 5719// GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. 5720func (m *MarketplacePendingChange) GetUnitCount() int { 5721 if m == nil || m.UnitCount == nil { 5722 return 0 5723 } 5724 return *m.UnitCount 5725} 5726 5727// GetAccountsURL returns the AccountsURL field if it's non-nil, zero value otherwise. 5728func (m *MarketplacePlan) GetAccountsURL() string { 5729 if m == nil || m.AccountsURL == nil { 5730 return "" 5731 } 5732 return *m.AccountsURL 5733} 5734 5735// GetBullets returns the Bullets field if it's non-nil, zero value otherwise. 5736func (m *MarketplacePlan) GetBullets() []string { 5737 if m == nil || m.Bullets == nil { 5738 return nil 5739 } 5740 return *m.Bullets 5741} 5742 5743// GetDescription returns the Description field if it's non-nil, zero value otherwise. 5744func (m *MarketplacePlan) GetDescription() string { 5745 if m == nil || m.Description == nil { 5746 return "" 5747 } 5748 return *m.Description 5749} 5750 5751// GetHasFreeTrial returns the HasFreeTrial field if it's non-nil, zero value otherwise. 5752func (m *MarketplacePlan) GetHasFreeTrial() bool { 5753 if m == nil || m.HasFreeTrial == nil { 5754 return false 5755 } 5756 return *m.HasFreeTrial 5757} 5758 5759// GetID returns the ID field if it's non-nil, zero value otherwise. 5760func (m *MarketplacePlan) GetID() int64 { 5761 if m == nil || m.ID == nil { 5762 return 0 5763 } 5764 return *m.ID 5765} 5766 5767// GetMonthlyPriceInCents returns the MonthlyPriceInCents field if it's non-nil, zero value otherwise. 5768func (m *MarketplacePlan) GetMonthlyPriceInCents() int { 5769 if m == nil || m.MonthlyPriceInCents == nil { 5770 return 0 5771 } 5772 return *m.MonthlyPriceInCents 5773} 5774 5775// GetName returns the Name field if it's non-nil, zero value otherwise. 5776func (m *MarketplacePlan) GetName() string { 5777 if m == nil || m.Name == nil { 5778 return "" 5779 } 5780 return *m.Name 5781} 5782 5783// GetPriceModel returns the PriceModel field if it's non-nil, zero value otherwise. 5784func (m *MarketplacePlan) GetPriceModel() string { 5785 if m == nil || m.PriceModel == nil { 5786 return "" 5787 } 5788 return *m.PriceModel 5789} 5790 5791// GetState returns the State field if it's non-nil, zero value otherwise. 5792func (m *MarketplacePlan) GetState() string { 5793 if m == nil || m.State == nil { 5794 return "" 5795 } 5796 return *m.State 5797} 5798 5799// GetUnitName returns the UnitName field if it's non-nil, zero value otherwise. 5800func (m *MarketplacePlan) GetUnitName() string { 5801 if m == nil || m.UnitName == nil { 5802 return "" 5803 } 5804 return *m.UnitName 5805} 5806 5807// GetURL returns the URL field if it's non-nil, zero value otherwise. 5808func (m *MarketplacePlan) GetURL() string { 5809 if m == nil || m.URL == nil { 5810 return "" 5811 } 5812 return *m.URL 5813} 5814 5815// GetYearlyPriceInCents returns the YearlyPriceInCents field if it's non-nil, zero value otherwise. 5816func (m *MarketplacePlan) GetYearlyPriceInCents() int { 5817 if m == nil || m.YearlyPriceInCents == nil { 5818 return 0 5819 } 5820 return *m.YearlyPriceInCents 5821} 5822 5823// GetEmail returns the Email field if it's non-nil, zero value otherwise. 5824func (m *MarketplacePlanAccount) GetEmail() string { 5825 if m == nil || m.Email == nil { 5826 return "" 5827 } 5828 return *m.Email 5829} 5830 5831// GetID returns the ID field if it's non-nil, zero value otherwise. 5832func (m *MarketplacePlanAccount) GetID() int64 { 5833 if m == nil || m.ID == nil { 5834 return 0 5835 } 5836 return *m.ID 5837} 5838 5839// GetLogin returns the Login field if it's non-nil, zero value otherwise. 5840func (m *MarketplacePlanAccount) GetLogin() string { 5841 if m == nil || m.Login == nil { 5842 return "" 5843 } 5844 return *m.Login 5845} 5846 5847// GetMarketplacePendingChange returns the MarketplacePendingChange field. 5848func (m *MarketplacePlanAccount) GetMarketplacePendingChange() *MarketplacePendingChange { 5849 if m == nil { 5850 return nil 5851 } 5852 return m.MarketplacePendingChange 5853} 5854 5855// GetMarketplacePurchase returns the MarketplacePurchase field. 5856func (m *MarketplacePlanAccount) GetMarketplacePurchase() *MarketplacePurchase { 5857 if m == nil { 5858 return nil 5859 } 5860 return m.MarketplacePurchase 5861} 5862 5863// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5864func (m *MarketplacePlanAccount) GetNodeID() string { 5865 if m == nil || m.NodeID == nil { 5866 return "" 5867 } 5868 return *m.NodeID 5869} 5870 5871// GetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise. 5872func (m *MarketplacePlanAccount) GetOrganizationBillingEmail() string { 5873 if m == nil || m.OrganizationBillingEmail == nil { 5874 return "" 5875 } 5876 return *m.OrganizationBillingEmail 5877} 5878 5879// GetType returns the Type field if it's non-nil, zero value otherwise. 5880func (m *MarketplacePlanAccount) GetType() string { 5881 if m == nil || m.Type == nil { 5882 return "" 5883 } 5884 return *m.Type 5885} 5886 5887// GetURL returns the URL field if it's non-nil, zero value otherwise. 5888func (m *MarketplacePlanAccount) GetURL() string { 5889 if m == nil || m.URL == nil { 5890 return "" 5891 } 5892 return *m.URL 5893} 5894 5895// GetAccount returns the Account field. 5896func (m *MarketplacePurchase) GetAccount() *MarketplacePlanAccount { 5897 if m == nil { 5898 return nil 5899 } 5900 return m.Account 5901} 5902 5903// GetBillingCycle returns the BillingCycle field if it's non-nil, zero value otherwise. 5904func (m *MarketplacePurchase) GetBillingCycle() string { 5905 if m == nil || m.BillingCycle == nil { 5906 return "" 5907 } 5908 return *m.BillingCycle 5909} 5910 5911// GetFreeTrialEndsOn returns the FreeTrialEndsOn field if it's non-nil, zero value otherwise. 5912func (m *MarketplacePurchase) GetFreeTrialEndsOn() Timestamp { 5913 if m == nil || m.FreeTrialEndsOn == nil { 5914 return Timestamp{} 5915 } 5916 return *m.FreeTrialEndsOn 5917} 5918 5919// GetNextBillingDate returns the NextBillingDate field if it's non-nil, zero value otherwise. 5920func (m *MarketplacePurchase) GetNextBillingDate() Timestamp { 5921 if m == nil || m.NextBillingDate == nil { 5922 return Timestamp{} 5923 } 5924 return *m.NextBillingDate 5925} 5926 5927// GetOnFreeTrial returns the OnFreeTrial field if it's non-nil, zero value otherwise. 5928func (m *MarketplacePurchase) GetOnFreeTrial() bool { 5929 if m == nil || m.OnFreeTrial == nil { 5930 return false 5931 } 5932 return *m.OnFreeTrial 5933} 5934 5935// GetPlan returns the Plan field. 5936func (m *MarketplacePurchase) GetPlan() *MarketplacePlan { 5937 if m == nil { 5938 return nil 5939 } 5940 return m.Plan 5941} 5942 5943// GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. 5944func (m *MarketplacePurchase) GetUnitCount() int { 5945 if m == nil || m.UnitCount == nil { 5946 return 0 5947 } 5948 return *m.UnitCount 5949} 5950 5951// GetAction returns the Action field if it's non-nil, zero value otherwise. 5952func (m *MarketplacePurchaseEvent) GetAction() string { 5953 if m == nil || m.Action == nil { 5954 return "" 5955 } 5956 return *m.Action 5957} 5958 5959// GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. 5960func (m *MarketplacePurchaseEvent) GetEffectiveDate() Timestamp { 5961 if m == nil || m.EffectiveDate == nil { 5962 return Timestamp{} 5963 } 5964 return *m.EffectiveDate 5965} 5966 5967// GetInstallation returns the Installation field. 5968func (m *MarketplacePurchaseEvent) GetInstallation() *Installation { 5969 if m == nil { 5970 return nil 5971 } 5972 return m.Installation 5973} 5974 5975// GetMarketplacePurchase returns the MarketplacePurchase field. 5976func (m *MarketplacePurchaseEvent) GetMarketplacePurchase() *MarketplacePurchase { 5977 if m == nil { 5978 return nil 5979 } 5980 return m.MarketplacePurchase 5981} 5982 5983// GetPreviousMarketplacePurchase returns the PreviousMarketplacePurchase field. 5984func (m *MarketplacePurchaseEvent) GetPreviousMarketplacePurchase() *MarketplacePurchase { 5985 if m == nil { 5986 return nil 5987 } 5988 return m.PreviousMarketplacePurchase 5989} 5990 5991// GetSender returns the Sender field. 5992func (m *MarketplacePurchaseEvent) GetSender() *User { 5993 if m == nil { 5994 return nil 5995 } 5996 return m.Sender 5997} 5998 5999// GetText returns the Text field if it's non-nil, zero value otherwise. 6000func (m *Match) GetText() string { 6001 if m == nil || m.Text == nil { 6002 return "" 6003 } 6004 return *m.Text 6005} 6006 6007// GetAction returns the Action field if it's non-nil, zero value otherwise. 6008func (m *MemberEvent) GetAction() string { 6009 if m == nil || m.Action == nil { 6010 return "" 6011 } 6012 return *m.Action 6013} 6014 6015// GetInstallation returns the Installation field. 6016func (m *MemberEvent) GetInstallation() *Installation { 6017 if m == nil { 6018 return nil 6019 } 6020 return m.Installation 6021} 6022 6023// GetMember returns the Member field. 6024func (m *MemberEvent) GetMember() *User { 6025 if m == nil { 6026 return nil 6027 } 6028 return m.Member 6029} 6030 6031// GetRepo returns the Repo field. 6032func (m *MemberEvent) GetRepo() *Repository { 6033 if m == nil { 6034 return nil 6035 } 6036 return m.Repo 6037} 6038 6039// GetSender returns the Sender field. 6040func (m *MemberEvent) GetSender() *User { 6041 if m == nil { 6042 return nil 6043 } 6044 return m.Sender 6045} 6046 6047// GetOrganization returns the Organization field. 6048func (m *Membership) GetOrganization() *Organization { 6049 if m == nil { 6050 return nil 6051 } 6052 return m.Organization 6053} 6054 6055// GetOrganizationURL returns the OrganizationURL field if it's non-nil, zero value otherwise. 6056func (m *Membership) GetOrganizationURL() string { 6057 if m == nil || m.OrganizationURL == nil { 6058 return "" 6059 } 6060 return *m.OrganizationURL 6061} 6062 6063// GetRole returns the Role field if it's non-nil, zero value otherwise. 6064func (m *Membership) GetRole() string { 6065 if m == nil || m.Role == nil { 6066 return "" 6067 } 6068 return *m.Role 6069} 6070 6071// GetState returns the State field if it's non-nil, zero value otherwise. 6072func (m *Membership) GetState() string { 6073 if m == nil || m.State == nil { 6074 return "" 6075 } 6076 return *m.State 6077} 6078 6079// GetURL returns the URL field if it's non-nil, zero value otherwise. 6080func (m *Membership) GetURL() string { 6081 if m == nil || m.URL == nil { 6082 return "" 6083 } 6084 return *m.URL 6085} 6086 6087// GetUser returns the User field. 6088func (m *Membership) GetUser() *User { 6089 if m == nil { 6090 return nil 6091 } 6092 return m.User 6093} 6094 6095// GetAction returns the Action field if it's non-nil, zero value otherwise. 6096func (m *MembershipEvent) GetAction() string { 6097 if m == nil || m.Action == nil { 6098 return "" 6099 } 6100 return *m.Action 6101} 6102 6103// GetInstallation returns the Installation field. 6104func (m *MembershipEvent) GetInstallation() *Installation { 6105 if m == nil { 6106 return nil 6107 } 6108 return m.Installation 6109} 6110 6111// GetMember returns the Member field. 6112func (m *MembershipEvent) GetMember() *User { 6113 if m == nil { 6114 return nil 6115 } 6116 return m.Member 6117} 6118 6119// GetOrg returns the Org field. 6120func (m *MembershipEvent) GetOrg() *Organization { 6121 if m == nil { 6122 return nil 6123 } 6124 return m.Org 6125} 6126 6127// GetScope returns the Scope field if it's non-nil, zero value otherwise. 6128func (m *MembershipEvent) GetScope() string { 6129 if m == nil || m.Scope == nil { 6130 return "" 6131 } 6132 return *m.Scope 6133} 6134 6135// GetSender returns the Sender field. 6136func (m *MembershipEvent) GetSender() *User { 6137 if m == nil { 6138 return nil 6139 } 6140 return m.Sender 6141} 6142 6143// GetTeam returns the Team field. 6144func (m *MembershipEvent) GetTeam() *Team { 6145 if m == nil { 6146 return nil 6147 } 6148 return m.Team 6149} 6150 6151// GetAction returns the Action field if it's non-nil, zero value otherwise. 6152func (m *MetaEvent) GetAction() string { 6153 if m == nil || m.Action == nil { 6154 return "" 6155 } 6156 return *m.Action 6157} 6158 6159// GetHook returns the Hook field. 6160func (m *MetaEvent) GetHook() *Hook { 6161 if m == nil { 6162 return nil 6163 } 6164 return m.Hook 6165} 6166 6167// GetHookID returns the HookID field if it's non-nil, zero value otherwise. 6168func (m *MetaEvent) GetHookID() int64 { 6169 if m == nil || m.HookID == nil { 6170 return 0 6171 } 6172 return *m.HookID 6173} 6174 6175// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6176func (m *Metric) GetHTMLURL() string { 6177 if m == nil || m.HTMLURL == nil { 6178 return "" 6179 } 6180 return *m.HTMLURL 6181} 6182 6183// GetKey returns the Key field if it's non-nil, zero value otherwise. 6184func (m *Metric) GetKey() string { 6185 if m == nil || m.Key == nil { 6186 return "" 6187 } 6188 return *m.Key 6189} 6190 6191// GetName returns the Name field if it's non-nil, zero value otherwise. 6192func (m *Metric) GetName() string { 6193 if m == nil || m.Name == nil { 6194 return "" 6195 } 6196 return *m.Name 6197} 6198 6199// GetURL returns the URL field if it's non-nil, zero value otherwise. 6200func (m *Metric) GetURL() string { 6201 if m == nil || m.URL == nil { 6202 return "" 6203 } 6204 return *m.URL 6205} 6206 6207// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6208func (m *Migration) GetCreatedAt() string { 6209 if m == nil || m.CreatedAt == nil { 6210 return "" 6211 } 6212 return *m.CreatedAt 6213} 6214 6215// GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 6216func (m *Migration) GetExcludeAttachments() bool { 6217 if m == nil || m.ExcludeAttachments == nil { 6218 return false 6219 } 6220 return *m.ExcludeAttachments 6221} 6222 6223// GetGUID returns the GUID field if it's non-nil, zero value otherwise. 6224func (m *Migration) GetGUID() string { 6225 if m == nil || m.GUID == nil { 6226 return "" 6227 } 6228 return *m.GUID 6229} 6230 6231// GetID returns the ID field if it's non-nil, zero value otherwise. 6232func (m *Migration) GetID() int64 { 6233 if m == nil || m.ID == nil { 6234 return 0 6235 } 6236 return *m.ID 6237} 6238 6239// GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 6240func (m *Migration) GetLockRepositories() bool { 6241 if m == nil || m.LockRepositories == nil { 6242 return false 6243 } 6244 return *m.LockRepositories 6245} 6246 6247// GetState returns the State field if it's non-nil, zero value otherwise. 6248func (m *Migration) GetState() string { 6249 if m == nil || m.State == nil { 6250 return "" 6251 } 6252 return *m.State 6253} 6254 6255// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6256func (m *Migration) GetUpdatedAt() string { 6257 if m == nil || m.UpdatedAt == nil { 6258 return "" 6259 } 6260 return *m.UpdatedAt 6261} 6262 6263// GetURL returns the URL field if it's non-nil, zero value otherwise. 6264func (m *Migration) GetURL() string { 6265 if m == nil || m.URL == nil { 6266 return "" 6267 } 6268 return *m.URL 6269} 6270 6271// GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 6272func (m *Milestone) GetClosedAt() time.Time { 6273 if m == nil || m.ClosedAt == nil { 6274 return time.Time{} 6275 } 6276 return *m.ClosedAt 6277} 6278 6279// GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. 6280func (m *Milestone) GetClosedIssues() int { 6281 if m == nil || m.ClosedIssues == nil { 6282 return 0 6283 } 6284 return *m.ClosedIssues 6285} 6286 6287// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6288func (m *Milestone) GetCreatedAt() time.Time { 6289 if m == nil || m.CreatedAt == nil { 6290 return time.Time{} 6291 } 6292 return *m.CreatedAt 6293} 6294 6295// GetCreator returns the Creator field. 6296func (m *Milestone) GetCreator() *User { 6297 if m == nil { 6298 return nil 6299 } 6300 return m.Creator 6301} 6302 6303// GetDescription returns the Description field if it's non-nil, zero value otherwise. 6304func (m *Milestone) GetDescription() string { 6305 if m == nil || m.Description == nil { 6306 return "" 6307 } 6308 return *m.Description 6309} 6310 6311// GetDueOn returns the DueOn field if it's non-nil, zero value otherwise. 6312func (m *Milestone) GetDueOn() time.Time { 6313 if m == nil || m.DueOn == nil { 6314 return time.Time{} 6315 } 6316 return *m.DueOn 6317} 6318 6319// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6320func (m *Milestone) GetHTMLURL() string { 6321 if m == nil || m.HTMLURL == nil { 6322 return "" 6323 } 6324 return *m.HTMLURL 6325} 6326 6327// GetID returns the ID field if it's non-nil, zero value otherwise. 6328func (m *Milestone) GetID() int64 { 6329 if m == nil || m.ID == nil { 6330 return 0 6331 } 6332 return *m.ID 6333} 6334 6335// GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 6336func (m *Milestone) GetLabelsURL() string { 6337 if m == nil || m.LabelsURL == nil { 6338 return "" 6339 } 6340 return *m.LabelsURL 6341} 6342 6343// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6344func (m *Milestone) GetNodeID() string { 6345 if m == nil || m.NodeID == nil { 6346 return "" 6347 } 6348 return *m.NodeID 6349} 6350 6351// GetNumber returns the Number field if it's non-nil, zero value otherwise. 6352func (m *Milestone) GetNumber() int { 6353 if m == nil || m.Number == nil { 6354 return 0 6355 } 6356 return *m.Number 6357} 6358 6359// GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 6360func (m *Milestone) GetOpenIssues() int { 6361 if m == nil || m.OpenIssues == nil { 6362 return 0 6363 } 6364 return *m.OpenIssues 6365} 6366 6367// GetState returns the State field if it's non-nil, zero value otherwise. 6368func (m *Milestone) GetState() string { 6369 if m == nil || m.State == nil { 6370 return "" 6371 } 6372 return *m.State 6373} 6374 6375// GetTitle returns the Title field if it's non-nil, zero value otherwise. 6376func (m *Milestone) GetTitle() string { 6377 if m == nil || m.Title == nil { 6378 return "" 6379 } 6380 return *m.Title 6381} 6382 6383// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6384func (m *Milestone) GetUpdatedAt() time.Time { 6385 if m == nil || m.UpdatedAt == nil { 6386 return time.Time{} 6387 } 6388 return *m.UpdatedAt 6389} 6390 6391// GetURL returns the URL field if it's non-nil, zero value otherwise. 6392func (m *Milestone) GetURL() string { 6393 if m == nil || m.URL == nil { 6394 return "" 6395 } 6396 return *m.URL 6397} 6398 6399// GetAction returns the Action field if it's non-nil, zero value otherwise. 6400func (m *MilestoneEvent) GetAction() string { 6401 if m == nil || m.Action == nil { 6402 return "" 6403 } 6404 return *m.Action 6405} 6406 6407// GetChanges returns the Changes field. 6408func (m *MilestoneEvent) GetChanges() *EditChange { 6409 if m == nil { 6410 return nil 6411 } 6412 return m.Changes 6413} 6414 6415// GetInstallation returns the Installation field. 6416func (m *MilestoneEvent) GetInstallation() *Installation { 6417 if m == nil { 6418 return nil 6419 } 6420 return m.Installation 6421} 6422 6423// GetMilestone returns the Milestone field. 6424func (m *MilestoneEvent) GetMilestone() *Milestone { 6425 if m == nil { 6426 return nil 6427 } 6428 return m.Milestone 6429} 6430 6431// GetOrg returns the Org field. 6432func (m *MilestoneEvent) GetOrg() *Organization { 6433 if m == nil { 6434 return nil 6435 } 6436 return m.Org 6437} 6438 6439// GetRepo returns the Repo field. 6440func (m *MilestoneEvent) GetRepo() *Repository { 6441 if m == nil { 6442 return nil 6443 } 6444 return m.Repo 6445} 6446 6447// GetSender returns the Sender field. 6448func (m *MilestoneEvent) GetSender() *User { 6449 if m == nil { 6450 return nil 6451 } 6452 return m.Sender 6453} 6454 6455// GetClosedMilestones returns the ClosedMilestones field if it's non-nil, zero value otherwise. 6456func (m *MilestoneStats) GetClosedMilestones() int { 6457 if m == nil || m.ClosedMilestones == nil { 6458 return 0 6459 } 6460 return *m.ClosedMilestones 6461} 6462 6463// GetOpenMilestones returns the OpenMilestones field if it's non-nil, zero value otherwise. 6464func (m *MilestoneStats) GetOpenMilestones() int { 6465 if m == nil || m.OpenMilestones == nil { 6466 return 0 6467 } 6468 return *m.OpenMilestones 6469} 6470 6471// GetTotalMilestones returns the TotalMilestones field if it's non-nil, zero value otherwise. 6472func (m *MilestoneStats) GetTotalMilestones() int { 6473 if m == nil || m.TotalMilestones == nil { 6474 return 0 6475 } 6476 return *m.TotalMilestones 6477} 6478 6479// GetBase returns the Base field if it's non-nil, zero value otherwise. 6480func (n *NewPullRequest) GetBase() string { 6481 if n == nil || n.Base == nil { 6482 return "" 6483 } 6484 return *n.Base 6485} 6486 6487// GetBody returns the Body field if it's non-nil, zero value otherwise. 6488func (n *NewPullRequest) GetBody() string { 6489 if n == nil || n.Body == nil { 6490 return "" 6491 } 6492 return *n.Body 6493} 6494 6495// GetDraft returns the Draft field if it's non-nil, zero value otherwise. 6496func (n *NewPullRequest) GetDraft() bool { 6497 if n == nil || n.Draft == nil { 6498 return false 6499 } 6500 return *n.Draft 6501} 6502 6503// GetHead returns the Head field if it's non-nil, zero value otherwise. 6504func (n *NewPullRequest) GetHead() string { 6505 if n == nil || n.Head == nil { 6506 return "" 6507 } 6508 return *n.Head 6509} 6510 6511// GetIssue returns the Issue field if it's non-nil, zero value otherwise. 6512func (n *NewPullRequest) GetIssue() int { 6513 if n == nil || n.Issue == nil { 6514 return 0 6515 } 6516 return *n.Issue 6517} 6518 6519// GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 6520func (n *NewPullRequest) GetMaintainerCanModify() bool { 6521 if n == nil || n.MaintainerCanModify == nil { 6522 return false 6523 } 6524 return *n.MaintainerCanModify 6525} 6526 6527// GetTitle returns the Title field if it's non-nil, zero value otherwise. 6528func (n *NewPullRequest) GetTitle() string { 6529 if n == nil || n.Title == nil { 6530 return "" 6531 } 6532 return *n.Title 6533} 6534 6535// GetDescription returns the Description field if it's non-nil, zero value otherwise. 6536func (n *NewTeam) GetDescription() string { 6537 if n == nil || n.Description == nil { 6538 return "" 6539 } 6540 return *n.Description 6541} 6542 6543// GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 6544func (n *NewTeam) GetLDAPDN() string { 6545 if n == nil || n.LDAPDN == nil { 6546 return "" 6547 } 6548 return *n.LDAPDN 6549} 6550 6551// GetParentTeamID returns the ParentTeamID field if it's non-nil, zero value otherwise. 6552func (n *NewTeam) GetParentTeamID() int64 { 6553 if n == nil || n.ParentTeamID == nil { 6554 return 0 6555 } 6556 return *n.ParentTeamID 6557} 6558 6559// GetPermission returns the Permission field if it's non-nil, zero value otherwise. 6560func (n *NewTeam) GetPermission() string { 6561 if n == nil || n.Permission == nil { 6562 return "" 6563 } 6564 return *n.Permission 6565} 6566 6567// GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 6568func (n *NewTeam) GetPrivacy() string { 6569 if n == nil || n.Privacy == nil { 6570 return "" 6571 } 6572 return *n.Privacy 6573} 6574 6575// GetID returns the ID field if it's non-nil, zero value otherwise. 6576func (n *Notification) GetID() string { 6577 if n == nil || n.ID == nil { 6578 return "" 6579 } 6580 return *n.ID 6581} 6582 6583// GetLastReadAt returns the LastReadAt field if it's non-nil, zero value otherwise. 6584func (n *Notification) GetLastReadAt() time.Time { 6585 if n == nil || n.LastReadAt == nil { 6586 return time.Time{} 6587 } 6588 return *n.LastReadAt 6589} 6590 6591// GetReason returns the Reason field if it's non-nil, zero value otherwise. 6592func (n *Notification) GetReason() string { 6593 if n == nil || n.Reason == nil { 6594 return "" 6595 } 6596 return *n.Reason 6597} 6598 6599// GetRepository returns the Repository field. 6600func (n *Notification) GetRepository() *Repository { 6601 if n == nil { 6602 return nil 6603 } 6604 return n.Repository 6605} 6606 6607// GetSubject returns the Subject field. 6608func (n *Notification) GetSubject() *NotificationSubject { 6609 if n == nil { 6610 return nil 6611 } 6612 return n.Subject 6613} 6614 6615// GetUnread returns the Unread field if it's non-nil, zero value otherwise. 6616func (n *Notification) GetUnread() bool { 6617 if n == nil || n.Unread == nil { 6618 return false 6619 } 6620 return *n.Unread 6621} 6622 6623// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6624func (n *Notification) GetUpdatedAt() time.Time { 6625 if n == nil || n.UpdatedAt == nil { 6626 return time.Time{} 6627 } 6628 return *n.UpdatedAt 6629} 6630 6631// GetURL returns the URL field if it's non-nil, zero value otherwise. 6632func (n *Notification) GetURL() string { 6633 if n == nil || n.URL == nil { 6634 return "" 6635 } 6636 return *n.URL 6637} 6638 6639// GetLatestCommentURL returns the LatestCommentURL field if it's non-nil, zero value otherwise. 6640func (n *NotificationSubject) GetLatestCommentURL() string { 6641 if n == nil || n.LatestCommentURL == nil { 6642 return "" 6643 } 6644 return *n.LatestCommentURL 6645} 6646 6647// GetTitle returns the Title field if it's non-nil, zero value otherwise. 6648func (n *NotificationSubject) GetTitle() string { 6649 if n == nil || n.Title == nil { 6650 return "" 6651 } 6652 return *n.Title 6653} 6654 6655// GetType returns the Type field if it's non-nil, zero value otherwise. 6656func (n *NotificationSubject) GetType() string { 6657 if n == nil || n.Type == nil { 6658 return "" 6659 } 6660 return *n.Type 6661} 6662 6663// GetURL returns the URL field if it's non-nil, zero value otherwise. 6664func (n *NotificationSubject) GetURL() string { 6665 if n == nil || n.URL == nil { 6666 return "" 6667 } 6668 return *n.URL 6669} 6670 6671// GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 6672func (o *OAuthAPP) GetClientID() string { 6673 if o == nil || o.ClientID == nil { 6674 return "" 6675 } 6676 return *o.ClientID 6677} 6678 6679// GetName returns the Name field if it's non-nil, zero value otherwise. 6680func (o *OAuthAPP) GetName() string { 6681 if o == nil || o.Name == nil { 6682 return "" 6683 } 6684 return *o.Name 6685} 6686 6687// GetURL returns the URL field if it's non-nil, zero value otherwise. 6688func (o *OAuthAPP) GetURL() string { 6689 if o == nil || o.URL == nil { 6690 return "" 6691 } 6692 return *o.URL 6693} 6694 6695// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 6696func (o *Organization) GetAvatarURL() string { 6697 if o == nil || o.AvatarURL == nil { 6698 return "" 6699 } 6700 return *o.AvatarURL 6701} 6702 6703// GetBillingEmail returns the BillingEmail field if it's non-nil, zero value otherwise. 6704func (o *Organization) GetBillingEmail() string { 6705 if o == nil || o.BillingEmail == nil { 6706 return "" 6707 } 6708 return *o.BillingEmail 6709} 6710 6711// GetBlog returns the Blog field if it's non-nil, zero value otherwise. 6712func (o *Organization) GetBlog() string { 6713 if o == nil || o.Blog == nil { 6714 return "" 6715 } 6716 return *o.Blog 6717} 6718 6719// GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 6720func (o *Organization) GetCollaborators() int { 6721 if o == nil || o.Collaborators == nil { 6722 return 0 6723 } 6724 return *o.Collaborators 6725} 6726 6727// GetCompany returns the Company field if it's non-nil, zero value otherwise. 6728func (o *Organization) GetCompany() string { 6729 if o == nil || o.Company == nil { 6730 return "" 6731 } 6732 return *o.Company 6733} 6734 6735// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6736func (o *Organization) GetCreatedAt() time.Time { 6737 if o == nil || o.CreatedAt == nil { 6738 return time.Time{} 6739 } 6740 return *o.CreatedAt 6741} 6742 6743// GetDefaultRepoPermission returns the DefaultRepoPermission field if it's non-nil, zero value otherwise. 6744func (o *Organization) GetDefaultRepoPermission() string { 6745 if o == nil || o.DefaultRepoPermission == nil { 6746 return "" 6747 } 6748 return *o.DefaultRepoPermission 6749} 6750 6751// GetDefaultRepoSettings returns the DefaultRepoSettings field if it's non-nil, zero value otherwise. 6752func (o *Organization) GetDefaultRepoSettings() string { 6753 if o == nil || o.DefaultRepoSettings == nil { 6754 return "" 6755 } 6756 return *o.DefaultRepoSettings 6757} 6758 6759// GetDescription returns the Description field if it's non-nil, zero value otherwise. 6760func (o *Organization) GetDescription() string { 6761 if o == nil || o.Description == nil { 6762 return "" 6763 } 6764 return *o.Description 6765} 6766 6767// GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 6768func (o *Organization) GetDiskUsage() int { 6769 if o == nil || o.DiskUsage == nil { 6770 return 0 6771 } 6772 return *o.DiskUsage 6773} 6774 6775// GetEmail returns the Email field if it's non-nil, zero value otherwise. 6776func (o *Organization) GetEmail() string { 6777 if o == nil || o.Email == nil { 6778 return "" 6779 } 6780 return *o.Email 6781} 6782 6783// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 6784func (o *Organization) GetEventsURL() string { 6785 if o == nil || o.EventsURL == nil { 6786 return "" 6787 } 6788 return *o.EventsURL 6789} 6790 6791// GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 6792func (o *Organization) GetFollowers() int { 6793 if o == nil || o.Followers == nil { 6794 return 0 6795 } 6796 return *o.Followers 6797} 6798 6799// GetFollowing returns the Following field if it's non-nil, zero value otherwise. 6800func (o *Organization) GetFollowing() int { 6801 if o == nil || o.Following == nil { 6802 return 0 6803 } 6804 return *o.Following 6805} 6806 6807// GetHasOrganizationProjects returns the HasOrganizationProjects field if it's non-nil, zero value otherwise. 6808func (o *Organization) GetHasOrganizationProjects() bool { 6809 if o == nil || o.HasOrganizationProjects == nil { 6810 return false 6811 } 6812 return *o.HasOrganizationProjects 6813} 6814 6815// GetHasRepositoryProjects returns the HasRepositoryProjects field if it's non-nil, zero value otherwise. 6816func (o *Organization) GetHasRepositoryProjects() bool { 6817 if o == nil || o.HasRepositoryProjects == nil { 6818 return false 6819 } 6820 return *o.HasRepositoryProjects 6821} 6822 6823// GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 6824func (o *Organization) GetHooksURL() string { 6825 if o == nil || o.HooksURL == nil { 6826 return "" 6827 } 6828 return *o.HooksURL 6829} 6830 6831// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6832func (o *Organization) GetHTMLURL() string { 6833 if o == nil || o.HTMLURL == nil { 6834 return "" 6835 } 6836 return *o.HTMLURL 6837} 6838 6839// GetID returns the ID field if it's non-nil, zero value otherwise. 6840func (o *Organization) GetID() int64 { 6841 if o == nil || o.ID == nil { 6842 return 0 6843 } 6844 return *o.ID 6845} 6846 6847// GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 6848func (o *Organization) GetIssuesURL() string { 6849 if o == nil || o.IssuesURL == nil { 6850 return "" 6851 } 6852 return *o.IssuesURL 6853} 6854 6855// GetIsVerified returns the IsVerified field if it's non-nil, zero value otherwise. 6856func (o *Organization) GetIsVerified() bool { 6857 if o == nil || o.IsVerified == nil { 6858 return false 6859 } 6860 return *o.IsVerified 6861} 6862 6863// GetLocation returns the Location field if it's non-nil, zero value otherwise. 6864func (o *Organization) GetLocation() string { 6865 if o == nil || o.Location == nil { 6866 return "" 6867 } 6868 return *o.Location 6869} 6870 6871// GetLogin returns the Login field if it's non-nil, zero value otherwise. 6872func (o *Organization) GetLogin() string { 6873 if o == nil || o.Login == nil { 6874 return "" 6875 } 6876 return *o.Login 6877} 6878 6879// GetMembersAllowedRepositoryCreationType returns the MembersAllowedRepositoryCreationType field if it's non-nil, zero value otherwise. 6880func (o *Organization) GetMembersAllowedRepositoryCreationType() string { 6881 if o == nil || o.MembersAllowedRepositoryCreationType == nil { 6882 return "" 6883 } 6884 return *o.MembersAllowedRepositoryCreationType 6885} 6886 6887// GetMembersCanCreateInternalRepos returns the MembersCanCreateInternalRepos field if it's non-nil, zero value otherwise. 6888func (o *Organization) GetMembersCanCreateInternalRepos() bool { 6889 if o == nil || o.MembersCanCreateInternalRepos == nil { 6890 return false 6891 } 6892 return *o.MembersCanCreateInternalRepos 6893} 6894 6895// GetMembersCanCreatePrivateRepos returns the MembersCanCreatePrivateRepos field if it's non-nil, zero value otherwise. 6896func (o *Organization) GetMembersCanCreatePrivateRepos() bool { 6897 if o == nil || o.MembersCanCreatePrivateRepos == nil { 6898 return false 6899 } 6900 return *o.MembersCanCreatePrivateRepos 6901} 6902 6903// GetMembersCanCreatePublicRepos returns the MembersCanCreatePublicRepos field if it's non-nil, zero value otherwise. 6904func (o *Organization) GetMembersCanCreatePublicRepos() bool { 6905 if o == nil || o.MembersCanCreatePublicRepos == nil { 6906 return false 6907 } 6908 return *o.MembersCanCreatePublicRepos 6909} 6910 6911// GetMembersCanCreateRepos returns the MembersCanCreateRepos field if it's non-nil, zero value otherwise. 6912func (o *Organization) GetMembersCanCreateRepos() bool { 6913 if o == nil || o.MembersCanCreateRepos == nil { 6914 return false 6915 } 6916 return *o.MembersCanCreateRepos 6917} 6918 6919// GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 6920func (o *Organization) GetMembersURL() string { 6921 if o == nil || o.MembersURL == nil { 6922 return "" 6923 } 6924 return *o.MembersURL 6925} 6926 6927// GetName returns the Name field if it's non-nil, zero value otherwise. 6928func (o *Organization) GetName() string { 6929 if o == nil || o.Name == nil { 6930 return "" 6931 } 6932 return *o.Name 6933} 6934 6935// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6936func (o *Organization) GetNodeID() string { 6937 if o == nil || o.NodeID == nil { 6938 return "" 6939 } 6940 return *o.NodeID 6941} 6942 6943// GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 6944func (o *Organization) GetOwnedPrivateRepos() int { 6945 if o == nil || o.OwnedPrivateRepos == nil { 6946 return 0 6947 } 6948 return *o.OwnedPrivateRepos 6949} 6950 6951// GetPlan returns the Plan field. 6952func (o *Organization) GetPlan() *Plan { 6953 if o == nil { 6954 return nil 6955 } 6956 return o.Plan 6957} 6958 6959// GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 6960func (o *Organization) GetPrivateGists() int { 6961 if o == nil || o.PrivateGists == nil { 6962 return 0 6963 } 6964 return *o.PrivateGists 6965} 6966 6967// GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 6968func (o *Organization) GetPublicGists() int { 6969 if o == nil || o.PublicGists == nil { 6970 return 0 6971 } 6972 return *o.PublicGists 6973} 6974 6975// GetPublicMembersURL returns the PublicMembersURL field if it's non-nil, zero value otherwise. 6976func (o *Organization) GetPublicMembersURL() string { 6977 if o == nil || o.PublicMembersURL == nil { 6978 return "" 6979 } 6980 return *o.PublicMembersURL 6981} 6982 6983// GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 6984func (o *Organization) GetPublicRepos() int { 6985 if o == nil || o.PublicRepos == nil { 6986 return 0 6987 } 6988 return *o.PublicRepos 6989} 6990 6991// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 6992func (o *Organization) GetReposURL() string { 6993 if o == nil || o.ReposURL == nil { 6994 return "" 6995 } 6996 return *o.ReposURL 6997} 6998 6999// GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 7000func (o *Organization) GetTotalPrivateRepos() int { 7001 if o == nil || o.TotalPrivateRepos == nil { 7002 return 0 7003 } 7004 return *o.TotalPrivateRepos 7005} 7006 7007// GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. 7008func (o *Organization) GetTwitterUsername() string { 7009 if o == nil || o.TwitterUsername == nil { 7010 return "" 7011 } 7012 return *o.TwitterUsername 7013} 7014 7015// GetTwoFactorRequirementEnabled returns the TwoFactorRequirementEnabled field if it's non-nil, zero value otherwise. 7016func (o *Organization) GetTwoFactorRequirementEnabled() bool { 7017 if o == nil || o.TwoFactorRequirementEnabled == nil { 7018 return false 7019 } 7020 return *o.TwoFactorRequirementEnabled 7021} 7022 7023// GetType returns the Type field if it's non-nil, zero value otherwise. 7024func (o *Organization) GetType() string { 7025 if o == nil || o.Type == nil { 7026 return "" 7027 } 7028 return *o.Type 7029} 7030 7031// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7032func (o *Organization) GetUpdatedAt() time.Time { 7033 if o == nil || o.UpdatedAt == nil { 7034 return time.Time{} 7035 } 7036 return *o.UpdatedAt 7037} 7038 7039// GetURL returns the URL field if it's non-nil, zero value otherwise. 7040func (o *Organization) GetURL() string { 7041 if o == nil || o.URL == nil { 7042 return "" 7043 } 7044 return *o.URL 7045} 7046 7047// GetAction returns the Action field if it's non-nil, zero value otherwise. 7048func (o *OrganizationEvent) GetAction() string { 7049 if o == nil || o.Action == nil { 7050 return "" 7051 } 7052 return *o.Action 7053} 7054 7055// GetInstallation returns the Installation field. 7056func (o *OrganizationEvent) GetInstallation() *Installation { 7057 if o == nil { 7058 return nil 7059 } 7060 return o.Installation 7061} 7062 7063// GetInvitation returns the Invitation field. 7064func (o *OrganizationEvent) GetInvitation() *Invitation { 7065 if o == nil { 7066 return nil 7067 } 7068 return o.Invitation 7069} 7070 7071// GetMembership returns the Membership field. 7072func (o *OrganizationEvent) GetMembership() *Membership { 7073 if o == nil { 7074 return nil 7075 } 7076 return o.Membership 7077} 7078 7079// GetOrganization returns the Organization field. 7080func (o *OrganizationEvent) GetOrganization() *Organization { 7081 if o == nil { 7082 return nil 7083 } 7084 return o.Organization 7085} 7086 7087// GetSender returns the Sender field. 7088func (o *OrganizationEvent) GetSender() *User { 7089 if o == nil { 7090 return nil 7091 } 7092 return o.Sender 7093} 7094 7095// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 7096func (o *OrganizationInstallations) GetTotalCount() int { 7097 if o == nil || o.TotalCount == nil { 7098 return 0 7099 } 7100 return *o.TotalCount 7101} 7102 7103// GetAction returns the Action field if it's non-nil, zero value otherwise. 7104func (o *OrgBlockEvent) GetAction() string { 7105 if o == nil || o.Action == nil { 7106 return "" 7107 } 7108 return *o.Action 7109} 7110 7111// GetBlockedUser returns the BlockedUser field. 7112func (o *OrgBlockEvent) GetBlockedUser() *User { 7113 if o == nil { 7114 return nil 7115 } 7116 return o.BlockedUser 7117} 7118 7119// GetInstallation returns the Installation field. 7120func (o *OrgBlockEvent) GetInstallation() *Installation { 7121 if o == nil { 7122 return nil 7123 } 7124 return o.Installation 7125} 7126 7127// GetOrganization returns the Organization field. 7128func (o *OrgBlockEvent) GetOrganization() *Organization { 7129 if o == nil { 7130 return nil 7131 } 7132 return o.Organization 7133} 7134 7135// GetSender returns the Sender field. 7136func (o *OrgBlockEvent) GetSender() *User { 7137 if o == nil { 7138 return nil 7139 } 7140 return o.Sender 7141} 7142 7143// GetDisabledOrgs returns the DisabledOrgs field if it's non-nil, zero value otherwise. 7144func (o *OrgStats) GetDisabledOrgs() int { 7145 if o == nil || o.DisabledOrgs == nil { 7146 return 0 7147 } 7148 return *o.DisabledOrgs 7149} 7150 7151// GetTotalOrgs returns the TotalOrgs field if it's non-nil, zero value otherwise. 7152func (o *OrgStats) GetTotalOrgs() int { 7153 if o == nil || o.TotalOrgs == nil { 7154 return 0 7155 } 7156 return *o.TotalOrgs 7157} 7158 7159// GetTotalTeamMembers returns the TotalTeamMembers field if it's non-nil, zero value otherwise. 7160func (o *OrgStats) GetTotalTeamMembers() int { 7161 if o == nil || o.TotalTeamMembers == nil { 7162 return 0 7163 } 7164 return *o.TotalTeamMembers 7165} 7166 7167// GetTotalTeams returns the TotalTeams field if it's non-nil, zero value otherwise. 7168func (o *OrgStats) GetTotalTeams() int { 7169 if o == nil || o.TotalTeams == nil { 7170 return 0 7171 } 7172 return *o.TotalTeams 7173} 7174 7175// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7176func (p *Package) GetCreatedAt() Timestamp { 7177 if p == nil || p.CreatedAt == nil { 7178 return Timestamp{} 7179 } 7180 return *p.CreatedAt 7181} 7182 7183// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7184func (p *Package) GetHTMLURL() string { 7185 if p == nil || p.HTMLURL == nil { 7186 return "" 7187 } 7188 return *p.HTMLURL 7189} 7190 7191// GetID returns the ID field if it's non-nil, zero value otherwise. 7192func (p *Package) GetID() int64 { 7193 if p == nil || p.ID == nil { 7194 return 0 7195 } 7196 return *p.ID 7197} 7198 7199// GetName returns the Name field if it's non-nil, zero value otherwise. 7200func (p *Package) GetName() string { 7201 if p == nil || p.Name == nil { 7202 return "" 7203 } 7204 return *p.Name 7205} 7206 7207// GetOwner returns the Owner field. 7208func (p *Package) GetOwner() *User { 7209 if p == nil { 7210 return nil 7211 } 7212 return p.Owner 7213} 7214 7215// GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. 7216func (p *Package) GetPackageType() string { 7217 if p == nil || p.PackageType == nil { 7218 return "" 7219 } 7220 return *p.PackageType 7221} 7222 7223// GetPackageVersion returns the PackageVersion field. 7224func (p *Package) GetPackageVersion() *PackageVersion { 7225 if p == nil { 7226 return nil 7227 } 7228 return p.PackageVersion 7229} 7230 7231// GetRegistry returns the Registry field. 7232func (p *Package) GetRegistry() *PackageRegistry { 7233 if p == nil { 7234 return nil 7235 } 7236 return p.Registry 7237} 7238 7239// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7240func (p *Package) GetUpdatedAt() Timestamp { 7241 if p == nil || p.UpdatedAt == nil { 7242 return Timestamp{} 7243 } 7244 return *p.UpdatedAt 7245} 7246 7247// GetAction returns the Action field if it's non-nil, zero value otherwise. 7248func (p *PackageEvent) GetAction() string { 7249 if p == nil || p.Action == nil { 7250 return "" 7251 } 7252 return *p.Action 7253} 7254 7255// GetOrg returns the Org field. 7256func (p *PackageEvent) GetOrg() *Organization { 7257 if p == nil { 7258 return nil 7259 } 7260 return p.Org 7261} 7262 7263// GetPackage returns the Package field. 7264func (p *PackageEvent) GetPackage() *Package { 7265 if p == nil { 7266 return nil 7267 } 7268 return p.Package 7269} 7270 7271// GetRepo returns the Repo field. 7272func (p *PackageEvent) GetRepo() *Repository { 7273 if p == nil { 7274 return nil 7275 } 7276 return p.Repo 7277} 7278 7279// GetSender returns the Sender field. 7280func (p *PackageEvent) GetSender() *User { 7281 if p == nil { 7282 return nil 7283 } 7284 return p.Sender 7285} 7286 7287// GetAuthor returns the Author field. 7288func (p *PackageFile) GetAuthor() *User { 7289 if p == nil { 7290 return nil 7291 } 7292 return p.Author 7293} 7294 7295// GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 7296func (p *PackageFile) GetContentType() string { 7297 if p == nil || p.ContentType == nil { 7298 return "" 7299 } 7300 return *p.ContentType 7301} 7302 7303// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7304func (p *PackageFile) GetCreatedAt() Timestamp { 7305 if p == nil || p.CreatedAt == nil { 7306 return Timestamp{} 7307 } 7308 return *p.CreatedAt 7309} 7310 7311// GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 7312func (p *PackageFile) GetDownloadURL() string { 7313 if p == nil || p.DownloadURL == nil { 7314 return "" 7315 } 7316 return *p.DownloadURL 7317} 7318 7319// GetID returns the ID field if it's non-nil, zero value otherwise. 7320func (p *PackageFile) GetID() int64 { 7321 if p == nil || p.ID == nil { 7322 return 0 7323 } 7324 return *p.ID 7325} 7326 7327// GetMD5 returns the MD5 field if it's non-nil, zero value otherwise. 7328func (p *PackageFile) GetMD5() string { 7329 if p == nil || p.MD5 == nil { 7330 return "" 7331 } 7332 return *p.MD5 7333} 7334 7335// GetName returns the Name field if it's non-nil, zero value otherwise. 7336func (p *PackageFile) GetName() string { 7337 if p == nil || p.Name == nil { 7338 return "" 7339 } 7340 return *p.Name 7341} 7342 7343// GetSHA1 returns the SHA1 field if it's non-nil, zero value otherwise. 7344func (p *PackageFile) GetSHA1() string { 7345 if p == nil || p.SHA1 == nil { 7346 return "" 7347 } 7348 return *p.SHA1 7349} 7350 7351// GetSHA256 returns the SHA256 field if it's non-nil, zero value otherwise. 7352func (p *PackageFile) GetSHA256() string { 7353 if p == nil || p.SHA256 == nil { 7354 return "" 7355 } 7356 return *p.SHA256 7357} 7358 7359// GetSize returns the Size field if it's non-nil, zero value otherwise. 7360func (p *PackageFile) GetSize() int64 { 7361 if p == nil || p.Size == nil { 7362 return 0 7363 } 7364 return *p.Size 7365} 7366 7367// GetState returns the State field if it's non-nil, zero value otherwise. 7368func (p *PackageFile) GetState() string { 7369 if p == nil || p.State == nil { 7370 return "" 7371 } 7372 return *p.State 7373} 7374 7375// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7376func (p *PackageFile) GetUpdatedAt() Timestamp { 7377 if p == nil || p.UpdatedAt == nil { 7378 return Timestamp{} 7379 } 7380 return *p.UpdatedAt 7381} 7382 7383// GetAboutURL returns the AboutURL field if it's non-nil, zero value otherwise. 7384func (p *PackageRegistry) GetAboutURL() string { 7385 if p == nil || p.AboutURL == nil { 7386 return "" 7387 } 7388 return *p.AboutURL 7389} 7390 7391// GetName returns the Name field if it's non-nil, zero value otherwise. 7392func (p *PackageRegistry) GetName() string { 7393 if p == nil || p.Name == nil { 7394 return "" 7395 } 7396 return *p.Name 7397} 7398 7399// GetType returns the Type field if it's non-nil, zero value otherwise. 7400func (p *PackageRegistry) GetType() string { 7401 if p == nil || p.Type == nil { 7402 return "" 7403 } 7404 return *p.Type 7405} 7406 7407// GetURL returns the URL field if it's non-nil, zero value otherwise. 7408func (p *PackageRegistry) GetURL() string { 7409 if p == nil || p.URL == nil { 7410 return "" 7411 } 7412 return *p.URL 7413} 7414 7415// GetVendor returns the Vendor field if it's non-nil, zero value otherwise. 7416func (p *PackageRegistry) GetVendor() string { 7417 if p == nil || p.Vendor == nil { 7418 return "" 7419 } 7420 return *p.Vendor 7421} 7422 7423// GetAuthor returns the Author field. 7424func (p *PackageRelease) GetAuthor() *User { 7425 if p == nil { 7426 return nil 7427 } 7428 return p.Author 7429} 7430 7431// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7432func (p *PackageRelease) GetCreatedAt() Timestamp { 7433 if p == nil || p.CreatedAt == nil { 7434 return Timestamp{} 7435 } 7436 return *p.CreatedAt 7437} 7438 7439// GetDraft returns the Draft field if it's non-nil, zero value otherwise. 7440func (p *PackageRelease) GetDraft() bool { 7441 if p == nil || p.Draft == nil { 7442 return false 7443 } 7444 return *p.Draft 7445} 7446 7447// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7448func (p *PackageRelease) GetHTMLURL() string { 7449 if p == nil || p.HTMLURL == nil { 7450 return "" 7451 } 7452 return *p.HTMLURL 7453} 7454 7455// GetID returns the ID field if it's non-nil, zero value otherwise. 7456func (p *PackageRelease) GetID() int64 { 7457 if p == nil || p.ID == nil { 7458 return 0 7459 } 7460 return *p.ID 7461} 7462 7463// GetName returns the Name field if it's non-nil, zero value otherwise. 7464func (p *PackageRelease) GetName() string { 7465 if p == nil || p.Name == nil { 7466 return "" 7467 } 7468 return *p.Name 7469} 7470 7471// GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 7472func (p *PackageRelease) GetPrerelease() bool { 7473 if p == nil || p.Prerelease == nil { 7474 return false 7475 } 7476 return *p.Prerelease 7477} 7478 7479// GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 7480func (p *PackageRelease) GetPublishedAt() Timestamp { 7481 if p == nil || p.PublishedAt == nil { 7482 return Timestamp{} 7483 } 7484 return *p.PublishedAt 7485} 7486 7487// GetTagName returns the TagName field if it's non-nil, zero value otherwise. 7488func (p *PackageRelease) GetTagName() string { 7489 if p == nil || p.TagName == nil { 7490 return "" 7491 } 7492 return *p.TagName 7493} 7494 7495// GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 7496func (p *PackageRelease) GetTargetCommitish() string { 7497 if p == nil || p.TargetCommitish == nil { 7498 return "" 7499 } 7500 return *p.TargetCommitish 7501} 7502 7503// GetURL returns the URL field if it's non-nil, zero value otherwise. 7504func (p *PackageRelease) GetURL() string { 7505 if p == nil || p.URL == nil { 7506 return "" 7507 } 7508 return *p.URL 7509} 7510 7511// GetAuthor returns the Author field. 7512func (p *PackageVersion) GetAuthor() *User { 7513 if p == nil { 7514 return nil 7515 } 7516 return p.Author 7517} 7518 7519// GetBody returns the Body field if it's non-nil, zero value otherwise. 7520func (p *PackageVersion) GetBody() string { 7521 if p == nil || p.Body == nil { 7522 return "" 7523 } 7524 return *p.Body 7525} 7526 7527// GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 7528func (p *PackageVersion) GetBodyHTML() string { 7529 if p == nil || p.BodyHTML == nil { 7530 return "" 7531 } 7532 return *p.BodyHTML 7533} 7534 7535// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7536func (p *PackageVersion) GetCreatedAt() Timestamp { 7537 if p == nil || p.CreatedAt == nil { 7538 return Timestamp{} 7539 } 7540 return *p.CreatedAt 7541} 7542 7543// GetDraft returns the Draft field if it's non-nil, zero value otherwise. 7544func (p *PackageVersion) GetDraft() bool { 7545 if p == nil || p.Draft == nil { 7546 return false 7547 } 7548 return *p.Draft 7549} 7550 7551// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7552func (p *PackageVersion) GetHTMLURL() string { 7553 if p == nil || p.HTMLURL == nil { 7554 return "" 7555 } 7556 return *p.HTMLURL 7557} 7558 7559// GetID returns the ID field if it's non-nil, zero value otherwise. 7560func (p *PackageVersion) GetID() int64 { 7561 if p == nil || p.ID == nil { 7562 return 0 7563 } 7564 return *p.ID 7565} 7566 7567// GetInstallationCommand returns the InstallationCommand field if it's non-nil, zero value otherwise. 7568func (p *PackageVersion) GetInstallationCommand() string { 7569 if p == nil || p.InstallationCommand == nil { 7570 return "" 7571 } 7572 return *p.InstallationCommand 7573} 7574 7575// GetManifest returns the Manifest field if it's non-nil, zero value otherwise. 7576func (p *PackageVersion) GetManifest() string { 7577 if p == nil || p.Manifest == nil { 7578 return "" 7579 } 7580 return *p.Manifest 7581} 7582 7583// GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 7584func (p *PackageVersion) GetPrerelease() bool { 7585 if p == nil || p.Prerelease == nil { 7586 return false 7587 } 7588 return *p.Prerelease 7589} 7590 7591// GetRelease returns the Release field. 7592func (p *PackageVersion) GetRelease() *PackageRelease { 7593 if p == nil { 7594 return nil 7595 } 7596 return p.Release 7597} 7598 7599// GetSummary returns the Summary field if it's non-nil, zero value otherwise. 7600func (p *PackageVersion) GetSummary() string { 7601 if p == nil || p.Summary == nil { 7602 return "" 7603 } 7604 return *p.Summary 7605} 7606 7607// GetTagName returns the TagName field if it's non-nil, zero value otherwise. 7608func (p *PackageVersion) GetTagName() string { 7609 if p == nil || p.TagName == nil { 7610 return "" 7611 } 7612 return *p.TagName 7613} 7614 7615// GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 7616func (p *PackageVersion) GetTargetCommitish() string { 7617 if p == nil || p.TargetCommitish == nil { 7618 return "" 7619 } 7620 return *p.TargetCommitish 7621} 7622 7623// GetTargetOID returns the TargetOID field if it's non-nil, zero value otherwise. 7624func (p *PackageVersion) GetTargetOID() string { 7625 if p == nil || p.TargetOID == nil { 7626 return "" 7627 } 7628 return *p.TargetOID 7629} 7630 7631// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7632func (p *PackageVersion) GetUpdatedAt() Timestamp { 7633 if p == nil || p.UpdatedAt == nil { 7634 return Timestamp{} 7635 } 7636 return *p.UpdatedAt 7637} 7638 7639// GetVersion returns the Version field if it's non-nil, zero value otherwise. 7640func (p *PackageVersion) GetVersion() string { 7641 if p == nil || p.Version == nil { 7642 return "" 7643 } 7644 return *p.Version 7645} 7646 7647// GetAction returns the Action field if it's non-nil, zero value otherwise. 7648func (p *Page) GetAction() string { 7649 if p == nil || p.Action == nil { 7650 return "" 7651 } 7652 return *p.Action 7653} 7654 7655// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7656func (p *Page) GetHTMLURL() string { 7657 if p == nil || p.HTMLURL == nil { 7658 return "" 7659 } 7660 return *p.HTMLURL 7661} 7662 7663// GetPageName returns the PageName field if it's non-nil, zero value otherwise. 7664func (p *Page) GetPageName() string { 7665 if p == nil || p.PageName == nil { 7666 return "" 7667 } 7668 return *p.PageName 7669} 7670 7671// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 7672func (p *Page) GetSHA() string { 7673 if p == nil || p.SHA == nil { 7674 return "" 7675 } 7676 return *p.SHA 7677} 7678 7679// GetSummary returns the Summary field if it's non-nil, zero value otherwise. 7680func (p *Page) GetSummary() string { 7681 if p == nil || p.Summary == nil { 7682 return "" 7683 } 7684 return *p.Summary 7685} 7686 7687// GetTitle returns the Title field if it's non-nil, zero value otherwise. 7688func (p *Page) GetTitle() string { 7689 if p == nil || p.Title == nil { 7690 return "" 7691 } 7692 return *p.Title 7693} 7694 7695// GetBuild returns the Build field. 7696func (p *PageBuildEvent) GetBuild() *PagesBuild { 7697 if p == nil { 7698 return nil 7699 } 7700 return p.Build 7701} 7702 7703// GetID returns the ID field if it's non-nil, zero value otherwise. 7704func (p *PageBuildEvent) GetID() int64 { 7705 if p == nil || p.ID == nil { 7706 return 0 7707 } 7708 return *p.ID 7709} 7710 7711// GetInstallation returns the Installation field. 7712func (p *PageBuildEvent) GetInstallation() *Installation { 7713 if p == nil { 7714 return nil 7715 } 7716 return p.Installation 7717} 7718 7719// GetRepo returns the Repo field. 7720func (p *PageBuildEvent) GetRepo() *Repository { 7721 if p == nil { 7722 return nil 7723 } 7724 return p.Repo 7725} 7726 7727// GetSender returns the Sender field. 7728func (p *PageBuildEvent) GetSender() *User { 7729 if p == nil { 7730 return nil 7731 } 7732 return p.Sender 7733} 7734 7735// GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. 7736func (p *Pages) GetCNAME() string { 7737 if p == nil || p.CNAME == nil { 7738 return "" 7739 } 7740 return *p.CNAME 7741} 7742 7743// GetCustom404 returns the Custom404 field if it's non-nil, zero value otherwise. 7744func (p *Pages) GetCustom404() bool { 7745 if p == nil || p.Custom404 == nil { 7746 return false 7747 } 7748 return *p.Custom404 7749} 7750 7751// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7752func (p *Pages) GetHTMLURL() string { 7753 if p == nil || p.HTMLURL == nil { 7754 return "" 7755 } 7756 return *p.HTMLURL 7757} 7758 7759// GetSource returns the Source field. 7760func (p *Pages) GetSource() *PagesSource { 7761 if p == nil { 7762 return nil 7763 } 7764 return p.Source 7765} 7766 7767// GetStatus returns the Status field if it's non-nil, zero value otherwise. 7768func (p *Pages) GetStatus() string { 7769 if p == nil || p.Status == nil { 7770 return "" 7771 } 7772 return *p.Status 7773} 7774 7775// GetURL returns the URL field if it's non-nil, zero value otherwise. 7776func (p *Pages) GetURL() string { 7777 if p == nil || p.URL == nil { 7778 return "" 7779 } 7780 return *p.URL 7781} 7782 7783// GetCommit returns the Commit field if it's non-nil, zero value otherwise. 7784func (p *PagesBuild) GetCommit() string { 7785 if p == nil || p.Commit == nil { 7786 return "" 7787 } 7788 return *p.Commit 7789} 7790 7791// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7792func (p *PagesBuild) GetCreatedAt() Timestamp { 7793 if p == nil || p.CreatedAt == nil { 7794 return Timestamp{} 7795 } 7796 return *p.CreatedAt 7797} 7798 7799// GetDuration returns the Duration field if it's non-nil, zero value otherwise. 7800func (p *PagesBuild) GetDuration() int { 7801 if p == nil || p.Duration == nil { 7802 return 0 7803 } 7804 return *p.Duration 7805} 7806 7807// GetError returns the Error field. 7808func (p *PagesBuild) GetError() *PagesError { 7809 if p == nil { 7810 return nil 7811 } 7812 return p.Error 7813} 7814 7815// GetPusher returns the Pusher field. 7816func (p *PagesBuild) GetPusher() *User { 7817 if p == nil { 7818 return nil 7819 } 7820 return p.Pusher 7821} 7822 7823// GetStatus returns the Status field if it's non-nil, zero value otherwise. 7824func (p *PagesBuild) GetStatus() string { 7825 if p == nil || p.Status == nil { 7826 return "" 7827 } 7828 return *p.Status 7829} 7830 7831// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7832func (p *PagesBuild) GetUpdatedAt() Timestamp { 7833 if p == nil || p.UpdatedAt == nil { 7834 return Timestamp{} 7835 } 7836 return *p.UpdatedAt 7837} 7838 7839// GetURL returns the URL field if it's non-nil, zero value otherwise. 7840func (p *PagesBuild) GetURL() string { 7841 if p == nil || p.URL == nil { 7842 return "" 7843 } 7844 return *p.URL 7845} 7846 7847// GetMessage returns the Message field if it's non-nil, zero value otherwise. 7848func (p *PagesError) GetMessage() string { 7849 if p == nil || p.Message == nil { 7850 return "" 7851 } 7852 return *p.Message 7853} 7854 7855// GetBranch returns the Branch field if it's non-nil, zero value otherwise. 7856func (p *PagesSource) GetBranch() string { 7857 if p == nil || p.Branch == nil { 7858 return "" 7859 } 7860 return *p.Branch 7861} 7862 7863// GetPath returns the Path field if it's non-nil, zero value otherwise. 7864func (p *PagesSource) GetPath() string { 7865 if p == nil || p.Path == nil { 7866 return "" 7867 } 7868 return *p.Path 7869} 7870 7871// GetTotalPages returns the TotalPages field if it's non-nil, zero value otherwise. 7872func (p *PageStats) GetTotalPages() int { 7873 if p == nil || p.TotalPages == nil { 7874 return 0 7875 } 7876 return *p.TotalPages 7877} 7878 7879// GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. 7880func (p *PagesUpdate) GetCNAME() string { 7881 if p == nil || p.CNAME == nil { 7882 return "" 7883 } 7884 return *p.CNAME 7885} 7886 7887// GetSource returns the Source field if it's non-nil, zero value otherwise. 7888func (p *PagesUpdate) GetSource() string { 7889 if p == nil || p.Source == nil { 7890 return "" 7891 } 7892 return *p.Source 7893} 7894 7895// GetHook returns the Hook field. 7896func (p *PingEvent) GetHook() *Hook { 7897 if p == nil { 7898 return nil 7899 } 7900 return p.Hook 7901} 7902 7903// GetHookID returns the HookID field if it's non-nil, zero value otherwise. 7904func (p *PingEvent) GetHookID() int64 { 7905 if p == nil || p.HookID == nil { 7906 return 0 7907 } 7908 return *p.HookID 7909} 7910 7911// GetInstallation returns the Installation field. 7912func (p *PingEvent) GetInstallation() *Installation { 7913 if p == nil { 7914 return nil 7915 } 7916 return p.Installation 7917} 7918 7919// GetZen returns the Zen field if it's non-nil, zero value otherwise. 7920func (p *PingEvent) GetZen() string { 7921 if p == nil || p.Zen == nil { 7922 return "" 7923 } 7924 return *p.Zen 7925} 7926 7927// GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 7928func (p *Plan) GetCollaborators() int { 7929 if p == nil || p.Collaborators == nil { 7930 return 0 7931 } 7932 return *p.Collaborators 7933} 7934 7935// GetFilledSeats returns the FilledSeats field if it's non-nil, zero value otherwise. 7936func (p *Plan) GetFilledSeats() int { 7937 if p == nil || p.FilledSeats == nil { 7938 return 0 7939 } 7940 return *p.FilledSeats 7941} 7942 7943// GetName returns the Name field if it's non-nil, zero value otherwise. 7944func (p *Plan) GetName() string { 7945 if p == nil || p.Name == nil { 7946 return "" 7947 } 7948 return *p.Name 7949} 7950 7951// GetPrivateRepos returns the PrivateRepos field if it's non-nil, zero value otherwise. 7952func (p *Plan) GetPrivateRepos() int { 7953 if p == nil || p.PrivateRepos == nil { 7954 return 0 7955 } 7956 return *p.PrivateRepos 7957} 7958 7959// GetSeats returns the Seats field if it's non-nil, zero value otherwise. 7960func (p *Plan) GetSeats() int { 7961 if p == nil || p.Seats == nil { 7962 return 0 7963 } 7964 return *p.Seats 7965} 7966 7967// GetSpace returns the Space field if it's non-nil, zero value otherwise. 7968func (p *Plan) GetSpace() int { 7969 if p == nil || p.Space == nil { 7970 return 0 7971 } 7972 return *p.Space 7973} 7974 7975// GetConfigURL returns the ConfigURL field if it's non-nil, zero value otherwise. 7976func (p *PreReceiveHook) GetConfigURL() string { 7977 if p == nil || p.ConfigURL == nil { 7978 return "" 7979 } 7980 return *p.ConfigURL 7981} 7982 7983// GetEnforcement returns the Enforcement field if it's non-nil, zero value otherwise. 7984func (p *PreReceiveHook) GetEnforcement() string { 7985 if p == nil || p.Enforcement == nil { 7986 return "" 7987 } 7988 return *p.Enforcement 7989} 7990 7991// GetID returns the ID field if it's non-nil, zero value otherwise. 7992func (p *PreReceiveHook) GetID() int64 { 7993 if p == nil || p.ID == nil { 7994 return 0 7995 } 7996 return *p.ID 7997} 7998 7999// GetName returns the Name field if it's non-nil, zero value otherwise. 8000func (p *PreReceiveHook) GetName() string { 8001 if p == nil || p.Name == nil { 8002 return "" 8003 } 8004 return *p.Name 8005} 8006 8007// GetHRef returns the HRef field if it's non-nil, zero value otherwise. 8008func (p *PRLink) GetHRef() string { 8009 if p == nil || p.HRef == nil { 8010 return "" 8011 } 8012 return *p.HRef 8013} 8014 8015// GetComments returns the Comments field. 8016func (p *PRLinks) GetComments() *PRLink { 8017 if p == nil { 8018 return nil 8019 } 8020 return p.Comments 8021} 8022 8023// GetCommits returns the Commits field. 8024func (p *PRLinks) GetCommits() *PRLink { 8025 if p == nil { 8026 return nil 8027 } 8028 return p.Commits 8029} 8030 8031// GetHTML returns the HTML field. 8032func (p *PRLinks) GetHTML() *PRLink { 8033 if p == nil { 8034 return nil 8035 } 8036 return p.HTML 8037} 8038 8039// GetIssue returns the Issue field. 8040func (p *PRLinks) GetIssue() *PRLink { 8041 if p == nil { 8042 return nil 8043 } 8044 return p.Issue 8045} 8046 8047// GetReviewComment returns the ReviewComment field. 8048func (p *PRLinks) GetReviewComment() *PRLink { 8049 if p == nil { 8050 return nil 8051 } 8052 return p.ReviewComment 8053} 8054 8055// GetReviewComments returns the ReviewComments field. 8056func (p *PRLinks) GetReviewComments() *PRLink { 8057 if p == nil { 8058 return nil 8059 } 8060 return p.ReviewComments 8061} 8062 8063// GetSelf returns the Self field. 8064func (p *PRLinks) GetSelf() *PRLink { 8065 if p == nil { 8066 return nil 8067 } 8068 return p.Self 8069} 8070 8071// GetStatuses returns the Statuses field. 8072func (p *PRLinks) GetStatuses() *PRLink { 8073 if p == nil { 8074 return nil 8075 } 8076 return p.Statuses 8077} 8078 8079// GetBody returns the Body field if it's non-nil, zero value otherwise. 8080func (p *Project) GetBody() string { 8081 if p == nil || p.Body == nil { 8082 return "" 8083 } 8084 return *p.Body 8085} 8086 8087// GetColumnsURL returns the ColumnsURL field if it's non-nil, zero value otherwise. 8088func (p *Project) GetColumnsURL() string { 8089 if p == nil || p.ColumnsURL == nil { 8090 return "" 8091 } 8092 return *p.ColumnsURL 8093} 8094 8095// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8096func (p *Project) GetCreatedAt() Timestamp { 8097 if p == nil || p.CreatedAt == nil { 8098 return Timestamp{} 8099 } 8100 return *p.CreatedAt 8101} 8102 8103// GetCreator returns the Creator field. 8104func (p *Project) GetCreator() *User { 8105 if p == nil { 8106 return nil 8107 } 8108 return p.Creator 8109} 8110 8111// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 8112func (p *Project) GetHTMLURL() string { 8113 if p == nil || p.HTMLURL == nil { 8114 return "" 8115 } 8116 return *p.HTMLURL 8117} 8118 8119// GetID returns the ID field if it's non-nil, zero value otherwise. 8120func (p *Project) GetID() int64 { 8121 if p == nil || p.ID == nil { 8122 return 0 8123 } 8124 return *p.ID 8125} 8126 8127// GetName returns the Name field if it's non-nil, zero value otherwise. 8128func (p *Project) GetName() string { 8129 if p == nil || p.Name == nil { 8130 return "" 8131 } 8132 return *p.Name 8133} 8134 8135// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 8136func (p *Project) GetNodeID() string { 8137 if p == nil || p.NodeID == nil { 8138 return "" 8139 } 8140 return *p.NodeID 8141} 8142 8143// GetNumber returns the Number field if it's non-nil, zero value otherwise. 8144func (p *Project) GetNumber() int { 8145 if p == nil || p.Number == nil { 8146 return 0 8147 } 8148 return *p.Number 8149} 8150 8151// GetOwnerURL returns the OwnerURL field if it's non-nil, zero value otherwise. 8152func (p *Project) GetOwnerURL() string { 8153 if p == nil || p.OwnerURL == nil { 8154 return "" 8155 } 8156 return *p.OwnerURL 8157} 8158 8159// GetState returns the State field if it's non-nil, zero value otherwise. 8160func (p *Project) GetState() string { 8161 if p == nil || p.State == nil { 8162 return "" 8163 } 8164 return *p.State 8165} 8166 8167// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8168func (p *Project) GetUpdatedAt() Timestamp { 8169 if p == nil || p.UpdatedAt == nil { 8170 return Timestamp{} 8171 } 8172 return *p.UpdatedAt 8173} 8174 8175// GetURL returns the URL field if it's non-nil, zero value otherwise. 8176func (p *Project) GetURL() string { 8177 if p == nil || p.URL == nil { 8178 return "" 8179 } 8180 return *p.URL 8181} 8182 8183// GetArchived returns the Archived field if it's non-nil, zero value otherwise. 8184func (p *ProjectCard) GetArchived() bool { 8185 if p == nil || p.Archived == nil { 8186 return false 8187 } 8188 return *p.Archived 8189} 8190 8191// GetColumnID returns the ColumnID field if it's non-nil, zero value otherwise. 8192func (p *ProjectCard) GetColumnID() int64 { 8193 if p == nil || p.ColumnID == nil { 8194 return 0 8195 } 8196 return *p.ColumnID 8197} 8198 8199// GetColumnName returns the ColumnName field if it's non-nil, zero value otherwise. 8200func (p *ProjectCard) GetColumnName() string { 8201 if p == nil || p.ColumnName == nil { 8202 return "" 8203 } 8204 return *p.ColumnName 8205} 8206 8207// GetColumnURL returns the ColumnURL field if it's non-nil, zero value otherwise. 8208func (p *ProjectCard) GetColumnURL() string { 8209 if p == nil || p.ColumnURL == nil { 8210 return "" 8211 } 8212 return *p.ColumnURL 8213} 8214 8215// GetContentURL returns the ContentURL field if it's non-nil, zero value otherwise. 8216func (p *ProjectCard) GetContentURL() string { 8217 if p == nil || p.ContentURL == nil { 8218 return "" 8219 } 8220 return *p.ContentURL 8221} 8222 8223// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8224func (p *ProjectCard) GetCreatedAt() Timestamp { 8225 if p == nil || p.CreatedAt == nil { 8226 return Timestamp{} 8227 } 8228 return *p.CreatedAt 8229} 8230 8231// GetCreator returns the Creator field. 8232func (p *ProjectCard) GetCreator() *User { 8233 if p == nil { 8234 return nil 8235 } 8236 return p.Creator 8237} 8238 8239// GetID returns the ID field if it's non-nil, zero value otherwise. 8240func (p *ProjectCard) GetID() int64 { 8241 if p == nil || p.ID == nil { 8242 return 0 8243 } 8244 return *p.ID 8245} 8246 8247// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 8248func (p *ProjectCard) GetNodeID() string { 8249 if p == nil || p.NodeID == nil { 8250 return "" 8251 } 8252 return *p.NodeID 8253} 8254 8255// GetNote returns the Note field if it's non-nil, zero value otherwise. 8256func (p *ProjectCard) GetNote() string { 8257 if p == nil || p.Note == nil { 8258 return "" 8259 } 8260 return *p.Note 8261} 8262 8263// GetPreviousColumnName returns the PreviousColumnName field if it's non-nil, zero value otherwise. 8264func (p *ProjectCard) GetPreviousColumnName() string { 8265 if p == nil || p.PreviousColumnName == nil { 8266 return "" 8267 } 8268 return *p.PreviousColumnName 8269} 8270 8271// GetProjectID returns the ProjectID field if it's non-nil, zero value otherwise. 8272func (p *ProjectCard) GetProjectID() int64 { 8273 if p == nil || p.ProjectID == nil { 8274 return 0 8275 } 8276 return *p.ProjectID 8277} 8278 8279// GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. 8280func (p *ProjectCard) GetProjectURL() string { 8281 if p == nil || p.ProjectURL == nil { 8282 return "" 8283 } 8284 return *p.ProjectURL 8285} 8286 8287// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8288func (p *ProjectCard) GetUpdatedAt() Timestamp { 8289 if p == nil || p.UpdatedAt == nil { 8290 return Timestamp{} 8291 } 8292 return *p.UpdatedAt 8293} 8294 8295// GetURL returns the URL field if it's non-nil, zero value otherwise. 8296func (p *ProjectCard) GetURL() string { 8297 if p == nil || p.URL == nil { 8298 return "" 8299 } 8300 return *p.URL 8301} 8302 8303// GetAction returns the Action field if it's non-nil, zero value otherwise. 8304func (p *ProjectCardEvent) GetAction() string { 8305 if p == nil || p.Action == nil { 8306 return "" 8307 } 8308 return *p.Action 8309} 8310 8311// GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 8312func (p *ProjectCardEvent) GetAfterID() int64 { 8313 if p == nil || p.AfterID == nil { 8314 return 0 8315 } 8316 return *p.AfterID 8317} 8318 8319// GetChanges returns the Changes field. 8320func (p *ProjectCardEvent) GetChanges() *ProjectCardChange { 8321 if p == nil { 8322 return nil 8323 } 8324 return p.Changes 8325} 8326 8327// GetInstallation returns the Installation field. 8328func (p *ProjectCardEvent) GetInstallation() *Installation { 8329 if p == nil { 8330 return nil 8331 } 8332 return p.Installation 8333} 8334 8335// GetOrg returns the Org field. 8336func (p *ProjectCardEvent) GetOrg() *Organization { 8337 if p == nil { 8338 return nil 8339 } 8340 return p.Org 8341} 8342 8343// GetProjectCard returns the ProjectCard field. 8344func (p *ProjectCardEvent) GetProjectCard() *ProjectCard { 8345 if p == nil { 8346 return nil 8347 } 8348 return p.ProjectCard 8349} 8350 8351// GetRepo returns the Repo field. 8352func (p *ProjectCardEvent) GetRepo() *Repository { 8353 if p == nil { 8354 return nil 8355 } 8356 return p.Repo 8357} 8358 8359// GetSender returns the Sender field. 8360func (p *ProjectCardEvent) GetSender() *User { 8361 if p == nil { 8362 return nil 8363 } 8364 return p.Sender 8365} 8366 8367// GetArchivedState returns the ArchivedState field if it's non-nil, zero value otherwise. 8368func (p *ProjectCardListOptions) GetArchivedState() string { 8369 if p == nil || p.ArchivedState == nil { 8370 return "" 8371 } 8372 return *p.ArchivedState 8373} 8374 8375// GetArchived returns the Archived field if it's non-nil, zero value otherwise. 8376func (p *ProjectCardOptions) GetArchived() bool { 8377 if p == nil || p.Archived == nil { 8378 return false 8379 } 8380 return *p.Archived 8381} 8382 8383// GetPermission returns the Permission field if it's non-nil, zero value otherwise. 8384func (p *ProjectCollaboratorOptions) GetPermission() string { 8385 if p == nil || p.Permission == nil { 8386 return "" 8387 } 8388 return *p.Permission 8389} 8390 8391// GetCardsURL returns the CardsURL field if it's non-nil, zero value otherwise. 8392func (p *ProjectColumn) GetCardsURL() string { 8393 if p == nil || p.CardsURL == nil { 8394 return "" 8395 } 8396 return *p.CardsURL 8397} 8398 8399// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8400func (p *ProjectColumn) GetCreatedAt() Timestamp { 8401 if p == nil || p.CreatedAt == nil { 8402 return Timestamp{} 8403 } 8404 return *p.CreatedAt 8405} 8406 8407// GetID returns the ID field if it's non-nil, zero value otherwise. 8408func (p *ProjectColumn) GetID() int64 { 8409 if p == nil || p.ID == nil { 8410 return 0 8411 } 8412 return *p.ID 8413} 8414 8415// GetName returns the Name field if it's non-nil, zero value otherwise. 8416func (p *ProjectColumn) GetName() string { 8417 if p == nil || p.Name == nil { 8418 return "" 8419 } 8420 return *p.Name 8421} 8422 8423// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 8424func (p *ProjectColumn) GetNodeID() string { 8425 if p == nil || p.NodeID == nil { 8426 return "" 8427 } 8428 return *p.NodeID 8429} 8430 8431// GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. 8432func (p *ProjectColumn) GetProjectURL() string { 8433 if p == nil || p.ProjectURL == nil { 8434 return "" 8435 } 8436 return *p.ProjectURL 8437} 8438 8439// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8440func (p *ProjectColumn) GetUpdatedAt() Timestamp { 8441 if p == nil || p.UpdatedAt == nil { 8442 return Timestamp{} 8443 } 8444 return *p.UpdatedAt 8445} 8446 8447// GetURL returns the URL field if it's non-nil, zero value otherwise. 8448func (p *ProjectColumn) GetURL() string { 8449 if p == nil || p.URL == nil { 8450 return "" 8451 } 8452 return *p.URL 8453} 8454 8455// GetAction returns the Action field if it's non-nil, zero value otherwise. 8456func (p *ProjectColumnEvent) GetAction() string { 8457 if p == nil || p.Action == nil { 8458 return "" 8459 } 8460 return *p.Action 8461} 8462 8463// GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 8464func (p *ProjectColumnEvent) GetAfterID() int64 { 8465 if p == nil || p.AfterID == nil { 8466 return 0 8467 } 8468 return *p.AfterID 8469} 8470 8471// GetChanges returns the Changes field. 8472func (p *ProjectColumnEvent) GetChanges() *ProjectColumnChange { 8473 if p == nil { 8474 return nil 8475 } 8476 return p.Changes 8477} 8478 8479// GetInstallation returns the Installation field. 8480func (p *ProjectColumnEvent) GetInstallation() *Installation { 8481 if p == nil { 8482 return nil 8483 } 8484 return p.Installation 8485} 8486 8487// GetOrg returns the Org field. 8488func (p *ProjectColumnEvent) GetOrg() *Organization { 8489 if p == nil { 8490 return nil 8491 } 8492 return p.Org 8493} 8494 8495// GetProjectColumn returns the ProjectColumn field. 8496func (p *ProjectColumnEvent) GetProjectColumn() *ProjectColumn { 8497 if p == nil { 8498 return nil 8499 } 8500 return p.ProjectColumn 8501} 8502 8503// GetRepo returns the Repo field. 8504func (p *ProjectColumnEvent) GetRepo() *Repository { 8505 if p == nil { 8506 return nil 8507 } 8508 return p.Repo 8509} 8510 8511// GetSender returns the Sender field. 8512func (p *ProjectColumnEvent) GetSender() *User { 8513 if p == nil { 8514 return nil 8515 } 8516 return p.Sender 8517} 8518 8519// GetAction returns the Action field if it's non-nil, zero value otherwise. 8520func (p *ProjectEvent) GetAction() string { 8521 if p == nil || p.Action == nil { 8522 return "" 8523 } 8524 return *p.Action 8525} 8526 8527// GetChanges returns the Changes field. 8528func (p *ProjectEvent) GetChanges() *ProjectChange { 8529 if p == nil { 8530 return nil 8531 } 8532 return p.Changes 8533} 8534 8535// GetInstallation returns the Installation field. 8536func (p *ProjectEvent) GetInstallation() *Installation { 8537 if p == nil { 8538 return nil 8539 } 8540 return p.Installation 8541} 8542 8543// GetOrg returns the Org field. 8544func (p *ProjectEvent) GetOrg() *Organization { 8545 if p == nil { 8546 return nil 8547 } 8548 return p.Org 8549} 8550 8551// GetProject returns the Project field. 8552func (p *ProjectEvent) GetProject() *Project { 8553 if p == nil { 8554 return nil 8555 } 8556 return p.Project 8557} 8558 8559// GetRepo returns the Repo field. 8560func (p *ProjectEvent) GetRepo() *Repository { 8561 if p == nil { 8562 return nil 8563 } 8564 return p.Repo 8565} 8566 8567// GetSender returns the Sender field. 8568func (p *ProjectEvent) GetSender() *User { 8569 if p == nil { 8570 return nil 8571 } 8572 return p.Sender 8573} 8574 8575// GetBody returns the Body field if it's non-nil, zero value otherwise. 8576func (p *ProjectOptions) GetBody() string { 8577 if p == nil || p.Body == nil { 8578 return "" 8579 } 8580 return *p.Body 8581} 8582 8583// GetName returns the Name field if it's non-nil, zero value otherwise. 8584func (p *ProjectOptions) GetName() string { 8585 if p == nil || p.Name == nil { 8586 return "" 8587 } 8588 return *p.Name 8589} 8590 8591// GetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise. 8592func (p *ProjectOptions) GetOrganizationPermission() string { 8593 if p == nil || p.OrganizationPermission == nil { 8594 return "" 8595 } 8596 return *p.OrganizationPermission 8597} 8598 8599// GetPublic returns the Public field if it's non-nil, zero value otherwise. 8600func (p *ProjectOptions) GetPublic() bool { 8601 if p == nil || p.Public == nil { 8602 return false 8603 } 8604 return *p.Public 8605} 8606 8607// GetState returns the State field if it's non-nil, zero value otherwise. 8608func (p *ProjectOptions) GetState() string { 8609 if p == nil || p.State == nil { 8610 return "" 8611 } 8612 return *p.State 8613} 8614 8615// GetPermission returns the Permission field if it's non-nil, zero value otherwise. 8616func (p *ProjectPermissionLevel) GetPermission() string { 8617 if p == nil || p.Permission == nil { 8618 return "" 8619 } 8620 return *p.Permission 8621} 8622 8623// GetUser returns the User field. 8624func (p *ProjectPermissionLevel) GetUser() *User { 8625 if p == nil { 8626 return nil 8627 } 8628 return p.User 8629} 8630 8631// GetAllowDeletions returns the AllowDeletions field. 8632func (p *Protection) GetAllowDeletions() *AllowDeletions { 8633 if p == nil { 8634 return nil 8635 } 8636 return p.AllowDeletions 8637} 8638 8639// GetAllowForcePushes returns the AllowForcePushes field. 8640func (p *Protection) GetAllowForcePushes() *AllowForcePushes { 8641 if p == nil { 8642 return nil 8643 } 8644 return p.AllowForcePushes 8645} 8646 8647// GetEnforceAdmins returns the EnforceAdmins field. 8648func (p *Protection) GetEnforceAdmins() *AdminEnforcement { 8649 if p == nil { 8650 return nil 8651 } 8652 return p.EnforceAdmins 8653} 8654 8655// GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. 8656func (p *Protection) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcement { 8657 if p == nil { 8658 return nil 8659 } 8660 return p.RequiredPullRequestReviews 8661} 8662 8663// GetRequiredStatusChecks returns the RequiredStatusChecks field. 8664func (p *Protection) GetRequiredStatusChecks() *RequiredStatusChecks { 8665 if p == nil { 8666 return nil 8667 } 8668 return p.RequiredStatusChecks 8669} 8670 8671// GetRequireLinearHistory returns the RequireLinearHistory field. 8672func (p *Protection) GetRequireLinearHistory() *RequireLinearHistory { 8673 if p == nil { 8674 return nil 8675 } 8676 return p.RequireLinearHistory 8677} 8678 8679// GetRestrictions returns the Restrictions field. 8680func (p *Protection) GetRestrictions() *BranchRestrictions { 8681 if p == nil { 8682 return nil 8683 } 8684 return p.Restrictions 8685} 8686 8687// GetAllowDeletions returns the AllowDeletions field if it's non-nil, zero value otherwise. 8688func (p *ProtectionRequest) GetAllowDeletions() bool { 8689 if p == nil || p.AllowDeletions == nil { 8690 return false 8691 } 8692 return *p.AllowDeletions 8693} 8694 8695// GetAllowForcePushes returns the AllowForcePushes field if it's non-nil, zero value otherwise. 8696func (p *ProtectionRequest) GetAllowForcePushes() bool { 8697 if p == nil || p.AllowForcePushes == nil { 8698 return false 8699 } 8700 return *p.AllowForcePushes 8701} 8702 8703// GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. 8704func (p *ProtectionRequest) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcementRequest { 8705 if p == nil { 8706 return nil 8707 } 8708 return p.RequiredPullRequestReviews 8709} 8710 8711// GetRequiredStatusChecks returns the RequiredStatusChecks field. 8712func (p *ProtectionRequest) GetRequiredStatusChecks() *RequiredStatusChecks { 8713 if p == nil { 8714 return nil 8715 } 8716 return p.RequiredStatusChecks 8717} 8718 8719// GetRequireLinearHistory returns the RequireLinearHistory field if it's non-nil, zero value otherwise. 8720func (p *ProtectionRequest) GetRequireLinearHistory() bool { 8721 if p == nil || p.RequireLinearHistory == nil { 8722 return false 8723 } 8724 return *p.RequireLinearHistory 8725} 8726 8727// GetRestrictions returns the Restrictions field. 8728func (p *ProtectionRequest) GetRestrictions() *BranchRestrictionsRequest { 8729 if p == nil { 8730 return nil 8731 } 8732 return p.Restrictions 8733} 8734 8735// GetInstallation returns the Installation field. 8736func (p *PublicEvent) GetInstallation() *Installation { 8737 if p == nil { 8738 return nil 8739 } 8740 return p.Installation 8741} 8742 8743// GetRepo returns the Repo field. 8744func (p *PublicEvent) GetRepo() *Repository { 8745 if p == nil { 8746 return nil 8747 } 8748 return p.Repo 8749} 8750 8751// GetSender returns the Sender field. 8752func (p *PublicEvent) GetSender() *User { 8753 if p == nil { 8754 return nil 8755 } 8756 return p.Sender 8757} 8758 8759// GetKey returns the Key field if it's non-nil, zero value otherwise. 8760func (p *PublicKey) GetKey() string { 8761 if p == nil || p.Key == nil { 8762 return "" 8763 } 8764 return *p.Key 8765} 8766 8767// GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. 8768func (p *PublicKey) GetKeyID() string { 8769 if p == nil || p.KeyID == nil { 8770 return "" 8771 } 8772 return *p.KeyID 8773} 8774 8775// GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 8776func (p *PullRequest) GetActiveLockReason() string { 8777 if p == nil || p.ActiveLockReason == nil { 8778 return "" 8779 } 8780 return *p.ActiveLockReason 8781} 8782 8783// GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 8784func (p *PullRequest) GetAdditions() int { 8785 if p == nil || p.Additions == nil { 8786 return 0 8787 } 8788 return *p.Additions 8789} 8790 8791// GetAssignee returns the Assignee field. 8792func (p *PullRequest) GetAssignee() *User { 8793 if p == nil { 8794 return nil 8795 } 8796 return p.Assignee 8797} 8798 8799// GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 8800func (p *PullRequest) GetAuthorAssociation() string { 8801 if p == nil || p.AuthorAssociation == nil { 8802 return "" 8803 } 8804 return *p.AuthorAssociation 8805} 8806 8807// GetBase returns the Base field. 8808func (p *PullRequest) GetBase() *PullRequestBranch { 8809 if p == nil { 8810 return nil 8811 } 8812 return p.Base 8813} 8814 8815// GetBody returns the Body field if it's non-nil, zero value otherwise. 8816func (p *PullRequest) GetBody() string { 8817 if p == nil || p.Body == nil { 8818 return "" 8819 } 8820 return *p.Body 8821} 8822 8823// GetChangedFiles returns the ChangedFiles field if it's non-nil, zero value otherwise. 8824func (p *PullRequest) GetChangedFiles() int { 8825 if p == nil || p.ChangedFiles == nil { 8826 return 0 8827 } 8828 return *p.ChangedFiles 8829} 8830 8831// GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 8832func (p *PullRequest) GetClosedAt() time.Time { 8833 if p == nil || p.ClosedAt == nil { 8834 return time.Time{} 8835 } 8836 return *p.ClosedAt 8837} 8838 8839// GetComments returns the Comments field if it's non-nil, zero value otherwise. 8840func (p *PullRequest) GetComments() int { 8841 if p == nil || p.Comments == nil { 8842 return 0 8843 } 8844 return *p.Comments 8845} 8846 8847// GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 8848func (p *PullRequest) GetCommentsURL() string { 8849 if p == nil || p.CommentsURL == nil { 8850 return "" 8851 } 8852 return *p.CommentsURL 8853} 8854 8855// GetCommits returns the Commits field if it's non-nil, zero value otherwise. 8856func (p *PullRequest) GetCommits() int { 8857 if p == nil || p.Commits == nil { 8858 return 0 8859 } 8860 return *p.Commits 8861} 8862 8863// GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. 8864func (p *PullRequest) GetCommitsURL() string { 8865 if p == nil || p.CommitsURL == nil { 8866 return "" 8867 } 8868 return *p.CommitsURL 8869} 8870 8871// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8872func (p *PullRequest) GetCreatedAt() time.Time { 8873 if p == nil || p.CreatedAt == nil { 8874 return time.Time{} 8875 } 8876 return *p.CreatedAt 8877} 8878 8879// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 8880func (p *PullRequest) GetDeletions() int { 8881 if p == nil || p.Deletions == nil { 8882 return 0 8883 } 8884 return *p.Deletions 8885} 8886 8887// GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 8888func (p *PullRequest) GetDiffURL() string { 8889 if p == nil || p.DiffURL == nil { 8890 return "" 8891 } 8892 return *p.DiffURL 8893} 8894 8895// GetDraft returns the Draft field if it's non-nil, zero value otherwise. 8896func (p *PullRequest) GetDraft() bool { 8897 if p == nil || p.Draft == nil { 8898 return false 8899 } 8900 return *p.Draft 8901} 8902 8903// GetHead returns the Head field. 8904func (p *PullRequest) GetHead() *PullRequestBranch { 8905 if p == nil { 8906 return nil 8907 } 8908 return p.Head 8909} 8910 8911// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 8912func (p *PullRequest) GetHTMLURL() string { 8913 if p == nil || p.HTMLURL == nil { 8914 return "" 8915 } 8916 return *p.HTMLURL 8917} 8918 8919// GetID returns the ID field if it's non-nil, zero value otherwise. 8920func (p *PullRequest) GetID() int64 { 8921 if p == nil || p.ID == nil { 8922 return 0 8923 } 8924 return *p.ID 8925} 8926 8927// GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 8928func (p *PullRequest) GetIssueURL() string { 8929 if p == nil || p.IssueURL == nil { 8930 return "" 8931 } 8932 return *p.IssueURL 8933} 8934 8935// GetLinks returns the Links field. 8936func (p *PullRequest) GetLinks() *PRLinks { 8937 if p == nil { 8938 return nil 8939 } 8940 return p.Links 8941} 8942 8943// GetLocked returns the Locked field if it's non-nil, zero value otherwise. 8944func (p *PullRequest) GetLocked() bool { 8945 if p == nil || p.Locked == nil { 8946 return false 8947 } 8948 return *p.Locked 8949} 8950 8951// GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 8952func (p *PullRequest) GetMaintainerCanModify() bool { 8953 if p == nil || p.MaintainerCanModify == nil { 8954 return false 8955 } 8956 return *p.MaintainerCanModify 8957} 8958 8959// GetMergeable returns the Mergeable field if it's non-nil, zero value otherwise. 8960func (p *PullRequest) GetMergeable() bool { 8961 if p == nil || p.Mergeable == nil { 8962 return false 8963 } 8964 return *p.Mergeable 8965} 8966 8967// GetMergeableState returns the MergeableState field if it's non-nil, zero value otherwise. 8968func (p *PullRequest) GetMergeableState() string { 8969 if p == nil || p.MergeableState == nil { 8970 return "" 8971 } 8972 return *p.MergeableState 8973} 8974 8975// GetMergeCommitSHA returns the MergeCommitSHA field if it's non-nil, zero value otherwise. 8976func (p *PullRequest) GetMergeCommitSHA() string { 8977 if p == nil || p.MergeCommitSHA == nil { 8978 return "" 8979 } 8980 return *p.MergeCommitSHA 8981} 8982 8983// GetMerged returns the Merged field if it's non-nil, zero value otherwise. 8984func (p *PullRequest) GetMerged() bool { 8985 if p == nil || p.Merged == nil { 8986 return false 8987 } 8988 return *p.Merged 8989} 8990 8991// GetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise. 8992func (p *PullRequest) GetMergedAt() time.Time { 8993 if p == nil || p.MergedAt == nil { 8994 return time.Time{} 8995 } 8996 return *p.MergedAt 8997} 8998 8999// GetMergedBy returns the MergedBy field. 9000func (p *PullRequest) GetMergedBy() *User { 9001 if p == nil { 9002 return nil 9003 } 9004 return p.MergedBy 9005} 9006 9007// GetMilestone returns the Milestone field. 9008func (p *PullRequest) GetMilestone() *Milestone { 9009 if p == nil { 9010 return nil 9011 } 9012 return p.Milestone 9013} 9014 9015// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9016func (p *PullRequest) GetNodeID() string { 9017 if p == nil || p.NodeID == nil { 9018 return "" 9019 } 9020 return *p.NodeID 9021} 9022 9023// GetNumber returns the Number field if it's non-nil, zero value otherwise. 9024func (p *PullRequest) GetNumber() int { 9025 if p == nil || p.Number == nil { 9026 return 0 9027 } 9028 return *p.Number 9029} 9030 9031// GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 9032func (p *PullRequest) GetPatchURL() string { 9033 if p == nil || p.PatchURL == nil { 9034 return "" 9035 } 9036 return *p.PatchURL 9037} 9038 9039// GetRebaseable returns the Rebaseable field if it's non-nil, zero value otherwise. 9040func (p *PullRequest) GetRebaseable() bool { 9041 if p == nil || p.Rebaseable == nil { 9042 return false 9043 } 9044 return *p.Rebaseable 9045} 9046 9047// GetReviewComments returns the ReviewComments field if it's non-nil, zero value otherwise. 9048func (p *PullRequest) GetReviewComments() int { 9049 if p == nil || p.ReviewComments == nil { 9050 return 0 9051 } 9052 return *p.ReviewComments 9053} 9054 9055// GetReviewCommentsURL returns the ReviewCommentsURL field if it's non-nil, zero value otherwise. 9056func (p *PullRequest) GetReviewCommentsURL() string { 9057 if p == nil || p.ReviewCommentsURL == nil { 9058 return "" 9059 } 9060 return *p.ReviewCommentsURL 9061} 9062 9063// GetReviewCommentURL returns the ReviewCommentURL field if it's non-nil, zero value otherwise. 9064func (p *PullRequest) GetReviewCommentURL() string { 9065 if p == nil || p.ReviewCommentURL == nil { 9066 return "" 9067 } 9068 return *p.ReviewCommentURL 9069} 9070 9071// GetState returns the State field if it's non-nil, zero value otherwise. 9072func (p *PullRequest) GetState() string { 9073 if p == nil || p.State == nil { 9074 return "" 9075 } 9076 return *p.State 9077} 9078 9079// GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 9080func (p *PullRequest) GetStatusesURL() string { 9081 if p == nil || p.StatusesURL == nil { 9082 return "" 9083 } 9084 return *p.StatusesURL 9085} 9086 9087// GetTitle returns the Title field if it's non-nil, zero value otherwise. 9088func (p *PullRequest) GetTitle() string { 9089 if p == nil || p.Title == nil { 9090 return "" 9091 } 9092 return *p.Title 9093} 9094 9095// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9096func (p *PullRequest) GetUpdatedAt() time.Time { 9097 if p == nil || p.UpdatedAt == nil { 9098 return time.Time{} 9099 } 9100 return *p.UpdatedAt 9101} 9102 9103// GetURL returns the URL field if it's non-nil, zero value otherwise. 9104func (p *PullRequest) GetURL() string { 9105 if p == nil || p.URL == nil { 9106 return "" 9107 } 9108 return *p.URL 9109} 9110 9111// GetUser returns the User field. 9112func (p *PullRequest) GetUser() *User { 9113 if p == nil { 9114 return nil 9115 } 9116 return p.User 9117} 9118 9119// GetLabel returns the Label field if it's non-nil, zero value otherwise. 9120func (p *PullRequestBranch) GetLabel() string { 9121 if p == nil || p.Label == nil { 9122 return "" 9123 } 9124 return *p.Label 9125} 9126 9127// GetRef returns the Ref field if it's non-nil, zero value otherwise. 9128func (p *PullRequestBranch) GetRef() string { 9129 if p == nil || p.Ref == nil { 9130 return "" 9131 } 9132 return *p.Ref 9133} 9134 9135// GetRepo returns the Repo field. 9136func (p *PullRequestBranch) GetRepo() *Repository { 9137 if p == nil { 9138 return nil 9139 } 9140 return p.Repo 9141} 9142 9143// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 9144func (p *PullRequestBranch) GetSHA() string { 9145 if p == nil || p.SHA == nil { 9146 return "" 9147 } 9148 return *p.SHA 9149} 9150 9151// GetUser returns the User field. 9152func (p *PullRequestBranch) GetUser() *User { 9153 if p == nil { 9154 return nil 9155 } 9156 return p.User 9157} 9158 9159// GetExpectedHeadSHA returns the ExpectedHeadSHA field if it's non-nil, zero value otherwise. 9160func (p *PullRequestBranchUpdateOptions) GetExpectedHeadSHA() string { 9161 if p == nil || p.ExpectedHeadSHA == nil { 9162 return "" 9163 } 9164 return *p.ExpectedHeadSHA 9165} 9166 9167// GetMessage returns the Message field if it's non-nil, zero value otherwise. 9168func (p *PullRequestBranchUpdateResponse) GetMessage() string { 9169 if p == nil || p.Message == nil { 9170 return "" 9171 } 9172 return *p.Message 9173} 9174 9175// GetURL returns the URL field if it's non-nil, zero value otherwise. 9176func (p *PullRequestBranchUpdateResponse) GetURL() string { 9177 if p == nil || p.URL == nil { 9178 return "" 9179 } 9180 return *p.URL 9181} 9182 9183// GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 9184func (p *PullRequestComment) GetAuthorAssociation() string { 9185 if p == nil || p.AuthorAssociation == nil { 9186 return "" 9187 } 9188 return *p.AuthorAssociation 9189} 9190 9191// GetBody returns the Body field if it's non-nil, zero value otherwise. 9192func (p *PullRequestComment) GetBody() string { 9193 if p == nil || p.Body == nil { 9194 return "" 9195 } 9196 return *p.Body 9197} 9198 9199// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 9200func (p *PullRequestComment) GetCommitID() string { 9201 if p == nil || p.CommitID == nil { 9202 return "" 9203 } 9204 return *p.CommitID 9205} 9206 9207// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9208func (p *PullRequestComment) GetCreatedAt() time.Time { 9209 if p == nil || p.CreatedAt == nil { 9210 return time.Time{} 9211 } 9212 return *p.CreatedAt 9213} 9214 9215// GetDiffHunk returns the DiffHunk field if it's non-nil, zero value otherwise. 9216func (p *PullRequestComment) GetDiffHunk() string { 9217 if p == nil || p.DiffHunk == nil { 9218 return "" 9219 } 9220 return *p.DiffHunk 9221} 9222 9223// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9224func (p *PullRequestComment) GetHTMLURL() string { 9225 if p == nil || p.HTMLURL == nil { 9226 return "" 9227 } 9228 return *p.HTMLURL 9229} 9230 9231// GetID returns the ID field if it's non-nil, zero value otherwise. 9232func (p *PullRequestComment) GetID() int64 { 9233 if p == nil || p.ID == nil { 9234 return 0 9235 } 9236 return *p.ID 9237} 9238 9239// GetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise. 9240func (p *PullRequestComment) GetInReplyTo() int64 { 9241 if p == nil || p.InReplyTo == nil { 9242 return 0 9243 } 9244 return *p.InReplyTo 9245} 9246 9247// GetLine returns the Line field if it's non-nil, zero value otherwise. 9248func (p *PullRequestComment) GetLine() int { 9249 if p == nil || p.Line == nil { 9250 return 0 9251 } 9252 return *p.Line 9253} 9254 9255// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9256func (p *PullRequestComment) GetNodeID() string { 9257 if p == nil || p.NodeID == nil { 9258 return "" 9259 } 9260 return *p.NodeID 9261} 9262 9263// GetOriginalCommitID returns the OriginalCommitID field if it's non-nil, zero value otherwise. 9264func (p *PullRequestComment) GetOriginalCommitID() string { 9265 if p == nil || p.OriginalCommitID == nil { 9266 return "" 9267 } 9268 return *p.OriginalCommitID 9269} 9270 9271// GetOriginalLine returns the OriginalLine field if it's non-nil, zero value otherwise. 9272func (p *PullRequestComment) GetOriginalLine() int { 9273 if p == nil || p.OriginalLine == nil { 9274 return 0 9275 } 9276 return *p.OriginalLine 9277} 9278 9279// GetOriginalPosition returns the OriginalPosition field if it's non-nil, zero value otherwise. 9280func (p *PullRequestComment) GetOriginalPosition() int { 9281 if p == nil || p.OriginalPosition == nil { 9282 return 0 9283 } 9284 return *p.OriginalPosition 9285} 9286 9287// GetOriginalStartLine returns the OriginalStartLine field if it's non-nil, zero value otherwise. 9288func (p *PullRequestComment) GetOriginalStartLine() int { 9289 if p == nil || p.OriginalStartLine == nil { 9290 return 0 9291 } 9292 return *p.OriginalStartLine 9293} 9294 9295// GetPath returns the Path field if it's non-nil, zero value otherwise. 9296func (p *PullRequestComment) GetPath() string { 9297 if p == nil || p.Path == nil { 9298 return "" 9299 } 9300 return *p.Path 9301} 9302 9303// GetPosition returns the Position field if it's non-nil, zero value otherwise. 9304func (p *PullRequestComment) GetPosition() int { 9305 if p == nil || p.Position == nil { 9306 return 0 9307 } 9308 return *p.Position 9309} 9310 9311// GetPullRequestReviewID returns the PullRequestReviewID field if it's non-nil, zero value otherwise. 9312func (p *PullRequestComment) GetPullRequestReviewID() int64 { 9313 if p == nil || p.PullRequestReviewID == nil { 9314 return 0 9315 } 9316 return *p.PullRequestReviewID 9317} 9318 9319// GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 9320func (p *PullRequestComment) GetPullRequestURL() string { 9321 if p == nil || p.PullRequestURL == nil { 9322 return "" 9323 } 9324 return *p.PullRequestURL 9325} 9326 9327// GetReactions returns the Reactions field. 9328func (p *PullRequestComment) GetReactions() *Reactions { 9329 if p == nil { 9330 return nil 9331 } 9332 return p.Reactions 9333} 9334 9335// GetSide returns the Side field if it's non-nil, zero value otherwise. 9336func (p *PullRequestComment) GetSide() string { 9337 if p == nil || p.Side == nil { 9338 return "" 9339 } 9340 return *p.Side 9341} 9342 9343// GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 9344func (p *PullRequestComment) GetStartLine() int { 9345 if p == nil || p.StartLine == nil { 9346 return 0 9347 } 9348 return *p.StartLine 9349} 9350 9351// GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. 9352func (p *PullRequestComment) GetStartSide() string { 9353 if p == nil || p.StartSide == nil { 9354 return "" 9355 } 9356 return *p.StartSide 9357} 9358 9359// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9360func (p *PullRequestComment) GetUpdatedAt() time.Time { 9361 if p == nil || p.UpdatedAt == nil { 9362 return time.Time{} 9363 } 9364 return *p.UpdatedAt 9365} 9366 9367// GetURL returns the URL field if it's non-nil, zero value otherwise. 9368func (p *PullRequestComment) GetURL() string { 9369 if p == nil || p.URL == nil { 9370 return "" 9371 } 9372 return *p.URL 9373} 9374 9375// GetUser returns the User field. 9376func (p *PullRequestComment) GetUser() *User { 9377 if p == nil { 9378 return nil 9379 } 9380 return p.User 9381} 9382 9383// GetAction returns the Action field if it's non-nil, zero value otherwise. 9384func (p *PullRequestEvent) GetAction() string { 9385 if p == nil || p.Action == nil { 9386 return "" 9387 } 9388 return *p.Action 9389} 9390 9391// GetAfter returns the After field if it's non-nil, zero value otherwise. 9392func (p *PullRequestEvent) GetAfter() string { 9393 if p == nil || p.After == nil { 9394 return "" 9395 } 9396 return *p.After 9397} 9398 9399// GetAssignee returns the Assignee field. 9400func (p *PullRequestEvent) GetAssignee() *User { 9401 if p == nil { 9402 return nil 9403 } 9404 return p.Assignee 9405} 9406 9407// GetBefore returns the Before field if it's non-nil, zero value otherwise. 9408func (p *PullRequestEvent) GetBefore() string { 9409 if p == nil || p.Before == nil { 9410 return "" 9411 } 9412 return *p.Before 9413} 9414 9415// GetChanges returns the Changes field. 9416func (p *PullRequestEvent) GetChanges() *EditChange { 9417 if p == nil { 9418 return nil 9419 } 9420 return p.Changes 9421} 9422 9423// GetInstallation returns the Installation field. 9424func (p *PullRequestEvent) GetInstallation() *Installation { 9425 if p == nil { 9426 return nil 9427 } 9428 return p.Installation 9429} 9430 9431// GetLabel returns the Label field. 9432func (p *PullRequestEvent) GetLabel() *Label { 9433 if p == nil { 9434 return nil 9435 } 9436 return p.Label 9437} 9438 9439// GetNumber returns the Number field if it's non-nil, zero value otherwise. 9440func (p *PullRequestEvent) GetNumber() int { 9441 if p == nil || p.Number == nil { 9442 return 0 9443 } 9444 return *p.Number 9445} 9446 9447// GetOrganization returns the Organization field. 9448func (p *PullRequestEvent) GetOrganization() *Organization { 9449 if p == nil { 9450 return nil 9451 } 9452 return p.Organization 9453} 9454 9455// GetPullRequest returns the PullRequest field. 9456func (p *PullRequestEvent) GetPullRequest() *PullRequest { 9457 if p == nil { 9458 return nil 9459 } 9460 return p.PullRequest 9461} 9462 9463// GetRepo returns the Repo field. 9464func (p *PullRequestEvent) GetRepo() *Repository { 9465 if p == nil { 9466 return nil 9467 } 9468 return p.Repo 9469} 9470 9471// GetRequestedReviewer returns the RequestedReviewer field. 9472func (p *PullRequestEvent) GetRequestedReviewer() *User { 9473 if p == nil { 9474 return nil 9475 } 9476 return p.RequestedReviewer 9477} 9478 9479// GetRequestedTeam returns the RequestedTeam field. 9480func (p *PullRequestEvent) GetRequestedTeam() *Team { 9481 if p == nil { 9482 return nil 9483 } 9484 return p.RequestedTeam 9485} 9486 9487// GetSender returns the Sender field. 9488func (p *PullRequestEvent) GetSender() *User { 9489 if p == nil { 9490 return nil 9491 } 9492 return p.Sender 9493} 9494 9495// GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 9496func (p *PullRequestLinks) GetDiffURL() string { 9497 if p == nil || p.DiffURL == nil { 9498 return "" 9499 } 9500 return *p.DiffURL 9501} 9502 9503// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9504func (p *PullRequestLinks) GetHTMLURL() string { 9505 if p == nil || p.HTMLURL == nil { 9506 return "" 9507 } 9508 return *p.HTMLURL 9509} 9510 9511// GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 9512func (p *PullRequestLinks) GetPatchURL() string { 9513 if p == nil || p.PatchURL == nil { 9514 return "" 9515 } 9516 return *p.PatchURL 9517} 9518 9519// GetURL returns the URL field if it's non-nil, zero value otherwise. 9520func (p *PullRequestLinks) GetURL() string { 9521 if p == nil || p.URL == nil { 9522 return "" 9523 } 9524 return *p.URL 9525} 9526 9527// GetMerged returns the Merged field if it's non-nil, zero value otherwise. 9528func (p *PullRequestMergeResult) GetMerged() bool { 9529 if p == nil || p.Merged == nil { 9530 return false 9531 } 9532 return *p.Merged 9533} 9534 9535// GetMessage returns the Message field if it's non-nil, zero value otherwise. 9536func (p *PullRequestMergeResult) GetMessage() string { 9537 if p == nil || p.Message == nil { 9538 return "" 9539 } 9540 return *p.Message 9541} 9542 9543// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 9544func (p *PullRequestMergeResult) GetSHA() string { 9545 if p == nil || p.SHA == nil { 9546 return "" 9547 } 9548 return *p.SHA 9549} 9550 9551// GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 9552func (p *PullRequestReview) GetAuthorAssociation() string { 9553 if p == nil || p.AuthorAssociation == nil { 9554 return "" 9555 } 9556 return *p.AuthorAssociation 9557} 9558 9559// GetBody returns the Body field if it's non-nil, zero value otherwise. 9560func (p *PullRequestReview) GetBody() string { 9561 if p == nil || p.Body == nil { 9562 return "" 9563 } 9564 return *p.Body 9565} 9566 9567// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 9568func (p *PullRequestReview) GetCommitID() string { 9569 if p == nil || p.CommitID == nil { 9570 return "" 9571 } 9572 return *p.CommitID 9573} 9574 9575// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9576func (p *PullRequestReview) GetHTMLURL() string { 9577 if p == nil || p.HTMLURL == nil { 9578 return "" 9579 } 9580 return *p.HTMLURL 9581} 9582 9583// GetID returns the ID field if it's non-nil, zero value otherwise. 9584func (p *PullRequestReview) GetID() int64 { 9585 if p == nil || p.ID == nil { 9586 return 0 9587 } 9588 return *p.ID 9589} 9590 9591// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9592func (p *PullRequestReview) GetNodeID() string { 9593 if p == nil || p.NodeID == nil { 9594 return "" 9595 } 9596 return *p.NodeID 9597} 9598 9599// GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 9600func (p *PullRequestReview) GetPullRequestURL() string { 9601 if p == nil || p.PullRequestURL == nil { 9602 return "" 9603 } 9604 return *p.PullRequestURL 9605} 9606 9607// GetState returns the State field if it's non-nil, zero value otherwise. 9608func (p *PullRequestReview) GetState() string { 9609 if p == nil || p.State == nil { 9610 return "" 9611 } 9612 return *p.State 9613} 9614 9615// GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. 9616func (p *PullRequestReview) GetSubmittedAt() time.Time { 9617 if p == nil || p.SubmittedAt == nil { 9618 return time.Time{} 9619 } 9620 return *p.SubmittedAt 9621} 9622 9623// GetUser returns the User field. 9624func (p *PullRequestReview) GetUser() *User { 9625 if p == nil { 9626 return nil 9627 } 9628 return p.User 9629} 9630 9631// GetAction returns the Action field if it's non-nil, zero value otherwise. 9632func (p *PullRequestReviewCommentEvent) GetAction() string { 9633 if p == nil || p.Action == nil { 9634 return "" 9635 } 9636 return *p.Action 9637} 9638 9639// GetChanges returns the Changes field. 9640func (p *PullRequestReviewCommentEvent) GetChanges() *EditChange { 9641 if p == nil { 9642 return nil 9643 } 9644 return p.Changes 9645} 9646 9647// GetComment returns the Comment field. 9648func (p *PullRequestReviewCommentEvent) GetComment() *PullRequestComment { 9649 if p == nil { 9650 return nil 9651 } 9652 return p.Comment 9653} 9654 9655// GetInstallation returns the Installation field. 9656func (p *PullRequestReviewCommentEvent) GetInstallation() *Installation { 9657 if p == nil { 9658 return nil 9659 } 9660 return p.Installation 9661} 9662 9663// GetPullRequest returns the PullRequest field. 9664func (p *PullRequestReviewCommentEvent) GetPullRequest() *PullRequest { 9665 if p == nil { 9666 return nil 9667 } 9668 return p.PullRequest 9669} 9670 9671// GetRepo returns the Repo field. 9672func (p *PullRequestReviewCommentEvent) GetRepo() *Repository { 9673 if p == nil { 9674 return nil 9675 } 9676 return p.Repo 9677} 9678 9679// GetSender returns the Sender field. 9680func (p *PullRequestReviewCommentEvent) GetSender() *User { 9681 if p == nil { 9682 return nil 9683 } 9684 return p.Sender 9685} 9686 9687// GetMessage returns the Message field if it's non-nil, zero value otherwise. 9688func (p *PullRequestReviewDismissalRequest) GetMessage() string { 9689 if p == nil || p.Message == nil { 9690 return "" 9691 } 9692 return *p.Message 9693} 9694 9695// GetAction returns the Action field if it's non-nil, zero value otherwise. 9696func (p *PullRequestReviewEvent) GetAction() string { 9697 if p == nil || p.Action == nil { 9698 return "" 9699 } 9700 return *p.Action 9701} 9702 9703// GetInstallation returns the Installation field. 9704func (p *PullRequestReviewEvent) GetInstallation() *Installation { 9705 if p == nil { 9706 return nil 9707 } 9708 return p.Installation 9709} 9710 9711// GetOrganization returns the Organization field. 9712func (p *PullRequestReviewEvent) GetOrganization() *Organization { 9713 if p == nil { 9714 return nil 9715 } 9716 return p.Organization 9717} 9718 9719// GetPullRequest returns the PullRequest field. 9720func (p *PullRequestReviewEvent) GetPullRequest() *PullRequest { 9721 if p == nil { 9722 return nil 9723 } 9724 return p.PullRequest 9725} 9726 9727// GetRepo returns the Repo field. 9728func (p *PullRequestReviewEvent) GetRepo() *Repository { 9729 if p == nil { 9730 return nil 9731 } 9732 return p.Repo 9733} 9734 9735// GetReview returns the Review field. 9736func (p *PullRequestReviewEvent) GetReview() *PullRequestReview { 9737 if p == nil { 9738 return nil 9739 } 9740 return p.Review 9741} 9742 9743// GetSender returns the Sender field. 9744func (p *PullRequestReviewEvent) GetSender() *User { 9745 if p == nil { 9746 return nil 9747 } 9748 return p.Sender 9749} 9750 9751// GetBody returns the Body field if it's non-nil, zero value otherwise. 9752func (p *PullRequestReviewRequest) GetBody() string { 9753 if p == nil || p.Body == nil { 9754 return "" 9755 } 9756 return *p.Body 9757} 9758 9759// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 9760func (p *PullRequestReviewRequest) GetCommitID() string { 9761 if p == nil || p.CommitID == nil { 9762 return "" 9763 } 9764 return *p.CommitID 9765} 9766 9767// GetEvent returns the Event field if it's non-nil, zero value otherwise. 9768func (p *PullRequestReviewRequest) GetEvent() string { 9769 if p == nil || p.Event == nil { 9770 return "" 9771 } 9772 return *p.Event 9773} 9774 9775// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9776func (p *PullRequestReviewRequest) GetNodeID() string { 9777 if p == nil || p.NodeID == nil { 9778 return "" 9779 } 9780 return *p.NodeID 9781} 9782 9783// GetDismissalRestrictions returns the DismissalRestrictions field. 9784func (p *PullRequestReviewsEnforcement) GetDismissalRestrictions() *DismissalRestrictions { 9785 if p == nil { 9786 return nil 9787 } 9788 return p.DismissalRestrictions 9789} 9790 9791// GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. 9792func (p *PullRequestReviewsEnforcementRequest) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest { 9793 if p == nil { 9794 return nil 9795 } 9796 return p.DismissalRestrictionsRequest 9797} 9798 9799// GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. 9800func (p *PullRequestReviewsEnforcementUpdate) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest { 9801 if p == nil { 9802 return nil 9803 } 9804 return p.DismissalRestrictionsRequest 9805} 9806 9807// GetDismissStaleReviews returns the DismissStaleReviews field if it's non-nil, zero value otherwise. 9808func (p *PullRequestReviewsEnforcementUpdate) GetDismissStaleReviews() bool { 9809 if p == nil || p.DismissStaleReviews == nil { 9810 return false 9811 } 9812 return *p.DismissStaleReviews 9813} 9814 9815// GetMergablePulls returns the MergablePulls field if it's non-nil, zero value otherwise. 9816func (p *PullStats) GetMergablePulls() int { 9817 if p == nil || p.MergablePulls == nil { 9818 return 0 9819 } 9820 return *p.MergablePulls 9821} 9822 9823// GetMergedPulls returns the MergedPulls field if it's non-nil, zero value otherwise. 9824func (p *PullStats) GetMergedPulls() int { 9825 if p == nil || p.MergedPulls == nil { 9826 return 0 9827 } 9828 return *p.MergedPulls 9829} 9830 9831// GetTotalPulls returns the TotalPulls field if it's non-nil, zero value otherwise. 9832func (p *PullStats) GetTotalPulls() int { 9833 if p == nil || p.TotalPulls == nil { 9834 return 0 9835 } 9836 return *p.TotalPulls 9837} 9838 9839// GetUnmergablePulls returns the UnmergablePulls field if it's non-nil, zero value otherwise. 9840func (p *PullStats) GetUnmergablePulls() int { 9841 if p == nil || p.UnmergablePulls == nil { 9842 return 0 9843 } 9844 return *p.UnmergablePulls 9845} 9846 9847// GetCommits returns the Commits field if it's non-nil, zero value otherwise. 9848func (p *PunchCard) GetCommits() int { 9849 if p == nil || p.Commits == nil { 9850 return 0 9851 } 9852 return *p.Commits 9853} 9854 9855// GetDay returns the Day field if it's non-nil, zero value otherwise. 9856func (p *PunchCard) GetDay() int { 9857 if p == nil || p.Day == nil { 9858 return 0 9859 } 9860 return *p.Day 9861} 9862 9863// GetHour returns the Hour field if it's non-nil, zero value otherwise. 9864func (p *PunchCard) GetHour() int { 9865 if p == nil || p.Hour == nil { 9866 return 0 9867 } 9868 return *p.Hour 9869} 9870 9871// GetAfter returns the After field if it's non-nil, zero value otherwise. 9872func (p *PushEvent) GetAfter() string { 9873 if p == nil || p.After == nil { 9874 return "" 9875 } 9876 return *p.After 9877} 9878 9879// GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise. 9880func (p *PushEvent) GetBaseRef() string { 9881 if p == nil || p.BaseRef == nil { 9882 return "" 9883 } 9884 return *p.BaseRef 9885} 9886 9887// GetBefore returns the Before field if it's non-nil, zero value otherwise. 9888func (p *PushEvent) GetBefore() string { 9889 if p == nil || p.Before == nil { 9890 return "" 9891 } 9892 return *p.Before 9893} 9894 9895// GetCompare returns the Compare field if it's non-nil, zero value otherwise. 9896func (p *PushEvent) GetCompare() string { 9897 if p == nil || p.Compare == nil { 9898 return "" 9899 } 9900 return *p.Compare 9901} 9902 9903// GetCreated returns the Created field if it's non-nil, zero value otherwise. 9904func (p *PushEvent) GetCreated() bool { 9905 if p == nil || p.Created == nil { 9906 return false 9907 } 9908 return *p.Created 9909} 9910 9911// GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. 9912func (p *PushEvent) GetDeleted() bool { 9913 if p == nil || p.Deleted == nil { 9914 return false 9915 } 9916 return *p.Deleted 9917} 9918 9919// GetDistinctSize returns the DistinctSize field if it's non-nil, zero value otherwise. 9920func (p *PushEvent) GetDistinctSize() int { 9921 if p == nil || p.DistinctSize == nil { 9922 return 0 9923 } 9924 return *p.DistinctSize 9925} 9926 9927// GetForced returns the Forced field if it's non-nil, zero value otherwise. 9928func (p *PushEvent) GetForced() bool { 9929 if p == nil || p.Forced == nil { 9930 return false 9931 } 9932 return *p.Forced 9933} 9934 9935// GetHead returns the Head field if it's non-nil, zero value otherwise. 9936func (p *PushEvent) GetHead() string { 9937 if p == nil || p.Head == nil { 9938 return "" 9939 } 9940 return *p.Head 9941} 9942 9943// GetHeadCommit returns the HeadCommit field. 9944func (p *PushEvent) GetHeadCommit() *HeadCommit { 9945 if p == nil { 9946 return nil 9947 } 9948 return p.HeadCommit 9949} 9950 9951// GetInstallation returns the Installation field. 9952func (p *PushEvent) GetInstallation() *Installation { 9953 if p == nil { 9954 return nil 9955 } 9956 return p.Installation 9957} 9958 9959// GetPusher returns the Pusher field. 9960func (p *PushEvent) GetPusher() *User { 9961 if p == nil { 9962 return nil 9963 } 9964 return p.Pusher 9965} 9966 9967// GetPushID returns the PushID field if it's non-nil, zero value otherwise. 9968func (p *PushEvent) GetPushID() int64 { 9969 if p == nil || p.PushID == nil { 9970 return 0 9971 } 9972 return *p.PushID 9973} 9974 9975// GetRef returns the Ref field if it's non-nil, zero value otherwise. 9976func (p *PushEvent) GetRef() string { 9977 if p == nil || p.Ref == nil { 9978 return "" 9979 } 9980 return *p.Ref 9981} 9982 9983// GetRepo returns the Repo field. 9984func (p *PushEvent) GetRepo() *PushEventRepository { 9985 if p == nil { 9986 return nil 9987 } 9988 return p.Repo 9989} 9990 9991// GetSender returns the Sender field. 9992func (p *PushEvent) GetSender() *User { 9993 if p == nil { 9994 return nil 9995 } 9996 return p.Sender 9997} 9998 9999// GetSize returns the Size field if it's non-nil, zero value otherwise. 10000func (p *PushEvent) GetSize() int { 10001 if p == nil || p.Size == nil { 10002 return 0 10003 } 10004 return *p.Size 10005} 10006 10007// GetEmail returns the Email field if it's non-nil, zero value otherwise. 10008func (p *PushEventRepoOwner) GetEmail() string { 10009 if p == nil || p.Email == nil { 10010 return "" 10011 } 10012 return *p.Email 10013} 10014 10015// GetName returns the Name field if it's non-nil, zero value otherwise. 10016func (p *PushEventRepoOwner) GetName() string { 10017 if p == nil || p.Name == nil { 10018 return "" 10019 } 10020 return *p.Name 10021} 10022 10023// GetArchived returns the Archived field if it's non-nil, zero value otherwise. 10024func (p *PushEventRepository) GetArchived() bool { 10025 if p == nil || p.Archived == nil { 10026 return false 10027 } 10028 return *p.Archived 10029} 10030 10031// GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 10032func (p *PushEventRepository) GetArchiveURL() string { 10033 if p == nil || p.ArchiveURL == nil { 10034 return "" 10035 } 10036 return *p.ArchiveURL 10037} 10038 10039// GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 10040func (p *PushEventRepository) GetCloneURL() string { 10041 if p == nil || p.CloneURL == nil { 10042 return "" 10043 } 10044 return *p.CloneURL 10045} 10046 10047// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10048func (p *PushEventRepository) GetCreatedAt() Timestamp { 10049 if p == nil || p.CreatedAt == nil { 10050 return Timestamp{} 10051 } 10052 return *p.CreatedAt 10053} 10054 10055// GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 10056func (p *PushEventRepository) GetDefaultBranch() string { 10057 if p == nil || p.DefaultBranch == nil { 10058 return "" 10059 } 10060 return *p.DefaultBranch 10061} 10062 10063// GetDescription returns the Description field if it's non-nil, zero value otherwise. 10064func (p *PushEventRepository) GetDescription() string { 10065 if p == nil || p.Description == nil { 10066 return "" 10067 } 10068 return *p.Description 10069} 10070 10071// GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. 10072func (p *PushEventRepository) GetDisabled() bool { 10073 if p == nil || p.Disabled == nil { 10074 return false 10075 } 10076 return *p.Disabled 10077} 10078 10079// GetFork returns the Fork field if it's non-nil, zero value otherwise. 10080func (p *PushEventRepository) GetFork() bool { 10081 if p == nil || p.Fork == nil { 10082 return false 10083 } 10084 return *p.Fork 10085} 10086 10087// GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 10088func (p *PushEventRepository) GetForksCount() int { 10089 if p == nil || p.ForksCount == nil { 10090 return 0 10091 } 10092 return *p.ForksCount 10093} 10094 10095// GetFullName returns the FullName field if it's non-nil, zero value otherwise. 10096func (p *PushEventRepository) GetFullName() string { 10097 if p == nil || p.FullName == nil { 10098 return "" 10099 } 10100 return *p.FullName 10101} 10102 10103// GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 10104func (p *PushEventRepository) GetGitURL() string { 10105 if p == nil || p.GitURL == nil { 10106 return "" 10107 } 10108 return *p.GitURL 10109} 10110 10111// GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 10112func (p *PushEventRepository) GetHasDownloads() bool { 10113 if p == nil || p.HasDownloads == nil { 10114 return false 10115 } 10116 return *p.HasDownloads 10117} 10118 10119// GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 10120func (p *PushEventRepository) GetHasIssues() bool { 10121 if p == nil || p.HasIssues == nil { 10122 return false 10123 } 10124 return *p.HasIssues 10125} 10126 10127// GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 10128func (p *PushEventRepository) GetHasPages() bool { 10129 if p == nil || p.HasPages == nil { 10130 return false 10131 } 10132 return *p.HasPages 10133} 10134 10135// GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 10136func (p *PushEventRepository) GetHasWiki() bool { 10137 if p == nil || p.HasWiki == nil { 10138 return false 10139 } 10140 return *p.HasWiki 10141} 10142 10143// GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 10144func (p *PushEventRepository) GetHomepage() string { 10145 if p == nil || p.Homepage == nil { 10146 return "" 10147 } 10148 return *p.Homepage 10149} 10150 10151// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 10152func (p *PushEventRepository) GetHTMLURL() string { 10153 if p == nil || p.HTMLURL == nil { 10154 return "" 10155 } 10156 return *p.HTMLURL 10157} 10158 10159// GetID returns the ID field if it's non-nil, zero value otherwise. 10160func (p *PushEventRepository) GetID() int64 { 10161 if p == nil || p.ID == nil { 10162 return 0 10163 } 10164 return *p.ID 10165} 10166 10167// GetLanguage returns the Language field if it's non-nil, zero value otherwise. 10168func (p *PushEventRepository) GetLanguage() string { 10169 if p == nil || p.Language == nil { 10170 return "" 10171 } 10172 return *p.Language 10173} 10174 10175// GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 10176func (p *PushEventRepository) GetMasterBranch() string { 10177 if p == nil || p.MasterBranch == nil { 10178 return "" 10179 } 10180 return *p.MasterBranch 10181} 10182 10183// GetName returns the Name field if it's non-nil, zero value otherwise. 10184func (p *PushEventRepository) GetName() string { 10185 if p == nil || p.Name == nil { 10186 return "" 10187 } 10188 return *p.Name 10189} 10190 10191// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10192func (p *PushEventRepository) GetNodeID() string { 10193 if p == nil || p.NodeID == nil { 10194 return "" 10195 } 10196 return *p.NodeID 10197} 10198 10199// GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 10200func (p *PushEventRepository) GetOpenIssuesCount() int { 10201 if p == nil || p.OpenIssuesCount == nil { 10202 return 0 10203 } 10204 return *p.OpenIssuesCount 10205} 10206 10207// GetOrganization returns the Organization field if it's non-nil, zero value otherwise. 10208func (p *PushEventRepository) GetOrganization() string { 10209 if p == nil || p.Organization == nil { 10210 return "" 10211 } 10212 return *p.Organization 10213} 10214 10215// GetOwner returns the Owner field. 10216func (p *PushEventRepository) GetOwner() *User { 10217 if p == nil { 10218 return nil 10219 } 10220 return p.Owner 10221} 10222 10223// GetPrivate returns the Private field if it's non-nil, zero value otherwise. 10224func (p *PushEventRepository) GetPrivate() bool { 10225 if p == nil || p.Private == nil { 10226 return false 10227 } 10228 return *p.Private 10229} 10230 10231// GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 10232func (p *PushEventRepository) GetPullsURL() string { 10233 if p == nil || p.PullsURL == nil { 10234 return "" 10235 } 10236 return *p.PullsURL 10237} 10238 10239// GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 10240func (p *PushEventRepository) GetPushedAt() Timestamp { 10241 if p == nil || p.PushedAt == nil { 10242 return Timestamp{} 10243 } 10244 return *p.PushedAt 10245} 10246 10247// GetSize returns the Size field if it's non-nil, zero value otherwise. 10248func (p *PushEventRepository) GetSize() int { 10249 if p == nil || p.Size == nil { 10250 return 0 10251 } 10252 return *p.Size 10253} 10254 10255// GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 10256func (p *PushEventRepository) GetSSHURL() string { 10257 if p == nil || p.SSHURL == nil { 10258 return "" 10259 } 10260 return *p.SSHURL 10261} 10262 10263// GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 10264func (p *PushEventRepository) GetStargazersCount() int { 10265 if p == nil || p.StargazersCount == nil { 10266 return 0 10267 } 10268 return *p.StargazersCount 10269} 10270 10271// GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 10272func (p *PushEventRepository) GetStatusesURL() string { 10273 if p == nil || p.StatusesURL == nil { 10274 return "" 10275 } 10276 return *p.StatusesURL 10277} 10278 10279// GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 10280func (p *PushEventRepository) GetSVNURL() string { 10281 if p == nil || p.SVNURL == nil { 10282 return "" 10283 } 10284 return *p.SVNURL 10285} 10286 10287// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10288func (p *PushEventRepository) GetUpdatedAt() Timestamp { 10289 if p == nil || p.UpdatedAt == nil { 10290 return Timestamp{} 10291 } 10292 return *p.UpdatedAt 10293} 10294 10295// GetURL returns the URL field if it's non-nil, zero value otherwise. 10296func (p *PushEventRepository) GetURL() string { 10297 if p == nil || p.URL == nil { 10298 return "" 10299 } 10300 return *p.URL 10301} 10302 10303// GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 10304func (p *PushEventRepository) GetWatchersCount() int { 10305 if p == nil || p.WatchersCount == nil { 10306 return 0 10307 } 10308 return *p.WatchersCount 10309} 10310 10311// GetCore returns the Core field. 10312func (r *RateLimits) GetCore() *Rate { 10313 if r == nil { 10314 return nil 10315 } 10316 return r.Core 10317} 10318 10319// GetSearch returns the Search field. 10320func (r *RateLimits) GetSearch() *Rate { 10321 if r == nil { 10322 return nil 10323 } 10324 return r.Search 10325} 10326 10327// GetContent returns the Content field if it's non-nil, zero value otherwise. 10328func (r *Reaction) GetContent() string { 10329 if r == nil || r.Content == nil { 10330 return "" 10331 } 10332 return *r.Content 10333} 10334 10335// GetID returns the ID field if it's non-nil, zero value otherwise. 10336func (r *Reaction) GetID() int64 { 10337 if r == nil || r.ID == nil { 10338 return 0 10339 } 10340 return *r.ID 10341} 10342 10343// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10344func (r *Reaction) GetNodeID() string { 10345 if r == nil || r.NodeID == nil { 10346 return "" 10347 } 10348 return *r.NodeID 10349} 10350 10351// GetUser returns the User field. 10352func (r *Reaction) GetUser() *User { 10353 if r == nil { 10354 return nil 10355 } 10356 return r.User 10357} 10358 10359// GetConfused returns the Confused field if it's non-nil, zero value otherwise. 10360func (r *Reactions) GetConfused() int { 10361 if r == nil || r.Confused == nil { 10362 return 0 10363 } 10364 return *r.Confused 10365} 10366 10367// GetHeart returns the Heart field if it's non-nil, zero value otherwise. 10368func (r *Reactions) GetHeart() int { 10369 if r == nil || r.Heart == nil { 10370 return 0 10371 } 10372 return *r.Heart 10373} 10374 10375// GetHooray returns the Hooray field if it's non-nil, zero value otherwise. 10376func (r *Reactions) GetHooray() int { 10377 if r == nil || r.Hooray == nil { 10378 return 0 10379 } 10380 return *r.Hooray 10381} 10382 10383// GetLaugh returns the Laugh field if it's non-nil, zero value otherwise. 10384func (r *Reactions) GetLaugh() int { 10385 if r == nil || r.Laugh == nil { 10386 return 0 10387 } 10388 return *r.Laugh 10389} 10390 10391// GetMinusOne returns the MinusOne field if it's non-nil, zero value otherwise. 10392func (r *Reactions) GetMinusOne() int { 10393 if r == nil || r.MinusOne == nil { 10394 return 0 10395 } 10396 return *r.MinusOne 10397} 10398 10399// GetPlusOne returns the PlusOne field if it's non-nil, zero value otherwise. 10400func (r *Reactions) GetPlusOne() int { 10401 if r == nil || r.PlusOne == nil { 10402 return 0 10403 } 10404 return *r.PlusOne 10405} 10406 10407// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 10408func (r *Reactions) GetTotalCount() int { 10409 if r == nil || r.TotalCount == nil { 10410 return 0 10411 } 10412 return *r.TotalCount 10413} 10414 10415// GetURL returns the URL field if it's non-nil, zero value otherwise. 10416func (r *Reactions) GetURL() string { 10417 if r == nil || r.URL == nil { 10418 return "" 10419 } 10420 return *r.URL 10421} 10422 10423// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10424func (r *Reference) GetNodeID() string { 10425 if r == nil || r.NodeID == nil { 10426 return "" 10427 } 10428 return *r.NodeID 10429} 10430 10431// GetObject returns the Object field. 10432func (r *Reference) GetObject() *GitObject { 10433 if r == nil { 10434 return nil 10435 } 10436 return r.Object 10437} 10438 10439// GetRef returns the Ref field if it's non-nil, zero value otherwise. 10440func (r *Reference) GetRef() string { 10441 if r == nil || r.Ref == nil { 10442 return "" 10443 } 10444 return *r.Ref 10445} 10446 10447// GetURL returns the URL field if it's non-nil, zero value otherwise. 10448func (r *Reference) GetURL() string { 10449 if r == nil || r.URL == nil { 10450 return "" 10451 } 10452 return *r.URL 10453} 10454 10455// GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 10456func (r *RegistrationToken) GetExpiresAt() Timestamp { 10457 if r == nil || r.ExpiresAt == nil { 10458 return Timestamp{} 10459 } 10460 return *r.ExpiresAt 10461} 10462 10463// GetToken returns the Token field if it's non-nil, zero value otherwise. 10464func (r *RegistrationToken) GetToken() string { 10465 if r == nil || r.Token == nil { 10466 return "" 10467 } 10468 return *r.Token 10469} 10470 10471// GetBrowserDownloadURL returns the BrowserDownloadURL field if it's non-nil, zero value otherwise. 10472func (r *ReleaseAsset) GetBrowserDownloadURL() string { 10473 if r == nil || r.BrowserDownloadURL == nil { 10474 return "" 10475 } 10476 return *r.BrowserDownloadURL 10477} 10478 10479// GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 10480func (r *ReleaseAsset) GetContentType() string { 10481 if r == nil || r.ContentType == nil { 10482 return "" 10483 } 10484 return *r.ContentType 10485} 10486 10487// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10488func (r *ReleaseAsset) GetCreatedAt() Timestamp { 10489 if r == nil || r.CreatedAt == nil { 10490 return Timestamp{} 10491 } 10492 return *r.CreatedAt 10493} 10494 10495// GetDownloadCount returns the DownloadCount field if it's non-nil, zero value otherwise. 10496func (r *ReleaseAsset) GetDownloadCount() int { 10497 if r == nil || r.DownloadCount == nil { 10498 return 0 10499 } 10500 return *r.DownloadCount 10501} 10502 10503// GetID returns the ID field if it's non-nil, zero value otherwise. 10504func (r *ReleaseAsset) GetID() int64 { 10505 if r == nil || r.ID == nil { 10506 return 0 10507 } 10508 return *r.ID 10509} 10510 10511// GetLabel returns the Label field if it's non-nil, zero value otherwise. 10512func (r *ReleaseAsset) GetLabel() string { 10513 if r == nil || r.Label == nil { 10514 return "" 10515 } 10516 return *r.Label 10517} 10518 10519// GetName returns the Name field if it's non-nil, zero value otherwise. 10520func (r *ReleaseAsset) GetName() string { 10521 if r == nil || r.Name == nil { 10522 return "" 10523 } 10524 return *r.Name 10525} 10526 10527// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10528func (r *ReleaseAsset) GetNodeID() string { 10529 if r == nil || r.NodeID == nil { 10530 return "" 10531 } 10532 return *r.NodeID 10533} 10534 10535// GetSize returns the Size field if it's non-nil, zero value otherwise. 10536func (r *ReleaseAsset) GetSize() int { 10537 if r == nil || r.Size == nil { 10538 return 0 10539 } 10540 return *r.Size 10541} 10542 10543// GetState returns the State field if it's non-nil, zero value otherwise. 10544func (r *ReleaseAsset) GetState() string { 10545 if r == nil || r.State == nil { 10546 return "" 10547 } 10548 return *r.State 10549} 10550 10551// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10552func (r *ReleaseAsset) GetUpdatedAt() Timestamp { 10553 if r == nil || r.UpdatedAt == nil { 10554 return Timestamp{} 10555 } 10556 return *r.UpdatedAt 10557} 10558 10559// GetUploader returns the Uploader field. 10560func (r *ReleaseAsset) GetUploader() *User { 10561 if r == nil { 10562 return nil 10563 } 10564 return r.Uploader 10565} 10566 10567// GetURL returns the URL field if it's non-nil, zero value otherwise. 10568func (r *ReleaseAsset) GetURL() string { 10569 if r == nil || r.URL == nil { 10570 return "" 10571 } 10572 return *r.URL 10573} 10574 10575// GetAction returns the Action field if it's non-nil, zero value otherwise. 10576func (r *ReleaseEvent) GetAction() string { 10577 if r == nil || r.Action == nil { 10578 return "" 10579 } 10580 return *r.Action 10581} 10582 10583// GetInstallation returns the Installation field. 10584func (r *ReleaseEvent) GetInstallation() *Installation { 10585 if r == nil { 10586 return nil 10587 } 10588 return r.Installation 10589} 10590 10591// GetRelease returns the Release field. 10592func (r *ReleaseEvent) GetRelease() *RepositoryRelease { 10593 if r == nil { 10594 return nil 10595 } 10596 return r.Release 10597} 10598 10599// GetRepo returns the Repo field. 10600func (r *ReleaseEvent) GetRepo() *Repository { 10601 if r == nil { 10602 return nil 10603 } 10604 return r.Repo 10605} 10606 10607// GetSender returns the Sender field. 10608func (r *ReleaseEvent) GetSender() *User { 10609 if r == nil { 10610 return nil 10611 } 10612 return r.Sender 10613} 10614 10615// GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 10616func (r *RemoveToken) GetExpiresAt() Timestamp { 10617 if r == nil || r.ExpiresAt == nil { 10618 return Timestamp{} 10619 } 10620 return *r.ExpiresAt 10621} 10622 10623// GetToken returns the Token field if it's non-nil, zero value otherwise. 10624func (r *RemoveToken) GetToken() string { 10625 if r == nil || r.Token == nil { 10626 return "" 10627 } 10628 return *r.Token 10629} 10630 10631// GetFrom returns the From field if it's non-nil, zero value otherwise. 10632func (r *Rename) GetFrom() string { 10633 if r == nil || r.From == nil { 10634 return "" 10635 } 10636 return *r.From 10637} 10638 10639// GetTo returns the To field if it's non-nil, zero value otherwise. 10640func (r *Rename) GetTo() string { 10641 if r == nil || r.To == nil { 10642 return "" 10643 } 10644 return *r.To 10645} 10646 10647// GetMessage returns the Message field if it's non-nil, zero value otherwise. 10648func (r *RenameOrgResponse) GetMessage() string { 10649 if r == nil || r.Message == nil { 10650 return "" 10651 } 10652 return *r.Message 10653} 10654 10655// GetURL returns the URL field if it's non-nil, zero value otherwise. 10656func (r *RenameOrgResponse) GetURL() string { 10657 if r == nil || r.URL == nil { 10658 return "" 10659 } 10660 return *r.URL 10661} 10662 10663// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 10664func (r *RepositoriesSearchResult) GetIncompleteResults() bool { 10665 if r == nil || r.IncompleteResults == nil { 10666 return false 10667 } 10668 return *r.IncompleteResults 10669} 10670 10671// GetTotal returns the Total field if it's non-nil, zero value otherwise. 10672func (r *RepositoriesSearchResult) GetTotal() int { 10673 if r == nil || r.Total == nil { 10674 return 0 10675 } 10676 return *r.Total 10677} 10678 10679// GetAllowMergeCommit returns the AllowMergeCommit field if it's non-nil, zero value otherwise. 10680func (r *Repository) GetAllowMergeCommit() bool { 10681 if r == nil || r.AllowMergeCommit == nil { 10682 return false 10683 } 10684 return *r.AllowMergeCommit 10685} 10686 10687// GetAllowRebaseMerge returns the AllowRebaseMerge field if it's non-nil, zero value otherwise. 10688func (r *Repository) GetAllowRebaseMerge() bool { 10689 if r == nil || r.AllowRebaseMerge == nil { 10690 return false 10691 } 10692 return *r.AllowRebaseMerge 10693} 10694 10695// GetAllowSquashMerge returns the AllowSquashMerge field if it's non-nil, zero value otherwise. 10696func (r *Repository) GetAllowSquashMerge() bool { 10697 if r == nil || r.AllowSquashMerge == nil { 10698 return false 10699 } 10700 return *r.AllowSquashMerge 10701} 10702 10703// GetArchived returns the Archived field if it's non-nil, zero value otherwise. 10704func (r *Repository) GetArchived() bool { 10705 if r == nil || r.Archived == nil { 10706 return false 10707 } 10708 return *r.Archived 10709} 10710 10711// GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 10712func (r *Repository) GetArchiveURL() string { 10713 if r == nil || r.ArchiveURL == nil { 10714 return "" 10715 } 10716 return *r.ArchiveURL 10717} 10718 10719// GetAssigneesURL returns the AssigneesURL field if it's non-nil, zero value otherwise. 10720func (r *Repository) GetAssigneesURL() string { 10721 if r == nil || r.AssigneesURL == nil { 10722 return "" 10723 } 10724 return *r.AssigneesURL 10725} 10726 10727// GetAutoInit returns the AutoInit field if it's non-nil, zero value otherwise. 10728func (r *Repository) GetAutoInit() bool { 10729 if r == nil || r.AutoInit == nil { 10730 return false 10731 } 10732 return *r.AutoInit 10733} 10734 10735// GetBlobsURL returns the BlobsURL field if it's non-nil, zero value otherwise. 10736func (r *Repository) GetBlobsURL() string { 10737 if r == nil || r.BlobsURL == nil { 10738 return "" 10739 } 10740 return *r.BlobsURL 10741} 10742 10743// GetBranchesURL returns the BranchesURL field if it's non-nil, zero value otherwise. 10744func (r *Repository) GetBranchesURL() string { 10745 if r == nil || r.BranchesURL == nil { 10746 return "" 10747 } 10748 return *r.BranchesURL 10749} 10750 10751// GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 10752func (r *Repository) GetCloneURL() string { 10753 if r == nil || r.CloneURL == nil { 10754 return "" 10755 } 10756 return *r.CloneURL 10757} 10758 10759// GetCodeOfConduct returns the CodeOfConduct field. 10760func (r *Repository) GetCodeOfConduct() *CodeOfConduct { 10761 if r == nil { 10762 return nil 10763 } 10764 return r.CodeOfConduct 10765} 10766 10767// GetCollaboratorsURL returns the CollaboratorsURL field if it's non-nil, zero value otherwise. 10768func (r *Repository) GetCollaboratorsURL() string { 10769 if r == nil || r.CollaboratorsURL == nil { 10770 return "" 10771 } 10772 return *r.CollaboratorsURL 10773} 10774 10775// GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 10776func (r *Repository) GetCommentsURL() string { 10777 if r == nil || r.CommentsURL == nil { 10778 return "" 10779 } 10780 return *r.CommentsURL 10781} 10782 10783// GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. 10784func (r *Repository) GetCommitsURL() string { 10785 if r == nil || r.CommitsURL == nil { 10786 return "" 10787 } 10788 return *r.CommitsURL 10789} 10790 10791// GetCompareURL returns the CompareURL field if it's non-nil, zero value otherwise. 10792func (r *Repository) GetCompareURL() string { 10793 if r == nil || r.CompareURL == nil { 10794 return "" 10795 } 10796 return *r.CompareURL 10797} 10798 10799// GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 10800func (r *Repository) GetContentsURL() string { 10801 if r == nil || r.ContentsURL == nil { 10802 return "" 10803 } 10804 return *r.ContentsURL 10805} 10806 10807// GetContributorsURL returns the ContributorsURL field if it's non-nil, zero value otherwise. 10808func (r *Repository) GetContributorsURL() string { 10809 if r == nil || r.ContributorsURL == nil { 10810 return "" 10811 } 10812 return *r.ContributorsURL 10813} 10814 10815// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10816func (r *Repository) GetCreatedAt() Timestamp { 10817 if r == nil || r.CreatedAt == nil { 10818 return Timestamp{} 10819 } 10820 return *r.CreatedAt 10821} 10822 10823// GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 10824func (r *Repository) GetDefaultBranch() string { 10825 if r == nil || r.DefaultBranch == nil { 10826 return "" 10827 } 10828 return *r.DefaultBranch 10829} 10830 10831// GetDeleteBranchOnMerge returns the DeleteBranchOnMerge field if it's non-nil, zero value otherwise. 10832func (r *Repository) GetDeleteBranchOnMerge() bool { 10833 if r == nil || r.DeleteBranchOnMerge == nil { 10834 return false 10835 } 10836 return *r.DeleteBranchOnMerge 10837} 10838 10839// GetDeploymentsURL returns the DeploymentsURL field if it's non-nil, zero value otherwise. 10840func (r *Repository) GetDeploymentsURL() string { 10841 if r == nil || r.DeploymentsURL == nil { 10842 return "" 10843 } 10844 return *r.DeploymentsURL 10845} 10846 10847// GetDescription returns the Description field if it's non-nil, zero value otherwise. 10848func (r *Repository) GetDescription() string { 10849 if r == nil || r.Description == nil { 10850 return "" 10851 } 10852 return *r.Description 10853} 10854 10855// GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. 10856func (r *Repository) GetDisabled() bool { 10857 if r == nil || r.Disabled == nil { 10858 return false 10859 } 10860 return *r.Disabled 10861} 10862 10863// GetDownloadsURL returns the DownloadsURL field if it's non-nil, zero value otherwise. 10864func (r *Repository) GetDownloadsURL() string { 10865 if r == nil || r.DownloadsURL == nil { 10866 return "" 10867 } 10868 return *r.DownloadsURL 10869} 10870 10871// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 10872func (r *Repository) GetEventsURL() string { 10873 if r == nil || r.EventsURL == nil { 10874 return "" 10875 } 10876 return *r.EventsURL 10877} 10878 10879// GetFork returns the Fork field if it's non-nil, zero value otherwise. 10880func (r *Repository) GetFork() bool { 10881 if r == nil || r.Fork == nil { 10882 return false 10883 } 10884 return *r.Fork 10885} 10886 10887// GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 10888func (r *Repository) GetForksCount() int { 10889 if r == nil || r.ForksCount == nil { 10890 return 0 10891 } 10892 return *r.ForksCount 10893} 10894 10895// GetForksURL returns the ForksURL field if it's non-nil, zero value otherwise. 10896func (r *Repository) GetForksURL() string { 10897 if r == nil || r.ForksURL == nil { 10898 return "" 10899 } 10900 return *r.ForksURL 10901} 10902 10903// GetFullName returns the FullName field if it's non-nil, zero value otherwise. 10904func (r *Repository) GetFullName() string { 10905 if r == nil || r.FullName == nil { 10906 return "" 10907 } 10908 return *r.FullName 10909} 10910 10911// GetGitCommitsURL returns the GitCommitsURL field if it's non-nil, zero value otherwise. 10912func (r *Repository) GetGitCommitsURL() string { 10913 if r == nil || r.GitCommitsURL == nil { 10914 return "" 10915 } 10916 return *r.GitCommitsURL 10917} 10918 10919// GetGitignoreTemplate returns the GitignoreTemplate field if it's non-nil, zero value otherwise. 10920func (r *Repository) GetGitignoreTemplate() string { 10921 if r == nil || r.GitignoreTemplate == nil { 10922 return "" 10923 } 10924 return *r.GitignoreTemplate 10925} 10926 10927// GetGitRefsURL returns the GitRefsURL field if it's non-nil, zero value otherwise. 10928func (r *Repository) GetGitRefsURL() string { 10929 if r == nil || r.GitRefsURL == nil { 10930 return "" 10931 } 10932 return *r.GitRefsURL 10933} 10934 10935// GetGitTagsURL returns the GitTagsURL field if it's non-nil, zero value otherwise. 10936func (r *Repository) GetGitTagsURL() string { 10937 if r == nil || r.GitTagsURL == nil { 10938 return "" 10939 } 10940 return *r.GitTagsURL 10941} 10942 10943// GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 10944func (r *Repository) GetGitURL() string { 10945 if r == nil || r.GitURL == nil { 10946 return "" 10947 } 10948 return *r.GitURL 10949} 10950 10951// GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 10952func (r *Repository) GetHasDownloads() bool { 10953 if r == nil || r.HasDownloads == nil { 10954 return false 10955 } 10956 return *r.HasDownloads 10957} 10958 10959// GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 10960func (r *Repository) GetHasIssues() bool { 10961 if r == nil || r.HasIssues == nil { 10962 return false 10963 } 10964 return *r.HasIssues 10965} 10966 10967// GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 10968func (r *Repository) GetHasPages() bool { 10969 if r == nil || r.HasPages == nil { 10970 return false 10971 } 10972 return *r.HasPages 10973} 10974 10975// GetHasProjects returns the HasProjects field if it's non-nil, zero value otherwise. 10976func (r *Repository) GetHasProjects() bool { 10977 if r == nil || r.HasProjects == nil { 10978 return false 10979 } 10980 return *r.HasProjects 10981} 10982 10983// GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 10984func (r *Repository) GetHasWiki() bool { 10985 if r == nil || r.HasWiki == nil { 10986 return false 10987 } 10988 return *r.HasWiki 10989} 10990 10991// GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 10992func (r *Repository) GetHomepage() string { 10993 if r == nil || r.Homepage == nil { 10994 return "" 10995 } 10996 return *r.Homepage 10997} 10998 10999// GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 11000func (r *Repository) GetHooksURL() string { 11001 if r == nil || r.HooksURL == nil { 11002 return "" 11003 } 11004 return *r.HooksURL 11005} 11006 11007// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11008func (r *Repository) GetHTMLURL() string { 11009 if r == nil || r.HTMLURL == nil { 11010 return "" 11011 } 11012 return *r.HTMLURL 11013} 11014 11015// GetID returns the ID field if it's non-nil, zero value otherwise. 11016func (r *Repository) GetID() int64 { 11017 if r == nil || r.ID == nil { 11018 return 0 11019 } 11020 return *r.ID 11021} 11022 11023// GetIssueCommentURL returns the IssueCommentURL field if it's non-nil, zero value otherwise. 11024func (r *Repository) GetIssueCommentURL() string { 11025 if r == nil || r.IssueCommentURL == nil { 11026 return "" 11027 } 11028 return *r.IssueCommentURL 11029} 11030 11031// GetIssueEventsURL returns the IssueEventsURL field if it's non-nil, zero value otherwise. 11032func (r *Repository) GetIssueEventsURL() string { 11033 if r == nil || r.IssueEventsURL == nil { 11034 return "" 11035 } 11036 return *r.IssueEventsURL 11037} 11038 11039// GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 11040func (r *Repository) GetIssuesURL() string { 11041 if r == nil || r.IssuesURL == nil { 11042 return "" 11043 } 11044 return *r.IssuesURL 11045} 11046 11047// GetIsTemplate returns the IsTemplate field if it's non-nil, zero value otherwise. 11048func (r *Repository) GetIsTemplate() bool { 11049 if r == nil || r.IsTemplate == nil { 11050 return false 11051 } 11052 return *r.IsTemplate 11053} 11054 11055// GetKeysURL returns the KeysURL field if it's non-nil, zero value otherwise. 11056func (r *Repository) GetKeysURL() string { 11057 if r == nil || r.KeysURL == nil { 11058 return "" 11059 } 11060 return *r.KeysURL 11061} 11062 11063// GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 11064func (r *Repository) GetLabelsURL() string { 11065 if r == nil || r.LabelsURL == nil { 11066 return "" 11067 } 11068 return *r.LabelsURL 11069} 11070 11071// GetLanguage returns the Language field if it's non-nil, zero value otherwise. 11072func (r *Repository) GetLanguage() string { 11073 if r == nil || r.Language == nil { 11074 return "" 11075 } 11076 return *r.Language 11077} 11078 11079// GetLanguagesURL returns the LanguagesURL field if it's non-nil, zero value otherwise. 11080func (r *Repository) GetLanguagesURL() string { 11081 if r == nil || r.LanguagesURL == nil { 11082 return "" 11083 } 11084 return *r.LanguagesURL 11085} 11086 11087// GetLicense returns the License field. 11088func (r *Repository) GetLicense() *License { 11089 if r == nil { 11090 return nil 11091 } 11092 return r.License 11093} 11094 11095// GetLicenseTemplate returns the LicenseTemplate field if it's non-nil, zero value otherwise. 11096func (r *Repository) GetLicenseTemplate() string { 11097 if r == nil || r.LicenseTemplate == nil { 11098 return "" 11099 } 11100 return *r.LicenseTemplate 11101} 11102 11103// GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 11104func (r *Repository) GetMasterBranch() string { 11105 if r == nil || r.MasterBranch == nil { 11106 return "" 11107 } 11108 return *r.MasterBranch 11109} 11110 11111// GetMergesURL returns the MergesURL field if it's non-nil, zero value otherwise. 11112func (r *Repository) GetMergesURL() string { 11113 if r == nil || r.MergesURL == nil { 11114 return "" 11115 } 11116 return *r.MergesURL 11117} 11118 11119// GetMilestonesURL returns the MilestonesURL field if it's non-nil, zero value otherwise. 11120func (r *Repository) GetMilestonesURL() string { 11121 if r == nil || r.MilestonesURL == nil { 11122 return "" 11123 } 11124 return *r.MilestonesURL 11125} 11126 11127// GetMirrorURL returns the MirrorURL field if it's non-nil, zero value otherwise. 11128func (r *Repository) GetMirrorURL() string { 11129 if r == nil || r.MirrorURL == nil { 11130 return "" 11131 } 11132 return *r.MirrorURL 11133} 11134 11135// GetName returns the Name field if it's non-nil, zero value otherwise. 11136func (r *Repository) GetName() string { 11137 if r == nil || r.Name == nil { 11138 return "" 11139 } 11140 return *r.Name 11141} 11142 11143// GetNetworkCount returns the NetworkCount field if it's non-nil, zero value otherwise. 11144func (r *Repository) GetNetworkCount() int { 11145 if r == nil || r.NetworkCount == nil { 11146 return 0 11147 } 11148 return *r.NetworkCount 11149} 11150 11151// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11152func (r *Repository) GetNodeID() string { 11153 if r == nil || r.NodeID == nil { 11154 return "" 11155 } 11156 return *r.NodeID 11157} 11158 11159// GetNotificationsURL returns the NotificationsURL field if it's non-nil, zero value otherwise. 11160func (r *Repository) GetNotificationsURL() string { 11161 if r == nil || r.NotificationsURL == nil { 11162 return "" 11163 } 11164 return *r.NotificationsURL 11165} 11166 11167// GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 11168func (r *Repository) GetOpenIssuesCount() int { 11169 if r == nil || r.OpenIssuesCount == nil { 11170 return 0 11171 } 11172 return *r.OpenIssuesCount 11173} 11174 11175// GetOrganization returns the Organization field. 11176func (r *Repository) GetOrganization() *Organization { 11177 if r == nil { 11178 return nil 11179 } 11180 return r.Organization 11181} 11182 11183// GetOwner returns the Owner field. 11184func (r *Repository) GetOwner() *User { 11185 if r == nil { 11186 return nil 11187 } 11188 return r.Owner 11189} 11190 11191// GetParent returns the Parent field. 11192func (r *Repository) GetParent() *Repository { 11193 if r == nil { 11194 return nil 11195 } 11196 return r.Parent 11197} 11198 11199// GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 11200func (r *Repository) GetPermissions() map[string]bool { 11201 if r == nil || r.Permissions == nil { 11202 return map[string]bool{} 11203 } 11204 return *r.Permissions 11205} 11206 11207// GetPrivate returns the Private field if it's non-nil, zero value otherwise. 11208func (r *Repository) GetPrivate() bool { 11209 if r == nil || r.Private == nil { 11210 return false 11211 } 11212 return *r.Private 11213} 11214 11215// GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 11216func (r *Repository) GetPullsURL() string { 11217 if r == nil || r.PullsURL == nil { 11218 return "" 11219 } 11220 return *r.PullsURL 11221} 11222 11223// GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 11224func (r *Repository) GetPushedAt() Timestamp { 11225 if r == nil || r.PushedAt == nil { 11226 return Timestamp{} 11227 } 11228 return *r.PushedAt 11229} 11230 11231// GetReleasesURL returns the ReleasesURL field if it's non-nil, zero value otherwise. 11232func (r *Repository) GetReleasesURL() string { 11233 if r == nil || r.ReleasesURL == nil { 11234 return "" 11235 } 11236 return *r.ReleasesURL 11237} 11238 11239// GetSize returns the Size field if it's non-nil, zero value otherwise. 11240func (r *Repository) GetSize() int { 11241 if r == nil || r.Size == nil { 11242 return 0 11243 } 11244 return *r.Size 11245} 11246 11247// GetSource returns the Source field. 11248func (r *Repository) GetSource() *Repository { 11249 if r == nil { 11250 return nil 11251 } 11252 return r.Source 11253} 11254 11255// GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 11256func (r *Repository) GetSSHURL() string { 11257 if r == nil || r.SSHURL == nil { 11258 return "" 11259 } 11260 return *r.SSHURL 11261} 11262 11263// GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 11264func (r *Repository) GetStargazersCount() int { 11265 if r == nil || r.StargazersCount == nil { 11266 return 0 11267 } 11268 return *r.StargazersCount 11269} 11270 11271// GetStargazersURL returns the StargazersURL field if it's non-nil, zero value otherwise. 11272func (r *Repository) GetStargazersURL() string { 11273 if r == nil || r.StargazersURL == nil { 11274 return "" 11275 } 11276 return *r.StargazersURL 11277} 11278 11279// GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 11280func (r *Repository) GetStatusesURL() string { 11281 if r == nil || r.StatusesURL == nil { 11282 return "" 11283 } 11284 return *r.StatusesURL 11285} 11286 11287// GetSubscribersCount returns the SubscribersCount field if it's non-nil, zero value otherwise. 11288func (r *Repository) GetSubscribersCount() int { 11289 if r == nil || r.SubscribersCount == nil { 11290 return 0 11291 } 11292 return *r.SubscribersCount 11293} 11294 11295// GetSubscribersURL returns the SubscribersURL field if it's non-nil, zero value otherwise. 11296func (r *Repository) GetSubscribersURL() string { 11297 if r == nil || r.SubscribersURL == nil { 11298 return "" 11299 } 11300 return *r.SubscribersURL 11301} 11302 11303// GetSubscriptionURL returns the SubscriptionURL field if it's non-nil, zero value otherwise. 11304func (r *Repository) GetSubscriptionURL() string { 11305 if r == nil || r.SubscriptionURL == nil { 11306 return "" 11307 } 11308 return *r.SubscriptionURL 11309} 11310 11311// GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 11312func (r *Repository) GetSVNURL() string { 11313 if r == nil || r.SVNURL == nil { 11314 return "" 11315 } 11316 return *r.SVNURL 11317} 11318 11319// GetTagsURL returns the TagsURL field if it's non-nil, zero value otherwise. 11320func (r *Repository) GetTagsURL() string { 11321 if r == nil || r.TagsURL == nil { 11322 return "" 11323 } 11324 return *r.TagsURL 11325} 11326 11327// GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. 11328func (r *Repository) GetTeamID() int64 { 11329 if r == nil || r.TeamID == nil { 11330 return 0 11331 } 11332 return *r.TeamID 11333} 11334 11335// GetTeamsURL returns the TeamsURL field if it's non-nil, zero value otherwise. 11336func (r *Repository) GetTeamsURL() string { 11337 if r == nil || r.TeamsURL == nil { 11338 return "" 11339 } 11340 return *r.TeamsURL 11341} 11342 11343// GetTemplateRepository returns the TemplateRepository field. 11344func (r *Repository) GetTemplateRepository() *Repository { 11345 if r == nil { 11346 return nil 11347 } 11348 return r.TemplateRepository 11349} 11350 11351// GetTreesURL returns the TreesURL field if it's non-nil, zero value otherwise. 11352func (r *Repository) GetTreesURL() string { 11353 if r == nil || r.TreesURL == nil { 11354 return "" 11355 } 11356 return *r.TreesURL 11357} 11358 11359// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11360func (r *Repository) GetUpdatedAt() Timestamp { 11361 if r == nil || r.UpdatedAt == nil { 11362 return Timestamp{} 11363 } 11364 return *r.UpdatedAt 11365} 11366 11367// GetURL returns the URL field if it's non-nil, zero value otherwise. 11368func (r *Repository) GetURL() string { 11369 if r == nil || r.URL == nil { 11370 return "" 11371 } 11372 return *r.URL 11373} 11374 11375// GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 11376func (r *Repository) GetVisibility() string { 11377 if r == nil || r.Visibility == nil { 11378 return "" 11379 } 11380 return *r.Visibility 11381} 11382 11383// GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 11384func (r *Repository) GetWatchersCount() int { 11385 if r == nil || r.WatchersCount == nil { 11386 return 0 11387 } 11388 return *r.WatchersCount 11389} 11390 11391// GetBody returns the Body field if it's non-nil, zero value otherwise. 11392func (r *RepositoryComment) GetBody() string { 11393 if r == nil || r.Body == nil { 11394 return "" 11395 } 11396 return *r.Body 11397} 11398 11399// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 11400func (r *RepositoryComment) GetCommitID() string { 11401 if r == nil || r.CommitID == nil { 11402 return "" 11403 } 11404 return *r.CommitID 11405} 11406 11407// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11408func (r *RepositoryComment) GetCreatedAt() time.Time { 11409 if r == nil || r.CreatedAt == nil { 11410 return time.Time{} 11411 } 11412 return *r.CreatedAt 11413} 11414 11415// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11416func (r *RepositoryComment) GetHTMLURL() string { 11417 if r == nil || r.HTMLURL == nil { 11418 return "" 11419 } 11420 return *r.HTMLURL 11421} 11422 11423// GetID returns the ID field if it's non-nil, zero value otherwise. 11424func (r *RepositoryComment) GetID() int64 { 11425 if r == nil || r.ID == nil { 11426 return 0 11427 } 11428 return *r.ID 11429} 11430 11431// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11432func (r *RepositoryComment) GetNodeID() string { 11433 if r == nil || r.NodeID == nil { 11434 return "" 11435 } 11436 return *r.NodeID 11437} 11438 11439// GetPath returns the Path field if it's non-nil, zero value otherwise. 11440func (r *RepositoryComment) GetPath() string { 11441 if r == nil || r.Path == nil { 11442 return "" 11443 } 11444 return *r.Path 11445} 11446 11447// GetPosition returns the Position field if it's non-nil, zero value otherwise. 11448func (r *RepositoryComment) GetPosition() int { 11449 if r == nil || r.Position == nil { 11450 return 0 11451 } 11452 return *r.Position 11453} 11454 11455// GetReactions returns the Reactions field. 11456func (r *RepositoryComment) GetReactions() *Reactions { 11457 if r == nil { 11458 return nil 11459 } 11460 return r.Reactions 11461} 11462 11463// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11464func (r *RepositoryComment) GetUpdatedAt() time.Time { 11465 if r == nil || r.UpdatedAt == nil { 11466 return time.Time{} 11467 } 11468 return *r.UpdatedAt 11469} 11470 11471// GetURL returns the URL field if it's non-nil, zero value otherwise. 11472func (r *RepositoryComment) GetURL() string { 11473 if r == nil || r.URL == nil { 11474 return "" 11475 } 11476 return *r.URL 11477} 11478 11479// GetUser returns the User field. 11480func (r *RepositoryComment) GetUser() *User { 11481 if r == nil { 11482 return nil 11483 } 11484 return r.User 11485} 11486 11487// GetAuthor returns the Author field. 11488func (r *RepositoryCommit) GetAuthor() *User { 11489 if r == nil { 11490 return nil 11491 } 11492 return r.Author 11493} 11494 11495// GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 11496func (r *RepositoryCommit) GetCommentsURL() string { 11497 if r == nil || r.CommentsURL == nil { 11498 return "" 11499 } 11500 return *r.CommentsURL 11501} 11502 11503// GetCommit returns the Commit field. 11504func (r *RepositoryCommit) GetCommit() *Commit { 11505 if r == nil { 11506 return nil 11507 } 11508 return r.Commit 11509} 11510 11511// GetCommitter returns the Committer field. 11512func (r *RepositoryCommit) GetCommitter() *User { 11513 if r == nil { 11514 return nil 11515 } 11516 return r.Committer 11517} 11518 11519// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11520func (r *RepositoryCommit) GetHTMLURL() string { 11521 if r == nil || r.HTMLURL == nil { 11522 return "" 11523 } 11524 return *r.HTMLURL 11525} 11526 11527// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11528func (r *RepositoryCommit) GetNodeID() string { 11529 if r == nil || r.NodeID == nil { 11530 return "" 11531 } 11532 return *r.NodeID 11533} 11534 11535// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 11536func (r *RepositoryCommit) GetSHA() string { 11537 if r == nil || r.SHA == nil { 11538 return "" 11539 } 11540 return *r.SHA 11541} 11542 11543// GetStats returns the Stats field. 11544func (r *RepositoryCommit) GetStats() *CommitStats { 11545 if r == nil { 11546 return nil 11547 } 11548 return r.Stats 11549} 11550 11551// GetURL returns the URL field if it's non-nil, zero value otherwise. 11552func (r *RepositoryCommit) GetURL() string { 11553 if r == nil || r.URL == nil { 11554 return "" 11555 } 11556 return *r.URL 11557} 11558 11559// GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 11560func (r *RepositoryContent) GetDownloadURL() string { 11561 if r == nil || r.DownloadURL == nil { 11562 return "" 11563 } 11564 return *r.DownloadURL 11565} 11566 11567// GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 11568func (r *RepositoryContent) GetEncoding() string { 11569 if r == nil || r.Encoding == nil { 11570 return "" 11571 } 11572 return *r.Encoding 11573} 11574 11575// GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 11576func (r *RepositoryContent) GetGitURL() string { 11577 if r == nil || r.GitURL == nil { 11578 return "" 11579 } 11580 return *r.GitURL 11581} 11582 11583// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11584func (r *RepositoryContent) GetHTMLURL() string { 11585 if r == nil || r.HTMLURL == nil { 11586 return "" 11587 } 11588 return *r.HTMLURL 11589} 11590 11591// GetName returns the Name field if it's non-nil, zero value otherwise. 11592func (r *RepositoryContent) GetName() string { 11593 if r == nil || r.Name == nil { 11594 return "" 11595 } 11596 return *r.Name 11597} 11598 11599// GetPath returns the Path field if it's non-nil, zero value otherwise. 11600func (r *RepositoryContent) GetPath() string { 11601 if r == nil || r.Path == nil { 11602 return "" 11603 } 11604 return *r.Path 11605} 11606 11607// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 11608func (r *RepositoryContent) GetSHA() string { 11609 if r == nil || r.SHA == nil { 11610 return "" 11611 } 11612 return *r.SHA 11613} 11614 11615// GetSize returns the Size field if it's non-nil, zero value otherwise. 11616func (r *RepositoryContent) GetSize() int { 11617 if r == nil || r.Size == nil { 11618 return 0 11619 } 11620 return *r.Size 11621} 11622 11623// GetTarget returns the Target field if it's non-nil, zero value otherwise. 11624func (r *RepositoryContent) GetTarget() string { 11625 if r == nil || r.Target == nil { 11626 return "" 11627 } 11628 return *r.Target 11629} 11630 11631// GetType returns the Type field if it's non-nil, zero value otherwise. 11632func (r *RepositoryContent) GetType() string { 11633 if r == nil || r.Type == nil { 11634 return "" 11635 } 11636 return *r.Type 11637} 11638 11639// GetURL returns the URL field if it's non-nil, zero value otherwise. 11640func (r *RepositoryContent) GetURL() string { 11641 if r == nil || r.URL == nil { 11642 return "" 11643 } 11644 return *r.URL 11645} 11646 11647// GetAuthor returns the Author field. 11648func (r *RepositoryContentFileOptions) GetAuthor() *CommitAuthor { 11649 if r == nil { 11650 return nil 11651 } 11652 return r.Author 11653} 11654 11655// GetBranch returns the Branch field if it's non-nil, zero value otherwise. 11656func (r *RepositoryContentFileOptions) GetBranch() string { 11657 if r == nil || r.Branch == nil { 11658 return "" 11659 } 11660 return *r.Branch 11661} 11662 11663// GetCommitter returns the Committer field. 11664func (r *RepositoryContentFileOptions) GetCommitter() *CommitAuthor { 11665 if r == nil { 11666 return nil 11667 } 11668 return r.Committer 11669} 11670 11671// GetMessage returns the Message field if it's non-nil, zero value otherwise. 11672func (r *RepositoryContentFileOptions) GetMessage() string { 11673 if r == nil || r.Message == nil { 11674 return "" 11675 } 11676 return *r.Message 11677} 11678 11679// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 11680func (r *RepositoryContentFileOptions) GetSHA() string { 11681 if r == nil || r.SHA == nil { 11682 return "" 11683 } 11684 return *r.SHA 11685} 11686 11687// GetContent returns the Content field. 11688func (r *RepositoryContentResponse) GetContent() *RepositoryContent { 11689 if r == nil { 11690 return nil 11691 } 11692 return r.Content 11693} 11694 11695// GetAction returns the Action field if it's non-nil, zero value otherwise. 11696func (r *RepositoryDispatchEvent) GetAction() string { 11697 if r == nil || r.Action == nil { 11698 return "" 11699 } 11700 return *r.Action 11701} 11702 11703// GetBranch returns the Branch field if it's non-nil, zero value otherwise. 11704func (r *RepositoryDispatchEvent) GetBranch() string { 11705 if r == nil || r.Branch == nil { 11706 return "" 11707 } 11708 return *r.Branch 11709} 11710 11711// GetInstallation returns the Installation field. 11712func (r *RepositoryDispatchEvent) GetInstallation() *Installation { 11713 if r == nil { 11714 return nil 11715 } 11716 return r.Installation 11717} 11718 11719// GetOrg returns the Org field. 11720func (r *RepositoryDispatchEvent) GetOrg() *Organization { 11721 if r == nil { 11722 return nil 11723 } 11724 return r.Org 11725} 11726 11727// GetRepo returns the Repo field. 11728func (r *RepositoryDispatchEvent) GetRepo() *Repository { 11729 if r == nil { 11730 return nil 11731 } 11732 return r.Repo 11733} 11734 11735// GetSender returns the Sender field. 11736func (r *RepositoryDispatchEvent) GetSender() *User { 11737 if r == nil { 11738 return nil 11739 } 11740 return r.Sender 11741} 11742 11743// GetAction returns the Action field if it's non-nil, zero value otherwise. 11744func (r *RepositoryEvent) GetAction() string { 11745 if r == nil || r.Action == nil { 11746 return "" 11747 } 11748 return *r.Action 11749} 11750 11751// GetInstallation returns the Installation field. 11752func (r *RepositoryEvent) GetInstallation() *Installation { 11753 if r == nil { 11754 return nil 11755 } 11756 return r.Installation 11757} 11758 11759// GetOrg returns the Org field. 11760func (r *RepositoryEvent) GetOrg() *Organization { 11761 if r == nil { 11762 return nil 11763 } 11764 return r.Org 11765} 11766 11767// GetRepo returns the Repo field. 11768func (r *RepositoryEvent) GetRepo() *Repository { 11769 if r == nil { 11770 return nil 11771 } 11772 return r.Repo 11773} 11774 11775// GetSender returns the Sender field. 11776func (r *RepositoryEvent) GetSender() *User { 11777 if r == nil { 11778 return nil 11779 } 11780 return r.Sender 11781} 11782 11783// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11784func (r *RepositoryInvitation) GetCreatedAt() Timestamp { 11785 if r == nil || r.CreatedAt == nil { 11786 return Timestamp{} 11787 } 11788 return *r.CreatedAt 11789} 11790 11791// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11792func (r *RepositoryInvitation) GetHTMLURL() string { 11793 if r == nil || r.HTMLURL == nil { 11794 return "" 11795 } 11796 return *r.HTMLURL 11797} 11798 11799// GetID returns the ID field if it's non-nil, zero value otherwise. 11800func (r *RepositoryInvitation) GetID() int64 { 11801 if r == nil || r.ID == nil { 11802 return 0 11803 } 11804 return *r.ID 11805} 11806 11807// GetInvitee returns the Invitee field. 11808func (r *RepositoryInvitation) GetInvitee() *User { 11809 if r == nil { 11810 return nil 11811 } 11812 return r.Invitee 11813} 11814 11815// GetInviter returns the Inviter field. 11816func (r *RepositoryInvitation) GetInviter() *User { 11817 if r == nil { 11818 return nil 11819 } 11820 return r.Inviter 11821} 11822 11823// GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 11824func (r *RepositoryInvitation) GetPermissions() string { 11825 if r == nil || r.Permissions == nil { 11826 return "" 11827 } 11828 return *r.Permissions 11829} 11830 11831// GetRepo returns the Repo field. 11832func (r *RepositoryInvitation) GetRepo() *Repository { 11833 if r == nil { 11834 return nil 11835 } 11836 return r.Repo 11837} 11838 11839// GetURL returns the URL field if it's non-nil, zero value otherwise. 11840func (r *RepositoryInvitation) GetURL() string { 11841 if r == nil || r.URL == nil { 11842 return "" 11843 } 11844 return *r.URL 11845} 11846 11847// GetContent returns the Content field if it's non-nil, zero value otherwise. 11848func (r *RepositoryLicense) GetContent() string { 11849 if r == nil || r.Content == nil { 11850 return "" 11851 } 11852 return *r.Content 11853} 11854 11855// GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 11856func (r *RepositoryLicense) GetDownloadURL() string { 11857 if r == nil || r.DownloadURL == nil { 11858 return "" 11859 } 11860 return *r.DownloadURL 11861} 11862 11863// GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 11864func (r *RepositoryLicense) GetEncoding() string { 11865 if r == nil || r.Encoding == nil { 11866 return "" 11867 } 11868 return *r.Encoding 11869} 11870 11871// GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 11872func (r *RepositoryLicense) GetGitURL() string { 11873 if r == nil || r.GitURL == nil { 11874 return "" 11875 } 11876 return *r.GitURL 11877} 11878 11879// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11880func (r *RepositoryLicense) GetHTMLURL() string { 11881 if r == nil || r.HTMLURL == nil { 11882 return "" 11883 } 11884 return *r.HTMLURL 11885} 11886 11887// GetLicense returns the License field. 11888func (r *RepositoryLicense) GetLicense() *License { 11889 if r == nil { 11890 return nil 11891 } 11892 return r.License 11893} 11894 11895// GetName returns the Name field if it's non-nil, zero value otherwise. 11896func (r *RepositoryLicense) GetName() string { 11897 if r == nil || r.Name == nil { 11898 return "" 11899 } 11900 return *r.Name 11901} 11902 11903// GetPath returns the Path field if it's non-nil, zero value otherwise. 11904func (r *RepositoryLicense) GetPath() string { 11905 if r == nil || r.Path == nil { 11906 return "" 11907 } 11908 return *r.Path 11909} 11910 11911// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 11912func (r *RepositoryLicense) GetSHA() string { 11913 if r == nil || r.SHA == nil { 11914 return "" 11915 } 11916 return *r.SHA 11917} 11918 11919// GetSize returns the Size field if it's non-nil, zero value otherwise. 11920func (r *RepositoryLicense) GetSize() int { 11921 if r == nil || r.Size == nil { 11922 return 0 11923 } 11924 return *r.Size 11925} 11926 11927// GetType returns the Type field if it's non-nil, zero value otherwise. 11928func (r *RepositoryLicense) GetType() string { 11929 if r == nil || r.Type == nil { 11930 return "" 11931 } 11932 return *r.Type 11933} 11934 11935// GetURL returns the URL field if it's non-nil, zero value otherwise. 11936func (r *RepositoryLicense) GetURL() string { 11937 if r == nil || r.URL == nil { 11938 return "" 11939 } 11940 return *r.URL 11941} 11942 11943// GetBase returns the Base field if it's non-nil, zero value otherwise. 11944func (r *RepositoryMergeRequest) GetBase() string { 11945 if r == nil || r.Base == nil { 11946 return "" 11947 } 11948 return *r.Base 11949} 11950 11951// GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. 11952func (r *RepositoryMergeRequest) GetCommitMessage() string { 11953 if r == nil || r.CommitMessage == nil { 11954 return "" 11955 } 11956 return *r.CommitMessage 11957} 11958 11959// GetHead returns the Head field if it's non-nil, zero value otherwise. 11960func (r *RepositoryMergeRequest) GetHead() string { 11961 if r == nil || r.Head == nil { 11962 return "" 11963 } 11964 return *r.Head 11965} 11966 11967// GetPermission returns the Permission field if it's non-nil, zero value otherwise. 11968func (r *RepositoryPermissionLevel) GetPermission() string { 11969 if r == nil || r.Permission == nil { 11970 return "" 11971 } 11972 return *r.Permission 11973} 11974 11975// GetUser returns the User field. 11976func (r *RepositoryPermissionLevel) GetUser() *User { 11977 if r == nil { 11978 return nil 11979 } 11980 return r.User 11981} 11982 11983// GetAssetsURL returns the AssetsURL field if it's non-nil, zero value otherwise. 11984func (r *RepositoryRelease) GetAssetsURL() string { 11985 if r == nil || r.AssetsURL == nil { 11986 return "" 11987 } 11988 return *r.AssetsURL 11989} 11990 11991// GetAuthor returns the Author field. 11992func (r *RepositoryRelease) GetAuthor() *User { 11993 if r == nil { 11994 return nil 11995 } 11996 return r.Author 11997} 11998 11999// GetBody returns the Body field if it's non-nil, zero value otherwise. 12000func (r *RepositoryRelease) GetBody() string { 12001 if r == nil || r.Body == nil { 12002 return "" 12003 } 12004 return *r.Body 12005} 12006 12007// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12008func (r *RepositoryRelease) GetCreatedAt() Timestamp { 12009 if r == nil || r.CreatedAt == nil { 12010 return Timestamp{} 12011 } 12012 return *r.CreatedAt 12013} 12014 12015// GetDraft returns the Draft field if it's non-nil, zero value otherwise. 12016func (r *RepositoryRelease) GetDraft() bool { 12017 if r == nil || r.Draft == nil { 12018 return false 12019 } 12020 return *r.Draft 12021} 12022 12023// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 12024func (r *RepositoryRelease) GetHTMLURL() string { 12025 if r == nil || r.HTMLURL == nil { 12026 return "" 12027 } 12028 return *r.HTMLURL 12029} 12030 12031// GetID returns the ID field if it's non-nil, zero value otherwise. 12032func (r *RepositoryRelease) GetID() int64 { 12033 if r == nil || r.ID == nil { 12034 return 0 12035 } 12036 return *r.ID 12037} 12038 12039// GetName returns the Name field if it's non-nil, zero value otherwise. 12040func (r *RepositoryRelease) GetName() string { 12041 if r == nil || r.Name == nil { 12042 return "" 12043 } 12044 return *r.Name 12045} 12046 12047// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12048func (r *RepositoryRelease) GetNodeID() string { 12049 if r == nil || r.NodeID == nil { 12050 return "" 12051 } 12052 return *r.NodeID 12053} 12054 12055// GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 12056func (r *RepositoryRelease) GetPrerelease() bool { 12057 if r == nil || r.Prerelease == nil { 12058 return false 12059 } 12060 return *r.Prerelease 12061} 12062 12063// GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 12064func (r *RepositoryRelease) GetPublishedAt() Timestamp { 12065 if r == nil || r.PublishedAt == nil { 12066 return Timestamp{} 12067 } 12068 return *r.PublishedAt 12069} 12070 12071// GetTagName returns the TagName field if it's non-nil, zero value otherwise. 12072func (r *RepositoryRelease) GetTagName() string { 12073 if r == nil || r.TagName == nil { 12074 return "" 12075 } 12076 return *r.TagName 12077} 12078 12079// GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 12080func (r *RepositoryRelease) GetTarballURL() string { 12081 if r == nil || r.TarballURL == nil { 12082 return "" 12083 } 12084 return *r.TarballURL 12085} 12086 12087// GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 12088func (r *RepositoryRelease) GetTargetCommitish() string { 12089 if r == nil || r.TargetCommitish == nil { 12090 return "" 12091 } 12092 return *r.TargetCommitish 12093} 12094 12095// GetUploadURL returns the UploadURL field if it's non-nil, zero value otherwise. 12096func (r *RepositoryRelease) GetUploadURL() string { 12097 if r == nil || r.UploadURL == nil { 12098 return "" 12099 } 12100 return *r.UploadURL 12101} 12102 12103// GetURL returns the URL field if it's non-nil, zero value otherwise. 12104func (r *RepositoryRelease) GetURL() string { 12105 if r == nil || r.URL == nil { 12106 return "" 12107 } 12108 return *r.URL 12109} 12110 12111// GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 12112func (r *RepositoryRelease) GetZipballURL() string { 12113 if r == nil || r.ZipballURL == nil { 12114 return "" 12115 } 12116 return *r.ZipballURL 12117} 12118 12119// GetCommit returns the Commit field. 12120func (r *RepositoryTag) GetCommit() *Commit { 12121 if r == nil { 12122 return nil 12123 } 12124 return r.Commit 12125} 12126 12127// GetName returns the Name field if it's non-nil, zero value otherwise. 12128func (r *RepositoryTag) GetName() string { 12129 if r == nil || r.Name == nil { 12130 return "" 12131 } 12132 return *r.Name 12133} 12134 12135// GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 12136func (r *RepositoryTag) GetTarballURL() string { 12137 if r == nil || r.TarballURL == nil { 12138 return "" 12139 } 12140 return *r.TarballURL 12141} 12142 12143// GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 12144func (r *RepositoryTag) GetZipballURL() string { 12145 if r == nil || r.ZipballURL == nil { 12146 return "" 12147 } 12148 return *r.ZipballURL 12149} 12150 12151// GetAction returns the Action field if it's non-nil, zero value otherwise. 12152func (r *RepositoryVulnerabilityAlertEvent) GetAction() string { 12153 if r == nil || r.Action == nil { 12154 return "" 12155 } 12156 return *r.Action 12157} 12158 12159// GetRepository returns the Repository field. 12160func (r *RepositoryVulnerabilityAlertEvent) GetRepository() *Repository { 12161 if r == nil { 12162 return nil 12163 } 12164 return r.Repository 12165} 12166 12167// GetForkRepos returns the ForkRepos field if it's non-nil, zero value otherwise. 12168func (r *RepoStats) GetForkRepos() int { 12169 if r == nil || r.ForkRepos == nil { 12170 return 0 12171 } 12172 return *r.ForkRepos 12173} 12174 12175// GetOrgRepos returns the OrgRepos field if it's non-nil, zero value otherwise. 12176func (r *RepoStats) GetOrgRepos() int { 12177 if r == nil || r.OrgRepos == nil { 12178 return 0 12179 } 12180 return *r.OrgRepos 12181} 12182 12183// GetRootRepos returns the RootRepos field if it's non-nil, zero value otherwise. 12184func (r *RepoStats) GetRootRepos() int { 12185 if r == nil || r.RootRepos == nil { 12186 return 0 12187 } 12188 return *r.RootRepos 12189} 12190 12191// GetTotalPushes returns the TotalPushes field if it's non-nil, zero value otherwise. 12192func (r *RepoStats) GetTotalPushes() int { 12193 if r == nil || r.TotalPushes == nil { 12194 return 0 12195 } 12196 return *r.TotalPushes 12197} 12198 12199// GetTotalRepos returns the TotalRepos field if it's non-nil, zero value otherwise. 12200func (r *RepoStats) GetTotalRepos() int { 12201 if r == nil || r.TotalRepos == nil { 12202 return 0 12203 } 12204 return *r.TotalRepos 12205} 12206 12207// GetTotalWikis returns the TotalWikis field if it's non-nil, zero value otherwise. 12208func (r *RepoStats) GetTotalWikis() int { 12209 if r == nil || r.TotalWikis == nil { 12210 return 0 12211 } 12212 return *r.TotalWikis 12213} 12214 12215// GetContext returns the Context field if it's non-nil, zero value otherwise. 12216func (r *RepoStatus) GetContext() string { 12217 if r == nil || r.Context == nil { 12218 return "" 12219 } 12220 return *r.Context 12221} 12222 12223// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12224func (r *RepoStatus) GetCreatedAt() time.Time { 12225 if r == nil || r.CreatedAt == nil { 12226 return time.Time{} 12227 } 12228 return *r.CreatedAt 12229} 12230 12231// GetCreator returns the Creator field. 12232func (r *RepoStatus) GetCreator() *User { 12233 if r == nil { 12234 return nil 12235 } 12236 return r.Creator 12237} 12238 12239// GetDescription returns the Description field if it's non-nil, zero value otherwise. 12240func (r *RepoStatus) GetDescription() string { 12241 if r == nil || r.Description == nil { 12242 return "" 12243 } 12244 return *r.Description 12245} 12246 12247// GetID returns the ID field if it's non-nil, zero value otherwise. 12248func (r *RepoStatus) GetID() int64 { 12249 if r == nil || r.ID == nil { 12250 return 0 12251 } 12252 return *r.ID 12253} 12254 12255// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12256func (r *RepoStatus) GetNodeID() string { 12257 if r == nil || r.NodeID == nil { 12258 return "" 12259 } 12260 return *r.NodeID 12261} 12262 12263// GetState returns the State field if it's non-nil, zero value otherwise. 12264func (r *RepoStatus) GetState() string { 12265 if r == nil || r.State == nil { 12266 return "" 12267 } 12268 return *r.State 12269} 12270 12271// GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 12272func (r *RepoStatus) GetTargetURL() string { 12273 if r == nil || r.TargetURL == nil { 12274 return "" 12275 } 12276 return *r.TargetURL 12277} 12278 12279// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 12280func (r *RepoStatus) GetUpdatedAt() time.Time { 12281 if r == nil || r.UpdatedAt == nil { 12282 return time.Time{} 12283 } 12284 return *r.UpdatedAt 12285} 12286 12287// GetURL returns the URL field if it's non-nil, zero value otherwise. 12288func (r *RepoStatus) GetURL() string { 12289 if r == nil || r.URL == nil { 12290 return "" 12291 } 12292 return *r.URL 12293} 12294 12295// GetStrict returns the Strict field if it's non-nil, zero value otherwise. 12296func (r *RequiredStatusChecksRequest) GetStrict() bool { 12297 if r == nil || r.Strict == nil { 12298 return false 12299 } 12300 return *r.Strict 12301} 12302 12303// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12304func (r *ReviewersRequest) GetNodeID() string { 12305 if r == nil || r.NodeID == nil { 12306 return "" 12307 } 12308 return *r.NodeID 12309} 12310 12311// GetID returns the ID field if it's non-nil, zero value otherwise. 12312func (r *Runner) GetID() int64 { 12313 if r == nil || r.ID == nil { 12314 return 0 12315 } 12316 return *r.ID 12317} 12318 12319// GetName returns the Name field if it's non-nil, zero value otherwise. 12320func (r *Runner) GetName() string { 12321 if r == nil || r.Name == nil { 12322 return "" 12323 } 12324 return *r.Name 12325} 12326 12327// GetOS returns the OS field if it's non-nil, zero value otherwise. 12328func (r *Runner) GetOS() string { 12329 if r == nil || r.OS == nil { 12330 return "" 12331 } 12332 return *r.OS 12333} 12334 12335// GetStatus returns the Status field if it's non-nil, zero value otherwise. 12336func (r *Runner) GetStatus() string { 12337 if r == nil || r.Status == nil { 12338 return "" 12339 } 12340 return *r.Status 12341} 12342 12343// GetArchitecture returns the Architecture field if it's non-nil, zero value otherwise. 12344func (r *RunnerApplicationDownload) GetArchitecture() string { 12345 if r == nil || r.Architecture == nil { 12346 return "" 12347 } 12348 return *r.Architecture 12349} 12350 12351// GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 12352func (r *RunnerApplicationDownload) GetDownloadURL() string { 12353 if r == nil || r.DownloadURL == nil { 12354 return "" 12355 } 12356 return *r.DownloadURL 12357} 12358 12359// GetFilename returns the Filename field if it's non-nil, zero value otherwise. 12360func (r *RunnerApplicationDownload) GetFilename() string { 12361 if r == nil || r.Filename == nil { 12362 return "" 12363 } 12364 return *r.Filename 12365} 12366 12367// GetOS returns the OS field if it's non-nil, zero value otherwise. 12368func (r *RunnerApplicationDownload) GetOS() string { 12369 if r == nil || r.OS == nil { 12370 return "" 12371 } 12372 return *r.OS 12373} 12374 12375// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 12376func (s *SelectedReposList) GetTotalCount() int { 12377 if s == nil || s.TotalCount == nil { 12378 return 0 12379 } 12380 return *s.TotalCount 12381} 12382 12383// GetName returns the Name field if it's non-nil, zero value otherwise. 12384func (s *ServiceHook) GetName() string { 12385 if s == nil || s.Name == nil { 12386 return "" 12387 } 12388 return *s.Name 12389} 12390 12391// GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 12392func (s *SignaturesProtectedBranch) GetEnabled() bool { 12393 if s == nil || s.Enabled == nil { 12394 return false 12395 } 12396 return *s.Enabled 12397} 12398 12399// GetURL returns the URL field if it's non-nil, zero value otherwise. 12400func (s *SignaturesProtectedBranch) GetURL() string { 12401 if s == nil || s.URL == nil { 12402 return "" 12403 } 12404 return *s.URL 12405} 12406 12407// GetPayload returns the Payload field if it's non-nil, zero value otherwise. 12408func (s *SignatureVerification) GetPayload() string { 12409 if s == nil || s.Payload == nil { 12410 return "" 12411 } 12412 return *s.Payload 12413} 12414 12415// GetReason returns the Reason field if it's non-nil, zero value otherwise. 12416func (s *SignatureVerification) GetReason() string { 12417 if s == nil || s.Reason == nil { 12418 return "" 12419 } 12420 return *s.Reason 12421} 12422 12423// GetSignature returns the Signature field if it's non-nil, zero value otherwise. 12424func (s *SignatureVerification) GetSignature() string { 12425 if s == nil || s.Signature == nil { 12426 return "" 12427 } 12428 return *s.Signature 12429} 12430 12431// GetVerified returns the Verified field if it's non-nil, zero value otherwise. 12432func (s *SignatureVerification) GetVerified() bool { 12433 if s == nil || s.Verified == nil { 12434 return false 12435 } 12436 return *s.Verified 12437} 12438 12439// GetActor returns the Actor field. 12440func (s *Source) GetActor() *User { 12441 if s == nil { 12442 return nil 12443 } 12444 return s.Actor 12445} 12446 12447// GetID returns the ID field if it's non-nil, zero value otherwise. 12448func (s *Source) GetID() int64 { 12449 if s == nil || s.ID == nil { 12450 return 0 12451 } 12452 return *s.ID 12453} 12454 12455// GetIssue returns the Issue field. 12456func (s *Source) GetIssue() *Issue { 12457 if s == nil { 12458 return nil 12459 } 12460 return s.Issue 12461} 12462 12463// GetType returns the Type field if it's non-nil, zero value otherwise. 12464func (s *Source) GetType() string { 12465 if s == nil || s.Type == nil { 12466 return "" 12467 } 12468 return *s.Type 12469} 12470 12471// GetURL returns the URL field if it's non-nil, zero value otherwise. 12472func (s *Source) GetURL() string { 12473 if s == nil || s.URL == nil { 12474 return "" 12475 } 12476 return *s.URL 12477} 12478 12479// GetEmail returns the Email field if it's non-nil, zero value otherwise. 12480func (s *SourceImportAuthor) GetEmail() string { 12481 if s == nil || s.Email == nil { 12482 return "" 12483 } 12484 return *s.Email 12485} 12486 12487// GetID returns the ID field if it's non-nil, zero value otherwise. 12488func (s *SourceImportAuthor) GetID() int64 { 12489 if s == nil || s.ID == nil { 12490 return 0 12491 } 12492 return *s.ID 12493} 12494 12495// GetImportURL returns the ImportURL field if it's non-nil, zero value otherwise. 12496func (s *SourceImportAuthor) GetImportURL() string { 12497 if s == nil || s.ImportURL == nil { 12498 return "" 12499 } 12500 return *s.ImportURL 12501} 12502 12503// GetName returns the Name field if it's non-nil, zero value otherwise. 12504func (s *SourceImportAuthor) GetName() string { 12505 if s == nil || s.Name == nil { 12506 return "" 12507 } 12508 return *s.Name 12509} 12510 12511// GetRemoteID returns the RemoteID field if it's non-nil, zero value otherwise. 12512func (s *SourceImportAuthor) GetRemoteID() string { 12513 if s == nil || s.RemoteID == nil { 12514 return "" 12515 } 12516 return *s.RemoteID 12517} 12518 12519// GetRemoteName returns the RemoteName field if it's non-nil, zero value otherwise. 12520func (s *SourceImportAuthor) GetRemoteName() string { 12521 if s == nil || s.RemoteName == nil { 12522 return "" 12523 } 12524 return *s.RemoteName 12525} 12526 12527// GetURL returns the URL field if it's non-nil, zero value otherwise. 12528func (s *SourceImportAuthor) GetURL() string { 12529 if s == nil || s.URL == nil { 12530 return "" 12531 } 12532 return *s.URL 12533} 12534 12535// GetAction returns the Action field if it's non-nil, zero value otherwise. 12536func (s *StarEvent) GetAction() string { 12537 if s == nil || s.Action == nil { 12538 return "" 12539 } 12540 return *s.Action 12541} 12542 12543// GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 12544func (s *StarEvent) GetStarredAt() Timestamp { 12545 if s == nil || s.StarredAt == nil { 12546 return Timestamp{} 12547 } 12548 return *s.StarredAt 12549} 12550 12551// GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 12552func (s *Stargazer) GetStarredAt() Timestamp { 12553 if s == nil || s.StarredAt == nil { 12554 return Timestamp{} 12555 } 12556 return *s.StarredAt 12557} 12558 12559// GetUser returns the User field. 12560func (s *Stargazer) GetUser() *User { 12561 if s == nil { 12562 return nil 12563 } 12564 return s.User 12565} 12566 12567// GetRepository returns the Repository field. 12568func (s *StarredRepository) GetRepository() *Repository { 12569 if s == nil { 12570 return nil 12571 } 12572 return s.Repository 12573} 12574 12575// GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 12576func (s *StarredRepository) GetStarredAt() Timestamp { 12577 if s == nil || s.StarredAt == nil { 12578 return Timestamp{} 12579 } 12580 return *s.StarredAt 12581} 12582 12583// GetCommit returns the Commit field. 12584func (s *StatusEvent) GetCommit() *RepositoryCommit { 12585 if s == nil { 12586 return nil 12587 } 12588 return s.Commit 12589} 12590 12591// GetContext returns the Context field if it's non-nil, zero value otherwise. 12592func (s *StatusEvent) GetContext() string { 12593 if s == nil || s.Context == nil { 12594 return "" 12595 } 12596 return *s.Context 12597} 12598 12599// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12600func (s *StatusEvent) GetCreatedAt() Timestamp { 12601 if s == nil || s.CreatedAt == nil { 12602 return Timestamp{} 12603 } 12604 return *s.CreatedAt 12605} 12606 12607// GetDescription returns the Description field if it's non-nil, zero value otherwise. 12608func (s *StatusEvent) GetDescription() string { 12609 if s == nil || s.Description == nil { 12610 return "" 12611 } 12612 return *s.Description 12613} 12614 12615// GetID returns the ID field if it's non-nil, zero value otherwise. 12616func (s *StatusEvent) GetID() int64 { 12617 if s == nil || s.ID == nil { 12618 return 0 12619 } 12620 return *s.ID 12621} 12622 12623// GetInstallation returns the Installation field. 12624func (s *StatusEvent) GetInstallation() *Installation { 12625 if s == nil { 12626 return nil 12627 } 12628 return s.Installation 12629} 12630 12631// GetName returns the Name field if it's non-nil, zero value otherwise. 12632func (s *StatusEvent) GetName() string { 12633 if s == nil || s.Name == nil { 12634 return "" 12635 } 12636 return *s.Name 12637} 12638 12639// GetRepo returns the Repo field. 12640func (s *StatusEvent) GetRepo() *Repository { 12641 if s == nil { 12642 return nil 12643 } 12644 return s.Repo 12645} 12646 12647// GetSender returns the Sender field. 12648func (s *StatusEvent) GetSender() *User { 12649 if s == nil { 12650 return nil 12651 } 12652 return s.Sender 12653} 12654 12655// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 12656func (s *StatusEvent) GetSHA() string { 12657 if s == nil || s.SHA == nil { 12658 return "" 12659 } 12660 return *s.SHA 12661} 12662 12663// GetState returns the State field if it's non-nil, zero value otherwise. 12664func (s *StatusEvent) GetState() string { 12665 if s == nil || s.State == nil { 12666 return "" 12667 } 12668 return *s.State 12669} 12670 12671// GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 12672func (s *StatusEvent) GetTargetURL() string { 12673 if s == nil || s.TargetURL == nil { 12674 return "" 12675 } 12676 return *s.TargetURL 12677} 12678 12679// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 12680func (s *StatusEvent) GetUpdatedAt() Timestamp { 12681 if s == nil || s.UpdatedAt == nil { 12682 return Timestamp{} 12683 } 12684 return *s.UpdatedAt 12685} 12686 12687// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12688func (s *Subscription) GetCreatedAt() Timestamp { 12689 if s == nil || s.CreatedAt == nil { 12690 return Timestamp{} 12691 } 12692 return *s.CreatedAt 12693} 12694 12695// GetIgnored returns the Ignored field if it's non-nil, zero value otherwise. 12696func (s *Subscription) GetIgnored() bool { 12697 if s == nil || s.Ignored == nil { 12698 return false 12699 } 12700 return *s.Ignored 12701} 12702 12703// GetReason returns the Reason field if it's non-nil, zero value otherwise. 12704func (s *Subscription) GetReason() string { 12705 if s == nil || s.Reason == nil { 12706 return "" 12707 } 12708 return *s.Reason 12709} 12710 12711// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 12712func (s *Subscription) GetRepositoryURL() string { 12713 if s == nil || s.RepositoryURL == nil { 12714 return "" 12715 } 12716 return *s.RepositoryURL 12717} 12718 12719// GetSubscribed returns the Subscribed field if it's non-nil, zero value otherwise. 12720func (s *Subscription) GetSubscribed() bool { 12721 if s == nil || s.Subscribed == nil { 12722 return false 12723 } 12724 return *s.Subscribed 12725} 12726 12727// GetThreadURL returns the ThreadURL field if it's non-nil, zero value otherwise. 12728func (s *Subscription) GetThreadURL() string { 12729 if s == nil || s.ThreadURL == nil { 12730 return "" 12731 } 12732 return *s.ThreadURL 12733} 12734 12735// GetURL returns the URL field if it's non-nil, zero value otherwise. 12736func (s *Subscription) GetURL() string { 12737 if s == nil || s.URL == nil { 12738 return "" 12739 } 12740 return *s.URL 12741} 12742 12743// GetMessage returns the Message field if it's non-nil, zero value otherwise. 12744func (t *Tag) GetMessage() string { 12745 if t == nil || t.Message == nil { 12746 return "" 12747 } 12748 return *t.Message 12749} 12750 12751// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12752func (t *Tag) GetNodeID() string { 12753 if t == nil || t.NodeID == nil { 12754 return "" 12755 } 12756 return *t.NodeID 12757} 12758 12759// GetObject returns the Object field. 12760func (t *Tag) GetObject() *GitObject { 12761 if t == nil { 12762 return nil 12763 } 12764 return t.Object 12765} 12766 12767// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 12768func (t *Tag) GetSHA() string { 12769 if t == nil || t.SHA == nil { 12770 return "" 12771 } 12772 return *t.SHA 12773} 12774 12775// GetTag returns the Tag field if it's non-nil, zero value otherwise. 12776func (t *Tag) GetTag() string { 12777 if t == nil || t.Tag == nil { 12778 return "" 12779 } 12780 return *t.Tag 12781} 12782 12783// GetTagger returns the Tagger field. 12784func (t *Tag) GetTagger() *CommitAuthor { 12785 if t == nil { 12786 return nil 12787 } 12788 return t.Tagger 12789} 12790 12791// GetURL returns the URL field if it's non-nil, zero value otherwise. 12792func (t *Tag) GetURL() string { 12793 if t == nil || t.URL == nil { 12794 return "" 12795 } 12796 return *t.URL 12797} 12798 12799// GetVerification returns the Verification field. 12800func (t *Tag) GetVerification() *SignatureVerification { 12801 if t == nil { 12802 return nil 12803 } 12804 return t.Verification 12805} 12806 12807// GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 12808func (t *TaskStep) GetCompletedAt() Timestamp { 12809 if t == nil || t.CompletedAt == nil { 12810 return Timestamp{} 12811 } 12812 return *t.CompletedAt 12813} 12814 12815// GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 12816func (t *TaskStep) GetConclusion() string { 12817 if t == nil || t.Conclusion == nil { 12818 return "" 12819 } 12820 return *t.Conclusion 12821} 12822 12823// GetName returns the Name field if it's non-nil, zero value otherwise. 12824func (t *TaskStep) GetName() string { 12825 if t == nil || t.Name == nil { 12826 return "" 12827 } 12828 return *t.Name 12829} 12830 12831// GetNumber returns the Number field if it's non-nil, zero value otherwise. 12832func (t *TaskStep) GetNumber() int64 { 12833 if t == nil || t.Number == nil { 12834 return 0 12835 } 12836 return *t.Number 12837} 12838 12839// GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 12840func (t *TaskStep) GetStartedAt() Timestamp { 12841 if t == nil || t.StartedAt == nil { 12842 return Timestamp{} 12843 } 12844 return *t.StartedAt 12845} 12846 12847// GetStatus returns the Status field if it's non-nil, zero value otherwise. 12848func (t *TaskStep) GetStatus() string { 12849 if t == nil || t.Status == nil { 12850 return "" 12851 } 12852 return *t.Status 12853} 12854 12855// GetDescription returns the Description field if it's non-nil, zero value otherwise. 12856func (t *Team) GetDescription() string { 12857 if t == nil || t.Description == nil { 12858 return "" 12859 } 12860 return *t.Description 12861} 12862 12863// GetID returns the ID field if it's non-nil, zero value otherwise. 12864func (t *Team) GetID() int64 { 12865 if t == nil || t.ID == nil { 12866 return 0 12867 } 12868 return *t.ID 12869} 12870 12871// GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 12872func (t *Team) GetLDAPDN() string { 12873 if t == nil || t.LDAPDN == nil { 12874 return "" 12875 } 12876 return *t.LDAPDN 12877} 12878 12879// GetMembersCount returns the MembersCount field if it's non-nil, zero value otherwise. 12880func (t *Team) GetMembersCount() int { 12881 if t == nil || t.MembersCount == nil { 12882 return 0 12883 } 12884 return *t.MembersCount 12885} 12886 12887// GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 12888func (t *Team) GetMembersURL() string { 12889 if t == nil || t.MembersURL == nil { 12890 return "" 12891 } 12892 return *t.MembersURL 12893} 12894 12895// GetName returns the Name field if it's non-nil, zero value otherwise. 12896func (t *Team) GetName() string { 12897 if t == nil || t.Name == nil { 12898 return "" 12899 } 12900 return *t.Name 12901} 12902 12903// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12904func (t *Team) GetNodeID() string { 12905 if t == nil || t.NodeID == nil { 12906 return "" 12907 } 12908 return *t.NodeID 12909} 12910 12911// GetOrganization returns the Organization field. 12912func (t *Team) GetOrganization() *Organization { 12913 if t == nil { 12914 return nil 12915 } 12916 return t.Organization 12917} 12918 12919// GetParent returns the Parent field. 12920func (t *Team) GetParent() *Team { 12921 if t == nil { 12922 return nil 12923 } 12924 return t.Parent 12925} 12926 12927// GetPermission returns the Permission field if it's non-nil, zero value otherwise. 12928func (t *Team) GetPermission() string { 12929 if t == nil || t.Permission == nil { 12930 return "" 12931 } 12932 return *t.Permission 12933} 12934 12935// GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 12936func (t *Team) GetPrivacy() string { 12937 if t == nil || t.Privacy == nil { 12938 return "" 12939 } 12940 return *t.Privacy 12941} 12942 12943// GetReposCount returns the ReposCount field if it's non-nil, zero value otherwise. 12944func (t *Team) GetReposCount() int { 12945 if t == nil || t.ReposCount == nil { 12946 return 0 12947 } 12948 return *t.ReposCount 12949} 12950 12951// GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 12952func (t *Team) GetRepositoriesURL() string { 12953 if t == nil || t.RepositoriesURL == nil { 12954 return "" 12955 } 12956 return *t.RepositoriesURL 12957} 12958 12959// GetSlug returns the Slug field if it's non-nil, zero value otherwise. 12960func (t *Team) GetSlug() string { 12961 if t == nil || t.Slug == nil { 12962 return "" 12963 } 12964 return *t.Slug 12965} 12966 12967// GetURL returns the URL field if it's non-nil, zero value otherwise. 12968func (t *Team) GetURL() string { 12969 if t == nil || t.URL == nil { 12970 return "" 12971 } 12972 return *t.URL 12973} 12974 12975// GetInstallation returns the Installation field. 12976func (t *TeamAddEvent) GetInstallation() *Installation { 12977 if t == nil { 12978 return nil 12979 } 12980 return t.Installation 12981} 12982 12983// GetOrg returns the Org field. 12984func (t *TeamAddEvent) GetOrg() *Organization { 12985 if t == nil { 12986 return nil 12987 } 12988 return t.Org 12989} 12990 12991// GetRepo returns the Repo field. 12992func (t *TeamAddEvent) GetRepo() *Repository { 12993 if t == nil { 12994 return nil 12995 } 12996 return t.Repo 12997} 12998 12999// GetSender returns the Sender field. 13000func (t *TeamAddEvent) GetSender() *User { 13001 if t == nil { 13002 return nil 13003 } 13004 return t.Sender 13005} 13006 13007// GetTeam returns the Team field. 13008func (t *TeamAddEvent) GetTeam() *Team { 13009 if t == nil { 13010 return nil 13011 } 13012 return t.Team 13013} 13014 13015// GetAuthor returns the Author field. 13016func (t *TeamDiscussion) GetAuthor() *User { 13017 if t == nil { 13018 return nil 13019 } 13020 return t.Author 13021} 13022 13023// GetBody returns the Body field if it's non-nil, zero value otherwise. 13024func (t *TeamDiscussion) GetBody() string { 13025 if t == nil || t.Body == nil { 13026 return "" 13027 } 13028 return *t.Body 13029} 13030 13031// GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 13032func (t *TeamDiscussion) GetBodyHTML() string { 13033 if t == nil || t.BodyHTML == nil { 13034 return "" 13035 } 13036 return *t.BodyHTML 13037} 13038 13039// GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. 13040func (t *TeamDiscussion) GetBodyVersion() string { 13041 if t == nil || t.BodyVersion == nil { 13042 return "" 13043 } 13044 return *t.BodyVersion 13045} 13046 13047// GetCommentsCount returns the CommentsCount field if it's non-nil, zero value otherwise. 13048func (t *TeamDiscussion) GetCommentsCount() int { 13049 if t == nil || t.CommentsCount == nil { 13050 return 0 13051 } 13052 return *t.CommentsCount 13053} 13054 13055// GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 13056func (t *TeamDiscussion) GetCommentsURL() string { 13057 if t == nil || t.CommentsURL == nil { 13058 return "" 13059 } 13060 return *t.CommentsURL 13061} 13062 13063// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13064func (t *TeamDiscussion) GetCreatedAt() Timestamp { 13065 if t == nil || t.CreatedAt == nil { 13066 return Timestamp{} 13067 } 13068 return *t.CreatedAt 13069} 13070 13071// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13072func (t *TeamDiscussion) GetHTMLURL() string { 13073 if t == nil || t.HTMLURL == nil { 13074 return "" 13075 } 13076 return *t.HTMLURL 13077} 13078 13079// GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. 13080func (t *TeamDiscussion) GetLastEditedAt() Timestamp { 13081 if t == nil || t.LastEditedAt == nil { 13082 return Timestamp{} 13083 } 13084 return *t.LastEditedAt 13085} 13086 13087// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13088func (t *TeamDiscussion) GetNodeID() string { 13089 if t == nil || t.NodeID == nil { 13090 return "" 13091 } 13092 return *t.NodeID 13093} 13094 13095// GetNumber returns the Number field if it's non-nil, zero value otherwise. 13096func (t *TeamDiscussion) GetNumber() int { 13097 if t == nil || t.Number == nil { 13098 return 0 13099 } 13100 return *t.Number 13101} 13102 13103// GetPinned returns the Pinned field if it's non-nil, zero value otherwise. 13104func (t *TeamDiscussion) GetPinned() bool { 13105 if t == nil || t.Pinned == nil { 13106 return false 13107 } 13108 return *t.Pinned 13109} 13110 13111// GetPrivate returns the Private field if it's non-nil, zero value otherwise. 13112func (t *TeamDiscussion) GetPrivate() bool { 13113 if t == nil || t.Private == nil { 13114 return false 13115 } 13116 return *t.Private 13117} 13118 13119// GetReactions returns the Reactions field. 13120func (t *TeamDiscussion) GetReactions() *Reactions { 13121 if t == nil { 13122 return nil 13123 } 13124 return t.Reactions 13125} 13126 13127// GetTeamURL returns the TeamURL field if it's non-nil, zero value otherwise. 13128func (t *TeamDiscussion) GetTeamURL() string { 13129 if t == nil || t.TeamURL == nil { 13130 return "" 13131 } 13132 return *t.TeamURL 13133} 13134 13135// GetTitle returns the Title field if it's non-nil, zero value otherwise. 13136func (t *TeamDiscussion) GetTitle() string { 13137 if t == nil || t.Title == nil { 13138 return "" 13139 } 13140 return *t.Title 13141} 13142 13143// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13144func (t *TeamDiscussion) GetUpdatedAt() Timestamp { 13145 if t == nil || t.UpdatedAt == nil { 13146 return Timestamp{} 13147 } 13148 return *t.UpdatedAt 13149} 13150 13151// GetURL returns the URL field if it's non-nil, zero value otherwise. 13152func (t *TeamDiscussion) GetURL() string { 13153 if t == nil || t.URL == nil { 13154 return "" 13155 } 13156 return *t.URL 13157} 13158 13159// GetAction returns the Action field if it's non-nil, zero value otherwise. 13160func (t *TeamEvent) GetAction() string { 13161 if t == nil || t.Action == nil { 13162 return "" 13163 } 13164 return *t.Action 13165} 13166 13167// GetChanges returns the Changes field. 13168func (t *TeamEvent) GetChanges() *TeamChange { 13169 if t == nil { 13170 return nil 13171 } 13172 return t.Changes 13173} 13174 13175// GetInstallation returns the Installation field. 13176func (t *TeamEvent) GetInstallation() *Installation { 13177 if t == nil { 13178 return nil 13179 } 13180 return t.Installation 13181} 13182 13183// GetOrg returns the Org field. 13184func (t *TeamEvent) GetOrg() *Organization { 13185 if t == nil { 13186 return nil 13187 } 13188 return t.Org 13189} 13190 13191// GetRepo returns the Repo field. 13192func (t *TeamEvent) GetRepo() *Repository { 13193 if t == nil { 13194 return nil 13195 } 13196 return t.Repo 13197} 13198 13199// GetSender returns the Sender field. 13200func (t *TeamEvent) GetSender() *User { 13201 if t == nil { 13202 return nil 13203 } 13204 return t.Sender 13205} 13206 13207// GetTeam returns the Team field. 13208func (t *TeamEvent) GetTeam() *Team { 13209 if t == nil { 13210 return nil 13211 } 13212 return t.Team 13213} 13214 13215// GetDescription returns the Description field if it's non-nil, zero value otherwise. 13216func (t *TeamLDAPMapping) GetDescription() string { 13217 if t == nil || t.Description == nil { 13218 return "" 13219 } 13220 return *t.Description 13221} 13222 13223// GetID returns the ID field if it's non-nil, zero value otherwise. 13224func (t *TeamLDAPMapping) GetID() int64 { 13225 if t == nil || t.ID == nil { 13226 return 0 13227 } 13228 return *t.ID 13229} 13230 13231// GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 13232func (t *TeamLDAPMapping) GetLDAPDN() string { 13233 if t == nil || t.LDAPDN == nil { 13234 return "" 13235 } 13236 return *t.LDAPDN 13237} 13238 13239// GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 13240func (t *TeamLDAPMapping) GetMembersURL() string { 13241 if t == nil || t.MembersURL == nil { 13242 return "" 13243 } 13244 return *t.MembersURL 13245} 13246 13247// GetName returns the Name field if it's non-nil, zero value otherwise. 13248func (t *TeamLDAPMapping) GetName() string { 13249 if t == nil || t.Name == nil { 13250 return "" 13251 } 13252 return *t.Name 13253} 13254 13255// GetPermission returns the Permission field if it's non-nil, zero value otherwise. 13256func (t *TeamLDAPMapping) GetPermission() string { 13257 if t == nil || t.Permission == nil { 13258 return "" 13259 } 13260 return *t.Permission 13261} 13262 13263// GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 13264func (t *TeamLDAPMapping) GetPrivacy() string { 13265 if t == nil || t.Privacy == nil { 13266 return "" 13267 } 13268 return *t.Privacy 13269} 13270 13271// GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 13272func (t *TeamLDAPMapping) GetRepositoriesURL() string { 13273 if t == nil || t.RepositoriesURL == nil { 13274 return "" 13275 } 13276 return *t.RepositoriesURL 13277} 13278 13279// GetSlug returns the Slug field if it's non-nil, zero value otherwise. 13280func (t *TeamLDAPMapping) GetSlug() string { 13281 if t == nil || t.Slug == nil { 13282 return "" 13283 } 13284 return *t.Slug 13285} 13286 13287// GetURL returns the URL field if it's non-nil, zero value otherwise. 13288func (t *TeamLDAPMapping) GetURL() string { 13289 if t == nil || t.URL == nil { 13290 return "" 13291 } 13292 return *t.URL 13293} 13294 13295// GetPermission returns the Permission field if it's non-nil, zero value otherwise. 13296func (t *TeamProjectOptions) GetPermission() string { 13297 if t == nil || t.Permission == nil { 13298 return "" 13299 } 13300 return *t.Permission 13301} 13302 13303// GetDescription returns the Description field if it's non-nil, zero value otherwise. 13304func (t *TemplateRepoRequest) GetDescription() string { 13305 if t == nil || t.Description == nil { 13306 return "" 13307 } 13308 return *t.Description 13309} 13310 13311// GetName returns the Name field if it's non-nil, zero value otherwise. 13312func (t *TemplateRepoRequest) GetName() string { 13313 if t == nil || t.Name == nil { 13314 return "" 13315 } 13316 return *t.Name 13317} 13318 13319// GetOwner returns the Owner field if it's non-nil, zero value otherwise. 13320func (t *TemplateRepoRequest) GetOwner() string { 13321 if t == nil || t.Owner == nil { 13322 return "" 13323 } 13324 return *t.Owner 13325} 13326 13327// GetPrivate returns the Private field if it's non-nil, zero value otherwise. 13328func (t *TemplateRepoRequest) GetPrivate() bool { 13329 if t == nil || t.Private == nil { 13330 return false 13331 } 13332 return *t.Private 13333} 13334 13335// GetFragment returns the Fragment field if it's non-nil, zero value otherwise. 13336func (t *TextMatch) GetFragment() string { 13337 if t == nil || t.Fragment == nil { 13338 return "" 13339 } 13340 return *t.Fragment 13341} 13342 13343// GetObjectType returns the ObjectType field if it's non-nil, zero value otherwise. 13344func (t *TextMatch) GetObjectType() string { 13345 if t == nil || t.ObjectType == nil { 13346 return "" 13347 } 13348 return *t.ObjectType 13349} 13350 13351// GetObjectURL returns the ObjectURL field if it's non-nil, zero value otherwise. 13352func (t *TextMatch) GetObjectURL() string { 13353 if t == nil || t.ObjectURL == nil { 13354 return "" 13355 } 13356 return *t.ObjectURL 13357} 13358 13359// GetProperty returns the Property field if it's non-nil, zero value otherwise. 13360func (t *TextMatch) GetProperty() string { 13361 if t == nil || t.Property == nil { 13362 return "" 13363 } 13364 return *t.Property 13365} 13366 13367// GetActor returns the Actor field. 13368func (t *Timeline) GetActor() *User { 13369 if t == nil { 13370 return nil 13371 } 13372 return t.Actor 13373} 13374 13375// GetAssignee returns the Assignee field. 13376func (t *Timeline) GetAssignee() *User { 13377 if t == nil { 13378 return nil 13379 } 13380 return t.Assignee 13381} 13382 13383// GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 13384func (t *Timeline) GetCommitID() string { 13385 if t == nil || t.CommitID == nil { 13386 return "" 13387 } 13388 return *t.CommitID 13389} 13390 13391// GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 13392func (t *Timeline) GetCommitURL() string { 13393 if t == nil || t.CommitURL == nil { 13394 return "" 13395 } 13396 return *t.CommitURL 13397} 13398 13399// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13400func (t *Timeline) GetCreatedAt() time.Time { 13401 if t == nil || t.CreatedAt == nil { 13402 return time.Time{} 13403 } 13404 return *t.CreatedAt 13405} 13406 13407// GetEvent returns the Event field if it's non-nil, zero value otherwise. 13408func (t *Timeline) GetEvent() string { 13409 if t == nil || t.Event == nil { 13410 return "" 13411 } 13412 return *t.Event 13413} 13414 13415// GetID returns the ID field if it's non-nil, zero value otherwise. 13416func (t *Timeline) GetID() int64 { 13417 if t == nil || t.ID == nil { 13418 return 0 13419 } 13420 return *t.ID 13421} 13422 13423// GetLabel returns the Label field. 13424func (t *Timeline) GetLabel() *Label { 13425 if t == nil { 13426 return nil 13427 } 13428 return t.Label 13429} 13430 13431// GetMilestone returns the Milestone field. 13432func (t *Timeline) GetMilestone() *Milestone { 13433 if t == nil { 13434 return nil 13435 } 13436 return t.Milestone 13437} 13438 13439// GetProjectCard returns the ProjectCard field. 13440func (t *Timeline) GetProjectCard() *ProjectCard { 13441 if t == nil { 13442 return nil 13443 } 13444 return t.ProjectCard 13445} 13446 13447// GetRename returns the Rename field. 13448func (t *Timeline) GetRename() *Rename { 13449 if t == nil { 13450 return nil 13451 } 13452 return t.Rename 13453} 13454 13455// GetSource returns the Source field. 13456func (t *Timeline) GetSource() *Source { 13457 if t == nil { 13458 return nil 13459 } 13460 return t.Source 13461} 13462 13463// GetURL returns the URL field if it's non-nil, zero value otherwise. 13464func (t *Timeline) GetURL() string { 13465 if t == nil || t.URL == nil { 13466 return "" 13467 } 13468 return *t.URL 13469} 13470 13471// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13472func (t *TopicResult) GetCreatedAt() Timestamp { 13473 if t == nil || t.CreatedAt == nil { 13474 return Timestamp{} 13475 } 13476 return *t.CreatedAt 13477} 13478 13479// GetCreatedBy returns the CreatedBy field if it's non-nil, zero value otherwise. 13480func (t *TopicResult) GetCreatedBy() string { 13481 if t == nil || t.CreatedBy == nil { 13482 return "" 13483 } 13484 return *t.CreatedBy 13485} 13486 13487// GetCurated returns the Curated field if it's non-nil, zero value otherwise. 13488func (t *TopicResult) GetCurated() bool { 13489 if t == nil || t.Curated == nil { 13490 return false 13491 } 13492 return *t.Curated 13493} 13494 13495// GetDescription returns the Description field if it's non-nil, zero value otherwise. 13496func (t *TopicResult) GetDescription() string { 13497 if t == nil || t.Description == nil { 13498 return "" 13499 } 13500 return *t.Description 13501} 13502 13503// GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 13504func (t *TopicResult) GetDisplayName() string { 13505 if t == nil || t.DisplayName == nil { 13506 return "" 13507 } 13508 return *t.DisplayName 13509} 13510 13511// GetFeatured returns the Featured field if it's non-nil, zero value otherwise. 13512func (t *TopicResult) GetFeatured() bool { 13513 if t == nil || t.Featured == nil { 13514 return false 13515 } 13516 return *t.Featured 13517} 13518 13519// GetName returns the Name field if it's non-nil, zero value otherwise. 13520func (t *TopicResult) GetName() string { 13521 if t == nil || t.Name == nil { 13522 return "" 13523 } 13524 return *t.Name 13525} 13526 13527// GetScore returns the Score field. 13528func (t *TopicResult) GetScore() *float64 { 13529 if t == nil { 13530 return nil 13531 } 13532 return t.Score 13533} 13534 13535// GetShortDescription returns the ShortDescription field if it's non-nil, zero value otherwise. 13536func (t *TopicResult) GetShortDescription() string { 13537 if t == nil || t.ShortDescription == nil { 13538 return "" 13539 } 13540 return *t.ShortDescription 13541} 13542 13543// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13544func (t *TopicResult) GetUpdatedAt() string { 13545 if t == nil || t.UpdatedAt == nil { 13546 return "" 13547 } 13548 return *t.UpdatedAt 13549} 13550 13551// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 13552func (t *TopicsSearchResult) GetIncompleteResults() bool { 13553 if t == nil || t.IncompleteResults == nil { 13554 return false 13555 } 13556 return *t.IncompleteResults 13557} 13558 13559// GetTotal returns the Total field if it's non-nil, zero value otherwise. 13560func (t *TopicsSearchResult) GetTotal() int { 13561 if t == nil || t.Total == nil { 13562 return 0 13563 } 13564 return *t.Total 13565} 13566 13567// GetCount returns the Count field if it's non-nil, zero value otherwise. 13568func (t *TrafficClones) GetCount() int { 13569 if t == nil || t.Count == nil { 13570 return 0 13571 } 13572 return *t.Count 13573} 13574 13575// GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 13576func (t *TrafficClones) GetUniques() int { 13577 if t == nil || t.Uniques == nil { 13578 return 0 13579 } 13580 return *t.Uniques 13581} 13582 13583// GetCount returns the Count field if it's non-nil, zero value otherwise. 13584func (t *TrafficData) GetCount() int { 13585 if t == nil || t.Count == nil { 13586 return 0 13587 } 13588 return *t.Count 13589} 13590 13591// GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 13592func (t *TrafficData) GetTimestamp() Timestamp { 13593 if t == nil || t.Timestamp == nil { 13594 return Timestamp{} 13595 } 13596 return *t.Timestamp 13597} 13598 13599// GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 13600func (t *TrafficData) GetUniques() int { 13601 if t == nil || t.Uniques == nil { 13602 return 0 13603 } 13604 return *t.Uniques 13605} 13606 13607// GetCount returns the Count field if it's non-nil, zero value otherwise. 13608func (t *TrafficPath) GetCount() int { 13609 if t == nil || t.Count == nil { 13610 return 0 13611 } 13612 return *t.Count 13613} 13614 13615// GetPath returns the Path field if it's non-nil, zero value otherwise. 13616func (t *TrafficPath) GetPath() string { 13617 if t == nil || t.Path == nil { 13618 return "" 13619 } 13620 return *t.Path 13621} 13622 13623// GetTitle returns the Title field if it's non-nil, zero value otherwise. 13624func (t *TrafficPath) GetTitle() string { 13625 if t == nil || t.Title == nil { 13626 return "" 13627 } 13628 return *t.Title 13629} 13630 13631// GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 13632func (t *TrafficPath) GetUniques() int { 13633 if t == nil || t.Uniques == nil { 13634 return 0 13635 } 13636 return *t.Uniques 13637} 13638 13639// GetCount returns the Count field if it's non-nil, zero value otherwise. 13640func (t *TrafficReferrer) GetCount() int { 13641 if t == nil || t.Count == nil { 13642 return 0 13643 } 13644 return *t.Count 13645} 13646 13647// GetReferrer returns the Referrer field if it's non-nil, zero value otherwise. 13648func (t *TrafficReferrer) GetReferrer() string { 13649 if t == nil || t.Referrer == nil { 13650 return "" 13651 } 13652 return *t.Referrer 13653} 13654 13655// GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 13656func (t *TrafficReferrer) GetUniques() int { 13657 if t == nil || t.Uniques == nil { 13658 return 0 13659 } 13660 return *t.Uniques 13661} 13662 13663// GetCount returns the Count field if it's non-nil, zero value otherwise. 13664func (t *TrafficViews) GetCount() int { 13665 if t == nil || t.Count == nil { 13666 return 0 13667 } 13668 return *t.Count 13669} 13670 13671// GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 13672func (t *TrafficViews) GetUniques() int { 13673 if t == nil || t.Uniques == nil { 13674 return 0 13675 } 13676 return *t.Uniques 13677} 13678 13679// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 13680func (t *Tree) GetSHA() string { 13681 if t == nil || t.SHA == nil { 13682 return "" 13683 } 13684 return *t.SHA 13685} 13686 13687// GetTruncated returns the Truncated field if it's non-nil, zero value otherwise. 13688func (t *Tree) GetTruncated() bool { 13689 if t == nil || t.Truncated == nil { 13690 return false 13691 } 13692 return *t.Truncated 13693} 13694 13695// GetContent returns the Content field if it's non-nil, zero value otherwise. 13696func (t *TreeEntry) GetContent() string { 13697 if t == nil || t.Content == nil { 13698 return "" 13699 } 13700 return *t.Content 13701} 13702 13703// GetMode returns the Mode field if it's non-nil, zero value otherwise. 13704func (t *TreeEntry) GetMode() string { 13705 if t == nil || t.Mode == nil { 13706 return "" 13707 } 13708 return *t.Mode 13709} 13710 13711// GetPath returns the Path field if it's non-nil, zero value otherwise. 13712func (t *TreeEntry) GetPath() string { 13713 if t == nil || t.Path == nil { 13714 return "" 13715 } 13716 return *t.Path 13717} 13718 13719// GetSHA returns the SHA field if it's non-nil, zero value otherwise. 13720func (t *TreeEntry) GetSHA() string { 13721 if t == nil || t.SHA == nil { 13722 return "" 13723 } 13724 return *t.SHA 13725} 13726 13727// GetSize returns the Size field if it's non-nil, zero value otherwise. 13728func (t *TreeEntry) GetSize() int { 13729 if t == nil || t.Size == nil { 13730 return 0 13731 } 13732 return *t.Size 13733} 13734 13735// GetType returns the Type field if it's non-nil, zero value otherwise. 13736func (t *TreeEntry) GetType() string { 13737 if t == nil || t.Type == nil { 13738 return "" 13739 } 13740 return *t.Type 13741} 13742 13743// GetURL returns the URL field if it's non-nil, zero value otherwise. 13744func (t *TreeEntry) GetURL() string { 13745 if t == nil || t.URL == nil { 13746 return "" 13747 } 13748 return *t.URL 13749} 13750 13751// GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 13752func (u *UpdateCheckRunOptions) GetCompletedAt() Timestamp { 13753 if u == nil || u.CompletedAt == nil { 13754 return Timestamp{} 13755 } 13756 return *u.CompletedAt 13757} 13758 13759// GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 13760func (u *UpdateCheckRunOptions) GetConclusion() string { 13761 if u == nil || u.Conclusion == nil { 13762 return "" 13763 } 13764 return *u.Conclusion 13765} 13766 13767// GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 13768func (u *UpdateCheckRunOptions) GetDetailsURL() string { 13769 if u == nil || u.DetailsURL == nil { 13770 return "" 13771 } 13772 return *u.DetailsURL 13773} 13774 13775// GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 13776func (u *UpdateCheckRunOptions) GetExternalID() string { 13777 if u == nil || u.ExternalID == nil { 13778 return "" 13779 } 13780 return *u.ExternalID 13781} 13782 13783// GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 13784func (u *UpdateCheckRunOptions) GetHeadSHA() string { 13785 if u == nil || u.HeadSHA == nil { 13786 return "" 13787 } 13788 return *u.HeadSHA 13789} 13790 13791// GetOutput returns the Output field. 13792func (u *UpdateCheckRunOptions) GetOutput() *CheckRunOutput { 13793 if u == nil { 13794 return nil 13795 } 13796 return u.Output 13797} 13798 13799// GetStatus returns the Status field if it's non-nil, zero value otherwise. 13800func (u *UpdateCheckRunOptions) GetStatus() string { 13801 if u == nil || u.Status == nil { 13802 return "" 13803 } 13804 return *u.Status 13805} 13806 13807// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 13808func (u *User) GetAvatarURL() string { 13809 if u == nil || u.AvatarURL == nil { 13810 return "" 13811 } 13812 return *u.AvatarURL 13813} 13814 13815// GetBio returns the Bio field if it's non-nil, zero value otherwise. 13816func (u *User) GetBio() string { 13817 if u == nil || u.Bio == nil { 13818 return "" 13819 } 13820 return *u.Bio 13821} 13822 13823// GetBlog returns the Blog field if it's non-nil, zero value otherwise. 13824func (u *User) GetBlog() string { 13825 if u == nil || u.Blog == nil { 13826 return "" 13827 } 13828 return *u.Blog 13829} 13830 13831// GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 13832func (u *User) GetCollaborators() int { 13833 if u == nil || u.Collaborators == nil { 13834 return 0 13835 } 13836 return *u.Collaborators 13837} 13838 13839// GetCompany returns the Company field if it's non-nil, zero value otherwise. 13840func (u *User) GetCompany() string { 13841 if u == nil || u.Company == nil { 13842 return "" 13843 } 13844 return *u.Company 13845} 13846 13847// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13848func (u *User) GetCreatedAt() Timestamp { 13849 if u == nil || u.CreatedAt == nil { 13850 return Timestamp{} 13851 } 13852 return *u.CreatedAt 13853} 13854 13855// GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 13856func (u *User) GetDiskUsage() int { 13857 if u == nil || u.DiskUsage == nil { 13858 return 0 13859 } 13860 return *u.DiskUsage 13861} 13862 13863// GetEmail returns the Email field if it's non-nil, zero value otherwise. 13864func (u *User) GetEmail() string { 13865 if u == nil || u.Email == nil { 13866 return "" 13867 } 13868 return *u.Email 13869} 13870 13871// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 13872func (u *User) GetEventsURL() string { 13873 if u == nil || u.EventsURL == nil { 13874 return "" 13875 } 13876 return *u.EventsURL 13877} 13878 13879// GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 13880func (u *User) GetFollowers() int { 13881 if u == nil || u.Followers == nil { 13882 return 0 13883 } 13884 return *u.Followers 13885} 13886 13887// GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 13888func (u *User) GetFollowersURL() string { 13889 if u == nil || u.FollowersURL == nil { 13890 return "" 13891 } 13892 return *u.FollowersURL 13893} 13894 13895// GetFollowing returns the Following field if it's non-nil, zero value otherwise. 13896func (u *User) GetFollowing() int { 13897 if u == nil || u.Following == nil { 13898 return 0 13899 } 13900 return *u.Following 13901} 13902 13903// GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 13904func (u *User) GetFollowingURL() string { 13905 if u == nil || u.FollowingURL == nil { 13906 return "" 13907 } 13908 return *u.FollowingURL 13909} 13910 13911// GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 13912func (u *User) GetGistsURL() string { 13913 if u == nil || u.GistsURL == nil { 13914 return "" 13915 } 13916 return *u.GistsURL 13917} 13918 13919// GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 13920func (u *User) GetGravatarID() string { 13921 if u == nil || u.GravatarID == nil { 13922 return "" 13923 } 13924 return *u.GravatarID 13925} 13926 13927// GetHireable returns the Hireable field if it's non-nil, zero value otherwise. 13928func (u *User) GetHireable() bool { 13929 if u == nil || u.Hireable == nil { 13930 return false 13931 } 13932 return *u.Hireable 13933} 13934 13935// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13936func (u *User) GetHTMLURL() string { 13937 if u == nil || u.HTMLURL == nil { 13938 return "" 13939 } 13940 return *u.HTMLURL 13941} 13942 13943// GetID returns the ID field if it's non-nil, zero value otherwise. 13944func (u *User) GetID() int64 { 13945 if u == nil || u.ID == nil { 13946 return 0 13947 } 13948 return *u.ID 13949} 13950 13951// GetLdapDn returns the LdapDn field if it's non-nil, zero value otherwise. 13952func (u *User) GetLdapDn() string { 13953 if u == nil || u.LdapDn == nil { 13954 return "" 13955 } 13956 return *u.LdapDn 13957} 13958 13959// GetLocation returns the Location field if it's non-nil, zero value otherwise. 13960func (u *User) GetLocation() string { 13961 if u == nil || u.Location == nil { 13962 return "" 13963 } 13964 return *u.Location 13965} 13966 13967// GetLogin returns the Login field if it's non-nil, zero value otherwise. 13968func (u *User) GetLogin() string { 13969 if u == nil || u.Login == nil { 13970 return "" 13971 } 13972 return *u.Login 13973} 13974 13975// GetName returns the Name field if it's non-nil, zero value otherwise. 13976func (u *User) GetName() string { 13977 if u == nil || u.Name == nil { 13978 return "" 13979 } 13980 return *u.Name 13981} 13982 13983// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13984func (u *User) GetNodeID() string { 13985 if u == nil || u.NodeID == nil { 13986 return "" 13987 } 13988 return *u.NodeID 13989} 13990 13991// GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 13992func (u *User) GetOrganizationsURL() string { 13993 if u == nil || u.OrganizationsURL == nil { 13994 return "" 13995 } 13996 return *u.OrganizationsURL 13997} 13998 13999// GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 14000func (u *User) GetOwnedPrivateRepos() int { 14001 if u == nil || u.OwnedPrivateRepos == nil { 14002 return 0 14003 } 14004 return *u.OwnedPrivateRepos 14005} 14006 14007// GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 14008func (u *User) GetPermissions() map[string]bool { 14009 if u == nil || u.Permissions == nil { 14010 return map[string]bool{} 14011 } 14012 return *u.Permissions 14013} 14014 14015// GetPlan returns the Plan field. 14016func (u *User) GetPlan() *Plan { 14017 if u == nil { 14018 return nil 14019 } 14020 return u.Plan 14021} 14022 14023// GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 14024func (u *User) GetPrivateGists() int { 14025 if u == nil || u.PrivateGists == nil { 14026 return 0 14027 } 14028 return *u.PrivateGists 14029} 14030 14031// GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 14032func (u *User) GetPublicGists() int { 14033 if u == nil || u.PublicGists == nil { 14034 return 0 14035 } 14036 return *u.PublicGists 14037} 14038 14039// GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 14040func (u *User) GetPublicRepos() int { 14041 if u == nil || u.PublicRepos == nil { 14042 return 0 14043 } 14044 return *u.PublicRepos 14045} 14046 14047// GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 14048func (u *User) GetReceivedEventsURL() string { 14049 if u == nil || u.ReceivedEventsURL == nil { 14050 return "" 14051 } 14052 return *u.ReceivedEventsURL 14053} 14054 14055// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 14056func (u *User) GetReposURL() string { 14057 if u == nil || u.ReposURL == nil { 14058 return "" 14059 } 14060 return *u.ReposURL 14061} 14062 14063// GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 14064func (u *User) GetSiteAdmin() bool { 14065 if u == nil || u.SiteAdmin == nil { 14066 return false 14067 } 14068 return *u.SiteAdmin 14069} 14070 14071// GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 14072func (u *User) GetStarredURL() string { 14073 if u == nil || u.StarredURL == nil { 14074 return "" 14075 } 14076 return *u.StarredURL 14077} 14078 14079// GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 14080func (u *User) GetSubscriptionsURL() string { 14081 if u == nil || u.SubscriptionsURL == nil { 14082 return "" 14083 } 14084 return *u.SubscriptionsURL 14085} 14086 14087// GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise. 14088func (u *User) GetSuspendedAt() Timestamp { 14089 if u == nil || u.SuspendedAt == nil { 14090 return Timestamp{} 14091 } 14092 return *u.SuspendedAt 14093} 14094 14095// GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 14096func (u *User) GetTotalPrivateRepos() int { 14097 if u == nil || u.TotalPrivateRepos == nil { 14098 return 0 14099 } 14100 return *u.TotalPrivateRepos 14101} 14102 14103// GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. 14104func (u *User) GetTwitterUsername() string { 14105 if u == nil || u.TwitterUsername == nil { 14106 return "" 14107 } 14108 return *u.TwitterUsername 14109} 14110 14111// GetTwoFactorAuthentication returns the TwoFactorAuthentication field if it's non-nil, zero value otherwise. 14112func (u *User) GetTwoFactorAuthentication() bool { 14113 if u == nil || u.TwoFactorAuthentication == nil { 14114 return false 14115 } 14116 return *u.TwoFactorAuthentication 14117} 14118 14119// GetType returns the Type field if it's non-nil, zero value otherwise. 14120func (u *User) GetType() string { 14121 if u == nil || u.Type == nil { 14122 return "" 14123 } 14124 return *u.Type 14125} 14126 14127// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14128func (u *User) GetUpdatedAt() Timestamp { 14129 if u == nil || u.UpdatedAt == nil { 14130 return Timestamp{} 14131 } 14132 return *u.UpdatedAt 14133} 14134 14135// GetURL returns the URL field if it's non-nil, zero value otherwise. 14136func (u *User) GetURL() string { 14137 if u == nil || u.URL == nil { 14138 return "" 14139 } 14140 return *u.URL 14141} 14142 14143// GetApp returns the App field. 14144func (u *UserAuthorization) GetApp() *OAuthAPP { 14145 if u == nil { 14146 return nil 14147 } 14148 return u.App 14149} 14150 14151// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14152func (u *UserAuthorization) GetCreatedAt() Timestamp { 14153 if u == nil || u.CreatedAt == nil { 14154 return Timestamp{} 14155 } 14156 return *u.CreatedAt 14157} 14158 14159// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 14160func (u *UserAuthorization) GetFingerprint() string { 14161 if u == nil || u.Fingerprint == nil { 14162 return "" 14163 } 14164 return *u.Fingerprint 14165} 14166 14167// GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. 14168func (u *UserAuthorization) GetHashedToken() string { 14169 if u == nil || u.HashedToken == nil { 14170 return "" 14171 } 14172 return *u.HashedToken 14173} 14174 14175// GetID returns the ID field if it's non-nil, zero value otherwise. 14176func (u *UserAuthorization) GetID() int64 { 14177 if u == nil || u.ID == nil { 14178 return 0 14179 } 14180 return *u.ID 14181} 14182 14183// GetNote returns the Note field if it's non-nil, zero value otherwise. 14184func (u *UserAuthorization) GetNote() string { 14185 if u == nil || u.Note == nil { 14186 return "" 14187 } 14188 return *u.Note 14189} 14190 14191// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 14192func (u *UserAuthorization) GetNoteURL() string { 14193 if u == nil || u.NoteURL == nil { 14194 return "" 14195 } 14196 return *u.NoteURL 14197} 14198 14199// GetToken returns the Token field if it's non-nil, zero value otherwise. 14200func (u *UserAuthorization) GetToken() string { 14201 if u == nil || u.Token == nil { 14202 return "" 14203 } 14204 return *u.Token 14205} 14206 14207// GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. 14208func (u *UserAuthorization) GetTokenLastEight() string { 14209 if u == nil || u.TokenLastEight == nil { 14210 return "" 14211 } 14212 return *u.TokenLastEight 14213} 14214 14215// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14216func (u *UserAuthorization) GetUpdatedAt() Timestamp { 14217 if u == nil || u.UpdatedAt == nil { 14218 return Timestamp{} 14219 } 14220 return *u.UpdatedAt 14221} 14222 14223// GetURL returns the URL field if it's non-nil, zero value otherwise. 14224func (u *UserAuthorization) GetURL() string { 14225 if u == nil || u.URL == nil { 14226 return "" 14227 } 14228 return *u.URL 14229} 14230 14231// GetMessage returns the Message field if it's non-nil, zero value otherwise. 14232func (u *UserContext) GetMessage() string { 14233 if u == nil || u.Message == nil { 14234 return "" 14235 } 14236 return *u.Message 14237} 14238 14239// GetOcticon returns the Octicon field if it's non-nil, zero value otherwise. 14240func (u *UserContext) GetOcticon() string { 14241 if u == nil || u.Octicon == nil { 14242 return "" 14243 } 14244 return *u.Octicon 14245} 14246 14247// GetEmail returns the Email field if it's non-nil, zero value otherwise. 14248func (u *UserEmail) GetEmail() string { 14249 if u == nil || u.Email == nil { 14250 return "" 14251 } 14252 return *u.Email 14253} 14254 14255// GetPrimary returns the Primary field if it's non-nil, zero value otherwise. 14256func (u *UserEmail) GetPrimary() bool { 14257 if u == nil || u.Primary == nil { 14258 return false 14259 } 14260 return *u.Primary 14261} 14262 14263// GetVerified returns the Verified field if it's non-nil, zero value otherwise. 14264func (u *UserEmail) GetVerified() bool { 14265 if u == nil || u.Verified == nil { 14266 return false 14267 } 14268 return *u.Verified 14269} 14270 14271// GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 14272func (u *UserEmail) GetVisibility() string { 14273 if u == nil || u.Visibility == nil { 14274 return "" 14275 } 14276 return *u.Visibility 14277} 14278 14279// GetAction returns the Action field if it's non-nil, zero value otherwise. 14280func (u *UserEvent) GetAction() string { 14281 if u == nil || u.Action == nil { 14282 return "" 14283 } 14284 return *u.Action 14285} 14286 14287// GetEnterprise returns the Enterprise field. 14288func (u *UserEvent) GetEnterprise() *Enterprise { 14289 if u == nil { 14290 return nil 14291 } 14292 return u.Enterprise 14293} 14294 14295// GetSender returns the Sender field. 14296func (u *UserEvent) GetSender() *User { 14297 if u == nil { 14298 return nil 14299 } 14300 return u.Sender 14301} 14302 14303// GetUser returns the User field. 14304func (u *UserEvent) GetUser() *User { 14305 if u == nil { 14306 return nil 14307 } 14308 return u.User 14309} 14310 14311// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 14312func (u *UserLDAPMapping) GetAvatarURL() string { 14313 if u == nil || u.AvatarURL == nil { 14314 return "" 14315 } 14316 return *u.AvatarURL 14317} 14318 14319// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 14320func (u *UserLDAPMapping) GetEventsURL() string { 14321 if u == nil || u.EventsURL == nil { 14322 return "" 14323 } 14324 return *u.EventsURL 14325} 14326 14327// GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 14328func (u *UserLDAPMapping) GetFollowersURL() string { 14329 if u == nil || u.FollowersURL == nil { 14330 return "" 14331 } 14332 return *u.FollowersURL 14333} 14334 14335// GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 14336func (u *UserLDAPMapping) GetFollowingURL() string { 14337 if u == nil || u.FollowingURL == nil { 14338 return "" 14339 } 14340 return *u.FollowingURL 14341} 14342 14343// GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 14344func (u *UserLDAPMapping) GetGistsURL() string { 14345 if u == nil || u.GistsURL == nil { 14346 return "" 14347 } 14348 return *u.GistsURL 14349} 14350 14351// GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 14352func (u *UserLDAPMapping) GetGravatarID() string { 14353 if u == nil || u.GravatarID == nil { 14354 return "" 14355 } 14356 return *u.GravatarID 14357} 14358 14359// GetID returns the ID field if it's non-nil, zero value otherwise. 14360func (u *UserLDAPMapping) GetID() int64 { 14361 if u == nil || u.ID == nil { 14362 return 0 14363 } 14364 return *u.ID 14365} 14366 14367// GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 14368func (u *UserLDAPMapping) GetLDAPDN() string { 14369 if u == nil || u.LDAPDN == nil { 14370 return "" 14371 } 14372 return *u.LDAPDN 14373} 14374 14375// GetLogin returns the Login field if it's non-nil, zero value otherwise. 14376func (u *UserLDAPMapping) GetLogin() string { 14377 if u == nil || u.Login == nil { 14378 return "" 14379 } 14380 return *u.Login 14381} 14382 14383// GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 14384func (u *UserLDAPMapping) GetOrganizationsURL() string { 14385 if u == nil || u.OrganizationsURL == nil { 14386 return "" 14387 } 14388 return *u.OrganizationsURL 14389} 14390 14391// GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 14392func (u *UserLDAPMapping) GetReceivedEventsURL() string { 14393 if u == nil || u.ReceivedEventsURL == nil { 14394 return "" 14395 } 14396 return *u.ReceivedEventsURL 14397} 14398 14399// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 14400func (u *UserLDAPMapping) GetReposURL() string { 14401 if u == nil || u.ReposURL == nil { 14402 return "" 14403 } 14404 return *u.ReposURL 14405} 14406 14407// GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 14408func (u *UserLDAPMapping) GetSiteAdmin() bool { 14409 if u == nil || u.SiteAdmin == nil { 14410 return false 14411 } 14412 return *u.SiteAdmin 14413} 14414 14415// GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 14416func (u *UserLDAPMapping) GetStarredURL() string { 14417 if u == nil || u.StarredURL == nil { 14418 return "" 14419 } 14420 return *u.StarredURL 14421} 14422 14423// GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 14424func (u *UserLDAPMapping) GetSubscriptionsURL() string { 14425 if u == nil || u.SubscriptionsURL == nil { 14426 return "" 14427 } 14428 return *u.SubscriptionsURL 14429} 14430 14431// GetType returns the Type field if it's non-nil, zero value otherwise. 14432func (u *UserLDAPMapping) GetType() string { 14433 if u == nil || u.Type == nil { 14434 return "" 14435 } 14436 return *u.Type 14437} 14438 14439// GetURL returns the URL field if it's non-nil, zero value otherwise. 14440func (u *UserLDAPMapping) GetURL() string { 14441 if u == nil || u.URL == nil { 14442 return "" 14443 } 14444 return *u.URL 14445} 14446 14447// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14448func (u *UserMigration) GetCreatedAt() string { 14449 if u == nil || u.CreatedAt == nil { 14450 return "" 14451 } 14452 return *u.CreatedAt 14453} 14454 14455// GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 14456func (u *UserMigration) GetExcludeAttachments() bool { 14457 if u == nil || u.ExcludeAttachments == nil { 14458 return false 14459 } 14460 return *u.ExcludeAttachments 14461} 14462 14463// GetGUID returns the GUID field if it's non-nil, zero value otherwise. 14464func (u *UserMigration) GetGUID() string { 14465 if u == nil || u.GUID == nil { 14466 return "" 14467 } 14468 return *u.GUID 14469} 14470 14471// GetID returns the ID field if it's non-nil, zero value otherwise. 14472func (u *UserMigration) GetID() int64 { 14473 if u == nil || u.ID == nil { 14474 return 0 14475 } 14476 return *u.ID 14477} 14478 14479// GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 14480func (u *UserMigration) GetLockRepositories() bool { 14481 if u == nil || u.LockRepositories == nil { 14482 return false 14483 } 14484 return *u.LockRepositories 14485} 14486 14487// GetState returns the State field if it's non-nil, zero value otherwise. 14488func (u *UserMigration) GetState() string { 14489 if u == nil || u.State == nil { 14490 return "" 14491 } 14492 return *u.State 14493} 14494 14495// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14496func (u *UserMigration) GetUpdatedAt() string { 14497 if u == nil || u.UpdatedAt == nil { 14498 return "" 14499 } 14500 return *u.UpdatedAt 14501} 14502 14503// GetURL returns the URL field if it's non-nil, zero value otherwise. 14504func (u *UserMigration) GetURL() string { 14505 if u == nil || u.URL == nil { 14506 return "" 14507 } 14508 return *u.URL 14509} 14510 14511// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 14512func (u *UsersSearchResult) GetIncompleteResults() bool { 14513 if u == nil || u.IncompleteResults == nil { 14514 return false 14515 } 14516 return *u.IncompleteResults 14517} 14518 14519// GetTotal returns the Total field if it's non-nil, zero value otherwise. 14520func (u *UsersSearchResult) GetTotal() int { 14521 if u == nil || u.Total == nil { 14522 return 0 14523 } 14524 return *u.Total 14525} 14526 14527// GetAdminUsers returns the AdminUsers field if it's non-nil, zero value otherwise. 14528func (u *UserStats) GetAdminUsers() int { 14529 if u == nil || u.AdminUsers == nil { 14530 return 0 14531 } 14532 return *u.AdminUsers 14533} 14534 14535// GetSuspendedUsers returns the SuspendedUsers field if it's non-nil, zero value otherwise. 14536func (u *UserStats) GetSuspendedUsers() int { 14537 if u == nil || u.SuspendedUsers == nil { 14538 return 0 14539 } 14540 return *u.SuspendedUsers 14541} 14542 14543// GetTotalUsers returns the TotalUsers field if it's non-nil, zero value otherwise. 14544func (u *UserStats) GetTotalUsers() int { 14545 if u == nil || u.TotalUsers == nil { 14546 return 0 14547 } 14548 return *u.TotalUsers 14549} 14550 14551// GetReason returns the Reason field if it's non-nil, zero value otherwise. 14552func (u *UserSuspendOptions) GetReason() string { 14553 if u == nil || u.Reason == nil { 14554 return "" 14555 } 14556 return *u.Reason 14557} 14558 14559// GetAction returns the Action field if it's non-nil, zero value otherwise. 14560func (w *WatchEvent) GetAction() string { 14561 if w == nil || w.Action == nil { 14562 return "" 14563 } 14564 return *w.Action 14565} 14566 14567// GetInstallation returns the Installation field. 14568func (w *WatchEvent) GetInstallation() *Installation { 14569 if w == nil { 14570 return nil 14571 } 14572 return w.Installation 14573} 14574 14575// GetRepo returns the Repo field. 14576func (w *WatchEvent) GetRepo() *Repository { 14577 if w == nil { 14578 return nil 14579 } 14580 return w.Repo 14581} 14582 14583// GetSender returns the Sender field. 14584func (w *WatchEvent) GetSender() *User { 14585 if w == nil { 14586 return nil 14587 } 14588 return w.Sender 14589} 14590 14591// GetEmail returns the Email field if it's non-nil, zero value otherwise. 14592func (w *WebHookAuthor) GetEmail() string { 14593 if w == nil || w.Email == nil { 14594 return "" 14595 } 14596 return *w.Email 14597} 14598 14599// GetName returns the Name field if it's non-nil, zero value otherwise. 14600func (w *WebHookAuthor) GetName() string { 14601 if w == nil || w.Name == nil { 14602 return "" 14603 } 14604 return *w.Name 14605} 14606 14607// GetUsername returns the Username field if it's non-nil, zero value otherwise. 14608func (w *WebHookAuthor) GetUsername() string { 14609 if w == nil || w.Username == nil { 14610 return "" 14611 } 14612 return *w.Username 14613} 14614 14615// GetAuthor returns the Author field. 14616func (w *WebHookCommit) GetAuthor() *WebHookAuthor { 14617 if w == nil { 14618 return nil 14619 } 14620 return w.Author 14621} 14622 14623// GetCommitter returns the Committer field. 14624func (w *WebHookCommit) GetCommitter() *WebHookAuthor { 14625 if w == nil { 14626 return nil 14627 } 14628 return w.Committer 14629} 14630 14631// GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. 14632func (w *WebHookCommit) GetDistinct() bool { 14633 if w == nil || w.Distinct == nil { 14634 return false 14635 } 14636 return *w.Distinct 14637} 14638 14639// GetID returns the ID field if it's non-nil, zero value otherwise. 14640func (w *WebHookCommit) GetID() string { 14641 if w == nil || w.ID == nil { 14642 return "" 14643 } 14644 return *w.ID 14645} 14646 14647// GetMessage returns the Message field if it's non-nil, zero value otherwise. 14648func (w *WebHookCommit) GetMessage() string { 14649 if w == nil || w.Message == nil { 14650 return "" 14651 } 14652 return *w.Message 14653} 14654 14655// GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 14656func (w *WebHookCommit) GetTimestamp() time.Time { 14657 if w == nil || w.Timestamp == nil { 14658 return time.Time{} 14659 } 14660 return *w.Timestamp 14661} 14662 14663// GetAfter returns the After field if it's non-nil, zero value otherwise. 14664func (w *WebHookPayload) GetAfter() string { 14665 if w == nil || w.After == nil { 14666 return "" 14667 } 14668 return *w.After 14669} 14670 14671// GetBefore returns the Before field if it's non-nil, zero value otherwise. 14672func (w *WebHookPayload) GetBefore() string { 14673 if w == nil || w.Before == nil { 14674 return "" 14675 } 14676 return *w.Before 14677} 14678 14679// GetCompare returns the Compare field if it's non-nil, zero value otherwise. 14680func (w *WebHookPayload) GetCompare() string { 14681 if w == nil || w.Compare == nil { 14682 return "" 14683 } 14684 return *w.Compare 14685} 14686 14687// GetCreated returns the Created field if it's non-nil, zero value otherwise. 14688func (w *WebHookPayload) GetCreated() bool { 14689 if w == nil || w.Created == nil { 14690 return false 14691 } 14692 return *w.Created 14693} 14694 14695// GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. 14696func (w *WebHookPayload) GetDeleted() bool { 14697 if w == nil || w.Deleted == nil { 14698 return false 14699 } 14700 return *w.Deleted 14701} 14702 14703// GetForced returns the Forced field if it's non-nil, zero value otherwise. 14704func (w *WebHookPayload) GetForced() bool { 14705 if w == nil || w.Forced == nil { 14706 return false 14707 } 14708 return *w.Forced 14709} 14710 14711// GetHeadCommit returns the HeadCommit field. 14712func (w *WebHookPayload) GetHeadCommit() *WebHookCommit { 14713 if w == nil { 14714 return nil 14715 } 14716 return w.HeadCommit 14717} 14718 14719// GetPusher returns the Pusher field. 14720func (w *WebHookPayload) GetPusher() *User { 14721 if w == nil { 14722 return nil 14723 } 14724 return w.Pusher 14725} 14726 14727// GetRef returns the Ref field if it's non-nil, zero value otherwise. 14728func (w *WebHookPayload) GetRef() string { 14729 if w == nil || w.Ref == nil { 14730 return "" 14731 } 14732 return *w.Ref 14733} 14734 14735// GetRepo returns the Repo field. 14736func (w *WebHookPayload) GetRepo() *Repository { 14737 if w == nil { 14738 return nil 14739 } 14740 return w.Repo 14741} 14742 14743// GetSender returns the Sender field. 14744func (w *WebHookPayload) GetSender() *User { 14745 if w == nil { 14746 return nil 14747 } 14748 return w.Sender 14749} 14750 14751// GetTotal returns the Total field if it's non-nil, zero value otherwise. 14752func (w *WeeklyCommitActivity) GetTotal() int { 14753 if w == nil || w.Total == nil { 14754 return 0 14755 } 14756 return *w.Total 14757} 14758 14759// GetWeek returns the Week field if it's non-nil, zero value otherwise. 14760func (w *WeeklyCommitActivity) GetWeek() Timestamp { 14761 if w == nil || w.Week == nil { 14762 return Timestamp{} 14763 } 14764 return *w.Week 14765} 14766 14767// GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 14768func (w *WeeklyStats) GetAdditions() int { 14769 if w == nil || w.Additions == nil { 14770 return 0 14771 } 14772 return *w.Additions 14773} 14774 14775// GetCommits returns the Commits field if it's non-nil, zero value otherwise. 14776func (w *WeeklyStats) GetCommits() int { 14777 if w == nil || w.Commits == nil { 14778 return 0 14779 } 14780 return *w.Commits 14781} 14782 14783// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 14784func (w *WeeklyStats) GetDeletions() int { 14785 if w == nil || w.Deletions == nil { 14786 return 0 14787 } 14788 return *w.Deletions 14789} 14790 14791// GetWeek returns the Week field if it's non-nil, zero value otherwise. 14792func (w *WeeklyStats) GetWeek() Timestamp { 14793 if w == nil || w.Week == nil { 14794 return Timestamp{} 14795 } 14796 return *w.Week 14797} 14798 14799// GetBadgeURL returns the BadgeURL field if it's non-nil, zero value otherwise. 14800func (w *Workflow) GetBadgeURL() string { 14801 if w == nil || w.BadgeURL == nil { 14802 return "" 14803 } 14804 return *w.BadgeURL 14805} 14806 14807// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14808func (w *Workflow) GetCreatedAt() Timestamp { 14809 if w == nil || w.CreatedAt == nil { 14810 return Timestamp{} 14811 } 14812 return *w.CreatedAt 14813} 14814 14815// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 14816func (w *Workflow) GetHTMLURL() string { 14817 if w == nil || w.HTMLURL == nil { 14818 return "" 14819 } 14820 return *w.HTMLURL 14821} 14822 14823// GetID returns the ID field if it's non-nil, zero value otherwise. 14824func (w *Workflow) GetID() int64 { 14825 if w == nil || w.ID == nil { 14826 return 0 14827 } 14828 return *w.ID 14829} 14830 14831// GetName returns the Name field if it's non-nil, zero value otherwise. 14832func (w *Workflow) GetName() string { 14833 if w == nil || w.Name == nil { 14834 return "" 14835 } 14836 return *w.Name 14837} 14838 14839// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14840func (w *Workflow) GetNodeID() string { 14841 if w == nil || w.NodeID == nil { 14842 return "" 14843 } 14844 return *w.NodeID 14845} 14846 14847// GetPath returns the Path field if it's non-nil, zero value otherwise. 14848func (w *Workflow) GetPath() string { 14849 if w == nil || w.Path == nil { 14850 return "" 14851 } 14852 return *w.Path 14853} 14854 14855// GetState returns the State field if it's non-nil, zero value otherwise. 14856func (w *Workflow) GetState() string { 14857 if w == nil || w.State == nil { 14858 return "" 14859 } 14860 return *w.State 14861} 14862 14863// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14864func (w *Workflow) GetUpdatedAt() Timestamp { 14865 if w == nil || w.UpdatedAt == nil { 14866 return Timestamp{} 14867 } 14868 return *w.UpdatedAt 14869} 14870 14871// GetURL returns the URL field if it's non-nil, zero value otherwise. 14872func (w *Workflow) GetURL() string { 14873 if w == nil || w.URL == nil { 14874 return "" 14875 } 14876 return *w.URL 14877} 14878 14879// GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise. 14880func (w *WorkflowBill) GetTotalMS() int64 { 14881 if w == nil || w.TotalMS == nil { 14882 return 0 14883 } 14884 return *w.TotalMS 14885} 14886 14887// GetMacOS returns the MacOS field. 14888func (w *WorkflowEnvironment) GetMacOS() *WorkflowBill { 14889 if w == nil { 14890 return nil 14891 } 14892 return w.MacOS 14893} 14894 14895// GetUbuntu returns the Ubuntu field. 14896func (w *WorkflowEnvironment) GetUbuntu() *WorkflowBill { 14897 if w == nil { 14898 return nil 14899 } 14900 return w.Ubuntu 14901} 14902 14903// GetWindows returns the Windows field. 14904func (w *WorkflowEnvironment) GetWindows() *WorkflowBill { 14905 if w == nil { 14906 return nil 14907 } 14908 return w.Windows 14909} 14910 14911// GetCheckRunURL returns the CheckRunURL field if it's non-nil, zero value otherwise. 14912func (w *WorkflowJob) GetCheckRunURL() string { 14913 if w == nil || w.CheckRunURL == nil { 14914 return "" 14915 } 14916 return *w.CheckRunURL 14917} 14918 14919// GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 14920func (w *WorkflowJob) GetCompletedAt() Timestamp { 14921 if w == nil || w.CompletedAt == nil { 14922 return Timestamp{} 14923 } 14924 return *w.CompletedAt 14925} 14926 14927// GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 14928func (w *WorkflowJob) GetConclusion() string { 14929 if w == nil || w.Conclusion == nil { 14930 return "" 14931 } 14932 return *w.Conclusion 14933} 14934 14935// GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 14936func (w *WorkflowJob) GetHeadSHA() string { 14937 if w == nil || w.HeadSHA == nil { 14938 return "" 14939 } 14940 return *w.HeadSHA 14941} 14942 14943// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 14944func (w *WorkflowJob) GetHTMLURL() string { 14945 if w == nil || w.HTMLURL == nil { 14946 return "" 14947 } 14948 return *w.HTMLURL 14949} 14950 14951// GetID returns the ID field if it's non-nil, zero value otherwise. 14952func (w *WorkflowJob) GetID() int64 { 14953 if w == nil || w.ID == nil { 14954 return 0 14955 } 14956 return *w.ID 14957} 14958 14959// GetName returns the Name field if it's non-nil, zero value otherwise. 14960func (w *WorkflowJob) GetName() string { 14961 if w == nil || w.Name == nil { 14962 return "" 14963 } 14964 return *w.Name 14965} 14966 14967// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14968func (w *WorkflowJob) GetNodeID() string { 14969 if w == nil || w.NodeID == nil { 14970 return "" 14971 } 14972 return *w.NodeID 14973} 14974 14975// GetRunID returns the RunID field if it's non-nil, zero value otherwise. 14976func (w *WorkflowJob) GetRunID() int64 { 14977 if w == nil || w.RunID == nil { 14978 return 0 14979 } 14980 return *w.RunID 14981} 14982 14983// GetRunURL returns the RunURL field if it's non-nil, zero value otherwise. 14984func (w *WorkflowJob) GetRunURL() string { 14985 if w == nil || w.RunURL == nil { 14986 return "" 14987 } 14988 return *w.RunURL 14989} 14990 14991// GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 14992func (w *WorkflowJob) GetStartedAt() Timestamp { 14993 if w == nil || w.StartedAt == nil { 14994 return Timestamp{} 14995 } 14996 return *w.StartedAt 14997} 14998 14999// GetStatus returns the Status field if it's non-nil, zero value otherwise. 15000func (w *WorkflowJob) GetStatus() string { 15001 if w == nil || w.Status == nil { 15002 return "" 15003 } 15004 return *w.Status 15005} 15006 15007// GetURL returns the URL field if it's non-nil, zero value otherwise. 15008func (w *WorkflowJob) GetURL() string { 15009 if w == nil || w.URL == nil { 15010 return "" 15011 } 15012 return *w.URL 15013} 15014 15015// GetArtifactsURL returns the ArtifactsURL field if it's non-nil, zero value otherwise. 15016func (w *WorkflowRun) GetArtifactsURL() string { 15017 if w == nil || w.ArtifactsURL == nil { 15018 return "" 15019 } 15020 return *w.ArtifactsURL 15021} 15022 15023// GetCancelURL returns the CancelURL field if it's non-nil, zero value otherwise. 15024func (w *WorkflowRun) GetCancelURL() string { 15025 if w == nil || w.CancelURL == nil { 15026 return "" 15027 } 15028 return *w.CancelURL 15029} 15030 15031// GetCheckSuiteURL returns the CheckSuiteURL field if it's non-nil, zero value otherwise. 15032func (w *WorkflowRun) GetCheckSuiteURL() string { 15033 if w == nil || w.CheckSuiteURL == nil { 15034 return "" 15035 } 15036 return *w.CheckSuiteURL 15037} 15038 15039// GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 15040func (w *WorkflowRun) GetConclusion() string { 15041 if w == nil || w.Conclusion == nil { 15042 return "" 15043 } 15044 return *w.Conclusion 15045} 15046 15047// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 15048func (w *WorkflowRun) GetCreatedAt() Timestamp { 15049 if w == nil || w.CreatedAt == nil { 15050 return Timestamp{} 15051 } 15052 return *w.CreatedAt 15053} 15054 15055// GetEvent returns the Event field if it's non-nil, zero value otherwise. 15056func (w *WorkflowRun) GetEvent() string { 15057 if w == nil || w.Event == nil { 15058 return "" 15059 } 15060 return *w.Event 15061} 15062 15063// GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 15064func (w *WorkflowRun) GetHeadBranch() string { 15065 if w == nil || w.HeadBranch == nil { 15066 return "" 15067 } 15068 return *w.HeadBranch 15069} 15070 15071// GetHeadCommit returns the HeadCommit field. 15072func (w *WorkflowRun) GetHeadCommit() *HeadCommit { 15073 if w == nil { 15074 return nil 15075 } 15076 return w.HeadCommit 15077} 15078 15079// GetHeadRepository returns the HeadRepository field. 15080func (w *WorkflowRun) GetHeadRepository() *Repository { 15081 if w == nil { 15082 return nil 15083 } 15084 return w.HeadRepository 15085} 15086 15087// GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 15088func (w *WorkflowRun) GetHeadSHA() string { 15089 if w == nil || w.HeadSHA == nil { 15090 return "" 15091 } 15092 return *w.HeadSHA 15093} 15094 15095// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 15096func (w *WorkflowRun) GetHTMLURL() string { 15097 if w == nil || w.HTMLURL == nil { 15098 return "" 15099 } 15100 return *w.HTMLURL 15101} 15102 15103// GetID returns the ID field if it's non-nil, zero value otherwise. 15104func (w *WorkflowRun) GetID() int64 { 15105 if w == nil || w.ID == nil { 15106 return 0 15107 } 15108 return *w.ID 15109} 15110 15111// GetJobsURL returns the JobsURL field if it's non-nil, zero value otherwise. 15112func (w *WorkflowRun) GetJobsURL() string { 15113 if w == nil || w.JobsURL == nil { 15114 return "" 15115 } 15116 return *w.JobsURL 15117} 15118 15119// GetLogsURL returns the LogsURL field if it's non-nil, zero value otherwise. 15120func (w *WorkflowRun) GetLogsURL() string { 15121 if w == nil || w.LogsURL == nil { 15122 return "" 15123 } 15124 return *w.LogsURL 15125} 15126 15127// GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15128func (w *WorkflowRun) GetNodeID() string { 15129 if w == nil || w.NodeID == nil { 15130 return "" 15131 } 15132 return *w.NodeID 15133} 15134 15135// GetRepository returns the Repository field. 15136func (w *WorkflowRun) GetRepository() *Repository { 15137 if w == nil { 15138 return nil 15139 } 15140 return w.Repository 15141} 15142 15143// GetRerunURL returns the RerunURL field if it's non-nil, zero value otherwise. 15144func (w *WorkflowRun) GetRerunURL() string { 15145 if w == nil || w.RerunURL == nil { 15146 return "" 15147 } 15148 return *w.RerunURL 15149} 15150 15151// GetRunNumber returns the RunNumber field if it's non-nil, zero value otherwise. 15152func (w *WorkflowRun) GetRunNumber() int { 15153 if w == nil || w.RunNumber == nil { 15154 return 0 15155 } 15156 return *w.RunNumber 15157} 15158 15159// GetStatus returns the Status field if it's non-nil, zero value otherwise. 15160func (w *WorkflowRun) GetStatus() string { 15161 if w == nil || w.Status == nil { 15162 return "" 15163 } 15164 return *w.Status 15165} 15166 15167// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 15168func (w *WorkflowRun) GetUpdatedAt() Timestamp { 15169 if w == nil || w.UpdatedAt == nil { 15170 return Timestamp{} 15171 } 15172 return *w.UpdatedAt 15173} 15174 15175// GetURL returns the URL field if it's non-nil, zero value otherwise. 15176func (w *WorkflowRun) GetURL() string { 15177 if w == nil || w.URL == nil { 15178 return "" 15179 } 15180 return *w.URL 15181} 15182 15183// GetWorkflowID returns the WorkflowID field if it's non-nil, zero value otherwise. 15184func (w *WorkflowRun) GetWorkflowID() int64 { 15185 if w == nil || w.WorkflowID == nil { 15186 return 0 15187 } 15188 return *w.WorkflowID 15189} 15190 15191// GetWorkflowURL returns the WorkflowURL field if it's non-nil, zero value otherwise. 15192func (w *WorkflowRun) GetWorkflowURL() string { 15193 if w == nil || w.WorkflowURL == nil { 15194 return "" 15195 } 15196 return *w.WorkflowURL 15197} 15198 15199// GetJobs returns the Jobs field if it's non-nil, zero value otherwise. 15200func (w *WorkflowRunBill) GetJobs() int { 15201 if w == nil || w.Jobs == nil { 15202 return 0 15203 } 15204 return *w.Jobs 15205} 15206 15207// GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise. 15208func (w *WorkflowRunBill) GetTotalMS() int64 { 15209 if w == nil || w.TotalMS == nil { 15210 return 0 15211 } 15212 return *w.TotalMS 15213} 15214 15215// GetMacOS returns the MacOS field. 15216func (w *WorkflowRunEnvironment) GetMacOS() *WorkflowRunBill { 15217 if w == nil { 15218 return nil 15219 } 15220 return w.MacOS 15221} 15222 15223// GetUbuntu returns the Ubuntu field. 15224func (w *WorkflowRunEnvironment) GetUbuntu() *WorkflowRunBill { 15225 if w == nil { 15226 return nil 15227 } 15228 return w.Ubuntu 15229} 15230 15231// GetWindows returns the Windows field. 15232func (w *WorkflowRunEnvironment) GetWindows() *WorkflowRunBill { 15233 if w == nil { 15234 return nil 15235 } 15236 return w.Windows 15237} 15238 15239// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 15240func (w *WorkflowRuns) GetTotalCount() int { 15241 if w == nil || w.TotalCount == nil { 15242 return 0 15243 } 15244 return *w.TotalCount 15245} 15246 15247// GetBillable returns the Billable field. 15248func (w *WorkflowRunUsage) GetBillable() *WorkflowRunEnvironment { 15249 if w == nil { 15250 return nil 15251 } 15252 return w.Billable 15253} 15254 15255// GetRunDurationMS returns the RunDurationMS field if it's non-nil, zero value otherwise. 15256func (w *WorkflowRunUsage) GetRunDurationMS() int64 { 15257 if w == nil || w.RunDurationMS == nil { 15258 return 0 15259 } 15260 return *w.RunDurationMS 15261} 15262 15263// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 15264func (w *Workflows) GetTotalCount() int { 15265 if w == nil || w.TotalCount == nil { 15266 return 0 15267 } 15268 return *w.TotalCount 15269} 15270 15271// GetBillable returns the Billable field. 15272func (w *WorkflowUsage) GetBillable() *WorkflowEnvironment { 15273 if w == nil { 15274 return nil 15275 } 15276 return w.Billable 15277} 15278