github.com/google/go-github/v33@v33.0.0/github/github-accessors.go (about) 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 8 package github 9 10 import ( 11 "encoding/json" 12 "time" 13 ) 14 15 // GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise. 16 func (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. 24 func (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. 32 func (a *AdminStats) GetComments() *CommentStats { 33 if a == nil { 34 return nil 35 } 36 return a.Comments 37 } 38 39 // GetGists returns the Gists field. 40 func (a *AdminStats) GetGists() *GistStats { 41 if a == nil { 42 return nil 43 } 44 return a.Gists 45 } 46 47 // GetHooks returns the Hooks field. 48 func (a *AdminStats) GetHooks() *HookStats { 49 if a == nil { 50 return nil 51 } 52 return a.Hooks 53 } 54 55 // GetIssues returns the Issues field. 56 func (a *AdminStats) GetIssues() *IssueStats { 57 if a == nil { 58 return nil 59 } 60 return a.Issues 61 } 62 63 // GetMilestones returns the Milestones field. 64 func (a *AdminStats) GetMilestones() *MilestoneStats { 65 if a == nil { 66 return nil 67 } 68 return a.Milestones 69 } 70 71 // GetOrgs returns the Orgs field. 72 func (a *AdminStats) GetOrgs() *OrgStats { 73 if a == nil { 74 return nil 75 } 76 return a.Orgs 77 } 78 79 // GetPages returns the Pages field. 80 func (a *AdminStats) GetPages() *PageStats { 81 if a == nil { 82 return nil 83 } 84 return a.Pages 85 } 86 87 // GetPulls returns the Pulls field. 88 func (a *AdminStats) GetPulls() *PullStats { 89 if a == nil { 90 return nil 91 } 92 return a.Pulls 93 } 94 95 // GetRepos returns the Repos field. 96 func (a *AdminStats) GetRepos() *RepoStats { 97 if a == nil { 98 return nil 99 } 100 return a.Repos 101 } 102 103 // GetUsers returns the Users field. 104 func (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. 112 func (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. 120 func (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. 128 func (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. 136 func (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. 144 func (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. 152 func (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. 160 func (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. 168 func (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. 176 func (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. 184 func (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. 192 func (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. 200 func (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. 208 func (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. 216 func (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. 224 func (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. 232 func (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. 240 func (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. 248 func (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. 256 func (a *App) GetOwner() *User { 257 if a == nil { 258 return nil 259 } 260 return a.Owner 261 } 262 263 // GetPermissions returns the Permissions field. 264 func (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. 272 func (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. 280 func (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. 288 func (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. 296 func (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. 304 func (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. 312 func (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. 320 func (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. 328 func (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. 336 func (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. 344 func (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. 352 func (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. 360 func (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. 368 func (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. 376 func (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. 384 func (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. 392 func (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. 400 func (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. 408 func (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. 416 func (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. 424 func (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. 432 func (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. 440 func (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. 448 func (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. 456 func (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. 464 func (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. 472 func (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. 480 func (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. 488 func (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. 496 func (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. 504 func (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. 512 func (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. 520 func (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. 528 func (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. 536 func (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. 544 func (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. 552 func (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. 560 func (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. 568 func (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. 576 func (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. 584 func (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. 592 func (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. 600 func (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. 608 func (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. 616 func (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. 624 func (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. 632 func (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. 640 func (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. 648 func (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. 656 func (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. 664 func (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. 672 func (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. 680 func (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. 688 func (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. 696 func (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. 704 func (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. 712 func (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. 720 func (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. 728 func (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. 736 func (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. 744 func (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. 752 func (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. 760 func (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. 768 func (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. 776 func (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. 784 func (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. 792 func (c *CheckRun) GetApp() *App { 793 if c == nil { 794 return nil 795 } 796 return c.App 797 } 798 799 // GetCheckSuite returns the CheckSuite field. 800 func (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. 808 func (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. 816 func (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. 824 func (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. 832 func (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. 840 func (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. 848 func (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. 856 func (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. 864 func (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. 872 func (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. 880 func (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. 888 func (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. 896 func (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. 904 func (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. 912 func (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. 920 func (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. 928 func (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. 936 func (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. 944 func (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. 952 func (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. 960 func (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. 968 func (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. 976 func (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. 984 func (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. 992 func (c *CheckRunEvent) GetCheckRun() *CheckRun { 993 if c == nil { 994 return nil 995 } 996 return c.CheckRun 997 } 998 999 // GetInstallation returns the Installation field. 1000 func (c *CheckRunEvent) GetInstallation() *Installation { 1001 if c == nil { 1002 return nil 1003 } 1004 return c.Installation 1005 } 1006 1007 // GetOrg returns the Org field. 1008 func (c *CheckRunEvent) GetOrg() *Organization { 1009 if c == nil { 1010 return nil 1011 } 1012 return c.Org 1013 } 1014 1015 // GetRepo returns the Repo field. 1016 func (c *CheckRunEvent) GetRepo() *Repository { 1017 if c == nil { 1018 return nil 1019 } 1020 return c.Repo 1021 } 1022 1023 // GetRequestedAction returns the RequestedAction field. 1024 func (c *CheckRunEvent) GetRequestedAction() *RequestedAction { 1025 if c == nil { 1026 return nil 1027 } 1028 return c.RequestedAction 1029 } 1030 1031 // GetSender returns the Sender field. 1032 func (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. 1040 func (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. 1048 func (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. 1056 func (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. 1064 func (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. 1072 func (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. 1080 func (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. 1088 func (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. 1096 func (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. 1104 func (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. 1112 func (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. 1120 func (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. 1128 func (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. 1136 func (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. 1144 func (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. 1152 func (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. 1160 func (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. 1168 func (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. 1176 func (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. 1184 func (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. 1192 func (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. 1200 func (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. 1208 func (c *CheckSuiteEvent) GetCheckSuite() *CheckSuite { 1209 if c == nil { 1210 return nil 1211 } 1212 return c.CheckSuite 1213 } 1214 1215 // GetInstallation returns the Installation field. 1216 func (c *CheckSuiteEvent) GetInstallation() *Installation { 1217 if c == nil { 1218 return nil 1219 } 1220 return c.Installation 1221 } 1222 1223 // GetOrg returns the Org field. 1224 func (c *CheckSuiteEvent) GetOrg() *Organization { 1225 if c == nil { 1226 return nil 1227 } 1228 return c.Org 1229 } 1230 1231 // GetRepo returns the Repo field. 1232 func (c *CheckSuiteEvent) GetRepo() *Repository { 1233 if c == nil { 1234 return nil 1235 } 1236 return c.Repo 1237 } 1238 1239 // GetSender returns the Sender field. 1240 func (c *CheckSuiteEvent) GetSender() *User { 1241 if c == nil { 1242 return nil 1243 } 1244 return c.Sender 1245 } 1246 1247 // GetPreferences returns the Preferences field. 1248 func (c *CheckSuitePreferenceResults) GetPreferences() *PreferenceList { 1249 if c == nil { 1250 return nil 1251 } 1252 return c.Preferences 1253 } 1254 1255 // GetRepository returns the Repository field. 1256 func (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. 1264 func (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. 1272 func (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. 1280 func (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. 1288 func (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. 1296 func (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. 1304 func (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. 1312 func (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. 1320 func (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. 1328 func (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. 1336 func (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. 1344 func (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. 1352 func (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. 1360 func (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. 1368 func (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. 1376 func (c *CollaboratorInvitation) GetInvitee() *User { 1377 if c == nil { 1378 return nil 1379 } 1380 return c.Invitee 1381 } 1382 1383 // GetInviter returns the Inviter field. 1384 func (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. 1392 func (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. 1400 func (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. 1408 func (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. 1416 func (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. 1424 func (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. 1432 func (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. 1440 func (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. 1448 func (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. 1456 func (c *CombinedStatus) GetTotalCount() int { 1457 if c == nil || c.TotalCount == nil { 1458 return 0 1459 } 1460 return *c.TotalCount 1461 } 1462 1463 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1464 func (c *Comment) GetCreatedAt() time.Time { 1465 if c == nil || c.CreatedAt == nil { 1466 return time.Time{} 1467 } 1468 return *c.CreatedAt 1469 } 1470 1471 // GetTotalCommitComments returns the TotalCommitComments field if it's non-nil, zero value otherwise. 1472 func (c *CommentStats) GetTotalCommitComments() int { 1473 if c == nil || c.TotalCommitComments == nil { 1474 return 0 1475 } 1476 return *c.TotalCommitComments 1477 } 1478 1479 // GetTotalGistComments returns the TotalGistComments field if it's non-nil, zero value otherwise. 1480 func (c *CommentStats) GetTotalGistComments() int { 1481 if c == nil || c.TotalGistComments == nil { 1482 return 0 1483 } 1484 return *c.TotalGistComments 1485 } 1486 1487 // GetTotalIssueComments returns the TotalIssueComments field if it's non-nil, zero value otherwise. 1488 func (c *CommentStats) GetTotalIssueComments() int { 1489 if c == nil || c.TotalIssueComments == nil { 1490 return 0 1491 } 1492 return *c.TotalIssueComments 1493 } 1494 1495 // GetTotalPullRequestComments returns the TotalPullRequestComments field if it's non-nil, zero value otherwise. 1496 func (c *CommentStats) GetTotalPullRequestComments() int { 1497 if c == nil || c.TotalPullRequestComments == nil { 1498 return 0 1499 } 1500 return *c.TotalPullRequestComments 1501 } 1502 1503 // GetAuthor returns the Author field. 1504 func (c *Commit) GetAuthor() *CommitAuthor { 1505 if c == nil { 1506 return nil 1507 } 1508 return c.Author 1509 } 1510 1511 // GetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise. 1512 func (c *Commit) GetCommentCount() int { 1513 if c == nil || c.CommentCount == nil { 1514 return 0 1515 } 1516 return *c.CommentCount 1517 } 1518 1519 // GetCommitter returns the Committer field. 1520 func (c *Commit) GetCommitter() *CommitAuthor { 1521 if c == nil { 1522 return nil 1523 } 1524 return c.Committer 1525 } 1526 1527 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1528 func (c *Commit) GetHTMLURL() string { 1529 if c == nil || c.HTMLURL == nil { 1530 return "" 1531 } 1532 return *c.HTMLURL 1533 } 1534 1535 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 1536 func (c *Commit) GetMessage() string { 1537 if c == nil || c.Message == nil { 1538 return "" 1539 } 1540 return *c.Message 1541 } 1542 1543 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 1544 func (c *Commit) GetNodeID() string { 1545 if c == nil || c.NodeID == nil { 1546 return "" 1547 } 1548 return *c.NodeID 1549 } 1550 1551 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1552 func (c *Commit) GetSHA() string { 1553 if c == nil || c.SHA == nil { 1554 return "" 1555 } 1556 return *c.SHA 1557 } 1558 1559 // GetStats returns the Stats field. 1560 func (c *Commit) GetStats() *CommitStats { 1561 if c == nil { 1562 return nil 1563 } 1564 return c.Stats 1565 } 1566 1567 // GetTree returns the Tree field. 1568 func (c *Commit) GetTree() *Tree { 1569 if c == nil { 1570 return nil 1571 } 1572 return c.Tree 1573 } 1574 1575 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1576 func (c *Commit) GetURL() string { 1577 if c == nil || c.URL == nil { 1578 return "" 1579 } 1580 return *c.URL 1581 } 1582 1583 // GetVerification returns the Verification field. 1584 func (c *Commit) GetVerification() *SignatureVerification { 1585 if c == nil { 1586 return nil 1587 } 1588 return c.Verification 1589 } 1590 1591 // GetDate returns the Date field if it's non-nil, zero value otherwise. 1592 func (c *CommitAuthor) GetDate() time.Time { 1593 if c == nil || c.Date == nil { 1594 return time.Time{} 1595 } 1596 return *c.Date 1597 } 1598 1599 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 1600 func (c *CommitAuthor) GetEmail() string { 1601 if c == nil || c.Email == nil { 1602 return "" 1603 } 1604 return *c.Email 1605 } 1606 1607 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 1608 func (c *CommitAuthor) GetLogin() string { 1609 if c == nil || c.Login == nil { 1610 return "" 1611 } 1612 return *c.Login 1613 } 1614 1615 // GetName returns the Name field if it's non-nil, zero value otherwise. 1616 func (c *CommitAuthor) GetName() string { 1617 if c == nil || c.Name == nil { 1618 return "" 1619 } 1620 return *c.Name 1621 } 1622 1623 // GetAction returns the Action field if it's non-nil, zero value otherwise. 1624 func (c *CommitCommentEvent) GetAction() string { 1625 if c == nil || c.Action == nil { 1626 return "" 1627 } 1628 return *c.Action 1629 } 1630 1631 // GetComment returns the Comment field. 1632 func (c *CommitCommentEvent) GetComment() *RepositoryComment { 1633 if c == nil { 1634 return nil 1635 } 1636 return c.Comment 1637 } 1638 1639 // GetInstallation returns the Installation field. 1640 func (c *CommitCommentEvent) GetInstallation() *Installation { 1641 if c == nil { 1642 return nil 1643 } 1644 return c.Installation 1645 } 1646 1647 // GetRepo returns the Repo field. 1648 func (c *CommitCommentEvent) GetRepo() *Repository { 1649 if c == nil { 1650 return nil 1651 } 1652 return c.Repo 1653 } 1654 1655 // GetSender returns the Sender field. 1656 func (c *CommitCommentEvent) GetSender() *User { 1657 if c == nil { 1658 return nil 1659 } 1660 return c.Sender 1661 } 1662 1663 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 1664 func (c *CommitFile) GetAdditions() int { 1665 if c == nil || c.Additions == nil { 1666 return 0 1667 } 1668 return *c.Additions 1669 } 1670 1671 // GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise. 1672 func (c *CommitFile) GetBlobURL() string { 1673 if c == nil || c.BlobURL == nil { 1674 return "" 1675 } 1676 return *c.BlobURL 1677 } 1678 1679 // GetChanges returns the Changes field if it's non-nil, zero value otherwise. 1680 func (c *CommitFile) GetChanges() int { 1681 if c == nil || c.Changes == nil { 1682 return 0 1683 } 1684 return *c.Changes 1685 } 1686 1687 // GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 1688 func (c *CommitFile) GetContentsURL() string { 1689 if c == nil || c.ContentsURL == nil { 1690 return "" 1691 } 1692 return *c.ContentsURL 1693 } 1694 1695 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 1696 func (c *CommitFile) GetDeletions() int { 1697 if c == nil || c.Deletions == nil { 1698 return 0 1699 } 1700 return *c.Deletions 1701 } 1702 1703 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 1704 func (c *CommitFile) GetFilename() string { 1705 if c == nil || c.Filename == nil { 1706 return "" 1707 } 1708 return *c.Filename 1709 } 1710 1711 // GetPatch returns the Patch field if it's non-nil, zero value otherwise. 1712 func (c *CommitFile) GetPatch() string { 1713 if c == nil || c.Patch == nil { 1714 return "" 1715 } 1716 return *c.Patch 1717 } 1718 1719 // GetPreviousFilename returns the PreviousFilename field if it's non-nil, zero value otherwise. 1720 func (c *CommitFile) GetPreviousFilename() string { 1721 if c == nil || c.PreviousFilename == nil { 1722 return "" 1723 } 1724 return *c.PreviousFilename 1725 } 1726 1727 // GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 1728 func (c *CommitFile) GetRawURL() string { 1729 if c == nil || c.RawURL == nil { 1730 return "" 1731 } 1732 return *c.RawURL 1733 } 1734 1735 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1736 func (c *CommitFile) GetSHA() string { 1737 if c == nil || c.SHA == nil { 1738 return "" 1739 } 1740 return *c.SHA 1741 } 1742 1743 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 1744 func (c *CommitFile) GetStatus() string { 1745 if c == nil || c.Status == nil { 1746 return "" 1747 } 1748 return *c.Status 1749 } 1750 1751 // GetAuthor returns the Author field. 1752 func (c *CommitResult) GetAuthor() *User { 1753 if c == nil { 1754 return nil 1755 } 1756 return c.Author 1757 } 1758 1759 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 1760 func (c *CommitResult) GetCommentsURL() string { 1761 if c == nil || c.CommentsURL == nil { 1762 return "" 1763 } 1764 return *c.CommentsURL 1765 } 1766 1767 // GetCommit returns the Commit field. 1768 func (c *CommitResult) GetCommit() *Commit { 1769 if c == nil { 1770 return nil 1771 } 1772 return c.Commit 1773 } 1774 1775 // GetCommitter returns the Committer field. 1776 func (c *CommitResult) GetCommitter() *User { 1777 if c == nil { 1778 return nil 1779 } 1780 return c.Committer 1781 } 1782 1783 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1784 func (c *CommitResult) GetHTMLURL() string { 1785 if c == nil || c.HTMLURL == nil { 1786 return "" 1787 } 1788 return *c.HTMLURL 1789 } 1790 1791 // GetRepository returns the Repository field. 1792 func (c *CommitResult) GetRepository() *Repository { 1793 if c == nil { 1794 return nil 1795 } 1796 return c.Repository 1797 } 1798 1799 // GetScore returns the Score field. 1800 func (c *CommitResult) GetScore() *float64 { 1801 if c == nil { 1802 return nil 1803 } 1804 return c.Score 1805 } 1806 1807 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1808 func (c *CommitResult) GetSHA() string { 1809 if c == nil || c.SHA == nil { 1810 return "" 1811 } 1812 return *c.SHA 1813 } 1814 1815 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1816 func (c *CommitResult) GetURL() string { 1817 if c == nil || c.URL == nil { 1818 return "" 1819 } 1820 return *c.URL 1821 } 1822 1823 // GetAheadBy returns the AheadBy field if it's non-nil, zero value otherwise. 1824 func (c *CommitsComparison) GetAheadBy() int { 1825 if c == nil || c.AheadBy == nil { 1826 return 0 1827 } 1828 return *c.AheadBy 1829 } 1830 1831 // GetBaseCommit returns the BaseCommit field. 1832 func (c *CommitsComparison) GetBaseCommit() *RepositoryCommit { 1833 if c == nil { 1834 return nil 1835 } 1836 return c.BaseCommit 1837 } 1838 1839 // GetBehindBy returns the BehindBy field if it's non-nil, zero value otherwise. 1840 func (c *CommitsComparison) GetBehindBy() int { 1841 if c == nil || c.BehindBy == nil { 1842 return 0 1843 } 1844 return *c.BehindBy 1845 } 1846 1847 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 1848 func (c *CommitsComparison) GetDiffURL() string { 1849 if c == nil || c.DiffURL == nil { 1850 return "" 1851 } 1852 return *c.DiffURL 1853 } 1854 1855 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1856 func (c *CommitsComparison) GetHTMLURL() string { 1857 if c == nil || c.HTMLURL == nil { 1858 return "" 1859 } 1860 return *c.HTMLURL 1861 } 1862 1863 // GetMergeBaseCommit returns the MergeBaseCommit field. 1864 func (c *CommitsComparison) GetMergeBaseCommit() *RepositoryCommit { 1865 if c == nil { 1866 return nil 1867 } 1868 return c.MergeBaseCommit 1869 } 1870 1871 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 1872 func (c *CommitsComparison) GetPatchURL() string { 1873 if c == nil || c.PatchURL == nil { 1874 return "" 1875 } 1876 return *c.PatchURL 1877 } 1878 1879 // GetPermalinkURL returns the PermalinkURL field if it's non-nil, zero value otherwise. 1880 func (c *CommitsComparison) GetPermalinkURL() string { 1881 if c == nil || c.PermalinkURL == nil { 1882 return "" 1883 } 1884 return *c.PermalinkURL 1885 } 1886 1887 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 1888 func (c *CommitsComparison) GetStatus() string { 1889 if c == nil || c.Status == nil { 1890 return "" 1891 } 1892 return *c.Status 1893 } 1894 1895 // GetTotalCommits returns the TotalCommits field if it's non-nil, zero value otherwise. 1896 func (c *CommitsComparison) GetTotalCommits() int { 1897 if c == nil || c.TotalCommits == nil { 1898 return 0 1899 } 1900 return *c.TotalCommits 1901 } 1902 1903 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1904 func (c *CommitsComparison) GetURL() string { 1905 if c == nil || c.URL == nil { 1906 return "" 1907 } 1908 return *c.URL 1909 } 1910 1911 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 1912 func (c *CommitsSearchResult) GetIncompleteResults() bool { 1913 if c == nil || c.IncompleteResults == nil { 1914 return false 1915 } 1916 return *c.IncompleteResults 1917 } 1918 1919 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 1920 func (c *CommitsSearchResult) GetTotal() int { 1921 if c == nil || c.Total == nil { 1922 return 0 1923 } 1924 return *c.Total 1925 } 1926 1927 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 1928 func (c *CommitStats) GetAdditions() int { 1929 if c == nil || c.Additions == nil { 1930 return 0 1931 } 1932 return *c.Additions 1933 } 1934 1935 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 1936 func (c *CommitStats) GetDeletions() int { 1937 if c == nil || c.Deletions == nil { 1938 return 0 1939 } 1940 return *c.Deletions 1941 } 1942 1943 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 1944 func (c *CommitStats) GetTotal() int { 1945 if c == nil || c.Total == nil { 1946 return 0 1947 } 1948 return *c.Total 1949 } 1950 1951 // GetCodeOfConduct returns the CodeOfConduct field. 1952 func (c *CommunityHealthFiles) GetCodeOfConduct() *Metric { 1953 if c == nil { 1954 return nil 1955 } 1956 return c.CodeOfConduct 1957 } 1958 1959 // GetContributing returns the Contributing field. 1960 func (c *CommunityHealthFiles) GetContributing() *Metric { 1961 if c == nil { 1962 return nil 1963 } 1964 return c.Contributing 1965 } 1966 1967 // GetIssueTemplate returns the IssueTemplate field. 1968 func (c *CommunityHealthFiles) GetIssueTemplate() *Metric { 1969 if c == nil { 1970 return nil 1971 } 1972 return c.IssueTemplate 1973 } 1974 1975 // GetLicense returns the License field. 1976 func (c *CommunityHealthFiles) GetLicense() *Metric { 1977 if c == nil { 1978 return nil 1979 } 1980 return c.License 1981 } 1982 1983 // GetPullRequestTemplate returns the PullRequestTemplate field. 1984 func (c *CommunityHealthFiles) GetPullRequestTemplate() *Metric { 1985 if c == nil { 1986 return nil 1987 } 1988 return c.PullRequestTemplate 1989 } 1990 1991 // GetReadme returns the Readme field. 1992 func (c *CommunityHealthFiles) GetReadme() *Metric { 1993 if c == nil { 1994 return nil 1995 } 1996 return c.Readme 1997 } 1998 1999 // GetFiles returns the Files field. 2000 func (c *CommunityHealthMetrics) GetFiles() *CommunityHealthFiles { 2001 if c == nil { 2002 return nil 2003 } 2004 return c.Files 2005 } 2006 2007 // GetHealthPercentage returns the HealthPercentage field if it's non-nil, zero value otherwise. 2008 func (c *CommunityHealthMetrics) GetHealthPercentage() int { 2009 if c == nil || c.HealthPercentage == nil { 2010 return 0 2011 } 2012 return *c.HealthPercentage 2013 } 2014 2015 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2016 func (c *CommunityHealthMetrics) GetUpdatedAt() time.Time { 2017 if c == nil || c.UpdatedAt == nil { 2018 return time.Time{} 2019 } 2020 return *c.UpdatedAt 2021 } 2022 2023 // GetID returns the ID field if it's non-nil, zero value otherwise. 2024 func (c *ContentReference) GetID() int64 { 2025 if c == nil || c.ID == nil { 2026 return 0 2027 } 2028 return *c.ID 2029 } 2030 2031 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2032 func (c *ContentReference) GetNodeID() string { 2033 if c == nil || c.NodeID == nil { 2034 return "" 2035 } 2036 return *c.NodeID 2037 } 2038 2039 // GetReference returns the Reference field if it's non-nil, zero value otherwise. 2040 func (c *ContentReference) GetReference() string { 2041 if c == nil || c.Reference == nil { 2042 return "" 2043 } 2044 return *c.Reference 2045 } 2046 2047 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2048 func (c *ContentReferenceEvent) GetAction() string { 2049 if c == nil || c.Action == nil { 2050 return "" 2051 } 2052 return *c.Action 2053 } 2054 2055 // GetContentReference returns the ContentReference field. 2056 func (c *ContentReferenceEvent) GetContentReference() *ContentReference { 2057 if c == nil { 2058 return nil 2059 } 2060 return c.ContentReference 2061 } 2062 2063 // GetInstallation returns the Installation field. 2064 func (c *ContentReferenceEvent) GetInstallation() *Installation { 2065 if c == nil { 2066 return nil 2067 } 2068 return c.Installation 2069 } 2070 2071 // GetRepo returns the Repo field. 2072 func (c *ContentReferenceEvent) GetRepo() *Repository { 2073 if c == nil { 2074 return nil 2075 } 2076 return c.Repo 2077 } 2078 2079 // GetSender returns the Sender field. 2080 func (c *ContentReferenceEvent) GetSender() *User { 2081 if c == nil { 2082 return nil 2083 } 2084 return c.Sender 2085 } 2086 2087 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 2088 func (c *Contributor) GetAvatarURL() string { 2089 if c == nil || c.AvatarURL == nil { 2090 return "" 2091 } 2092 return *c.AvatarURL 2093 } 2094 2095 // GetContributions returns the Contributions field if it's non-nil, zero value otherwise. 2096 func (c *Contributor) GetContributions() int { 2097 if c == nil || c.Contributions == nil { 2098 return 0 2099 } 2100 return *c.Contributions 2101 } 2102 2103 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 2104 func (c *Contributor) GetEventsURL() string { 2105 if c == nil || c.EventsURL == nil { 2106 return "" 2107 } 2108 return *c.EventsURL 2109 } 2110 2111 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 2112 func (c *Contributor) GetFollowersURL() string { 2113 if c == nil || c.FollowersURL == nil { 2114 return "" 2115 } 2116 return *c.FollowersURL 2117 } 2118 2119 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 2120 func (c *Contributor) GetFollowingURL() string { 2121 if c == nil || c.FollowingURL == nil { 2122 return "" 2123 } 2124 return *c.FollowingURL 2125 } 2126 2127 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 2128 func (c *Contributor) GetGistsURL() string { 2129 if c == nil || c.GistsURL == nil { 2130 return "" 2131 } 2132 return *c.GistsURL 2133 } 2134 2135 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 2136 func (c *Contributor) GetGravatarID() string { 2137 if c == nil || c.GravatarID == nil { 2138 return "" 2139 } 2140 return *c.GravatarID 2141 } 2142 2143 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2144 func (c *Contributor) GetHTMLURL() string { 2145 if c == nil || c.HTMLURL == nil { 2146 return "" 2147 } 2148 return *c.HTMLURL 2149 } 2150 2151 // GetID returns the ID field if it's non-nil, zero value otherwise. 2152 func (c *Contributor) GetID() int64 { 2153 if c == nil || c.ID == nil { 2154 return 0 2155 } 2156 return *c.ID 2157 } 2158 2159 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 2160 func (c *Contributor) GetLogin() string { 2161 if c == nil || c.Login == nil { 2162 return "" 2163 } 2164 return *c.Login 2165 } 2166 2167 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2168 func (c *Contributor) GetNodeID() string { 2169 if c == nil || c.NodeID == nil { 2170 return "" 2171 } 2172 return *c.NodeID 2173 } 2174 2175 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 2176 func (c *Contributor) GetOrganizationsURL() string { 2177 if c == nil || c.OrganizationsURL == nil { 2178 return "" 2179 } 2180 return *c.OrganizationsURL 2181 } 2182 2183 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 2184 func (c *Contributor) GetReceivedEventsURL() string { 2185 if c == nil || c.ReceivedEventsURL == nil { 2186 return "" 2187 } 2188 return *c.ReceivedEventsURL 2189 } 2190 2191 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 2192 func (c *Contributor) GetReposURL() string { 2193 if c == nil || c.ReposURL == nil { 2194 return "" 2195 } 2196 return *c.ReposURL 2197 } 2198 2199 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 2200 func (c *Contributor) GetSiteAdmin() bool { 2201 if c == nil || c.SiteAdmin == nil { 2202 return false 2203 } 2204 return *c.SiteAdmin 2205 } 2206 2207 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 2208 func (c *Contributor) GetStarredURL() string { 2209 if c == nil || c.StarredURL == nil { 2210 return "" 2211 } 2212 return *c.StarredURL 2213 } 2214 2215 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 2216 func (c *Contributor) GetSubscriptionsURL() string { 2217 if c == nil || c.SubscriptionsURL == nil { 2218 return "" 2219 } 2220 return *c.SubscriptionsURL 2221 } 2222 2223 // GetType returns the Type field if it's non-nil, zero value otherwise. 2224 func (c *Contributor) GetType() string { 2225 if c == nil || c.Type == nil { 2226 return "" 2227 } 2228 return *c.Type 2229 } 2230 2231 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2232 func (c *Contributor) GetURL() string { 2233 if c == nil || c.URL == nil { 2234 return "" 2235 } 2236 return *c.URL 2237 } 2238 2239 // GetAuthor returns the Author field. 2240 func (c *ContributorStats) GetAuthor() *Contributor { 2241 if c == nil { 2242 return nil 2243 } 2244 return c.Author 2245 } 2246 2247 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 2248 func (c *ContributorStats) GetTotal() int { 2249 if c == nil || c.Total == nil { 2250 return 0 2251 } 2252 return *c.Total 2253 } 2254 2255 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 2256 func (c *CreateCheckRunOptions) GetCompletedAt() Timestamp { 2257 if c == nil || c.CompletedAt == nil { 2258 return Timestamp{} 2259 } 2260 return *c.CompletedAt 2261 } 2262 2263 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 2264 func (c *CreateCheckRunOptions) GetConclusion() string { 2265 if c == nil || c.Conclusion == nil { 2266 return "" 2267 } 2268 return *c.Conclusion 2269 } 2270 2271 // GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 2272 func (c *CreateCheckRunOptions) GetDetailsURL() string { 2273 if c == nil || c.DetailsURL == nil { 2274 return "" 2275 } 2276 return *c.DetailsURL 2277 } 2278 2279 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 2280 func (c *CreateCheckRunOptions) GetExternalID() string { 2281 if c == nil || c.ExternalID == nil { 2282 return "" 2283 } 2284 return *c.ExternalID 2285 } 2286 2287 // GetOutput returns the Output field. 2288 func (c *CreateCheckRunOptions) GetOutput() *CheckRunOutput { 2289 if c == nil { 2290 return nil 2291 } 2292 return c.Output 2293 } 2294 2295 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 2296 func (c *CreateCheckRunOptions) GetStartedAt() Timestamp { 2297 if c == nil || c.StartedAt == nil { 2298 return Timestamp{} 2299 } 2300 return *c.StartedAt 2301 } 2302 2303 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 2304 func (c *CreateCheckRunOptions) GetStatus() string { 2305 if c == nil || c.Status == nil { 2306 return "" 2307 } 2308 return *c.Status 2309 } 2310 2311 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 2312 func (c *CreateCheckSuiteOptions) GetHeadBranch() string { 2313 if c == nil || c.HeadBranch == nil { 2314 return "" 2315 } 2316 return *c.HeadBranch 2317 } 2318 2319 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 2320 func (c *CreateEvent) GetDescription() string { 2321 if c == nil || c.Description == nil { 2322 return "" 2323 } 2324 return *c.Description 2325 } 2326 2327 // GetInstallation returns the Installation field. 2328 func (c *CreateEvent) GetInstallation() *Installation { 2329 if c == nil { 2330 return nil 2331 } 2332 return c.Installation 2333 } 2334 2335 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 2336 func (c *CreateEvent) GetMasterBranch() string { 2337 if c == nil || c.MasterBranch == nil { 2338 return "" 2339 } 2340 return *c.MasterBranch 2341 } 2342 2343 // GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 2344 func (c *CreateEvent) GetPusherType() string { 2345 if c == nil || c.PusherType == nil { 2346 return "" 2347 } 2348 return *c.PusherType 2349 } 2350 2351 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 2352 func (c *CreateEvent) GetRef() string { 2353 if c == nil || c.Ref == nil { 2354 return "" 2355 } 2356 return *c.Ref 2357 } 2358 2359 // GetRefType returns the RefType field if it's non-nil, zero value otherwise. 2360 func (c *CreateEvent) GetRefType() string { 2361 if c == nil || c.RefType == nil { 2362 return "" 2363 } 2364 return *c.RefType 2365 } 2366 2367 // GetRepo returns the Repo field. 2368 func (c *CreateEvent) GetRepo() *Repository { 2369 if c == nil { 2370 return nil 2371 } 2372 return c.Repo 2373 } 2374 2375 // GetSender returns the Sender field. 2376 func (c *CreateEvent) GetSender() *User { 2377 if c == nil { 2378 return nil 2379 } 2380 return c.Sender 2381 } 2382 2383 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 2384 func (c *CreateOrgInvitationOptions) GetEmail() string { 2385 if c == nil || c.Email == nil { 2386 return "" 2387 } 2388 return *c.Email 2389 } 2390 2391 // GetInviteeID returns the InviteeID field if it's non-nil, zero value otherwise. 2392 func (c *CreateOrgInvitationOptions) GetInviteeID() int64 { 2393 if c == nil || c.InviteeID == nil { 2394 return 0 2395 } 2396 return *c.InviteeID 2397 } 2398 2399 // GetRole returns the Role field if it's non-nil, zero value otherwise. 2400 func (c *CreateOrgInvitationOptions) GetRole() string { 2401 if c == nil || c.Role == nil { 2402 return "" 2403 } 2404 return *c.Role 2405 } 2406 2407 // GetBody returns the Body field if it's non-nil, zero value otherwise. 2408 func (c *CreateUserProjectOptions) GetBody() string { 2409 if c == nil || c.Body == nil { 2410 return "" 2411 } 2412 return *c.Body 2413 } 2414 2415 // GetInstallation returns the Installation field. 2416 func (d *DeleteEvent) GetInstallation() *Installation { 2417 if d == nil { 2418 return nil 2419 } 2420 return d.Installation 2421 } 2422 2423 // GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 2424 func (d *DeleteEvent) GetPusherType() string { 2425 if d == nil || d.PusherType == nil { 2426 return "" 2427 } 2428 return *d.PusherType 2429 } 2430 2431 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 2432 func (d *DeleteEvent) GetRef() string { 2433 if d == nil || d.Ref == nil { 2434 return "" 2435 } 2436 return *d.Ref 2437 } 2438 2439 // GetRefType returns the RefType field if it's non-nil, zero value otherwise. 2440 func (d *DeleteEvent) GetRefType() string { 2441 if d == nil || d.RefType == nil { 2442 return "" 2443 } 2444 return *d.RefType 2445 } 2446 2447 // GetRepo returns the Repo field. 2448 func (d *DeleteEvent) GetRepo() *Repository { 2449 if d == nil { 2450 return nil 2451 } 2452 return d.Repo 2453 } 2454 2455 // GetSender returns the Sender field. 2456 func (d *DeleteEvent) GetSender() *User { 2457 if d == nil { 2458 return nil 2459 } 2460 return d.Sender 2461 } 2462 2463 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2464 func (d *DeployKeyEvent) GetAction() string { 2465 if d == nil || d.Action == nil { 2466 return "" 2467 } 2468 return *d.Action 2469 } 2470 2471 // GetKey returns the Key field. 2472 func (d *DeployKeyEvent) GetKey() *Key { 2473 if d == nil { 2474 return nil 2475 } 2476 return d.Key 2477 } 2478 2479 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2480 func (d *Deployment) GetCreatedAt() Timestamp { 2481 if d == nil || d.CreatedAt == nil { 2482 return Timestamp{} 2483 } 2484 return *d.CreatedAt 2485 } 2486 2487 // GetCreator returns the Creator field. 2488 func (d *Deployment) GetCreator() *User { 2489 if d == nil { 2490 return nil 2491 } 2492 return d.Creator 2493 } 2494 2495 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 2496 func (d *Deployment) GetDescription() string { 2497 if d == nil || d.Description == nil { 2498 return "" 2499 } 2500 return *d.Description 2501 } 2502 2503 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 2504 func (d *Deployment) GetEnvironment() string { 2505 if d == nil || d.Environment == nil { 2506 return "" 2507 } 2508 return *d.Environment 2509 } 2510 2511 // GetID returns the ID field if it's non-nil, zero value otherwise. 2512 func (d *Deployment) GetID() int64 { 2513 if d == nil || d.ID == nil { 2514 return 0 2515 } 2516 return *d.ID 2517 } 2518 2519 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2520 func (d *Deployment) GetNodeID() string { 2521 if d == nil || d.NodeID == nil { 2522 return "" 2523 } 2524 return *d.NodeID 2525 } 2526 2527 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 2528 func (d *Deployment) GetRef() string { 2529 if d == nil || d.Ref == nil { 2530 return "" 2531 } 2532 return *d.Ref 2533 } 2534 2535 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 2536 func (d *Deployment) GetRepositoryURL() string { 2537 if d == nil || d.RepositoryURL == nil { 2538 return "" 2539 } 2540 return *d.RepositoryURL 2541 } 2542 2543 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2544 func (d *Deployment) GetSHA() string { 2545 if d == nil || d.SHA == nil { 2546 return "" 2547 } 2548 return *d.SHA 2549 } 2550 2551 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 2552 func (d *Deployment) GetStatusesURL() string { 2553 if d == nil || d.StatusesURL == nil { 2554 return "" 2555 } 2556 return *d.StatusesURL 2557 } 2558 2559 // GetTask returns the Task field if it's non-nil, zero value otherwise. 2560 func (d *Deployment) GetTask() string { 2561 if d == nil || d.Task == nil { 2562 return "" 2563 } 2564 return *d.Task 2565 } 2566 2567 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2568 func (d *Deployment) GetUpdatedAt() Timestamp { 2569 if d == nil || d.UpdatedAt == nil { 2570 return Timestamp{} 2571 } 2572 return *d.UpdatedAt 2573 } 2574 2575 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2576 func (d *Deployment) GetURL() string { 2577 if d == nil || d.URL == nil { 2578 return "" 2579 } 2580 return *d.URL 2581 } 2582 2583 // GetDeployment returns the Deployment field. 2584 func (d *DeploymentEvent) GetDeployment() *Deployment { 2585 if d == nil { 2586 return nil 2587 } 2588 return d.Deployment 2589 } 2590 2591 // GetInstallation returns the Installation field. 2592 func (d *DeploymentEvent) GetInstallation() *Installation { 2593 if d == nil { 2594 return nil 2595 } 2596 return d.Installation 2597 } 2598 2599 // GetRepo returns the Repo field. 2600 func (d *DeploymentEvent) GetRepo() *Repository { 2601 if d == nil { 2602 return nil 2603 } 2604 return d.Repo 2605 } 2606 2607 // GetSender returns the Sender field. 2608 func (d *DeploymentEvent) GetSender() *User { 2609 if d == nil { 2610 return nil 2611 } 2612 return d.Sender 2613 } 2614 2615 // GetAutoMerge returns the AutoMerge field if it's non-nil, zero value otherwise. 2616 func (d *DeploymentRequest) GetAutoMerge() bool { 2617 if d == nil || d.AutoMerge == nil { 2618 return false 2619 } 2620 return *d.AutoMerge 2621 } 2622 2623 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 2624 func (d *DeploymentRequest) GetDescription() string { 2625 if d == nil || d.Description == nil { 2626 return "" 2627 } 2628 return *d.Description 2629 } 2630 2631 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 2632 func (d *DeploymentRequest) GetEnvironment() string { 2633 if d == nil || d.Environment == nil { 2634 return "" 2635 } 2636 return *d.Environment 2637 } 2638 2639 // GetProductionEnvironment returns the ProductionEnvironment field if it's non-nil, zero value otherwise. 2640 func (d *DeploymentRequest) GetProductionEnvironment() bool { 2641 if d == nil || d.ProductionEnvironment == nil { 2642 return false 2643 } 2644 return *d.ProductionEnvironment 2645 } 2646 2647 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 2648 func (d *DeploymentRequest) GetRef() string { 2649 if d == nil || d.Ref == nil { 2650 return "" 2651 } 2652 return *d.Ref 2653 } 2654 2655 // GetRequiredContexts returns the RequiredContexts field if it's non-nil, zero value otherwise. 2656 func (d *DeploymentRequest) GetRequiredContexts() []string { 2657 if d == nil || d.RequiredContexts == nil { 2658 return nil 2659 } 2660 return *d.RequiredContexts 2661 } 2662 2663 // GetTask returns the Task field if it's non-nil, zero value otherwise. 2664 func (d *DeploymentRequest) GetTask() string { 2665 if d == nil || d.Task == nil { 2666 return "" 2667 } 2668 return *d.Task 2669 } 2670 2671 // GetTransientEnvironment returns the TransientEnvironment field if it's non-nil, zero value otherwise. 2672 func (d *DeploymentRequest) GetTransientEnvironment() bool { 2673 if d == nil || d.TransientEnvironment == nil { 2674 return false 2675 } 2676 return *d.TransientEnvironment 2677 } 2678 2679 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2680 func (d *DeploymentStatus) GetCreatedAt() Timestamp { 2681 if d == nil || d.CreatedAt == nil { 2682 return Timestamp{} 2683 } 2684 return *d.CreatedAt 2685 } 2686 2687 // GetCreator returns the Creator field. 2688 func (d *DeploymentStatus) GetCreator() *User { 2689 if d == nil { 2690 return nil 2691 } 2692 return d.Creator 2693 } 2694 2695 // GetDeploymentURL returns the DeploymentURL field if it's non-nil, zero value otherwise. 2696 func (d *DeploymentStatus) GetDeploymentURL() string { 2697 if d == nil || d.DeploymentURL == nil { 2698 return "" 2699 } 2700 return *d.DeploymentURL 2701 } 2702 2703 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 2704 func (d *DeploymentStatus) GetDescription() string { 2705 if d == nil || d.Description == nil { 2706 return "" 2707 } 2708 return *d.Description 2709 } 2710 2711 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 2712 func (d *DeploymentStatus) GetEnvironment() string { 2713 if d == nil || d.Environment == nil { 2714 return "" 2715 } 2716 return *d.Environment 2717 } 2718 2719 // GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. 2720 func (d *DeploymentStatus) GetEnvironmentURL() string { 2721 if d == nil || d.EnvironmentURL == nil { 2722 return "" 2723 } 2724 return *d.EnvironmentURL 2725 } 2726 2727 // GetID returns the ID field if it's non-nil, zero value otherwise. 2728 func (d *DeploymentStatus) GetID() int64 { 2729 if d == nil || d.ID == nil { 2730 return 0 2731 } 2732 return *d.ID 2733 } 2734 2735 // GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. 2736 func (d *DeploymentStatus) GetLogURL() string { 2737 if d == nil || d.LogURL == nil { 2738 return "" 2739 } 2740 return *d.LogURL 2741 } 2742 2743 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2744 func (d *DeploymentStatus) GetNodeID() string { 2745 if d == nil || d.NodeID == nil { 2746 return "" 2747 } 2748 return *d.NodeID 2749 } 2750 2751 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 2752 func (d *DeploymentStatus) GetRepositoryURL() string { 2753 if d == nil || d.RepositoryURL == nil { 2754 return "" 2755 } 2756 return *d.RepositoryURL 2757 } 2758 2759 // GetState returns the State field if it's non-nil, zero value otherwise. 2760 func (d *DeploymentStatus) GetState() string { 2761 if d == nil || d.State == nil { 2762 return "" 2763 } 2764 return *d.State 2765 } 2766 2767 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 2768 func (d *DeploymentStatus) GetTargetURL() string { 2769 if d == nil || d.TargetURL == nil { 2770 return "" 2771 } 2772 return *d.TargetURL 2773 } 2774 2775 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2776 func (d *DeploymentStatus) GetUpdatedAt() Timestamp { 2777 if d == nil || d.UpdatedAt == nil { 2778 return Timestamp{} 2779 } 2780 return *d.UpdatedAt 2781 } 2782 2783 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2784 func (d *DeploymentStatus) GetURL() string { 2785 if d == nil || d.URL == nil { 2786 return "" 2787 } 2788 return *d.URL 2789 } 2790 2791 // GetDeployment returns the Deployment field. 2792 func (d *DeploymentStatusEvent) GetDeployment() *Deployment { 2793 if d == nil { 2794 return nil 2795 } 2796 return d.Deployment 2797 } 2798 2799 // GetDeploymentStatus returns the DeploymentStatus field. 2800 func (d *DeploymentStatusEvent) GetDeploymentStatus() *DeploymentStatus { 2801 if d == nil { 2802 return nil 2803 } 2804 return d.DeploymentStatus 2805 } 2806 2807 // GetInstallation returns the Installation field. 2808 func (d *DeploymentStatusEvent) GetInstallation() *Installation { 2809 if d == nil { 2810 return nil 2811 } 2812 return d.Installation 2813 } 2814 2815 // GetRepo returns the Repo field. 2816 func (d *DeploymentStatusEvent) GetRepo() *Repository { 2817 if d == nil { 2818 return nil 2819 } 2820 return d.Repo 2821 } 2822 2823 // GetSender returns the Sender field. 2824 func (d *DeploymentStatusEvent) GetSender() *User { 2825 if d == nil { 2826 return nil 2827 } 2828 return d.Sender 2829 } 2830 2831 // GetAutoInactive returns the AutoInactive field if it's non-nil, zero value otherwise. 2832 func (d *DeploymentStatusRequest) GetAutoInactive() bool { 2833 if d == nil || d.AutoInactive == nil { 2834 return false 2835 } 2836 return *d.AutoInactive 2837 } 2838 2839 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 2840 func (d *DeploymentStatusRequest) GetDescription() string { 2841 if d == nil || d.Description == nil { 2842 return "" 2843 } 2844 return *d.Description 2845 } 2846 2847 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 2848 func (d *DeploymentStatusRequest) GetEnvironment() string { 2849 if d == nil || d.Environment == nil { 2850 return "" 2851 } 2852 return *d.Environment 2853 } 2854 2855 // GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. 2856 func (d *DeploymentStatusRequest) GetEnvironmentURL() string { 2857 if d == nil || d.EnvironmentURL == nil { 2858 return "" 2859 } 2860 return *d.EnvironmentURL 2861 } 2862 2863 // GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. 2864 func (d *DeploymentStatusRequest) GetLogURL() string { 2865 if d == nil || d.LogURL == nil { 2866 return "" 2867 } 2868 return *d.LogURL 2869 } 2870 2871 // GetState returns the State field if it's non-nil, zero value otherwise. 2872 func (d *DeploymentStatusRequest) GetState() string { 2873 if d == nil || d.State == nil { 2874 return "" 2875 } 2876 return *d.State 2877 } 2878 2879 // GetAuthor returns the Author field. 2880 func (d *DiscussionComment) GetAuthor() *User { 2881 if d == nil { 2882 return nil 2883 } 2884 return d.Author 2885 } 2886 2887 // GetBody returns the Body field if it's non-nil, zero value otherwise. 2888 func (d *DiscussionComment) GetBody() string { 2889 if d == nil || d.Body == nil { 2890 return "" 2891 } 2892 return *d.Body 2893 } 2894 2895 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 2896 func (d *DiscussionComment) GetBodyHTML() string { 2897 if d == nil || d.BodyHTML == nil { 2898 return "" 2899 } 2900 return *d.BodyHTML 2901 } 2902 2903 // GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. 2904 func (d *DiscussionComment) GetBodyVersion() string { 2905 if d == nil || d.BodyVersion == nil { 2906 return "" 2907 } 2908 return *d.BodyVersion 2909 } 2910 2911 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2912 func (d *DiscussionComment) GetCreatedAt() Timestamp { 2913 if d == nil || d.CreatedAt == nil { 2914 return Timestamp{} 2915 } 2916 return *d.CreatedAt 2917 } 2918 2919 // GetDiscussionURL returns the DiscussionURL field if it's non-nil, zero value otherwise. 2920 func (d *DiscussionComment) GetDiscussionURL() string { 2921 if d == nil || d.DiscussionURL == nil { 2922 return "" 2923 } 2924 return *d.DiscussionURL 2925 } 2926 2927 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2928 func (d *DiscussionComment) GetHTMLURL() string { 2929 if d == nil || d.HTMLURL == nil { 2930 return "" 2931 } 2932 return *d.HTMLURL 2933 } 2934 2935 // GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. 2936 func (d *DiscussionComment) GetLastEditedAt() Timestamp { 2937 if d == nil || d.LastEditedAt == nil { 2938 return Timestamp{} 2939 } 2940 return *d.LastEditedAt 2941 } 2942 2943 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2944 func (d *DiscussionComment) GetNodeID() string { 2945 if d == nil || d.NodeID == nil { 2946 return "" 2947 } 2948 return *d.NodeID 2949 } 2950 2951 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 2952 func (d *DiscussionComment) GetNumber() int { 2953 if d == nil || d.Number == nil { 2954 return 0 2955 } 2956 return *d.Number 2957 } 2958 2959 // GetReactions returns the Reactions field. 2960 func (d *DiscussionComment) GetReactions() *Reactions { 2961 if d == nil { 2962 return nil 2963 } 2964 return d.Reactions 2965 } 2966 2967 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2968 func (d *DiscussionComment) GetUpdatedAt() Timestamp { 2969 if d == nil || d.UpdatedAt == nil { 2970 return Timestamp{} 2971 } 2972 return *d.UpdatedAt 2973 } 2974 2975 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2976 func (d *DiscussionComment) GetURL() string { 2977 if d == nil || d.URL == nil { 2978 return "" 2979 } 2980 return *d.URL 2981 } 2982 2983 // GetTeams returns the Teams field if it's non-nil, zero value otherwise. 2984 func (d *DismissalRestrictionsRequest) GetTeams() []string { 2985 if d == nil || d.Teams == nil { 2986 return nil 2987 } 2988 return *d.Teams 2989 } 2990 2991 // GetUsers returns the Users field if it's non-nil, zero value otherwise. 2992 func (d *DismissalRestrictionsRequest) GetUsers() []string { 2993 if d == nil || d.Users == nil { 2994 return nil 2995 } 2996 return *d.Users 2997 } 2998 2999 // GetDismissalCommitID returns the DismissalCommitID field if it's non-nil, zero value otherwise. 3000 func (d *DismissedReview) GetDismissalCommitID() string { 3001 if d == nil || d.DismissalCommitID == nil { 3002 return "" 3003 } 3004 return *d.DismissalCommitID 3005 } 3006 3007 // GetDismissalMessage returns the DismissalMessage field if it's non-nil, zero value otherwise. 3008 func (d *DismissedReview) GetDismissalMessage() string { 3009 if d == nil || d.DismissalMessage == nil { 3010 return "" 3011 } 3012 return *d.DismissalMessage 3013 } 3014 3015 // GetReviewID returns the ReviewID field if it's non-nil, zero value otherwise. 3016 func (d *DismissedReview) GetReviewID() int64 { 3017 if d == nil || d.ReviewID == nil { 3018 return 0 3019 } 3020 return *d.ReviewID 3021 } 3022 3023 // GetState returns the State field if it's non-nil, zero value otherwise. 3024 func (d *DismissedReview) GetState() string { 3025 if d == nil || d.State == nil { 3026 return "" 3027 } 3028 return *d.State 3029 } 3030 3031 // GetClientPayload returns the ClientPayload field if it's non-nil, zero value otherwise. 3032 func (d *DispatchRequestOptions) GetClientPayload() json.RawMessage { 3033 if d == nil || d.ClientPayload == nil { 3034 return json.RawMessage{} 3035 } 3036 return *d.ClientPayload 3037 } 3038 3039 // GetBody returns the Body field if it's non-nil, zero value otherwise. 3040 func (d *DraftReviewComment) GetBody() string { 3041 if d == nil || d.Body == nil { 3042 return "" 3043 } 3044 return *d.Body 3045 } 3046 3047 // GetLine returns the Line field if it's non-nil, zero value otherwise. 3048 func (d *DraftReviewComment) GetLine() int { 3049 if d == nil || d.Line == nil { 3050 return 0 3051 } 3052 return *d.Line 3053 } 3054 3055 // GetPath returns the Path field if it's non-nil, zero value otherwise. 3056 func (d *DraftReviewComment) GetPath() string { 3057 if d == nil || d.Path == nil { 3058 return "" 3059 } 3060 return *d.Path 3061 } 3062 3063 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 3064 func (d *DraftReviewComment) GetPosition() int { 3065 if d == nil || d.Position == nil { 3066 return 0 3067 } 3068 return *d.Position 3069 } 3070 3071 // GetSide returns the Side field if it's non-nil, zero value otherwise. 3072 func (d *DraftReviewComment) GetSide() string { 3073 if d == nil || d.Side == nil { 3074 return "" 3075 } 3076 return *d.Side 3077 } 3078 3079 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 3080 func (d *DraftReviewComment) GetStartLine() int { 3081 if d == nil || d.StartLine == nil { 3082 return 0 3083 } 3084 return *d.StartLine 3085 } 3086 3087 // GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. 3088 func (d *DraftReviewComment) GetStartSide() string { 3089 if d == nil || d.StartSide == nil { 3090 return "" 3091 } 3092 return *d.StartSide 3093 } 3094 3095 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 3096 func (e *Enterprise) GetAvatarURL() string { 3097 if e == nil || e.AvatarURL == nil { 3098 return "" 3099 } 3100 return *e.AvatarURL 3101 } 3102 3103 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3104 func (e *Enterprise) GetCreatedAt() Timestamp { 3105 if e == nil || e.CreatedAt == nil { 3106 return Timestamp{} 3107 } 3108 return *e.CreatedAt 3109 } 3110 3111 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 3112 func (e *Enterprise) GetDescription() string { 3113 if e == nil || e.Description == nil { 3114 return "" 3115 } 3116 return *e.Description 3117 } 3118 3119 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3120 func (e *Enterprise) GetHTMLURL() string { 3121 if e == nil || e.HTMLURL == nil { 3122 return "" 3123 } 3124 return *e.HTMLURL 3125 } 3126 3127 // GetID returns the ID field if it's non-nil, zero value otherwise. 3128 func (e *Enterprise) GetID() int { 3129 if e == nil || e.ID == nil { 3130 return 0 3131 } 3132 return *e.ID 3133 } 3134 3135 // GetName returns the Name field if it's non-nil, zero value otherwise. 3136 func (e *Enterprise) GetName() string { 3137 if e == nil || e.Name == nil { 3138 return "" 3139 } 3140 return *e.Name 3141 } 3142 3143 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3144 func (e *Enterprise) GetNodeID() string { 3145 if e == nil || e.NodeID == nil { 3146 return "" 3147 } 3148 return *e.NodeID 3149 } 3150 3151 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 3152 func (e *Enterprise) GetSlug() string { 3153 if e == nil || e.Slug == nil { 3154 return "" 3155 } 3156 return *e.Slug 3157 } 3158 3159 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3160 func (e *Enterprise) GetUpdatedAt() Timestamp { 3161 if e == nil || e.UpdatedAt == nil { 3162 return Timestamp{} 3163 } 3164 return *e.UpdatedAt 3165 } 3166 3167 // GetWebsiteURL returns the WebsiteURL field if it's non-nil, zero value otherwise. 3168 func (e *Enterprise) GetWebsiteURL() string { 3169 if e == nil || e.WebsiteURL == nil { 3170 return "" 3171 } 3172 return *e.WebsiteURL 3173 } 3174 3175 // GetActor returns the Actor field. 3176 func (e *Event) GetActor() *User { 3177 if e == nil { 3178 return nil 3179 } 3180 return e.Actor 3181 } 3182 3183 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3184 func (e *Event) GetCreatedAt() time.Time { 3185 if e == nil || e.CreatedAt == nil { 3186 return time.Time{} 3187 } 3188 return *e.CreatedAt 3189 } 3190 3191 // GetID returns the ID field if it's non-nil, zero value otherwise. 3192 func (e *Event) GetID() string { 3193 if e == nil || e.ID == nil { 3194 return "" 3195 } 3196 return *e.ID 3197 } 3198 3199 // GetOrg returns the Org field. 3200 func (e *Event) GetOrg() *Organization { 3201 if e == nil { 3202 return nil 3203 } 3204 return e.Org 3205 } 3206 3207 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 3208 func (e *Event) GetPublic() bool { 3209 if e == nil || e.Public == nil { 3210 return false 3211 } 3212 return *e.Public 3213 } 3214 3215 // GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 3216 func (e *Event) GetRawPayload() json.RawMessage { 3217 if e == nil || e.RawPayload == nil { 3218 return json.RawMessage{} 3219 } 3220 return *e.RawPayload 3221 } 3222 3223 // GetRepo returns the Repo field. 3224 func (e *Event) GetRepo() *Repository { 3225 if e == nil { 3226 return nil 3227 } 3228 return e.Repo 3229 } 3230 3231 // GetType returns the Type field if it's non-nil, zero value otherwise. 3232 func (e *Event) GetType() string { 3233 if e == nil || e.Type == nil { 3234 return "" 3235 } 3236 return *e.Type 3237 } 3238 3239 // GetHRef returns the HRef field if it's non-nil, zero value otherwise. 3240 func (f *FeedLink) GetHRef() string { 3241 if f == nil || f.HRef == nil { 3242 return "" 3243 } 3244 return *f.HRef 3245 } 3246 3247 // GetType returns the Type field if it's non-nil, zero value otherwise. 3248 func (f *FeedLink) GetType() string { 3249 if f == nil || f.Type == nil { 3250 return "" 3251 } 3252 return *f.Type 3253 } 3254 3255 // GetCurrentUserActorURL returns the CurrentUserActorURL field if it's non-nil, zero value otherwise. 3256 func (f *Feeds) GetCurrentUserActorURL() string { 3257 if f == nil || f.CurrentUserActorURL == nil { 3258 return "" 3259 } 3260 return *f.CurrentUserActorURL 3261 } 3262 3263 // GetCurrentUserOrganizationURL returns the CurrentUserOrganizationURL field if it's non-nil, zero value otherwise. 3264 func (f *Feeds) GetCurrentUserOrganizationURL() string { 3265 if f == nil || f.CurrentUserOrganizationURL == nil { 3266 return "" 3267 } 3268 return *f.CurrentUserOrganizationURL 3269 } 3270 3271 // GetCurrentUserPublicURL returns the CurrentUserPublicURL field if it's non-nil, zero value otherwise. 3272 func (f *Feeds) GetCurrentUserPublicURL() string { 3273 if f == nil || f.CurrentUserPublicURL == nil { 3274 return "" 3275 } 3276 return *f.CurrentUserPublicURL 3277 } 3278 3279 // GetCurrentUserURL returns the CurrentUserURL field if it's non-nil, zero value otherwise. 3280 func (f *Feeds) GetCurrentUserURL() string { 3281 if f == nil || f.CurrentUserURL == nil { 3282 return "" 3283 } 3284 return *f.CurrentUserURL 3285 } 3286 3287 // GetTimelineURL returns the TimelineURL field if it's non-nil, zero value otherwise. 3288 func (f *Feeds) GetTimelineURL() string { 3289 if f == nil || f.TimelineURL == nil { 3290 return "" 3291 } 3292 return *f.TimelineURL 3293 } 3294 3295 // GetUserURL returns the UserURL field if it's non-nil, zero value otherwise. 3296 func (f *Feeds) GetUserURL() string { 3297 if f == nil || f.UserURL == nil { 3298 return "" 3299 } 3300 return *f.UserURL 3301 } 3302 3303 // GetForkee returns the Forkee field. 3304 func (f *ForkEvent) GetForkee() *Repository { 3305 if f == nil { 3306 return nil 3307 } 3308 return f.Forkee 3309 } 3310 3311 // GetInstallation returns the Installation field. 3312 func (f *ForkEvent) GetInstallation() *Installation { 3313 if f == nil { 3314 return nil 3315 } 3316 return f.Installation 3317 } 3318 3319 // GetRepo returns the Repo field. 3320 func (f *ForkEvent) GetRepo() *Repository { 3321 if f == nil { 3322 return nil 3323 } 3324 return f.Repo 3325 } 3326 3327 // GetSender returns the Sender field. 3328 func (f *ForkEvent) GetSender() *User { 3329 if f == nil { 3330 return nil 3331 } 3332 return f.Sender 3333 } 3334 3335 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 3336 func (g *Gist) GetComments() int { 3337 if g == nil || g.Comments == nil { 3338 return 0 3339 } 3340 return *g.Comments 3341 } 3342 3343 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3344 func (g *Gist) GetCreatedAt() time.Time { 3345 if g == nil || g.CreatedAt == nil { 3346 return time.Time{} 3347 } 3348 return *g.CreatedAt 3349 } 3350 3351 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 3352 func (g *Gist) GetDescription() string { 3353 if g == nil || g.Description == nil { 3354 return "" 3355 } 3356 return *g.Description 3357 } 3358 3359 // GetGitPullURL returns the GitPullURL field if it's non-nil, zero value otherwise. 3360 func (g *Gist) GetGitPullURL() string { 3361 if g == nil || g.GitPullURL == nil { 3362 return "" 3363 } 3364 return *g.GitPullURL 3365 } 3366 3367 // GetGitPushURL returns the GitPushURL field if it's non-nil, zero value otherwise. 3368 func (g *Gist) GetGitPushURL() string { 3369 if g == nil || g.GitPushURL == nil { 3370 return "" 3371 } 3372 return *g.GitPushURL 3373 } 3374 3375 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3376 func (g *Gist) GetHTMLURL() string { 3377 if g == nil || g.HTMLURL == nil { 3378 return "" 3379 } 3380 return *g.HTMLURL 3381 } 3382 3383 // GetID returns the ID field if it's non-nil, zero value otherwise. 3384 func (g *Gist) GetID() string { 3385 if g == nil || g.ID == nil { 3386 return "" 3387 } 3388 return *g.ID 3389 } 3390 3391 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3392 func (g *Gist) GetNodeID() string { 3393 if g == nil || g.NodeID == nil { 3394 return "" 3395 } 3396 return *g.NodeID 3397 } 3398 3399 // GetOwner returns the Owner field. 3400 func (g *Gist) GetOwner() *User { 3401 if g == nil { 3402 return nil 3403 } 3404 return g.Owner 3405 } 3406 3407 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 3408 func (g *Gist) GetPublic() bool { 3409 if g == nil || g.Public == nil { 3410 return false 3411 } 3412 return *g.Public 3413 } 3414 3415 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3416 func (g *Gist) GetUpdatedAt() time.Time { 3417 if g == nil || g.UpdatedAt == nil { 3418 return time.Time{} 3419 } 3420 return *g.UpdatedAt 3421 } 3422 3423 // GetBody returns the Body field if it's non-nil, zero value otherwise. 3424 func (g *GistComment) GetBody() string { 3425 if g == nil || g.Body == nil { 3426 return "" 3427 } 3428 return *g.Body 3429 } 3430 3431 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3432 func (g *GistComment) GetCreatedAt() time.Time { 3433 if g == nil || g.CreatedAt == nil { 3434 return time.Time{} 3435 } 3436 return *g.CreatedAt 3437 } 3438 3439 // GetID returns the ID field if it's non-nil, zero value otherwise. 3440 func (g *GistComment) GetID() int64 { 3441 if g == nil || g.ID == nil { 3442 return 0 3443 } 3444 return *g.ID 3445 } 3446 3447 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3448 func (g *GistComment) GetURL() string { 3449 if g == nil || g.URL == nil { 3450 return "" 3451 } 3452 return *g.URL 3453 } 3454 3455 // GetUser returns the User field. 3456 func (g *GistComment) GetUser() *User { 3457 if g == nil { 3458 return nil 3459 } 3460 return g.User 3461 } 3462 3463 // GetChangeStatus returns the ChangeStatus field. 3464 func (g *GistCommit) GetChangeStatus() *CommitStats { 3465 if g == nil { 3466 return nil 3467 } 3468 return g.ChangeStatus 3469 } 3470 3471 // GetCommittedAt returns the CommittedAt field if it's non-nil, zero value otherwise. 3472 func (g *GistCommit) GetCommittedAt() Timestamp { 3473 if g == nil || g.CommittedAt == nil { 3474 return Timestamp{} 3475 } 3476 return *g.CommittedAt 3477 } 3478 3479 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3480 func (g *GistCommit) GetNodeID() string { 3481 if g == nil || g.NodeID == nil { 3482 return "" 3483 } 3484 return *g.NodeID 3485 } 3486 3487 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3488 func (g *GistCommit) GetURL() string { 3489 if g == nil || g.URL == nil { 3490 return "" 3491 } 3492 return *g.URL 3493 } 3494 3495 // GetUser returns the User field. 3496 func (g *GistCommit) GetUser() *User { 3497 if g == nil { 3498 return nil 3499 } 3500 return g.User 3501 } 3502 3503 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 3504 func (g *GistCommit) GetVersion() string { 3505 if g == nil || g.Version == nil { 3506 return "" 3507 } 3508 return *g.Version 3509 } 3510 3511 // GetContent returns the Content field if it's non-nil, zero value otherwise. 3512 func (g *GistFile) GetContent() string { 3513 if g == nil || g.Content == nil { 3514 return "" 3515 } 3516 return *g.Content 3517 } 3518 3519 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 3520 func (g *GistFile) GetFilename() string { 3521 if g == nil || g.Filename == nil { 3522 return "" 3523 } 3524 return *g.Filename 3525 } 3526 3527 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 3528 func (g *GistFile) GetLanguage() string { 3529 if g == nil || g.Language == nil { 3530 return "" 3531 } 3532 return *g.Language 3533 } 3534 3535 // GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 3536 func (g *GistFile) GetRawURL() string { 3537 if g == nil || g.RawURL == nil { 3538 return "" 3539 } 3540 return *g.RawURL 3541 } 3542 3543 // GetSize returns the Size field if it's non-nil, zero value otherwise. 3544 func (g *GistFile) GetSize() int { 3545 if g == nil || g.Size == nil { 3546 return 0 3547 } 3548 return *g.Size 3549 } 3550 3551 // GetType returns the Type field if it's non-nil, zero value otherwise. 3552 func (g *GistFile) GetType() string { 3553 if g == nil || g.Type == nil { 3554 return "" 3555 } 3556 return *g.Type 3557 } 3558 3559 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3560 func (g *GistFork) GetCreatedAt() Timestamp { 3561 if g == nil || g.CreatedAt == nil { 3562 return Timestamp{} 3563 } 3564 return *g.CreatedAt 3565 } 3566 3567 // GetID returns the ID field if it's non-nil, zero value otherwise. 3568 func (g *GistFork) GetID() string { 3569 if g == nil || g.ID == nil { 3570 return "" 3571 } 3572 return *g.ID 3573 } 3574 3575 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3576 func (g *GistFork) GetNodeID() string { 3577 if g == nil || g.NodeID == nil { 3578 return "" 3579 } 3580 return *g.NodeID 3581 } 3582 3583 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3584 func (g *GistFork) GetUpdatedAt() Timestamp { 3585 if g == nil || g.UpdatedAt == nil { 3586 return Timestamp{} 3587 } 3588 return *g.UpdatedAt 3589 } 3590 3591 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3592 func (g *GistFork) GetURL() string { 3593 if g == nil || g.URL == nil { 3594 return "" 3595 } 3596 return *g.URL 3597 } 3598 3599 // GetUser returns the User field. 3600 func (g *GistFork) GetUser() *User { 3601 if g == nil { 3602 return nil 3603 } 3604 return g.User 3605 } 3606 3607 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 3608 func (g *GistStats) GetPrivateGists() int { 3609 if g == nil || g.PrivateGists == nil { 3610 return 0 3611 } 3612 return *g.PrivateGists 3613 } 3614 3615 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 3616 func (g *GistStats) GetPublicGists() int { 3617 if g == nil || g.PublicGists == nil { 3618 return 0 3619 } 3620 return *g.PublicGists 3621 } 3622 3623 // GetTotalGists returns the TotalGists field if it's non-nil, zero value otherwise. 3624 func (g *GistStats) GetTotalGists() int { 3625 if g == nil || g.TotalGists == nil { 3626 return 0 3627 } 3628 return *g.TotalGists 3629 } 3630 3631 // GetAction returns the Action field if it's non-nil, zero value otherwise. 3632 func (g *GitHubAppAuthorizationEvent) GetAction() string { 3633 if g == nil || g.Action == nil { 3634 return "" 3635 } 3636 return *g.Action 3637 } 3638 3639 // GetSender returns the Sender field. 3640 func (g *GitHubAppAuthorizationEvent) GetSender() *User { 3641 if g == nil { 3642 return nil 3643 } 3644 return g.Sender 3645 } 3646 3647 // GetName returns the Name field if it's non-nil, zero value otherwise. 3648 func (g *Gitignore) GetName() string { 3649 if g == nil || g.Name == nil { 3650 return "" 3651 } 3652 return *g.Name 3653 } 3654 3655 // GetSource returns the Source field if it's non-nil, zero value otherwise. 3656 func (g *Gitignore) GetSource() string { 3657 if g == nil || g.Source == nil { 3658 return "" 3659 } 3660 return *g.Source 3661 } 3662 3663 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3664 func (g *GitObject) GetSHA() string { 3665 if g == nil || g.SHA == nil { 3666 return "" 3667 } 3668 return *g.SHA 3669 } 3670 3671 // GetType returns the Type field if it's non-nil, zero value otherwise. 3672 func (g *GitObject) GetType() string { 3673 if g == nil || g.Type == nil { 3674 return "" 3675 } 3676 return *g.Type 3677 } 3678 3679 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3680 func (g *GitObject) GetURL() string { 3681 if g == nil || g.URL == nil { 3682 return "" 3683 } 3684 return *g.URL 3685 } 3686 3687 // GetInstallation returns the Installation field. 3688 func (g *GollumEvent) GetInstallation() *Installation { 3689 if g == nil { 3690 return nil 3691 } 3692 return g.Installation 3693 } 3694 3695 // GetRepo returns the Repo field. 3696 func (g *GollumEvent) GetRepo() *Repository { 3697 if g == nil { 3698 return nil 3699 } 3700 return g.Repo 3701 } 3702 3703 // GetSender returns the Sender field. 3704 func (g *GollumEvent) GetSender() *User { 3705 if g == nil { 3706 return nil 3707 } 3708 return g.Sender 3709 } 3710 3711 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 3712 func (g *GPGEmail) GetEmail() string { 3713 if g == nil || g.Email == nil { 3714 return "" 3715 } 3716 return *g.Email 3717 } 3718 3719 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 3720 func (g *GPGEmail) GetVerified() bool { 3721 if g == nil || g.Verified == nil { 3722 return false 3723 } 3724 return *g.Verified 3725 } 3726 3727 // GetCanCertify returns the CanCertify field if it's non-nil, zero value otherwise. 3728 func (g *GPGKey) GetCanCertify() bool { 3729 if g == nil || g.CanCertify == nil { 3730 return false 3731 } 3732 return *g.CanCertify 3733 } 3734 3735 // GetCanEncryptComms returns the CanEncryptComms field if it's non-nil, zero value otherwise. 3736 func (g *GPGKey) GetCanEncryptComms() bool { 3737 if g == nil || g.CanEncryptComms == nil { 3738 return false 3739 } 3740 return *g.CanEncryptComms 3741 } 3742 3743 // GetCanEncryptStorage returns the CanEncryptStorage field if it's non-nil, zero value otherwise. 3744 func (g *GPGKey) GetCanEncryptStorage() bool { 3745 if g == nil || g.CanEncryptStorage == nil { 3746 return false 3747 } 3748 return *g.CanEncryptStorage 3749 } 3750 3751 // GetCanSign returns the CanSign field if it's non-nil, zero value otherwise. 3752 func (g *GPGKey) GetCanSign() bool { 3753 if g == nil || g.CanSign == nil { 3754 return false 3755 } 3756 return *g.CanSign 3757 } 3758 3759 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3760 func (g *GPGKey) GetCreatedAt() time.Time { 3761 if g == nil || g.CreatedAt == nil { 3762 return time.Time{} 3763 } 3764 return *g.CreatedAt 3765 } 3766 3767 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 3768 func (g *GPGKey) GetExpiresAt() time.Time { 3769 if g == nil || g.ExpiresAt == nil { 3770 return time.Time{} 3771 } 3772 return *g.ExpiresAt 3773 } 3774 3775 // GetID returns the ID field if it's non-nil, zero value otherwise. 3776 func (g *GPGKey) GetID() int64 { 3777 if g == nil || g.ID == nil { 3778 return 0 3779 } 3780 return *g.ID 3781 } 3782 3783 // GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. 3784 func (g *GPGKey) GetKeyID() string { 3785 if g == nil || g.KeyID == nil { 3786 return "" 3787 } 3788 return *g.KeyID 3789 } 3790 3791 // GetPrimaryKeyID returns the PrimaryKeyID field if it's non-nil, zero value otherwise. 3792 func (g *GPGKey) GetPrimaryKeyID() int64 { 3793 if g == nil || g.PrimaryKeyID == nil { 3794 return 0 3795 } 3796 return *g.PrimaryKeyID 3797 } 3798 3799 // GetPublicKey returns the PublicKey field if it's non-nil, zero value otherwise. 3800 func (g *GPGKey) GetPublicKey() string { 3801 if g == nil || g.PublicKey == nil { 3802 return "" 3803 } 3804 return *g.PublicKey 3805 } 3806 3807 // GetApp returns the App field. 3808 func (g *Grant) GetApp() *AuthorizationApp { 3809 if g == nil { 3810 return nil 3811 } 3812 return g.App 3813 } 3814 3815 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3816 func (g *Grant) GetCreatedAt() Timestamp { 3817 if g == nil || g.CreatedAt == nil { 3818 return Timestamp{} 3819 } 3820 return *g.CreatedAt 3821 } 3822 3823 // GetID returns the ID field if it's non-nil, zero value otherwise. 3824 func (g *Grant) GetID() int64 { 3825 if g == nil || g.ID == nil { 3826 return 0 3827 } 3828 return *g.ID 3829 } 3830 3831 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3832 func (g *Grant) GetUpdatedAt() Timestamp { 3833 if g == nil || g.UpdatedAt == nil { 3834 return Timestamp{} 3835 } 3836 return *g.UpdatedAt 3837 } 3838 3839 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3840 func (g *Grant) GetURL() string { 3841 if g == nil || g.URL == nil { 3842 return "" 3843 } 3844 return *g.URL 3845 } 3846 3847 // GetAuthor returns the Author field. 3848 func (h *HeadCommit) GetAuthor() *CommitAuthor { 3849 if h == nil { 3850 return nil 3851 } 3852 return h.Author 3853 } 3854 3855 // GetCommitter returns the Committer field. 3856 func (h *HeadCommit) GetCommitter() *CommitAuthor { 3857 if h == nil { 3858 return nil 3859 } 3860 return h.Committer 3861 } 3862 3863 // GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. 3864 func (h *HeadCommit) GetDistinct() bool { 3865 if h == nil || h.Distinct == nil { 3866 return false 3867 } 3868 return *h.Distinct 3869 } 3870 3871 // GetID returns the ID field if it's non-nil, zero value otherwise. 3872 func (h *HeadCommit) GetID() string { 3873 if h == nil || h.ID == nil { 3874 return "" 3875 } 3876 return *h.ID 3877 } 3878 3879 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 3880 func (h *HeadCommit) GetMessage() string { 3881 if h == nil || h.Message == nil { 3882 return "" 3883 } 3884 return *h.Message 3885 } 3886 3887 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3888 func (h *HeadCommit) GetSHA() string { 3889 if h == nil || h.SHA == nil { 3890 return "" 3891 } 3892 return *h.SHA 3893 } 3894 3895 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 3896 func (h *HeadCommit) GetTimestamp() Timestamp { 3897 if h == nil || h.Timestamp == nil { 3898 return Timestamp{} 3899 } 3900 return *h.Timestamp 3901 } 3902 3903 // GetTreeID returns the TreeID field if it's non-nil, zero value otherwise. 3904 func (h *HeadCommit) GetTreeID() string { 3905 if h == nil || h.TreeID == nil { 3906 return "" 3907 } 3908 return *h.TreeID 3909 } 3910 3911 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3912 func (h *HeadCommit) GetURL() string { 3913 if h == nil || h.URL == nil { 3914 return "" 3915 } 3916 return *h.URL 3917 } 3918 3919 // GetActive returns the Active field if it's non-nil, zero value otherwise. 3920 func (h *Hook) GetActive() bool { 3921 if h == nil || h.Active == nil { 3922 return false 3923 } 3924 return *h.Active 3925 } 3926 3927 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3928 func (h *Hook) GetCreatedAt() time.Time { 3929 if h == nil || h.CreatedAt == nil { 3930 return time.Time{} 3931 } 3932 return *h.CreatedAt 3933 } 3934 3935 // GetID returns the ID field if it's non-nil, zero value otherwise. 3936 func (h *Hook) GetID() int64 { 3937 if h == nil || h.ID == nil { 3938 return 0 3939 } 3940 return *h.ID 3941 } 3942 3943 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3944 func (h *Hook) GetUpdatedAt() time.Time { 3945 if h == nil || h.UpdatedAt == nil { 3946 return time.Time{} 3947 } 3948 return *h.UpdatedAt 3949 } 3950 3951 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3952 func (h *Hook) GetURL() string { 3953 if h == nil || h.URL == nil { 3954 return "" 3955 } 3956 return *h.URL 3957 } 3958 3959 // GetActiveHooks returns the ActiveHooks field if it's non-nil, zero value otherwise. 3960 func (h *HookStats) GetActiveHooks() int { 3961 if h == nil || h.ActiveHooks == nil { 3962 return 0 3963 } 3964 return *h.ActiveHooks 3965 } 3966 3967 // GetInactiveHooks returns the InactiveHooks field if it's non-nil, zero value otherwise. 3968 func (h *HookStats) GetInactiveHooks() int { 3969 if h == nil || h.InactiveHooks == nil { 3970 return 0 3971 } 3972 return *h.InactiveHooks 3973 } 3974 3975 // GetTotalHooks returns the TotalHooks field if it's non-nil, zero value otherwise. 3976 func (h *HookStats) GetTotalHooks() int { 3977 if h == nil || h.TotalHooks == nil { 3978 return 0 3979 } 3980 return *h.TotalHooks 3981 } 3982 3983 // GetGroupDescription returns the GroupDescription field if it's non-nil, zero value otherwise. 3984 func (i *IDPGroup) GetGroupDescription() string { 3985 if i == nil || i.GroupDescription == nil { 3986 return "" 3987 } 3988 return *i.GroupDescription 3989 } 3990 3991 // GetGroupID returns the GroupID field if it's non-nil, zero value otherwise. 3992 func (i *IDPGroup) GetGroupID() string { 3993 if i == nil || i.GroupID == nil { 3994 return "" 3995 } 3996 return *i.GroupID 3997 } 3998 3999 // GetGroupName returns the GroupName field if it's non-nil, zero value otherwise. 4000 func (i *IDPGroup) GetGroupName() string { 4001 if i == nil || i.GroupName == nil { 4002 return "" 4003 } 4004 return *i.GroupName 4005 } 4006 4007 // GetAuthorsCount returns the AuthorsCount field if it's non-nil, zero value otherwise. 4008 func (i *Import) GetAuthorsCount() int { 4009 if i == nil || i.AuthorsCount == nil { 4010 return 0 4011 } 4012 return *i.AuthorsCount 4013 } 4014 4015 // GetAuthorsURL returns the AuthorsURL field if it's non-nil, zero value otherwise. 4016 func (i *Import) GetAuthorsURL() string { 4017 if i == nil || i.AuthorsURL == nil { 4018 return "" 4019 } 4020 return *i.AuthorsURL 4021 } 4022 4023 // GetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise. 4024 func (i *Import) GetCommitCount() int { 4025 if i == nil || i.CommitCount == nil { 4026 return 0 4027 } 4028 return *i.CommitCount 4029 } 4030 4031 // GetFailedStep returns the FailedStep field if it's non-nil, zero value otherwise. 4032 func (i *Import) GetFailedStep() string { 4033 if i == nil || i.FailedStep == nil { 4034 return "" 4035 } 4036 return *i.FailedStep 4037 } 4038 4039 // GetHasLargeFiles returns the HasLargeFiles field if it's non-nil, zero value otherwise. 4040 func (i *Import) GetHasLargeFiles() bool { 4041 if i == nil || i.HasLargeFiles == nil { 4042 return false 4043 } 4044 return *i.HasLargeFiles 4045 } 4046 4047 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4048 func (i *Import) GetHTMLURL() string { 4049 if i == nil || i.HTMLURL == nil { 4050 return "" 4051 } 4052 return *i.HTMLURL 4053 } 4054 4055 // GetHumanName returns the HumanName field if it's non-nil, zero value otherwise. 4056 func (i *Import) GetHumanName() string { 4057 if i == nil || i.HumanName == nil { 4058 return "" 4059 } 4060 return *i.HumanName 4061 } 4062 4063 // GetLargeFilesCount returns the LargeFilesCount field if it's non-nil, zero value otherwise. 4064 func (i *Import) GetLargeFilesCount() int { 4065 if i == nil || i.LargeFilesCount == nil { 4066 return 0 4067 } 4068 return *i.LargeFilesCount 4069 } 4070 4071 // GetLargeFilesSize returns the LargeFilesSize field if it's non-nil, zero value otherwise. 4072 func (i *Import) GetLargeFilesSize() int { 4073 if i == nil || i.LargeFilesSize == nil { 4074 return 0 4075 } 4076 return *i.LargeFilesSize 4077 } 4078 4079 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 4080 func (i *Import) GetMessage() string { 4081 if i == nil || i.Message == nil { 4082 return "" 4083 } 4084 return *i.Message 4085 } 4086 4087 // GetPercent returns the Percent field if it's non-nil, zero value otherwise. 4088 func (i *Import) GetPercent() int { 4089 if i == nil || i.Percent == nil { 4090 return 0 4091 } 4092 return *i.Percent 4093 } 4094 4095 // GetPushPercent returns the PushPercent field if it's non-nil, zero value otherwise. 4096 func (i *Import) GetPushPercent() int { 4097 if i == nil || i.PushPercent == nil { 4098 return 0 4099 } 4100 return *i.PushPercent 4101 } 4102 4103 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 4104 func (i *Import) GetRepositoryURL() string { 4105 if i == nil || i.RepositoryURL == nil { 4106 return "" 4107 } 4108 return *i.RepositoryURL 4109 } 4110 4111 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 4112 func (i *Import) GetStatus() string { 4113 if i == nil || i.Status == nil { 4114 return "" 4115 } 4116 return *i.Status 4117 } 4118 4119 // GetStatusText returns the StatusText field if it's non-nil, zero value otherwise. 4120 func (i *Import) GetStatusText() string { 4121 if i == nil || i.StatusText == nil { 4122 return "" 4123 } 4124 return *i.StatusText 4125 } 4126 4127 // GetTFVCProject returns the TFVCProject field if it's non-nil, zero value otherwise. 4128 func (i *Import) GetTFVCProject() string { 4129 if i == nil || i.TFVCProject == nil { 4130 return "" 4131 } 4132 return *i.TFVCProject 4133 } 4134 4135 // GetURL returns the URL field if it's non-nil, zero value otherwise. 4136 func (i *Import) GetURL() string { 4137 if i == nil || i.URL == nil { 4138 return "" 4139 } 4140 return *i.URL 4141 } 4142 4143 // GetUseLFS returns the UseLFS field if it's non-nil, zero value otherwise. 4144 func (i *Import) GetUseLFS() string { 4145 if i == nil || i.UseLFS == nil { 4146 return "" 4147 } 4148 return *i.UseLFS 4149 } 4150 4151 // GetVCS returns the VCS field if it's non-nil, zero value otherwise. 4152 func (i *Import) GetVCS() string { 4153 if i == nil || i.VCS == nil { 4154 return "" 4155 } 4156 return *i.VCS 4157 } 4158 4159 // GetVCSPassword returns the VCSPassword field if it's non-nil, zero value otherwise. 4160 func (i *Import) GetVCSPassword() string { 4161 if i == nil || i.VCSPassword == nil { 4162 return "" 4163 } 4164 return *i.VCSPassword 4165 } 4166 4167 // GetVCSURL returns the VCSURL field if it's non-nil, zero value otherwise. 4168 func (i *Import) GetVCSURL() string { 4169 if i == nil || i.VCSURL == nil { 4170 return "" 4171 } 4172 return *i.VCSURL 4173 } 4174 4175 // GetVCSUsername returns the VCSUsername field if it's non-nil, zero value otherwise. 4176 func (i *Import) GetVCSUsername() string { 4177 if i == nil || i.VCSUsername == nil { 4178 return "" 4179 } 4180 return *i.VCSUsername 4181 } 4182 4183 // GetAccessTokensURL returns the AccessTokensURL field if it's non-nil, zero value otherwise. 4184 func (i *Installation) GetAccessTokensURL() string { 4185 if i == nil || i.AccessTokensURL == nil { 4186 return "" 4187 } 4188 return *i.AccessTokensURL 4189 } 4190 4191 // GetAccount returns the Account field. 4192 func (i *Installation) GetAccount() *User { 4193 if i == nil { 4194 return nil 4195 } 4196 return i.Account 4197 } 4198 4199 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 4200 func (i *Installation) GetAppID() int64 { 4201 if i == nil || i.AppID == nil { 4202 return 0 4203 } 4204 return *i.AppID 4205 } 4206 4207 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4208 func (i *Installation) GetCreatedAt() Timestamp { 4209 if i == nil || i.CreatedAt == nil { 4210 return Timestamp{} 4211 } 4212 return *i.CreatedAt 4213 } 4214 4215 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4216 func (i *Installation) GetHTMLURL() string { 4217 if i == nil || i.HTMLURL == nil { 4218 return "" 4219 } 4220 return *i.HTMLURL 4221 } 4222 4223 // GetID returns the ID field if it's non-nil, zero value otherwise. 4224 func (i *Installation) GetID() int64 { 4225 if i == nil || i.ID == nil { 4226 return 0 4227 } 4228 return *i.ID 4229 } 4230 4231 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4232 func (i *Installation) GetNodeID() string { 4233 if i == nil || i.NodeID == nil { 4234 return "" 4235 } 4236 return *i.NodeID 4237 } 4238 4239 // GetPermissions returns the Permissions field. 4240 func (i *Installation) GetPermissions() *InstallationPermissions { 4241 if i == nil { 4242 return nil 4243 } 4244 return i.Permissions 4245 } 4246 4247 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 4248 func (i *Installation) GetRepositoriesURL() string { 4249 if i == nil || i.RepositoriesURL == nil { 4250 return "" 4251 } 4252 return *i.RepositoriesURL 4253 } 4254 4255 // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 4256 func (i *Installation) GetRepositorySelection() string { 4257 if i == nil || i.RepositorySelection == nil { 4258 return "" 4259 } 4260 return *i.RepositorySelection 4261 } 4262 4263 // GetSingleFileName returns the SingleFileName field if it's non-nil, zero value otherwise. 4264 func (i *Installation) GetSingleFileName() string { 4265 if i == nil || i.SingleFileName == nil { 4266 return "" 4267 } 4268 return *i.SingleFileName 4269 } 4270 4271 // GetTargetID returns the TargetID field if it's non-nil, zero value otherwise. 4272 func (i *Installation) GetTargetID() int64 { 4273 if i == nil || i.TargetID == nil { 4274 return 0 4275 } 4276 return *i.TargetID 4277 } 4278 4279 // GetTargetType returns the TargetType field if it's non-nil, zero value otherwise. 4280 func (i *Installation) GetTargetType() string { 4281 if i == nil || i.TargetType == nil { 4282 return "" 4283 } 4284 return *i.TargetType 4285 } 4286 4287 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4288 func (i *Installation) GetUpdatedAt() Timestamp { 4289 if i == nil || i.UpdatedAt == nil { 4290 return Timestamp{} 4291 } 4292 return *i.UpdatedAt 4293 } 4294 4295 // GetAction returns the Action field if it's non-nil, zero value otherwise. 4296 func (i *InstallationEvent) GetAction() string { 4297 if i == nil || i.Action == nil { 4298 return "" 4299 } 4300 return *i.Action 4301 } 4302 4303 // GetInstallation returns the Installation field. 4304 func (i *InstallationEvent) GetInstallation() *Installation { 4305 if i == nil { 4306 return nil 4307 } 4308 return i.Installation 4309 } 4310 4311 // GetSender returns the Sender field. 4312 func (i *InstallationEvent) GetSender() *User { 4313 if i == nil { 4314 return nil 4315 } 4316 return i.Sender 4317 } 4318 4319 // GetAdministration returns the Administration field if it's non-nil, zero value otherwise. 4320 func (i *InstallationPermissions) GetAdministration() string { 4321 if i == nil || i.Administration == nil { 4322 return "" 4323 } 4324 return *i.Administration 4325 } 4326 4327 // GetBlocking returns the Blocking field if it's non-nil, zero value otherwise. 4328 func (i *InstallationPermissions) GetBlocking() string { 4329 if i == nil || i.Blocking == nil { 4330 return "" 4331 } 4332 return *i.Blocking 4333 } 4334 4335 // GetChecks returns the Checks field if it's non-nil, zero value otherwise. 4336 func (i *InstallationPermissions) GetChecks() string { 4337 if i == nil || i.Checks == nil { 4338 return "" 4339 } 4340 return *i.Checks 4341 } 4342 4343 // GetContentReferences returns the ContentReferences field if it's non-nil, zero value otherwise. 4344 func (i *InstallationPermissions) GetContentReferences() string { 4345 if i == nil || i.ContentReferences == nil { 4346 return "" 4347 } 4348 return *i.ContentReferences 4349 } 4350 4351 // GetContents returns the Contents field if it's non-nil, zero value otherwise. 4352 func (i *InstallationPermissions) GetContents() string { 4353 if i == nil || i.Contents == nil { 4354 return "" 4355 } 4356 return *i.Contents 4357 } 4358 4359 // GetDeployments returns the Deployments field if it's non-nil, zero value otherwise. 4360 func (i *InstallationPermissions) GetDeployments() string { 4361 if i == nil || i.Deployments == nil { 4362 return "" 4363 } 4364 return *i.Deployments 4365 } 4366 4367 // GetEmails returns the Emails field if it's non-nil, zero value otherwise. 4368 func (i *InstallationPermissions) GetEmails() string { 4369 if i == nil || i.Emails == nil { 4370 return "" 4371 } 4372 return *i.Emails 4373 } 4374 4375 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 4376 func (i *InstallationPermissions) GetFollowers() string { 4377 if i == nil || i.Followers == nil { 4378 return "" 4379 } 4380 return *i.Followers 4381 } 4382 4383 // GetIssues returns the Issues field if it's non-nil, zero value otherwise. 4384 func (i *InstallationPermissions) GetIssues() string { 4385 if i == nil || i.Issues == nil { 4386 return "" 4387 } 4388 return *i.Issues 4389 } 4390 4391 // GetMembers returns the Members field if it's non-nil, zero value otherwise. 4392 func (i *InstallationPermissions) GetMembers() string { 4393 if i == nil || i.Members == nil { 4394 return "" 4395 } 4396 return *i.Members 4397 } 4398 4399 // GetMetadata returns the Metadata field if it's non-nil, zero value otherwise. 4400 func (i *InstallationPermissions) GetMetadata() string { 4401 if i == nil || i.Metadata == nil { 4402 return "" 4403 } 4404 return *i.Metadata 4405 } 4406 4407 // GetOrganizationAdministration returns the OrganizationAdministration field if it's non-nil, zero value otherwise. 4408 func (i *InstallationPermissions) GetOrganizationAdministration() string { 4409 if i == nil || i.OrganizationAdministration == nil { 4410 return "" 4411 } 4412 return *i.OrganizationAdministration 4413 } 4414 4415 // GetOrganizationHooks returns the OrganizationHooks field if it's non-nil, zero value otherwise. 4416 func (i *InstallationPermissions) GetOrganizationHooks() string { 4417 if i == nil || i.OrganizationHooks == nil { 4418 return "" 4419 } 4420 return *i.OrganizationHooks 4421 } 4422 4423 // GetOrganizationPlan returns the OrganizationPlan field if it's non-nil, zero value otherwise. 4424 func (i *InstallationPermissions) GetOrganizationPlan() string { 4425 if i == nil || i.OrganizationPlan == nil { 4426 return "" 4427 } 4428 return *i.OrganizationPlan 4429 } 4430 4431 // GetOrganizationPreReceiveHooks returns the OrganizationPreReceiveHooks field if it's non-nil, zero value otherwise. 4432 func (i *InstallationPermissions) GetOrganizationPreReceiveHooks() string { 4433 if i == nil || i.OrganizationPreReceiveHooks == nil { 4434 return "" 4435 } 4436 return *i.OrganizationPreReceiveHooks 4437 } 4438 4439 // GetOrganizationProjects returns the OrganizationProjects field if it's non-nil, zero value otherwise. 4440 func (i *InstallationPermissions) GetOrganizationProjects() string { 4441 if i == nil || i.OrganizationProjects == nil { 4442 return "" 4443 } 4444 return *i.OrganizationProjects 4445 } 4446 4447 // GetOrganizationUserBlocking returns the OrganizationUserBlocking field if it's non-nil, zero value otherwise. 4448 func (i *InstallationPermissions) GetOrganizationUserBlocking() string { 4449 if i == nil || i.OrganizationUserBlocking == nil { 4450 return "" 4451 } 4452 return *i.OrganizationUserBlocking 4453 } 4454 4455 // GetPackages returns the Packages field if it's non-nil, zero value otherwise. 4456 func (i *InstallationPermissions) GetPackages() string { 4457 if i == nil || i.Packages == nil { 4458 return "" 4459 } 4460 return *i.Packages 4461 } 4462 4463 // GetPages returns the Pages field if it's non-nil, zero value otherwise. 4464 func (i *InstallationPermissions) GetPages() string { 4465 if i == nil || i.Pages == nil { 4466 return "" 4467 } 4468 return *i.Pages 4469 } 4470 4471 // GetPullRequests returns the PullRequests field if it's non-nil, zero value otherwise. 4472 func (i *InstallationPermissions) GetPullRequests() string { 4473 if i == nil || i.PullRequests == nil { 4474 return "" 4475 } 4476 return *i.PullRequests 4477 } 4478 4479 // GetRepositoryHooks returns the RepositoryHooks field if it's non-nil, zero value otherwise. 4480 func (i *InstallationPermissions) GetRepositoryHooks() string { 4481 if i == nil || i.RepositoryHooks == nil { 4482 return "" 4483 } 4484 return *i.RepositoryHooks 4485 } 4486 4487 // GetRepositoryPreReceiveHooks returns the RepositoryPreReceiveHooks field if it's non-nil, zero value otherwise. 4488 func (i *InstallationPermissions) GetRepositoryPreReceiveHooks() string { 4489 if i == nil || i.RepositoryPreReceiveHooks == nil { 4490 return "" 4491 } 4492 return *i.RepositoryPreReceiveHooks 4493 } 4494 4495 // GetRepositoryProjects returns the RepositoryProjects field if it's non-nil, zero value otherwise. 4496 func (i *InstallationPermissions) GetRepositoryProjects() string { 4497 if i == nil || i.RepositoryProjects == nil { 4498 return "" 4499 } 4500 return *i.RepositoryProjects 4501 } 4502 4503 // GetSingleFile returns the SingleFile field if it's non-nil, zero value otherwise. 4504 func (i *InstallationPermissions) GetSingleFile() string { 4505 if i == nil || i.SingleFile == nil { 4506 return "" 4507 } 4508 return *i.SingleFile 4509 } 4510 4511 // GetStatuses returns the Statuses field if it's non-nil, zero value otherwise. 4512 func (i *InstallationPermissions) GetStatuses() string { 4513 if i == nil || i.Statuses == nil { 4514 return "" 4515 } 4516 return *i.Statuses 4517 } 4518 4519 // GetTeamDiscussions returns the TeamDiscussions field if it's non-nil, zero value otherwise. 4520 func (i *InstallationPermissions) GetTeamDiscussions() string { 4521 if i == nil || i.TeamDiscussions == nil { 4522 return "" 4523 } 4524 return *i.TeamDiscussions 4525 } 4526 4527 // GetVulnerabilityAlerts returns the VulnerabilityAlerts field if it's non-nil, zero value otherwise. 4528 func (i *InstallationPermissions) GetVulnerabilityAlerts() string { 4529 if i == nil || i.VulnerabilityAlerts == nil { 4530 return "" 4531 } 4532 return *i.VulnerabilityAlerts 4533 } 4534 4535 // GetAction returns the Action field if it's non-nil, zero value otherwise. 4536 func (i *InstallationRepositoriesEvent) GetAction() string { 4537 if i == nil || i.Action == nil { 4538 return "" 4539 } 4540 return *i.Action 4541 } 4542 4543 // GetInstallation returns the Installation field. 4544 func (i *InstallationRepositoriesEvent) GetInstallation() *Installation { 4545 if i == nil { 4546 return nil 4547 } 4548 return i.Installation 4549 } 4550 4551 // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 4552 func (i *InstallationRepositoriesEvent) GetRepositorySelection() string { 4553 if i == nil || i.RepositorySelection == nil { 4554 return "" 4555 } 4556 return *i.RepositorySelection 4557 } 4558 4559 // GetSender returns the Sender field. 4560 func (i *InstallationRepositoriesEvent) GetSender() *User { 4561 if i == nil { 4562 return nil 4563 } 4564 return i.Sender 4565 } 4566 4567 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 4568 func (i *InstallationToken) GetExpiresAt() time.Time { 4569 if i == nil || i.ExpiresAt == nil { 4570 return time.Time{} 4571 } 4572 return *i.ExpiresAt 4573 } 4574 4575 // GetPermissions returns the Permissions field. 4576 func (i *InstallationToken) GetPermissions() *InstallationPermissions { 4577 if i == nil { 4578 return nil 4579 } 4580 return i.Permissions 4581 } 4582 4583 // GetToken returns the Token field if it's non-nil, zero value otherwise. 4584 func (i *InstallationToken) GetToken() string { 4585 if i == nil || i.Token == nil { 4586 return "" 4587 } 4588 return *i.Token 4589 } 4590 4591 // GetPermissions returns the Permissions field. 4592 func (i *InstallationTokenOptions) GetPermissions() *InstallationPermissions { 4593 if i == nil { 4594 return nil 4595 } 4596 return i.Permissions 4597 } 4598 4599 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 4600 func (i *InteractionRestriction) GetExpiresAt() Timestamp { 4601 if i == nil || i.ExpiresAt == nil { 4602 return Timestamp{} 4603 } 4604 return *i.ExpiresAt 4605 } 4606 4607 // GetLimit returns the Limit field if it's non-nil, zero value otherwise. 4608 func (i *InteractionRestriction) GetLimit() string { 4609 if i == nil || i.Limit == nil { 4610 return "" 4611 } 4612 return *i.Limit 4613 } 4614 4615 // GetOrigin returns the Origin field if it's non-nil, zero value otherwise. 4616 func (i *InteractionRestriction) GetOrigin() string { 4617 if i == nil || i.Origin == nil { 4618 return "" 4619 } 4620 return *i.Origin 4621 } 4622 4623 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4624 func (i *Invitation) GetCreatedAt() time.Time { 4625 if i == nil || i.CreatedAt == nil { 4626 return time.Time{} 4627 } 4628 return *i.CreatedAt 4629 } 4630 4631 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 4632 func (i *Invitation) GetEmail() string { 4633 if i == nil || i.Email == nil { 4634 return "" 4635 } 4636 return *i.Email 4637 } 4638 4639 // GetID returns the ID field if it's non-nil, zero value otherwise. 4640 func (i *Invitation) GetID() int64 { 4641 if i == nil || i.ID == nil { 4642 return 0 4643 } 4644 return *i.ID 4645 } 4646 4647 // GetInvitationTeamURL returns the InvitationTeamURL field if it's non-nil, zero value otherwise. 4648 func (i *Invitation) GetInvitationTeamURL() string { 4649 if i == nil || i.InvitationTeamURL == nil { 4650 return "" 4651 } 4652 return *i.InvitationTeamURL 4653 } 4654 4655 // GetInviter returns the Inviter field. 4656 func (i *Invitation) GetInviter() *User { 4657 if i == nil { 4658 return nil 4659 } 4660 return i.Inviter 4661 } 4662 4663 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 4664 func (i *Invitation) GetLogin() string { 4665 if i == nil || i.Login == nil { 4666 return "" 4667 } 4668 return *i.Login 4669 } 4670 4671 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4672 func (i *Invitation) GetNodeID() string { 4673 if i == nil || i.NodeID == nil { 4674 return "" 4675 } 4676 return *i.NodeID 4677 } 4678 4679 // GetRole returns the Role field if it's non-nil, zero value otherwise. 4680 func (i *Invitation) GetRole() string { 4681 if i == nil || i.Role == nil { 4682 return "" 4683 } 4684 return *i.Role 4685 } 4686 4687 // GetTeamCount returns the TeamCount field if it's non-nil, zero value otherwise. 4688 func (i *Invitation) GetTeamCount() int { 4689 if i == nil || i.TeamCount == nil { 4690 return 0 4691 } 4692 return *i.TeamCount 4693 } 4694 4695 // GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 4696 func (i *Issue) GetActiveLockReason() string { 4697 if i == nil || i.ActiveLockReason == nil { 4698 return "" 4699 } 4700 return *i.ActiveLockReason 4701 } 4702 4703 // GetAssignee returns the Assignee field. 4704 func (i *Issue) GetAssignee() *User { 4705 if i == nil { 4706 return nil 4707 } 4708 return i.Assignee 4709 } 4710 4711 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 4712 func (i *Issue) GetAuthorAssociation() string { 4713 if i == nil || i.AuthorAssociation == nil { 4714 return "" 4715 } 4716 return *i.AuthorAssociation 4717 } 4718 4719 // GetBody returns the Body field if it's non-nil, zero value otherwise. 4720 func (i *Issue) GetBody() string { 4721 if i == nil || i.Body == nil { 4722 return "" 4723 } 4724 return *i.Body 4725 } 4726 4727 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 4728 func (i *Issue) GetClosedAt() time.Time { 4729 if i == nil || i.ClosedAt == nil { 4730 return time.Time{} 4731 } 4732 return *i.ClosedAt 4733 } 4734 4735 // GetClosedBy returns the ClosedBy field. 4736 func (i *Issue) GetClosedBy() *User { 4737 if i == nil { 4738 return nil 4739 } 4740 return i.ClosedBy 4741 } 4742 4743 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 4744 func (i *Issue) GetComments() int { 4745 if i == nil || i.Comments == nil { 4746 return 0 4747 } 4748 return *i.Comments 4749 } 4750 4751 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 4752 func (i *Issue) GetCommentsURL() string { 4753 if i == nil || i.CommentsURL == nil { 4754 return "" 4755 } 4756 return *i.CommentsURL 4757 } 4758 4759 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4760 func (i *Issue) GetCreatedAt() time.Time { 4761 if i == nil || i.CreatedAt == nil { 4762 return time.Time{} 4763 } 4764 return *i.CreatedAt 4765 } 4766 4767 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 4768 func (i *Issue) GetEventsURL() string { 4769 if i == nil || i.EventsURL == nil { 4770 return "" 4771 } 4772 return *i.EventsURL 4773 } 4774 4775 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4776 func (i *Issue) GetHTMLURL() string { 4777 if i == nil || i.HTMLURL == nil { 4778 return "" 4779 } 4780 return *i.HTMLURL 4781 } 4782 4783 // GetID returns the ID field if it's non-nil, zero value otherwise. 4784 func (i *Issue) GetID() int64 { 4785 if i == nil || i.ID == nil { 4786 return 0 4787 } 4788 return *i.ID 4789 } 4790 4791 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 4792 func (i *Issue) GetLabelsURL() string { 4793 if i == nil || i.LabelsURL == nil { 4794 return "" 4795 } 4796 return *i.LabelsURL 4797 } 4798 4799 // GetLocked returns the Locked field if it's non-nil, zero value otherwise. 4800 func (i *Issue) GetLocked() bool { 4801 if i == nil || i.Locked == nil { 4802 return false 4803 } 4804 return *i.Locked 4805 } 4806 4807 // GetMilestone returns the Milestone field. 4808 func (i *Issue) GetMilestone() *Milestone { 4809 if i == nil { 4810 return nil 4811 } 4812 return i.Milestone 4813 } 4814 4815 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4816 func (i *Issue) GetNodeID() string { 4817 if i == nil || i.NodeID == nil { 4818 return "" 4819 } 4820 return *i.NodeID 4821 } 4822 4823 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 4824 func (i *Issue) GetNumber() int { 4825 if i == nil || i.Number == nil { 4826 return 0 4827 } 4828 return *i.Number 4829 } 4830 4831 // GetPullRequestLinks returns the PullRequestLinks field. 4832 func (i *Issue) GetPullRequestLinks() *PullRequestLinks { 4833 if i == nil { 4834 return nil 4835 } 4836 return i.PullRequestLinks 4837 } 4838 4839 // GetReactions returns the Reactions field. 4840 func (i *Issue) GetReactions() *Reactions { 4841 if i == nil { 4842 return nil 4843 } 4844 return i.Reactions 4845 } 4846 4847 // GetRepository returns the Repository field. 4848 func (i *Issue) GetRepository() *Repository { 4849 if i == nil { 4850 return nil 4851 } 4852 return i.Repository 4853 } 4854 4855 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 4856 func (i *Issue) GetRepositoryURL() string { 4857 if i == nil || i.RepositoryURL == nil { 4858 return "" 4859 } 4860 return *i.RepositoryURL 4861 } 4862 4863 // GetState returns the State field if it's non-nil, zero value otherwise. 4864 func (i *Issue) GetState() string { 4865 if i == nil || i.State == nil { 4866 return "" 4867 } 4868 return *i.State 4869 } 4870 4871 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 4872 func (i *Issue) GetTitle() string { 4873 if i == nil || i.Title == nil { 4874 return "" 4875 } 4876 return *i.Title 4877 } 4878 4879 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4880 func (i *Issue) GetUpdatedAt() time.Time { 4881 if i == nil || i.UpdatedAt == nil { 4882 return time.Time{} 4883 } 4884 return *i.UpdatedAt 4885 } 4886 4887 // GetURL returns the URL field if it's non-nil, zero value otherwise. 4888 func (i *Issue) GetURL() string { 4889 if i == nil || i.URL == nil { 4890 return "" 4891 } 4892 return *i.URL 4893 } 4894 4895 // GetUser returns the User field. 4896 func (i *Issue) GetUser() *User { 4897 if i == nil { 4898 return nil 4899 } 4900 return i.User 4901 } 4902 4903 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 4904 func (i *IssueComment) GetAuthorAssociation() string { 4905 if i == nil || i.AuthorAssociation == nil { 4906 return "" 4907 } 4908 return *i.AuthorAssociation 4909 } 4910 4911 // GetBody returns the Body field if it's non-nil, zero value otherwise. 4912 func (i *IssueComment) GetBody() string { 4913 if i == nil || i.Body == nil { 4914 return "" 4915 } 4916 return *i.Body 4917 } 4918 4919 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4920 func (i *IssueComment) GetCreatedAt() time.Time { 4921 if i == nil || i.CreatedAt == nil { 4922 return time.Time{} 4923 } 4924 return *i.CreatedAt 4925 } 4926 4927 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4928 func (i *IssueComment) GetHTMLURL() string { 4929 if i == nil || i.HTMLURL == nil { 4930 return "" 4931 } 4932 return *i.HTMLURL 4933 } 4934 4935 // GetID returns the ID field if it's non-nil, zero value otherwise. 4936 func (i *IssueComment) GetID() int64 { 4937 if i == nil || i.ID == nil { 4938 return 0 4939 } 4940 return *i.ID 4941 } 4942 4943 // GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 4944 func (i *IssueComment) GetIssueURL() string { 4945 if i == nil || i.IssueURL == nil { 4946 return "" 4947 } 4948 return *i.IssueURL 4949 } 4950 4951 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4952 func (i *IssueComment) GetNodeID() string { 4953 if i == nil || i.NodeID == nil { 4954 return "" 4955 } 4956 return *i.NodeID 4957 } 4958 4959 // GetReactions returns the Reactions field. 4960 func (i *IssueComment) GetReactions() *Reactions { 4961 if i == nil { 4962 return nil 4963 } 4964 return i.Reactions 4965 } 4966 4967 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4968 func (i *IssueComment) GetUpdatedAt() time.Time { 4969 if i == nil || i.UpdatedAt == nil { 4970 return time.Time{} 4971 } 4972 return *i.UpdatedAt 4973 } 4974 4975 // GetURL returns the URL field if it's non-nil, zero value otherwise. 4976 func (i *IssueComment) GetURL() string { 4977 if i == nil || i.URL == nil { 4978 return "" 4979 } 4980 return *i.URL 4981 } 4982 4983 // GetUser returns the User field. 4984 func (i *IssueComment) GetUser() *User { 4985 if i == nil { 4986 return nil 4987 } 4988 return i.User 4989 } 4990 4991 // GetAction returns the Action field if it's non-nil, zero value otherwise. 4992 func (i *IssueCommentEvent) GetAction() string { 4993 if i == nil || i.Action == nil { 4994 return "" 4995 } 4996 return *i.Action 4997 } 4998 4999 // GetChanges returns the Changes field. 5000 func (i *IssueCommentEvent) GetChanges() *EditChange { 5001 if i == nil { 5002 return nil 5003 } 5004 return i.Changes 5005 } 5006 5007 // GetComment returns the Comment field. 5008 func (i *IssueCommentEvent) GetComment() *IssueComment { 5009 if i == nil { 5010 return nil 5011 } 5012 return i.Comment 5013 } 5014 5015 // GetInstallation returns the Installation field. 5016 func (i *IssueCommentEvent) GetInstallation() *Installation { 5017 if i == nil { 5018 return nil 5019 } 5020 return i.Installation 5021 } 5022 5023 // GetIssue returns the Issue field. 5024 func (i *IssueCommentEvent) GetIssue() *Issue { 5025 if i == nil { 5026 return nil 5027 } 5028 return i.Issue 5029 } 5030 5031 // GetRepo returns the Repo field. 5032 func (i *IssueCommentEvent) GetRepo() *Repository { 5033 if i == nil { 5034 return nil 5035 } 5036 return i.Repo 5037 } 5038 5039 // GetSender returns the Sender field. 5040 func (i *IssueCommentEvent) GetSender() *User { 5041 if i == nil { 5042 return nil 5043 } 5044 return i.Sender 5045 } 5046 5047 // GetActor returns the Actor field. 5048 func (i *IssueEvent) GetActor() *User { 5049 if i == nil { 5050 return nil 5051 } 5052 return i.Actor 5053 } 5054 5055 // GetAssignee returns the Assignee field. 5056 func (i *IssueEvent) GetAssignee() *User { 5057 if i == nil { 5058 return nil 5059 } 5060 return i.Assignee 5061 } 5062 5063 // GetAssigner returns the Assigner field. 5064 func (i *IssueEvent) GetAssigner() *User { 5065 if i == nil { 5066 return nil 5067 } 5068 return i.Assigner 5069 } 5070 5071 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 5072 func (i *IssueEvent) GetCommitID() string { 5073 if i == nil || i.CommitID == nil { 5074 return "" 5075 } 5076 return *i.CommitID 5077 } 5078 5079 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5080 func (i *IssueEvent) GetCreatedAt() time.Time { 5081 if i == nil || i.CreatedAt == nil { 5082 return time.Time{} 5083 } 5084 return *i.CreatedAt 5085 } 5086 5087 // GetDismissedReview returns the DismissedReview field. 5088 func (i *IssueEvent) GetDismissedReview() *DismissedReview { 5089 if i == nil { 5090 return nil 5091 } 5092 return i.DismissedReview 5093 } 5094 5095 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 5096 func (i *IssueEvent) GetEvent() string { 5097 if i == nil || i.Event == nil { 5098 return "" 5099 } 5100 return *i.Event 5101 } 5102 5103 // GetID returns the ID field if it's non-nil, zero value otherwise. 5104 func (i *IssueEvent) GetID() int64 { 5105 if i == nil || i.ID == nil { 5106 return 0 5107 } 5108 return *i.ID 5109 } 5110 5111 // GetIssue returns the Issue field. 5112 func (i *IssueEvent) GetIssue() *Issue { 5113 if i == nil { 5114 return nil 5115 } 5116 return i.Issue 5117 } 5118 5119 // GetLabel returns the Label field. 5120 func (i *IssueEvent) GetLabel() *Label { 5121 if i == nil { 5122 return nil 5123 } 5124 return i.Label 5125 } 5126 5127 // GetLockReason returns the LockReason field if it's non-nil, zero value otherwise. 5128 func (i *IssueEvent) GetLockReason() string { 5129 if i == nil || i.LockReason == nil { 5130 return "" 5131 } 5132 return *i.LockReason 5133 } 5134 5135 // GetMilestone returns the Milestone field. 5136 func (i *IssueEvent) GetMilestone() *Milestone { 5137 if i == nil { 5138 return nil 5139 } 5140 return i.Milestone 5141 } 5142 5143 // GetProjectCard returns the ProjectCard field. 5144 func (i *IssueEvent) GetProjectCard() *ProjectCard { 5145 if i == nil { 5146 return nil 5147 } 5148 return i.ProjectCard 5149 } 5150 5151 // GetRename returns the Rename field. 5152 func (i *IssueEvent) GetRename() *Rename { 5153 if i == nil { 5154 return nil 5155 } 5156 return i.Rename 5157 } 5158 5159 // GetRequestedReviewer returns the RequestedReviewer field. 5160 func (i *IssueEvent) GetRequestedReviewer() *User { 5161 if i == nil { 5162 return nil 5163 } 5164 return i.RequestedReviewer 5165 } 5166 5167 // GetReviewRequester returns the ReviewRequester field. 5168 func (i *IssueEvent) GetReviewRequester() *User { 5169 if i == nil { 5170 return nil 5171 } 5172 return i.ReviewRequester 5173 } 5174 5175 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5176 func (i *IssueEvent) GetURL() string { 5177 if i == nil || i.URL == nil { 5178 return "" 5179 } 5180 return *i.URL 5181 } 5182 5183 // GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. 5184 func (i *IssueImport) GetAssignee() string { 5185 if i == nil || i.Assignee == nil { 5186 return "" 5187 } 5188 return *i.Assignee 5189 } 5190 5191 // GetClosed returns the Closed field if it's non-nil, zero value otherwise. 5192 func (i *IssueImport) GetClosed() bool { 5193 if i == nil || i.Closed == nil { 5194 return false 5195 } 5196 return *i.Closed 5197 } 5198 5199 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 5200 func (i *IssueImport) GetClosedAt() time.Time { 5201 if i == nil || i.ClosedAt == nil { 5202 return time.Time{} 5203 } 5204 return *i.ClosedAt 5205 } 5206 5207 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5208 func (i *IssueImport) GetCreatedAt() time.Time { 5209 if i == nil || i.CreatedAt == nil { 5210 return time.Time{} 5211 } 5212 return *i.CreatedAt 5213 } 5214 5215 // GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. 5216 func (i *IssueImport) GetMilestone() int { 5217 if i == nil || i.Milestone == nil { 5218 return 0 5219 } 5220 return *i.Milestone 5221 } 5222 5223 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5224 func (i *IssueImport) GetUpdatedAt() time.Time { 5225 if i == nil || i.UpdatedAt == nil { 5226 return time.Time{} 5227 } 5228 return *i.UpdatedAt 5229 } 5230 5231 // GetCode returns the Code field if it's non-nil, zero value otherwise. 5232 func (i *IssueImportError) GetCode() string { 5233 if i == nil || i.Code == nil { 5234 return "" 5235 } 5236 return *i.Code 5237 } 5238 5239 // GetField returns the Field field if it's non-nil, zero value otherwise. 5240 func (i *IssueImportError) GetField() string { 5241 if i == nil || i.Field == nil { 5242 return "" 5243 } 5244 return *i.Field 5245 } 5246 5247 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 5248 func (i *IssueImportError) GetLocation() string { 5249 if i == nil || i.Location == nil { 5250 return "" 5251 } 5252 return *i.Location 5253 } 5254 5255 // GetResource returns the Resource field if it's non-nil, zero value otherwise. 5256 func (i *IssueImportError) GetResource() string { 5257 if i == nil || i.Resource == nil { 5258 return "" 5259 } 5260 return *i.Resource 5261 } 5262 5263 // GetValue returns the Value field if it's non-nil, zero value otherwise. 5264 func (i *IssueImportError) GetValue() string { 5265 if i == nil || i.Value == nil { 5266 return "" 5267 } 5268 return *i.Value 5269 } 5270 5271 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5272 func (i *IssueImportResponse) GetCreatedAt() time.Time { 5273 if i == nil || i.CreatedAt == nil { 5274 return time.Time{} 5275 } 5276 return *i.CreatedAt 5277 } 5278 5279 // GetDocumentationURL returns the DocumentationURL field if it's non-nil, zero value otherwise. 5280 func (i *IssueImportResponse) GetDocumentationURL() string { 5281 if i == nil || i.DocumentationURL == nil { 5282 return "" 5283 } 5284 return *i.DocumentationURL 5285 } 5286 5287 // GetID returns the ID field if it's non-nil, zero value otherwise. 5288 func (i *IssueImportResponse) GetID() int { 5289 if i == nil || i.ID == nil { 5290 return 0 5291 } 5292 return *i.ID 5293 } 5294 5295 // GetImportIssuesURL returns the ImportIssuesURL field if it's non-nil, zero value otherwise. 5296 func (i *IssueImportResponse) GetImportIssuesURL() string { 5297 if i == nil || i.ImportIssuesURL == nil { 5298 return "" 5299 } 5300 return *i.ImportIssuesURL 5301 } 5302 5303 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 5304 func (i *IssueImportResponse) GetMessage() string { 5305 if i == nil || i.Message == nil { 5306 return "" 5307 } 5308 return *i.Message 5309 } 5310 5311 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 5312 func (i *IssueImportResponse) GetRepositoryURL() string { 5313 if i == nil || i.RepositoryURL == nil { 5314 return "" 5315 } 5316 return *i.RepositoryURL 5317 } 5318 5319 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 5320 func (i *IssueImportResponse) GetStatus() string { 5321 if i == nil || i.Status == nil { 5322 return "" 5323 } 5324 return *i.Status 5325 } 5326 5327 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5328 func (i *IssueImportResponse) GetUpdatedAt() time.Time { 5329 if i == nil || i.UpdatedAt == nil { 5330 return time.Time{} 5331 } 5332 return *i.UpdatedAt 5333 } 5334 5335 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5336 func (i *IssueImportResponse) GetURL() string { 5337 if i == nil || i.URL == nil { 5338 return "" 5339 } 5340 return *i.URL 5341 } 5342 5343 // GetSince returns the Since field if it's non-nil, zero value otherwise. 5344 func (i *IssueListCommentsOptions) GetSince() time.Time { 5345 if i == nil || i.Since == nil { 5346 return time.Time{} 5347 } 5348 return *i.Since 5349 } 5350 5351 // GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. 5352 func (i *IssueRequest) GetAssignee() string { 5353 if i == nil || i.Assignee == nil { 5354 return "" 5355 } 5356 return *i.Assignee 5357 } 5358 5359 // GetAssignees returns the Assignees field if it's non-nil, zero value otherwise. 5360 func (i *IssueRequest) GetAssignees() []string { 5361 if i == nil || i.Assignees == nil { 5362 return nil 5363 } 5364 return *i.Assignees 5365 } 5366 5367 // GetBody returns the Body field if it's non-nil, zero value otherwise. 5368 func (i *IssueRequest) GetBody() string { 5369 if i == nil || i.Body == nil { 5370 return "" 5371 } 5372 return *i.Body 5373 } 5374 5375 // GetLabels returns the Labels field if it's non-nil, zero value otherwise. 5376 func (i *IssueRequest) GetLabels() []string { 5377 if i == nil || i.Labels == nil { 5378 return nil 5379 } 5380 return *i.Labels 5381 } 5382 5383 // GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. 5384 func (i *IssueRequest) GetMilestone() int { 5385 if i == nil || i.Milestone == nil { 5386 return 0 5387 } 5388 return *i.Milestone 5389 } 5390 5391 // GetState returns the State field if it's non-nil, zero value otherwise. 5392 func (i *IssueRequest) GetState() string { 5393 if i == nil || i.State == nil { 5394 return "" 5395 } 5396 return *i.State 5397 } 5398 5399 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 5400 func (i *IssueRequest) GetTitle() string { 5401 if i == nil || i.Title == nil { 5402 return "" 5403 } 5404 return *i.Title 5405 } 5406 5407 // GetAction returns the Action field if it's non-nil, zero value otherwise. 5408 func (i *IssuesEvent) GetAction() string { 5409 if i == nil || i.Action == nil { 5410 return "" 5411 } 5412 return *i.Action 5413 } 5414 5415 // GetAssignee returns the Assignee field. 5416 func (i *IssuesEvent) GetAssignee() *User { 5417 if i == nil { 5418 return nil 5419 } 5420 return i.Assignee 5421 } 5422 5423 // GetChanges returns the Changes field. 5424 func (i *IssuesEvent) GetChanges() *EditChange { 5425 if i == nil { 5426 return nil 5427 } 5428 return i.Changes 5429 } 5430 5431 // GetInstallation returns the Installation field. 5432 func (i *IssuesEvent) GetInstallation() *Installation { 5433 if i == nil { 5434 return nil 5435 } 5436 return i.Installation 5437 } 5438 5439 // GetIssue returns the Issue field. 5440 func (i *IssuesEvent) GetIssue() *Issue { 5441 if i == nil { 5442 return nil 5443 } 5444 return i.Issue 5445 } 5446 5447 // GetLabel returns the Label field. 5448 func (i *IssuesEvent) GetLabel() *Label { 5449 if i == nil { 5450 return nil 5451 } 5452 return i.Label 5453 } 5454 5455 // GetRepo returns the Repo field. 5456 func (i *IssuesEvent) GetRepo() *Repository { 5457 if i == nil { 5458 return nil 5459 } 5460 return i.Repo 5461 } 5462 5463 // GetSender returns the Sender field. 5464 func (i *IssuesEvent) GetSender() *User { 5465 if i == nil { 5466 return nil 5467 } 5468 return i.Sender 5469 } 5470 5471 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 5472 func (i *IssuesSearchResult) GetIncompleteResults() bool { 5473 if i == nil || i.IncompleteResults == nil { 5474 return false 5475 } 5476 return *i.IncompleteResults 5477 } 5478 5479 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 5480 func (i *IssuesSearchResult) GetTotal() int { 5481 if i == nil || i.Total == nil { 5482 return 0 5483 } 5484 return *i.Total 5485 } 5486 5487 // GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. 5488 func (i *IssueStats) GetClosedIssues() int { 5489 if i == nil || i.ClosedIssues == nil { 5490 return 0 5491 } 5492 return *i.ClosedIssues 5493 } 5494 5495 // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 5496 func (i *IssueStats) GetOpenIssues() int { 5497 if i == nil || i.OpenIssues == nil { 5498 return 0 5499 } 5500 return *i.OpenIssues 5501 } 5502 5503 // GetTotalIssues returns the TotalIssues field if it's non-nil, zero value otherwise. 5504 func (i *IssueStats) GetTotalIssues() int { 5505 if i == nil || i.TotalIssues == nil { 5506 return 0 5507 } 5508 return *i.TotalIssues 5509 } 5510 5511 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 5512 func (j *Jobs) GetTotalCount() int { 5513 if j == nil || j.TotalCount == nil { 5514 return 0 5515 } 5516 return *j.TotalCount 5517 } 5518 5519 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5520 func (k *Key) GetCreatedAt() Timestamp { 5521 if k == nil || k.CreatedAt == nil { 5522 return Timestamp{} 5523 } 5524 return *k.CreatedAt 5525 } 5526 5527 // GetID returns the ID field if it's non-nil, zero value otherwise. 5528 func (k *Key) GetID() int64 { 5529 if k == nil || k.ID == nil { 5530 return 0 5531 } 5532 return *k.ID 5533 } 5534 5535 // GetKey returns the Key field if it's non-nil, zero value otherwise. 5536 func (k *Key) GetKey() string { 5537 if k == nil || k.Key == nil { 5538 return "" 5539 } 5540 return *k.Key 5541 } 5542 5543 // GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise. 5544 func (k *Key) GetReadOnly() bool { 5545 if k == nil || k.ReadOnly == nil { 5546 return false 5547 } 5548 return *k.ReadOnly 5549 } 5550 5551 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 5552 func (k *Key) GetTitle() string { 5553 if k == nil || k.Title == nil { 5554 return "" 5555 } 5556 return *k.Title 5557 } 5558 5559 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5560 func (k *Key) GetURL() string { 5561 if k == nil || k.URL == nil { 5562 return "" 5563 } 5564 return *k.URL 5565 } 5566 5567 // GetColor returns the Color field if it's non-nil, zero value otherwise. 5568 func (l *Label) GetColor() string { 5569 if l == nil || l.Color == nil { 5570 return "" 5571 } 5572 return *l.Color 5573 } 5574 5575 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 5576 func (l *Label) GetDefault() bool { 5577 if l == nil || l.Default == nil { 5578 return false 5579 } 5580 return *l.Default 5581 } 5582 5583 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5584 func (l *Label) GetDescription() string { 5585 if l == nil || l.Description == nil { 5586 return "" 5587 } 5588 return *l.Description 5589 } 5590 5591 // GetID returns the ID field if it's non-nil, zero value otherwise. 5592 func (l *Label) GetID() int64 { 5593 if l == nil || l.ID == nil { 5594 return 0 5595 } 5596 return *l.ID 5597 } 5598 5599 // GetName returns the Name field if it's non-nil, zero value otherwise. 5600 func (l *Label) GetName() string { 5601 if l == nil || l.Name == nil { 5602 return "" 5603 } 5604 return *l.Name 5605 } 5606 5607 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5608 func (l *Label) GetNodeID() string { 5609 if l == nil || l.NodeID == nil { 5610 return "" 5611 } 5612 return *l.NodeID 5613 } 5614 5615 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5616 func (l *Label) GetURL() string { 5617 if l == nil || l.URL == nil { 5618 return "" 5619 } 5620 return *l.URL 5621 } 5622 5623 // GetAction returns the Action field if it's non-nil, zero value otherwise. 5624 func (l *LabelEvent) GetAction() string { 5625 if l == nil || l.Action == nil { 5626 return "" 5627 } 5628 return *l.Action 5629 } 5630 5631 // GetChanges returns the Changes field. 5632 func (l *LabelEvent) GetChanges() *EditChange { 5633 if l == nil { 5634 return nil 5635 } 5636 return l.Changes 5637 } 5638 5639 // GetInstallation returns the Installation field. 5640 func (l *LabelEvent) GetInstallation() *Installation { 5641 if l == nil { 5642 return nil 5643 } 5644 return l.Installation 5645 } 5646 5647 // GetLabel returns the Label field. 5648 func (l *LabelEvent) GetLabel() *Label { 5649 if l == nil { 5650 return nil 5651 } 5652 return l.Label 5653 } 5654 5655 // GetOrg returns the Org field. 5656 func (l *LabelEvent) GetOrg() *Organization { 5657 if l == nil { 5658 return nil 5659 } 5660 return l.Org 5661 } 5662 5663 // GetRepo returns the Repo field. 5664 func (l *LabelEvent) GetRepo() *Repository { 5665 if l == nil { 5666 return nil 5667 } 5668 return l.Repo 5669 } 5670 5671 // GetColor returns the Color field if it's non-nil, zero value otherwise. 5672 func (l *LabelResult) GetColor() string { 5673 if l == nil || l.Color == nil { 5674 return "" 5675 } 5676 return *l.Color 5677 } 5678 5679 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 5680 func (l *LabelResult) GetDefault() bool { 5681 if l == nil || l.Default == nil { 5682 return false 5683 } 5684 return *l.Default 5685 } 5686 5687 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5688 func (l *LabelResult) GetDescription() string { 5689 if l == nil || l.Description == nil { 5690 return "" 5691 } 5692 return *l.Description 5693 } 5694 5695 // GetID returns the ID field if it's non-nil, zero value otherwise. 5696 func (l *LabelResult) GetID() int64 { 5697 if l == nil || l.ID == nil { 5698 return 0 5699 } 5700 return *l.ID 5701 } 5702 5703 // GetName returns the Name field if it's non-nil, zero value otherwise. 5704 func (l *LabelResult) GetName() string { 5705 if l == nil || l.Name == nil { 5706 return "" 5707 } 5708 return *l.Name 5709 } 5710 5711 // GetScore returns the Score field. 5712 func (l *LabelResult) GetScore() *float64 { 5713 if l == nil { 5714 return nil 5715 } 5716 return l.Score 5717 } 5718 5719 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5720 func (l *LabelResult) GetURL() string { 5721 if l == nil || l.URL == nil { 5722 return "" 5723 } 5724 return *l.URL 5725 } 5726 5727 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 5728 func (l *LabelsSearchResult) GetIncompleteResults() bool { 5729 if l == nil || l.IncompleteResults == nil { 5730 return false 5731 } 5732 return *l.IncompleteResults 5733 } 5734 5735 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 5736 func (l *LabelsSearchResult) GetTotal() int { 5737 if l == nil || l.Total == nil { 5738 return 0 5739 } 5740 return *l.Total 5741 } 5742 5743 // GetOID returns the OID field if it's non-nil, zero value otherwise. 5744 func (l *LargeFile) GetOID() string { 5745 if l == nil || l.OID == nil { 5746 return "" 5747 } 5748 return *l.OID 5749 } 5750 5751 // GetPath returns the Path field if it's non-nil, zero value otherwise. 5752 func (l *LargeFile) GetPath() string { 5753 if l == nil || l.Path == nil { 5754 return "" 5755 } 5756 return *l.Path 5757 } 5758 5759 // GetRefName returns the RefName field if it's non-nil, zero value otherwise. 5760 func (l *LargeFile) GetRefName() string { 5761 if l == nil || l.RefName == nil { 5762 return "" 5763 } 5764 return *l.RefName 5765 } 5766 5767 // GetSize returns the Size field if it's non-nil, zero value otherwise. 5768 func (l *LargeFile) GetSize() int { 5769 if l == nil || l.Size == nil { 5770 return 0 5771 } 5772 return *l.Size 5773 } 5774 5775 // GetBody returns the Body field if it's non-nil, zero value otherwise. 5776 func (l *License) GetBody() string { 5777 if l == nil || l.Body == nil { 5778 return "" 5779 } 5780 return *l.Body 5781 } 5782 5783 // GetConditions returns the Conditions field if it's non-nil, zero value otherwise. 5784 func (l *License) GetConditions() []string { 5785 if l == nil || l.Conditions == nil { 5786 return nil 5787 } 5788 return *l.Conditions 5789 } 5790 5791 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5792 func (l *License) GetDescription() string { 5793 if l == nil || l.Description == nil { 5794 return "" 5795 } 5796 return *l.Description 5797 } 5798 5799 // GetFeatured returns the Featured field if it's non-nil, zero value otherwise. 5800 func (l *License) GetFeatured() bool { 5801 if l == nil || l.Featured == nil { 5802 return false 5803 } 5804 return *l.Featured 5805 } 5806 5807 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5808 func (l *License) GetHTMLURL() string { 5809 if l == nil || l.HTMLURL == nil { 5810 return "" 5811 } 5812 return *l.HTMLURL 5813 } 5814 5815 // GetImplementation returns the Implementation field if it's non-nil, zero value otherwise. 5816 func (l *License) GetImplementation() string { 5817 if l == nil || l.Implementation == nil { 5818 return "" 5819 } 5820 return *l.Implementation 5821 } 5822 5823 // GetKey returns the Key field if it's non-nil, zero value otherwise. 5824 func (l *License) GetKey() string { 5825 if l == nil || l.Key == nil { 5826 return "" 5827 } 5828 return *l.Key 5829 } 5830 5831 // GetLimitations returns the Limitations field if it's non-nil, zero value otherwise. 5832 func (l *License) GetLimitations() []string { 5833 if l == nil || l.Limitations == nil { 5834 return nil 5835 } 5836 return *l.Limitations 5837 } 5838 5839 // GetName returns the Name field if it's non-nil, zero value otherwise. 5840 func (l *License) GetName() string { 5841 if l == nil || l.Name == nil { 5842 return "" 5843 } 5844 return *l.Name 5845 } 5846 5847 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 5848 func (l *License) GetPermissions() []string { 5849 if l == nil || l.Permissions == nil { 5850 return nil 5851 } 5852 return *l.Permissions 5853 } 5854 5855 // GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. 5856 func (l *License) GetSPDXID() string { 5857 if l == nil || l.SPDXID == nil { 5858 return "" 5859 } 5860 return *l.SPDXID 5861 } 5862 5863 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5864 func (l *License) GetURL() string { 5865 if l == nil || l.URL == nil { 5866 return "" 5867 } 5868 return *l.URL 5869 } 5870 5871 // GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. 5872 func (l *ListCheckRunsOptions) GetCheckName() string { 5873 if l == nil || l.CheckName == nil { 5874 return "" 5875 } 5876 return *l.CheckName 5877 } 5878 5879 // GetFilter returns the Filter field if it's non-nil, zero value otherwise. 5880 func (l *ListCheckRunsOptions) GetFilter() string { 5881 if l == nil || l.Filter == nil { 5882 return "" 5883 } 5884 return *l.Filter 5885 } 5886 5887 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 5888 func (l *ListCheckRunsOptions) GetStatus() string { 5889 if l == nil || l.Status == nil { 5890 return "" 5891 } 5892 return *l.Status 5893 } 5894 5895 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 5896 func (l *ListCheckRunsResults) GetTotal() int { 5897 if l == nil || l.Total == nil { 5898 return 0 5899 } 5900 return *l.Total 5901 } 5902 5903 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 5904 func (l *ListCheckSuiteOptions) GetAppID() int { 5905 if l == nil || l.AppID == nil { 5906 return 0 5907 } 5908 return *l.AppID 5909 } 5910 5911 // GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. 5912 func (l *ListCheckSuiteOptions) GetCheckName() string { 5913 if l == nil || l.CheckName == nil { 5914 return "" 5915 } 5916 return *l.CheckName 5917 } 5918 5919 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 5920 func (l *ListCheckSuiteResults) GetTotal() int { 5921 if l == nil || l.Total == nil { 5922 return 0 5923 } 5924 return *l.Total 5925 } 5926 5927 // GetAffiliation returns the Affiliation field if it's non-nil, zero value otherwise. 5928 func (l *ListCollaboratorOptions) GetAffiliation() string { 5929 if l == nil || l.Affiliation == nil { 5930 return "" 5931 } 5932 return *l.Affiliation 5933 } 5934 5935 // GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. 5936 func (m *MarketplacePendingChange) GetEffectiveDate() Timestamp { 5937 if m == nil || m.EffectiveDate == nil { 5938 return Timestamp{} 5939 } 5940 return *m.EffectiveDate 5941 } 5942 5943 // GetID returns the ID field if it's non-nil, zero value otherwise. 5944 func (m *MarketplacePendingChange) GetID() int64 { 5945 if m == nil || m.ID == nil { 5946 return 0 5947 } 5948 return *m.ID 5949 } 5950 5951 // GetPlan returns the Plan field. 5952 func (m *MarketplacePendingChange) GetPlan() *MarketplacePlan { 5953 if m == nil { 5954 return nil 5955 } 5956 return m.Plan 5957 } 5958 5959 // GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. 5960 func (m *MarketplacePendingChange) GetUnitCount() int { 5961 if m == nil || m.UnitCount == nil { 5962 return 0 5963 } 5964 return *m.UnitCount 5965 } 5966 5967 // GetAccountsURL returns the AccountsURL field if it's non-nil, zero value otherwise. 5968 func (m *MarketplacePlan) GetAccountsURL() string { 5969 if m == nil || m.AccountsURL == nil { 5970 return "" 5971 } 5972 return *m.AccountsURL 5973 } 5974 5975 // GetBullets returns the Bullets field if it's non-nil, zero value otherwise. 5976 func (m *MarketplacePlan) GetBullets() []string { 5977 if m == nil || m.Bullets == nil { 5978 return nil 5979 } 5980 return *m.Bullets 5981 } 5982 5983 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5984 func (m *MarketplacePlan) GetDescription() string { 5985 if m == nil || m.Description == nil { 5986 return "" 5987 } 5988 return *m.Description 5989 } 5990 5991 // GetHasFreeTrial returns the HasFreeTrial field if it's non-nil, zero value otherwise. 5992 func (m *MarketplacePlan) GetHasFreeTrial() bool { 5993 if m == nil || m.HasFreeTrial == nil { 5994 return false 5995 } 5996 return *m.HasFreeTrial 5997 } 5998 5999 // GetID returns the ID field if it's non-nil, zero value otherwise. 6000 func (m *MarketplacePlan) GetID() int64 { 6001 if m == nil || m.ID == nil { 6002 return 0 6003 } 6004 return *m.ID 6005 } 6006 6007 // GetMonthlyPriceInCents returns the MonthlyPriceInCents field if it's non-nil, zero value otherwise. 6008 func (m *MarketplacePlan) GetMonthlyPriceInCents() int { 6009 if m == nil || m.MonthlyPriceInCents == nil { 6010 return 0 6011 } 6012 return *m.MonthlyPriceInCents 6013 } 6014 6015 // GetName returns the Name field if it's non-nil, zero value otherwise. 6016 func (m *MarketplacePlan) GetName() string { 6017 if m == nil || m.Name == nil { 6018 return "" 6019 } 6020 return *m.Name 6021 } 6022 6023 // GetPriceModel returns the PriceModel field if it's non-nil, zero value otherwise. 6024 func (m *MarketplacePlan) GetPriceModel() string { 6025 if m == nil || m.PriceModel == nil { 6026 return "" 6027 } 6028 return *m.PriceModel 6029 } 6030 6031 // GetState returns the State field if it's non-nil, zero value otherwise. 6032 func (m *MarketplacePlan) GetState() string { 6033 if m == nil || m.State == nil { 6034 return "" 6035 } 6036 return *m.State 6037 } 6038 6039 // GetUnitName returns the UnitName field if it's non-nil, zero value otherwise. 6040 func (m *MarketplacePlan) GetUnitName() string { 6041 if m == nil || m.UnitName == nil { 6042 return "" 6043 } 6044 return *m.UnitName 6045 } 6046 6047 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6048 func (m *MarketplacePlan) GetURL() string { 6049 if m == nil || m.URL == nil { 6050 return "" 6051 } 6052 return *m.URL 6053 } 6054 6055 // GetYearlyPriceInCents returns the YearlyPriceInCents field if it's non-nil, zero value otherwise. 6056 func (m *MarketplacePlan) GetYearlyPriceInCents() int { 6057 if m == nil || m.YearlyPriceInCents == nil { 6058 return 0 6059 } 6060 return *m.YearlyPriceInCents 6061 } 6062 6063 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 6064 func (m *MarketplacePlanAccount) GetEmail() string { 6065 if m == nil || m.Email == nil { 6066 return "" 6067 } 6068 return *m.Email 6069 } 6070 6071 // GetID returns the ID field if it's non-nil, zero value otherwise. 6072 func (m *MarketplacePlanAccount) GetID() int64 { 6073 if m == nil || m.ID == nil { 6074 return 0 6075 } 6076 return *m.ID 6077 } 6078 6079 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 6080 func (m *MarketplacePlanAccount) GetLogin() string { 6081 if m == nil || m.Login == nil { 6082 return "" 6083 } 6084 return *m.Login 6085 } 6086 6087 // GetMarketplacePendingChange returns the MarketplacePendingChange field. 6088 func (m *MarketplacePlanAccount) GetMarketplacePendingChange() *MarketplacePendingChange { 6089 if m == nil { 6090 return nil 6091 } 6092 return m.MarketplacePendingChange 6093 } 6094 6095 // GetMarketplacePurchase returns the MarketplacePurchase field. 6096 func (m *MarketplacePlanAccount) GetMarketplacePurchase() *MarketplacePurchase { 6097 if m == nil { 6098 return nil 6099 } 6100 return m.MarketplacePurchase 6101 } 6102 6103 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6104 func (m *MarketplacePlanAccount) GetNodeID() string { 6105 if m == nil || m.NodeID == nil { 6106 return "" 6107 } 6108 return *m.NodeID 6109 } 6110 6111 // GetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise. 6112 func (m *MarketplacePlanAccount) GetOrganizationBillingEmail() string { 6113 if m == nil || m.OrganizationBillingEmail == nil { 6114 return "" 6115 } 6116 return *m.OrganizationBillingEmail 6117 } 6118 6119 // GetType returns the Type field if it's non-nil, zero value otherwise. 6120 func (m *MarketplacePlanAccount) GetType() string { 6121 if m == nil || m.Type == nil { 6122 return "" 6123 } 6124 return *m.Type 6125 } 6126 6127 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6128 func (m *MarketplacePlanAccount) GetURL() string { 6129 if m == nil || m.URL == nil { 6130 return "" 6131 } 6132 return *m.URL 6133 } 6134 6135 // GetAccount returns the Account field. 6136 func (m *MarketplacePurchase) GetAccount() *MarketplacePlanAccount { 6137 if m == nil { 6138 return nil 6139 } 6140 return m.Account 6141 } 6142 6143 // GetBillingCycle returns the BillingCycle field if it's non-nil, zero value otherwise. 6144 func (m *MarketplacePurchase) GetBillingCycle() string { 6145 if m == nil || m.BillingCycle == nil { 6146 return "" 6147 } 6148 return *m.BillingCycle 6149 } 6150 6151 // GetFreeTrialEndsOn returns the FreeTrialEndsOn field if it's non-nil, zero value otherwise. 6152 func (m *MarketplacePurchase) GetFreeTrialEndsOn() Timestamp { 6153 if m == nil || m.FreeTrialEndsOn == nil { 6154 return Timestamp{} 6155 } 6156 return *m.FreeTrialEndsOn 6157 } 6158 6159 // GetNextBillingDate returns the NextBillingDate field if it's non-nil, zero value otherwise. 6160 func (m *MarketplacePurchase) GetNextBillingDate() Timestamp { 6161 if m == nil || m.NextBillingDate == nil { 6162 return Timestamp{} 6163 } 6164 return *m.NextBillingDate 6165 } 6166 6167 // GetOnFreeTrial returns the OnFreeTrial field if it's non-nil, zero value otherwise. 6168 func (m *MarketplacePurchase) GetOnFreeTrial() bool { 6169 if m == nil || m.OnFreeTrial == nil { 6170 return false 6171 } 6172 return *m.OnFreeTrial 6173 } 6174 6175 // GetPlan returns the Plan field. 6176 func (m *MarketplacePurchase) GetPlan() *MarketplacePlan { 6177 if m == nil { 6178 return nil 6179 } 6180 return m.Plan 6181 } 6182 6183 // GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. 6184 func (m *MarketplacePurchase) GetUnitCount() int { 6185 if m == nil || m.UnitCount == nil { 6186 return 0 6187 } 6188 return *m.UnitCount 6189 } 6190 6191 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6192 func (m *MarketplacePurchaseEvent) GetAction() string { 6193 if m == nil || m.Action == nil { 6194 return "" 6195 } 6196 return *m.Action 6197 } 6198 6199 // GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. 6200 func (m *MarketplacePurchaseEvent) GetEffectiveDate() Timestamp { 6201 if m == nil || m.EffectiveDate == nil { 6202 return Timestamp{} 6203 } 6204 return *m.EffectiveDate 6205 } 6206 6207 // GetInstallation returns the Installation field. 6208 func (m *MarketplacePurchaseEvent) GetInstallation() *Installation { 6209 if m == nil { 6210 return nil 6211 } 6212 return m.Installation 6213 } 6214 6215 // GetMarketplacePurchase returns the MarketplacePurchase field. 6216 func (m *MarketplacePurchaseEvent) GetMarketplacePurchase() *MarketplacePurchase { 6217 if m == nil { 6218 return nil 6219 } 6220 return m.MarketplacePurchase 6221 } 6222 6223 // GetPreviousMarketplacePurchase returns the PreviousMarketplacePurchase field. 6224 func (m *MarketplacePurchaseEvent) GetPreviousMarketplacePurchase() *MarketplacePurchase { 6225 if m == nil { 6226 return nil 6227 } 6228 return m.PreviousMarketplacePurchase 6229 } 6230 6231 // GetSender returns the Sender field. 6232 func (m *MarketplacePurchaseEvent) GetSender() *User { 6233 if m == nil { 6234 return nil 6235 } 6236 return m.Sender 6237 } 6238 6239 // GetText returns the Text field if it's non-nil, zero value otherwise. 6240 func (m *Match) GetText() string { 6241 if m == nil || m.Text == nil { 6242 return "" 6243 } 6244 return *m.Text 6245 } 6246 6247 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6248 func (m *MemberEvent) GetAction() string { 6249 if m == nil || m.Action == nil { 6250 return "" 6251 } 6252 return *m.Action 6253 } 6254 6255 // GetInstallation returns the Installation field. 6256 func (m *MemberEvent) GetInstallation() *Installation { 6257 if m == nil { 6258 return nil 6259 } 6260 return m.Installation 6261 } 6262 6263 // GetMember returns the Member field. 6264 func (m *MemberEvent) GetMember() *User { 6265 if m == nil { 6266 return nil 6267 } 6268 return m.Member 6269 } 6270 6271 // GetRepo returns the Repo field. 6272 func (m *MemberEvent) GetRepo() *Repository { 6273 if m == nil { 6274 return nil 6275 } 6276 return m.Repo 6277 } 6278 6279 // GetSender returns the Sender field. 6280 func (m *MemberEvent) GetSender() *User { 6281 if m == nil { 6282 return nil 6283 } 6284 return m.Sender 6285 } 6286 6287 // GetOrganization returns the Organization field. 6288 func (m *Membership) GetOrganization() *Organization { 6289 if m == nil { 6290 return nil 6291 } 6292 return m.Organization 6293 } 6294 6295 // GetOrganizationURL returns the OrganizationURL field if it's non-nil, zero value otherwise. 6296 func (m *Membership) GetOrganizationURL() string { 6297 if m == nil || m.OrganizationURL == nil { 6298 return "" 6299 } 6300 return *m.OrganizationURL 6301 } 6302 6303 // GetRole returns the Role field if it's non-nil, zero value otherwise. 6304 func (m *Membership) GetRole() string { 6305 if m == nil || m.Role == nil { 6306 return "" 6307 } 6308 return *m.Role 6309 } 6310 6311 // GetState returns the State field if it's non-nil, zero value otherwise. 6312 func (m *Membership) GetState() string { 6313 if m == nil || m.State == nil { 6314 return "" 6315 } 6316 return *m.State 6317 } 6318 6319 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6320 func (m *Membership) GetURL() string { 6321 if m == nil || m.URL == nil { 6322 return "" 6323 } 6324 return *m.URL 6325 } 6326 6327 // GetUser returns the User field. 6328 func (m *Membership) GetUser() *User { 6329 if m == nil { 6330 return nil 6331 } 6332 return m.User 6333 } 6334 6335 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6336 func (m *MembershipEvent) GetAction() string { 6337 if m == nil || m.Action == nil { 6338 return "" 6339 } 6340 return *m.Action 6341 } 6342 6343 // GetInstallation returns the Installation field. 6344 func (m *MembershipEvent) GetInstallation() *Installation { 6345 if m == nil { 6346 return nil 6347 } 6348 return m.Installation 6349 } 6350 6351 // GetMember returns the Member field. 6352 func (m *MembershipEvent) GetMember() *User { 6353 if m == nil { 6354 return nil 6355 } 6356 return m.Member 6357 } 6358 6359 // GetOrg returns the Org field. 6360 func (m *MembershipEvent) GetOrg() *Organization { 6361 if m == nil { 6362 return nil 6363 } 6364 return m.Org 6365 } 6366 6367 // GetScope returns the Scope field if it's non-nil, zero value otherwise. 6368 func (m *MembershipEvent) GetScope() string { 6369 if m == nil || m.Scope == nil { 6370 return "" 6371 } 6372 return *m.Scope 6373 } 6374 6375 // GetSender returns the Sender field. 6376 func (m *MembershipEvent) GetSender() *User { 6377 if m == nil { 6378 return nil 6379 } 6380 return m.Sender 6381 } 6382 6383 // GetTeam returns the Team field. 6384 func (m *MembershipEvent) GetTeam() *Team { 6385 if m == nil { 6386 return nil 6387 } 6388 return m.Team 6389 } 6390 6391 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6392 func (m *MetaEvent) GetAction() string { 6393 if m == nil || m.Action == nil { 6394 return "" 6395 } 6396 return *m.Action 6397 } 6398 6399 // GetHook returns the Hook field. 6400 func (m *MetaEvent) GetHook() *Hook { 6401 if m == nil { 6402 return nil 6403 } 6404 return m.Hook 6405 } 6406 6407 // GetHookID returns the HookID field if it's non-nil, zero value otherwise. 6408 func (m *MetaEvent) GetHookID() int64 { 6409 if m == nil || m.HookID == nil { 6410 return 0 6411 } 6412 return *m.HookID 6413 } 6414 6415 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6416 func (m *Metric) GetHTMLURL() string { 6417 if m == nil || m.HTMLURL == nil { 6418 return "" 6419 } 6420 return *m.HTMLURL 6421 } 6422 6423 // GetKey returns the Key field if it's non-nil, zero value otherwise. 6424 func (m *Metric) GetKey() string { 6425 if m == nil || m.Key == nil { 6426 return "" 6427 } 6428 return *m.Key 6429 } 6430 6431 // GetName returns the Name field if it's non-nil, zero value otherwise. 6432 func (m *Metric) GetName() string { 6433 if m == nil || m.Name == nil { 6434 return "" 6435 } 6436 return *m.Name 6437 } 6438 6439 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6440 func (m *Metric) GetURL() string { 6441 if m == nil || m.URL == nil { 6442 return "" 6443 } 6444 return *m.URL 6445 } 6446 6447 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6448 func (m *Migration) GetCreatedAt() string { 6449 if m == nil || m.CreatedAt == nil { 6450 return "" 6451 } 6452 return *m.CreatedAt 6453 } 6454 6455 // GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 6456 func (m *Migration) GetExcludeAttachments() bool { 6457 if m == nil || m.ExcludeAttachments == nil { 6458 return false 6459 } 6460 return *m.ExcludeAttachments 6461 } 6462 6463 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 6464 func (m *Migration) GetGUID() string { 6465 if m == nil || m.GUID == nil { 6466 return "" 6467 } 6468 return *m.GUID 6469 } 6470 6471 // GetID returns the ID field if it's non-nil, zero value otherwise. 6472 func (m *Migration) GetID() int64 { 6473 if m == nil || m.ID == nil { 6474 return 0 6475 } 6476 return *m.ID 6477 } 6478 6479 // GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 6480 func (m *Migration) GetLockRepositories() bool { 6481 if m == nil || m.LockRepositories == nil { 6482 return false 6483 } 6484 return *m.LockRepositories 6485 } 6486 6487 // GetState returns the State field if it's non-nil, zero value otherwise. 6488 func (m *Migration) GetState() string { 6489 if m == nil || m.State == nil { 6490 return "" 6491 } 6492 return *m.State 6493 } 6494 6495 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6496 func (m *Migration) GetUpdatedAt() string { 6497 if m == nil || m.UpdatedAt == nil { 6498 return "" 6499 } 6500 return *m.UpdatedAt 6501 } 6502 6503 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6504 func (m *Migration) GetURL() string { 6505 if m == nil || m.URL == nil { 6506 return "" 6507 } 6508 return *m.URL 6509 } 6510 6511 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 6512 func (m *Milestone) GetClosedAt() time.Time { 6513 if m == nil || m.ClosedAt == nil { 6514 return time.Time{} 6515 } 6516 return *m.ClosedAt 6517 } 6518 6519 // GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. 6520 func (m *Milestone) GetClosedIssues() int { 6521 if m == nil || m.ClosedIssues == nil { 6522 return 0 6523 } 6524 return *m.ClosedIssues 6525 } 6526 6527 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6528 func (m *Milestone) GetCreatedAt() time.Time { 6529 if m == nil || m.CreatedAt == nil { 6530 return time.Time{} 6531 } 6532 return *m.CreatedAt 6533 } 6534 6535 // GetCreator returns the Creator field. 6536 func (m *Milestone) GetCreator() *User { 6537 if m == nil { 6538 return nil 6539 } 6540 return m.Creator 6541 } 6542 6543 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 6544 func (m *Milestone) GetDescription() string { 6545 if m == nil || m.Description == nil { 6546 return "" 6547 } 6548 return *m.Description 6549 } 6550 6551 // GetDueOn returns the DueOn field if it's non-nil, zero value otherwise. 6552 func (m *Milestone) GetDueOn() time.Time { 6553 if m == nil || m.DueOn == nil { 6554 return time.Time{} 6555 } 6556 return *m.DueOn 6557 } 6558 6559 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6560 func (m *Milestone) GetHTMLURL() string { 6561 if m == nil || m.HTMLURL == nil { 6562 return "" 6563 } 6564 return *m.HTMLURL 6565 } 6566 6567 // GetID returns the ID field if it's non-nil, zero value otherwise. 6568 func (m *Milestone) GetID() int64 { 6569 if m == nil || m.ID == nil { 6570 return 0 6571 } 6572 return *m.ID 6573 } 6574 6575 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 6576 func (m *Milestone) GetLabelsURL() string { 6577 if m == nil || m.LabelsURL == nil { 6578 return "" 6579 } 6580 return *m.LabelsURL 6581 } 6582 6583 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6584 func (m *Milestone) GetNodeID() string { 6585 if m == nil || m.NodeID == nil { 6586 return "" 6587 } 6588 return *m.NodeID 6589 } 6590 6591 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 6592 func (m *Milestone) GetNumber() int { 6593 if m == nil || m.Number == nil { 6594 return 0 6595 } 6596 return *m.Number 6597 } 6598 6599 // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 6600 func (m *Milestone) GetOpenIssues() int { 6601 if m == nil || m.OpenIssues == nil { 6602 return 0 6603 } 6604 return *m.OpenIssues 6605 } 6606 6607 // GetState returns the State field if it's non-nil, zero value otherwise. 6608 func (m *Milestone) GetState() string { 6609 if m == nil || m.State == nil { 6610 return "" 6611 } 6612 return *m.State 6613 } 6614 6615 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 6616 func (m *Milestone) GetTitle() string { 6617 if m == nil || m.Title == nil { 6618 return "" 6619 } 6620 return *m.Title 6621 } 6622 6623 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6624 func (m *Milestone) GetUpdatedAt() time.Time { 6625 if m == nil || m.UpdatedAt == nil { 6626 return time.Time{} 6627 } 6628 return *m.UpdatedAt 6629 } 6630 6631 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6632 func (m *Milestone) GetURL() string { 6633 if m == nil || m.URL == nil { 6634 return "" 6635 } 6636 return *m.URL 6637 } 6638 6639 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6640 func (m *MilestoneEvent) GetAction() string { 6641 if m == nil || m.Action == nil { 6642 return "" 6643 } 6644 return *m.Action 6645 } 6646 6647 // GetChanges returns the Changes field. 6648 func (m *MilestoneEvent) GetChanges() *EditChange { 6649 if m == nil { 6650 return nil 6651 } 6652 return m.Changes 6653 } 6654 6655 // GetInstallation returns the Installation field. 6656 func (m *MilestoneEvent) GetInstallation() *Installation { 6657 if m == nil { 6658 return nil 6659 } 6660 return m.Installation 6661 } 6662 6663 // GetMilestone returns the Milestone field. 6664 func (m *MilestoneEvent) GetMilestone() *Milestone { 6665 if m == nil { 6666 return nil 6667 } 6668 return m.Milestone 6669 } 6670 6671 // GetOrg returns the Org field. 6672 func (m *MilestoneEvent) GetOrg() *Organization { 6673 if m == nil { 6674 return nil 6675 } 6676 return m.Org 6677 } 6678 6679 // GetRepo returns the Repo field. 6680 func (m *MilestoneEvent) GetRepo() *Repository { 6681 if m == nil { 6682 return nil 6683 } 6684 return m.Repo 6685 } 6686 6687 // GetSender returns the Sender field. 6688 func (m *MilestoneEvent) GetSender() *User { 6689 if m == nil { 6690 return nil 6691 } 6692 return m.Sender 6693 } 6694 6695 // GetClosedMilestones returns the ClosedMilestones field if it's non-nil, zero value otherwise. 6696 func (m *MilestoneStats) GetClosedMilestones() int { 6697 if m == nil || m.ClosedMilestones == nil { 6698 return 0 6699 } 6700 return *m.ClosedMilestones 6701 } 6702 6703 // GetOpenMilestones returns the OpenMilestones field if it's non-nil, zero value otherwise. 6704 func (m *MilestoneStats) GetOpenMilestones() int { 6705 if m == nil || m.OpenMilestones == nil { 6706 return 0 6707 } 6708 return *m.OpenMilestones 6709 } 6710 6711 // GetTotalMilestones returns the TotalMilestones field if it's non-nil, zero value otherwise. 6712 func (m *MilestoneStats) GetTotalMilestones() int { 6713 if m == nil || m.TotalMilestones == nil { 6714 return 0 6715 } 6716 return *m.TotalMilestones 6717 } 6718 6719 // GetBase returns the Base field if it's non-nil, zero value otherwise. 6720 func (n *NewPullRequest) GetBase() string { 6721 if n == nil || n.Base == nil { 6722 return "" 6723 } 6724 return *n.Base 6725 } 6726 6727 // GetBody returns the Body field if it's non-nil, zero value otherwise. 6728 func (n *NewPullRequest) GetBody() string { 6729 if n == nil || n.Body == nil { 6730 return "" 6731 } 6732 return *n.Body 6733 } 6734 6735 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 6736 func (n *NewPullRequest) GetDraft() bool { 6737 if n == nil || n.Draft == nil { 6738 return false 6739 } 6740 return *n.Draft 6741 } 6742 6743 // GetHead returns the Head field if it's non-nil, zero value otherwise. 6744 func (n *NewPullRequest) GetHead() string { 6745 if n == nil || n.Head == nil { 6746 return "" 6747 } 6748 return *n.Head 6749 } 6750 6751 // GetIssue returns the Issue field if it's non-nil, zero value otherwise. 6752 func (n *NewPullRequest) GetIssue() int { 6753 if n == nil || n.Issue == nil { 6754 return 0 6755 } 6756 return *n.Issue 6757 } 6758 6759 // GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 6760 func (n *NewPullRequest) GetMaintainerCanModify() bool { 6761 if n == nil || n.MaintainerCanModify == nil { 6762 return false 6763 } 6764 return *n.MaintainerCanModify 6765 } 6766 6767 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 6768 func (n *NewPullRequest) GetTitle() string { 6769 if n == nil || n.Title == nil { 6770 return "" 6771 } 6772 return *n.Title 6773 } 6774 6775 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 6776 func (n *NewTeam) GetDescription() string { 6777 if n == nil || n.Description == nil { 6778 return "" 6779 } 6780 return *n.Description 6781 } 6782 6783 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 6784 func (n *NewTeam) GetLDAPDN() string { 6785 if n == nil || n.LDAPDN == nil { 6786 return "" 6787 } 6788 return *n.LDAPDN 6789 } 6790 6791 // GetParentTeamID returns the ParentTeamID field if it's non-nil, zero value otherwise. 6792 func (n *NewTeam) GetParentTeamID() int64 { 6793 if n == nil || n.ParentTeamID == nil { 6794 return 0 6795 } 6796 return *n.ParentTeamID 6797 } 6798 6799 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 6800 func (n *NewTeam) GetPermission() string { 6801 if n == nil || n.Permission == nil { 6802 return "" 6803 } 6804 return *n.Permission 6805 } 6806 6807 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 6808 func (n *NewTeam) GetPrivacy() string { 6809 if n == nil || n.Privacy == nil { 6810 return "" 6811 } 6812 return *n.Privacy 6813 } 6814 6815 // GetID returns the ID field if it's non-nil, zero value otherwise. 6816 func (n *Notification) GetID() string { 6817 if n == nil || n.ID == nil { 6818 return "" 6819 } 6820 return *n.ID 6821 } 6822 6823 // GetLastReadAt returns the LastReadAt field if it's non-nil, zero value otherwise. 6824 func (n *Notification) GetLastReadAt() time.Time { 6825 if n == nil || n.LastReadAt == nil { 6826 return time.Time{} 6827 } 6828 return *n.LastReadAt 6829 } 6830 6831 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 6832 func (n *Notification) GetReason() string { 6833 if n == nil || n.Reason == nil { 6834 return "" 6835 } 6836 return *n.Reason 6837 } 6838 6839 // GetRepository returns the Repository field. 6840 func (n *Notification) GetRepository() *Repository { 6841 if n == nil { 6842 return nil 6843 } 6844 return n.Repository 6845 } 6846 6847 // GetSubject returns the Subject field. 6848 func (n *Notification) GetSubject() *NotificationSubject { 6849 if n == nil { 6850 return nil 6851 } 6852 return n.Subject 6853 } 6854 6855 // GetUnread returns the Unread field if it's non-nil, zero value otherwise. 6856 func (n *Notification) GetUnread() bool { 6857 if n == nil || n.Unread == nil { 6858 return false 6859 } 6860 return *n.Unread 6861 } 6862 6863 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6864 func (n *Notification) GetUpdatedAt() time.Time { 6865 if n == nil || n.UpdatedAt == nil { 6866 return time.Time{} 6867 } 6868 return *n.UpdatedAt 6869 } 6870 6871 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6872 func (n *Notification) GetURL() string { 6873 if n == nil || n.URL == nil { 6874 return "" 6875 } 6876 return *n.URL 6877 } 6878 6879 // GetLatestCommentURL returns the LatestCommentURL field if it's non-nil, zero value otherwise. 6880 func (n *NotificationSubject) GetLatestCommentURL() string { 6881 if n == nil || n.LatestCommentURL == nil { 6882 return "" 6883 } 6884 return *n.LatestCommentURL 6885 } 6886 6887 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 6888 func (n *NotificationSubject) GetTitle() string { 6889 if n == nil || n.Title == nil { 6890 return "" 6891 } 6892 return *n.Title 6893 } 6894 6895 // GetType returns the Type field if it's non-nil, zero value otherwise. 6896 func (n *NotificationSubject) GetType() string { 6897 if n == nil || n.Type == nil { 6898 return "" 6899 } 6900 return *n.Type 6901 } 6902 6903 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6904 func (n *NotificationSubject) GetURL() string { 6905 if n == nil || n.URL == nil { 6906 return "" 6907 } 6908 return *n.URL 6909 } 6910 6911 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 6912 func (o *OAuthAPP) GetClientID() string { 6913 if o == nil || o.ClientID == nil { 6914 return "" 6915 } 6916 return *o.ClientID 6917 } 6918 6919 // GetName returns the Name field if it's non-nil, zero value otherwise. 6920 func (o *OAuthAPP) GetName() string { 6921 if o == nil || o.Name == nil { 6922 return "" 6923 } 6924 return *o.Name 6925 } 6926 6927 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6928 func (o *OAuthAPP) GetURL() string { 6929 if o == nil || o.URL == nil { 6930 return "" 6931 } 6932 return *o.URL 6933 } 6934 6935 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 6936 func (o *Organization) GetAvatarURL() string { 6937 if o == nil || o.AvatarURL == nil { 6938 return "" 6939 } 6940 return *o.AvatarURL 6941 } 6942 6943 // GetBillingEmail returns the BillingEmail field if it's non-nil, zero value otherwise. 6944 func (o *Organization) GetBillingEmail() string { 6945 if o == nil || o.BillingEmail == nil { 6946 return "" 6947 } 6948 return *o.BillingEmail 6949 } 6950 6951 // GetBlog returns the Blog field if it's non-nil, zero value otherwise. 6952 func (o *Organization) GetBlog() string { 6953 if o == nil || o.Blog == nil { 6954 return "" 6955 } 6956 return *o.Blog 6957 } 6958 6959 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 6960 func (o *Organization) GetCollaborators() int { 6961 if o == nil || o.Collaborators == nil { 6962 return 0 6963 } 6964 return *o.Collaborators 6965 } 6966 6967 // GetCompany returns the Company field if it's non-nil, zero value otherwise. 6968 func (o *Organization) GetCompany() string { 6969 if o == nil || o.Company == nil { 6970 return "" 6971 } 6972 return *o.Company 6973 } 6974 6975 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6976 func (o *Organization) GetCreatedAt() time.Time { 6977 if o == nil || o.CreatedAt == nil { 6978 return time.Time{} 6979 } 6980 return *o.CreatedAt 6981 } 6982 6983 // GetDefaultRepoPermission returns the DefaultRepoPermission field if it's non-nil, zero value otherwise. 6984 func (o *Organization) GetDefaultRepoPermission() string { 6985 if o == nil || o.DefaultRepoPermission == nil { 6986 return "" 6987 } 6988 return *o.DefaultRepoPermission 6989 } 6990 6991 // GetDefaultRepoSettings returns the DefaultRepoSettings field if it's non-nil, zero value otherwise. 6992 func (o *Organization) GetDefaultRepoSettings() string { 6993 if o == nil || o.DefaultRepoSettings == nil { 6994 return "" 6995 } 6996 return *o.DefaultRepoSettings 6997 } 6998 6999 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 7000 func (o *Organization) GetDescription() string { 7001 if o == nil || o.Description == nil { 7002 return "" 7003 } 7004 return *o.Description 7005 } 7006 7007 // GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 7008 func (o *Organization) GetDiskUsage() int { 7009 if o == nil || o.DiskUsage == nil { 7010 return 0 7011 } 7012 return *o.DiskUsage 7013 } 7014 7015 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 7016 func (o *Organization) GetEmail() string { 7017 if o == nil || o.Email == nil { 7018 return "" 7019 } 7020 return *o.Email 7021 } 7022 7023 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 7024 func (o *Organization) GetEventsURL() string { 7025 if o == nil || o.EventsURL == nil { 7026 return "" 7027 } 7028 return *o.EventsURL 7029 } 7030 7031 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 7032 func (o *Organization) GetFollowers() int { 7033 if o == nil || o.Followers == nil { 7034 return 0 7035 } 7036 return *o.Followers 7037 } 7038 7039 // GetFollowing returns the Following field if it's non-nil, zero value otherwise. 7040 func (o *Organization) GetFollowing() int { 7041 if o == nil || o.Following == nil { 7042 return 0 7043 } 7044 return *o.Following 7045 } 7046 7047 // GetHasOrganizationProjects returns the HasOrganizationProjects field if it's non-nil, zero value otherwise. 7048 func (o *Organization) GetHasOrganizationProjects() bool { 7049 if o == nil || o.HasOrganizationProjects == nil { 7050 return false 7051 } 7052 return *o.HasOrganizationProjects 7053 } 7054 7055 // GetHasRepositoryProjects returns the HasRepositoryProjects field if it's non-nil, zero value otherwise. 7056 func (o *Organization) GetHasRepositoryProjects() bool { 7057 if o == nil || o.HasRepositoryProjects == nil { 7058 return false 7059 } 7060 return *o.HasRepositoryProjects 7061 } 7062 7063 // GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 7064 func (o *Organization) GetHooksURL() string { 7065 if o == nil || o.HooksURL == nil { 7066 return "" 7067 } 7068 return *o.HooksURL 7069 } 7070 7071 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7072 func (o *Organization) GetHTMLURL() string { 7073 if o == nil || o.HTMLURL == nil { 7074 return "" 7075 } 7076 return *o.HTMLURL 7077 } 7078 7079 // GetID returns the ID field if it's non-nil, zero value otherwise. 7080 func (o *Organization) GetID() int64 { 7081 if o == nil || o.ID == nil { 7082 return 0 7083 } 7084 return *o.ID 7085 } 7086 7087 // GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 7088 func (o *Organization) GetIssuesURL() string { 7089 if o == nil || o.IssuesURL == nil { 7090 return "" 7091 } 7092 return *o.IssuesURL 7093 } 7094 7095 // GetIsVerified returns the IsVerified field if it's non-nil, zero value otherwise. 7096 func (o *Organization) GetIsVerified() bool { 7097 if o == nil || o.IsVerified == nil { 7098 return false 7099 } 7100 return *o.IsVerified 7101 } 7102 7103 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 7104 func (o *Organization) GetLocation() string { 7105 if o == nil || o.Location == nil { 7106 return "" 7107 } 7108 return *o.Location 7109 } 7110 7111 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 7112 func (o *Organization) GetLogin() string { 7113 if o == nil || o.Login == nil { 7114 return "" 7115 } 7116 return *o.Login 7117 } 7118 7119 // GetMembersAllowedRepositoryCreationType returns the MembersAllowedRepositoryCreationType field if it's non-nil, zero value otherwise. 7120 func (o *Organization) GetMembersAllowedRepositoryCreationType() string { 7121 if o == nil || o.MembersAllowedRepositoryCreationType == nil { 7122 return "" 7123 } 7124 return *o.MembersAllowedRepositoryCreationType 7125 } 7126 7127 // GetMembersCanCreateInternalRepos returns the MembersCanCreateInternalRepos field if it's non-nil, zero value otherwise. 7128 func (o *Organization) GetMembersCanCreateInternalRepos() bool { 7129 if o == nil || o.MembersCanCreateInternalRepos == nil { 7130 return false 7131 } 7132 return *o.MembersCanCreateInternalRepos 7133 } 7134 7135 // GetMembersCanCreatePrivateRepos returns the MembersCanCreatePrivateRepos field if it's non-nil, zero value otherwise. 7136 func (o *Organization) GetMembersCanCreatePrivateRepos() bool { 7137 if o == nil || o.MembersCanCreatePrivateRepos == nil { 7138 return false 7139 } 7140 return *o.MembersCanCreatePrivateRepos 7141 } 7142 7143 // GetMembersCanCreatePublicRepos returns the MembersCanCreatePublicRepos field if it's non-nil, zero value otherwise. 7144 func (o *Organization) GetMembersCanCreatePublicRepos() bool { 7145 if o == nil || o.MembersCanCreatePublicRepos == nil { 7146 return false 7147 } 7148 return *o.MembersCanCreatePublicRepos 7149 } 7150 7151 // GetMembersCanCreateRepos returns the MembersCanCreateRepos field if it's non-nil, zero value otherwise. 7152 func (o *Organization) GetMembersCanCreateRepos() bool { 7153 if o == nil || o.MembersCanCreateRepos == nil { 7154 return false 7155 } 7156 return *o.MembersCanCreateRepos 7157 } 7158 7159 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 7160 func (o *Organization) GetMembersURL() string { 7161 if o == nil || o.MembersURL == nil { 7162 return "" 7163 } 7164 return *o.MembersURL 7165 } 7166 7167 // GetName returns the Name field if it's non-nil, zero value otherwise. 7168 func (o *Organization) GetName() string { 7169 if o == nil || o.Name == nil { 7170 return "" 7171 } 7172 return *o.Name 7173 } 7174 7175 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 7176 func (o *Organization) GetNodeID() string { 7177 if o == nil || o.NodeID == nil { 7178 return "" 7179 } 7180 return *o.NodeID 7181 } 7182 7183 // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 7184 func (o *Organization) GetOwnedPrivateRepos() int { 7185 if o == nil || o.OwnedPrivateRepos == nil { 7186 return 0 7187 } 7188 return *o.OwnedPrivateRepos 7189 } 7190 7191 // GetPlan returns the Plan field. 7192 func (o *Organization) GetPlan() *Plan { 7193 if o == nil { 7194 return nil 7195 } 7196 return o.Plan 7197 } 7198 7199 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 7200 func (o *Organization) GetPrivateGists() int { 7201 if o == nil || o.PrivateGists == nil { 7202 return 0 7203 } 7204 return *o.PrivateGists 7205 } 7206 7207 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 7208 func (o *Organization) GetPublicGists() int { 7209 if o == nil || o.PublicGists == nil { 7210 return 0 7211 } 7212 return *o.PublicGists 7213 } 7214 7215 // GetPublicMembersURL returns the PublicMembersURL field if it's non-nil, zero value otherwise. 7216 func (o *Organization) GetPublicMembersURL() string { 7217 if o == nil || o.PublicMembersURL == nil { 7218 return "" 7219 } 7220 return *o.PublicMembersURL 7221 } 7222 7223 // GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 7224 func (o *Organization) GetPublicRepos() int { 7225 if o == nil || o.PublicRepos == nil { 7226 return 0 7227 } 7228 return *o.PublicRepos 7229 } 7230 7231 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 7232 func (o *Organization) GetReposURL() string { 7233 if o == nil || o.ReposURL == nil { 7234 return "" 7235 } 7236 return *o.ReposURL 7237 } 7238 7239 // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 7240 func (o *Organization) GetTotalPrivateRepos() int { 7241 if o == nil || o.TotalPrivateRepos == nil { 7242 return 0 7243 } 7244 return *o.TotalPrivateRepos 7245 } 7246 7247 // GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. 7248 func (o *Organization) GetTwitterUsername() string { 7249 if o == nil || o.TwitterUsername == nil { 7250 return "" 7251 } 7252 return *o.TwitterUsername 7253 } 7254 7255 // GetTwoFactorRequirementEnabled returns the TwoFactorRequirementEnabled field if it's non-nil, zero value otherwise. 7256 func (o *Organization) GetTwoFactorRequirementEnabled() bool { 7257 if o == nil || o.TwoFactorRequirementEnabled == nil { 7258 return false 7259 } 7260 return *o.TwoFactorRequirementEnabled 7261 } 7262 7263 // GetType returns the Type field if it's non-nil, zero value otherwise. 7264 func (o *Organization) GetType() string { 7265 if o == nil || o.Type == nil { 7266 return "" 7267 } 7268 return *o.Type 7269 } 7270 7271 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7272 func (o *Organization) GetUpdatedAt() time.Time { 7273 if o == nil || o.UpdatedAt == nil { 7274 return time.Time{} 7275 } 7276 return *o.UpdatedAt 7277 } 7278 7279 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7280 func (o *Organization) GetURL() string { 7281 if o == nil || o.URL == nil { 7282 return "" 7283 } 7284 return *o.URL 7285 } 7286 7287 // GetAction returns the Action field if it's non-nil, zero value otherwise. 7288 func (o *OrganizationEvent) GetAction() string { 7289 if o == nil || o.Action == nil { 7290 return "" 7291 } 7292 return *o.Action 7293 } 7294 7295 // GetInstallation returns the Installation field. 7296 func (o *OrganizationEvent) GetInstallation() *Installation { 7297 if o == nil { 7298 return nil 7299 } 7300 return o.Installation 7301 } 7302 7303 // GetInvitation returns the Invitation field. 7304 func (o *OrganizationEvent) GetInvitation() *Invitation { 7305 if o == nil { 7306 return nil 7307 } 7308 return o.Invitation 7309 } 7310 7311 // GetMembership returns the Membership field. 7312 func (o *OrganizationEvent) GetMembership() *Membership { 7313 if o == nil { 7314 return nil 7315 } 7316 return o.Membership 7317 } 7318 7319 // GetOrganization returns the Organization field. 7320 func (o *OrganizationEvent) GetOrganization() *Organization { 7321 if o == nil { 7322 return nil 7323 } 7324 return o.Organization 7325 } 7326 7327 // GetSender returns the Sender field. 7328 func (o *OrganizationEvent) GetSender() *User { 7329 if o == nil { 7330 return nil 7331 } 7332 return o.Sender 7333 } 7334 7335 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 7336 func (o *OrganizationInstallations) GetTotalCount() int { 7337 if o == nil || o.TotalCount == nil { 7338 return 0 7339 } 7340 return *o.TotalCount 7341 } 7342 7343 // GetAction returns the Action field if it's non-nil, zero value otherwise. 7344 func (o *OrgBlockEvent) GetAction() string { 7345 if o == nil || o.Action == nil { 7346 return "" 7347 } 7348 return *o.Action 7349 } 7350 7351 // GetBlockedUser returns the BlockedUser field. 7352 func (o *OrgBlockEvent) GetBlockedUser() *User { 7353 if o == nil { 7354 return nil 7355 } 7356 return o.BlockedUser 7357 } 7358 7359 // GetInstallation returns the Installation field. 7360 func (o *OrgBlockEvent) GetInstallation() *Installation { 7361 if o == nil { 7362 return nil 7363 } 7364 return o.Installation 7365 } 7366 7367 // GetOrganization returns the Organization field. 7368 func (o *OrgBlockEvent) GetOrganization() *Organization { 7369 if o == nil { 7370 return nil 7371 } 7372 return o.Organization 7373 } 7374 7375 // GetSender returns the Sender field. 7376 func (o *OrgBlockEvent) GetSender() *User { 7377 if o == nil { 7378 return nil 7379 } 7380 return o.Sender 7381 } 7382 7383 // GetDisabledOrgs returns the DisabledOrgs field if it's non-nil, zero value otherwise. 7384 func (o *OrgStats) GetDisabledOrgs() int { 7385 if o == nil || o.DisabledOrgs == nil { 7386 return 0 7387 } 7388 return *o.DisabledOrgs 7389 } 7390 7391 // GetTotalOrgs returns the TotalOrgs field if it's non-nil, zero value otherwise. 7392 func (o *OrgStats) GetTotalOrgs() int { 7393 if o == nil || o.TotalOrgs == nil { 7394 return 0 7395 } 7396 return *o.TotalOrgs 7397 } 7398 7399 // GetTotalTeamMembers returns the TotalTeamMembers field if it's non-nil, zero value otherwise. 7400 func (o *OrgStats) GetTotalTeamMembers() int { 7401 if o == nil || o.TotalTeamMembers == nil { 7402 return 0 7403 } 7404 return *o.TotalTeamMembers 7405 } 7406 7407 // GetTotalTeams returns the TotalTeams field if it's non-nil, zero value otherwise. 7408 func (o *OrgStats) GetTotalTeams() int { 7409 if o == nil || o.TotalTeams == nil { 7410 return 0 7411 } 7412 return *o.TotalTeams 7413 } 7414 7415 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7416 func (p *Package) GetCreatedAt() Timestamp { 7417 if p == nil || p.CreatedAt == nil { 7418 return Timestamp{} 7419 } 7420 return *p.CreatedAt 7421 } 7422 7423 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7424 func (p *Package) GetHTMLURL() string { 7425 if p == nil || p.HTMLURL == nil { 7426 return "" 7427 } 7428 return *p.HTMLURL 7429 } 7430 7431 // GetID returns the ID field if it's non-nil, zero value otherwise. 7432 func (p *Package) GetID() int64 { 7433 if p == nil || p.ID == nil { 7434 return 0 7435 } 7436 return *p.ID 7437 } 7438 7439 // GetName returns the Name field if it's non-nil, zero value otherwise. 7440 func (p *Package) GetName() string { 7441 if p == nil || p.Name == nil { 7442 return "" 7443 } 7444 return *p.Name 7445 } 7446 7447 // GetOwner returns the Owner field. 7448 func (p *Package) GetOwner() *User { 7449 if p == nil { 7450 return nil 7451 } 7452 return p.Owner 7453 } 7454 7455 // GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. 7456 func (p *Package) GetPackageType() string { 7457 if p == nil || p.PackageType == nil { 7458 return "" 7459 } 7460 return *p.PackageType 7461 } 7462 7463 // GetPackageVersion returns the PackageVersion field. 7464 func (p *Package) GetPackageVersion() *PackageVersion { 7465 if p == nil { 7466 return nil 7467 } 7468 return p.PackageVersion 7469 } 7470 7471 // GetRegistry returns the Registry field. 7472 func (p *Package) GetRegistry() *PackageRegistry { 7473 if p == nil { 7474 return nil 7475 } 7476 return p.Registry 7477 } 7478 7479 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7480 func (p *Package) GetUpdatedAt() Timestamp { 7481 if p == nil || p.UpdatedAt == nil { 7482 return Timestamp{} 7483 } 7484 return *p.UpdatedAt 7485 } 7486 7487 // GetAction returns the Action field if it's non-nil, zero value otherwise. 7488 func (p *PackageEvent) GetAction() string { 7489 if p == nil || p.Action == nil { 7490 return "" 7491 } 7492 return *p.Action 7493 } 7494 7495 // GetOrg returns the Org field. 7496 func (p *PackageEvent) GetOrg() *Organization { 7497 if p == nil { 7498 return nil 7499 } 7500 return p.Org 7501 } 7502 7503 // GetPackage returns the Package field. 7504 func (p *PackageEvent) GetPackage() *Package { 7505 if p == nil { 7506 return nil 7507 } 7508 return p.Package 7509 } 7510 7511 // GetRepo returns the Repo field. 7512 func (p *PackageEvent) GetRepo() *Repository { 7513 if p == nil { 7514 return nil 7515 } 7516 return p.Repo 7517 } 7518 7519 // GetSender returns the Sender field. 7520 func (p *PackageEvent) GetSender() *User { 7521 if p == nil { 7522 return nil 7523 } 7524 return p.Sender 7525 } 7526 7527 // GetAuthor returns the Author field. 7528 func (p *PackageFile) GetAuthor() *User { 7529 if p == nil { 7530 return nil 7531 } 7532 return p.Author 7533 } 7534 7535 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 7536 func (p *PackageFile) GetContentType() string { 7537 if p == nil || p.ContentType == nil { 7538 return "" 7539 } 7540 return *p.ContentType 7541 } 7542 7543 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7544 func (p *PackageFile) GetCreatedAt() Timestamp { 7545 if p == nil || p.CreatedAt == nil { 7546 return Timestamp{} 7547 } 7548 return *p.CreatedAt 7549 } 7550 7551 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 7552 func (p *PackageFile) GetDownloadURL() string { 7553 if p == nil || p.DownloadURL == nil { 7554 return "" 7555 } 7556 return *p.DownloadURL 7557 } 7558 7559 // GetID returns the ID field if it's non-nil, zero value otherwise. 7560 func (p *PackageFile) GetID() int64 { 7561 if p == nil || p.ID == nil { 7562 return 0 7563 } 7564 return *p.ID 7565 } 7566 7567 // GetMD5 returns the MD5 field if it's non-nil, zero value otherwise. 7568 func (p *PackageFile) GetMD5() string { 7569 if p == nil || p.MD5 == nil { 7570 return "" 7571 } 7572 return *p.MD5 7573 } 7574 7575 // GetName returns the Name field if it's non-nil, zero value otherwise. 7576 func (p *PackageFile) GetName() string { 7577 if p == nil || p.Name == nil { 7578 return "" 7579 } 7580 return *p.Name 7581 } 7582 7583 // GetSHA1 returns the SHA1 field if it's non-nil, zero value otherwise. 7584 func (p *PackageFile) GetSHA1() string { 7585 if p == nil || p.SHA1 == nil { 7586 return "" 7587 } 7588 return *p.SHA1 7589 } 7590 7591 // GetSHA256 returns the SHA256 field if it's non-nil, zero value otherwise. 7592 func (p *PackageFile) GetSHA256() string { 7593 if p == nil || p.SHA256 == nil { 7594 return "" 7595 } 7596 return *p.SHA256 7597 } 7598 7599 // GetSize returns the Size field if it's non-nil, zero value otherwise. 7600 func (p *PackageFile) GetSize() int64 { 7601 if p == nil || p.Size == nil { 7602 return 0 7603 } 7604 return *p.Size 7605 } 7606 7607 // GetState returns the State field if it's non-nil, zero value otherwise. 7608 func (p *PackageFile) GetState() string { 7609 if p == nil || p.State == nil { 7610 return "" 7611 } 7612 return *p.State 7613 } 7614 7615 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7616 func (p *PackageFile) GetUpdatedAt() Timestamp { 7617 if p == nil || p.UpdatedAt == nil { 7618 return Timestamp{} 7619 } 7620 return *p.UpdatedAt 7621 } 7622 7623 // GetAboutURL returns the AboutURL field if it's non-nil, zero value otherwise. 7624 func (p *PackageRegistry) GetAboutURL() string { 7625 if p == nil || p.AboutURL == nil { 7626 return "" 7627 } 7628 return *p.AboutURL 7629 } 7630 7631 // GetName returns the Name field if it's non-nil, zero value otherwise. 7632 func (p *PackageRegistry) GetName() string { 7633 if p == nil || p.Name == nil { 7634 return "" 7635 } 7636 return *p.Name 7637 } 7638 7639 // GetType returns the Type field if it's non-nil, zero value otherwise. 7640 func (p *PackageRegistry) GetType() string { 7641 if p == nil || p.Type == nil { 7642 return "" 7643 } 7644 return *p.Type 7645 } 7646 7647 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7648 func (p *PackageRegistry) GetURL() string { 7649 if p == nil || p.URL == nil { 7650 return "" 7651 } 7652 return *p.URL 7653 } 7654 7655 // GetVendor returns the Vendor field if it's non-nil, zero value otherwise. 7656 func (p *PackageRegistry) GetVendor() string { 7657 if p == nil || p.Vendor == nil { 7658 return "" 7659 } 7660 return *p.Vendor 7661 } 7662 7663 // GetAuthor returns the Author field. 7664 func (p *PackageRelease) GetAuthor() *User { 7665 if p == nil { 7666 return nil 7667 } 7668 return p.Author 7669 } 7670 7671 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7672 func (p *PackageRelease) GetCreatedAt() Timestamp { 7673 if p == nil || p.CreatedAt == nil { 7674 return Timestamp{} 7675 } 7676 return *p.CreatedAt 7677 } 7678 7679 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 7680 func (p *PackageRelease) GetDraft() bool { 7681 if p == nil || p.Draft == nil { 7682 return false 7683 } 7684 return *p.Draft 7685 } 7686 7687 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7688 func (p *PackageRelease) GetHTMLURL() string { 7689 if p == nil || p.HTMLURL == nil { 7690 return "" 7691 } 7692 return *p.HTMLURL 7693 } 7694 7695 // GetID returns the ID field if it's non-nil, zero value otherwise. 7696 func (p *PackageRelease) GetID() int64 { 7697 if p == nil || p.ID == nil { 7698 return 0 7699 } 7700 return *p.ID 7701 } 7702 7703 // GetName returns the Name field if it's non-nil, zero value otherwise. 7704 func (p *PackageRelease) GetName() string { 7705 if p == nil || p.Name == nil { 7706 return "" 7707 } 7708 return *p.Name 7709 } 7710 7711 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 7712 func (p *PackageRelease) GetPrerelease() bool { 7713 if p == nil || p.Prerelease == nil { 7714 return false 7715 } 7716 return *p.Prerelease 7717 } 7718 7719 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 7720 func (p *PackageRelease) GetPublishedAt() Timestamp { 7721 if p == nil || p.PublishedAt == nil { 7722 return Timestamp{} 7723 } 7724 return *p.PublishedAt 7725 } 7726 7727 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 7728 func (p *PackageRelease) GetTagName() string { 7729 if p == nil || p.TagName == nil { 7730 return "" 7731 } 7732 return *p.TagName 7733 } 7734 7735 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 7736 func (p *PackageRelease) GetTargetCommitish() string { 7737 if p == nil || p.TargetCommitish == nil { 7738 return "" 7739 } 7740 return *p.TargetCommitish 7741 } 7742 7743 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7744 func (p *PackageRelease) GetURL() string { 7745 if p == nil || p.URL == nil { 7746 return "" 7747 } 7748 return *p.URL 7749 } 7750 7751 // GetAuthor returns the Author field. 7752 func (p *PackageVersion) GetAuthor() *User { 7753 if p == nil { 7754 return nil 7755 } 7756 return p.Author 7757 } 7758 7759 // GetBody returns the Body field if it's non-nil, zero value otherwise. 7760 func (p *PackageVersion) GetBody() string { 7761 if p == nil || p.Body == nil { 7762 return "" 7763 } 7764 return *p.Body 7765 } 7766 7767 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 7768 func (p *PackageVersion) GetBodyHTML() string { 7769 if p == nil || p.BodyHTML == nil { 7770 return "" 7771 } 7772 return *p.BodyHTML 7773 } 7774 7775 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7776 func (p *PackageVersion) GetCreatedAt() Timestamp { 7777 if p == nil || p.CreatedAt == nil { 7778 return Timestamp{} 7779 } 7780 return *p.CreatedAt 7781 } 7782 7783 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 7784 func (p *PackageVersion) GetDraft() bool { 7785 if p == nil || p.Draft == nil { 7786 return false 7787 } 7788 return *p.Draft 7789 } 7790 7791 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7792 func (p *PackageVersion) GetHTMLURL() string { 7793 if p == nil || p.HTMLURL == nil { 7794 return "" 7795 } 7796 return *p.HTMLURL 7797 } 7798 7799 // GetID returns the ID field if it's non-nil, zero value otherwise. 7800 func (p *PackageVersion) GetID() int64 { 7801 if p == nil || p.ID == nil { 7802 return 0 7803 } 7804 return *p.ID 7805 } 7806 7807 // GetInstallationCommand returns the InstallationCommand field if it's non-nil, zero value otherwise. 7808 func (p *PackageVersion) GetInstallationCommand() string { 7809 if p == nil || p.InstallationCommand == nil { 7810 return "" 7811 } 7812 return *p.InstallationCommand 7813 } 7814 7815 // GetManifest returns the Manifest field if it's non-nil, zero value otherwise. 7816 func (p *PackageVersion) GetManifest() string { 7817 if p == nil || p.Manifest == nil { 7818 return "" 7819 } 7820 return *p.Manifest 7821 } 7822 7823 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 7824 func (p *PackageVersion) GetPrerelease() bool { 7825 if p == nil || p.Prerelease == nil { 7826 return false 7827 } 7828 return *p.Prerelease 7829 } 7830 7831 // GetRelease returns the Release field. 7832 func (p *PackageVersion) GetRelease() *PackageRelease { 7833 if p == nil { 7834 return nil 7835 } 7836 return p.Release 7837 } 7838 7839 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 7840 func (p *PackageVersion) GetSummary() string { 7841 if p == nil || p.Summary == nil { 7842 return "" 7843 } 7844 return *p.Summary 7845 } 7846 7847 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 7848 func (p *PackageVersion) GetTagName() string { 7849 if p == nil || p.TagName == nil { 7850 return "" 7851 } 7852 return *p.TagName 7853 } 7854 7855 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 7856 func (p *PackageVersion) GetTargetCommitish() string { 7857 if p == nil || p.TargetCommitish == nil { 7858 return "" 7859 } 7860 return *p.TargetCommitish 7861 } 7862 7863 // GetTargetOID returns the TargetOID field if it's non-nil, zero value otherwise. 7864 func (p *PackageVersion) GetTargetOID() string { 7865 if p == nil || p.TargetOID == nil { 7866 return "" 7867 } 7868 return *p.TargetOID 7869 } 7870 7871 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7872 func (p *PackageVersion) GetUpdatedAt() Timestamp { 7873 if p == nil || p.UpdatedAt == nil { 7874 return Timestamp{} 7875 } 7876 return *p.UpdatedAt 7877 } 7878 7879 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 7880 func (p *PackageVersion) GetVersion() string { 7881 if p == nil || p.Version == nil { 7882 return "" 7883 } 7884 return *p.Version 7885 } 7886 7887 // GetAction returns the Action field if it's non-nil, zero value otherwise. 7888 func (p *Page) GetAction() string { 7889 if p == nil || p.Action == nil { 7890 return "" 7891 } 7892 return *p.Action 7893 } 7894 7895 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7896 func (p *Page) GetHTMLURL() string { 7897 if p == nil || p.HTMLURL == nil { 7898 return "" 7899 } 7900 return *p.HTMLURL 7901 } 7902 7903 // GetPageName returns the PageName field if it's non-nil, zero value otherwise. 7904 func (p *Page) GetPageName() string { 7905 if p == nil || p.PageName == nil { 7906 return "" 7907 } 7908 return *p.PageName 7909 } 7910 7911 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 7912 func (p *Page) GetSHA() string { 7913 if p == nil || p.SHA == nil { 7914 return "" 7915 } 7916 return *p.SHA 7917 } 7918 7919 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 7920 func (p *Page) GetSummary() string { 7921 if p == nil || p.Summary == nil { 7922 return "" 7923 } 7924 return *p.Summary 7925 } 7926 7927 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 7928 func (p *Page) GetTitle() string { 7929 if p == nil || p.Title == nil { 7930 return "" 7931 } 7932 return *p.Title 7933 } 7934 7935 // GetBuild returns the Build field. 7936 func (p *PageBuildEvent) GetBuild() *PagesBuild { 7937 if p == nil { 7938 return nil 7939 } 7940 return p.Build 7941 } 7942 7943 // GetID returns the ID field if it's non-nil, zero value otherwise. 7944 func (p *PageBuildEvent) GetID() int64 { 7945 if p == nil || p.ID == nil { 7946 return 0 7947 } 7948 return *p.ID 7949 } 7950 7951 // GetInstallation returns the Installation field. 7952 func (p *PageBuildEvent) GetInstallation() *Installation { 7953 if p == nil { 7954 return nil 7955 } 7956 return p.Installation 7957 } 7958 7959 // GetRepo returns the Repo field. 7960 func (p *PageBuildEvent) GetRepo() *Repository { 7961 if p == nil { 7962 return nil 7963 } 7964 return p.Repo 7965 } 7966 7967 // GetSender returns the Sender field. 7968 func (p *PageBuildEvent) GetSender() *User { 7969 if p == nil { 7970 return nil 7971 } 7972 return p.Sender 7973 } 7974 7975 // GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. 7976 func (p *Pages) GetCNAME() string { 7977 if p == nil || p.CNAME == nil { 7978 return "" 7979 } 7980 return *p.CNAME 7981 } 7982 7983 // GetCustom404 returns the Custom404 field if it's non-nil, zero value otherwise. 7984 func (p *Pages) GetCustom404() bool { 7985 if p == nil || p.Custom404 == nil { 7986 return false 7987 } 7988 return *p.Custom404 7989 } 7990 7991 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7992 func (p *Pages) GetHTMLURL() string { 7993 if p == nil || p.HTMLURL == nil { 7994 return "" 7995 } 7996 return *p.HTMLURL 7997 } 7998 7999 // GetSource returns the Source field. 8000 func (p *Pages) GetSource() *PagesSource { 8001 if p == nil { 8002 return nil 8003 } 8004 return p.Source 8005 } 8006 8007 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 8008 func (p *Pages) GetStatus() string { 8009 if p == nil || p.Status == nil { 8010 return "" 8011 } 8012 return *p.Status 8013 } 8014 8015 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8016 func (p *Pages) GetURL() string { 8017 if p == nil || p.URL == nil { 8018 return "" 8019 } 8020 return *p.URL 8021 } 8022 8023 // GetCommit returns the Commit field if it's non-nil, zero value otherwise. 8024 func (p *PagesBuild) GetCommit() string { 8025 if p == nil || p.Commit == nil { 8026 return "" 8027 } 8028 return *p.Commit 8029 } 8030 8031 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8032 func (p *PagesBuild) GetCreatedAt() Timestamp { 8033 if p == nil || p.CreatedAt == nil { 8034 return Timestamp{} 8035 } 8036 return *p.CreatedAt 8037 } 8038 8039 // GetDuration returns the Duration field if it's non-nil, zero value otherwise. 8040 func (p *PagesBuild) GetDuration() int { 8041 if p == nil || p.Duration == nil { 8042 return 0 8043 } 8044 return *p.Duration 8045 } 8046 8047 // GetError returns the Error field. 8048 func (p *PagesBuild) GetError() *PagesError { 8049 if p == nil { 8050 return nil 8051 } 8052 return p.Error 8053 } 8054 8055 // GetPusher returns the Pusher field. 8056 func (p *PagesBuild) GetPusher() *User { 8057 if p == nil { 8058 return nil 8059 } 8060 return p.Pusher 8061 } 8062 8063 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 8064 func (p *PagesBuild) GetStatus() string { 8065 if p == nil || p.Status == nil { 8066 return "" 8067 } 8068 return *p.Status 8069 } 8070 8071 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8072 func (p *PagesBuild) GetUpdatedAt() Timestamp { 8073 if p == nil || p.UpdatedAt == nil { 8074 return Timestamp{} 8075 } 8076 return *p.UpdatedAt 8077 } 8078 8079 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8080 func (p *PagesBuild) GetURL() string { 8081 if p == nil || p.URL == nil { 8082 return "" 8083 } 8084 return *p.URL 8085 } 8086 8087 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 8088 func (p *PagesError) GetMessage() string { 8089 if p == nil || p.Message == nil { 8090 return "" 8091 } 8092 return *p.Message 8093 } 8094 8095 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 8096 func (p *PagesSource) GetBranch() string { 8097 if p == nil || p.Branch == nil { 8098 return "" 8099 } 8100 return *p.Branch 8101 } 8102 8103 // GetPath returns the Path field if it's non-nil, zero value otherwise. 8104 func (p *PagesSource) GetPath() string { 8105 if p == nil || p.Path == nil { 8106 return "" 8107 } 8108 return *p.Path 8109 } 8110 8111 // GetTotalPages returns the TotalPages field if it's non-nil, zero value otherwise. 8112 func (p *PageStats) GetTotalPages() int { 8113 if p == nil || p.TotalPages == nil { 8114 return 0 8115 } 8116 return *p.TotalPages 8117 } 8118 8119 // GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. 8120 func (p *PagesUpdate) GetCNAME() string { 8121 if p == nil || p.CNAME == nil { 8122 return "" 8123 } 8124 return *p.CNAME 8125 } 8126 8127 // GetSource returns the Source field if it's non-nil, zero value otherwise. 8128 func (p *PagesUpdate) GetSource() string { 8129 if p == nil || p.Source == nil { 8130 return "" 8131 } 8132 return *p.Source 8133 } 8134 8135 // GetHook returns the Hook field. 8136 func (p *PingEvent) GetHook() *Hook { 8137 if p == nil { 8138 return nil 8139 } 8140 return p.Hook 8141 } 8142 8143 // GetHookID returns the HookID field if it's non-nil, zero value otherwise. 8144 func (p *PingEvent) GetHookID() int64 { 8145 if p == nil || p.HookID == nil { 8146 return 0 8147 } 8148 return *p.HookID 8149 } 8150 8151 // GetInstallation returns the Installation field. 8152 func (p *PingEvent) GetInstallation() *Installation { 8153 if p == nil { 8154 return nil 8155 } 8156 return p.Installation 8157 } 8158 8159 // GetZen returns the Zen field if it's non-nil, zero value otherwise. 8160 func (p *PingEvent) GetZen() string { 8161 if p == nil || p.Zen == nil { 8162 return "" 8163 } 8164 return *p.Zen 8165 } 8166 8167 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 8168 func (p *Plan) GetCollaborators() int { 8169 if p == nil || p.Collaborators == nil { 8170 return 0 8171 } 8172 return *p.Collaborators 8173 } 8174 8175 // GetFilledSeats returns the FilledSeats field if it's non-nil, zero value otherwise. 8176 func (p *Plan) GetFilledSeats() int { 8177 if p == nil || p.FilledSeats == nil { 8178 return 0 8179 } 8180 return *p.FilledSeats 8181 } 8182 8183 // GetName returns the Name field if it's non-nil, zero value otherwise. 8184 func (p *Plan) GetName() string { 8185 if p == nil || p.Name == nil { 8186 return "" 8187 } 8188 return *p.Name 8189 } 8190 8191 // GetPrivateRepos returns the PrivateRepos field if it's non-nil, zero value otherwise. 8192 func (p *Plan) GetPrivateRepos() int { 8193 if p == nil || p.PrivateRepos == nil { 8194 return 0 8195 } 8196 return *p.PrivateRepos 8197 } 8198 8199 // GetSeats returns the Seats field if it's non-nil, zero value otherwise. 8200 func (p *Plan) GetSeats() int { 8201 if p == nil || p.Seats == nil { 8202 return 0 8203 } 8204 return *p.Seats 8205 } 8206 8207 // GetSpace returns the Space field if it's non-nil, zero value otherwise. 8208 func (p *Plan) GetSpace() int { 8209 if p == nil || p.Space == nil { 8210 return 0 8211 } 8212 return *p.Space 8213 } 8214 8215 // GetConfigURL returns the ConfigURL field if it's non-nil, zero value otherwise. 8216 func (p *PreReceiveHook) GetConfigURL() string { 8217 if p == nil || p.ConfigURL == nil { 8218 return "" 8219 } 8220 return *p.ConfigURL 8221 } 8222 8223 // GetEnforcement returns the Enforcement field if it's non-nil, zero value otherwise. 8224 func (p *PreReceiveHook) GetEnforcement() string { 8225 if p == nil || p.Enforcement == nil { 8226 return "" 8227 } 8228 return *p.Enforcement 8229 } 8230 8231 // GetID returns the ID field if it's non-nil, zero value otherwise. 8232 func (p *PreReceiveHook) GetID() int64 { 8233 if p == nil || p.ID == nil { 8234 return 0 8235 } 8236 return *p.ID 8237 } 8238 8239 // GetName returns the Name field if it's non-nil, zero value otherwise. 8240 func (p *PreReceiveHook) GetName() string { 8241 if p == nil || p.Name == nil { 8242 return "" 8243 } 8244 return *p.Name 8245 } 8246 8247 // GetHRef returns the HRef field if it's non-nil, zero value otherwise. 8248 func (p *PRLink) GetHRef() string { 8249 if p == nil || p.HRef == nil { 8250 return "" 8251 } 8252 return *p.HRef 8253 } 8254 8255 // GetComments returns the Comments field. 8256 func (p *PRLinks) GetComments() *PRLink { 8257 if p == nil { 8258 return nil 8259 } 8260 return p.Comments 8261 } 8262 8263 // GetCommits returns the Commits field. 8264 func (p *PRLinks) GetCommits() *PRLink { 8265 if p == nil { 8266 return nil 8267 } 8268 return p.Commits 8269 } 8270 8271 // GetHTML returns the HTML field. 8272 func (p *PRLinks) GetHTML() *PRLink { 8273 if p == nil { 8274 return nil 8275 } 8276 return p.HTML 8277 } 8278 8279 // GetIssue returns the Issue field. 8280 func (p *PRLinks) GetIssue() *PRLink { 8281 if p == nil { 8282 return nil 8283 } 8284 return p.Issue 8285 } 8286 8287 // GetReviewComment returns the ReviewComment field. 8288 func (p *PRLinks) GetReviewComment() *PRLink { 8289 if p == nil { 8290 return nil 8291 } 8292 return p.ReviewComment 8293 } 8294 8295 // GetReviewComments returns the ReviewComments field. 8296 func (p *PRLinks) GetReviewComments() *PRLink { 8297 if p == nil { 8298 return nil 8299 } 8300 return p.ReviewComments 8301 } 8302 8303 // GetSelf returns the Self field. 8304 func (p *PRLinks) GetSelf() *PRLink { 8305 if p == nil { 8306 return nil 8307 } 8308 return p.Self 8309 } 8310 8311 // GetStatuses returns the Statuses field. 8312 func (p *PRLinks) GetStatuses() *PRLink { 8313 if p == nil { 8314 return nil 8315 } 8316 return p.Statuses 8317 } 8318 8319 // GetBody returns the Body field if it's non-nil, zero value otherwise. 8320 func (p *Project) GetBody() string { 8321 if p == nil || p.Body == nil { 8322 return "" 8323 } 8324 return *p.Body 8325 } 8326 8327 // GetColumnsURL returns the ColumnsURL field if it's non-nil, zero value otherwise. 8328 func (p *Project) GetColumnsURL() string { 8329 if p == nil || p.ColumnsURL == nil { 8330 return "" 8331 } 8332 return *p.ColumnsURL 8333 } 8334 8335 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8336 func (p *Project) GetCreatedAt() Timestamp { 8337 if p == nil || p.CreatedAt == nil { 8338 return Timestamp{} 8339 } 8340 return *p.CreatedAt 8341 } 8342 8343 // GetCreator returns the Creator field. 8344 func (p *Project) GetCreator() *User { 8345 if p == nil { 8346 return nil 8347 } 8348 return p.Creator 8349 } 8350 8351 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 8352 func (p *Project) GetHTMLURL() string { 8353 if p == nil || p.HTMLURL == nil { 8354 return "" 8355 } 8356 return *p.HTMLURL 8357 } 8358 8359 // GetID returns the ID field if it's non-nil, zero value otherwise. 8360 func (p *Project) GetID() int64 { 8361 if p == nil || p.ID == nil { 8362 return 0 8363 } 8364 return *p.ID 8365 } 8366 8367 // GetName returns the Name field if it's non-nil, zero value otherwise. 8368 func (p *Project) GetName() string { 8369 if p == nil || p.Name == nil { 8370 return "" 8371 } 8372 return *p.Name 8373 } 8374 8375 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 8376 func (p *Project) GetNodeID() string { 8377 if p == nil || p.NodeID == nil { 8378 return "" 8379 } 8380 return *p.NodeID 8381 } 8382 8383 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 8384 func (p *Project) GetNumber() int { 8385 if p == nil || p.Number == nil { 8386 return 0 8387 } 8388 return *p.Number 8389 } 8390 8391 // GetOwnerURL returns the OwnerURL field if it's non-nil, zero value otherwise. 8392 func (p *Project) GetOwnerURL() string { 8393 if p == nil || p.OwnerURL == nil { 8394 return "" 8395 } 8396 return *p.OwnerURL 8397 } 8398 8399 // GetState returns the State field if it's non-nil, zero value otherwise. 8400 func (p *Project) GetState() string { 8401 if p == nil || p.State == nil { 8402 return "" 8403 } 8404 return *p.State 8405 } 8406 8407 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8408 func (p *Project) GetUpdatedAt() Timestamp { 8409 if p == nil || p.UpdatedAt == nil { 8410 return Timestamp{} 8411 } 8412 return *p.UpdatedAt 8413 } 8414 8415 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8416 func (p *Project) GetURL() string { 8417 if p == nil || p.URL == nil { 8418 return "" 8419 } 8420 return *p.URL 8421 } 8422 8423 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 8424 func (p *ProjectCard) GetArchived() bool { 8425 if p == nil || p.Archived == nil { 8426 return false 8427 } 8428 return *p.Archived 8429 } 8430 8431 // GetColumnID returns the ColumnID field if it's non-nil, zero value otherwise. 8432 func (p *ProjectCard) GetColumnID() int64 { 8433 if p == nil || p.ColumnID == nil { 8434 return 0 8435 } 8436 return *p.ColumnID 8437 } 8438 8439 // GetColumnName returns the ColumnName field if it's non-nil, zero value otherwise. 8440 func (p *ProjectCard) GetColumnName() string { 8441 if p == nil || p.ColumnName == nil { 8442 return "" 8443 } 8444 return *p.ColumnName 8445 } 8446 8447 // GetColumnURL returns the ColumnURL field if it's non-nil, zero value otherwise. 8448 func (p *ProjectCard) GetColumnURL() string { 8449 if p == nil || p.ColumnURL == nil { 8450 return "" 8451 } 8452 return *p.ColumnURL 8453 } 8454 8455 // GetContentURL returns the ContentURL field if it's non-nil, zero value otherwise. 8456 func (p *ProjectCard) GetContentURL() string { 8457 if p == nil || p.ContentURL == nil { 8458 return "" 8459 } 8460 return *p.ContentURL 8461 } 8462 8463 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8464 func (p *ProjectCard) GetCreatedAt() Timestamp { 8465 if p == nil || p.CreatedAt == nil { 8466 return Timestamp{} 8467 } 8468 return *p.CreatedAt 8469 } 8470 8471 // GetCreator returns the Creator field. 8472 func (p *ProjectCard) GetCreator() *User { 8473 if p == nil { 8474 return nil 8475 } 8476 return p.Creator 8477 } 8478 8479 // GetID returns the ID field if it's non-nil, zero value otherwise. 8480 func (p *ProjectCard) GetID() int64 { 8481 if p == nil || p.ID == nil { 8482 return 0 8483 } 8484 return *p.ID 8485 } 8486 8487 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 8488 func (p *ProjectCard) GetNodeID() string { 8489 if p == nil || p.NodeID == nil { 8490 return "" 8491 } 8492 return *p.NodeID 8493 } 8494 8495 // GetNote returns the Note field if it's non-nil, zero value otherwise. 8496 func (p *ProjectCard) GetNote() string { 8497 if p == nil || p.Note == nil { 8498 return "" 8499 } 8500 return *p.Note 8501 } 8502 8503 // GetPreviousColumnName returns the PreviousColumnName field if it's non-nil, zero value otherwise. 8504 func (p *ProjectCard) GetPreviousColumnName() string { 8505 if p == nil || p.PreviousColumnName == nil { 8506 return "" 8507 } 8508 return *p.PreviousColumnName 8509 } 8510 8511 // GetProjectID returns the ProjectID field if it's non-nil, zero value otherwise. 8512 func (p *ProjectCard) GetProjectID() int64 { 8513 if p == nil || p.ProjectID == nil { 8514 return 0 8515 } 8516 return *p.ProjectID 8517 } 8518 8519 // GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. 8520 func (p *ProjectCard) GetProjectURL() string { 8521 if p == nil || p.ProjectURL == nil { 8522 return "" 8523 } 8524 return *p.ProjectURL 8525 } 8526 8527 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8528 func (p *ProjectCard) GetUpdatedAt() Timestamp { 8529 if p == nil || p.UpdatedAt == nil { 8530 return Timestamp{} 8531 } 8532 return *p.UpdatedAt 8533 } 8534 8535 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8536 func (p *ProjectCard) GetURL() string { 8537 if p == nil || p.URL == nil { 8538 return "" 8539 } 8540 return *p.URL 8541 } 8542 8543 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8544 func (p *ProjectCardEvent) GetAction() string { 8545 if p == nil || p.Action == nil { 8546 return "" 8547 } 8548 return *p.Action 8549 } 8550 8551 // GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 8552 func (p *ProjectCardEvent) GetAfterID() int64 { 8553 if p == nil || p.AfterID == nil { 8554 return 0 8555 } 8556 return *p.AfterID 8557 } 8558 8559 // GetChanges returns the Changes field. 8560 func (p *ProjectCardEvent) GetChanges() *ProjectCardChange { 8561 if p == nil { 8562 return nil 8563 } 8564 return p.Changes 8565 } 8566 8567 // GetInstallation returns the Installation field. 8568 func (p *ProjectCardEvent) GetInstallation() *Installation { 8569 if p == nil { 8570 return nil 8571 } 8572 return p.Installation 8573 } 8574 8575 // GetOrg returns the Org field. 8576 func (p *ProjectCardEvent) GetOrg() *Organization { 8577 if p == nil { 8578 return nil 8579 } 8580 return p.Org 8581 } 8582 8583 // GetProjectCard returns the ProjectCard field. 8584 func (p *ProjectCardEvent) GetProjectCard() *ProjectCard { 8585 if p == nil { 8586 return nil 8587 } 8588 return p.ProjectCard 8589 } 8590 8591 // GetRepo returns the Repo field. 8592 func (p *ProjectCardEvent) GetRepo() *Repository { 8593 if p == nil { 8594 return nil 8595 } 8596 return p.Repo 8597 } 8598 8599 // GetSender returns the Sender field. 8600 func (p *ProjectCardEvent) GetSender() *User { 8601 if p == nil { 8602 return nil 8603 } 8604 return p.Sender 8605 } 8606 8607 // GetArchivedState returns the ArchivedState field if it's non-nil, zero value otherwise. 8608 func (p *ProjectCardListOptions) GetArchivedState() string { 8609 if p == nil || p.ArchivedState == nil { 8610 return "" 8611 } 8612 return *p.ArchivedState 8613 } 8614 8615 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 8616 func (p *ProjectCardOptions) GetArchived() bool { 8617 if p == nil || p.Archived == nil { 8618 return false 8619 } 8620 return *p.Archived 8621 } 8622 8623 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 8624 func (p *ProjectCollaboratorOptions) GetPermission() string { 8625 if p == nil || p.Permission == nil { 8626 return "" 8627 } 8628 return *p.Permission 8629 } 8630 8631 // GetCardsURL returns the CardsURL field if it's non-nil, zero value otherwise. 8632 func (p *ProjectColumn) GetCardsURL() string { 8633 if p == nil || p.CardsURL == nil { 8634 return "" 8635 } 8636 return *p.CardsURL 8637 } 8638 8639 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8640 func (p *ProjectColumn) GetCreatedAt() Timestamp { 8641 if p == nil || p.CreatedAt == nil { 8642 return Timestamp{} 8643 } 8644 return *p.CreatedAt 8645 } 8646 8647 // GetID returns the ID field if it's non-nil, zero value otherwise. 8648 func (p *ProjectColumn) GetID() int64 { 8649 if p == nil || p.ID == nil { 8650 return 0 8651 } 8652 return *p.ID 8653 } 8654 8655 // GetName returns the Name field if it's non-nil, zero value otherwise. 8656 func (p *ProjectColumn) GetName() string { 8657 if p == nil || p.Name == nil { 8658 return "" 8659 } 8660 return *p.Name 8661 } 8662 8663 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 8664 func (p *ProjectColumn) GetNodeID() string { 8665 if p == nil || p.NodeID == nil { 8666 return "" 8667 } 8668 return *p.NodeID 8669 } 8670 8671 // GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. 8672 func (p *ProjectColumn) GetProjectURL() string { 8673 if p == nil || p.ProjectURL == nil { 8674 return "" 8675 } 8676 return *p.ProjectURL 8677 } 8678 8679 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8680 func (p *ProjectColumn) GetUpdatedAt() Timestamp { 8681 if p == nil || p.UpdatedAt == nil { 8682 return Timestamp{} 8683 } 8684 return *p.UpdatedAt 8685 } 8686 8687 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8688 func (p *ProjectColumn) GetURL() string { 8689 if p == nil || p.URL == nil { 8690 return "" 8691 } 8692 return *p.URL 8693 } 8694 8695 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8696 func (p *ProjectColumnEvent) GetAction() string { 8697 if p == nil || p.Action == nil { 8698 return "" 8699 } 8700 return *p.Action 8701 } 8702 8703 // GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 8704 func (p *ProjectColumnEvent) GetAfterID() int64 { 8705 if p == nil || p.AfterID == nil { 8706 return 0 8707 } 8708 return *p.AfterID 8709 } 8710 8711 // GetChanges returns the Changes field. 8712 func (p *ProjectColumnEvent) GetChanges() *ProjectColumnChange { 8713 if p == nil { 8714 return nil 8715 } 8716 return p.Changes 8717 } 8718 8719 // GetInstallation returns the Installation field. 8720 func (p *ProjectColumnEvent) GetInstallation() *Installation { 8721 if p == nil { 8722 return nil 8723 } 8724 return p.Installation 8725 } 8726 8727 // GetOrg returns the Org field. 8728 func (p *ProjectColumnEvent) GetOrg() *Organization { 8729 if p == nil { 8730 return nil 8731 } 8732 return p.Org 8733 } 8734 8735 // GetProjectColumn returns the ProjectColumn field. 8736 func (p *ProjectColumnEvent) GetProjectColumn() *ProjectColumn { 8737 if p == nil { 8738 return nil 8739 } 8740 return p.ProjectColumn 8741 } 8742 8743 // GetRepo returns the Repo field. 8744 func (p *ProjectColumnEvent) GetRepo() *Repository { 8745 if p == nil { 8746 return nil 8747 } 8748 return p.Repo 8749 } 8750 8751 // GetSender returns the Sender field. 8752 func (p *ProjectColumnEvent) GetSender() *User { 8753 if p == nil { 8754 return nil 8755 } 8756 return p.Sender 8757 } 8758 8759 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8760 func (p *ProjectEvent) GetAction() string { 8761 if p == nil || p.Action == nil { 8762 return "" 8763 } 8764 return *p.Action 8765 } 8766 8767 // GetChanges returns the Changes field. 8768 func (p *ProjectEvent) GetChanges() *ProjectChange { 8769 if p == nil { 8770 return nil 8771 } 8772 return p.Changes 8773 } 8774 8775 // GetInstallation returns the Installation field. 8776 func (p *ProjectEvent) GetInstallation() *Installation { 8777 if p == nil { 8778 return nil 8779 } 8780 return p.Installation 8781 } 8782 8783 // GetOrg returns the Org field. 8784 func (p *ProjectEvent) GetOrg() *Organization { 8785 if p == nil { 8786 return nil 8787 } 8788 return p.Org 8789 } 8790 8791 // GetProject returns the Project field. 8792 func (p *ProjectEvent) GetProject() *Project { 8793 if p == nil { 8794 return nil 8795 } 8796 return p.Project 8797 } 8798 8799 // GetRepo returns the Repo field. 8800 func (p *ProjectEvent) GetRepo() *Repository { 8801 if p == nil { 8802 return nil 8803 } 8804 return p.Repo 8805 } 8806 8807 // GetSender returns the Sender field. 8808 func (p *ProjectEvent) GetSender() *User { 8809 if p == nil { 8810 return nil 8811 } 8812 return p.Sender 8813 } 8814 8815 // GetBody returns the Body field if it's non-nil, zero value otherwise. 8816 func (p *ProjectOptions) GetBody() string { 8817 if p == nil || p.Body == nil { 8818 return "" 8819 } 8820 return *p.Body 8821 } 8822 8823 // GetName returns the Name field if it's non-nil, zero value otherwise. 8824 func (p *ProjectOptions) GetName() string { 8825 if p == nil || p.Name == nil { 8826 return "" 8827 } 8828 return *p.Name 8829 } 8830 8831 // GetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise. 8832 func (p *ProjectOptions) GetOrganizationPermission() string { 8833 if p == nil || p.OrganizationPermission == nil { 8834 return "" 8835 } 8836 return *p.OrganizationPermission 8837 } 8838 8839 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 8840 func (p *ProjectOptions) GetPublic() bool { 8841 if p == nil || p.Public == nil { 8842 return false 8843 } 8844 return *p.Public 8845 } 8846 8847 // GetState returns the State field if it's non-nil, zero value otherwise. 8848 func (p *ProjectOptions) GetState() string { 8849 if p == nil || p.State == nil { 8850 return "" 8851 } 8852 return *p.State 8853 } 8854 8855 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 8856 func (p *ProjectPermissionLevel) GetPermission() string { 8857 if p == nil || p.Permission == nil { 8858 return "" 8859 } 8860 return *p.Permission 8861 } 8862 8863 // GetUser returns the User field. 8864 func (p *ProjectPermissionLevel) GetUser() *User { 8865 if p == nil { 8866 return nil 8867 } 8868 return p.User 8869 } 8870 8871 // GetAllowDeletions returns the AllowDeletions field. 8872 func (p *Protection) GetAllowDeletions() *AllowDeletions { 8873 if p == nil { 8874 return nil 8875 } 8876 return p.AllowDeletions 8877 } 8878 8879 // GetAllowForcePushes returns the AllowForcePushes field. 8880 func (p *Protection) GetAllowForcePushes() *AllowForcePushes { 8881 if p == nil { 8882 return nil 8883 } 8884 return p.AllowForcePushes 8885 } 8886 8887 // GetEnforceAdmins returns the EnforceAdmins field. 8888 func (p *Protection) GetEnforceAdmins() *AdminEnforcement { 8889 if p == nil { 8890 return nil 8891 } 8892 return p.EnforceAdmins 8893 } 8894 8895 // GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. 8896 func (p *Protection) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcement { 8897 if p == nil { 8898 return nil 8899 } 8900 return p.RequiredPullRequestReviews 8901 } 8902 8903 // GetRequiredStatusChecks returns the RequiredStatusChecks field. 8904 func (p *Protection) GetRequiredStatusChecks() *RequiredStatusChecks { 8905 if p == nil { 8906 return nil 8907 } 8908 return p.RequiredStatusChecks 8909 } 8910 8911 // GetRequireLinearHistory returns the RequireLinearHistory field. 8912 func (p *Protection) GetRequireLinearHistory() *RequireLinearHistory { 8913 if p == nil { 8914 return nil 8915 } 8916 return p.RequireLinearHistory 8917 } 8918 8919 // GetRestrictions returns the Restrictions field. 8920 func (p *Protection) GetRestrictions() *BranchRestrictions { 8921 if p == nil { 8922 return nil 8923 } 8924 return p.Restrictions 8925 } 8926 8927 // GetAllowDeletions returns the AllowDeletions field if it's non-nil, zero value otherwise. 8928 func (p *ProtectionRequest) GetAllowDeletions() bool { 8929 if p == nil || p.AllowDeletions == nil { 8930 return false 8931 } 8932 return *p.AllowDeletions 8933 } 8934 8935 // GetAllowForcePushes returns the AllowForcePushes field if it's non-nil, zero value otherwise. 8936 func (p *ProtectionRequest) GetAllowForcePushes() bool { 8937 if p == nil || p.AllowForcePushes == nil { 8938 return false 8939 } 8940 return *p.AllowForcePushes 8941 } 8942 8943 // GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. 8944 func (p *ProtectionRequest) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcementRequest { 8945 if p == nil { 8946 return nil 8947 } 8948 return p.RequiredPullRequestReviews 8949 } 8950 8951 // GetRequiredStatusChecks returns the RequiredStatusChecks field. 8952 func (p *ProtectionRequest) GetRequiredStatusChecks() *RequiredStatusChecks { 8953 if p == nil { 8954 return nil 8955 } 8956 return p.RequiredStatusChecks 8957 } 8958 8959 // GetRequireLinearHistory returns the RequireLinearHistory field if it's non-nil, zero value otherwise. 8960 func (p *ProtectionRequest) GetRequireLinearHistory() bool { 8961 if p == nil || p.RequireLinearHistory == nil { 8962 return false 8963 } 8964 return *p.RequireLinearHistory 8965 } 8966 8967 // GetRestrictions returns the Restrictions field. 8968 func (p *ProtectionRequest) GetRestrictions() *BranchRestrictionsRequest { 8969 if p == nil { 8970 return nil 8971 } 8972 return p.Restrictions 8973 } 8974 8975 // GetInstallation returns the Installation field. 8976 func (p *PublicEvent) GetInstallation() *Installation { 8977 if p == nil { 8978 return nil 8979 } 8980 return p.Installation 8981 } 8982 8983 // GetRepo returns the Repo field. 8984 func (p *PublicEvent) GetRepo() *Repository { 8985 if p == nil { 8986 return nil 8987 } 8988 return p.Repo 8989 } 8990 8991 // GetSender returns the Sender field. 8992 func (p *PublicEvent) GetSender() *User { 8993 if p == nil { 8994 return nil 8995 } 8996 return p.Sender 8997 } 8998 8999 // GetKey returns the Key field if it's non-nil, zero value otherwise. 9000 func (p *PublicKey) GetKey() string { 9001 if p == nil || p.Key == nil { 9002 return "" 9003 } 9004 return *p.Key 9005 } 9006 9007 // GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. 9008 func (p *PublicKey) GetKeyID() string { 9009 if p == nil || p.KeyID == nil { 9010 return "" 9011 } 9012 return *p.KeyID 9013 } 9014 9015 // GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 9016 func (p *PullRequest) GetActiveLockReason() string { 9017 if p == nil || p.ActiveLockReason == nil { 9018 return "" 9019 } 9020 return *p.ActiveLockReason 9021 } 9022 9023 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 9024 func (p *PullRequest) GetAdditions() int { 9025 if p == nil || p.Additions == nil { 9026 return 0 9027 } 9028 return *p.Additions 9029 } 9030 9031 // GetAssignee returns the Assignee field. 9032 func (p *PullRequest) GetAssignee() *User { 9033 if p == nil { 9034 return nil 9035 } 9036 return p.Assignee 9037 } 9038 9039 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 9040 func (p *PullRequest) GetAuthorAssociation() string { 9041 if p == nil || p.AuthorAssociation == nil { 9042 return "" 9043 } 9044 return *p.AuthorAssociation 9045 } 9046 9047 // GetBase returns the Base field. 9048 func (p *PullRequest) GetBase() *PullRequestBranch { 9049 if p == nil { 9050 return nil 9051 } 9052 return p.Base 9053 } 9054 9055 // GetBody returns the Body field if it's non-nil, zero value otherwise. 9056 func (p *PullRequest) GetBody() string { 9057 if p == nil || p.Body == nil { 9058 return "" 9059 } 9060 return *p.Body 9061 } 9062 9063 // GetChangedFiles returns the ChangedFiles field if it's non-nil, zero value otherwise. 9064 func (p *PullRequest) GetChangedFiles() int { 9065 if p == nil || p.ChangedFiles == nil { 9066 return 0 9067 } 9068 return *p.ChangedFiles 9069 } 9070 9071 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 9072 func (p *PullRequest) GetClosedAt() time.Time { 9073 if p == nil || p.ClosedAt == nil { 9074 return time.Time{} 9075 } 9076 return *p.ClosedAt 9077 } 9078 9079 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 9080 func (p *PullRequest) GetComments() int { 9081 if p == nil || p.Comments == nil { 9082 return 0 9083 } 9084 return *p.Comments 9085 } 9086 9087 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 9088 func (p *PullRequest) GetCommentsURL() string { 9089 if p == nil || p.CommentsURL == nil { 9090 return "" 9091 } 9092 return *p.CommentsURL 9093 } 9094 9095 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 9096 func (p *PullRequest) GetCommits() int { 9097 if p == nil || p.Commits == nil { 9098 return 0 9099 } 9100 return *p.Commits 9101 } 9102 9103 // GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. 9104 func (p *PullRequest) GetCommitsURL() string { 9105 if p == nil || p.CommitsURL == nil { 9106 return "" 9107 } 9108 return *p.CommitsURL 9109 } 9110 9111 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9112 func (p *PullRequest) GetCreatedAt() time.Time { 9113 if p == nil || p.CreatedAt == nil { 9114 return time.Time{} 9115 } 9116 return *p.CreatedAt 9117 } 9118 9119 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 9120 func (p *PullRequest) GetDeletions() int { 9121 if p == nil || p.Deletions == nil { 9122 return 0 9123 } 9124 return *p.Deletions 9125 } 9126 9127 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 9128 func (p *PullRequest) GetDiffURL() string { 9129 if p == nil || p.DiffURL == nil { 9130 return "" 9131 } 9132 return *p.DiffURL 9133 } 9134 9135 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 9136 func (p *PullRequest) GetDraft() bool { 9137 if p == nil || p.Draft == nil { 9138 return false 9139 } 9140 return *p.Draft 9141 } 9142 9143 // GetHead returns the Head field. 9144 func (p *PullRequest) GetHead() *PullRequestBranch { 9145 if p == nil { 9146 return nil 9147 } 9148 return p.Head 9149 } 9150 9151 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9152 func (p *PullRequest) GetHTMLURL() string { 9153 if p == nil || p.HTMLURL == nil { 9154 return "" 9155 } 9156 return *p.HTMLURL 9157 } 9158 9159 // GetID returns the ID field if it's non-nil, zero value otherwise. 9160 func (p *PullRequest) GetID() int64 { 9161 if p == nil || p.ID == nil { 9162 return 0 9163 } 9164 return *p.ID 9165 } 9166 9167 // GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 9168 func (p *PullRequest) GetIssueURL() string { 9169 if p == nil || p.IssueURL == nil { 9170 return "" 9171 } 9172 return *p.IssueURL 9173 } 9174 9175 // GetLinks returns the Links field. 9176 func (p *PullRequest) GetLinks() *PRLinks { 9177 if p == nil { 9178 return nil 9179 } 9180 return p.Links 9181 } 9182 9183 // GetLocked returns the Locked field if it's non-nil, zero value otherwise. 9184 func (p *PullRequest) GetLocked() bool { 9185 if p == nil || p.Locked == nil { 9186 return false 9187 } 9188 return *p.Locked 9189 } 9190 9191 // GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 9192 func (p *PullRequest) GetMaintainerCanModify() bool { 9193 if p == nil || p.MaintainerCanModify == nil { 9194 return false 9195 } 9196 return *p.MaintainerCanModify 9197 } 9198 9199 // GetMergeable returns the Mergeable field if it's non-nil, zero value otherwise. 9200 func (p *PullRequest) GetMergeable() bool { 9201 if p == nil || p.Mergeable == nil { 9202 return false 9203 } 9204 return *p.Mergeable 9205 } 9206 9207 // GetMergeableState returns the MergeableState field if it's non-nil, zero value otherwise. 9208 func (p *PullRequest) GetMergeableState() string { 9209 if p == nil || p.MergeableState == nil { 9210 return "" 9211 } 9212 return *p.MergeableState 9213 } 9214 9215 // GetMergeCommitSHA returns the MergeCommitSHA field if it's non-nil, zero value otherwise. 9216 func (p *PullRequest) GetMergeCommitSHA() string { 9217 if p == nil || p.MergeCommitSHA == nil { 9218 return "" 9219 } 9220 return *p.MergeCommitSHA 9221 } 9222 9223 // GetMerged returns the Merged field if it's non-nil, zero value otherwise. 9224 func (p *PullRequest) GetMerged() bool { 9225 if p == nil || p.Merged == nil { 9226 return false 9227 } 9228 return *p.Merged 9229 } 9230 9231 // GetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise. 9232 func (p *PullRequest) GetMergedAt() time.Time { 9233 if p == nil || p.MergedAt == nil { 9234 return time.Time{} 9235 } 9236 return *p.MergedAt 9237 } 9238 9239 // GetMergedBy returns the MergedBy field. 9240 func (p *PullRequest) GetMergedBy() *User { 9241 if p == nil { 9242 return nil 9243 } 9244 return p.MergedBy 9245 } 9246 9247 // GetMilestone returns the Milestone field. 9248 func (p *PullRequest) GetMilestone() *Milestone { 9249 if p == nil { 9250 return nil 9251 } 9252 return p.Milestone 9253 } 9254 9255 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9256 func (p *PullRequest) GetNodeID() string { 9257 if p == nil || p.NodeID == nil { 9258 return "" 9259 } 9260 return *p.NodeID 9261 } 9262 9263 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 9264 func (p *PullRequest) GetNumber() int { 9265 if p == nil || p.Number == nil { 9266 return 0 9267 } 9268 return *p.Number 9269 } 9270 9271 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 9272 func (p *PullRequest) GetPatchURL() string { 9273 if p == nil || p.PatchURL == nil { 9274 return "" 9275 } 9276 return *p.PatchURL 9277 } 9278 9279 // GetRebaseable returns the Rebaseable field if it's non-nil, zero value otherwise. 9280 func (p *PullRequest) GetRebaseable() bool { 9281 if p == nil || p.Rebaseable == nil { 9282 return false 9283 } 9284 return *p.Rebaseable 9285 } 9286 9287 // GetReviewComments returns the ReviewComments field if it's non-nil, zero value otherwise. 9288 func (p *PullRequest) GetReviewComments() int { 9289 if p == nil || p.ReviewComments == nil { 9290 return 0 9291 } 9292 return *p.ReviewComments 9293 } 9294 9295 // GetReviewCommentsURL returns the ReviewCommentsURL field if it's non-nil, zero value otherwise. 9296 func (p *PullRequest) GetReviewCommentsURL() string { 9297 if p == nil || p.ReviewCommentsURL == nil { 9298 return "" 9299 } 9300 return *p.ReviewCommentsURL 9301 } 9302 9303 // GetReviewCommentURL returns the ReviewCommentURL field if it's non-nil, zero value otherwise. 9304 func (p *PullRequest) GetReviewCommentURL() string { 9305 if p == nil || p.ReviewCommentURL == nil { 9306 return "" 9307 } 9308 return *p.ReviewCommentURL 9309 } 9310 9311 // GetState returns the State field if it's non-nil, zero value otherwise. 9312 func (p *PullRequest) GetState() string { 9313 if p == nil || p.State == nil { 9314 return "" 9315 } 9316 return *p.State 9317 } 9318 9319 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 9320 func (p *PullRequest) GetStatusesURL() string { 9321 if p == nil || p.StatusesURL == nil { 9322 return "" 9323 } 9324 return *p.StatusesURL 9325 } 9326 9327 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 9328 func (p *PullRequest) GetTitle() string { 9329 if p == nil || p.Title == nil { 9330 return "" 9331 } 9332 return *p.Title 9333 } 9334 9335 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9336 func (p *PullRequest) GetUpdatedAt() time.Time { 9337 if p == nil || p.UpdatedAt == nil { 9338 return time.Time{} 9339 } 9340 return *p.UpdatedAt 9341 } 9342 9343 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9344 func (p *PullRequest) GetURL() string { 9345 if p == nil || p.URL == nil { 9346 return "" 9347 } 9348 return *p.URL 9349 } 9350 9351 // GetUser returns the User field. 9352 func (p *PullRequest) GetUser() *User { 9353 if p == nil { 9354 return nil 9355 } 9356 return p.User 9357 } 9358 9359 // GetLabel returns the Label field if it's non-nil, zero value otherwise. 9360 func (p *PullRequestBranch) GetLabel() string { 9361 if p == nil || p.Label == nil { 9362 return "" 9363 } 9364 return *p.Label 9365 } 9366 9367 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 9368 func (p *PullRequestBranch) GetRef() string { 9369 if p == nil || p.Ref == nil { 9370 return "" 9371 } 9372 return *p.Ref 9373 } 9374 9375 // GetRepo returns the Repo field. 9376 func (p *PullRequestBranch) GetRepo() *Repository { 9377 if p == nil { 9378 return nil 9379 } 9380 return p.Repo 9381 } 9382 9383 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 9384 func (p *PullRequestBranch) GetSHA() string { 9385 if p == nil || p.SHA == nil { 9386 return "" 9387 } 9388 return *p.SHA 9389 } 9390 9391 // GetUser returns the User field. 9392 func (p *PullRequestBranch) GetUser() *User { 9393 if p == nil { 9394 return nil 9395 } 9396 return p.User 9397 } 9398 9399 // GetExpectedHeadSHA returns the ExpectedHeadSHA field if it's non-nil, zero value otherwise. 9400 func (p *PullRequestBranchUpdateOptions) GetExpectedHeadSHA() string { 9401 if p == nil || p.ExpectedHeadSHA == nil { 9402 return "" 9403 } 9404 return *p.ExpectedHeadSHA 9405 } 9406 9407 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 9408 func (p *PullRequestBranchUpdateResponse) GetMessage() string { 9409 if p == nil || p.Message == nil { 9410 return "" 9411 } 9412 return *p.Message 9413 } 9414 9415 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9416 func (p *PullRequestBranchUpdateResponse) GetURL() string { 9417 if p == nil || p.URL == nil { 9418 return "" 9419 } 9420 return *p.URL 9421 } 9422 9423 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 9424 func (p *PullRequestComment) GetAuthorAssociation() string { 9425 if p == nil || p.AuthorAssociation == nil { 9426 return "" 9427 } 9428 return *p.AuthorAssociation 9429 } 9430 9431 // GetBody returns the Body field if it's non-nil, zero value otherwise. 9432 func (p *PullRequestComment) GetBody() string { 9433 if p == nil || p.Body == nil { 9434 return "" 9435 } 9436 return *p.Body 9437 } 9438 9439 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 9440 func (p *PullRequestComment) GetCommitID() string { 9441 if p == nil || p.CommitID == nil { 9442 return "" 9443 } 9444 return *p.CommitID 9445 } 9446 9447 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9448 func (p *PullRequestComment) GetCreatedAt() time.Time { 9449 if p == nil || p.CreatedAt == nil { 9450 return time.Time{} 9451 } 9452 return *p.CreatedAt 9453 } 9454 9455 // GetDiffHunk returns the DiffHunk field if it's non-nil, zero value otherwise. 9456 func (p *PullRequestComment) GetDiffHunk() string { 9457 if p == nil || p.DiffHunk == nil { 9458 return "" 9459 } 9460 return *p.DiffHunk 9461 } 9462 9463 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9464 func (p *PullRequestComment) GetHTMLURL() string { 9465 if p == nil || p.HTMLURL == nil { 9466 return "" 9467 } 9468 return *p.HTMLURL 9469 } 9470 9471 // GetID returns the ID field if it's non-nil, zero value otherwise. 9472 func (p *PullRequestComment) GetID() int64 { 9473 if p == nil || p.ID == nil { 9474 return 0 9475 } 9476 return *p.ID 9477 } 9478 9479 // GetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise. 9480 func (p *PullRequestComment) GetInReplyTo() int64 { 9481 if p == nil || p.InReplyTo == nil { 9482 return 0 9483 } 9484 return *p.InReplyTo 9485 } 9486 9487 // GetLine returns the Line field if it's non-nil, zero value otherwise. 9488 func (p *PullRequestComment) GetLine() int { 9489 if p == nil || p.Line == nil { 9490 return 0 9491 } 9492 return *p.Line 9493 } 9494 9495 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9496 func (p *PullRequestComment) GetNodeID() string { 9497 if p == nil || p.NodeID == nil { 9498 return "" 9499 } 9500 return *p.NodeID 9501 } 9502 9503 // GetOriginalCommitID returns the OriginalCommitID field if it's non-nil, zero value otherwise. 9504 func (p *PullRequestComment) GetOriginalCommitID() string { 9505 if p == nil || p.OriginalCommitID == nil { 9506 return "" 9507 } 9508 return *p.OriginalCommitID 9509 } 9510 9511 // GetOriginalLine returns the OriginalLine field if it's non-nil, zero value otherwise. 9512 func (p *PullRequestComment) GetOriginalLine() int { 9513 if p == nil || p.OriginalLine == nil { 9514 return 0 9515 } 9516 return *p.OriginalLine 9517 } 9518 9519 // GetOriginalPosition returns the OriginalPosition field if it's non-nil, zero value otherwise. 9520 func (p *PullRequestComment) GetOriginalPosition() int { 9521 if p == nil || p.OriginalPosition == nil { 9522 return 0 9523 } 9524 return *p.OriginalPosition 9525 } 9526 9527 // GetOriginalStartLine returns the OriginalStartLine field if it's non-nil, zero value otherwise. 9528 func (p *PullRequestComment) GetOriginalStartLine() int { 9529 if p == nil || p.OriginalStartLine == nil { 9530 return 0 9531 } 9532 return *p.OriginalStartLine 9533 } 9534 9535 // GetPath returns the Path field if it's non-nil, zero value otherwise. 9536 func (p *PullRequestComment) GetPath() string { 9537 if p == nil || p.Path == nil { 9538 return "" 9539 } 9540 return *p.Path 9541 } 9542 9543 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 9544 func (p *PullRequestComment) GetPosition() int { 9545 if p == nil || p.Position == nil { 9546 return 0 9547 } 9548 return *p.Position 9549 } 9550 9551 // GetPullRequestReviewID returns the PullRequestReviewID field if it's non-nil, zero value otherwise. 9552 func (p *PullRequestComment) GetPullRequestReviewID() int64 { 9553 if p == nil || p.PullRequestReviewID == nil { 9554 return 0 9555 } 9556 return *p.PullRequestReviewID 9557 } 9558 9559 // GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 9560 func (p *PullRequestComment) GetPullRequestURL() string { 9561 if p == nil || p.PullRequestURL == nil { 9562 return "" 9563 } 9564 return *p.PullRequestURL 9565 } 9566 9567 // GetReactions returns the Reactions field. 9568 func (p *PullRequestComment) GetReactions() *Reactions { 9569 if p == nil { 9570 return nil 9571 } 9572 return p.Reactions 9573 } 9574 9575 // GetSide returns the Side field if it's non-nil, zero value otherwise. 9576 func (p *PullRequestComment) GetSide() string { 9577 if p == nil || p.Side == nil { 9578 return "" 9579 } 9580 return *p.Side 9581 } 9582 9583 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 9584 func (p *PullRequestComment) GetStartLine() int { 9585 if p == nil || p.StartLine == nil { 9586 return 0 9587 } 9588 return *p.StartLine 9589 } 9590 9591 // GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. 9592 func (p *PullRequestComment) GetStartSide() string { 9593 if p == nil || p.StartSide == nil { 9594 return "" 9595 } 9596 return *p.StartSide 9597 } 9598 9599 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9600 func (p *PullRequestComment) GetUpdatedAt() time.Time { 9601 if p == nil || p.UpdatedAt == nil { 9602 return time.Time{} 9603 } 9604 return *p.UpdatedAt 9605 } 9606 9607 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9608 func (p *PullRequestComment) GetURL() string { 9609 if p == nil || p.URL == nil { 9610 return "" 9611 } 9612 return *p.URL 9613 } 9614 9615 // GetUser returns the User field. 9616 func (p *PullRequestComment) GetUser() *User { 9617 if p == nil { 9618 return nil 9619 } 9620 return p.User 9621 } 9622 9623 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9624 func (p *PullRequestEvent) GetAction() string { 9625 if p == nil || p.Action == nil { 9626 return "" 9627 } 9628 return *p.Action 9629 } 9630 9631 // GetAfter returns the After field if it's non-nil, zero value otherwise. 9632 func (p *PullRequestEvent) GetAfter() string { 9633 if p == nil || p.After == nil { 9634 return "" 9635 } 9636 return *p.After 9637 } 9638 9639 // GetAssignee returns the Assignee field. 9640 func (p *PullRequestEvent) GetAssignee() *User { 9641 if p == nil { 9642 return nil 9643 } 9644 return p.Assignee 9645 } 9646 9647 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 9648 func (p *PullRequestEvent) GetBefore() string { 9649 if p == nil || p.Before == nil { 9650 return "" 9651 } 9652 return *p.Before 9653 } 9654 9655 // GetChanges returns the Changes field. 9656 func (p *PullRequestEvent) GetChanges() *EditChange { 9657 if p == nil { 9658 return nil 9659 } 9660 return p.Changes 9661 } 9662 9663 // GetInstallation returns the Installation field. 9664 func (p *PullRequestEvent) GetInstallation() *Installation { 9665 if p == nil { 9666 return nil 9667 } 9668 return p.Installation 9669 } 9670 9671 // GetLabel returns the Label field. 9672 func (p *PullRequestEvent) GetLabel() *Label { 9673 if p == nil { 9674 return nil 9675 } 9676 return p.Label 9677 } 9678 9679 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 9680 func (p *PullRequestEvent) GetNumber() int { 9681 if p == nil || p.Number == nil { 9682 return 0 9683 } 9684 return *p.Number 9685 } 9686 9687 // GetOrganization returns the Organization field. 9688 func (p *PullRequestEvent) GetOrganization() *Organization { 9689 if p == nil { 9690 return nil 9691 } 9692 return p.Organization 9693 } 9694 9695 // GetPullRequest returns the PullRequest field. 9696 func (p *PullRequestEvent) GetPullRequest() *PullRequest { 9697 if p == nil { 9698 return nil 9699 } 9700 return p.PullRequest 9701 } 9702 9703 // GetRepo returns the Repo field. 9704 func (p *PullRequestEvent) GetRepo() *Repository { 9705 if p == nil { 9706 return nil 9707 } 9708 return p.Repo 9709 } 9710 9711 // GetRequestedReviewer returns the RequestedReviewer field. 9712 func (p *PullRequestEvent) GetRequestedReviewer() *User { 9713 if p == nil { 9714 return nil 9715 } 9716 return p.RequestedReviewer 9717 } 9718 9719 // GetRequestedTeam returns the RequestedTeam field. 9720 func (p *PullRequestEvent) GetRequestedTeam() *Team { 9721 if p == nil { 9722 return nil 9723 } 9724 return p.RequestedTeam 9725 } 9726 9727 // GetSender returns the Sender field. 9728 func (p *PullRequestEvent) GetSender() *User { 9729 if p == nil { 9730 return nil 9731 } 9732 return p.Sender 9733 } 9734 9735 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 9736 func (p *PullRequestLinks) GetDiffURL() string { 9737 if p == nil || p.DiffURL == nil { 9738 return "" 9739 } 9740 return *p.DiffURL 9741 } 9742 9743 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9744 func (p *PullRequestLinks) GetHTMLURL() string { 9745 if p == nil || p.HTMLURL == nil { 9746 return "" 9747 } 9748 return *p.HTMLURL 9749 } 9750 9751 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 9752 func (p *PullRequestLinks) GetPatchURL() string { 9753 if p == nil || p.PatchURL == nil { 9754 return "" 9755 } 9756 return *p.PatchURL 9757 } 9758 9759 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9760 func (p *PullRequestLinks) GetURL() string { 9761 if p == nil || p.URL == nil { 9762 return "" 9763 } 9764 return *p.URL 9765 } 9766 9767 // GetMerged returns the Merged field if it's non-nil, zero value otherwise. 9768 func (p *PullRequestMergeResult) GetMerged() bool { 9769 if p == nil || p.Merged == nil { 9770 return false 9771 } 9772 return *p.Merged 9773 } 9774 9775 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 9776 func (p *PullRequestMergeResult) GetMessage() string { 9777 if p == nil || p.Message == nil { 9778 return "" 9779 } 9780 return *p.Message 9781 } 9782 9783 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 9784 func (p *PullRequestMergeResult) GetSHA() string { 9785 if p == nil || p.SHA == nil { 9786 return "" 9787 } 9788 return *p.SHA 9789 } 9790 9791 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 9792 func (p *PullRequestReview) GetAuthorAssociation() string { 9793 if p == nil || p.AuthorAssociation == nil { 9794 return "" 9795 } 9796 return *p.AuthorAssociation 9797 } 9798 9799 // GetBody returns the Body field if it's non-nil, zero value otherwise. 9800 func (p *PullRequestReview) GetBody() string { 9801 if p == nil || p.Body == nil { 9802 return "" 9803 } 9804 return *p.Body 9805 } 9806 9807 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 9808 func (p *PullRequestReview) GetCommitID() string { 9809 if p == nil || p.CommitID == nil { 9810 return "" 9811 } 9812 return *p.CommitID 9813 } 9814 9815 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9816 func (p *PullRequestReview) GetHTMLURL() string { 9817 if p == nil || p.HTMLURL == nil { 9818 return "" 9819 } 9820 return *p.HTMLURL 9821 } 9822 9823 // GetID returns the ID field if it's non-nil, zero value otherwise. 9824 func (p *PullRequestReview) GetID() int64 { 9825 if p == nil || p.ID == nil { 9826 return 0 9827 } 9828 return *p.ID 9829 } 9830 9831 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9832 func (p *PullRequestReview) GetNodeID() string { 9833 if p == nil || p.NodeID == nil { 9834 return "" 9835 } 9836 return *p.NodeID 9837 } 9838 9839 // GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 9840 func (p *PullRequestReview) GetPullRequestURL() string { 9841 if p == nil || p.PullRequestURL == nil { 9842 return "" 9843 } 9844 return *p.PullRequestURL 9845 } 9846 9847 // GetState returns the State field if it's non-nil, zero value otherwise. 9848 func (p *PullRequestReview) GetState() string { 9849 if p == nil || p.State == nil { 9850 return "" 9851 } 9852 return *p.State 9853 } 9854 9855 // GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. 9856 func (p *PullRequestReview) GetSubmittedAt() time.Time { 9857 if p == nil || p.SubmittedAt == nil { 9858 return time.Time{} 9859 } 9860 return *p.SubmittedAt 9861 } 9862 9863 // GetUser returns the User field. 9864 func (p *PullRequestReview) GetUser() *User { 9865 if p == nil { 9866 return nil 9867 } 9868 return p.User 9869 } 9870 9871 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9872 func (p *PullRequestReviewCommentEvent) GetAction() string { 9873 if p == nil || p.Action == nil { 9874 return "" 9875 } 9876 return *p.Action 9877 } 9878 9879 // GetChanges returns the Changes field. 9880 func (p *PullRequestReviewCommentEvent) GetChanges() *EditChange { 9881 if p == nil { 9882 return nil 9883 } 9884 return p.Changes 9885 } 9886 9887 // GetComment returns the Comment field. 9888 func (p *PullRequestReviewCommentEvent) GetComment() *PullRequestComment { 9889 if p == nil { 9890 return nil 9891 } 9892 return p.Comment 9893 } 9894 9895 // GetInstallation returns the Installation field. 9896 func (p *PullRequestReviewCommentEvent) GetInstallation() *Installation { 9897 if p == nil { 9898 return nil 9899 } 9900 return p.Installation 9901 } 9902 9903 // GetPullRequest returns the PullRequest field. 9904 func (p *PullRequestReviewCommentEvent) GetPullRequest() *PullRequest { 9905 if p == nil { 9906 return nil 9907 } 9908 return p.PullRequest 9909 } 9910 9911 // GetRepo returns the Repo field. 9912 func (p *PullRequestReviewCommentEvent) GetRepo() *Repository { 9913 if p == nil { 9914 return nil 9915 } 9916 return p.Repo 9917 } 9918 9919 // GetSender returns the Sender field. 9920 func (p *PullRequestReviewCommentEvent) GetSender() *User { 9921 if p == nil { 9922 return nil 9923 } 9924 return p.Sender 9925 } 9926 9927 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 9928 func (p *PullRequestReviewDismissalRequest) GetMessage() string { 9929 if p == nil || p.Message == nil { 9930 return "" 9931 } 9932 return *p.Message 9933 } 9934 9935 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9936 func (p *PullRequestReviewEvent) GetAction() string { 9937 if p == nil || p.Action == nil { 9938 return "" 9939 } 9940 return *p.Action 9941 } 9942 9943 // GetInstallation returns the Installation field. 9944 func (p *PullRequestReviewEvent) GetInstallation() *Installation { 9945 if p == nil { 9946 return nil 9947 } 9948 return p.Installation 9949 } 9950 9951 // GetOrganization returns the Organization field. 9952 func (p *PullRequestReviewEvent) GetOrganization() *Organization { 9953 if p == nil { 9954 return nil 9955 } 9956 return p.Organization 9957 } 9958 9959 // GetPullRequest returns the PullRequest field. 9960 func (p *PullRequestReviewEvent) GetPullRequest() *PullRequest { 9961 if p == nil { 9962 return nil 9963 } 9964 return p.PullRequest 9965 } 9966 9967 // GetRepo returns the Repo field. 9968 func (p *PullRequestReviewEvent) GetRepo() *Repository { 9969 if p == nil { 9970 return nil 9971 } 9972 return p.Repo 9973 } 9974 9975 // GetReview returns the Review field. 9976 func (p *PullRequestReviewEvent) GetReview() *PullRequestReview { 9977 if p == nil { 9978 return nil 9979 } 9980 return p.Review 9981 } 9982 9983 // GetSender returns the Sender field. 9984 func (p *PullRequestReviewEvent) GetSender() *User { 9985 if p == nil { 9986 return nil 9987 } 9988 return p.Sender 9989 } 9990 9991 // GetBody returns the Body field if it's non-nil, zero value otherwise. 9992 func (p *PullRequestReviewRequest) GetBody() string { 9993 if p == nil || p.Body == nil { 9994 return "" 9995 } 9996 return *p.Body 9997 } 9998 9999 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 10000 func (p *PullRequestReviewRequest) GetCommitID() string { 10001 if p == nil || p.CommitID == nil { 10002 return "" 10003 } 10004 return *p.CommitID 10005 } 10006 10007 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 10008 func (p *PullRequestReviewRequest) GetEvent() string { 10009 if p == nil || p.Event == nil { 10010 return "" 10011 } 10012 return *p.Event 10013 } 10014 10015 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10016 func (p *PullRequestReviewRequest) GetNodeID() string { 10017 if p == nil || p.NodeID == nil { 10018 return "" 10019 } 10020 return *p.NodeID 10021 } 10022 10023 // GetDismissalRestrictions returns the DismissalRestrictions field. 10024 func (p *PullRequestReviewsEnforcement) GetDismissalRestrictions() *DismissalRestrictions { 10025 if p == nil { 10026 return nil 10027 } 10028 return p.DismissalRestrictions 10029 } 10030 10031 // GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. 10032 func (p *PullRequestReviewsEnforcementRequest) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest { 10033 if p == nil { 10034 return nil 10035 } 10036 return p.DismissalRestrictionsRequest 10037 } 10038 10039 // GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. 10040 func (p *PullRequestReviewsEnforcementUpdate) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest { 10041 if p == nil { 10042 return nil 10043 } 10044 return p.DismissalRestrictionsRequest 10045 } 10046 10047 // GetDismissStaleReviews returns the DismissStaleReviews field if it's non-nil, zero value otherwise. 10048 func (p *PullRequestReviewsEnforcementUpdate) GetDismissStaleReviews() bool { 10049 if p == nil || p.DismissStaleReviews == nil { 10050 return false 10051 } 10052 return *p.DismissStaleReviews 10053 } 10054 10055 // GetMergablePulls returns the MergablePulls field if it's non-nil, zero value otherwise. 10056 func (p *PullStats) GetMergablePulls() int { 10057 if p == nil || p.MergablePulls == nil { 10058 return 0 10059 } 10060 return *p.MergablePulls 10061 } 10062 10063 // GetMergedPulls returns the MergedPulls field if it's non-nil, zero value otherwise. 10064 func (p *PullStats) GetMergedPulls() int { 10065 if p == nil || p.MergedPulls == nil { 10066 return 0 10067 } 10068 return *p.MergedPulls 10069 } 10070 10071 // GetTotalPulls returns the TotalPulls field if it's non-nil, zero value otherwise. 10072 func (p *PullStats) GetTotalPulls() int { 10073 if p == nil || p.TotalPulls == nil { 10074 return 0 10075 } 10076 return *p.TotalPulls 10077 } 10078 10079 // GetUnmergablePulls returns the UnmergablePulls field if it's non-nil, zero value otherwise. 10080 func (p *PullStats) GetUnmergablePulls() int { 10081 if p == nil || p.UnmergablePulls == nil { 10082 return 0 10083 } 10084 return *p.UnmergablePulls 10085 } 10086 10087 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 10088 func (p *PunchCard) GetCommits() int { 10089 if p == nil || p.Commits == nil { 10090 return 0 10091 } 10092 return *p.Commits 10093 } 10094 10095 // GetDay returns the Day field if it's non-nil, zero value otherwise. 10096 func (p *PunchCard) GetDay() int { 10097 if p == nil || p.Day == nil { 10098 return 0 10099 } 10100 return *p.Day 10101 } 10102 10103 // GetHour returns the Hour field if it's non-nil, zero value otherwise. 10104 func (p *PunchCard) GetHour() int { 10105 if p == nil || p.Hour == nil { 10106 return 0 10107 } 10108 return *p.Hour 10109 } 10110 10111 // GetAfter returns the After field if it's non-nil, zero value otherwise. 10112 func (p *PushEvent) GetAfter() string { 10113 if p == nil || p.After == nil { 10114 return "" 10115 } 10116 return *p.After 10117 } 10118 10119 // GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise. 10120 func (p *PushEvent) GetBaseRef() string { 10121 if p == nil || p.BaseRef == nil { 10122 return "" 10123 } 10124 return *p.BaseRef 10125 } 10126 10127 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 10128 func (p *PushEvent) GetBefore() string { 10129 if p == nil || p.Before == nil { 10130 return "" 10131 } 10132 return *p.Before 10133 } 10134 10135 // GetCompare returns the Compare field if it's non-nil, zero value otherwise. 10136 func (p *PushEvent) GetCompare() string { 10137 if p == nil || p.Compare == nil { 10138 return "" 10139 } 10140 return *p.Compare 10141 } 10142 10143 // GetCreated returns the Created field if it's non-nil, zero value otherwise. 10144 func (p *PushEvent) GetCreated() bool { 10145 if p == nil || p.Created == nil { 10146 return false 10147 } 10148 return *p.Created 10149 } 10150 10151 // GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. 10152 func (p *PushEvent) GetDeleted() bool { 10153 if p == nil || p.Deleted == nil { 10154 return false 10155 } 10156 return *p.Deleted 10157 } 10158 10159 // GetDistinctSize returns the DistinctSize field if it's non-nil, zero value otherwise. 10160 func (p *PushEvent) GetDistinctSize() int { 10161 if p == nil || p.DistinctSize == nil { 10162 return 0 10163 } 10164 return *p.DistinctSize 10165 } 10166 10167 // GetForced returns the Forced field if it's non-nil, zero value otherwise. 10168 func (p *PushEvent) GetForced() bool { 10169 if p == nil || p.Forced == nil { 10170 return false 10171 } 10172 return *p.Forced 10173 } 10174 10175 // GetHead returns the Head field if it's non-nil, zero value otherwise. 10176 func (p *PushEvent) GetHead() string { 10177 if p == nil || p.Head == nil { 10178 return "" 10179 } 10180 return *p.Head 10181 } 10182 10183 // GetHeadCommit returns the HeadCommit field. 10184 func (p *PushEvent) GetHeadCommit() *HeadCommit { 10185 if p == nil { 10186 return nil 10187 } 10188 return p.HeadCommit 10189 } 10190 10191 // GetInstallation returns the Installation field. 10192 func (p *PushEvent) GetInstallation() *Installation { 10193 if p == nil { 10194 return nil 10195 } 10196 return p.Installation 10197 } 10198 10199 // GetPusher returns the Pusher field. 10200 func (p *PushEvent) GetPusher() *User { 10201 if p == nil { 10202 return nil 10203 } 10204 return p.Pusher 10205 } 10206 10207 // GetPushID returns the PushID field if it's non-nil, zero value otherwise. 10208 func (p *PushEvent) GetPushID() int64 { 10209 if p == nil || p.PushID == nil { 10210 return 0 10211 } 10212 return *p.PushID 10213 } 10214 10215 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 10216 func (p *PushEvent) GetRef() string { 10217 if p == nil || p.Ref == nil { 10218 return "" 10219 } 10220 return *p.Ref 10221 } 10222 10223 // GetRepo returns the Repo field. 10224 func (p *PushEvent) GetRepo() *PushEventRepository { 10225 if p == nil { 10226 return nil 10227 } 10228 return p.Repo 10229 } 10230 10231 // GetSender returns the Sender field. 10232 func (p *PushEvent) GetSender() *User { 10233 if p == nil { 10234 return nil 10235 } 10236 return p.Sender 10237 } 10238 10239 // GetSize returns the Size field if it's non-nil, zero value otherwise. 10240 func (p *PushEvent) GetSize() int { 10241 if p == nil || p.Size == nil { 10242 return 0 10243 } 10244 return *p.Size 10245 } 10246 10247 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 10248 func (p *PushEventRepoOwner) GetEmail() string { 10249 if p == nil || p.Email == nil { 10250 return "" 10251 } 10252 return *p.Email 10253 } 10254 10255 // GetName returns the Name field if it's non-nil, zero value otherwise. 10256 func (p *PushEventRepoOwner) GetName() string { 10257 if p == nil || p.Name == nil { 10258 return "" 10259 } 10260 return *p.Name 10261 } 10262 10263 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 10264 func (p *PushEventRepository) GetArchived() bool { 10265 if p == nil || p.Archived == nil { 10266 return false 10267 } 10268 return *p.Archived 10269 } 10270 10271 // GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 10272 func (p *PushEventRepository) GetArchiveURL() string { 10273 if p == nil || p.ArchiveURL == nil { 10274 return "" 10275 } 10276 return *p.ArchiveURL 10277 } 10278 10279 // GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 10280 func (p *PushEventRepository) GetCloneURL() string { 10281 if p == nil || p.CloneURL == nil { 10282 return "" 10283 } 10284 return *p.CloneURL 10285 } 10286 10287 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10288 func (p *PushEventRepository) GetCreatedAt() Timestamp { 10289 if p == nil || p.CreatedAt == nil { 10290 return Timestamp{} 10291 } 10292 return *p.CreatedAt 10293 } 10294 10295 // GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 10296 func (p *PushEventRepository) GetDefaultBranch() string { 10297 if p == nil || p.DefaultBranch == nil { 10298 return "" 10299 } 10300 return *p.DefaultBranch 10301 } 10302 10303 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 10304 func (p *PushEventRepository) GetDescription() string { 10305 if p == nil || p.Description == nil { 10306 return "" 10307 } 10308 return *p.Description 10309 } 10310 10311 // GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. 10312 func (p *PushEventRepository) GetDisabled() bool { 10313 if p == nil || p.Disabled == nil { 10314 return false 10315 } 10316 return *p.Disabled 10317 } 10318 10319 // GetFork returns the Fork field if it's non-nil, zero value otherwise. 10320 func (p *PushEventRepository) GetFork() bool { 10321 if p == nil || p.Fork == nil { 10322 return false 10323 } 10324 return *p.Fork 10325 } 10326 10327 // GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 10328 func (p *PushEventRepository) GetForksCount() int { 10329 if p == nil || p.ForksCount == nil { 10330 return 0 10331 } 10332 return *p.ForksCount 10333 } 10334 10335 // GetFullName returns the FullName field if it's non-nil, zero value otherwise. 10336 func (p *PushEventRepository) GetFullName() string { 10337 if p == nil || p.FullName == nil { 10338 return "" 10339 } 10340 return *p.FullName 10341 } 10342 10343 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 10344 func (p *PushEventRepository) GetGitURL() string { 10345 if p == nil || p.GitURL == nil { 10346 return "" 10347 } 10348 return *p.GitURL 10349 } 10350 10351 // GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 10352 func (p *PushEventRepository) GetHasDownloads() bool { 10353 if p == nil || p.HasDownloads == nil { 10354 return false 10355 } 10356 return *p.HasDownloads 10357 } 10358 10359 // GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 10360 func (p *PushEventRepository) GetHasIssues() bool { 10361 if p == nil || p.HasIssues == nil { 10362 return false 10363 } 10364 return *p.HasIssues 10365 } 10366 10367 // GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 10368 func (p *PushEventRepository) GetHasPages() bool { 10369 if p == nil || p.HasPages == nil { 10370 return false 10371 } 10372 return *p.HasPages 10373 } 10374 10375 // GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 10376 func (p *PushEventRepository) GetHasWiki() bool { 10377 if p == nil || p.HasWiki == nil { 10378 return false 10379 } 10380 return *p.HasWiki 10381 } 10382 10383 // GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 10384 func (p *PushEventRepository) GetHomepage() string { 10385 if p == nil || p.Homepage == nil { 10386 return "" 10387 } 10388 return *p.Homepage 10389 } 10390 10391 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 10392 func (p *PushEventRepository) GetHTMLURL() string { 10393 if p == nil || p.HTMLURL == nil { 10394 return "" 10395 } 10396 return *p.HTMLURL 10397 } 10398 10399 // GetID returns the ID field if it's non-nil, zero value otherwise. 10400 func (p *PushEventRepository) GetID() int64 { 10401 if p == nil || p.ID == nil { 10402 return 0 10403 } 10404 return *p.ID 10405 } 10406 10407 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 10408 func (p *PushEventRepository) GetLanguage() string { 10409 if p == nil || p.Language == nil { 10410 return "" 10411 } 10412 return *p.Language 10413 } 10414 10415 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 10416 func (p *PushEventRepository) GetMasterBranch() string { 10417 if p == nil || p.MasterBranch == nil { 10418 return "" 10419 } 10420 return *p.MasterBranch 10421 } 10422 10423 // GetName returns the Name field if it's non-nil, zero value otherwise. 10424 func (p *PushEventRepository) GetName() string { 10425 if p == nil || p.Name == nil { 10426 return "" 10427 } 10428 return *p.Name 10429 } 10430 10431 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10432 func (p *PushEventRepository) GetNodeID() string { 10433 if p == nil || p.NodeID == nil { 10434 return "" 10435 } 10436 return *p.NodeID 10437 } 10438 10439 // GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 10440 func (p *PushEventRepository) GetOpenIssuesCount() int { 10441 if p == nil || p.OpenIssuesCount == nil { 10442 return 0 10443 } 10444 return *p.OpenIssuesCount 10445 } 10446 10447 // GetOrganization returns the Organization field if it's non-nil, zero value otherwise. 10448 func (p *PushEventRepository) GetOrganization() string { 10449 if p == nil || p.Organization == nil { 10450 return "" 10451 } 10452 return *p.Organization 10453 } 10454 10455 // GetOwner returns the Owner field. 10456 func (p *PushEventRepository) GetOwner() *User { 10457 if p == nil { 10458 return nil 10459 } 10460 return p.Owner 10461 } 10462 10463 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 10464 func (p *PushEventRepository) GetPrivate() bool { 10465 if p == nil || p.Private == nil { 10466 return false 10467 } 10468 return *p.Private 10469 } 10470 10471 // GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 10472 func (p *PushEventRepository) GetPullsURL() string { 10473 if p == nil || p.PullsURL == nil { 10474 return "" 10475 } 10476 return *p.PullsURL 10477 } 10478 10479 // GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 10480 func (p *PushEventRepository) GetPushedAt() Timestamp { 10481 if p == nil || p.PushedAt == nil { 10482 return Timestamp{} 10483 } 10484 return *p.PushedAt 10485 } 10486 10487 // GetSize returns the Size field if it's non-nil, zero value otherwise. 10488 func (p *PushEventRepository) GetSize() int { 10489 if p == nil || p.Size == nil { 10490 return 0 10491 } 10492 return *p.Size 10493 } 10494 10495 // GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 10496 func (p *PushEventRepository) GetSSHURL() string { 10497 if p == nil || p.SSHURL == nil { 10498 return "" 10499 } 10500 return *p.SSHURL 10501 } 10502 10503 // GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 10504 func (p *PushEventRepository) GetStargazersCount() int { 10505 if p == nil || p.StargazersCount == nil { 10506 return 0 10507 } 10508 return *p.StargazersCount 10509 } 10510 10511 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 10512 func (p *PushEventRepository) GetStatusesURL() string { 10513 if p == nil || p.StatusesURL == nil { 10514 return "" 10515 } 10516 return *p.StatusesURL 10517 } 10518 10519 // GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 10520 func (p *PushEventRepository) GetSVNURL() string { 10521 if p == nil || p.SVNURL == nil { 10522 return "" 10523 } 10524 return *p.SVNURL 10525 } 10526 10527 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10528 func (p *PushEventRepository) GetUpdatedAt() Timestamp { 10529 if p == nil || p.UpdatedAt == nil { 10530 return Timestamp{} 10531 } 10532 return *p.UpdatedAt 10533 } 10534 10535 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10536 func (p *PushEventRepository) GetURL() string { 10537 if p == nil || p.URL == nil { 10538 return "" 10539 } 10540 return *p.URL 10541 } 10542 10543 // GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 10544 func (p *PushEventRepository) GetWatchersCount() int { 10545 if p == nil || p.WatchersCount == nil { 10546 return 0 10547 } 10548 return *p.WatchersCount 10549 } 10550 10551 // GetCore returns the Core field. 10552 func (r *RateLimits) GetCore() *Rate { 10553 if r == nil { 10554 return nil 10555 } 10556 return r.Core 10557 } 10558 10559 // GetSearch returns the Search field. 10560 func (r *RateLimits) GetSearch() *Rate { 10561 if r == nil { 10562 return nil 10563 } 10564 return r.Search 10565 } 10566 10567 // GetContent returns the Content field if it's non-nil, zero value otherwise. 10568 func (r *Reaction) GetContent() string { 10569 if r == nil || r.Content == nil { 10570 return "" 10571 } 10572 return *r.Content 10573 } 10574 10575 // GetID returns the ID field if it's non-nil, zero value otherwise. 10576 func (r *Reaction) GetID() int64 { 10577 if r == nil || r.ID == nil { 10578 return 0 10579 } 10580 return *r.ID 10581 } 10582 10583 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10584 func (r *Reaction) GetNodeID() string { 10585 if r == nil || r.NodeID == nil { 10586 return "" 10587 } 10588 return *r.NodeID 10589 } 10590 10591 // GetUser returns the User field. 10592 func (r *Reaction) GetUser() *User { 10593 if r == nil { 10594 return nil 10595 } 10596 return r.User 10597 } 10598 10599 // GetConfused returns the Confused field if it's non-nil, zero value otherwise. 10600 func (r *Reactions) GetConfused() int { 10601 if r == nil || r.Confused == nil { 10602 return 0 10603 } 10604 return *r.Confused 10605 } 10606 10607 // GetEyes returns the Eyes field if it's non-nil, zero value otherwise. 10608 func (r *Reactions) GetEyes() int { 10609 if r == nil || r.Eyes == nil { 10610 return 0 10611 } 10612 return *r.Eyes 10613 } 10614 10615 // GetHeart returns the Heart field if it's non-nil, zero value otherwise. 10616 func (r *Reactions) GetHeart() int { 10617 if r == nil || r.Heart == nil { 10618 return 0 10619 } 10620 return *r.Heart 10621 } 10622 10623 // GetHooray returns the Hooray field if it's non-nil, zero value otherwise. 10624 func (r *Reactions) GetHooray() int { 10625 if r == nil || r.Hooray == nil { 10626 return 0 10627 } 10628 return *r.Hooray 10629 } 10630 10631 // GetLaugh returns the Laugh field if it's non-nil, zero value otherwise. 10632 func (r *Reactions) GetLaugh() int { 10633 if r == nil || r.Laugh == nil { 10634 return 0 10635 } 10636 return *r.Laugh 10637 } 10638 10639 // GetMinusOne returns the MinusOne field if it's non-nil, zero value otherwise. 10640 func (r *Reactions) GetMinusOne() int { 10641 if r == nil || r.MinusOne == nil { 10642 return 0 10643 } 10644 return *r.MinusOne 10645 } 10646 10647 // GetPlusOne returns the PlusOne field if it's non-nil, zero value otherwise. 10648 func (r *Reactions) GetPlusOne() int { 10649 if r == nil || r.PlusOne == nil { 10650 return 0 10651 } 10652 return *r.PlusOne 10653 } 10654 10655 // GetRocket returns the Rocket field if it's non-nil, zero value otherwise. 10656 func (r *Reactions) GetRocket() int { 10657 if r == nil || r.Rocket == nil { 10658 return 0 10659 } 10660 return *r.Rocket 10661 } 10662 10663 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 10664 func (r *Reactions) GetTotalCount() int { 10665 if r == nil || r.TotalCount == nil { 10666 return 0 10667 } 10668 return *r.TotalCount 10669 } 10670 10671 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10672 func (r *Reactions) GetURL() string { 10673 if r == nil || r.URL == nil { 10674 return "" 10675 } 10676 return *r.URL 10677 } 10678 10679 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10680 func (r *Reference) GetNodeID() string { 10681 if r == nil || r.NodeID == nil { 10682 return "" 10683 } 10684 return *r.NodeID 10685 } 10686 10687 // GetObject returns the Object field. 10688 func (r *Reference) GetObject() *GitObject { 10689 if r == nil { 10690 return nil 10691 } 10692 return r.Object 10693 } 10694 10695 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 10696 func (r *Reference) GetRef() string { 10697 if r == nil || r.Ref == nil { 10698 return "" 10699 } 10700 return *r.Ref 10701 } 10702 10703 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10704 func (r *Reference) GetURL() string { 10705 if r == nil || r.URL == nil { 10706 return "" 10707 } 10708 return *r.URL 10709 } 10710 10711 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 10712 func (r *RegistrationToken) GetExpiresAt() Timestamp { 10713 if r == nil || r.ExpiresAt == nil { 10714 return Timestamp{} 10715 } 10716 return *r.ExpiresAt 10717 } 10718 10719 // GetToken returns the Token field if it's non-nil, zero value otherwise. 10720 func (r *RegistrationToken) GetToken() string { 10721 if r == nil || r.Token == nil { 10722 return "" 10723 } 10724 return *r.Token 10725 } 10726 10727 // GetBrowserDownloadURL returns the BrowserDownloadURL field if it's non-nil, zero value otherwise. 10728 func (r *ReleaseAsset) GetBrowserDownloadURL() string { 10729 if r == nil || r.BrowserDownloadURL == nil { 10730 return "" 10731 } 10732 return *r.BrowserDownloadURL 10733 } 10734 10735 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 10736 func (r *ReleaseAsset) GetContentType() string { 10737 if r == nil || r.ContentType == nil { 10738 return "" 10739 } 10740 return *r.ContentType 10741 } 10742 10743 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10744 func (r *ReleaseAsset) GetCreatedAt() Timestamp { 10745 if r == nil || r.CreatedAt == nil { 10746 return Timestamp{} 10747 } 10748 return *r.CreatedAt 10749 } 10750 10751 // GetDownloadCount returns the DownloadCount field if it's non-nil, zero value otherwise. 10752 func (r *ReleaseAsset) GetDownloadCount() int { 10753 if r == nil || r.DownloadCount == nil { 10754 return 0 10755 } 10756 return *r.DownloadCount 10757 } 10758 10759 // GetID returns the ID field if it's non-nil, zero value otherwise. 10760 func (r *ReleaseAsset) GetID() int64 { 10761 if r == nil || r.ID == nil { 10762 return 0 10763 } 10764 return *r.ID 10765 } 10766 10767 // GetLabel returns the Label field if it's non-nil, zero value otherwise. 10768 func (r *ReleaseAsset) GetLabel() string { 10769 if r == nil || r.Label == nil { 10770 return "" 10771 } 10772 return *r.Label 10773 } 10774 10775 // GetName returns the Name field if it's non-nil, zero value otherwise. 10776 func (r *ReleaseAsset) GetName() string { 10777 if r == nil || r.Name == nil { 10778 return "" 10779 } 10780 return *r.Name 10781 } 10782 10783 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10784 func (r *ReleaseAsset) GetNodeID() string { 10785 if r == nil || r.NodeID == nil { 10786 return "" 10787 } 10788 return *r.NodeID 10789 } 10790 10791 // GetSize returns the Size field if it's non-nil, zero value otherwise. 10792 func (r *ReleaseAsset) GetSize() int { 10793 if r == nil || r.Size == nil { 10794 return 0 10795 } 10796 return *r.Size 10797 } 10798 10799 // GetState returns the State field if it's non-nil, zero value otherwise. 10800 func (r *ReleaseAsset) GetState() string { 10801 if r == nil || r.State == nil { 10802 return "" 10803 } 10804 return *r.State 10805 } 10806 10807 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10808 func (r *ReleaseAsset) GetUpdatedAt() Timestamp { 10809 if r == nil || r.UpdatedAt == nil { 10810 return Timestamp{} 10811 } 10812 return *r.UpdatedAt 10813 } 10814 10815 // GetUploader returns the Uploader field. 10816 func (r *ReleaseAsset) GetUploader() *User { 10817 if r == nil { 10818 return nil 10819 } 10820 return r.Uploader 10821 } 10822 10823 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10824 func (r *ReleaseAsset) GetURL() string { 10825 if r == nil || r.URL == nil { 10826 return "" 10827 } 10828 return *r.URL 10829 } 10830 10831 // GetAction returns the Action field if it's non-nil, zero value otherwise. 10832 func (r *ReleaseEvent) GetAction() string { 10833 if r == nil || r.Action == nil { 10834 return "" 10835 } 10836 return *r.Action 10837 } 10838 10839 // GetInstallation returns the Installation field. 10840 func (r *ReleaseEvent) GetInstallation() *Installation { 10841 if r == nil { 10842 return nil 10843 } 10844 return r.Installation 10845 } 10846 10847 // GetRelease returns the Release field. 10848 func (r *ReleaseEvent) GetRelease() *RepositoryRelease { 10849 if r == nil { 10850 return nil 10851 } 10852 return r.Release 10853 } 10854 10855 // GetRepo returns the Repo field. 10856 func (r *ReleaseEvent) GetRepo() *Repository { 10857 if r == nil { 10858 return nil 10859 } 10860 return r.Repo 10861 } 10862 10863 // GetSender returns the Sender field. 10864 func (r *ReleaseEvent) GetSender() *User { 10865 if r == nil { 10866 return nil 10867 } 10868 return r.Sender 10869 } 10870 10871 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 10872 func (r *RemoveToken) GetExpiresAt() Timestamp { 10873 if r == nil || r.ExpiresAt == nil { 10874 return Timestamp{} 10875 } 10876 return *r.ExpiresAt 10877 } 10878 10879 // GetToken returns the Token field if it's non-nil, zero value otherwise. 10880 func (r *RemoveToken) GetToken() string { 10881 if r == nil || r.Token == nil { 10882 return "" 10883 } 10884 return *r.Token 10885 } 10886 10887 // GetFrom returns the From field if it's non-nil, zero value otherwise. 10888 func (r *Rename) GetFrom() string { 10889 if r == nil || r.From == nil { 10890 return "" 10891 } 10892 return *r.From 10893 } 10894 10895 // GetTo returns the To field if it's non-nil, zero value otherwise. 10896 func (r *Rename) GetTo() string { 10897 if r == nil || r.To == nil { 10898 return "" 10899 } 10900 return *r.To 10901 } 10902 10903 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 10904 func (r *RenameOrgResponse) GetMessage() string { 10905 if r == nil || r.Message == nil { 10906 return "" 10907 } 10908 return *r.Message 10909 } 10910 10911 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10912 func (r *RenameOrgResponse) GetURL() string { 10913 if r == nil || r.URL == nil { 10914 return "" 10915 } 10916 return *r.URL 10917 } 10918 10919 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 10920 func (r *RepositoriesSearchResult) GetIncompleteResults() bool { 10921 if r == nil || r.IncompleteResults == nil { 10922 return false 10923 } 10924 return *r.IncompleteResults 10925 } 10926 10927 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 10928 func (r *RepositoriesSearchResult) GetTotal() int { 10929 if r == nil || r.Total == nil { 10930 return 0 10931 } 10932 return *r.Total 10933 } 10934 10935 // GetAllowMergeCommit returns the AllowMergeCommit field if it's non-nil, zero value otherwise. 10936 func (r *Repository) GetAllowMergeCommit() bool { 10937 if r == nil || r.AllowMergeCommit == nil { 10938 return false 10939 } 10940 return *r.AllowMergeCommit 10941 } 10942 10943 // GetAllowRebaseMerge returns the AllowRebaseMerge field if it's non-nil, zero value otherwise. 10944 func (r *Repository) GetAllowRebaseMerge() bool { 10945 if r == nil || r.AllowRebaseMerge == nil { 10946 return false 10947 } 10948 return *r.AllowRebaseMerge 10949 } 10950 10951 // GetAllowSquashMerge returns the AllowSquashMerge field if it's non-nil, zero value otherwise. 10952 func (r *Repository) GetAllowSquashMerge() bool { 10953 if r == nil || r.AllowSquashMerge == nil { 10954 return false 10955 } 10956 return *r.AllowSquashMerge 10957 } 10958 10959 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 10960 func (r *Repository) GetArchived() bool { 10961 if r == nil || r.Archived == nil { 10962 return false 10963 } 10964 return *r.Archived 10965 } 10966 10967 // GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 10968 func (r *Repository) GetArchiveURL() string { 10969 if r == nil || r.ArchiveURL == nil { 10970 return "" 10971 } 10972 return *r.ArchiveURL 10973 } 10974 10975 // GetAssigneesURL returns the AssigneesURL field if it's non-nil, zero value otherwise. 10976 func (r *Repository) GetAssigneesURL() string { 10977 if r == nil || r.AssigneesURL == nil { 10978 return "" 10979 } 10980 return *r.AssigneesURL 10981 } 10982 10983 // GetAutoInit returns the AutoInit field if it's non-nil, zero value otherwise. 10984 func (r *Repository) GetAutoInit() bool { 10985 if r == nil || r.AutoInit == nil { 10986 return false 10987 } 10988 return *r.AutoInit 10989 } 10990 10991 // GetBlobsURL returns the BlobsURL field if it's non-nil, zero value otherwise. 10992 func (r *Repository) GetBlobsURL() string { 10993 if r == nil || r.BlobsURL == nil { 10994 return "" 10995 } 10996 return *r.BlobsURL 10997 } 10998 10999 // GetBranchesURL returns the BranchesURL field if it's non-nil, zero value otherwise. 11000 func (r *Repository) GetBranchesURL() string { 11001 if r == nil || r.BranchesURL == nil { 11002 return "" 11003 } 11004 return *r.BranchesURL 11005 } 11006 11007 // GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 11008 func (r *Repository) GetCloneURL() string { 11009 if r == nil || r.CloneURL == nil { 11010 return "" 11011 } 11012 return *r.CloneURL 11013 } 11014 11015 // GetCodeOfConduct returns the CodeOfConduct field. 11016 func (r *Repository) GetCodeOfConduct() *CodeOfConduct { 11017 if r == nil { 11018 return nil 11019 } 11020 return r.CodeOfConduct 11021 } 11022 11023 // GetCollaboratorsURL returns the CollaboratorsURL field if it's non-nil, zero value otherwise. 11024 func (r *Repository) GetCollaboratorsURL() string { 11025 if r == nil || r.CollaboratorsURL == nil { 11026 return "" 11027 } 11028 return *r.CollaboratorsURL 11029 } 11030 11031 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 11032 func (r *Repository) GetCommentsURL() string { 11033 if r == nil || r.CommentsURL == nil { 11034 return "" 11035 } 11036 return *r.CommentsURL 11037 } 11038 11039 // GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. 11040 func (r *Repository) GetCommitsURL() string { 11041 if r == nil || r.CommitsURL == nil { 11042 return "" 11043 } 11044 return *r.CommitsURL 11045 } 11046 11047 // GetCompareURL returns the CompareURL field if it's non-nil, zero value otherwise. 11048 func (r *Repository) GetCompareURL() string { 11049 if r == nil || r.CompareURL == nil { 11050 return "" 11051 } 11052 return *r.CompareURL 11053 } 11054 11055 // GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 11056 func (r *Repository) GetContentsURL() string { 11057 if r == nil || r.ContentsURL == nil { 11058 return "" 11059 } 11060 return *r.ContentsURL 11061 } 11062 11063 // GetContributorsURL returns the ContributorsURL field if it's non-nil, zero value otherwise. 11064 func (r *Repository) GetContributorsURL() string { 11065 if r == nil || r.ContributorsURL == nil { 11066 return "" 11067 } 11068 return *r.ContributorsURL 11069 } 11070 11071 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11072 func (r *Repository) GetCreatedAt() Timestamp { 11073 if r == nil || r.CreatedAt == nil { 11074 return Timestamp{} 11075 } 11076 return *r.CreatedAt 11077 } 11078 11079 // GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 11080 func (r *Repository) GetDefaultBranch() string { 11081 if r == nil || r.DefaultBranch == nil { 11082 return "" 11083 } 11084 return *r.DefaultBranch 11085 } 11086 11087 // GetDeleteBranchOnMerge returns the DeleteBranchOnMerge field if it's non-nil, zero value otherwise. 11088 func (r *Repository) GetDeleteBranchOnMerge() bool { 11089 if r == nil || r.DeleteBranchOnMerge == nil { 11090 return false 11091 } 11092 return *r.DeleteBranchOnMerge 11093 } 11094 11095 // GetDeploymentsURL returns the DeploymentsURL field if it's non-nil, zero value otherwise. 11096 func (r *Repository) GetDeploymentsURL() string { 11097 if r == nil || r.DeploymentsURL == nil { 11098 return "" 11099 } 11100 return *r.DeploymentsURL 11101 } 11102 11103 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 11104 func (r *Repository) GetDescription() string { 11105 if r == nil || r.Description == nil { 11106 return "" 11107 } 11108 return *r.Description 11109 } 11110 11111 // GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. 11112 func (r *Repository) GetDisabled() bool { 11113 if r == nil || r.Disabled == nil { 11114 return false 11115 } 11116 return *r.Disabled 11117 } 11118 11119 // GetDownloadsURL returns the DownloadsURL field if it's non-nil, zero value otherwise. 11120 func (r *Repository) GetDownloadsURL() string { 11121 if r == nil || r.DownloadsURL == nil { 11122 return "" 11123 } 11124 return *r.DownloadsURL 11125 } 11126 11127 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 11128 func (r *Repository) GetEventsURL() string { 11129 if r == nil || r.EventsURL == nil { 11130 return "" 11131 } 11132 return *r.EventsURL 11133 } 11134 11135 // GetFork returns the Fork field if it's non-nil, zero value otherwise. 11136 func (r *Repository) GetFork() bool { 11137 if r == nil || r.Fork == nil { 11138 return false 11139 } 11140 return *r.Fork 11141 } 11142 11143 // GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 11144 func (r *Repository) GetForksCount() int { 11145 if r == nil || r.ForksCount == nil { 11146 return 0 11147 } 11148 return *r.ForksCount 11149 } 11150 11151 // GetForksURL returns the ForksURL field if it's non-nil, zero value otherwise. 11152 func (r *Repository) GetForksURL() string { 11153 if r == nil || r.ForksURL == nil { 11154 return "" 11155 } 11156 return *r.ForksURL 11157 } 11158 11159 // GetFullName returns the FullName field if it's non-nil, zero value otherwise. 11160 func (r *Repository) GetFullName() string { 11161 if r == nil || r.FullName == nil { 11162 return "" 11163 } 11164 return *r.FullName 11165 } 11166 11167 // GetGitCommitsURL returns the GitCommitsURL field if it's non-nil, zero value otherwise. 11168 func (r *Repository) GetGitCommitsURL() string { 11169 if r == nil || r.GitCommitsURL == nil { 11170 return "" 11171 } 11172 return *r.GitCommitsURL 11173 } 11174 11175 // GetGitignoreTemplate returns the GitignoreTemplate field if it's non-nil, zero value otherwise. 11176 func (r *Repository) GetGitignoreTemplate() string { 11177 if r == nil || r.GitignoreTemplate == nil { 11178 return "" 11179 } 11180 return *r.GitignoreTemplate 11181 } 11182 11183 // GetGitRefsURL returns the GitRefsURL field if it's non-nil, zero value otherwise. 11184 func (r *Repository) GetGitRefsURL() string { 11185 if r == nil || r.GitRefsURL == nil { 11186 return "" 11187 } 11188 return *r.GitRefsURL 11189 } 11190 11191 // GetGitTagsURL returns the GitTagsURL field if it's non-nil, zero value otherwise. 11192 func (r *Repository) GetGitTagsURL() string { 11193 if r == nil || r.GitTagsURL == nil { 11194 return "" 11195 } 11196 return *r.GitTagsURL 11197 } 11198 11199 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 11200 func (r *Repository) GetGitURL() string { 11201 if r == nil || r.GitURL == nil { 11202 return "" 11203 } 11204 return *r.GitURL 11205 } 11206 11207 // GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 11208 func (r *Repository) GetHasDownloads() bool { 11209 if r == nil || r.HasDownloads == nil { 11210 return false 11211 } 11212 return *r.HasDownloads 11213 } 11214 11215 // GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 11216 func (r *Repository) GetHasIssues() bool { 11217 if r == nil || r.HasIssues == nil { 11218 return false 11219 } 11220 return *r.HasIssues 11221 } 11222 11223 // GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 11224 func (r *Repository) GetHasPages() bool { 11225 if r == nil || r.HasPages == nil { 11226 return false 11227 } 11228 return *r.HasPages 11229 } 11230 11231 // GetHasProjects returns the HasProjects field if it's non-nil, zero value otherwise. 11232 func (r *Repository) GetHasProjects() bool { 11233 if r == nil || r.HasProjects == nil { 11234 return false 11235 } 11236 return *r.HasProjects 11237 } 11238 11239 // GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 11240 func (r *Repository) GetHasWiki() bool { 11241 if r == nil || r.HasWiki == nil { 11242 return false 11243 } 11244 return *r.HasWiki 11245 } 11246 11247 // GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 11248 func (r *Repository) GetHomepage() string { 11249 if r == nil || r.Homepage == nil { 11250 return "" 11251 } 11252 return *r.Homepage 11253 } 11254 11255 // GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 11256 func (r *Repository) GetHooksURL() string { 11257 if r == nil || r.HooksURL == nil { 11258 return "" 11259 } 11260 return *r.HooksURL 11261 } 11262 11263 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11264 func (r *Repository) GetHTMLURL() string { 11265 if r == nil || r.HTMLURL == nil { 11266 return "" 11267 } 11268 return *r.HTMLURL 11269 } 11270 11271 // GetID returns the ID field if it's non-nil, zero value otherwise. 11272 func (r *Repository) GetID() int64 { 11273 if r == nil || r.ID == nil { 11274 return 0 11275 } 11276 return *r.ID 11277 } 11278 11279 // GetIssueCommentURL returns the IssueCommentURL field if it's non-nil, zero value otherwise. 11280 func (r *Repository) GetIssueCommentURL() string { 11281 if r == nil || r.IssueCommentURL == nil { 11282 return "" 11283 } 11284 return *r.IssueCommentURL 11285 } 11286 11287 // GetIssueEventsURL returns the IssueEventsURL field if it's non-nil, zero value otherwise. 11288 func (r *Repository) GetIssueEventsURL() string { 11289 if r == nil || r.IssueEventsURL == nil { 11290 return "" 11291 } 11292 return *r.IssueEventsURL 11293 } 11294 11295 // GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 11296 func (r *Repository) GetIssuesURL() string { 11297 if r == nil || r.IssuesURL == nil { 11298 return "" 11299 } 11300 return *r.IssuesURL 11301 } 11302 11303 // GetIsTemplate returns the IsTemplate field if it's non-nil, zero value otherwise. 11304 func (r *Repository) GetIsTemplate() bool { 11305 if r == nil || r.IsTemplate == nil { 11306 return false 11307 } 11308 return *r.IsTemplate 11309 } 11310 11311 // GetKeysURL returns the KeysURL field if it's non-nil, zero value otherwise. 11312 func (r *Repository) GetKeysURL() string { 11313 if r == nil || r.KeysURL == nil { 11314 return "" 11315 } 11316 return *r.KeysURL 11317 } 11318 11319 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 11320 func (r *Repository) GetLabelsURL() string { 11321 if r == nil || r.LabelsURL == nil { 11322 return "" 11323 } 11324 return *r.LabelsURL 11325 } 11326 11327 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 11328 func (r *Repository) GetLanguage() string { 11329 if r == nil || r.Language == nil { 11330 return "" 11331 } 11332 return *r.Language 11333 } 11334 11335 // GetLanguagesURL returns the LanguagesURL field if it's non-nil, zero value otherwise. 11336 func (r *Repository) GetLanguagesURL() string { 11337 if r == nil || r.LanguagesURL == nil { 11338 return "" 11339 } 11340 return *r.LanguagesURL 11341 } 11342 11343 // GetLicense returns the License field. 11344 func (r *Repository) GetLicense() *License { 11345 if r == nil { 11346 return nil 11347 } 11348 return r.License 11349 } 11350 11351 // GetLicenseTemplate returns the LicenseTemplate field if it's non-nil, zero value otherwise. 11352 func (r *Repository) GetLicenseTemplate() string { 11353 if r == nil || r.LicenseTemplate == nil { 11354 return "" 11355 } 11356 return *r.LicenseTemplate 11357 } 11358 11359 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 11360 func (r *Repository) GetMasterBranch() string { 11361 if r == nil || r.MasterBranch == nil { 11362 return "" 11363 } 11364 return *r.MasterBranch 11365 } 11366 11367 // GetMergesURL returns the MergesURL field if it's non-nil, zero value otherwise. 11368 func (r *Repository) GetMergesURL() string { 11369 if r == nil || r.MergesURL == nil { 11370 return "" 11371 } 11372 return *r.MergesURL 11373 } 11374 11375 // GetMilestonesURL returns the MilestonesURL field if it's non-nil, zero value otherwise. 11376 func (r *Repository) GetMilestonesURL() string { 11377 if r == nil || r.MilestonesURL == nil { 11378 return "" 11379 } 11380 return *r.MilestonesURL 11381 } 11382 11383 // GetMirrorURL returns the MirrorURL field if it's non-nil, zero value otherwise. 11384 func (r *Repository) GetMirrorURL() string { 11385 if r == nil || r.MirrorURL == nil { 11386 return "" 11387 } 11388 return *r.MirrorURL 11389 } 11390 11391 // GetName returns the Name field if it's non-nil, zero value otherwise. 11392 func (r *Repository) GetName() string { 11393 if r == nil || r.Name == nil { 11394 return "" 11395 } 11396 return *r.Name 11397 } 11398 11399 // GetNetworkCount returns the NetworkCount field if it's non-nil, zero value otherwise. 11400 func (r *Repository) GetNetworkCount() int { 11401 if r == nil || r.NetworkCount == nil { 11402 return 0 11403 } 11404 return *r.NetworkCount 11405 } 11406 11407 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11408 func (r *Repository) GetNodeID() string { 11409 if r == nil || r.NodeID == nil { 11410 return "" 11411 } 11412 return *r.NodeID 11413 } 11414 11415 // GetNotificationsURL returns the NotificationsURL field if it's non-nil, zero value otherwise. 11416 func (r *Repository) GetNotificationsURL() string { 11417 if r == nil || r.NotificationsURL == nil { 11418 return "" 11419 } 11420 return *r.NotificationsURL 11421 } 11422 11423 // GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 11424 func (r *Repository) GetOpenIssuesCount() int { 11425 if r == nil || r.OpenIssuesCount == nil { 11426 return 0 11427 } 11428 return *r.OpenIssuesCount 11429 } 11430 11431 // GetOrganization returns the Organization field. 11432 func (r *Repository) GetOrganization() *Organization { 11433 if r == nil { 11434 return nil 11435 } 11436 return r.Organization 11437 } 11438 11439 // GetOwner returns the Owner field. 11440 func (r *Repository) GetOwner() *User { 11441 if r == nil { 11442 return nil 11443 } 11444 return r.Owner 11445 } 11446 11447 // GetParent returns the Parent field. 11448 func (r *Repository) GetParent() *Repository { 11449 if r == nil { 11450 return nil 11451 } 11452 return r.Parent 11453 } 11454 11455 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 11456 func (r *Repository) GetPermissions() map[string]bool { 11457 if r == nil || r.Permissions == nil { 11458 return map[string]bool{} 11459 } 11460 return *r.Permissions 11461 } 11462 11463 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 11464 func (r *Repository) GetPrivate() bool { 11465 if r == nil || r.Private == nil { 11466 return false 11467 } 11468 return *r.Private 11469 } 11470 11471 // GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 11472 func (r *Repository) GetPullsURL() string { 11473 if r == nil || r.PullsURL == nil { 11474 return "" 11475 } 11476 return *r.PullsURL 11477 } 11478 11479 // GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 11480 func (r *Repository) GetPushedAt() Timestamp { 11481 if r == nil || r.PushedAt == nil { 11482 return Timestamp{} 11483 } 11484 return *r.PushedAt 11485 } 11486 11487 // GetReleasesURL returns the ReleasesURL field if it's non-nil, zero value otherwise. 11488 func (r *Repository) GetReleasesURL() string { 11489 if r == nil || r.ReleasesURL == nil { 11490 return "" 11491 } 11492 return *r.ReleasesURL 11493 } 11494 11495 // GetSize returns the Size field if it's non-nil, zero value otherwise. 11496 func (r *Repository) GetSize() int { 11497 if r == nil || r.Size == nil { 11498 return 0 11499 } 11500 return *r.Size 11501 } 11502 11503 // GetSource returns the Source field. 11504 func (r *Repository) GetSource() *Repository { 11505 if r == nil { 11506 return nil 11507 } 11508 return r.Source 11509 } 11510 11511 // GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 11512 func (r *Repository) GetSSHURL() string { 11513 if r == nil || r.SSHURL == nil { 11514 return "" 11515 } 11516 return *r.SSHURL 11517 } 11518 11519 // GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 11520 func (r *Repository) GetStargazersCount() int { 11521 if r == nil || r.StargazersCount == nil { 11522 return 0 11523 } 11524 return *r.StargazersCount 11525 } 11526 11527 // GetStargazersURL returns the StargazersURL field if it's non-nil, zero value otherwise. 11528 func (r *Repository) GetStargazersURL() string { 11529 if r == nil || r.StargazersURL == nil { 11530 return "" 11531 } 11532 return *r.StargazersURL 11533 } 11534 11535 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 11536 func (r *Repository) GetStatusesURL() string { 11537 if r == nil || r.StatusesURL == nil { 11538 return "" 11539 } 11540 return *r.StatusesURL 11541 } 11542 11543 // GetSubscribersCount returns the SubscribersCount field if it's non-nil, zero value otherwise. 11544 func (r *Repository) GetSubscribersCount() int { 11545 if r == nil || r.SubscribersCount == nil { 11546 return 0 11547 } 11548 return *r.SubscribersCount 11549 } 11550 11551 // GetSubscribersURL returns the SubscribersURL field if it's non-nil, zero value otherwise. 11552 func (r *Repository) GetSubscribersURL() string { 11553 if r == nil || r.SubscribersURL == nil { 11554 return "" 11555 } 11556 return *r.SubscribersURL 11557 } 11558 11559 // GetSubscriptionURL returns the SubscriptionURL field if it's non-nil, zero value otherwise. 11560 func (r *Repository) GetSubscriptionURL() string { 11561 if r == nil || r.SubscriptionURL == nil { 11562 return "" 11563 } 11564 return *r.SubscriptionURL 11565 } 11566 11567 // GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 11568 func (r *Repository) GetSVNURL() string { 11569 if r == nil || r.SVNURL == nil { 11570 return "" 11571 } 11572 return *r.SVNURL 11573 } 11574 11575 // GetTagsURL returns the TagsURL field if it's non-nil, zero value otherwise. 11576 func (r *Repository) GetTagsURL() string { 11577 if r == nil || r.TagsURL == nil { 11578 return "" 11579 } 11580 return *r.TagsURL 11581 } 11582 11583 // GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. 11584 func (r *Repository) GetTeamID() int64 { 11585 if r == nil || r.TeamID == nil { 11586 return 0 11587 } 11588 return *r.TeamID 11589 } 11590 11591 // GetTeamsURL returns the TeamsURL field if it's non-nil, zero value otherwise. 11592 func (r *Repository) GetTeamsURL() string { 11593 if r == nil || r.TeamsURL == nil { 11594 return "" 11595 } 11596 return *r.TeamsURL 11597 } 11598 11599 // GetTemplateRepository returns the TemplateRepository field. 11600 func (r *Repository) GetTemplateRepository() *Repository { 11601 if r == nil { 11602 return nil 11603 } 11604 return r.TemplateRepository 11605 } 11606 11607 // GetTreesURL returns the TreesURL field if it's non-nil, zero value otherwise. 11608 func (r *Repository) GetTreesURL() string { 11609 if r == nil || r.TreesURL == nil { 11610 return "" 11611 } 11612 return *r.TreesURL 11613 } 11614 11615 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11616 func (r *Repository) GetUpdatedAt() Timestamp { 11617 if r == nil || r.UpdatedAt == nil { 11618 return Timestamp{} 11619 } 11620 return *r.UpdatedAt 11621 } 11622 11623 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11624 func (r *Repository) GetURL() string { 11625 if r == nil || r.URL == nil { 11626 return "" 11627 } 11628 return *r.URL 11629 } 11630 11631 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 11632 func (r *Repository) GetVisibility() string { 11633 if r == nil || r.Visibility == nil { 11634 return "" 11635 } 11636 return *r.Visibility 11637 } 11638 11639 // GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 11640 func (r *Repository) GetWatchersCount() int { 11641 if r == nil || r.WatchersCount == nil { 11642 return 0 11643 } 11644 return *r.WatchersCount 11645 } 11646 11647 // GetBody returns the Body field if it's non-nil, zero value otherwise. 11648 func (r *RepositoryComment) GetBody() string { 11649 if r == nil || r.Body == nil { 11650 return "" 11651 } 11652 return *r.Body 11653 } 11654 11655 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 11656 func (r *RepositoryComment) GetCommitID() string { 11657 if r == nil || r.CommitID == nil { 11658 return "" 11659 } 11660 return *r.CommitID 11661 } 11662 11663 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11664 func (r *RepositoryComment) GetCreatedAt() time.Time { 11665 if r == nil || r.CreatedAt == nil { 11666 return time.Time{} 11667 } 11668 return *r.CreatedAt 11669 } 11670 11671 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11672 func (r *RepositoryComment) GetHTMLURL() string { 11673 if r == nil || r.HTMLURL == nil { 11674 return "" 11675 } 11676 return *r.HTMLURL 11677 } 11678 11679 // GetID returns the ID field if it's non-nil, zero value otherwise. 11680 func (r *RepositoryComment) GetID() int64 { 11681 if r == nil || r.ID == nil { 11682 return 0 11683 } 11684 return *r.ID 11685 } 11686 11687 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11688 func (r *RepositoryComment) GetNodeID() string { 11689 if r == nil || r.NodeID == nil { 11690 return "" 11691 } 11692 return *r.NodeID 11693 } 11694 11695 // GetPath returns the Path field if it's non-nil, zero value otherwise. 11696 func (r *RepositoryComment) GetPath() string { 11697 if r == nil || r.Path == nil { 11698 return "" 11699 } 11700 return *r.Path 11701 } 11702 11703 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 11704 func (r *RepositoryComment) GetPosition() int { 11705 if r == nil || r.Position == nil { 11706 return 0 11707 } 11708 return *r.Position 11709 } 11710 11711 // GetReactions returns the Reactions field. 11712 func (r *RepositoryComment) GetReactions() *Reactions { 11713 if r == nil { 11714 return nil 11715 } 11716 return r.Reactions 11717 } 11718 11719 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11720 func (r *RepositoryComment) GetUpdatedAt() time.Time { 11721 if r == nil || r.UpdatedAt == nil { 11722 return time.Time{} 11723 } 11724 return *r.UpdatedAt 11725 } 11726 11727 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11728 func (r *RepositoryComment) GetURL() string { 11729 if r == nil || r.URL == nil { 11730 return "" 11731 } 11732 return *r.URL 11733 } 11734 11735 // GetUser returns the User field. 11736 func (r *RepositoryComment) GetUser() *User { 11737 if r == nil { 11738 return nil 11739 } 11740 return r.User 11741 } 11742 11743 // GetAuthor returns the Author field. 11744 func (r *RepositoryCommit) GetAuthor() *User { 11745 if r == nil { 11746 return nil 11747 } 11748 return r.Author 11749 } 11750 11751 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 11752 func (r *RepositoryCommit) GetCommentsURL() string { 11753 if r == nil || r.CommentsURL == nil { 11754 return "" 11755 } 11756 return *r.CommentsURL 11757 } 11758 11759 // GetCommit returns the Commit field. 11760 func (r *RepositoryCommit) GetCommit() *Commit { 11761 if r == nil { 11762 return nil 11763 } 11764 return r.Commit 11765 } 11766 11767 // GetCommitter returns the Committer field. 11768 func (r *RepositoryCommit) GetCommitter() *User { 11769 if r == nil { 11770 return nil 11771 } 11772 return r.Committer 11773 } 11774 11775 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11776 func (r *RepositoryCommit) GetHTMLURL() string { 11777 if r == nil || r.HTMLURL == nil { 11778 return "" 11779 } 11780 return *r.HTMLURL 11781 } 11782 11783 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11784 func (r *RepositoryCommit) GetNodeID() string { 11785 if r == nil || r.NodeID == nil { 11786 return "" 11787 } 11788 return *r.NodeID 11789 } 11790 11791 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 11792 func (r *RepositoryCommit) GetSHA() string { 11793 if r == nil || r.SHA == nil { 11794 return "" 11795 } 11796 return *r.SHA 11797 } 11798 11799 // GetStats returns the Stats field. 11800 func (r *RepositoryCommit) GetStats() *CommitStats { 11801 if r == nil { 11802 return nil 11803 } 11804 return r.Stats 11805 } 11806 11807 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11808 func (r *RepositoryCommit) GetURL() string { 11809 if r == nil || r.URL == nil { 11810 return "" 11811 } 11812 return *r.URL 11813 } 11814 11815 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 11816 func (r *RepositoryContent) GetDownloadURL() string { 11817 if r == nil || r.DownloadURL == nil { 11818 return "" 11819 } 11820 return *r.DownloadURL 11821 } 11822 11823 // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 11824 func (r *RepositoryContent) GetEncoding() string { 11825 if r == nil || r.Encoding == nil { 11826 return "" 11827 } 11828 return *r.Encoding 11829 } 11830 11831 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 11832 func (r *RepositoryContent) GetGitURL() string { 11833 if r == nil || r.GitURL == nil { 11834 return "" 11835 } 11836 return *r.GitURL 11837 } 11838 11839 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11840 func (r *RepositoryContent) GetHTMLURL() string { 11841 if r == nil || r.HTMLURL == nil { 11842 return "" 11843 } 11844 return *r.HTMLURL 11845 } 11846 11847 // GetName returns the Name field if it's non-nil, zero value otherwise. 11848 func (r *RepositoryContent) GetName() string { 11849 if r == nil || r.Name == nil { 11850 return "" 11851 } 11852 return *r.Name 11853 } 11854 11855 // GetPath returns the Path field if it's non-nil, zero value otherwise. 11856 func (r *RepositoryContent) GetPath() string { 11857 if r == nil || r.Path == nil { 11858 return "" 11859 } 11860 return *r.Path 11861 } 11862 11863 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 11864 func (r *RepositoryContent) GetSHA() string { 11865 if r == nil || r.SHA == nil { 11866 return "" 11867 } 11868 return *r.SHA 11869 } 11870 11871 // GetSize returns the Size field if it's non-nil, zero value otherwise. 11872 func (r *RepositoryContent) GetSize() int { 11873 if r == nil || r.Size == nil { 11874 return 0 11875 } 11876 return *r.Size 11877 } 11878 11879 // GetTarget returns the Target field if it's non-nil, zero value otherwise. 11880 func (r *RepositoryContent) GetTarget() string { 11881 if r == nil || r.Target == nil { 11882 return "" 11883 } 11884 return *r.Target 11885 } 11886 11887 // GetType returns the Type field if it's non-nil, zero value otherwise. 11888 func (r *RepositoryContent) GetType() string { 11889 if r == nil || r.Type == nil { 11890 return "" 11891 } 11892 return *r.Type 11893 } 11894 11895 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11896 func (r *RepositoryContent) GetURL() string { 11897 if r == nil || r.URL == nil { 11898 return "" 11899 } 11900 return *r.URL 11901 } 11902 11903 // GetAuthor returns the Author field. 11904 func (r *RepositoryContentFileOptions) GetAuthor() *CommitAuthor { 11905 if r == nil { 11906 return nil 11907 } 11908 return r.Author 11909 } 11910 11911 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 11912 func (r *RepositoryContentFileOptions) GetBranch() string { 11913 if r == nil || r.Branch == nil { 11914 return "" 11915 } 11916 return *r.Branch 11917 } 11918 11919 // GetCommitter returns the Committer field. 11920 func (r *RepositoryContentFileOptions) GetCommitter() *CommitAuthor { 11921 if r == nil { 11922 return nil 11923 } 11924 return r.Committer 11925 } 11926 11927 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 11928 func (r *RepositoryContentFileOptions) GetMessage() string { 11929 if r == nil || r.Message == nil { 11930 return "" 11931 } 11932 return *r.Message 11933 } 11934 11935 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 11936 func (r *RepositoryContentFileOptions) GetSHA() string { 11937 if r == nil || r.SHA == nil { 11938 return "" 11939 } 11940 return *r.SHA 11941 } 11942 11943 // GetContent returns the Content field. 11944 func (r *RepositoryContentResponse) GetContent() *RepositoryContent { 11945 if r == nil { 11946 return nil 11947 } 11948 return r.Content 11949 } 11950 11951 // GetAction returns the Action field if it's non-nil, zero value otherwise. 11952 func (r *RepositoryDispatchEvent) GetAction() string { 11953 if r == nil || r.Action == nil { 11954 return "" 11955 } 11956 return *r.Action 11957 } 11958 11959 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 11960 func (r *RepositoryDispatchEvent) GetBranch() string { 11961 if r == nil || r.Branch == nil { 11962 return "" 11963 } 11964 return *r.Branch 11965 } 11966 11967 // GetInstallation returns the Installation field. 11968 func (r *RepositoryDispatchEvent) GetInstallation() *Installation { 11969 if r == nil { 11970 return nil 11971 } 11972 return r.Installation 11973 } 11974 11975 // GetOrg returns the Org field. 11976 func (r *RepositoryDispatchEvent) GetOrg() *Organization { 11977 if r == nil { 11978 return nil 11979 } 11980 return r.Org 11981 } 11982 11983 // GetRepo returns the Repo field. 11984 func (r *RepositoryDispatchEvent) GetRepo() *Repository { 11985 if r == nil { 11986 return nil 11987 } 11988 return r.Repo 11989 } 11990 11991 // GetSender returns the Sender field. 11992 func (r *RepositoryDispatchEvent) GetSender() *User { 11993 if r == nil { 11994 return nil 11995 } 11996 return r.Sender 11997 } 11998 11999 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12000 func (r *RepositoryEvent) GetAction() string { 12001 if r == nil || r.Action == nil { 12002 return "" 12003 } 12004 return *r.Action 12005 } 12006 12007 // GetInstallation returns the Installation field. 12008 func (r *RepositoryEvent) GetInstallation() *Installation { 12009 if r == nil { 12010 return nil 12011 } 12012 return r.Installation 12013 } 12014 12015 // GetOrg returns the Org field. 12016 func (r *RepositoryEvent) GetOrg() *Organization { 12017 if r == nil { 12018 return nil 12019 } 12020 return r.Org 12021 } 12022 12023 // GetRepo returns the Repo field. 12024 func (r *RepositoryEvent) GetRepo() *Repository { 12025 if r == nil { 12026 return nil 12027 } 12028 return r.Repo 12029 } 12030 12031 // GetSender returns the Sender field. 12032 func (r *RepositoryEvent) GetSender() *User { 12033 if r == nil { 12034 return nil 12035 } 12036 return r.Sender 12037 } 12038 12039 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12040 func (r *RepositoryInvitation) GetCreatedAt() Timestamp { 12041 if r == nil || r.CreatedAt == nil { 12042 return Timestamp{} 12043 } 12044 return *r.CreatedAt 12045 } 12046 12047 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 12048 func (r *RepositoryInvitation) GetHTMLURL() string { 12049 if r == nil || r.HTMLURL == nil { 12050 return "" 12051 } 12052 return *r.HTMLURL 12053 } 12054 12055 // GetID returns the ID field if it's non-nil, zero value otherwise. 12056 func (r *RepositoryInvitation) GetID() int64 { 12057 if r == nil || r.ID == nil { 12058 return 0 12059 } 12060 return *r.ID 12061 } 12062 12063 // GetInvitee returns the Invitee field. 12064 func (r *RepositoryInvitation) GetInvitee() *User { 12065 if r == nil { 12066 return nil 12067 } 12068 return r.Invitee 12069 } 12070 12071 // GetInviter returns the Inviter field. 12072 func (r *RepositoryInvitation) GetInviter() *User { 12073 if r == nil { 12074 return nil 12075 } 12076 return r.Inviter 12077 } 12078 12079 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 12080 func (r *RepositoryInvitation) GetPermissions() string { 12081 if r == nil || r.Permissions == nil { 12082 return "" 12083 } 12084 return *r.Permissions 12085 } 12086 12087 // GetRepo returns the Repo field. 12088 func (r *RepositoryInvitation) GetRepo() *Repository { 12089 if r == nil { 12090 return nil 12091 } 12092 return r.Repo 12093 } 12094 12095 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12096 func (r *RepositoryInvitation) GetURL() string { 12097 if r == nil || r.URL == nil { 12098 return "" 12099 } 12100 return *r.URL 12101 } 12102 12103 // GetContent returns the Content field if it's non-nil, zero value otherwise. 12104 func (r *RepositoryLicense) GetContent() string { 12105 if r == nil || r.Content == nil { 12106 return "" 12107 } 12108 return *r.Content 12109 } 12110 12111 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 12112 func (r *RepositoryLicense) GetDownloadURL() string { 12113 if r == nil || r.DownloadURL == nil { 12114 return "" 12115 } 12116 return *r.DownloadURL 12117 } 12118 12119 // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 12120 func (r *RepositoryLicense) GetEncoding() string { 12121 if r == nil || r.Encoding == nil { 12122 return "" 12123 } 12124 return *r.Encoding 12125 } 12126 12127 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 12128 func (r *RepositoryLicense) GetGitURL() string { 12129 if r == nil || r.GitURL == nil { 12130 return "" 12131 } 12132 return *r.GitURL 12133 } 12134 12135 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 12136 func (r *RepositoryLicense) GetHTMLURL() string { 12137 if r == nil || r.HTMLURL == nil { 12138 return "" 12139 } 12140 return *r.HTMLURL 12141 } 12142 12143 // GetLicense returns the License field. 12144 func (r *RepositoryLicense) GetLicense() *License { 12145 if r == nil { 12146 return nil 12147 } 12148 return r.License 12149 } 12150 12151 // GetName returns the Name field if it's non-nil, zero value otherwise. 12152 func (r *RepositoryLicense) GetName() string { 12153 if r == nil || r.Name == nil { 12154 return "" 12155 } 12156 return *r.Name 12157 } 12158 12159 // GetPath returns the Path field if it's non-nil, zero value otherwise. 12160 func (r *RepositoryLicense) GetPath() string { 12161 if r == nil || r.Path == nil { 12162 return "" 12163 } 12164 return *r.Path 12165 } 12166 12167 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 12168 func (r *RepositoryLicense) GetSHA() string { 12169 if r == nil || r.SHA == nil { 12170 return "" 12171 } 12172 return *r.SHA 12173 } 12174 12175 // GetSize returns the Size field if it's non-nil, zero value otherwise. 12176 func (r *RepositoryLicense) GetSize() int { 12177 if r == nil || r.Size == nil { 12178 return 0 12179 } 12180 return *r.Size 12181 } 12182 12183 // GetType returns the Type field if it's non-nil, zero value otherwise. 12184 func (r *RepositoryLicense) GetType() string { 12185 if r == nil || r.Type == nil { 12186 return "" 12187 } 12188 return *r.Type 12189 } 12190 12191 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12192 func (r *RepositoryLicense) GetURL() string { 12193 if r == nil || r.URL == nil { 12194 return "" 12195 } 12196 return *r.URL 12197 } 12198 12199 // GetBase returns the Base field if it's non-nil, zero value otherwise. 12200 func (r *RepositoryMergeRequest) GetBase() string { 12201 if r == nil || r.Base == nil { 12202 return "" 12203 } 12204 return *r.Base 12205 } 12206 12207 // GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. 12208 func (r *RepositoryMergeRequest) GetCommitMessage() string { 12209 if r == nil || r.CommitMessage == nil { 12210 return "" 12211 } 12212 return *r.CommitMessage 12213 } 12214 12215 // GetHead returns the Head field if it's non-nil, zero value otherwise. 12216 func (r *RepositoryMergeRequest) GetHead() string { 12217 if r == nil || r.Head == nil { 12218 return "" 12219 } 12220 return *r.Head 12221 } 12222 12223 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 12224 func (r *RepositoryPermissionLevel) GetPermission() string { 12225 if r == nil || r.Permission == nil { 12226 return "" 12227 } 12228 return *r.Permission 12229 } 12230 12231 // GetUser returns the User field. 12232 func (r *RepositoryPermissionLevel) GetUser() *User { 12233 if r == nil { 12234 return nil 12235 } 12236 return r.User 12237 } 12238 12239 // GetAssetsURL returns the AssetsURL field if it's non-nil, zero value otherwise. 12240 func (r *RepositoryRelease) GetAssetsURL() string { 12241 if r == nil || r.AssetsURL == nil { 12242 return "" 12243 } 12244 return *r.AssetsURL 12245 } 12246 12247 // GetAuthor returns the Author field. 12248 func (r *RepositoryRelease) GetAuthor() *User { 12249 if r == nil { 12250 return nil 12251 } 12252 return r.Author 12253 } 12254 12255 // GetBody returns the Body field if it's non-nil, zero value otherwise. 12256 func (r *RepositoryRelease) GetBody() string { 12257 if r == nil || r.Body == nil { 12258 return "" 12259 } 12260 return *r.Body 12261 } 12262 12263 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12264 func (r *RepositoryRelease) GetCreatedAt() Timestamp { 12265 if r == nil || r.CreatedAt == nil { 12266 return Timestamp{} 12267 } 12268 return *r.CreatedAt 12269 } 12270 12271 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 12272 func (r *RepositoryRelease) GetDraft() bool { 12273 if r == nil || r.Draft == nil { 12274 return false 12275 } 12276 return *r.Draft 12277 } 12278 12279 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 12280 func (r *RepositoryRelease) GetHTMLURL() string { 12281 if r == nil || r.HTMLURL == nil { 12282 return "" 12283 } 12284 return *r.HTMLURL 12285 } 12286 12287 // GetID returns the ID field if it's non-nil, zero value otherwise. 12288 func (r *RepositoryRelease) GetID() int64 { 12289 if r == nil || r.ID == nil { 12290 return 0 12291 } 12292 return *r.ID 12293 } 12294 12295 // GetName returns the Name field if it's non-nil, zero value otherwise. 12296 func (r *RepositoryRelease) GetName() string { 12297 if r == nil || r.Name == nil { 12298 return "" 12299 } 12300 return *r.Name 12301 } 12302 12303 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12304 func (r *RepositoryRelease) GetNodeID() string { 12305 if r == nil || r.NodeID == nil { 12306 return "" 12307 } 12308 return *r.NodeID 12309 } 12310 12311 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 12312 func (r *RepositoryRelease) GetPrerelease() bool { 12313 if r == nil || r.Prerelease == nil { 12314 return false 12315 } 12316 return *r.Prerelease 12317 } 12318 12319 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 12320 func (r *RepositoryRelease) GetPublishedAt() Timestamp { 12321 if r == nil || r.PublishedAt == nil { 12322 return Timestamp{} 12323 } 12324 return *r.PublishedAt 12325 } 12326 12327 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 12328 func (r *RepositoryRelease) GetTagName() string { 12329 if r == nil || r.TagName == nil { 12330 return "" 12331 } 12332 return *r.TagName 12333 } 12334 12335 // GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 12336 func (r *RepositoryRelease) GetTarballURL() string { 12337 if r == nil || r.TarballURL == nil { 12338 return "" 12339 } 12340 return *r.TarballURL 12341 } 12342 12343 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 12344 func (r *RepositoryRelease) GetTargetCommitish() string { 12345 if r == nil || r.TargetCommitish == nil { 12346 return "" 12347 } 12348 return *r.TargetCommitish 12349 } 12350 12351 // GetUploadURL returns the UploadURL field if it's non-nil, zero value otherwise. 12352 func (r *RepositoryRelease) GetUploadURL() string { 12353 if r == nil || r.UploadURL == nil { 12354 return "" 12355 } 12356 return *r.UploadURL 12357 } 12358 12359 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12360 func (r *RepositoryRelease) GetURL() string { 12361 if r == nil || r.URL == nil { 12362 return "" 12363 } 12364 return *r.URL 12365 } 12366 12367 // GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 12368 func (r *RepositoryRelease) GetZipballURL() string { 12369 if r == nil || r.ZipballURL == nil { 12370 return "" 12371 } 12372 return *r.ZipballURL 12373 } 12374 12375 // GetCommit returns the Commit field. 12376 func (r *RepositoryTag) GetCommit() *Commit { 12377 if r == nil { 12378 return nil 12379 } 12380 return r.Commit 12381 } 12382 12383 // GetName returns the Name field if it's non-nil, zero value otherwise. 12384 func (r *RepositoryTag) GetName() string { 12385 if r == nil || r.Name == nil { 12386 return "" 12387 } 12388 return *r.Name 12389 } 12390 12391 // GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 12392 func (r *RepositoryTag) GetTarballURL() string { 12393 if r == nil || r.TarballURL == nil { 12394 return "" 12395 } 12396 return *r.TarballURL 12397 } 12398 12399 // GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 12400 func (r *RepositoryTag) GetZipballURL() string { 12401 if r == nil || r.ZipballURL == nil { 12402 return "" 12403 } 12404 return *r.ZipballURL 12405 } 12406 12407 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12408 func (r *RepositoryVulnerabilityAlertEvent) GetAction() string { 12409 if r == nil || r.Action == nil { 12410 return "" 12411 } 12412 return *r.Action 12413 } 12414 12415 // GetRepository returns the Repository field. 12416 func (r *RepositoryVulnerabilityAlertEvent) GetRepository() *Repository { 12417 if r == nil { 12418 return nil 12419 } 12420 return r.Repository 12421 } 12422 12423 // GetForkRepos returns the ForkRepos field if it's non-nil, zero value otherwise. 12424 func (r *RepoStats) GetForkRepos() int { 12425 if r == nil || r.ForkRepos == nil { 12426 return 0 12427 } 12428 return *r.ForkRepos 12429 } 12430 12431 // GetOrgRepos returns the OrgRepos field if it's non-nil, zero value otherwise. 12432 func (r *RepoStats) GetOrgRepos() int { 12433 if r == nil || r.OrgRepos == nil { 12434 return 0 12435 } 12436 return *r.OrgRepos 12437 } 12438 12439 // GetRootRepos returns the RootRepos field if it's non-nil, zero value otherwise. 12440 func (r *RepoStats) GetRootRepos() int { 12441 if r == nil || r.RootRepos == nil { 12442 return 0 12443 } 12444 return *r.RootRepos 12445 } 12446 12447 // GetTotalPushes returns the TotalPushes field if it's non-nil, zero value otherwise. 12448 func (r *RepoStats) GetTotalPushes() int { 12449 if r == nil || r.TotalPushes == nil { 12450 return 0 12451 } 12452 return *r.TotalPushes 12453 } 12454 12455 // GetTotalRepos returns the TotalRepos field if it's non-nil, zero value otherwise. 12456 func (r *RepoStats) GetTotalRepos() int { 12457 if r == nil || r.TotalRepos == nil { 12458 return 0 12459 } 12460 return *r.TotalRepos 12461 } 12462 12463 // GetTotalWikis returns the TotalWikis field if it's non-nil, zero value otherwise. 12464 func (r *RepoStats) GetTotalWikis() int { 12465 if r == nil || r.TotalWikis == nil { 12466 return 0 12467 } 12468 return *r.TotalWikis 12469 } 12470 12471 // GetContext returns the Context field if it's non-nil, zero value otherwise. 12472 func (r *RepoStatus) GetContext() string { 12473 if r == nil || r.Context == nil { 12474 return "" 12475 } 12476 return *r.Context 12477 } 12478 12479 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12480 func (r *RepoStatus) GetCreatedAt() time.Time { 12481 if r == nil || r.CreatedAt == nil { 12482 return time.Time{} 12483 } 12484 return *r.CreatedAt 12485 } 12486 12487 // GetCreator returns the Creator field. 12488 func (r *RepoStatus) GetCreator() *User { 12489 if r == nil { 12490 return nil 12491 } 12492 return r.Creator 12493 } 12494 12495 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 12496 func (r *RepoStatus) GetDescription() string { 12497 if r == nil || r.Description == nil { 12498 return "" 12499 } 12500 return *r.Description 12501 } 12502 12503 // GetID returns the ID field if it's non-nil, zero value otherwise. 12504 func (r *RepoStatus) GetID() int64 { 12505 if r == nil || r.ID == nil { 12506 return 0 12507 } 12508 return *r.ID 12509 } 12510 12511 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12512 func (r *RepoStatus) GetNodeID() string { 12513 if r == nil || r.NodeID == nil { 12514 return "" 12515 } 12516 return *r.NodeID 12517 } 12518 12519 // GetState returns the State field if it's non-nil, zero value otherwise. 12520 func (r *RepoStatus) GetState() string { 12521 if r == nil || r.State == nil { 12522 return "" 12523 } 12524 return *r.State 12525 } 12526 12527 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 12528 func (r *RepoStatus) GetTargetURL() string { 12529 if r == nil || r.TargetURL == nil { 12530 return "" 12531 } 12532 return *r.TargetURL 12533 } 12534 12535 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 12536 func (r *RepoStatus) GetUpdatedAt() time.Time { 12537 if r == nil || r.UpdatedAt == nil { 12538 return time.Time{} 12539 } 12540 return *r.UpdatedAt 12541 } 12542 12543 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12544 func (r *RepoStatus) GetURL() string { 12545 if r == nil || r.URL == nil { 12546 return "" 12547 } 12548 return *r.URL 12549 } 12550 12551 // GetStrict returns the Strict field if it's non-nil, zero value otherwise. 12552 func (r *RequiredStatusChecksRequest) GetStrict() bool { 12553 if r == nil || r.Strict == nil { 12554 return false 12555 } 12556 return *r.Strict 12557 } 12558 12559 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12560 func (r *ReviewersRequest) GetNodeID() string { 12561 if r == nil || r.NodeID == nil { 12562 return "" 12563 } 12564 return *r.NodeID 12565 } 12566 12567 // GetBusy returns the Busy field if it's non-nil, zero value otherwise. 12568 func (r *Runner) GetBusy() bool { 12569 if r == nil || r.Busy == nil { 12570 return false 12571 } 12572 return *r.Busy 12573 } 12574 12575 // GetID returns the ID field if it's non-nil, zero value otherwise. 12576 func (r *Runner) GetID() int64 { 12577 if r == nil || r.ID == nil { 12578 return 0 12579 } 12580 return *r.ID 12581 } 12582 12583 // GetName returns the Name field if it's non-nil, zero value otherwise. 12584 func (r *Runner) GetName() string { 12585 if r == nil || r.Name == nil { 12586 return "" 12587 } 12588 return *r.Name 12589 } 12590 12591 // GetOS returns the OS field if it's non-nil, zero value otherwise. 12592 func (r *Runner) GetOS() string { 12593 if r == nil || r.OS == nil { 12594 return "" 12595 } 12596 return *r.OS 12597 } 12598 12599 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 12600 func (r *Runner) GetStatus() string { 12601 if r == nil || r.Status == nil { 12602 return "" 12603 } 12604 return *r.Status 12605 } 12606 12607 // GetArchitecture returns the Architecture field if it's non-nil, zero value otherwise. 12608 func (r *RunnerApplicationDownload) GetArchitecture() string { 12609 if r == nil || r.Architecture == nil { 12610 return "" 12611 } 12612 return *r.Architecture 12613 } 12614 12615 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 12616 func (r *RunnerApplicationDownload) GetDownloadURL() string { 12617 if r == nil || r.DownloadURL == nil { 12618 return "" 12619 } 12620 return *r.DownloadURL 12621 } 12622 12623 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 12624 func (r *RunnerApplicationDownload) GetFilename() string { 12625 if r == nil || r.Filename == nil { 12626 return "" 12627 } 12628 return *r.Filename 12629 } 12630 12631 // GetOS returns the OS field if it's non-nil, zero value otherwise. 12632 func (r *RunnerApplicationDownload) GetOS() string { 12633 if r == nil || r.OS == nil { 12634 return "" 12635 } 12636 return *r.OS 12637 } 12638 12639 // GetID returns the ID field if it's non-nil, zero value otherwise. 12640 func (r *RunnerLabels) GetID() int64 { 12641 if r == nil || r.ID == nil { 12642 return 0 12643 } 12644 return *r.ID 12645 } 12646 12647 // GetName returns the Name field if it's non-nil, zero value otherwise. 12648 func (r *RunnerLabels) GetName() string { 12649 if r == nil || r.Name == nil { 12650 return "" 12651 } 12652 return *r.Name 12653 } 12654 12655 // GetType returns the Type field if it's non-nil, zero value otherwise. 12656 func (r *RunnerLabels) GetType() string { 12657 if r == nil || r.Type == nil { 12658 return "" 12659 } 12660 return *r.Type 12661 } 12662 12663 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 12664 func (s *SelectedReposList) GetTotalCount() int { 12665 if s == nil || s.TotalCount == nil { 12666 return 0 12667 } 12668 return *s.TotalCount 12669 } 12670 12671 // GetName returns the Name field if it's non-nil, zero value otherwise. 12672 func (s *ServiceHook) GetName() string { 12673 if s == nil || s.Name == nil { 12674 return "" 12675 } 12676 return *s.Name 12677 } 12678 12679 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 12680 func (s *SignaturesProtectedBranch) GetEnabled() bool { 12681 if s == nil || s.Enabled == nil { 12682 return false 12683 } 12684 return *s.Enabled 12685 } 12686 12687 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12688 func (s *SignaturesProtectedBranch) GetURL() string { 12689 if s == nil || s.URL == nil { 12690 return "" 12691 } 12692 return *s.URL 12693 } 12694 12695 // GetPayload returns the Payload field if it's non-nil, zero value otherwise. 12696 func (s *SignatureVerification) GetPayload() string { 12697 if s == nil || s.Payload == nil { 12698 return "" 12699 } 12700 return *s.Payload 12701 } 12702 12703 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 12704 func (s *SignatureVerification) GetReason() string { 12705 if s == nil || s.Reason == nil { 12706 return "" 12707 } 12708 return *s.Reason 12709 } 12710 12711 // GetSignature returns the Signature field if it's non-nil, zero value otherwise. 12712 func (s *SignatureVerification) GetSignature() string { 12713 if s == nil || s.Signature == nil { 12714 return "" 12715 } 12716 return *s.Signature 12717 } 12718 12719 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 12720 func (s *SignatureVerification) GetVerified() bool { 12721 if s == nil || s.Verified == nil { 12722 return false 12723 } 12724 return *s.Verified 12725 } 12726 12727 // GetActor returns the Actor field. 12728 func (s *Source) GetActor() *User { 12729 if s == nil { 12730 return nil 12731 } 12732 return s.Actor 12733 } 12734 12735 // GetID returns the ID field if it's non-nil, zero value otherwise. 12736 func (s *Source) GetID() int64 { 12737 if s == nil || s.ID == nil { 12738 return 0 12739 } 12740 return *s.ID 12741 } 12742 12743 // GetIssue returns the Issue field. 12744 func (s *Source) GetIssue() *Issue { 12745 if s == nil { 12746 return nil 12747 } 12748 return s.Issue 12749 } 12750 12751 // GetType returns the Type field if it's non-nil, zero value otherwise. 12752 func (s *Source) GetType() string { 12753 if s == nil || s.Type == nil { 12754 return "" 12755 } 12756 return *s.Type 12757 } 12758 12759 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12760 func (s *Source) GetURL() string { 12761 if s == nil || s.URL == nil { 12762 return "" 12763 } 12764 return *s.URL 12765 } 12766 12767 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 12768 func (s *SourceImportAuthor) GetEmail() string { 12769 if s == nil || s.Email == nil { 12770 return "" 12771 } 12772 return *s.Email 12773 } 12774 12775 // GetID returns the ID field if it's non-nil, zero value otherwise. 12776 func (s *SourceImportAuthor) GetID() int64 { 12777 if s == nil || s.ID == nil { 12778 return 0 12779 } 12780 return *s.ID 12781 } 12782 12783 // GetImportURL returns the ImportURL field if it's non-nil, zero value otherwise. 12784 func (s *SourceImportAuthor) GetImportURL() string { 12785 if s == nil || s.ImportURL == nil { 12786 return "" 12787 } 12788 return *s.ImportURL 12789 } 12790 12791 // GetName returns the Name field if it's non-nil, zero value otherwise. 12792 func (s *SourceImportAuthor) GetName() string { 12793 if s == nil || s.Name == nil { 12794 return "" 12795 } 12796 return *s.Name 12797 } 12798 12799 // GetRemoteID returns the RemoteID field if it's non-nil, zero value otherwise. 12800 func (s *SourceImportAuthor) GetRemoteID() string { 12801 if s == nil || s.RemoteID == nil { 12802 return "" 12803 } 12804 return *s.RemoteID 12805 } 12806 12807 // GetRemoteName returns the RemoteName field if it's non-nil, zero value otherwise. 12808 func (s *SourceImportAuthor) GetRemoteName() string { 12809 if s == nil || s.RemoteName == nil { 12810 return "" 12811 } 12812 return *s.RemoteName 12813 } 12814 12815 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12816 func (s *SourceImportAuthor) GetURL() string { 12817 if s == nil || s.URL == nil { 12818 return "" 12819 } 12820 return *s.URL 12821 } 12822 12823 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12824 func (s *StarEvent) GetAction() string { 12825 if s == nil || s.Action == nil { 12826 return "" 12827 } 12828 return *s.Action 12829 } 12830 12831 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 12832 func (s *StarEvent) GetStarredAt() Timestamp { 12833 if s == nil || s.StarredAt == nil { 12834 return Timestamp{} 12835 } 12836 return *s.StarredAt 12837 } 12838 12839 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 12840 func (s *Stargazer) GetStarredAt() Timestamp { 12841 if s == nil || s.StarredAt == nil { 12842 return Timestamp{} 12843 } 12844 return *s.StarredAt 12845 } 12846 12847 // GetUser returns the User field. 12848 func (s *Stargazer) GetUser() *User { 12849 if s == nil { 12850 return nil 12851 } 12852 return s.User 12853 } 12854 12855 // GetRepository returns the Repository field. 12856 func (s *StarredRepository) GetRepository() *Repository { 12857 if s == nil { 12858 return nil 12859 } 12860 return s.Repository 12861 } 12862 12863 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 12864 func (s *StarredRepository) GetStarredAt() Timestamp { 12865 if s == nil || s.StarredAt == nil { 12866 return Timestamp{} 12867 } 12868 return *s.StarredAt 12869 } 12870 12871 // GetCommit returns the Commit field. 12872 func (s *StatusEvent) GetCommit() *RepositoryCommit { 12873 if s == nil { 12874 return nil 12875 } 12876 return s.Commit 12877 } 12878 12879 // GetContext returns the Context field if it's non-nil, zero value otherwise. 12880 func (s *StatusEvent) GetContext() string { 12881 if s == nil || s.Context == nil { 12882 return "" 12883 } 12884 return *s.Context 12885 } 12886 12887 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12888 func (s *StatusEvent) GetCreatedAt() Timestamp { 12889 if s == nil || s.CreatedAt == nil { 12890 return Timestamp{} 12891 } 12892 return *s.CreatedAt 12893 } 12894 12895 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 12896 func (s *StatusEvent) GetDescription() string { 12897 if s == nil || s.Description == nil { 12898 return "" 12899 } 12900 return *s.Description 12901 } 12902 12903 // GetID returns the ID field if it's non-nil, zero value otherwise. 12904 func (s *StatusEvent) GetID() int64 { 12905 if s == nil || s.ID == nil { 12906 return 0 12907 } 12908 return *s.ID 12909 } 12910 12911 // GetInstallation returns the Installation field. 12912 func (s *StatusEvent) GetInstallation() *Installation { 12913 if s == nil { 12914 return nil 12915 } 12916 return s.Installation 12917 } 12918 12919 // GetName returns the Name field if it's non-nil, zero value otherwise. 12920 func (s *StatusEvent) GetName() string { 12921 if s == nil || s.Name == nil { 12922 return "" 12923 } 12924 return *s.Name 12925 } 12926 12927 // GetRepo returns the Repo field. 12928 func (s *StatusEvent) GetRepo() *Repository { 12929 if s == nil { 12930 return nil 12931 } 12932 return s.Repo 12933 } 12934 12935 // GetSender returns the Sender field. 12936 func (s *StatusEvent) GetSender() *User { 12937 if s == nil { 12938 return nil 12939 } 12940 return s.Sender 12941 } 12942 12943 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 12944 func (s *StatusEvent) GetSHA() string { 12945 if s == nil || s.SHA == nil { 12946 return "" 12947 } 12948 return *s.SHA 12949 } 12950 12951 // GetState returns the State field if it's non-nil, zero value otherwise. 12952 func (s *StatusEvent) GetState() string { 12953 if s == nil || s.State == nil { 12954 return "" 12955 } 12956 return *s.State 12957 } 12958 12959 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 12960 func (s *StatusEvent) GetTargetURL() string { 12961 if s == nil || s.TargetURL == nil { 12962 return "" 12963 } 12964 return *s.TargetURL 12965 } 12966 12967 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 12968 func (s *StatusEvent) GetUpdatedAt() Timestamp { 12969 if s == nil || s.UpdatedAt == nil { 12970 return Timestamp{} 12971 } 12972 return *s.UpdatedAt 12973 } 12974 12975 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12976 func (s *Subscription) GetCreatedAt() Timestamp { 12977 if s == nil || s.CreatedAt == nil { 12978 return Timestamp{} 12979 } 12980 return *s.CreatedAt 12981 } 12982 12983 // GetIgnored returns the Ignored field if it's non-nil, zero value otherwise. 12984 func (s *Subscription) GetIgnored() bool { 12985 if s == nil || s.Ignored == nil { 12986 return false 12987 } 12988 return *s.Ignored 12989 } 12990 12991 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 12992 func (s *Subscription) GetReason() string { 12993 if s == nil || s.Reason == nil { 12994 return "" 12995 } 12996 return *s.Reason 12997 } 12998 12999 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 13000 func (s *Subscription) GetRepositoryURL() string { 13001 if s == nil || s.RepositoryURL == nil { 13002 return "" 13003 } 13004 return *s.RepositoryURL 13005 } 13006 13007 // GetSubscribed returns the Subscribed field if it's non-nil, zero value otherwise. 13008 func (s *Subscription) GetSubscribed() bool { 13009 if s == nil || s.Subscribed == nil { 13010 return false 13011 } 13012 return *s.Subscribed 13013 } 13014 13015 // GetThreadURL returns the ThreadURL field if it's non-nil, zero value otherwise. 13016 func (s *Subscription) GetThreadURL() string { 13017 if s == nil || s.ThreadURL == nil { 13018 return "" 13019 } 13020 return *s.ThreadURL 13021 } 13022 13023 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13024 func (s *Subscription) GetURL() string { 13025 if s == nil || s.URL == nil { 13026 return "" 13027 } 13028 return *s.URL 13029 } 13030 13031 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 13032 func (t *Tag) GetMessage() string { 13033 if t == nil || t.Message == nil { 13034 return "" 13035 } 13036 return *t.Message 13037 } 13038 13039 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13040 func (t *Tag) GetNodeID() string { 13041 if t == nil || t.NodeID == nil { 13042 return "" 13043 } 13044 return *t.NodeID 13045 } 13046 13047 // GetObject returns the Object field. 13048 func (t *Tag) GetObject() *GitObject { 13049 if t == nil { 13050 return nil 13051 } 13052 return t.Object 13053 } 13054 13055 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 13056 func (t *Tag) GetSHA() string { 13057 if t == nil || t.SHA == nil { 13058 return "" 13059 } 13060 return *t.SHA 13061 } 13062 13063 // GetTag returns the Tag field if it's non-nil, zero value otherwise. 13064 func (t *Tag) GetTag() string { 13065 if t == nil || t.Tag == nil { 13066 return "" 13067 } 13068 return *t.Tag 13069 } 13070 13071 // GetTagger returns the Tagger field. 13072 func (t *Tag) GetTagger() *CommitAuthor { 13073 if t == nil { 13074 return nil 13075 } 13076 return t.Tagger 13077 } 13078 13079 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13080 func (t *Tag) GetURL() string { 13081 if t == nil || t.URL == nil { 13082 return "" 13083 } 13084 return *t.URL 13085 } 13086 13087 // GetVerification returns the Verification field. 13088 func (t *Tag) GetVerification() *SignatureVerification { 13089 if t == nil { 13090 return nil 13091 } 13092 return t.Verification 13093 } 13094 13095 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 13096 func (t *TaskStep) GetCompletedAt() Timestamp { 13097 if t == nil || t.CompletedAt == nil { 13098 return Timestamp{} 13099 } 13100 return *t.CompletedAt 13101 } 13102 13103 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 13104 func (t *TaskStep) GetConclusion() string { 13105 if t == nil || t.Conclusion == nil { 13106 return "" 13107 } 13108 return *t.Conclusion 13109 } 13110 13111 // GetName returns the Name field if it's non-nil, zero value otherwise. 13112 func (t *TaskStep) GetName() string { 13113 if t == nil || t.Name == nil { 13114 return "" 13115 } 13116 return *t.Name 13117 } 13118 13119 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 13120 func (t *TaskStep) GetNumber() int64 { 13121 if t == nil || t.Number == nil { 13122 return 0 13123 } 13124 return *t.Number 13125 } 13126 13127 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 13128 func (t *TaskStep) GetStartedAt() Timestamp { 13129 if t == nil || t.StartedAt == nil { 13130 return Timestamp{} 13131 } 13132 return *t.StartedAt 13133 } 13134 13135 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 13136 func (t *TaskStep) GetStatus() string { 13137 if t == nil || t.Status == nil { 13138 return "" 13139 } 13140 return *t.Status 13141 } 13142 13143 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 13144 func (t *Team) GetDescription() string { 13145 if t == nil || t.Description == nil { 13146 return "" 13147 } 13148 return *t.Description 13149 } 13150 13151 // GetID returns the ID field if it's non-nil, zero value otherwise. 13152 func (t *Team) GetID() int64 { 13153 if t == nil || t.ID == nil { 13154 return 0 13155 } 13156 return *t.ID 13157 } 13158 13159 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 13160 func (t *Team) GetLDAPDN() string { 13161 if t == nil || t.LDAPDN == nil { 13162 return "" 13163 } 13164 return *t.LDAPDN 13165 } 13166 13167 // GetMembersCount returns the MembersCount field if it's non-nil, zero value otherwise. 13168 func (t *Team) GetMembersCount() int { 13169 if t == nil || t.MembersCount == nil { 13170 return 0 13171 } 13172 return *t.MembersCount 13173 } 13174 13175 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 13176 func (t *Team) GetMembersURL() string { 13177 if t == nil || t.MembersURL == nil { 13178 return "" 13179 } 13180 return *t.MembersURL 13181 } 13182 13183 // GetName returns the Name field if it's non-nil, zero value otherwise. 13184 func (t *Team) GetName() string { 13185 if t == nil || t.Name == nil { 13186 return "" 13187 } 13188 return *t.Name 13189 } 13190 13191 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13192 func (t *Team) GetNodeID() string { 13193 if t == nil || t.NodeID == nil { 13194 return "" 13195 } 13196 return *t.NodeID 13197 } 13198 13199 // GetOrganization returns the Organization field. 13200 func (t *Team) GetOrganization() *Organization { 13201 if t == nil { 13202 return nil 13203 } 13204 return t.Organization 13205 } 13206 13207 // GetParent returns the Parent field. 13208 func (t *Team) GetParent() *Team { 13209 if t == nil { 13210 return nil 13211 } 13212 return t.Parent 13213 } 13214 13215 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 13216 func (t *Team) GetPermission() string { 13217 if t == nil || t.Permission == nil { 13218 return "" 13219 } 13220 return *t.Permission 13221 } 13222 13223 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 13224 func (t *Team) GetPrivacy() string { 13225 if t == nil || t.Privacy == nil { 13226 return "" 13227 } 13228 return *t.Privacy 13229 } 13230 13231 // GetReposCount returns the ReposCount field if it's non-nil, zero value otherwise. 13232 func (t *Team) GetReposCount() int { 13233 if t == nil || t.ReposCount == nil { 13234 return 0 13235 } 13236 return *t.ReposCount 13237 } 13238 13239 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 13240 func (t *Team) GetRepositoriesURL() string { 13241 if t == nil || t.RepositoriesURL == nil { 13242 return "" 13243 } 13244 return *t.RepositoriesURL 13245 } 13246 13247 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 13248 func (t *Team) GetSlug() string { 13249 if t == nil || t.Slug == nil { 13250 return "" 13251 } 13252 return *t.Slug 13253 } 13254 13255 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13256 func (t *Team) GetURL() string { 13257 if t == nil || t.URL == nil { 13258 return "" 13259 } 13260 return *t.URL 13261 } 13262 13263 // GetInstallation returns the Installation field. 13264 func (t *TeamAddEvent) GetInstallation() *Installation { 13265 if t == nil { 13266 return nil 13267 } 13268 return t.Installation 13269 } 13270 13271 // GetOrg returns the Org field. 13272 func (t *TeamAddEvent) GetOrg() *Organization { 13273 if t == nil { 13274 return nil 13275 } 13276 return t.Org 13277 } 13278 13279 // GetRepo returns the Repo field. 13280 func (t *TeamAddEvent) GetRepo() *Repository { 13281 if t == nil { 13282 return nil 13283 } 13284 return t.Repo 13285 } 13286 13287 // GetSender returns the Sender field. 13288 func (t *TeamAddEvent) GetSender() *User { 13289 if t == nil { 13290 return nil 13291 } 13292 return t.Sender 13293 } 13294 13295 // GetTeam returns the Team field. 13296 func (t *TeamAddEvent) GetTeam() *Team { 13297 if t == nil { 13298 return nil 13299 } 13300 return t.Team 13301 } 13302 13303 // GetAuthor returns the Author field. 13304 func (t *TeamDiscussion) GetAuthor() *User { 13305 if t == nil { 13306 return nil 13307 } 13308 return t.Author 13309 } 13310 13311 // GetBody returns the Body field if it's non-nil, zero value otherwise. 13312 func (t *TeamDiscussion) GetBody() string { 13313 if t == nil || t.Body == nil { 13314 return "" 13315 } 13316 return *t.Body 13317 } 13318 13319 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 13320 func (t *TeamDiscussion) GetBodyHTML() string { 13321 if t == nil || t.BodyHTML == nil { 13322 return "" 13323 } 13324 return *t.BodyHTML 13325 } 13326 13327 // GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. 13328 func (t *TeamDiscussion) GetBodyVersion() string { 13329 if t == nil || t.BodyVersion == nil { 13330 return "" 13331 } 13332 return *t.BodyVersion 13333 } 13334 13335 // GetCommentsCount returns the CommentsCount field if it's non-nil, zero value otherwise. 13336 func (t *TeamDiscussion) GetCommentsCount() int { 13337 if t == nil || t.CommentsCount == nil { 13338 return 0 13339 } 13340 return *t.CommentsCount 13341 } 13342 13343 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 13344 func (t *TeamDiscussion) GetCommentsURL() string { 13345 if t == nil || t.CommentsURL == nil { 13346 return "" 13347 } 13348 return *t.CommentsURL 13349 } 13350 13351 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13352 func (t *TeamDiscussion) GetCreatedAt() Timestamp { 13353 if t == nil || t.CreatedAt == nil { 13354 return Timestamp{} 13355 } 13356 return *t.CreatedAt 13357 } 13358 13359 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13360 func (t *TeamDiscussion) GetHTMLURL() string { 13361 if t == nil || t.HTMLURL == nil { 13362 return "" 13363 } 13364 return *t.HTMLURL 13365 } 13366 13367 // GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. 13368 func (t *TeamDiscussion) GetLastEditedAt() Timestamp { 13369 if t == nil || t.LastEditedAt == nil { 13370 return Timestamp{} 13371 } 13372 return *t.LastEditedAt 13373 } 13374 13375 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13376 func (t *TeamDiscussion) GetNodeID() string { 13377 if t == nil || t.NodeID == nil { 13378 return "" 13379 } 13380 return *t.NodeID 13381 } 13382 13383 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 13384 func (t *TeamDiscussion) GetNumber() int { 13385 if t == nil || t.Number == nil { 13386 return 0 13387 } 13388 return *t.Number 13389 } 13390 13391 // GetPinned returns the Pinned field if it's non-nil, zero value otherwise. 13392 func (t *TeamDiscussion) GetPinned() bool { 13393 if t == nil || t.Pinned == nil { 13394 return false 13395 } 13396 return *t.Pinned 13397 } 13398 13399 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 13400 func (t *TeamDiscussion) GetPrivate() bool { 13401 if t == nil || t.Private == nil { 13402 return false 13403 } 13404 return *t.Private 13405 } 13406 13407 // GetReactions returns the Reactions field. 13408 func (t *TeamDiscussion) GetReactions() *Reactions { 13409 if t == nil { 13410 return nil 13411 } 13412 return t.Reactions 13413 } 13414 13415 // GetTeamURL returns the TeamURL field if it's non-nil, zero value otherwise. 13416 func (t *TeamDiscussion) GetTeamURL() string { 13417 if t == nil || t.TeamURL == nil { 13418 return "" 13419 } 13420 return *t.TeamURL 13421 } 13422 13423 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 13424 func (t *TeamDiscussion) GetTitle() string { 13425 if t == nil || t.Title == nil { 13426 return "" 13427 } 13428 return *t.Title 13429 } 13430 13431 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13432 func (t *TeamDiscussion) GetUpdatedAt() Timestamp { 13433 if t == nil || t.UpdatedAt == nil { 13434 return Timestamp{} 13435 } 13436 return *t.UpdatedAt 13437 } 13438 13439 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13440 func (t *TeamDiscussion) GetURL() string { 13441 if t == nil || t.URL == nil { 13442 return "" 13443 } 13444 return *t.URL 13445 } 13446 13447 // GetAction returns the Action field if it's non-nil, zero value otherwise. 13448 func (t *TeamEvent) GetAction() string { 13449 if t == nil || t.Action == nil { 13450 return "" 13451 } 13452 return *t.Action 13453 } 13454 13455 // GetChanges returns the Changes field. 13456 func (t *TeamEvent) GetChanges() *TeamChange { 13457 if t == nil { 13458 return nil 13459 } 13460 return t.Changes 13461 } 13462 13463 // GetInstallation returns the Installation field. 13464 func (t *TeamEvent) GetInstallation() *Installation { 13465 if t == nil { 13466 return nil 13467 } 13468 return t.Installation 13469 } 13470 13471 // GetOrg returns the Org field. 13472 func (t *TeamEvent) GetOrg() *Organization { 13473 if t == nil { 13474 return nil 13475 } 13476 return t.Org 13477 } 13478 13479 // GetRepo returns the Repo field. 13480 func (t *TeamEvent) GetRepo() *Repository { 13481 if t == nil { 13482 return nil 13483 } 13484 return t.Repo 13485 } 13486 13487 // GetSender returns the Sender field. 13488 func (t *TeamEvent) GetSender() *User { 13489 if t == nil { 13490 return nil 13491 } 13492 return t.Sender 13493 } 13494 13495 // GetTeam returns the Team field. 13496 func (t *TeamEvent) GetTeam() *Team { 13497 if t == nil { 13498 return nil 13499 } 13500 return t.Team 13501 } 13502 13503 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 13504 func (t *TeamLDAPMapping) GetDescription() string { 13505 if t == nil || t.Description == nil { 13506 return "" 13507 } 13508 return *t.Description 13509 } 13510 13511 // GetID returns the ID field if it's non-nil, zero value otherwise. 13512 func (t *TeamLDAPMapping) GetID() int64 { 13513 if t == nil || t.ID == nil { 13514 return 0 13515 } 13516 return *t.ID 13517 } 13518 13519 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 13520 func (t *TeamLDAPMapping) GetLDAPDN() string { 13521 if t == nil || t.LDAPDN == nil { 13522 return "" 13523 } 13524 return *t.LDAPDN 13525 } 13526 13527 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 13528 func (t *TeamLDAPMapping) GetMembersURL() string { 13529 if t == nil || t.MembersURL == nil { 13530 return "" 13531 } 13532 return *t.MembersURL 13533 } 13534 13535 // GetName returns the Name field if it's non-nil, zero value otherwise. 13536 func (t *TeamLDAPMapping) GetName() string { 13537 if t == nil || t.Name == nil { 13538 return "" 13539 } 13540 return *t.Name 13541 } 13542 13543 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 13544 func (t *TeamLDAPMapping) GetPermission() string { 13545 if t == nil || t.Permission == nil { 13546 return "" 13547 } 13548 return *t.Permission 13549 } 13550 13551 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 13552 func (t *TeamLDAPMapping) GetPrivacy() string { 13553 if t == nil || t.Privacy == nil { 13554 return "" 13555 } 13556 return *t.Privacy 13557 } 13558 13559 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 13560 func (t *TeamLDAPMapping) GetRepositoriesURL() string { 13561 if t == nil || t.RepositoriesURL == nil { 13562 return "" 13563 } 13564 return *t.RepositoriesURL 13565 } 13566 13567 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 13568 func (t *TeamLDAPMapping) GetSlug() string { 13569 if t == nil || t.Slug == nil { 13570 return "" 13571 } 13572 return *t.Slug 13573 } 13574 13575 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13576 func (t *TeamLDAPMapping) GetURL() string { 13577 if t == nil || t.URL == nil { 13578 return "" 13579 } 13580 return *t.URL 13581 } 13582 13583 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 13584 func (t *TeamProjectOptions) GetPermission() string { 13585 if t == nil || t.Permission == nil { 13586 return "" 13587 } 13588 return *t.Permission 13589 } 13590 13591 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 13592 func (t *TemplateRepoRequest) GetDescription() string { 13593 if t == nil || t.Description == nil { 13594 return "" 13595 } 13596 return *t.Description 13597 } 13598 13599 // GetName returns the Name field if it's non-nil, zero value otherwise. 13600 func (t *TemplateRepoRequest) GetName() string { 13601 if t == nil || t.Name == nil { 13602 return "" 13603 } 13604 return *t.Name 13605 } 13606 13607 // GetOwner returns the Owner field if it's non-nil, zero value otherwise. 13608 func (t *TemplateRepoRequest) GetOwner() string { 13609 if t == nil || t.Owner == nil { 13610 return "" 13611 } 13612 return *t.Owner 13613 } 13614 13615 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 13616 func (t *TemplateRepoRequest) GetPrivate() bool { 13617 if t == nil || t.Private == nil { 13618 return false 13619 } 13620 return *t.Private 13621 } 13622 13623 // GetFragment returns the Fragment field if it's non-nil, zero value otherwise. 13624 func (t *TextMatch) GetFragment() string { 13625 if t == nil || t.Fragment == nil { 13626 return "" 13627 } 13628 return *t.Fragment 13629 } 13630 13631 // GetObjectType returns the ObjectType field if it's non-nil, zero value otherwise. 13632 func (t *TextMatch) GetObjectType() string { 13633 if t == nil || t.ObjectType == nil { 13634 return "" 13635 } 13636 return *t.ObjectType 13637 } 13638 13639 // GetObjectURL returns the ObjectURL field if it's non-nil, zero value otherwise. 13640 func (t *TextMatch) GetObjectURL() string { 13641 if t == nil || t.ObjectURL == nil { 13642 return "" 13643 } 13644 return *t.ObjectURL 13645 } 13646 13647 // GetProperty returns the Property field if it's non-nil, zero value otherwise. 13648 func (t *TextMatch) GetProperty() string { 13649 if t == nil || t.Property == nil { 13650 return "" 13651 } 13652 return *t.Property 13653 } 13654 13655 // GetActor returns the Actor field. 13656 func (t *Timeline) GetActor() *User { 13657 if t == nil { 13658 return nil 13659 } 13660 return t.Actor 13661 } 13662 13663 // GetAssignee returns the Assignee field. 13664 func (t *Timeline) GetAssignee() *User { 13665 if t == nil { 13666 return nil 13667 } 13668 return t.Assignee 13669 } 13670 13671 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 13672 func (t *Timeline) GetCommitID() string { 13673 if t == nil || t.CommitID == nil { 13674 return "" 13675 } 13676 return *t.CommitID 13677 } 13678 13679 // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 13680 func (t *Timeline) GetCommitURL() string { 13681 if t == nil || t.CommitURL == nil { 13682 return "" 13683 } 13684 return *t.CommitURL 13685 } 13686 13687 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13688 func (t *Timeline) GetCreatedAt() time.Time { 13689 if t == nil || t.CreatedAt == nil { 13690 return time.Time{} 13691 } 13692 return *t.CreatedAt 13693 } 13694 13695 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 13696 func (t *Timeline) GetEvent() string { 13697 if t == nil || t.Event == nil { 13698 return "" 13699 } 13700 return *t.Event 13701 } 13702 13703 // GetID returns the ID field if it's non-nil, zero value otherwise. 13704 func (t *Timeline) GetID() int64 { 13705 if t == nil || t.ID == nil { 13706 return 0 13707 } 13708 return *t.ID 13709 } 13710 13711 // GetLabel returns the Label field. 13712 func (t *Timeline) GetLabel() *Label { 13713 if t == nil { 13714 return nil 13715 } 13716 return t.Label 13717 } 13718 13719 // GetMilestone returns the Milestone field. 13720 func (t *Timeline) GetMilestone() *Milestone { 13721 if t == nil { 13722 return nil 13723 } 13724 return t.Milestone 13725 } 13726 13727 // GetProjectCard returns the ProjectCard field. 13728 func (t *Timeline) GetProjectCard() *ProjectCard { 13729 if t == nil { 13730 return nil 13731 } 13732 return t.ProjectCard 13733 } 13734 13735 // GetRename returns the Rename field. 13736 func (t *Timeline) GetRename() *Rename { 13737 if t == nil { 13738 return nil 13739 } 13740 return t.Rename 13741 } 13742 13743 // GetSource returns the Source field. 13744 func (t *Timeline) GetSource() *Source { 13745 if t == nil { 13746 return nil 13747 } 13748 return t.Source 13749 } 13750 13751 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13752 func (t *Timeline) GetURL() string { 13753 if t == nil || t.URL == nil { 13754 return "" 13755 } 13756 return *t.URL 13757 } 13758 13759 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13760 func (t *TopicResult) GetCreatedAt() Timestamp { 13761 if t == nil || t.CreatedAt == nil { 13762 return Timestamp{} 13763 } 13764 return *t.CreatedAt 13765 } 13766 13767 // GetCreatedBy returns the CreatedBy field if it's non-nil, zero value otherwise. 13768 func (t *TopicResult) GetCreatedBy() string { 13769 if t == nil || t.CreatedBy == nil { 13770 return "" 13771 } 13772 return *t.CreatedBy 13773 } 13774 13775 // GetCurated returns the Curated field if it's non-nil, zero value otherwise. 13776 func (t *TopicResult) GetCurated() bool { 13777 if t == nil || t.Curated == nil { 13778 return false 13779 } 13780 return *t.Curated 13781 } 13782 13783 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 13784 func (t *TopicResult) GetDescription() string { 13785 if t == nil || t.Description == nil { 13786 return "" 13787 } 13788 return *t.Description 13789 } 13790 13791 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 13792 func (t *TopicResult) GetDisplayName() string { 13793 if t == nil || t.DisplayName == nil { 13794 return "" 13795 } 13796 return *t.DisplayName 13797 } 13798 13799 // GetFeatured returns the Featured field if it's non-nil, zero value otherwise. 13800 func (t *TopicResult) GetFeatured() bool { 13801 if t == nil || t.Featured == nil { 13802 return false 13803 } 13804 return *t.Featured 13805 } 13806 13807 // GetName returns the Name field if it's non-nil, zero value otherwise. 13808 func (t *TopicResult) GetName() string { 13809 if t == nil || t.Name == nil { 13810 return "" 13811 } 13812 return *t.Name 13813 } 13814 13815 // GetScore returns the Score field. 13816 func (t *TopicResult) GetScore() *float64 { 13817 if t == nil { 13818 return nil 13819 } 13820 return t.Score 13821 } 13822 13823 // GetShortDescription returns the ShortDescription field if it's non-nil, zero value otherwise. 13824 func (t *TopicResult) GetShortDescription() string { 13825 if t == nil || t.ShortDescription == nil { 13826 return "" 13827 } 13828 return *t.ShortDescription 13829 } 13830 13831 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13832 func (t *TopicResult) GetUpdatedAt() string { 13833 if t == nil || t.UpdatedAt == nil { 13834 return "" 13835 } 13836 return *t.UpdatedAt 13837 } 13838 13839 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 13840 func (t *TopicsSearchResult) GetIncompleteResults() bool { 13841 if t == nil || t.IncompleteResults == nil { 13842 return false 13843 } 13844 return *t.IncompleteResults 13845 } 13846 13847 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 13848 func (t *TopicsSearchResult) GetTotal() int { 13849 if t == nil || t.Total == nil { 13850 return 0 13851 } 13852 return *t.Total 13853 } 13854 13855 // GetCount returns the Count field if it's non-nil, zero value otherwise. 13856 func (t *TrafficClones) GetCount() int { 13857 if t == nil || t.Count == nil { 13858 return 0 13859 } 13860 return *t.Count 13861 } 13862 13863 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 13864 func (t *TrafficClones) GetUniques() int { 13865 if t == nil || t.Uniques == nil { 13866 return 0 13867 } 13868 return *t.Uniques 13869 } 13870 13871 // GetCount returns the Count field if it's non-nil, zero value otherwise. 13872 func (t *TrafficData) GetCount() int { 13873 if t == nil || t.Count == nil { 13874 return 0 13875 } 13876 return *t.Count 13877 } 13878 13879 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 13880 func (t *TrafficData) GetTimestamp() Timestamp { 13881 if t == nil || t.Timestamp == nil { 13882 return Timestamp{} 13883 } 13884 return *t.Timestamp 13885 } 13886 13887 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 13888 func (t *TrafficData) GetUniques() int { 13889 if t == nil || t.Uniques == nil { 13890 return 0 13891 } 13892 return *t.Uniques 13893 } 13894 13895 // GetCount returns the Count field if it's non-nil, zero value otherwise. 13896 func (t *TrafficPath) GetCount() int { 13897 if t == nil || t.Count == nil { 13898 return 0 13899 } 13900 return *t.Count 13901 } 13902 13903 // GetPath returns the Path field if it's non-nil, zero value otherwise. 13904 func (t *TrafficPath) GetPath() string { 13905 if t == nil || t.Path == nil { 13906 return "" 13907 } 13908 return *t.Path 13909 } 13910 13911 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 13912 func (t *TrafficPath) GetTitle() string { 13913 if t == nil || t.Title == nil { 13914 return "" 13915 } 13916 return *t.Title 13917 } 13918 13919 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 13920 func (t *TrafficPath) GetUniques() int { 13921 if t == nil || t.Uniques == nil { 13922 return 0 13923 } 13924 return *t.Uniques 13925 } 13926 13927 // GetCount returns the Count field if it's non-nil, zero value otherwise. 13928 func (t *TrafficReferrer) GetCount() int { 13929 if t == nil || t.Count == nil { 13930 return 0 13931 } 13932 return *t.Count 13933 } 13934 13935 // GetReferrer returns the Referrer field if it's non-nil, zero value otherwise. 13936 func (t *TrafficReferrer) GetReferrer() string { 13937 if t == nil || t.Referrer == nil { 13938 return "" 13939 } 13940 return *t.Referrer 13941 } 13942 13943 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 13944 func (t *TrafficReferrer) GetUniques() int { 13945 if t == nil || t.Uniques == nil { 13946 return 0 13947 } 13948 return *t.Uniques 13949 } 13950 13951 // GetCount returns the Count field if it's non-nil, zero value otherwise. 13952 func (t *TrafficViews) GetCount() int { 13953 if t == nil || t.Count == nil { 13954 return 0 13955 } 13956 return *t.Count 13957 } 13958 13959 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 13960 func (t *TrafficViews) GetUniques() int { 13961 if t == nil || t.Uniques == nil { 13962 return 0 13963 } 13964 return *t.Uniques 13965 } 13966 13967 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 13968 func (t *Tree) GetSHA() string { 13969 if t == nil || t.SHA == nil { 13970 return "" 13971 } 13972 return *t.SHA 13973 } 13974 13975 // GetTruncated returns the Truncated field if it's non-nil, zero value otherwise. 13976 func (t *Tree) GetTruncated() bool { 13977 if t == nil || t.Truncated == nil { 13978 return false 13979 } 13980 return *t.Truncated 13981 } 13982 13983 // GetContent returns the Content field if it's non-nil, zero value otherwise. 13984 func (t *TreeEntry) GetContent() string { 13985 if t == nil || t.Content == nil { 13986 return "" 13987 } 13988 return *t.Content 13989 } 13990 13991 // GetMode returns the Mode field if it's non-nil, zero value otherwise. 13992 func (t *TreeEntry) GetMode() string { 13993 if t == nil || t.Mode == nil { 13994 return "" 13995 } 13996 return *t.Mode 13997 } 13998 13999 // GetPath returns the Path field if it's non-nil, zero value otherwise. 14000 func (t *TreeEntry) GetPath() string { 14001 if t == nil || t.Path == nil { 14002 return "" 14003 } 14004 return *t.Path 14005 } 14006 14007 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 14008 func (t *TreeEntry) GetSHA() string { 14009 if t == nil || t.SHA == nil { 14010 return "" 14011 } 14012 return *t.SHA 14013 } 14014 14015 // GetSize returns the Size field if it's non-nil, zero value otherwise. 14016 func (t *TreeEntry) GetSize() int { 14017 if t == nil || t.Size == nil { 14018 return 0 14019 } 14020 return *t.Size 14021 } 14022 14023 // GetType returns the Type field if it's non-nil, zero value otherwise. 14024 func (t *TreeEntry) GetType() string { 14025 if t == nil || t.Type == nil { 14026 return "" 14027 } 14028 return *t.Type 14029 } 14030 14031 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14032 func (t *TreeEntry) GetURL() string { 14033 if t == nil || t.URL == nil { 14034 return "" 14035 } 14036 return *t.URL 14037 } 14038 14039 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 14040 func (u *UpdateCheckRunOptions) GetCompletedAt() Timestamp { 14041 if u == nil || u.CompletedAt == nil { 14042 return Timestamp{} 14043 } 14044 return *u.CompletedAt 14045 } 14046 14047 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 14048 func (u *UpdateCheckRunOptions) GetConclusion() string { 14049 if u == nil || u.Conclusion == nil { 14050 return "" 14051 } 14052 return *u.Conclusion 14053 } 14054 14055 // GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 14056 func (u *UpdateCheckRunOptions) GetDetailsURL() string { 14057 if u == nil || u.DetailsURL == nil { 14058 return "" 14059 } 14060 return *u.DetailsURL 14061 } 14062 14063 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 14064 func (u *UpdateCheckRunOptions) GetExternalID() string { 14065 if u == nil || u.ExternalID == nil { 14066 return "" 14067 } 14068 return *u.ExternalID 14069 } 14070 14071 // GetOutput returns the Output field. 14072 func (u *UpdateCheckRunOptions) GetOutput() *CheckRunOutput { 14073 if u == nil { 14074 return nil 14075 } 14076 return u.Output 14077 } 14078 14079 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 14080 func (u *UpdateCheckRunOptions) GetStatus() string { 14081 if u == nil || u.Status == nil { 14082 return "" 14083 } 14084 return *u.Status 14085 } 14086 14087 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 14088 func (u *User) GetAvatarURL() string { 14089 if u == nil || u.AvatarURL == nil { 14090 return "" 14091 } 14092 return *u.AvatarURL 14093 } 14094 14095 // GetBio returns the Bio field if it's non-nil, zero value otherwise. 14096 func (u *User) GetBio() string { 14097 if u == nil || u.Bio == nil { 14098 return "" 14099 } 14100 return *u.Bio 14101 } 14102 14103 // GetBlog returns the Blog field if it's non-nil, zero value otherwise. 14104 func (u *User) GetBlog() string { 14105 if u == nil || u.Blog == nil { 14106 return "" 14107 } 14108 return *u.Blog 14109 } 14110 14111 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 14112 func (u *User) GetCollaborators() int { 14113 if u == nil || u.Collaborators == nil { 14114 return 0 14115 } 14116 return *u.Collaborators 14117 } 14118 14119 // GetCompany returns the Company field if it's non-nil, zero value otherwise. 14120 func (u *User) GetCompany() string { 14121 if u == nil || u.Company == nil { 14122 return "" 14123 } 14124 return *u.Company 14125 } 14126 14127 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14128 func (u *User) GetCreatedAt() Timestamp { 14129 if u == nil || u.CreatedAt == nil { 14130 return Timestamp{} 14131 } 14132 return *u.CreatedAt 14133 } 14134 14135 // GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 14136 func (u *User) GetDiskUsage() int { 14137 if u == nil || u.DiskUsage == nil { 14138 return 0 14139 } 14140 return *u.DiskUsage 14141 } 14142 14143 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 14144 func (u *User) GetEmail() string { 14145 if u == nil || u.Email == nil { 14146 return "" 14147 } 14148 return *u.Email 14149 } 14150 14151 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 14152 func (u *User) GetEventsURL() string { 14153 if u == nil || u.EventsURL == nil { 14154 return "" 14155 } 14156 return *u.EventsURL 14157 } 14158 14159 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 14160 func (u *User) GetFollowers() int { 14161 if u == nil || u.Followers == nil { 14162 return 0 14163 } 14164 return *u.Followers 14165 } 14166 14167 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 14168 func (u *User) GetFollowersURL() string { 14169 if u == nil || u.FollowersURL == nil { 14170 return "" 14171 } 14172 return *u.FollowersURL 14173 } 14174 14175 // GetFollowing returns the Following field if it's non-nil, zero value otherwise. 14176 func (u *User) GetFollowing() int { 14177 if u == nil || u.Following == nil { 14178 return 0 14179 } 14180 return *u.Following 14181 } 14182 14183 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 14184 func (u *User) GetFollowingURL() string { 14185 if u == nil || u.FollowingURL == nil { 14186 return "" 14187 } 14188 return *u.FollowingURL 14189 } 14190 14191 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 14192 func (u *User) GetGistsURL() string { 14193 if u == nil || u.GistsURL == nil { 14194 return "" 14195 } 14196 return *u.GistsURL 14197 } 14198 14199 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 14200 func (u *User) GetGravatarID() string { 14201 if u == nil || u.GravatarID == nil { 14202 return "" 14203 } 14204 return *u.GravatarID 14205 } 14206 14207 // GetHireable returns the Hireable field if it's non-nil, zero value otherwise. 14208 func (u *User) GetHireable() bool { 14209 if u == nil || u.Hireable == nil { 14210 return false 14211 } 14212 return *u.Hireable 14213 } 14214 14215 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 14216 func (u *User) GetHTMLURL() string { 14217 if u == nil || u.HTMLURL == nil { 14218 return "" 14219 } 14220 return *u.HTMLURL 14221 } 14222 14223 // GetID returns the ID field if it's non-nil, zero value otherwise. 14224 func (u *User) GetID() int64 { 14225 if u == nil || u.ID == nil { 14226 return 0 14227 } 14228 return *u.ID 14229 } 14230 14231 // GetLdapDn returns the LdapDn field if it's non-nil, zero value otherwise. 14232 func (u *User) GetLdapDn() string { 14233 if u == nil || u.LdapDn == nil { 14234 return "" 14235 } 14236 return *u.LdapDn 14237 } 14238 14239 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 14240 func (u *User) GetLocation() string { 14241 if u == nil || u.Location == nil { 14242 return "" 14243 } 14244 return *u.Location 14245 } 14246 14247 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 14248 func (u *User) GetLogin() string { 14249 if u == nil || u.Login == nil { 14250 return "" 14251 } 14252 return *u.Login 14253 } 14254 14255 // GetName returns the Name field if it's non-nil, zero value otherwise. 14256 func (u *User) GetName() string { 14257 if u == nil || u.Name == nil { 14258 return "" 14259 } 14260 return *u.Name 14261 } 14262 14263 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14264 func (u *User) GetNodeID() string { 14265 if u == nil || u.NodeID == nil { 14266 return "" 14267 } 14268 return *u.NodeID 14269 } 14270 14271 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 14272 func (u *User) GetOrganizationsURL() string { 14273 if u == nil || u.OrganizationsURL == nil { 14274 return "" 14275 } 14276 return *u.OrganizationsURL 14277 } 14278 14279 // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 14280 func (u *User) GetOwnedPrivateRepos() int { 14281 if u == nil || u.OwnedPrivateRepos == nil { 14282 return 0 14283 } 14284 return *u.OwnedPrivateRepos 14285 } 14286 14287 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 14288 func (u *User) GetPermissions() map[string]bool { 14289 if u == nil || u.Permissions == nil { 14290 return map[string]bool{} 14291 } 14292 return *u.Permissions 14293 } 14294 14295 // GetPlan returns the Plan field. 14296 func (u *User) GetPlan() *Plan { 14297 if u == nil { 14298 return nil 14299 } 14300 return u.Plan 14301 } 14302 14303 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 14304 func (u *User) GetPrivateGists() int { 14305 if u == nil || u.PrivateGists == nil { 14306 return 0 14307 } 14308 return *u.PrivateGists 14309 } 14310 14311 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 14312 func (u *User) GetPublicGists() int { 14313 if u == nil || u.PublicGists == nil { 14314 return 0 14315 } 14316 return *u.PublicGists 14317 } 14318 14319 // GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 14320 func (u *User) GetPublicRepos() int { 14321 if u == nil || u.PublicRepos == nil { 14322 return 0 14323 } 14324 return *u.PublicRepos 14325 } 14326 14327 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 14328 func (u *User) GetReceivedEventsURL() string { 14329 if u == nil || u.ReceivedEventsURL == nil { 14330 return "" 14331 } 14332 return *u.ReceivedEventsURL 14333 } 14334 14335 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 14336 func (u *User) GetReposURL() string { 14337 if u == nil || u.ReposURL == nil { 14338 return "" 14339 } 14340 return *u.ReposURL 14341 } 14342 14343 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 14344 func (u *User) GetSiteAdmin() bool { 14345 if u == nil || u.SiteAdmin == nil { 14346 return false 14347 } 14348 return *u.SiteAdmin 14349 } 14350 14351 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 14352 func (u *User) GetStarredURL() string { 14353 if u == nil || u.StarredURL == nil { 14354 return "" 14355 } 14356 return *u.StarredURL 14357 } 14358 14359 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 14360 func (u *User) GetSubscriptionsURL() string { 14361 if u == nil || u.SubscriptionsURL == nil { 14362 return "" 14363 } 14364 return *u.SubscriptionsURL 14365 } 14366 14367 // GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise. 14368 func (u *User) GetSuspendedAt() Timestamp { 14369 if u == nil || u.SuspendedAt == nil { 14370 return Timestamp{} 14371 } 14372 return *u.SuspendedAt 14373 } 14374 14375 // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 14376 func (u *User) GetTotalPrivateRepos() int { 14377 if u == nil || u.TotalPrivateRepos == nil { 14378 return 0 14379 } 14380 return *u.TotalPrivateRepos 14381 } 14382 14383 // GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. 14384 func (u *User) GetTwitterUsername() string { 14385 if u == nil || u.TwitterUsername == nil { 14386 return "" 14387 } 14388 return *u.TwitterUsername 14389 } 14390 14391 // GetTwoFactorAuthentication returns the TwoFactorAuthentication field if it's non-nil, zero value otherwise. 14392 func (u *User) GetTwoFactorAuthentication() bool { 14393 if u == nil || u.TwoFactorAuthentication == nil { 14394 return false 14395 } 14396 return *u.TwoFactorAuthentication 14397 } 14398 14399 // GetType returns the Type field if it's non-nil, zero value otherwise. 14400 func (u *User) GetType() string { 14401 if u == nil || u.Type == nil { 14402 return "" 14403 } 14404 return *u.Type 14405 } 14406 14407 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14408 func (u *User) GetUpdatedAt() Timestamp { 14409 if u == nil || u.UpdatedAt == nil { 14410 return Timestamp{} 14411 } 14412 return *u.UpdatedAt 14413 } 14414 14415 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14416 func (u *User) GetURL() string { 14417 if u == nil || u.URL == nil { 14418 return "" 14419 } 14420 return *u.URL 14421 } 14422 14423 // GetApp returns the App field. 14424 func (u *UserAuthorization) GetApp() *OAuthAPP { 14425 if u == nil { 14426 return nil 14427 } 14428 return u.App 14429 } 14430 14431 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14432 func (u *UserAuthorization) GetCreatedAt() Timestamp { 14433 if u == nil || u.CreatedAt == nil { 14434 return Timestamp{} 14435 } 14436 return *u.CreatedAt 14437 } 14438 14439 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 14440 func (u *UserAuthorization) GetFingerprint() string { 14441 if u == nil || u.Fingerprint == nil { 14442 return "" 14443 } 14444 return *u.Fingerprint 14445 } 14446 14447 // GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. 14448 func (u *UserAuthorization) GetHashedToken() string { 14449 if u == nil || u.HashedToken == nil { 14450 return "" 14451 } 14452 return *u.HashedToken 14453 } 14454 14455 // GetID returns the ID field if it's non-nil, zero value otherwise. 14456 func (u *UserAuthorization) GetID() int64 { 14457 if u == nil || u.ID == nil { 14458 return 0 14459 } 14460 return *u.ID 14461 } 14462 14463 // GetNote returns the Note field if it's non-nil, zero value otherwise. 14464 func (u *UserAuthorization) GetNote() string { 14465 if u == nil || u.Note == nil { 14466 return "" 14467 } 14468 return *u.Note 14469 } 14470 14471 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 14472 func (u *UserAuthorization) GetNoteURL() string { 14473 if u == nil || u.NoteURL == nil { 14474 return "" 14475 } 14476 return *u.NoteURL 14477 } 14478 14479 // GetToken returns the Token field if it's non-nil, zero value otherwise. 14480 func (u *UserAuthorization) GetToken() string { 14481 if u == nil || u.Token == nil { 14482 return "" 14483 } 14484 return *u.Token 14485 } 14486 14487 // GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. 14488 func (u *UserAuthorization) GetTokenLastEight() string { 14489 if u == nil || u.TokenLastEight == nil { 14490 return "" 14491 } 14492 return *u.TokenLastEight 14493 } 14494 14495 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14496 func (u *UserAuthorization) GetUpdatedAt() Timestamp { 14497 if u == nil || u.UpdatedAt == nil { 14498 return Timestamp{} 14499 } 14500 return *u.UpdatedAt 14501 } 14502 14503 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14504 func (u *UserAuthorization) GetURL() string { 14505 if u == nil || u.URL == nil { 14506 return "" 14507 } 14508 return *u.URL 14509 } 14510 14511 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 14512 func (u *UserContext) GetMessage() string { 14513 if u == nil || u.Message == nil { 14514 return "" 14515 } 14516 return *u.Message 14517 } 14518 14519 // GetOcticon returns the Octicon field if it's non-nil, zero value otherwise. 14520 func (u *UserContext) GetOcticon() string { 14521 if u == nil || u.Octicon == nil { 14522 return "" 14523 } 14524 return *u.Octicon 14525 } 14526 14527 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 14528 func (u *UserEmail) GetEmail() string { 14529 if u == nil || u.Email == nil { 14530 return "" 14531 } 14532 return *u.Email 14533 } 14534 14535 // GetPrimary returns the Primary field if it's non-nil, zero value otherwise. 14536 func (u *UserEmail) GetPrimary() bool { 14537 if u == nil || u.Primary == nil { 14538 return false 14539 } 14540 return *u.Primary 14541 } 14542 14543 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 14544 func (u *UserEmail) GetVerified() bool { 14545 if u == nil || u.Verified == nil { 14546 return false 14547 } 14548 return *u.Verified 14549 } 14550 14551 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 14552 func (u *UserEmail) GetVisibility() string { 14553 if u == nil || u.Visibility == nil { 14554 return "" 14555 } 14556 return *u.Visibility 14557 } 14558 14559 // GetAction returns the Action field if it's non-nil, zero value otherwise. 14560 func (u *UserEvent) GetAction() string { 14561 if u == nil || u.Action == nil { 14562 return "" 14563 } 14564 return *u.Action 14565 } 14566 14567 // GetEnterprise returns the Enterprise field. 14568 func (u *UserEvent) GetEnterprise() *Enterprise { 14569 if u == nil { 14570 return nil 14571 } 14572 return u.Enterprise 14573 } 14574 14575 // GetSender returns the Sender field. 14576 func (u *UserEvent) GetSender() *User { 14577 if u == nil { 14578 return nil 14579 } 14580 return u.Sender 14581 } 14582 14583 // GetUser returns the User field. 14584 func (u *UserEvent) GetUser() *User { 14585 if u == nil { 14586 return nil 14587 } 14588 return u.User 14589 } 14590 14591 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 14592 func (u *UserLDAPMapping) GetAvatarURL() string { 14593 if u == nil || u.AvatarURL == nil { 14594 return "" 14595 } 14596 return *u.AvatarURL 14597 } 14598 14599 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 14600 func (u *UserLDAPMapping) GetEventsURL() string { 14601 if u == nil || u.EventsURL == nil { 14602 return "" 14603 } 14604 return *u.EventsURL 14605 } 14606 14607 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 14608 func (u *UserLDAPMapping) GetFollowersURL() string { 14609 if u == nil || u.FollowersURL == nil { 14610 return "" 14611 } 14612 return *u.FollowersURL 14613 } 14614 14615 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 14616 func (u *UserLDAPMapping) GetFollowingURL() string { 14617 if u == nil || u.FollowingURL == nil { 14618 return "" 14619 } 14620 return *u.FollowingURL 14621 } 14622 14623 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 14624 func (u *UserLDAPMapping) GetGistsURL() string { 14625 if u == nil || u.GistsURL == nil { 14626 return "" 14627 } 14628 return *u.GistsURL 14629 } 14630 14631 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 14632 func (u *UserLDAPMapping) GetGravatarID() string { 14633 if u == nil || u.GravatarID == nil { 14634 return "" 14635 } 14636 return *u.GravatarID 14637 } 14638 14639 // GetID returns the ID field if it's non-nil, zero value otherwise. 14640 func (u *UserLDAPMapping) GetID() int64 { 14641 if u == nil || u.ID == nil { 14642 return 0 14643 } 14644 return *u.ID 14645 } 14646 14647 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 14648 func (u *UserLDAPMapping) GetLDAPDN() string { 14649 if u == nil || u.LDAPDN == nil { 14650 return "" 14651 } 14652 return *u.LDAPDN 14653 } 14654 14655 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 14656 func (u *UserLDAPMapping) GetLogin() string { 14657 if u == nil || u.Login == nil { 14658 return "" 14659 } 14660 return *u.Login 14661 } 14662 14663 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 14664 func (u *UserLDAPMapping) GetOrganizationsURL() string { 14665 if u == nil || u.OrganizationsURL == nil { 14666 return "" 14667 } 14668 return *u.OrganizationsURL 14669 } 14670 14671 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 14672 func (u *UserLDAPMapping) GetReceivedEventsURL() string { 14673 if u == nil || u.ReceivedEventsURL == nil { 14674 return "" 14675 } 14676 return *u.ReceivedEventsURL 14677 } 14678 14679 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 14680 func (u *UserLDAPMapping) GetReposURL() string { 14681 if u == nil || u.ReposURL == nil { 14682 return "" 14683 } 14684 return *u.ReposURL 14685 } 14686 14687 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 14688 func (u *UserLDAPMapping) GetSiteAdmin() bool { 14689 if u == nil || u.SiteAdmin == nil { 14690 return false 14691 } 14692 return *u.SiteAdmin 14693 } 14694 14695 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 14696 func (u *UserLDAPMapping) GetStarredURL() string { 14697 if u == nil || u.StarredURL == nil { 14698 return "" 14699 } 14700 return *u.StarredURL 14701 } 14702 14703 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 14704 func (u *UserLDAPMapping) GetSubscriptionsURL() string { 14705 if u == nil || u.SubscriptionsURL == nil { 14706 return "" 14707 } 14708 return *u.SubscriptionsURL 14709 } 14710 14711 // GetType returns the Type field if it's non-nil, zero value otherwise. 14712 func (u *UserLDAPMapping) GetType() string { 14713 if u == nil || u.Type == nil { 14714 return "" 14715 } 14716 return *u.Type 14717 } 14718 14719 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14720 func (u *UserLDAPMapping) GetURL() string { 14721 if u == nil || u.URL == nil { 14722 return "" 14723 } 14724 return *u.URL 14725 } 14726 14727 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14728 func (u *UserMigration) GetCreatedAt() string { 14729 if u == nil || u.CreatedAt == nil { 14730 return "" 14731 } 14732 return *u.CreatedAt 14733 } 14734 14735 // GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 14736 func (u *UserMigration) GetExcludeAttachments() bool { 14737 if u == nil || u.ExcludeAttachments == nil { 14738 return false 14739 } 14740 return *u.ExcludeAttachments 14741 } 14742 14743 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 14744 func (u *UserMigration) GetGUID() string { 14745 if u == nil || u.GUID == nil { 14746 return "" 14747 } 14748 return *u.GUID 14749 } 14750 14751 // GetID returns the ID field if it's non-nil, zero value otherwise. 14752 func (u *UserMigration) GetID() int64 { 14753 if u == nil || u.ID == nil { 14754 return 0 14755 } 14756 return *u.ID 14757 } 14758 14759 // GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 14760 func (u *UserMigration) GetLockRepositories() bool { 14761 if u == nil || u.LockRepositories == nil { 14762 return false 14763 } 14764 return *u.LockRepositories 14765 } 14766 14767 // GetState returns the State field if it's non-nil, zero value otherwise. 14768 func (u *UserMigration) GetState() string { 14769 if u == nil || u.State == nil { 14770 return "" 14771 } 14772 return *u.State 14773 } 14774 14775 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14776 func (u *UserMigration) GetUpdatedAt() string { 14777 if u == nil || u.UpdatedAt == nil { 14778 return "" 14779 } 14780 return *u.UpdatedAt 14781 } 14782 14783 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14784 func (u *UserMigration) GetURL() string { 14785 if u == nil || u.URL == nil { 14786 return "" 14787 } 14788 return *u.URL 14789 } 14790 14791 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 14792 func (u *UsersSearchResult) GetIncompleteResults() bool { 14793 if u == nil || u.IncompleteResults == nil { 14794 return false 14795 } 14796 return *u.IncompleteResults 14797 } 14798 14799 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 14800 func (u *UsersSearchResult) GetTotal() int { 14801 if u == nil || u.Total == nil { 14802 return 0 14803 } 14804 return *u.Total 14805 } 14806 14807 // GetAdminUsers returns the AdminUsers field if it's non-nil, zero value otherwise. 14808 func (u *UserStats) GetAdminUsers() int { 14809 if u == nil || u.AdminUsers == nil { 14810 return 0 14811 } 14812 return *u.AdminUsers 14813 } 14814 14815 // GetSuspendedUsers returns the SuspendedUsers field if it's non-nil, zero value otherwise. 14816 func (u *UserStats) GetSuspendedUsers() int { 14817 if u == nil || u.SuspendedUsers == nil { 14818 return 0 14819 } 14820 return *u.SuspendedUsers 14821 } 14822 14823 // GetTotalUsers returns the TotalUsers field if it's non-nil, zero value otherwise. 14824 func (u *UserStats) GetTotalUsers() int { 14825 if u == nil || u.TotalUsers == nil { 14826 return 0 14827 } 14828 return *u.TotalUsers 14829 } 14830 14831 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 14832 func (u *UserSuspendOptions) GetReason() string { 14833 if u == nil || u.Reason == nil { 14834 return "" 14835 } 14836 return *u.Reason 14837 } 14838 14839 // GetAction returns the Action field if it's non-nil, zero value otherwise. 14840 func (w *WatchEvent) GetAction() string { 14841 if w == nil || w.Action == nil { 14842 return "" 14843 } 14844 return *w.Action 14845 } 14846 14847 // GetInstallation returns the Installation field. 14848 func (w *WatchEvent) GetInstallation() *Installation { 14849 if w == nil { 14850 return nil 14851 } 14852 return w.Installation 14853 } 14854 14855 // GetRepo returns the Repo field. 14856 func (w *WatchEvent) GetRepo() *Repository { 14857 if w == nil { 14858 return nil 14859 } 14860 return w.Repo 14861 } 14862 14863 // GetSender returns the Sender field. 14864 func (w *WatchEvent) GetSender() *User { 14865 if w == nil { 14866 return nil 14867 } 14868 return w.Sender 14869 } 14870 14871 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 14872 func (w *WebHookAuthor) GetEmail() string { 14873 if w == nil || w.Email == nil { 14874 return "" 14875 } 14876 return *w.Email 14877 } 14878 14879 // GetName returns the Name field if it's non-nil, zero value otherwise. 14880 func (w *WebHookAuthor) GetName() string { 14881 if w == nil || w.Name == nil { 14882 return "" 14883 } 14884 return *w.Name 14885 } 14886 14887 // GetUsername returns the Username field if it's non-nil, zero value otherwise. 14888 func (w *WebHookAuthor) GetUsername() string { 14889 if w == nil || w.Username == nil { 14890 return "" 14891 } 14892 return *w.Username 14893 } 14894 14895 // GetAuthor returns the Author field. 14896 func (w *WebHookCommit) GetAuthor() *WebHookAuthor { 14897 if w == nil { 14898 return nil 14899 } 14900 return w.Author 14901 } 14902 14903 // GetCommitter returns the Committer field. 14904 func (w *WebHookCommit) GetCommitter() *WebHookAuthor { 14905 if w == nil { 14906 return nil 14907 } 14908 return w.Committer 14909 } 14910 14911 // GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. 14912 func (w *WebHookCommit) GetDistinct() bool { 14913 if w == nil || w.Distinct == nil { 14914 return false 14915 } 14916 return *w.Distinct 14917 } 14918 14919 // GetID returns the ID field if it's non-nil, zero value otherwise. 14920 func (w *WebHookCommit) GetID() string { 14921 if w == nil || w.ID == nil { 14922 return "" 14923 } 14924 return *w.ID 14925 } 14926 14927 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 14928 func (w *WebHookCommit) GetMessage() string { 14929 if w == nil || w.Message == nil { 14930 return "" 14931 } 14932 return *w.Message 14933 } 14934 14935 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 14936 func (w *WebHookCommit) GetTimestamp() time.Time { 14937 if w == nil || w.Timestamp == nil { 14938 return time.Time{} 14939 } 14940 return *w.Timestamp 14941 } 14942 14943 // GetAfter returns the After field if it's non-nil, zero value otherwise. 14944 func (w *WebHookPayload) GetAfter() string { 14945 if w == nil || w.After == nil { 14946 return "" 14947 } 14948 return *w.After 14949 } 14950 14951 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 14952 func (w *WebHookPayload) GetBefore() string { 14953 if w == nil || w.Before == nil { 14954 return "" 14955 } 14956 return *w.Before 14957 } 14958 14959 // GetCompare returns the Compare field if it's non-nil, zero value otherwise. 14960 func (w *WebHookPayload) GetCompare() string { 14961 if w == nil || w.Compare == nil { 14962 return "" 14963 } 14964 return *w.Compare 14965 } 14966 14967 // GetCreated returns the Created field if it's non-nil, zero value otherwise. 14968 func (w *WebHookPayload) GetCreated() bool { 14969 if w == nil || w.Created == nil { 14970 return false 14971 } 14972 return *w.Created 14973 } 14974 14975 // GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. 14976 func (w *WebHookPayload) GetDeleted() bool { 14977 if w == nil || w.Deleted == nil { 14978 return false 14979 } 14980 return *w.Deleted 14981 } 14982 14983 // GetForced returns the Forced field if it's non-nil, zero value otherwise. 14984 func (w *WebHookPayload) GetForced() bool { 14985 if w == nil || w.Forced == nil { 14986 return false 14987 } 14988 return *w.Forced 14989 } 14990 14991 // GetHeadCommit returns the HeadCommit field. 14992 func (w *WebHookPayload) GetHeadCommit() *WebHookCommit { 14993 if w == nil { 14994 return nil 14995 } 14996 return w.HeadCommit 14997 } 14998 14999 // GetPusher returns the Pusher field. 15000 func (w *WebHookPayload) GetPusher() *User { 15001 if w == nil { 15002 return nil 15003 } 15004 return w.Pusher 15005 } 15006 15007 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 15008 func (w *WebHookPayload) GetRef() string { 15009 if w == nil || w.Ref == nil { 15010 return "" 15011 } 15012 return *w.Ref 15013 } 15014 15015 // GetRepo returns the Repo field. 15016 func (w *WebHookPayload) GetRepo() *Repository { 15017 if w == nil { 15018 return nil 15019 } 15020 return w.Repo 15021 } 15022 15023 // GetSender returns the Sender field. 15024 func (w *WebHookPayload) GetSender() *User { 15025 if w == nil { 15026 return nil 15027 } 15028 return w.Sender 15029 } 15030 15031 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 15032 func (w *WeeklyCommitActivity) GetTotal() int { 15033 if w == nil || w.Total == nil { 15034 return 0 15035 } 15036 return *w.Total 15037 } 15038 15039 // GetWeek returns the Week field if it's non-nil, zero value otherwise. 15040 func (w *WeeklyCommitActivity) GetWeek() Timestamp { 15041 if w == nil || w.Week == nil { 15042 return Timestamp{} 15043 } 15044 return *w.Week 15045 } 15046 15047 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 15048 func (w *WeeklyStats) GetAdditions() int { 15049 if w == nil || w.Additions == nil { 15050 return 0 15051 } 15052 return *w.Additions 15053 } 15054 15055 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 15056 func (w *WeeklyStats) GetCommits() int { 15057 if w == nil || w.Commits == nil { 15058 return 0 15059 } 15060 return *w.Commits 15061 } 15062 15063 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 15064 func (w *WeeklyStats) GetDeletions() int { 15065 if w == nil || w.Deletions == nil { 15066 return 0 15067 } 15068 return *w.Deletions 15069 } 15070 15071 // GetWeek returns the Week field if it's non-nil, zero value otherwise. 15072 func (w *WeeklyStats) GetWeek() Timestamp { 15073 if w == nil || w.Week == nil { 15074 return Timestamp{} 15075 } 15076 return *w.Week 15077 } 15078 15079 // GetBadgeURL returns the BadgeURL field if it's non-nil, zero value otherwise. 15080 func (w *Workflow) GetBadgeURL() string { 15081 if w == nil || w.BadgeURL == nil { 15082 return "" 15083 } 15084 return *w.BadgeURL 15085 } 15086 15087 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 15088 func (w *Workflow) GetCreatedAt() Timestamp { 15089 if w == nil || w.CreatedAt == nil { 15090 return Timestamp{} 15091 } 15092 return *w.CreatedAt 15093 } 15094 15095 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 15096 func (w *Workflow) 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. 15104 func (w *Workflow) GetID() int64 { 15105 if w == nil || w.ID == nil { 15106 return 0 15107 } 15108 return *w.ID 15109 } 15110 15111 // GetName returns the Name field if it's non-nil, zero value otherwise. 15112 func (w *Workflow) GetName() string { 15113 if w == nil || w.Name == nil { 15114 return "" 15115 } 15116 return *w.Name 15117 } 15118 15119 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15120 func (w *Workflow) GetNodeID() string { 15121 if w == nil || w.NodeID == nil { 15122 return "" 15123 } 15124 return *w.NodeID 15125 } 15126 15127 // GetPath returns the Path field if it's non-nil, zero value otherwise. 15128 func (w *Workflow) GetPath() string { 15129 if w == nil || w.Path == nil { 15130 return "" 15131 } 15132 return *w.Path 15133 } 15134 15135 // GetState returns the State field if it's non-nil, zero value otherwise. 15136 func (w *Workflow) GetState() string { 15137 if w == nil || w.State == nil { 15138 return "" 15139 } 15140 return *w.State 15141 } 15142 15143 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 15144 func (w *Workflow) GetUpdatedAt() Timestamp { 15145 if w == nil || w.UpdatedAt == nil { 15146 return Timestamp{} 15147 } 15148 return *w.UpdatedAt 15149 } 15150 15151 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15152 func (w *Workflow) GetURL() string { 15153 if w == nil || w.URL == nil { 15154 return "" 15155 } 15156 return *w.URL 15157 } 15158 15159 // GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise. 15160 func (w *WorkflowBill) GetTotalMS() int64 { 15161 if w == nil || w.TotalMS == nil { 15162 return 0 15163 } 15164 return *w.TotalMS 15165 } 15166 15167 // GetOrg returns the Org field. 15168 func (w *WorkflowDispatchEvent) GetOrg() *Organization { 15169 if w == nil { 15170 return nil 15171 } 15172 return w.Org 15173 } 15174 15175 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 15176 func (w *WorkflowDispatchEvent) GetRef() string { 15177 if w == nil || w.Ref == nil { 15178 return "" 15179 } 15180 return *w.Ref 15181 } 15182 15183 // GetRepo returns the Repo field. 15184 func (w *WorkflowDispatchEvent) GetRepo() *Repository { 15185 if w == nil { 15186 return nil 15187 } 15188 return w.Repo 15189 } 15190 15191 // GetSender returns the Sender field. 15192 func (w *WorkflowDispatchEvent) GetSender() *User { 15193 if w == nil { 15194 return nil 15195 } 15196 return w.Sender 15197 } 15198 15199 // GetWorkflow returns the Workflow field if it's non-nil, zero value otherwise. 15200 func (w *WorkflowDispatchEvent) GetWorkflow() string { 15201 if w == nil || w.Workflow == nil { 15202 return "" 15203 } 15204 return *w.Workflow 15205 } 15206 15207 // GetMacOS returns the MacOS field. 15208 func (w *WorkflowEnvironment) GetMacOS() *WorkflowBill { 15209 if w == nil { 15210 return nil 15211 } 15212 return w.MacOS 15213 } 15214 15215 // GetUbuntu returns the Ubuntu field. 15216 func (w *WorkflowEnvironment) GetUbuntu() *WorkflowBill { 15217 if w == nil { 15218 return nil 15219 } 15220 return w.Ubuntu 15221 } 15222 15223 // GetWindows returns the Windows field. 15224 func (w *WorkflowEnvironment) GetWindows() *WorkflowBill { 15225 if w == nil { 15226 return nil 15227 } 15228 return w.Windows 15229 } 15230 15231 // GetCheckRunURL returns the CheckRunURL field if it's non-nil, zero value otherwise. 15232 func (w *WorkflowJob) GetCheckRunURL() string { 15233 if w == nil || w.CheckRunURL == nil { 15234 return "" 15235 } 15236 return *w.CheckRunURL 15237 } 15238 15239 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 15240 func (w *WorkflowJob) GetCompletedAt() Timestamp { 15241 if w == nil || w.CompletedAt == nil { 15242 return Timestamp{} 15243 } 15244 return *w.CompletedAt 15245 } 15246 15247 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 15248 func (w *WorkflowJob) GetConclusion() string { 15249 if w == nil || w.Conclusion == nil { 15250 return "" 15251 } 15252 return *w.Conclusion 15253 } 15254 15255 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 15256 func (w *WorkflowJob) GetHeadSHA() string { 15257 if w == nil || w.HeadSHA == nil { 15258 return "" 15259 } 15260 return *w.HeadSHA 15261 } 15262 15263 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 15264 func (w *WorkflowJob) GetHTMLURL() string { 15265 if w == nil || w.HTMLURL == nil { 15266 return "" 15267 } 15268 return *w.HTMLURL 15269 } 15270 15271 // GetID returns the ID field if it's non-nil, zero value otherwise. 15272 func (w *WorkflowJob) GetID() int64 { 15273 if w == nil || w.ID == nil { 15274 return 0 15275 } 15276 return *w.ID 15277 } 15278 15279 // GetName returns the Name field if it's non-nil, zero value otherwise. 15280 func (w *WorkflowJob) GetName() string { 15281 if w == nil || w.Name == nil { 15282 return "" 15283 } 15284 return *w.Name 15285 } 15286 15287 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15288 func (w *WorkflowJob) GetNodeID() string { 15289 if w == nil || w.NodeID == nil { 15290 return "" 15291 } 15292 return *w.NodeID 15293 } 15294 15295 // GetRunID returns the RunID field if it's non-nil, zero value otherwise. 15296 func (w *WorkflowJob) GetRunID() int64 { 15297 if w == nil || w.RunID == nil { 15298 return 0 15299 } 15300 return *w.RunID 15301 } 15302 15303 // GetRunURL returns the RunURL field if it's non-nil, zero value otherwise. 15304 func (w *WorkflowJob) GetRunURL() string { 15305 if w == nil || w.RunURL == nil { 15306 return "" 15307 } 15308 return *w.RunURL 15309 } 15310 15311 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 15312 func (w *WorkflowJob) GetStartedAt() Timestamp { 15313 if w == nil || w.StartedAt == nil { 15314 return Timestamp{} 15315 } 15316 return *w.StartedAt 15317 } 15318 15319 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 15320 func (w *WorkflowJob) GetStatus() string { 15321 if w == nil || w.Status == nil { 15322 return "" 15323 } 15324 return *w.Status 15325 } 15326 15327 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15328 func (w *WorkflowJob) GetURL() string { 15329 if w == nil || w.URL == nil { 15330 return "" 15331 } 15332 return *w.URL 15333 } 15334 15335 // GetArtifactsURL returns the ArtifactsURL field if it's non-nil, zero value otherwise. 15336 func (w *WorkflowRun) GetArtifactsURL() string { 15337 if w == nil || w.ArtifactsURL == nil { 15338 return "" 15339 } 15340 return *w.ArtifactsURL 15341 } 15342 15343 // GetCancelURL returns the CancelURL field if it's non-nil, zero value otherwise. 15344 func (w *WorkflowRun) GetCancelURL() string { 15345 if w == nil || w.CancelURL == nil { 15346 return "" 15347 } 15348 return *w.CancelURL 15349 } 15350 15351 // GetCheckSuiteURL returns the CheckSuiteURL field if it's non-nil, zero value otherwise. 15352 func (w *WorkflowRun) GetCheckSuiteURL() string { 15353 if w == nil || w.CheckSuiteURL == nil { 15354 return "" 15355 } 15356 return *w.CheckSuiteURL 15357 } 15358 15359 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 15360 func (w *WorkflowRun) GetConclusion() string { 15361 if w == nil || w.Conclusion == nil { 15362 return "" 15363 } 15364 return *w.Conclusion 15365 } 15366 15367 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 15368 func (w *WorkflowRun) GetCreatedAt() Timestamp { 15369 if w == nil || w.CreatedAt == nil { 15370 return Timestamp{} 15371 } 15372 return *w.CreatedAt 15373 } 15374 15375 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 15376 func (w *WorkflowRun) GetEvent() string { 15377 if w == nil || w.Event == nil { 15378 return "" 15379 } 15380 return *w.Event 15381 } 15382 15383 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 15384 func (w *WorkflowRun) GetHeadBranch() string { 15385 if w == nil || w.HeadBranch == nil { 15386 return "" 15387 } 15388 return *w.HeadBranch 15389 } 15390 15391 // GetHeadCommit returns the HeadCommit field. 15392 func (w *WorkflowRun) GetHeadCommit() *HeadCommit { 15393 if w == nil { 15394 return nil 15395 } 15396 return w.HeadCommit 15397 } 15398 15399 // GetHeadRepository returns the HeadRepository field. 15400 func (w *WorkflowRun) GetHeadRepository() *Repository { 15401 if w == nil { 15402 return nil 15403 } 15404 return w.HeadRepository 15405 } 15406 15407 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 15408 func (w *WorkflowRun) GetHeadSHA() string { 15409 if w == nil || w.HeadSHA == nil { 15410 return "" 15411 } 15412 return *w.HeadSHA 15413 } 15414 15415 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 15416 func (w *WorkflowRun) GetHTMLURL() string { 15417 if w == nil || w.HTMLURL == nil { 15418 return "" 15419 } 15420 return *w.HTMLURL 15421 } 15422 15423 // GetID returns the ID field if it's non-nil, zero value otherwise. 15424 func (w *WorkflowRun) GetID() int64 { 15425 if w == nil || w.ID == nil { 15426 return 0 15427 } 15428 return *w.ID 15429 } 15430 15431 // GetJobsURL returns the JobsURL field if it's non-nil, zero value otherwise. 15432 func (w *WorkflowRun) GetJobsURL() string { 15433 if w == nil || w.JobsURL == nil { 15434 return "" 15435 } 15436 return *w.JobsURL 15437 } 15438 15439 // GetLogsURL returns the LogsURL field if it's non-nil, zero value otherwise. 15440 func (w *WorkflowRun) GetLogsURL() string { 15441 if w == nil || w.LogsURL == nil { 15442 return "" 15443 } 15444 return *w.LogsURL 15445 } 15446 15447 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15448 func (w *WorkflowRun) GetNodeID() string { 15449 if w == nil || w.NodeID == nil { 15450 return "" 15451 } 15452 return *w.NodeID 15453 } 15454 15455 // GetRepository returns the Repository field. 15456 func (w *WorkflowRun) GetRepository() *Repository { 15457 if w == nil { 15458 return nil 15459 } 15460 return w.Repository 15461 } 15462 15463 // GetRerunURL returns the RerunURL field if it's non-nil, zero value otherwise. 15464 func (w *WorkflowRun) GetRerunURL() string { 15465 if w == nil || w.RerunURL == nil { 15466 return "" 15467 } 15468 return *w.RerunURL 15469 } 15470 15471 // GetRunNumber returns the RunNumber field if it's non-nil, zero value otherwise. 15472 func (w *WorkflowRun) GetRunNumber() int { 15473 if w == nil || w.RunNumber == nil { 15474 return 0 15475 } 15476 return *w.RunNumber 15477 } 15478 15479 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 15480 func (w *WorkflowRun) GetStatus() string { 15481 if w == nil || w.Status == nil { 15482 return "" 15483 } 15484 return *w.Status 15485 } 15486 15487 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 15488 func (w *WorkflowRun) GetUpdatedAt() Timestamp { 15489 if w == nil || w.UpdatedAt == nil { 15490 return Timestamp{} 15491 } 15492 return *w.UpdatedAt 15493 } 15494 15495 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15496 func (w *WorkflowRun) GetURL() string { 15497 if w == nil || w.URL == nil { 15498 return "" 15499 } 15500 return *w.URL 15501 } 15502 15503 // GetWorkflowID returns the WorkflowID field if it's non-nil, zero value otherwise. 15504 func (w *WorkflowRun) GetWorkflowID() int64 { 15505 if w == nil || w.WorkflowID == nil { 15506 return 0 15507 } 15508 return *w.WorkflowID 15509 } 15510 15511 // GetWorkflowURL returns the WorkflowURL field if it's non-nil, zero value otherwise. 15512 func (w *WorkflowRun) GetWorkflowURL() string { 15513 if w == nil || w.WorkflowURL == nil { 15514 return "" 15515 } 15516 return *w.WorkflowURL 15517 } 15518 15519 // GetJobs returns the Jobs field if it's non-nil, zero value otherwise. 15520 func (w *WorkflowRunBill) GetJobs() int { 15521 if w == nil || w.Jobs == nil { 15522 return 0 15523 } 15524 return *w.Jobs 15525 } 15526 15527 // GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise. 15528 func (w *WorkflowRunBill) GetTotalMS() int64 { 15529 if w == nil || w.TotalMS == nil { 15530 return 0 15531 } 15532 return *w.TotalMS 15533 } 15534 15535 // GetMacOS returns the MacOS field. 15536 func (w *WorkflowRunEnvironment) GetMacOS() *WorkflowRunBill { 15537 if w == nil { 15538 return nil 15539 } 15540 return w.MacOS 15541 } 15542 15543 // GetUbuntu returns the Ubuntu field. 15544 func (w *WorkflowRunEnvironment) GetUbuntu() *WorkflowRunBill { 15545 if w == nil { 15546 return nil 15547 } 15548 return w.Ubuntu 15549 } 15550 15551 // GetWindows returns the Windows field. 15552 func (w *WorkflowRunEnvironment) GetWindows() *WorkflowRunBill { 15553 if w == nil { 15554 return nil 15555 } 15556 return w.Windows 15557 } 15558 15559 // GetAction returns the Action field if it's non-nil, zero value otherwise. 15560 func (w *WorkflowRunEvent) GetAction() string { 15561 if w == nil || w.Action == nil { 15562 return "" 15563 } 15564 return *w.Action 15565 } 15566 15567 // GetOrg returns the Org field. 15568 func (w *WorkflowRunEvent) GetOrg() *Organization { 15569 if w == nil { 15570 return nil 15571 } 15572 return w.Org 15573 } 15574 15575 // GetRepo returns the Repo field. 15576 func (w *WorkflowRunEvent) GetRepo() *Repository { 15577 if w == nil { 15578 return nil 15579 } 15580 return w.Repo 15581 } 15582 15583 // GetSender returns the Sender field. 15584 func (w *WorkflowRunEvent) GetSender() *User { 15585 if w == nil { 15586 return nil 15587 } 15588 return w.Sender 15589 } 15590 15591 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 15592 func (w *WorkflowRuns) GetTotalCount() int { 15593 if w == nil || w.TotalCount == nil { 15594 return 0 15595 } 15596 return *w.TotalCount 15597 } 15598 15599 // GetBillable returns the Billable field. 15600 func (w *WorkflowRunUsage) GetBillable() *WorkflowRunEnvironment { 15601 if w == nil { 15602 return nil 15603 } 15604 return w.Billable 15605 } 15606 15607 // GetRunDurationMS returns the RunDurationMS field if it's non-nil, zero value otherwise. 15608 func (w *WorkflowRunUsage) GetRunDurationMS() int64 { 15609 if w == nil || w.RunDurationMS == nil { 15610 return 0 15611 } 15612 return *w.RunDurationMS 15613 } 15614 15615 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 15616 func (w *Workflows) GetTotalCount() int { 15617 if w == nil || w.TotalCount == nil { 15618 return 0 15619 } 15620 return *w.TotalCount 15621 } 15622 15623 // GetBillable returns the Billable field. 15624 func (w *WorkflowUsage) GetBillable() *WorkflowEnvironment { 15625 if w == nil { 15626 return nil 15627 } 15628 return w.Billable 15629 }