github.com/google/go-github/v42@v42.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 // GetGithubOwnedAllowed returns the GithubOwnedAllowed field if it's non-nil, zero value otherwise. 24 func (a *ActionsAllowed) GetGithubOwnedAllowed() bool { 25 if a == nil || a.GithubOwnedAllowed == nil { 26 return false 27 } 28 return *a.GithubOwnedAllowed 29 } 30 31 // GetVerifiedAllowed returns the VerifiedAllowed field if it's non-nil, zero value otherwise. 32 func (a *ActionsAllowed) GetVerifiedAllowed() bool { 33 if a == nil || a.VerifiedAllowed == nil { 34 return false 35 } 36 return *a.VerifiedAllowed 37 } 38 39 // GetAllowedActions returns the AllowedActions field if it's non-nil, zero value otherwise. 40 func (a *ActionsPermissions) GetAllowedActions() string { 41 if a == nil || a.AllowedActions == nil { 42 return "" 43 } 44 return *a.AllowedActions 45 } 46 47 // GetEnabledRepositories returns the EnabledRepositories field if it's non-nil, zero value otherwise. 48 func (a *ActionsPermissions) GetEnabledRepositories() string { 49 if a == nil || a.EnabledRepositories == nil { 50 return "" 51 } 52 return *a.EnabledRepositories 53 } 54 55 // GetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise. 56 func (a *ActionsPermissions) GetSelectedActionsURL() string { 57 if a == nil || a.SelectedActionsURL == nil { 58 return "" 59 } 60 return *a.SelectedActionsURL 61 } 62 63 // GetURL returns the URL field if it's non-nil, zero value otherwise. 64 func (a *AdminEnforcement) GetURL() string { 65 if a == nil || a.URL == nil { 66 return "" 67 } 68 return *a.URL 69 } 70 71 // GetComments returns the Comments field. 72 func (a *AdminStats) GetComments() *CommentStats { 73 if a == nil { 74 return nil 75 } 76 return a.Comments 77 } 78 79 // GetGists returns the Gists field. 80 func (a *AdminStats) GetGists() *GistStats { 81 if a == nil { 82 return nil 83 } 84 return a.Gists 85 } 86 87 // GetHooks returns the Hooks field. 88 func (a *AdminStats) GetHooks() *HookStats { 89 if a == nil { 90 return nil 91 } 92 return a.Hooks 93 } 94 95 // GetIssues returns the Issues field. 96 func (a *AdminStats) GetIssues() *IssueStats { 97 if a == nil { 98 return nil 99 } 100 return a.Issues 101 } 102 103 // GetMilestones returns the Milestones field. 104 func (a *AdminStats) GetMilestones() *MilestoneStats { 105 if a == nil { 106 return nil 107 } 108 return a.Milestones 109 } 110 111 // GetOrgs returns the Orgs field. 112 func (a *AdminStats) GetOrgs() *OrgStats { 113 if a == nil { 114 return nil 115 } 116 return a.Orgs 117 } 118 119 // GetPages returns the Pages field. 120 func (a *AdminStats) GetPages() *PageStats { 121 if a == nil { 122 return nil 123 } 124 return a.Pages 125 } 126 127 // GetPulls returns the Pulls field. 128 func (a *AdminStats) GetPulls() *PullStats { 129 if a == nil { 130 return nil 131 } 132 return a.Pulls 133 } 134 135 // GetRepos returns the Repos field. 136 func (a *AdminStats) GetRepos() *RepoStats { 137 if a == nil { 138 return nil 139 } 140 return a.Repos 141 } 142 143 // GetUsers returns the Users field. 144 func (a *AdminStats) GetUsers() *UserStats { 145 if a == nil { 146 return nil 147 } 148 return a.Users 149 } 150 151 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 152 func (a *AdvancedSecurity) GetStatus() string { 153 if a == nil || a.Status == nil { 154 return "" 155 } 156 return *a.Status 157 } 158 159 // GetLastPushedDate returns the LastPushedDate field if it's non-nil, zero value otherwise. 160 func (a *AdvancedSecurityCommittersBreakdown) GetLastPushedDate() string { 161 if a == nil || a.LastPushedDate == nil { 162 return "" 163 } 164 return *a.LastPushedDate 165 } 166 167 // GetUserLogin returns the UserLogin field if it's non-nil, zero value otherwise. 168 func (a *AdvancedSecurityCommittersBreakdown) GetUserLogin() string { 169 if a == nil || a.UserLogin == nil { 170 return "" 171 } 172 return *a.UserLogin 173 } 174 175 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 176 func (a *Alert) GetClosedAt() Timestamp { 177 if a == nil || a.ClosedAt == nil { 178 return Timestamp{} 179 } 180 return *a.ClosedAt 181 } 182 183 // GetClosedBy returns the ClosedBy field. 184 func (a *Alert) GetClosedBy() *User { 185 if a == nil { 186 return nil 187 } 188 return a.ClosedBy 189 } 190 191 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 192 func (a *Alert) GetCreatedAt() Timestamp { 193 if a == nil || a.CreatedAt == nil { 194 return Timestamp{} 195 } 196 return *a.CreatedAt 197 } 198 199 // GetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise. 200 func (a *Alert) GetDismissedAt() Timestamp { 201 if a == nil || a.DismissedAt == nil { 202 return Timestamp{} 203 } 204 return *a.DismissedAt 205 } 206 207 // GetDismissedBy returns the DismissedBy field. 208 func (a *Alert) GetDismissedBy() *User { 209 if a == nil { 210 return nil 211 } 212 return a.DismissedBy 213 } 214 215 // GetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise. 216 func (a *Alert) GetDismissedReason() string { 217 if a == nil || a.DismissedReason == nil { 218 return "" 219 } 220 return *a.DismissedReason 221 } 222 223 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 224 func (a *Alert) GetHTMLURL() string { 225 if a == nil || a.HTMLURL == nil { 226 return "" 227 } 228 return *a.HTMLURL 229 } 230 231 // GetInstancesURL returns the InstancesURL field if it's non-nil, zero value otherwise. 232 func (a *Alert) GetInstancesURL() string { 233 if a == nil || a.InstancesURL == nil { 234 return "" 235 } 236 return *a.InstancesURL 237 } 238 239 // GetMostRecentInstance returns the MostRecentInstance field. 240 func (a *Alert) GetMostRecentInstance() *MostRecentInstance { 241 if a == nil { 242 return nil 243 } 244 return a.MostRecentInstance 245 } 246 247 // GetRule returns the Rule field. 248 func (a *Alert) GetRule() *Rule { 249 if a == nil { 250 return nil 251 } 252 return a.Rule 253 } 254 255 // GetRuleDescription returns the RuleDescription field if it's non-nil, zero value otherwise. 256 func (a *Alert) GetRuleDescription() string { 257 if a == nil || a.RuleDescription == nil { 258 return "" 259 } 260 return *a.RuleDescription 261 } 262 263 // GetRuleID returns the RuleID field if it's non-nil, zero value otherwise. 264 func (a *Alert) GetRuleID() string { 265 if a == nil || a.RuleID == nil { 266 return "" 267 } 268 return *a.RuleID 269 } 270 271 // GetRuleSeverity returns the RuleSeverity field if it's non-nil, zero value otherwise. 272 func (a *Alert) GetRuleSeverity() string { 273 if a == nil || a.RuleSeverity == nil { 274 return "" 275 } 276 return *a.RuleSeverity 277 } 278 279 // GetState returns the State field if it's non-nil, zero value otherwise. 280 func (a *Alert) GetState() string { 281 if a == nil || a.State == nil { 282 return "" 283 } 284 return *a.State 285 } 286 287 // GetTool returns the Tool field. 288 func (a *Alert) GetTool() *Tool { 289 if a == nil { 290 return nil 291 } 292 return a.Tool 293 } 294 295 // GetURL returns the URL field if it's non-nil, zero value otherwise. 296 func (a *Alert) GetURL() string { 297 if a == nil || a.URL == nil { 298 return "" 299 } 300 return *a.URL 301 } 302 303 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 304 func (a *AnalysesListOptions) GetRef() string { 305 if a == nil || a.Ref == nil { 306 return "" 307 } 308 return *a.Ref 309 } 310 311 // GetSarifID returns the SarifID field if it's non-nil, zero value otherwise. 312 func (a *AnalysesListOptions) GetSarifID() string { 313 if a == nil || a.SarifID == nil { 314 return "" 315 } 316 return *a.SarifID 317 } 318 319 // GetVerifiablePasswordAuthentication returns the VerifiablePasswordAuthentication field if it's non-nil, zero value otherwise. 320 func (a *APIMeta) GetVerifiablePasswordAuthentication() bool { 321 if a == nil || a.VerifiablePasswordAuthentication == nil { 322 return false 323 } 324 return *a.VerifiablePasswordAuthentication 325 } 326 327 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 328 func (a *App) GetCreatedAt() Timestamp { 329 if a == nil || a.CreatedAt == nil { 330 return Timestamp{} 331 } 332 return *a.CreatedAt 333 } 334 335 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 336 func (a *App) GetDescription() string { 337 if a == nil || a.Description == nil { 338 return "" 339 } 340 return *a.Description 341 } 342 343 // GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise. 344 func (a *App) GetExternalURL() string { 345 if a == nil || a.ExternalURL == nil { 346 return "" 347 } 348 return *a.ExternalURL 349 } 350 351 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 352 func (a *App) GetHTMLURL() string { 353 if a == nil || a.HTMLURL == nil { 354 return "" 355 } 356 return *a.HTMLURL 357 } 358 359 // GetID returns the ID field if it's non-nil, zero value otherwise. 360 func (a *App) GetID() int64 { 361 if a == nil || a.ID == nil { 362 return 0 363 } 364 return *a.ID 365 } 366 367 // GetName returns the Name field if it's non-nil, zero value otherwise. 368 func (a *App) GetName() string { 369 if a == nil || a.Name == nil { 370 return "" 371 } 372 return *a.Name 373 } 374 375 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 376 func (a *App) GetNodeID() string { 377 if a == nil || a.NodeID == nil { 378 return "" 379 } 380 return *a.NodeID 381 } 382 383 // GetOwner returns the Owner field. 384 func (a *App) GetOwner() *User { 385 if a == nil { 386 return nil 387 } 388 return a.Owner 389 } 390 391 // GetPermissions returns the Permissions field. 392 func (a *App) GetPermissions() *InstallationPermissions { 393 if a == nil { 394 return nil 395 } 396 return a.Permissions 397 } 398 399 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 400 func (a *App) GetSlug() string { 401 if a == nil || a.Slug == nil { 402 return "" 403 } 404 return *a.Slug 405 } 406 407 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 408 func (a *App) GetUpdatedAt() Timestamp { 409 if a == nil || a.UpdatedAt == nil { 410 return Timestamp{} 411 } 412 return *a.UpdatedAt 413 } 414 415 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 416 func (a *AppConfig) GetClientID() string { 417 if a == nil || a.ClientID == nil { 418 return "" 419 } 420 return *a.ClientID 421 } 422 423 // GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. 424 func (a *AppConfig) GetClientSecret() string { 425 if a == nil || a.ClientSecret == nil { 426 return "" 427 } 428 return *a.ClientSecret 429 } 430 431 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 432 func (a *AppConfig) GetCreatedAt() Timestamp { 433 if a == nil || a.CreatedAt == nil { 434 return Timestamp{} 435 } 436 return *a.CreatedAt 437 } 438 439 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 440 func (a *AppConfig) GetDescription() string { 441 if a == nil || a.Description == nil { 442 return "" 443 } 444 return *a.Description 445 } 446 447 // GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise. 448 func (a *AppConfig) GetExternalURL() string { 449 if a == nil || a.ExternalURL == nil { 450 return "" 451 } 452 return *a.ExternalURL 453 } 454 455 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 456 func (a *AppConfig) GetHTMLURL() string { 457 if a == nil || a.HTMLURL == nil { 458 return "" 459 } 460 return *a.HTMLURL 461 } 462 463 // GetID returns the ID field if it's non-nil, zero value otherwise. 464 func (a *AppConfig) GetID() int64 { 465 if a == nil || a.ID == nil { 466 return 0 467 } 468 return *a.ID 469 } 470 471 // GetName returns the Name field if it's non-nil, zero value otherwise. 472 func (a *AppConfig) GetName() string { 473 if a == nil || a.Name == nil { 474 return "" 475 } 476 return *a.Name 477 } 478 479 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 480 func (a *AppConfig) GetNodeID() string { 481 if a == nil || a.NodeID == nil { 482 return "" 483 } 484 return *a.NodeID 485 } 486 487 // GetOwner returns the Owner field. 488 func (a *AppConfig) GetOwner() *User { 489 if a == nil { 490 return nil 491 } 492 return a.Owner 493 } 494 495 // GetPEM returns the PEM field if it's non-nil, zero value otherwise. 496 func (a *AppConfig) GetPEM() string { 497 if a == nil || a.PEM == nil { 498 return "" 499 } 500 return *a.PEM 501 } 502 503 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 504 func (a *AppConfig) GetSlug() string { 505 if a == nil || a.Slug == nil { 506 return "" 507 } 508 return *a.Slug 509 } 510 511 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 512 func (a *AppConfig) GetUpdatedAt() Timestamp { 513 if a == nil || a.UpdatedAt == nil { 514 return Timestamp{} 515 } 516 return *a.UpdatedAt 517 } 518 519 // GetWebhookSecret returns the WebhookSecret field if it's non-nil, zero value otherwise. 520 func (a *AppConfig) GetWebhookSecret() string { 521 if a == nil || a.WebhookSecret == nil { 522 return "" 523 } 524 return *a.WebhookSecret 525 } 526 527 // GetArchiveDownloadURL returns the ArchiveDownloadURL field if it's non-nil, zero value otherwise. 528 func (a *Artifact) GetArchiveDownloadURL() string { 529 if a == nil || a.ArchiveDownloadURL == nil { 530 return "" 531 } 532 return *a.ArchiveDownloadURL 533 } 534 535 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 536 func (a *Artifact) GetCreatedAt() Timestamp { 537 if a == nil || a.CreatedAt == nil { 538 return Timestamp{} 539 } 540 return *a.CreatedAt 541 } 542 543 // GetExpired returns the Expired field if it's non-nil, zero value otherwise. 544 func (a *Artifact) GetExpired() bool { 545 if a == nil || a.Expired == nil { 546 return false 547 } 548 return *a.Expired 549 } 550 551 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 552 func (a *Artifact) GetExpiresAt() Timestamp { 553 if a == nil || a.ExpiresAt == nil { 554 return Timestamp{} 555 } 556 return *a.ExpiresAt 557 } 558 559 // GetID returns the ID field if it's non-nil, zero value otherwise. 560 func (a *Artifact) GetID() int64 { 561 if a == nil || a.ID == nil { 562 return 0 563 } 564 return *a.ID 565 } 566 567 // GetName returns the Name field if it's non-nil, zero value otherwise. 568 func (a *Artifact) GetName() string { 569 if a == nil || a.Name == nil { 570 return "" 571 } 572 return *a.Name 573 } 574 575 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 576 func (a *Artifact) GetNodeID() string { 577 if a == nil || a.NodeID == nil { 578 return "" 579 } 580 return *a.NodeID 581 } 582 583 // GetSizeInBytes returns the SizeInBytes field if it's non-nil, zero value otherwise. 584 func (a *Artifact) GetSizeInBytes() int64 { 585 if a == nil || a.SizeInBytes == nil { 586 return 0 587 } 588 return *a.SizeInBytes 589 } 590 591 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 592 func (a *ArtifactList) GetTotalCount() int64 { 593 if a == nil || a.TotalCount == nil { 594 return 0 595 } 596 return *a.TotalCount 597 } 598 599 // GetBody returns the Body field if it's non-nil, zero value otherwise. 600 func (a *Attachment) GetBody() string { 601 if a == nil || a.Body == nil { 602 return "" 603 } 604 return *a.Body 605 } 606 607 // GetID returns the ID field if it's non-nil, zero value otherwise. 608 func (a *Attachment) GetID() int64 { 609 if a == nil || a.ID == nil { 610 return 0 611 } 612 return *a.ID 613 } 614 615 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 616 func (a *Attachment) GetTitle() string { 617 if a == nil || a.Title == nil { 618 return "" 619 } 620 return *a.Title 621 } 622 623 // GetAction returns the Action field if it's non-nil, zero value otherwise. 624 func (a *AuditEntry) GetAction() string { 625 if a == nil || a.Action == nil { 626 return "" 627 } 628 return *a.Action 629 } 630 631 // GetActive returns the Active field if it's non-nil, zero value otherwise. 632 func (a *AuditEntry) GetActive() bool { 633 if a == nil || a.Active == nil { 634 return false 635 } 636 return *a.Active 637 } 638 639 // GetActiveWas returns the ActiveWas field if it's non-nil, zero value otherwise. 640 func (a *AuditEntry) GetActiveWas() bool { 641 if a == nil || a.ActiveWas == nil { 642 return false 643 } 644 return *a.ActiveWas 645 } 646 647 // GetActor returns the Actor field if it's non-nil, zero value otherwise. 648 func (a *AuditEntry) GetActor() string { 649 if a == nil || a.Actor == nil { 650 return "" 651 } 652 return *a.Actor 653 } 654 655 // GetBlockedUser returns the BlockedUser field if it's non-nil, zero value otherwise. 656 func (a *AuditEntry) GetBlockedUser() string { 657 if a == nil || a.BlockedUser == nil { 658 return "" 659 } 660 return *a.BlockedUser 661 } 662 663 // GetBusiness returns the Business field if it's non-nil, zero value otherwise. 664 func (a *AuditEntry) GetBusiness() string { 665 if a == nil || a.Business == nil { 666 return "" 667 } 668 return *a.Business 669 } 670 671 // GetCancelledAt returns the CancelledAt field if it's non-nil, zero value otherwise. 672 func (a *AuditEntry) GetCancelledAt() Timestamp { 673 if a == nil || a.CancelledAt == nil { 674 return Timestamp{} 675 } 676 return *a.CancelledAt 677 } 678 679 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 680 func (a *AuditEntry) GetCompletedAt() Timestamp { 681 if a == nil || a.CompletedAt == nil { 682 return Timestamp{} 683 } 684 return *a.CompletedAt 685 } 686 687 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 688 func (a *AuditEntry) GetConclusion() string { 689 if a == nil || a.Conclusion == nil { 690 return "" 691 } 692 return *a.Conclusion 693 } 694 695 // GetConfig returns the Config field. 696 func (a *AuditEntry) GetConfig() *HookConfig { 697 if a == nil { 698 return nil 699 } 700 return a.Config 701 } 702 703 // GetConfigWas returns the ConfigWas field. 704 func (a *AuditEntry) GetConfigWas() *HookConfig { 705 if a == nil { 706 return nil 707 } 708 return a.ConfigWas 709 } 710 711 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 712 func (a *AuditEntry) GetContentType() string { 713 if a == nil || a.ContentType == nil { 714 return "" 715 } 716 return *a.ContentType 717 } 718 719 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 720 func (a *AuditEntry) GetCreatedAt() Timestamp { 721 if a == nil || a.CreatedAt == nil { 722 return Timestamp{} 723 } 724 return *a.CreatedAt 725 } 726 727 // GetDeployKeyFingerprint returns the DeployKeyFingerprint field if it's non-nil, zero value otherwise. 728 func (a *AuditEntry) GetDeployKeyFingerprint() string { 729 if a == nil || a.DeployKeyFingerprint == nil { 730 return "" 731 } 732 return *a.DeployKeyFingerprint 733 } 734 735 // GetDocumentID returns the DocumentID field if it's non-nil, zero value otherwise. 736 func (a *AuditEntry) GetDocumentID() string { 737 if a == nil || a.DocumentID == nil { 738 return "" 739 } 740 return *a.DocumentID 741 } 742 743 // GetEmoji returns the Emoji field if it's non-nil, zero value otherwise. 744 func (a *AuditEntry) GetEmoji() string { 745 if a == nil || a.Emoji == nil { 746 return "" 747 } 748 return *a.Emoji 749 } 750 751 // GetEnvironmentName returns the EnvironmentName field if it's non-nil, zero value otherwise. 752 func (a *AuditEntry) GetEnvironmentName() string { 753 if a == nil || a.EnvironmentName == nil { 754 return "" 755 } 756 return *a.EnvironmentName 757 } 758 759 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 760 func (a *AuditEntry) GetEvent() string { 761 if a == nil || a.Event == nil { 762 return "" 763 } 764 return *a.Event 765 } 766 767 // GetExplanation returns the Explanation field if it's non-nil, zero value otherwise. 768 func (a *AuditEntry) GetExplanation() string { 769 if a == nil || a.Explanation == nil { 770 return "" 771 } 772 return *a.Explanation 773 } 774 775 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 776 func (a *AuditEntry) GetFingerprint() string { 777 if a == nil || a.Fingerprint == nil { 778 return "" 779 } 780 return *a.Fingerprint 781 } 782 783 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 784 func (a *AuditEntry) GetHeadBranch() string { 785 if a == nil || a.HeadBranch == nil { 786 return "" 787 } 788 return *a.HeadBranch 789 } 790 791 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 792 func (a *AuditEntry) GetHeadSHA() string { 793 if a == nil || a.HeadSHA == nil { 794 return "" 795 } 796 return *a.HeadSHA 797 } 798 799 // GetHookID returns the HookID field if it's non-nil, zero value otherwise. 800 func (a *AuditEntry) GetHookID() int64 { 801 if a == nil || a.HookID == nil { 802 return 0 803 } 804 return *a.HookID 805 } 806 807 // GetIsHostedRunner returns the IsHostedRunner field if it's non-nil, zero value otherwise. 808 func (a *AuditEntry) GetIsHostedRunner() bool { 809 if a == nil || a.IsHostedRunner == nil { 810 return false 811 } 812 return *a.IsHostedRunner 813 } 814 815 // GetJobName returns the JobName field if it's non-nil, zero value otherwise. 816 func (a *AuditEntry) GetJobName() string { 817 if a == nil || a.JobName == nil { 818 return "" 819 } 820 return *a.JobName 821 } 822 823 // GetLimitedAvailability returns the LimitedAvailability field if it's non-nil, zero value otherwise. 824 func (a *AuditEntry) GetLimitedAvailability() bool { 825 if a == nil || a.LimitedAvailability == nil { 826 return false 827 } 828 return *a.LimitedAvailability 829 } 830 831 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 832 func (a *AuditEntry) GetMessage() string { 833 if a == nil || a.Message == nil { 834 return "" 835 } 836 return *a.Message 837 } 838 839 // GetName returns the Name field if it's non-nil, zero value otherwise. 840 func (a *AuditEntry) GetName() string { 841 if a == nil || a.Name == nil { 842 return "" 843 } 844 return *a.Name 845 } 846 847 // GetOldUser returns the OldUser field if it's non-nil, zero value otherwise. 848 func (a *AuditEntry) GetOldUser() string { 849 if a == nil || a.OldUser == nil { 850 return "" 851 } 852 return *a.OldUser 853 } 854 855 // GetOpenSSHPublicKey returns the OpenSSHPublicKey field if it's non-nil, zero value otherwise. 856 func (a *AuditEntry) GetOpenSSHPublicKey() string { 857 if a == nil || a.OpenSSHPublicKey == nil { 858 return "" 859 } 860 return *a.OpenSSHPublicKey 861 } 862 863 // GetOrg returns the Org field if it's non-nil, zero value otherwise. 864 func (a *AuditEntry) GetOrg() string { 865 if a == nil || a.Org == nil { 866 return "" 867 } 868 return *a.Org 869 } 870 871 // GetPreviousVisibility returns the PreviousVisibility field if it's non-nil, zero value otherwise. 872 func (a *AuditEntry) GetPreviousVisibility() string { 873 if a == nil || a.PreviousVisibility == nil { 874 return "" 875 } 876 return *a.PreviousVisibility 877 } 878 879 // GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise. 880 func (a *AuditEntry) GetReadOnly() string { 881 if a == nil || a.ReadOnly == nil { 882 return "" 883 } 884 return *a.ReadOnly 885 } 886 887 // GetRepo returns the Repo field if it's non-nil, zero value otherwise. 888 func (a *AuditEntry) GetRepo() string { 889 if a == nil || a.Repo == nil { 890 return "" 891 } 892 return *a.Repo 893 } 894 895 // GetRepository returns the Repository field if it's non-nil, zero value otherwise. 896 func (a *AuditEntry) GetRepository() string { 897 if a == nil || a.Repository == nil { 898 return "" 899 } 900 return *a.Repository 901 } 902 903 // GetRepositoryPublic returns the RepositoryPublic field if it's non-nil, zero value otherwise. 904 func (a *AuditEntry) GetRepositoryPublic() bool { 905 if a == nil || a.RepositoryPublic == nil { 906 return false 907 } 908 return *a.RepositoryPublic 909 } 910 911 // GetRunnerGroupID returns the RunnerGroupID field if it's non-nil, zero value otherwise. 912 func (a *AuditEntry) GetRunnerGroupID() int64 { 913 if a == nil || a.RunnerGroupID == nil { 914 return 0 915 } 916 return *a.RunnerGroupID 917 } 918 919 // GetRunnerGroupName returns the RunnerGroupName field if it's non-nil, zero value otherwise. 920 func (a *AuditEntry) GetRunnerGroupName() string { 921 if a == nil || a.RunnerGroupName == nil { 922 return "" 923 } 924 return *a.RunnerGroupName 925 } 926 927 // GetRunnerID returns the RunnerID field if it's non-nil, zero value otherwise. 928 func (a *AuditEntry) GetRunnerID() int64 { 929 if a == nil || a.RunnerID == nil { 930 return 0 931 } 932 return *a.RunnerID 933 } 934 935 // GetRunnerName returns the RunnerName field if it's non-nil, zero value otherwise. 936 func (a *AuditEntry) GetRunnerName() string { 937 if a == nil || a.RunnerName == nil { 938 return "" 939 } 940 return *a.RunnerName 941 } 942 943 // GetSourceVersion returns the SourceVersion field if it's non-nil, zero value otherwise. 944 func (a *AuditEntry) GetSourceVersion() string { 945 if a == nil || a.SourceVersion == nil { 946 return "" 947 } 948 return *a.SourceVersion 949 } 950 951 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 952 func (a *AuditEntry) GetStartedAt() Timestamp { 953 if a == nil || a.StartedAt == nil { 954 return Timestamp{} 955 } 956 return *a.StartedAt 957 } 958 959 // GetTargetLogin returns the TargetLogin field if it's non-nil, zero value otherwise. 960 func (a *AuditEntry) GetTargetLogin() string { 961 if a == nil || a.TargetLogin == nil { 962 return "" 963 } 964 return *a.TargetLogin 965 } 966 967 // GetTargetVersion returns the TargetVersion field if it's non-nil, zero value otherwise. 968 func (a *AuditEntry) GetTargetVersion() string { 969 if a == nil || a.TargetVersion == nil { 970 return "" 971 } 972 return *a.TargetVersion 973 } 974 975 // GetTeam returns the Team field if it's non-nil, zero value otherwise. 976 func (a *AuditEntry) GetTeam() string { 977 if a == nil || a.Team == nil { 978 return "" 979 } 980 return *a.Team 981 } 982 983 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 984 func (a *AuditEntry) GetTimestamp() Timestamp { 985 if a == nil || a.Timestamp == nil { 986 return Timestamp{} 987 } 988 return *a.Timestamp 989 } 990 991 // GetTransportProtocol returns the TransportProtocol field if it's non-nil, zero value otherwise. 992 func (a *AuditEntry) GetTransportProtocol() int { 993 if a == nil || a.TransportProtocol == nil { 994 return 0 995 } 996 return *a.TransportProtocol 997 } 998 999 // GetTransportProtocolName returns the TransportProtocolName field if it's non-nil, zero value otherwise. 1000 func (a *AuditEntry) GetTransportProtocolName() string { 1001 if a == nil || a.TransportProtocolName == nil { 1002 return "" 1003 } 1004 return *a.TransportProtocolName 1005 } 1006 1007 // GetTriggerID returns the TriggerID field if it's non-nil, zero value otherwise. 1008 func (a *AuditEntry) GetTriggerID() int64 { 1009 if a == nil || a.TriggerID == nil { 1010 return 0 1011 } 1012 return *a.TriggerID 1013 } 1014 1015 // GetUser returns the User field if it's non-nil, zero value otherwise. 1016 func (a *AuditEntry) GetUser() string { 1017 if a == nil || a.User == nil { 1018 return "" 1019 } 1020 return *a.User 1021 } 1022 1023 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 1024 func (a *AuditEntry) GetVisibility() string { 1025 if a == nil || a.Visibility == nil { 1026 return "" 1027 } 1028 return *a.Visibility 1029 } 1030 1031 // GetWorkflowID returns the WorkflowID field if it's non-nil, zero value otherwise. 1032 func (a *AuditEntry) GetWorkflowID() int64 { 1033 if a == nil || a.WorkflowID == nil { 1034 return 0 1035 } 1036 return *a.WorkflowID 1037 } 1038 1039 // GetWorkflowRunID returns the WorkflowRunID field if it's non-nil, zero value otherwise. 1040 func (a *AuditEntry) GetWorkflowRunID() int64 { 1041 if a == nil || a.WorkflowRunID == nil { 1042 return 0 1043 } 1044 return *a.WorkflowRunID 1045 } 1046 1047 // GetApp returns the App field. 1048 func (a *Authorization) GetApp() *AuthorizationApp { 1049 if a == nil { 1050 return nil 1051 } 1052 return a.App 1053 } 1054 1055 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1056 func (a *Authorization) GetCreatedAt() Timestamp { 1057 if a == nil || a.CreatedAt == nil { 1058 return Timestamp{} 1059 } 1060 return *a.CreatedAt 1061 } 1062 1063 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 1064 func (a *Authorization) GetFingerprint() string { 1065 if a == nil || a.Fingerprint == nil { 1066 return "" 1067 } 1068 return *a.Fingerprint 1069 } 1070 1071 // GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. 1072 func (a *Authorization) GetHashedToken() string { 1073 if a == nil || a.HashedToken == nil { 1074 return "" 1075 } 1076 return *a.HashedToken 1077 } 1078 1079 // GetID returns the ID field if it's non-nil, zero value otherwise. 1080 func (a *Authorization) GetID() int64 { 1081 if a == nil || a.ID == nil { 1082 return 0 1083 } 1084 return *a.ID 1085 } 1086 1087 // GetNote returns the Note field if it's non-nil, zero value otherwise. 1088 func (a *Authorization) GetNote() string { 1089 if a == nil || a.Note == nil { 1090 return "" 1091 } 1092 return *a.Note 1093 } 1094 1095 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 1096 func (a *Authorization) GetNoteURL() string { 1097 if a == nil || a.NoteURL == nil { 1098 return "" 1099 } 1100 return *a.NoteURL 1101 } 1102 1103 // GetToken returns the Token field if it's non-nil, zero value otherwise. 1104 func (a *Authorization) GetToken() string { 1105 if a == nil || a.Token == nil { 1106 return "" 1107 } 1108 return *a.Token 1109 } 1110 1111 // GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. 1112 func (a *Authorization) GetTokenLastEight() string { 1113 if a == nil || a.TokenLastEight == nil { 1114 return "" 1115 } 1116 return *a.TokenLastEight 1117 } 1118 1119 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 1120 func (a *Authorization) GetUpdatedAt() Timestamp { 1121 if a == nil || a.UpdatedAt == nil { 1122 return Timestamp{} 1123 } 1124 return *a.UpdatedAt 1125 } 1126 1127 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1128 func (a *Authorization) GetURL() string { 1129 if a == nil || a.URL == nil { 1130 return "" 1131 } 1132 return *a.URL 1133 } 1134 1135 // GetUser returns the User field. 1136 func (a *Authorization) GetUser() *User { 1137 if a == nil { 1138 return nil 1139 } 1140 return a.User 1141 } 1142 1143 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 1144 func (a *AuthorizationApp) GetClientID() string { 1145 if a == nil || a.ClientID == nil { 1146 return "" 1147 } 1148 return *a.ClientID 1149 } 1150 1151 // GetName returns the Name field if it's non-nil, zero value otherwise. 1152 func (a *AuthorizationApp) GetName() string { 1153 if a == nil || a.Name == nil { 1154 return "" 1155 } 1156 return *a.Name 1157 } 1158 1159 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1160 func (a *AuthorizationApp) GetURL() string { 1161 if a == nil || a.URL == nil { 1162 return "" 1163 } 1164 return *a.URL 1165 } 1166 1167 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 1168 func (a *AuthorizationRequest) GetClientID() string { 1169 if a == nil || a.ClientID == nil { 1170 return "" 1171 } 1172 return *a.ClientID 1173 } 1174 1175 // GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. 1176 func (a *AuthorizationRequest) GetClientSecret() string { 1177 if a == nil || a.ClientSecret == nil { 1178 return "" 1179 } 1180 return *a.ClientSecret 1181 } 1182 1183 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 1184 func (a *AuthorizationRequest) GetFingerprint() string { 1185 if a == nil || a.Fingerprint == nil { 1186 return "" 1187 } 1188 return *a.Fingerprint 1189 } 1190 1191 // GetNote returns the Note field if it's non-nil, zero value otherwise. 1192 func (a *AuthorizationRequest) GetNote() string { 1193 if a == nil || a.Note == nil { 1194 return "" 1195 } 1196 return *a.Note 1197 } 1198 1199 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 1200 func (a *AuthorizationRequest) GetNoteURL() string { 1201 if a == nil || a.NoteURL == nil { 1202 return "" 1203 } 1204 return *a.NoteURL 1205 } 1206 1207 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 1208 func (a *AuthorizationUpdateRequest) GetFingerprint() string { 1209 if a == nil || a.Fingerprint == nil { 1210 return "" 1211 } 1212 return *a.Fingerprint 1213 } 1214 1215 // GetNote returns the Note field if it's non-nil, zero value otherwise. 1216 func (a *AuthorizationUpdateRequest) GetNote() string { 1217 if a == nil || a.Note == nil { 1218 return "" 1219 } 1220 return *a.Note 1221 } 1222 1223 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 1224 func (a *AuthorizationUpdateRequest) GetNoteURL() string { 1225 if a == nil || a.NoteURL == nil { 1226 return "" 1227 } 1228 return *a.NoteURL 1229 } 1230 1231 // GetFrom returns the From field if it's non-nil, zero value otherwise. 1232 func (a *AuthorizedActorsOnly) GetFrom() bool { 1233 if a == nil || a.From == nil { 1234 return false 1235 } 1236 return *a.From 1237 } 1238 1239 // GetID returns the ID field if it's non-nil, zero value otherwise. 1240 func (a *Autolink) GetID() int64 { 1241 if a == nil || a.ID == nil { 1242 return 0 1243 } 1244 return *a.ID 1245 } 1246 1247 // GetKeyPrefix returns the KeyPrefix field if it's non-nil, zero value otherwise. 1248 func (a *Autolink) GetKeyPrefix() string { 1249 if a == nil || a.KeyPrefix == nil { 1250 return "" 1251 } 1252 return *a.KeyPrefix 1253 } 1254 1255 // GetURLTemplate returns the URLTemplate field if it's non-nil, zero value otherwise. 1256 func (a *Autolink) GetURLTemplate() string { 1257 if a == nil || a.URLTemplate == nil { 1258 return "" 1259 } 1260 return *a.URLTemplate 1261 } 1262 1263 // GetKeyPrefix returns the KeyPrefix field if it's non-nil, zero value otherwise. 1264 func (a *AutolinkOptions) GetKeyPrefix() string { 1265 if a == nil || a.KeyPrefix == nil { 1266 return "" 1267 } 1268 return *a.KeyPrefix 1269 } 1270 1271 // GetURLTemplate returns the URLTemplate field if it's non-nil, zero value otherwise. 1272 func (a *AutolinkOptions) GetURLTemplate() string { 1273 if a == nil || a.URLTemplate == nil { 1274 return "" 1275 } 1276 return *a.URLTemplate 1277 } 1278 1279 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 1280 func (a *AutoTriggerCheck) GetAppID() int64 { 1281 if a == nil || a.AppID == nil { 1282 return 0 1283 } 1284 return *a.AppID 1285 } 1286 1287 // GetSetting returns the Setting field if it's non-nil, zero value otherwise. 1288 func (a *AutoTriggerCheck) GetSetting() bool { 1289 if a == nil || a.Setting == nil { 1290 return false 1291 } 1292 return *a.Setting 1293 } 1294 1295 // GetContent returns the Content field if it's non-nil, zero value otherwise. 1296 func (b *Blob) GetContent() string { 1297 if b == nil || b.Content == nil { 1298 return "" 1299 } 1300 return *b.Content 1301 } 1302 1303 // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 1304 func (b *Blob) GetEncoding() string { 1305 if b == nil || b.Encoding == nil { 1306 return "" 1307 } 1308 return *b.Encoding 1309 } 1310 1311 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 1312 func (b *Blob) GetNodeID() string { 1313 if b == nil || b.NodeID == nil { 1314 return "" 1315 } 1316 return *b.NodeID 1317 } 1318 1319 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1320 func (b *Blob) GetSHA() string { 1321 if b == nil || b.SHA == nil { 1322 return "" 1323 } 1324 return *b.SHA 1325 } 1326 1327 // GetSize returns the Size field if it's non-nil, zero value otherwise. 1328 func (b *Blob) GetSize() int { 1329 if b == nil || b.Size == nil { 1330 return 0 1331 } 1332 return *b.Size 1333 } 1334 1335 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1336 func (b *Blob) GetURL() string { 1337 if b == nil || b.URL == nil { 1338 return "" 1339 } 1340 return *b.URL 1341 } 1342 1343 // GetCommit returns the Commit field. 1344 func (b *Branch) GetCommit() *RepositoryCommit { 1345 if b == nil { 1346 return nil 1347 } 1348 return b.Commit 1349 } 1350 1351 // GetName returns the Name field if it's non-nil, zero value otherwise. 1352 func (b *Branch) GetName() string { 1353 if b == nil || b.Name == nil { 1354 return "" 1355 } 1356 return *b.Name 1357 } 1358 1359 // GetProtected returns the Protected field if it's non-nil, zero value otherwise. 1360 func (b *Branch) GetProtected() bool { 1361 if b == nil || b.Protected == nil { 1362 return false 1363 } 1364 return *b.Protected 1365 } 1366 1367 // GetCommit returns the Commit field. 1368 func (b *BranchCommit) GetCommit() *Commit { 1369 if b == nil { 1370 return nil 1371 } 1372 return b.Commit 1373 } 1374 1375 // GetName returns the Name field if it's non-nil, zero value otherwise. 1376 func (b *BranchCommit) GetName() string { 1377 if b == nil || b.Name == nil { 1378 return "" 1379 } 1380 return *b.Name 1381 } 1382 1383 // GetProtected returns the Protected field if it's non-nil, zero value otherwise. 1384 func (b *BranchCommit) GetProtected() bool { 1385 if b == nil || b.Protected == nil { 1386 return false 1387 } 1388 return *b.Protected 1389 } 1390 1391 // GetProtected returns the Protected field if it's non-nil, zero value otherwise. 1392 func (b *BranchListOptions) GetProtected() bool { 1393 if b == nil || b.Protected == nil { 1394 return false 1395 } 1396 return *b.Protected 1397 } 1398 1399 // GetCustomBranchPolicies returns the CustomBranchPolicies field if it's non-nil, zero value otherwise. 1400 func (b *BranchPolicy) GetCustomBranchPolicies() bool { 1401 if b == nil || b.CustomBranchPolicies == nil { 1402 return false 1403 } 1404 return *b.CustomBranchPolicies 1405 } 1406 1407 // GetProtectedBranches returns the ProtectedBranches field if it's non-nil, zero value otherwise. 1408 func (b *BranchPolicy) GetProtectedBranches() bool { 1409 if b == nil || b.ProtectedBranches == nil { 1410 return false 1411 } 1412 return *b.ProtectedBranches 1413 } 1414 1415 // GetAdminEnforced returns the AdminEnforced field if it's non-nil, zero value otherwise. 1416 func (b *BranchProtectionRule) GetAdminEnforced() bool { 1417 if b == nil || b.AdminEnforced == nil { 1418 return false 1419 } 1420 return *b.AdminEnforced 1421 } 1422 1423 // GetAllowDeletionsEnforcementLevel returns the AllowDeletionsEnforcementLevel field if it's non-nil, zero value otherwise. 1424 func (b *BranchProtectionRule) GetAllowDeletionsEnforcementLevel() string { 1425 if b == nil || b.AllowDeletionsEnforcementLevel == nil { 1426 return "" 1427 } 1428 return *b.AllowDeletionsEnforcementLevel 1429 } 1430 1431 // GetAllowForcePushesEnforcementLevel returns the AllowForcePushesEnforcementLevel field if it's non-nil, zero value otherwise. 1432 func (b *BranchProtectionRule) GetAllowForcePushesEnforcementLevel() string { 1433 if b == nil || b.AllowForcePushesEnforcementLevel == nil { 1434 return "" 1435 } 1436 return *b.AllowForcePushesEnforcementLevel 1437 } 1438 1439 // GetAuthorizedActorsOnly returns the AuthorizedActorsOnly field if it's non-nil, zero value otherwise. 1440 func (b *BranchProtectionRule) GetAuthorizedActorsOnly() bool { 1441 if b == nil || b.AuthorizedActorsOnly == nil { 1442 return false 1443 } 1444 return *b.AuthorizedActorsOnly 1445 } 1446 1447 // GetAuthorizedDismissalActorsOnly returns the AuthorizedDismissalActorsOnly field if it's non-nil, zero value otherwise. 1448 func (b *BranchProtectionRule) GetAuthorizedDismissalActorsOnly() bool { 1449 if b == nil || b.AuthorizedDismissalActorsOnly == nil { 1450 return false 1451 } 1452 return *b.AuthorizedDismissalActorsOnly 1453 } 1454 1455 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1456 func (b *BranchProtectionRule) GetCreatedAt() Timestamp { 1457 if b == nil || b.CreatedAt == nil { 1458 return Timestamp{} 1459 } 1460 return *b.CreatedAt 1461 } 1462 1463 // GetDismissStaleReviewsOnPush returns the DismissStaleReviewsOnPush field if it's non-nil, zero value otherwise. 1464 func (b *BranchProtectionRule) GetDismissStaleReviewsOnPush() bool { 1465 if b == nil || b.DismissStaleReviewsOnPush == nil { 1466 return false 1467 } 1468 return *b.DismissStaleReviewsOnPush 1469 } 1470 1471 // GetID returns the ID field if it's non-nil, zero value otherwise. 1472 func (b *BranchProtectionRule) GetID() int64 { 1473 if b == nil || b.ID == nil { 1474 return 0 1475 } 1476 return *b.ID 1477 } 1478 1479 // GetIgnoreApprovalsFromContributors returns the IgnoreApprovalsFromContributors field if it's non-nil, zero value otherwise. 1480 func (b *BranchProtectionRule) GetIgnoreApprovalsFromContributors() bool { 1481 if b == nil || b.IgnoreApprovalsFromContributors == nil { 1482 return false 1483 } 1484 return *b.IgnoreApprovalsFromContributors 1485 } 1486 1487 // GetLinearHistoryRequirementEnforcementLevel returns the LinearHistoryRequirementEnforcementLevel field if it's non-nil, zero value otherwise. 1488 func (b *BranchProtectionRule) GetLinearHistoryRequirementEnforcementLevel() string { 1489 if b == nil || b.LinearHistoryRequirementEnforcementLevel == nil { 1490 return "" 1491 } 1492 return *b.LinearHistoryRequirementEnforcementLevel 1493 } 1494 1495 // GetMergeQueueEnforcementLevel returns the MergeQueueEnforcementLevel field if it's non-nil, zero value otherwise. 1496 func (b *BranchProtectionRule) GetMergeQueueEnforcementLevel() string { 1497 if b == nil || b.MergeQueueEnforcementLevel == nil { 1498 return "" 1499 } 1500 return *b.MergeQueueEnforcementLevel 1501 } 1502 1503 // GetName returns the Name field if it's non-nil, zero value otherwise. 1504 func (b *BranchProtectionRule) GetName() string { 1505 if b == nil || b.Name == nil { 1506 return "" 1507 } 1508 return *b.Name 1509 } 1510 1511 // GetPullRequestReviewsEnforcementLevel returns the PullRequestReviewsEnforcementLevel field if it's non-nil, zero value otherwise. 1512 func (b *BranchProtectionRule) GetPullRequestReviewsEnforcementLevel() string { 1513 if b == nil || b.PullRequestReviewsEnforcementLevel == nil { 1514 return "" 1515 } 1516 return *b.PullRequestReviewsEnforcementLevel 1517 } 1518 1519 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 1520 func (b *BranchProtectionRule) GetRepositoryID() int64 { 1521 if b == nil || b.RepositoryID == nil { 1522 return 0 1523 } 1524 return *b.RepositoryID 1525 } 1526 1527 // GetRequireCodeOwnerReview returns the RequireCodeOwnerReview field if it's non-nil, zero value otherwise. 1528 func (b *BranchProtectionRule) GetRequireCodeOwnerReview() bool { 1529 if b == nil || b.RequireCodeOwnerReview == nil { 1530 return false 1531 } 1532 return *b.RequireCodeOwnerReview 1533 } 1534 1535 // GetRequiredApprovingReviewCount returns the RequiredApprovingReviewCount field if it's non-nil, zero value otherwise. 1536 func (b *BranchProtectionRule) GetRequiredApprovingReviewCount() int { 1537 if b == nil || b.RequiredApprovingReviewCount == nil { 1538 return 0 1539 } 1540 return *b.RequiredApprovingReviewCount 1541 } 1542 1543 // GetRequiredConversationResolutionLevel returns the RequiredConversationResolutionLevel field if it's non-nil, zero value otherwise. 1544 func (b *BranchProtectionRule) GetRequiredConversationResolutionLevel() string { 1545 if b == nil || b.RequiredConversationResolutionLevel == nil { 1546 return "" 1547 } 1548 return *b.RequiredConversationResolutionLevel 1549 } 1550 1551 // GetRequiredDeploymentsEnforcementLevel returns the RequiredDeploymentsEnforcementLevel field if it's non-nil, zero value otherwise. 1552 func (b *BranchProtectionRule) GetRequiredDeploymentsEnforcementLevel() string { 1553 if b == nil || b.RequiredDeploymentsEnforcementLevel == nil { 1554 return "" 1555 } 1556 return *b.RequiredDeploymentsEnforcementLevel 1557 } 1558 1559 // GetRequiredStatusChecksEnforcementLevel returns the RequiredStatusChecksEnforcementLevel field if it's non-nil, zero value otherwise. 1560 func (b *BranchProtectionRule) GetRequiredStatusChecksEnforcementLevel() string { 1561 if b == nil || b.RequiredStatusChecksEnforcementLevel == nil { 1562 return "" 1563 } 1564 return *b.RequiredStatusChecksEnforcementLevel 1565 } 1566 1567 // GetSignatureRequirementEnforcementLevel returns the SignatureRequirementEnforcementLevel field if it's non-nil, zero value otherwise. 1568 func (b *BranchProtectionRule) GetSignatureRequirementEnforcementLevel() string { 1569 if b == nil || b.SignatureRequirementEnforcementLevel == nil { 1570 return "" 1571 } 1572 return *b.SignatureRequirementEnforcementLevel 1573 } 1574 1575 // GetStrictRequiredStatusChecksPolicy returns the StrictRequiredStatusChecksPolicy field if it's non-nil, zero value otherwise. 1576 func (b *BranchProtectionRule) GetStrictRequiredStatusChecksPolicy() bool { 1577 if b == nil || b.StrictRequiredStatusChecksPolicy == nil { 1578 return false 1579 } 1580 return *b.StrictRequiredStatusChecksPolicy 1581 } 1582 1583 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 1584 func (b *BranchProtectionRule) GetUpdatedAt() Timestamp { 1585 if b == nil || b.UpdatedAt == nil { 1586 return Timestamp{} 1587 } 1588 return *b.UpdatedAt 1589 } 1590 1591 // GetAction returns the Action field if it's non-nil, zero value otherwise. 1592 func (b *BranchProtectionRuleEvent) GetAction() string { 1593 if b == nil || b.Action == nil { 1594 return "" 1595 } 1596 return *b.Action 1597 } 1598 1599 // GetChanges returns the Changes field. 1600 func (b *BranchProtectionRuleEvent) GetChanges() *ProtectionChanges { 1601 if b == nil { 1602 return nil 1603 } 1604 return b.Changes 1605 } 1606 1607 // GetInstallation returns the Installation field. 1608 func (b *BranchProtectionRuleEvent) GetInstallation() *Installation { 1609 if b == nil { 1610 return nil 1611 } 1612 return b.Installation 1613 } 1614 1615 // GetOrg returns the Org field. 1616 func (b *BranchProtectionRuleEvent) GetOrg() *Organization { 1617 if b == nil { 1618 return nil 1619 } 1620 return b.Org 1621 } 1622 1623 // GetRepo returns the Repo field. 1624 func (b *BranchProtectionRuleEvent) GetRepo() *Repository { 1625 if b == nil { 1626 return nil 1627 } 1628 return b.Repo 1629 } 1630 1631 // GetRule returns the Rule field. 1632 func (b *BranchProtectionRuleEvent) GetRule() *BranchProtectionRule { 1633 if b == nil { 1634 return nil 1635 } 1636 return b.Rule 1637 } 1638 1639 // GetSender returns the Sender field. 1640 func (b *BranchProtectionRuleEvent) GetSender() *User { 1641 if b == nil { 1642 return nil 1643 } 1644 return b.Sender 1645 } 1646 1647 // GetApp returns the App field. 1648 func (c *CheckRun) GetApp() *App { 1649 if c == nil { 1650 return nil 1651 } 1652 return c.App 1653 } 1654 1655 // GetCheckSuite returns the CheckSuite field. 1656 func (c *CheckRun) GetCheckSuite() *CheckSuite { 1657 if c == nil { 1658 return nil 1659 } 1660 return c.CheckSuite 1661 } 1662 1663 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 1664 func (c *CheckRun) GetCompletedAt() Timestamp { 1665 if c == nil || c.CompletedAt == nil { 1666 return Timestamp{} 1667 } 1668 return *c.CompletedAt 1669 } 1670 1671 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 1672 func (c *CheckRun) GetConclusion() string { 1673 if c == nil || c.Conclusion == nil { 1674 return "" 1675 } 1676 return *c.Conclusion 1677 } 1678 1679 // GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 1680 func (c *CheckRun) GetDetailsURL() string { 1681 if c == nil || c.DetailsURL == nil { 1682 return "" 1683 } 1684 return *c.DetailsURL 1685 } 1686 1687 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 1688 func (c *CheckRun) GetExternalID() string { 1689 if c == nil || c.ExternalID == nil { 1690 return "" 1691 } 1692 return *c.ExternalID 1693 } 1694 1695 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 1696 func (c *CheckRun) GetHeadSHA() string { 1697 if c == nil || c.HeadSHA == nil { 1698 return "" 1699 } 1700 return *c.HeadSHA 1701 } 1702 1703 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 1704 func (c *CheckRun) GetHTMLURL() string { 1705 if c == nil || c.HTMLURL == nil { 1706 return "" 1707 } 1708 return *c.HTMLURL 1709 } 1710 1711 // GetID returns the ID field if it's non-nil, zero value otherwise. 1712 func (c *CheckRun) GetID() int64 { 1713 if c == nil || c.ID == nil { 1714 return 0 1715 } 1716 return *c.ID 1717 } 1718 1719 // GetName returns the Name field if it's non-nil, zero value otherwise. 1720 func (c *CheckRun) GetName() string { 1721 if c == nil || c.Name == nil { 1722 return "" 1723 } 1724 return *c.Name 1725 } 1726 1727 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 1728 func (c *CheckRun) GetNodeID() string { 1729 if c == nil || c.NodeID == nil { 1730 return "" 1731 } 1732 return *c.NodeID 1733 } 1734 1735 // GetOutput returns the Output field. 1736 func (c *CheckRun) GetOutput() *CheckRunOutput { 1737 if c == nil { 1738 return nil 1739 } 1740 return c.Output 1741 } 1742 1743 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 1744 func (c *CheckRun) GetStartedAt() Timestamp { 1745 if c == nil || c.StartedAt == nil { 1746 return Timestamp{} 1747 } 1748 return *c.StartedAt 1749 } 1750 1751 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 1752 func (c *CheckRun) GetStatus() string { 1753 if c == nil || c.Status == nil { 1754 return "" 1755 } 1756 return *c.Status 1757 } 1758 1759 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1760 func (c *CheckRun) GetURL() string { 1761 if c == nil || c.URL == nil { 1762 return "" 1763 } 1764 return *c.URL 1765 } 1766 1767 // GetAnnotationLevel returns the AnnotationLevel field if it's non-nil, zero value otherwise. 1768 func (c *CheckRunAnnotation) GetAnnotationLevel() string { 1769 if c == nil || c.AnnotationLevel == nil { 1770 return "" 1771 } 1772 return *c.AnnotationLevel 1773 } 1774 1775 // GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. 1776 func (c *CheckRunAnnotation) GetEndColumn() int { 1777 if c == nil || c.EndColumn == nil { 1778 return 0 1779 } 1780 return *c.EndColumn 1781 } 1782 1783 // GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. 1784 func (c *CheckRunAnnotation) GetEndLine() int { 1785 if c == nil || c.EndLine == nil { 1786 return 0 1787 } 1788 return *c.EndLine 1789 } 1790 1791 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 1792 func (c *CheckRunAnnotation) GetMessage() string { 1793 if c == nil || c.Message == nil { 1794 return "" 1795 } 1796 return *c.Message 1797 } 1798 1799 // GetPath returns the Path field if it's non-nil, zero value otherwise. 1800 func (c *CheckRunAnnotation) GetPath() string { 1801 if c == nil || c.Path == nil { 1802 return "" 1803 } 1804 return *c.Path 1805 } 1806 1807 // GetRawDetails returns the RawDetails field if it's non-nil, zero value otherwise. 1808 func (c *CheckRunAnnotation) GetRawDetails() string { 1809 if c == nil || c.RawDetails == nil { 1810 return "" 1811 } 1812 return *c.RawDetails 1813 } 1814 1815 // GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. 1816 func (c *CheckRunAnnotation) GetStartColumn() int { 1817 if c == nil || c.StartColumn == nil { 1818 return 0 1819 } 1820 return *c.StartColumn 1821 } 1822 1823 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 1824 func (c *CheckRunAnnotation) GetStartLine() int { 1825 if c == nil || c.StartLine == nil { 1826 return 0 1827 } 1828 return *c.StartLine 1829 } 1830 1831 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 1832 func (c *CheckRunAnnotation) GetTitle() string { 1833 if c == nil || c.Title == nil { 1834 return "" 1835 } 1836 return *c.Title 1837 } 1838 1839 // GetAction returns the Action field if it's non-nil, zero value otherwise. 1840 func (c *CheckRunEvent) GetAction() string { 1841 if c == nil || c.Action == nil { 1842 return "" 1843 } 1844 return *c.Action 1845 } 1846 1847 // GetCheckRun returns the CheckRun field. 1848 func (c *CheckRunEvent) GetCheckRun() *CheckRun { 1849 if c == nil { 1850 return nil 1851 } 1852 return c.CheckRun 1853 } 1854 1855 // GetInstallation returns the Installation field. 1856 func (c *CheckRunEvent) GetInstallation() *Installation { 1857 if c == nil { 1858 return nil 1859 } 1860 return c.Installation 1861 } 1862 1863 // GetOrg returns the Org field. 1864 func (c *CheckRunEvent) GetOrg() *Organization { 1865 if c == nil { 1866 return nil 1867 } 1868 return c.Org 1869 } 1870 1871 // GetRepo returns the Repo field. 1872 func (c *CheckRunEvent) GetRepo() *Repository { 1873 if c == nil { 1874 return nil 1875 } 1876 return c.Repo 1877 } 1878 1879 // GetRequestedAction returns the RequestedAction field. 1880 func (c *CheckRunEvent) GetRequestedAction() *RequestedAction { 1881 if c == nil { 1882 return nil 1883 } 1884 return c.RequestedAction 1885 } 1886 1887 // GetSender returns the Sender field. 1888 func (c *CheckRunEvent) GetSender() *User { 1889 if c == nil { 1890 return nil 1891 } 1892 return c.Sender 1893 } 1894 1895 // GetAlt returns the Alt field if it's non-nil, zero value otherwise. 1896 func (c *CheckRunImage) GetAlt() string { 1897 if c == nil || c.Alt == nil { 1898 return "" 1899 } 1900 return *c.Alt 1901 } 1902 1903 // GetCaption returns the Caption field if it's non-nil, zero value otherwise. 1904 func (c *CheckRunImage) GetCaption() string { 1905 if c == nil || c.Caption == nil { 1906 return "" 1907 } 1908 return *c.Caption 1909 } 1910 1911 // GetImageURL returns the ImageURL field if it's non-nil, zero value otherwise. 1912 func (c *CheckRunImage) GetImageURL() string { 1913 if c == nil || c.ImageURL == nil { 1914 return "" 1915 } 1916 return *c.ImageURL 1917 } 1918 1919 // GetAnnotationsCount returns the AnnotationsCount field if it's non-nil, zero value otherwise. 1920 func (c *CheckRunOutput) GetAnnotationsCount() int { 1921 if c == nil || c.AnnotationsCount == nil { 1922 return 0 1923 } 1924 return *c.AnnotationsCount 1925 } 1926 1927 // GetAnnotationsURL returns the AnnotationsURL field if it's non-nil, zero value otherwise. 1928 func (c *CheckRunOutput) GetAnnotationsURL() string { 1929 if c == nil || c.AnnotationsURL == nil { 1930 return "" 1931 } 1932 return *c.AnnotationsURL 1933 } 1934 1935 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 1936 func (c *CheckRunOutput) GetSummary() string { 1937 if c == nil || c.Summary == nil { 1938 return "" 1939 } 1940 return *c.Summary 1941 } 1942 1943 // GetText returns the Text field if it's non-nil, zero value otherwise. 1944 func (c *CheckRunOutput) GetText() string { 1945 if c == nil || c.Text == nil { 1946 return "" 1947 } 1948 return *c.Text 1949 } 1950 1951 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 1952 func (c *CheckRunOutput) GetTitle() string { 1953 if c == nil || c.Title == nil { 1954 return "" 1955 } 1956 return *c.Title 1957 } 1958 1959 // GetAfterSHA returns the AfterSHA field if it's non-nil, zero value otherwise. 1960 func (c *CheckSuite) GetAfterSHA() string { 1961 if c == nil || c.AfterSHA == nil { 1962 return "" 1963 } 1964 return *c.AfterSHA 1965 } 1966 1967 // GetApp returns the App field. 1968 func (c *CheckSuite) GetApp() *App { 1969 if c == nil { 1970 return nil 1971 } 1972 return c.App 1973 } 1974 1975 // GetBeforeSHA returns the BeforeSHA field if it's non-nil, zero value otherwise. 1976 func (c *CheckSuite) GetBeforeSHA() string { 1977 if c == nil || c.BeforeSHA == nil { 1978 return "" 1979 } 1980 return *c.BeforeSHA 1981 } 1982 1983 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 1984 func (c *CheckSuite) GetConclusion() string { 1985 if c == nil || c.Conclusion == nil { 1986 return "" 1987 } 1988 return *c.Conclusion 1989 } 1990 1991 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1992 func (c *CheckSuite) GetCreatedAt() Timestamp { 1993 if c == nil || c.CreatedAt == nil { 1994 return Timestamp{} 1995 } 1996 return *c.CreatedAt 1997 } 1998 1999 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 2000 func (c *CheckSuite) GetHeadBranch() string { 2001 if c == nil || c.HeadBranch == nil { 2002 return "" 2003 } 2004 return *c.HeadBranch 2005 } 2006 2007 // GetHeadCommit returns the HeadCommit field. 2008 func (c *CheckSuite) GetHeadCommit() *Commit { 2009 if c == nil { 2010 return nil 2011 } 2012 return c.HeadCommit 2013 } 2014 2015 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 2016 func (c *CheckSuite) GetHeadSHA() string { 2017 if c == nil || c.HeadSHA == nil { 2018 return "" 2019 } 2020 return *c.HeadSHA 2021 } 2022 2023 // GetID returns the ID field if it's non-nil, zero value otherwise. 2024 func (c *CheckSuite) 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 *CheckSuite) GetNodeID() string { 2033 if c == nil || c.NodeID == nil { 2034 return "" 2035 } 2036 return *c.NodeID 2037 } 2038 2039 // GetRepository returns the Repository field. 2040 func (c *CheckSuite) GetRepository() *Repository { 2041 if c == nil { 2042 return nil 2043 } 2044 return c.Repository 2045 } 2046 2047 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 2048 func (c *CheckSuite) GetStatus() string { 2049 if c == nil || c.Status == nil { 2050 return "" 2051 } 2052 return *c.Status 2053 } 2054 2055 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2056 func (c *CheckSuite) GetUpdatedAt() Timestamp { 2057 if c == nil || c.UpdatedAt == nil { 2058 return Timestamp{} 2059 } 2060 return *c.UpdatedAt 2061 } 2062 2063 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2064 func (c *CheckSuite) GetURL() string { 2065 if c == nil || c.URL == nil { 2066 return "" 2067 } 2068 return *c.URL 2069 } 2070 2071 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2072 func (c *CheckSuiteEvent) GetAction() string { 2073 if c == nil || c.Action == nil { 2074 return "" 2075 } 2076 return *c.Action 2077 } 2078 2079 // GetCheckSuite returns the CheckSuite field. 2080 func (c *CheckSuiteEvent) GetCheckSuite() *CheckSuite { 2081 if c == nil { 2082 return nil 2083 } 2084 return c.CheckSuite 2085 } 2086 2087 // GetInstallation returns the Installation field. 2088 func (c *CheckSuiteEvent) GetInstallation() *Installation { 2089 if c == nil { 2090 return nil 2091 } 2092 return c.Installation 2093 } 2094 2095 // GetOrg returns the Org field. 2096 func (c *CheckSuiteEvent) GetOrg() *Organization { 2097 if c == nil { 2098 return nil 2099 } 2100 return c.Org 2101 } 2102 2103 // GetRepo returns the Repo field. 2104 func (c *CheckSuiteEvent) GetRepo() *Repository { 2105 if c == nil { 2106 return nil 2107 } 2108 return c.Repo 2109 } 2110 2111 // GetSender returns the Sender field. 2112 func (c *CheckSuiteEvent) GetSender() *User { 2113 if c == nil { 2114 return nil 2115 } 2116 return c.Sender 2117 } 2118 2119 // GetPreferences returns the Preferences field. 2120 func (c *CheckSuitePreferenceResults) GetPreferences() *PreferenceList { 2121 if c == nil { 2122 return nil 2123 } 2124 return c.Preferences 2125 } 2126 2127 // GetRepository returns the Repository field. 2128 func (c *CheckSuitePreferenceResults) GetRepository() *Repository { 2129 if c == nil { 2130 return nil 2131 } 2132 return c.Repository 2133 } 2134 2135 // GetBody returns the Body field if it's non-nil, zero value otherwise. 2136 func (c *CodeOfConduct) GetBody() string { 2137 if c == nil || c.Body == nil { 2138 return "" 2139 } 2140 return *c.Body 2141 } 2142 2143 // GetKey returns the Key field if it's non-nil, zero value otherwise. 2144 func (c *CodeOfConduct) GetKey() string { 2145 if c == nil || c.Key == nil { 2146 return "" 2147 } 2148 return *c.Key 2149 } 2150 2151 // GetName returns the Name field if it's non-nil, zero value otherwise. 2152 func (c *CodeOfConduct) GetName() string { 2153 if c == nil || c.Name == nil { 2154 return "" 2155 } 2156 return *c.Name 2157 } 2158 2159 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2160 func (c *CodeOfConduct) GetURL() string { 2161 if c == nil || c.URL == nil { 2162 return "" 2163 } 2164 return *c.URL 2165 } 2166 2167 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2168 func (c *CodeResult) GetHTMLURL() string { 2169 if c == nil || c.HTMLURL == nil { 2170 return "" 2171 } 2172 return *c.HTMLURL 2173 } 2174 2175 // GetName returns the Name field if it's non-nil, zero value otherwise. 2176 func (c *CodeResult) GetName() string { 2177 if c == nil || c.Name == nil { 2178 return "" 2179 } 2180 return *c.Name 2181 } 2182 2183 // GetPath returns the Path field if it's non-nil, zero value otherwise. 2184 func (c *CodeResult) GetPath() string { 2185 if c == nil || c.Path == nil { 2186 return "" 2187 } 2188 return *c.Path 2189 } 2190 2191 // GetRepository returns the Repository field. 2192 func (c *CodeResult) GetRepository() *Repository { 2193 if c == nil { 2194 return nil 2195 } 2196 return c.Repository 2197 } 2198 2199 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2200 func (c *CodeResult) GetSHA() string { 2201 if c == nil || c.SHA == nil { 2202 return "" 2203 } 2204 return *c.SHA 2205 } 2206 2207 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 2208 func (c *CodeSearchResult) GetIncompleteResults() bool { 2209 if c == nil || c.IncompleteResults == nil { 2210 return false 2211 } 2212 return *c.IncompleteResults 2213 } 2214 2215 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 2216 func (c *CodeSearchResult) GetTotal() int { 2217 if c == nil || c.Total == nil { 2218 return 0 2219 } 2220 return *c.Total 2221 } 2222 2223 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2224 func (c *CollaboratorInvitation) GetCreatedAt() Timestamp { 2225 if c == nil || c.CreatedAt == nil { 2226 return Timestamp{} 2227 } 2228 return *c.CreatedAt 2229 } 2230 2231 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2232 func (c *CollaboratorInvitation) GetHTMLURL() string { 2233 if c == nil || c.HTMLURL == nil { 2234 return "" 2235 } 2236 return *c.HTMLURL 2237 } 2238 2239 // GetID returns the ID field if it's non-nil, zero value otherwise. 2240 func (c *CollaboratorInvitation) GetID() int64 { 2241 if c == nil || c.ID == nil { 2242 return 0 2243 } 2244 return *c.ID 2245 } 2246 2247 // GetInvitee returns the Invitee field. 2248 func (c *CollaboratorInvitation) GetInvitee() *User { 2249 if c == nil { 2250 return nil 2251 } 2252 return c.Invitee 2253 } 2254 2255 // GetInviter returns the Inviter field. 2256 func (c *CollaboratorInvitation) GetInviter() *User { 2257 if c == nil { 2258 return nil 2259 } 2260 return c.Inviter 2261 } 2262 2263 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 2264 func (c *CollaboratorInvitation) GetPermissions() string { 2265 if c == nil || c.Permissions == nil { 2266 return "" 2267 } 2268 return *c.Permissions 2269 } 2270 2271 // GetRepo returns the Repo field. 2272 func (c *CollaboratorInvitation) GetRepo() *Repository { 2273 if c == nil { 2274 return nil 2275 } 2276 return c.Repo 2277 } 2278 2279 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2280 func (c *CollaboratorInvitation) GetURL() string { 2281 if c == nil || c.URL == nil { 2282 return "" 2283 } 2284 return *c.URL 2285 } 2286 2287 // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 2288 func (c *CombinedStatus) GetCommitURL() string { 2289 if c == nil || c.CommitURL == nil { 2290 return "" 2291 } 2292 return *c.CommitURL 2293 } 2294 2295 // GetName returns the Name field if it's non-nil, zero value otherwise. 2296 func (c *CombinedStatus) GetName() string { 2297 if c == nil || c.Name == nil { 2298 return "" 2299 } 2300 return *c.Name 2301 } 2302 2303 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 2304 func (c *CombinedStatus) GetRepositoryURL() string { 2305 if c == nil || c.RepositoryURL == nil { 2306 return "" 2307 } 2308 return *c.RepositoryURL 2309 } 2310 2311 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2312 func (c *CombinedStatus) GetSHA() string { 2313 if c == nil || c.SHA == nil { 2314 return "" 2315 } 2316 return *c.SHA 2317 } 2318 2319 // GetState returns the State field if it's non-nil, zero value otherwise. 2320 func (c *CombinedStatus) GetState() string { 2321 if c == nil || c.State == nil { 2322 return "" 2323 } 2324 return *c.State 2325 } 2326 2327 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 2328 func (c *CombinedStatus) GetTotalCount() int { 2329 if c == nil || c.TotalCount == nil { 2330 return 0 2331 } 2332 return *c.TotalCount 2333 } 2334 2335 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2336 func (c *Comment) GetCreatedAt() time.Time { 2337 if c == nil || c.CreatedAt == nil { 2338 return time.Time{} 2339 } 2340 return *c.CreatedAt 2341 } 2342 2343 // GetTotalCommitComments returns the TotalCommitComments field if it's non-nil, zero value otherwise. 2344 func (c *CommentStats) GetTotalCommitComments() int { 2345 if c == nil || c.TotalCommitComments == nil { 2346 return 0 2347 } 2348 return *c.TotalCommitComments 2349 } 2350 2351 // GetTotalGistComments returns the TotalGistComments field if it's non-nil, zero value otherwise. 2352 func (c *CommentStats) GetTotalGistComments() int { 2353 if c == nil || c.TotalGistComments == nil { 2354 return 0 2355 } 2356 return *c.TotalGistComments 2357 } 2358 2359 // GetTotalIssueComments returns the TotalIssueComments field if it's non-nil, zero value otherwise. 2360 func (c *CommentStats) GetTotalIssueComments() int { 2361 if c == nil || c.TotalIssueComments == nil { 2362 return 0 2363 } 2364 return *c.TotalIssueComments 2365 } 2366 2367 // GetTotalPullRequestComments returns the TotalPullRequestComments field if it's non-nil, zero value otherwise. 2368 func (c *CommentStats) GetTotalPullRequestComments() int { 2369 if c == nil || c.TotalPullRequestComments == nil { 2370 return 0 2371 } 2372 return *c.TotalPullRequestComments 2373 } 2374 2375 // GetAuthor returns the Author field. 2376 func (c *Commit) GetAuthor() *CommitAuthor { 2377 if c == nil { 2378 return nil 2379 } 2380 return c.Author 2381 } 2382 2383 // GetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise. 2384 func (c *Commit) GetCommentCount() int { 2385 if c == nil || c.CommentCount == nil { 2386 return 0 2387 } 2388 return *c.CommentCount 2389 } 2390 2391 // GetCommitter returns the Committer field. 2392 func (c *Commit) GetCommitter() *CommitAuthor { 2393 if c == nil { 2394 return nil 2395 } 2396 return c.Committer 2397 } 2398 2399 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2400 func (c *Commit) GetHTMLURL() string { 2401 if c == nil || c.HTMLURL == nil { 2402 return "" 2403 } 2404 return *c.HTMLURL 2405 } 2406 2407 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 2408 func (c *Commit) GetMessage() string { 2409 if c == nil || c.Message == nil { 2410 return "" 2411 } 2412 return *c.Message 2413 } 2414 2415 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2416 func (c *Commit) GetNodeID() string { 2417 if c == nil || c.NodeID == nil { 2418 return "" 2419 } 2420 return *c.NodeID 2421 } 2422 2423 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2424 func (c *Commit) GetSHA() string { 2425 if c == nil || c.SHA == nil { 2426 return "" 2427 } 2428 return *c.SHA 2429 } 2430 2431 // GetStats returns the Stats field. 2432 func (c *Commit) GetStats() *CommitStats { 2433 if c == nil { 2434 return nil 2435 } 2436 return c.Stats 2437 } 2438 2439 // GetTree returns the Tree field. 2440 func (c *Commit) GetTree() *Tree { 2441 if c == nil { 2442 return nil 2443 } 2444 return c.Tree 2445 } 2446 2447 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2448 func (c *Commit) GetURL() string { 2449 if c == nil || c.URL == nil { 2450 return "" 2451 } 2452 return *c.URL 2453 } 2454 2455 // GetVerification returns the Verification field. 2456 func (c *Commit) GetVerification() *SignatureVerification { 2457 if c == nil { 2458 return nil 2459 } 2460 return c.Verification 2461 } 2462 2463 // GetDate returns the Date field if it's non-nil, zero value otherwise. 2464 func (c *CommitAuthor) GetDate() time.Time { 2465 if c == nil || c.Date == nil { 2466 return time.Time{} 2467 } 2468 return *c.Date 2469 } 2470 2471 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 2472 func (c *CommitAuthor) GetEmail() string { 2473 if c == nil || c.Email == nil { 2474 return "" 2475 } 2476 return *c.Email 2477 } 2478 2479 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 2480 func (c *CommitAuthor) GetLogin() string { 2481 if c == nil || c.Login == nil { 2482 return "" 2483 } 2484 return *c.Login 2485 } 2486 2487 // GetName returns the Name field if it's non-nil, zero value otherwise. 2488 func (c *CommitAuthor) GetName() string { 2489 if c == nil || c.Name == nil { 2490 return "" 2491 } 2492 return *c.Name 2493 } 2494 2495 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2496 func (c *CommitCommentEvent) GetAction() string { 2497 if c == nil || c.Action == nil { 2498 return "" 2499 } 2500 return *c.Action 2501 } 2502 2503 // GetComment returns the Comment field. 2504 func (c *CommitCommentEvent) GetComment() *RepositoryComment { 2505 if c == nil { 2506 return nil 2507 } 2508 return c.Comment 2509 } 2510 2511 // GetInstallation returns the Installation field. 2512 func (c *CommitCommentEvent) GetInstallation() *Installation { 2513 if c == nil { 2514 return nil 2515 } 2516 return c.Installation 2517 } 2518 2519 // GetRepo returns the Repo field. 2520 func (c *CommitCommentEvent) GetRepo() *Repository { 2521 if c == nil { 2522 return nil 2523 } 2524 return c.Repo 2525 } 2526 2527 // GetSender returns the Sender field. 2528 func (c *CommitCommentEvent) GetSender() *User { 2529 if c == nil { 2530 return nil 2531 } 2532 return c.Sender 2533 } 2534 2535 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 2536 func (c *CommitFile) GetAdditions() int { 2537 if c == nil || c.Additions == nil { 2538 return 0 2539 } 2540 return *c.Additions 2541 } 2542 2543 // GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise. 2544 func (c *CommitFile) GetBlobURL() string { 2545 if c == nil || c.BlobURL == nil { 2546 return "" 2547 } 2548 return *c.BlobURL 2549 } 2550 2551 // GetChanges returns the Changes field if it's non-nil, zero value otherwise. 2552 func (c *CommitFile) GetChanges() int { 2553 if c == nil || c.Changes == nil { 2554 return 0 2555 } 2556 return *c.Changes 2557 } 2558 2559 // GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 2560 func (c *CommitFile) GetContentsURL() string { 2561 if c == nil || c.ContentsURL == nil { 2562 return "" 2563 } 2564 return *c.ContentsURL 2565 } 2566 2567 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 2568 func (c *CommitFile) GetDeletions() int { 2569 if c == nil || c.Deletions == nil { 2570 return 0 2571 } 2572 return *c.Deletions 2573 } 2574 2575 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 2576 func (c *CommitFile) GetFilename() string { 2577 if c == nil || c.Filename == nil { 2578 return "" 2579 } 2580 return *c.Filename 2581 } 2582 2583 // GetPatch returns the Patch field if it's non-nil, zero value otherwise. 2584 func (c *CommitFile) GetPatch() string { 2585 if c == nil || c.Patch == nil { 2586 return "" 2587 } 2588 return *c.Patch 2589 } 2590 2591 // GetPreviousFilename returns the PreviousFilename field if it's non-nil, zero value otherwise. 2592 func (c *CommitFile) GetPreviousFilename() string { 2593 if c == nil || c.PreviousFilename == nil { 2594 return "" 2595 } 2596 return *c.PreviousFilename 2597 } 2598 2599 // GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 2600 func (c *CommitFile) GetRawURL() string { 2601 if c == nil || c.RawURL == nil { 2602 return "" 2603 } 2604 return *c.RawURL 2605 } 2606 2607 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2608 func (c *CommitFile) GetSHA() string { 2609 if c == nil || c.SHA == nil { 2610 return "" 2611 } 2612 return *c.SHA 2613 } 2614 2615 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 2616 func (c *CommitFile) GetStatus() string { 2617 if c == nil || c.Status == nil { 2618 return "" 2619 } 2620 return *c.Status 2621 } 2622 2623 // GetAuthor returns the Author field. 2624 func (c *CommitResult) GetAuthor() *User { 2625 if c == nil { 2626 return nil 2627 } 2628 return c.Author 2629 } 2630 2631 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 2632 func (c *CommitResult) GetCommentsURL() string { 2633 if c == nil || c.CommentsURL == nil { 2634 return "" 2635 } 2636 return *c.CommentsURL 2637 } 2638 2639 // GetCommit returns the Commit field. 2640 func (c *CommitResult) GetCommit() *Commit { 2641 if c == nil { 2642 return nil 2643 } 2644 return c.Commit 2645 } 2646 2647 // GetCommitter returns the Committer field. 2648 func (c *CommitResult) GetCommitter() *User { 2649 if c == nil { 2650 return nil 2651 } 2652 return c.Committer 2653 } 2654 2655 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2656 func (c *CommitResult) GetHTMLURL() string { 2657 if c == nil || c.HTMLURL == nil { 2658 return "" 2659 } 2660 return *c.HTMLURL 2661 } 2662 2663 // GetRepository returns the Repository field. 2664 func (c *CommitResult) GetRepository() *Repository { 2665 if c == nil { 2666 return nil 2667 } 2668 return c.Repository 2669 } 2670 2671 // GetScore returns the Score field. 2672 func (c *CommitResult) GetScore() *float64 { 2673 if c == nil { 2674 return nil 2675 } 2676 return c.Score 2677 } 2678 2679 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2680 func (c *CommitResult) GetSHA() string { 2681 if c == nil || c.SHA == nil { 2682 return "" 2683 } 2684 return *c.SHA 2685 } 2686 2687 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2688 func (c *CommitResult) GetURL() string { 2689 if c == nil || c.URL == nil { 2690 return "" 2691 } 2692 return *c.URL 2693 } 2694 2695 // GetAheadBy returns the AheadBy field if it's non-nil, zero value otherwise. 2696 func (c *CommitsComparison) GetAheadBy() int { 2697 if c == nil || c.AheadBy == nil { 2698 return 0 2699 } 2700 return *c.AheadBy 2701 } 2702 2703 // GetBaseCommit returns the BaseCommit field. 2704 func (c *CommitsComparison) GetBaseCommit() *RepositoryCommit { 2705 if c == nil { 2706 return nil 2707 } 2708 return c.BaseCommit 2709 } 2710 2711 // GetBehindBy returns the BehindBy field if it's non-nil, zero value otherwise. 2712 func (c *CommitsComparison) GetBehindBy() int { 2713 if c == nil || c.BehindBy == nil { 2714 return 0 2715 } 2716 return *c.BehindBy 2717 } 2718 2719 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 2720 func (c *CommitsComparison) GetDiffURL() string { 2721 if c == nil || c.DiffURL == nil { 2722 return "" 2723 } 2724 return *c.DiffURL 2725 } 2726 2727 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2728 func (c *CommitsComparison) GetHTMLURL() string { 2729 if c == nil || c.HTMLURL == nil { 2730 return "" 2731 } 2732 return *c.HTMLURL 2733 } 2734 2735 // GetMergeBaseCommit returns the MergeBaseCommit field. 2736 func (c *CommitsComparison) GetMergeBaseCommit() *RepositoryCommit { 2737 if c == nil { 2738 return nil 2739 } 2740 return c.MergeBaseCommit 2741 } 2742 2743 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 2744 func (c *CommitsComparison) GetPatchURL() string { 2745 if c == nil || c.PatchURL == nil { 2746 return "" 2747 } 2748 return *c.PatchURL 2749 } 2750 2751 // GetPermalinkURL returns the PermalinkURL field if it's non-nil, zero value otherwise. 2752 func (c *CommitsComparison) GetPermalinkURL() string { 2753 if c == nil || c.PermalinkURL == nil { 2754 return "" 2755 } 2756 return *c.PermalinkURL 2757 } 2758 2759 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 2760 func (c *CommitsComparison) GetStatus() string { 2761 if c == nil || c.Status == nil { 2762 return "" 2763 } 2764 return *c.Status 2765 } 2766 2767 // GetTotalCommits returns the TotalCommits field if it's non-nil, zero value otherwise. 2768 func (c *CommitsComparison) GetTotalCommits() int { 2769 if c == nil || c.TotalCommits == nil { 2770 return 0 2771 } 2772 return *c.TotalCommits 2773 } 2774 2775 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2776 func (c *CommitsComparison) GetURL() string { 2777 if c == nil || c.URL == nil { 2778 return "" 2779 } 2780 return *c.URL 2781 } 2782 2783 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 2784 func (c *CommitsSearchResult) GetIncompleteResults() bool { 2785 if c == nil || c.IncompleteResults == nil { 2786 return false 2787 } 2788 return *c.IncompleteResults 2789 } 2790 2791 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 2792 func (c *CommitsSearchResult) GetTotal() int { 2793 if c == nil || c.Total == nil { 2794 return 0 2795 } 2796 return *c.Total 2797 } 2798 2799 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 2800 func (c *CommitStats) GetAdditions() int { 2801 if c == nil || c.Additions == nil { 2802 return 0 2803 } 2804 return *c.Additions 2805 } 2806 2807 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 2808 func (c *CommitStats) GetDeletions() int { 2809 if c == nil || c.Deletions == nil { 2810 return 0 2811 } 2812 return *c.Deletions 2813 } 2814 2815 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 2816 func (c *CommitStats) GetTotal() int { 2817 if c == nil || c.Total == nil { 2818 return 0 2819 } 2820 return *c.Total 2821 } 2822 2823 // GetCodeOfConduct returns the CodeOfConduct field. 2824 func (c *CommunityHealthFiles) GetCodeOfConduct() *Metric { 2825 if c == nil { 2826 return nil 2827 } 2828 return c.CodeOfConduct 2829 } 2830 2831 // GetCodeOfConductFile returns the CodeOfConductFile field. 2832 func (c *CommunityHealthFiles) GetCodeOfConductFile() *Metric { 2833 if c == nil { 2834 return nil 2835 } 2836 return c.CodeOfConductFile 2837 } 2838 2839 // GetContributing returns the Contributing field. 2840 func (c *CommunityHealthFiles) GetContributing() *Metric { 2841 if c == nil { 2842 return nil 2843 } 2844 return c.Contributing 2845 } 2846 2847 // GetIssueTemplate returns the IssueTemplate field. 2848 func (c *CommunityHealthFiles) GetIssueTemplate() *Metric { 2849 if c == nil { 2850 return nil 2851 } 2852 return c.IssueTemplate 2853 } 2854 2855 // GetLicense returns the License field. 2856 func (c *CommunityHealthFiles) GetLicense() *Metric { 2857 if c == nil { 2858 return nil 2859 } 2860 return c.License 2861 } 2862 2863 // GetPullRequestTemplate returns the PullRequestTemplate field. 2864 func (c *CommunityHealthFiles) GetPullRequestTemplate() *Metric { 2865 if c == nil { 2866 return nil 2867 } 2868 return c.PullRequestTemplate 2869 } 2870 2871 // GetReadme returns the Readme field. 2872 func (c *CommunityHealthFiles) GetReadme() *Metric { 2873 if c == nil { 2874 return nil 2875 } 2876 return c.Readme 2877 } 2878 2879 // GetContentReportsEnabled returns the ContentReportsEnabled field if it's non-nil, zero value otherwise. 2880 func (c *CommunityHealthMetrics) GetContentReportsEnabled() bool { 2881 if c == nil || c.ContentReportsEnabled == nil { 2882 return false 2883 } 2884 return *c.ContentReportsEnabled 2885 } 2886 2887 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 2888 func (c *CommunityHealthMetrics) GetDescription() string { 2889 if c == nil || c.Description == nil { 2890 return "" 2891 } 2892 return *c.Description 2893 } 2894 2895 // GetDocumentation returns the Documentation field if it's non-nil, zero value otherwise. 2896 func (c *CommunityHealthMetrics) GetDocumentation() string { 2897 if c == nil || c.Documentation == nil { 2898 return "" 2899 } 2900 return *c.Documentation 2901 } 2902 2903 // GetFiles returns the Files field. 2904 func (c *CommunityHealthMetrics) GetFiles() *CommunityHealthFiles { 2905 if c == nil { 2906 return nil 2907 } 2908 return c.Files 2909 } 2910 2911 // GetHealthPercentage returns the HealthPercentage field if it's non-nil, zero value otherwise. 2912 func (c *CommunityHealthMetrics) GetHealthPercentage() int { 2913 if c == nil || c.HealthPercentage == nil { 2914 return 0 2915 } 2916 return *c.HealthPercentage 2917 } 2918 2919 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2920 func (c *CommunityHealthMetrics) GetUpdatedAt() time.Time { 2921 if c == nil || c.UpdatedAt == nil { 2922 return time.Time{} 2923 } 2924 return *c.UpdatedAt 2925 } 2926 2927 // GetID returns the ID field if it's non-nil, zero value otherwise. 2928 func (c *ContentReference) GetID() int64 { 2929 if c == nil || c.ID == nil { 2930 return 0 2931 } 2932 return *c.ID 2933 } 2934 2935 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2936 func (c *ContentReference) GetNodeID() string { 2937 if c == nil || c.NodeID == nil { 2938 return "" 2939 } 2940 return *c.NodeID 2941 } 2942 2943 // GetReference returns the Reference field if it's non-nil, zero value otherwise. 2944 func (c *ContentReference) GetReference() string { 2945 if c == nil || c.Reference == nil { 2946 return "" 2947 } 2948 return *c.Reference 2949 } 2950 2951 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2952 func (c *ContentReferenceEvent) GetAction() string { 2953 if c == nil || c.Action == nil { 2954 return "" 2955 } 2956 return *c.Action 2957 } 2958 2959 // GetContentReference returns the ContentReference field. 2960 func (c *ContentReferenceEvent) GetContentReference() *ContentReference { 2961 if c == nil { 2962 return nil 2963 } 2964 return c.ContentReference 2965 } 2966 2967 // GetInstallation returns the Installation field. 2968 func (c *ContentReferenceEvent) GetInstallation() *Installation { 2969 if c == nil { 2970 return nil 2971 } 2972 return c.Installation 2973 } 2974 2975 // GetRepo returns the Repo field. 2976 func (c *ContentReferenceEvent) GetRepo() *Repository { 2977 if c == nil { 2978 return nil 2979 } 2980 return c.Repo 2981 } 2982 2983 // GetSender returns the Sender field. 2984 func (c *ContentReferenceEvent) GetSender() *User { 2985 if c == nil { 2986 return nil 2987 } 2988 return c.Sender 2989 } 2990 2991 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 2992 func (c *Contributor) GetAvatarURL() string { 2993 if c == nil || c.AvatarURL == nil { 2994 return "" 2995 } 2996 return *c.AvatarURL 2997 } 2998 2999 // GetContributions returns the Contributions field if it's non-nil, zero value otherwise. 3000 func (c *Contributor) GetContributions() int { 3001 if c == nil || c.Contributions == nil { 3002 return 0 3003 } 3004 return *c.Contributions 3005 } 3006 3007 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 3008 func (c *Contributor) GetEmail() string { 3009 if c == nil || c.Email == nil { 3010 return "" 3011 } 3012 return *c.Email 3013 } 3014 3015 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 3016 func (c *Contributor) GetEventsURL() string { 3017 if c == nil || c.EventsURL == nil { 3018 return "" 3019 } 3020 return *c.EventsURL 3021 } 3022 3023 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 3024 func (c *Contributor) GetFollowersURL() string { 3025 if c == nil || c.FollowersURL == nil { 3026 return "" 3027 } 3028 return *c.FollowersURL 3029 } 3030 3031 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 3032 func (c *Contributor) GetFollowingURL() string { 3033 if c == nil || c.FollowingURL == nil { 3034 return "" 3035 } 3036 return *c.FollowingURL 3037 } 3038 3039 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 3040 func (c *Contributor) GetGistsURL() string { 3041 if c == nil || c.GistsURL == nil { 3042 return "" 3043 } 3044 return *c.GistsURL 3045 } 3046 3047 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 3048 func (c *Contributor) GetGravatarID() string { 3049 if c == nil || c.GravatarID == nil { 3050 return "" 3051 } 3052 return *c.GravatarID 3053 } 3054 3055 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3056 func (c *Contributor) GetHTMLURL() string { 3057 if c == nil || c.HTMLURL == nil { 3058 return "" 3059 } 3060 return *c.HTMLURL 3061 } 3062 3063 // GetID returns the ID field if it's non-nil, zero value otherwise. 3064 func (c *Contributor) GetID() int64 { 3065 if c == nil || c.ID == nil { 3066 return 0 3067 } 3068 return *c.ID 3069 } 3070 3071 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 3072 func (c *Contributor) GetLogin() string { 3073 if c == nil || c.Login == nil { 3074 return "" 3075 } 3076 return *c.Login 3077 } 3078 3079 // GetName returns the Name field if it's non-nil, zero value otherwise. 3080 func (c *Contributor) GetName() string { 3081 if c == nil || c.Name == nil { 3082 return "" 3083 } 3084 return *c.Name 3085 } 3086 3087 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3088 func (c *Contributor) GetNodeID() string { 3089 if c == nil || c.NodeID == nil { 3090 return "" 3091 } 3092 return *c.NodeID 3093 } 3094 3095 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 3096 func (c *Contributor) GetOrganizationsURL() string { 3097 if c == nil || c.OrganizationsURL == nil { 3098 return "" 3099 } 3100 return *c.OrganizationsURL 3101 } 3102 3103 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 3104 func (c *Contributor) GetReceivedEventsURL() string { 3105 if c == nil || c.ReceivedEventsURL == nil { 3106 return "" 3107 } 3108 return *c.ReceivedEventsURL 3109 } 3110 3111 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 3112 func (c *Contributor) GetReposURL() string { 3113 if c == nil || c.ReposURL == nil { 3114 return "" 3115 } 3116 return *c.ReposURL 3117 } 3118 3119 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 3120 func (c *Contributor) GetSiteAdmin() bool { 3121 if c == nil || c.SiteAdmin == nil { 3122 return false 3123 } 3124 return *c.SiteAdmin 3125 } 3126 3127 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 3128 func (c *Contributor) GetStarredURL() string { 3129 if c == nil || c.StarredURL == nil { 3130 return "" 3131 } 3132 return *c.StarredURL 3133 } 3134 3135 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 3136 func (c *Contributor) GetSubscriptionsURL() string { 3137 if c == nil || c.SubscriptionsURL == nil { 3138 return "" 3139 } 3140 return *c.SubscriptionsURL 3141 } 3142 3143 // GetType returns the Type field if it's non-nil, zero value otherwise. 3144 func (c *Contributor) GetType() string { 3145 if c == nil || c.Type == nil { 3146 return "" 3147 } 3148 return *c.Type 3149 } 3150 3151 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3152 func (c *Contributor) GetURL() string { 3153 if c == nil || c.URL == nil { 3154 return "" 3155 } 3156 return *c.URL 3157 } 3158 3159 // GetAuthor returns the Author field. 3160 func (c *ContributorStats) GetAuthor() *Contributor { 3161 if c == nil { 3162 return nil 3163 } 3164 return c.Author 3165 } 3166 3167 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 3168 func (c *ContributorStats) GetTotal() int { 3169 if c == nil || c.Total == nil { 3170 return 0 3171 } 3172 return *c.Total 3173 } 3174 3175 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 3176 func (c *CreateCheckRunOptions) GetCompletedAt() Timestamp { 3177 if c == nil || c.CompletedAt == nil { 3178 return Timestamp{} 3179 } 3180 return *c.CompletedAt 3181 } 3182 3183 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 3184 func (c *CreateCheckRunOptions) GetConclusion() string { 3185 if c == nil || c.Conclusion == nil { 3186 return "" 3187 } 3188 return *c.Conclusion 3189 } 3190 3191 // GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 3192 func (c *CreateCheckRunOptions) GetDetailsURL() string { 3193 if c == nil || c.DetailsURL == nil { 3194 return "" 3195 } 3196 return *c.DetailsURL 3197 } 3198 3199 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 3200 func (c *CreateCheckRunOptions) GetExternalID() string { 3201 if c == nil || c.ExternalID == nil { 3202 return "" 3203 } 3204 return *c.ExternalID 3205 } 3206 3207 // GetOutput returns the Output field. 3208 func (c *CreateCheckRunOptions) GetOutput() *CheckRunOutput { 3209 if c == nil { 3210 return nil 3211 } 3212 return c.Output 3213 } 3214 3215 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 3216 func (c *CreateCheckRunOptions) GetStartedAt() Timestamp { 3217 if c == nil || c.StartedAt == nil { 3218 return Timestamp{} 3219 } 3220 return *c.StartedAt 3221 } 3222 3223 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 3224 func (c *CreateCheckRunOptions) GetStatus() string { 3225 if c == nil || c.Status == nil { 3226 return "" 3227 } 3228 return *c.Status 3229 } 3230 3231 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 3232 func (c *CreateCheckSuiteOptions) GetHeadBranch() string { 3233 if c == nil || c.HeadBranch == nil { 3234 return "" 3235 } 3236 return *c.HeadBranch 3237 } 3238 3239 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 3240 func (c *CreateEvent) GetDescription() string { 3241 if c == nil || c.Description == nil { 3242 return "" 3243 } 3244 return *c.Description 3245 } 3246 3247 // GetInstallation returns the Installation field. 3248 func (c *CreateEvent) GetInstallation() *Installation { 3249 if c == nil { 3250 return nil 3251 } 3252 return c.Installation 3253 } 3254 3255 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 3256 func (c *CreateEvent) GetMasterBranch() string { 3257 if c == nil || c.MasterBranch == nil { 3258 return "" 3259 } 3260 return *c.MasterBranch 3261 } 3262 3263 // GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 3264 func (c *CreateEvent) GetPusherType() string { 3265 if c == nil || c.PusherType == nil { 3266 return "" 3267 } 3268 return *c.PusherType 3269 } 3270 3271 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 3272 func (c *CreateEvent) GetRef() string { 3273 if c == nil || c.Ref == nil { 3274 return "" 3275 } 3276 return *c.Ref 3277 } 3278 3279 // GetRefType returns the RefType field if it's non-nil, zero value otherwise. 3280 func (c *CreateEvent) GetRefType() string { 3281 if c == nil || c.RefType == nil { 3282 return "" 3283 } 3284 return *c.RefType 3285 } 3286 3287 // GetRepo returns the Repo field. 3288 func (c *CreateEvent) GetRepo() *Repository { 3289 if c == nil { 3290 return nil 3291 } 3292 return c.Repo 3293 } 3294 3295 // GetSender returns the Sender field. 3296 func (c *CreateEvent) GetSender() *User { 3297 if c == nil { 3298 return nil 3299 } 3300 return c.Sender 3301 } 3302 3303 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 3304 func (c *CreateOrgInvitationOptions) GetEmail() string { 3305 if c == nil || c.Email == nil { 3306 return "" 3307 } 3308 return *c.Email 3309 } 3310 3311 // GetInviteeID returns the InviteeID field if it's non-nil, zero value otherwise. 3312 func (c *CreateOrgInvitationOptions) GetInviteeID() int64 { 3313 if c == nil || c.InviteeID == nil { 3314 return 0 3315 } 3316 return *c.InviteeID 3317 } 3318 3319 // GetRole returns the Role field if it's non-nil, zero value otherwise. 3320 func (c *CreateOrgInvitationOptions) GetRole() string { 3321 if c == nil || c.Role == nil { 3322 return "" 3323 } 3324 return *c.Role 3325 } 3326 3327 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 3328 func (c *CreateRunnerGroupRequest) GetAllowsPublicRepositories() bool { 3329 if c == nil || c.AllowsPublicRepositories == nil { 3330 return false 3331 } 3332 return *c.AllowsPublicRepositories 3333 } 3334 3335 // GetName returns the Name field if it's non-nil, zero value otherwise. 3336 func (c *CreateRunnerGroupRequest) GetName() string { 3337 if c == nil || c.Name == nil { 3338 return "" 3339 } 3340 return *c.Name 3341 } 3342 3343 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 3344 func (c *CreateRunnerGroupRequest) GetVisibility() string { 3345 if c == nil || c.Visibility == nil { 3346 return "" 3347 } 3348 return *c.Visibility 3349 } 3350 3351 // GetDeploymentBranchPolicy returns the DeploymentBranchPolicy field. 3352 func (c *CreateUpdateEnvironment) GetDeploymentBranchPolicy() *BranchPolicy { 3353 if c == nil { 3354 return nil 3355 } 3356 return c.DeploymentBranchPolicy 3357 } 3358 3359 // GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. 3360 func (c *CreateUpdateEnvironment) GetWaitTimer() int { 3361 if c == nil || c.WaitTimer == nil { 3362 return 0 3363 } 3364 return *c.WaitTimer 3365 } 3366 3367 // GetBody returns the Body field if it's non-nil, zero value otherwise. 3368 func (c *CreateUserProjectOptions) GetBody() string { 3369 if c == nil || c.Body == nil { 3370 return "" 3371 } 3372 return *c.Body 3373 } 3374 3375 // GetInstallation returns the Installation field. 3376 func (d *DeleteEvent) GetInstallation() *Installation { 3377 if d == nil { 3378 return nil 3379 } 3380 return d.Installation 3381 } 3382 3383 // GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 3384 func (d *DeleteEvent) GetPusherType() string { 3385 if d == nil || d.PusherType == nil { 3386 return "" 3387 } 3388 return *d.PusherType 3389 } 3390 3391 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 3392 func (d *DeleteEvent) GetRef() string { 3393 if d == nil || d.Ref == nil { 3394 return "" 3395 } 3396 return *d.Ref 3397 } 3398 3399 // GetRefType returns the RefType field if it's non-nil, zero value otherwise. 3400 func (d *DeleteEvent) GetRefType() string { 3401 if d == nil || d.RefType == nil { 3402 return "" 3403 } 3404 return *d.RefType 3405 } 3406 3407 // GetRepo returns the Repo field. 3408 func (d *DeleteEvent) GetRepo() *Repository { 3409 if d == nil { 3410 return nil 3411 } 3412 return d.Repo 3413 } 3414 3415 // GetSender returns the Sender field. 3416 func (d *DeleteEvent) GetSender() *User { 3417 if d == nil { 3418 return nil 3419 } 3420 return d.Sender 3421 } 3422 3423 // GetAction returns the Action field if it's non-nil, zero value otherwise. 3424 func (d *DeployKeyEvent) GetAction() string { 3425 if d == nil || d.Action == nil { 3426 return "" 3427 } 3428 return *d.Action 3429 } 3430 3431 // GetInstallation returns the Installation field. 3432 func (d *DeployKeyEvent) GetInstallation() *Installation { 3433 if d == nil { 3434 return nil 3435 } 3436 return d.Installation 3437 } 3438 3439 // GetKey returns the Key field. 3440 func (d *DeployKeyEvent) GetKey() *Key { 3441 if d == nil { 3442 return nil 3443 } 3444 return d.Key 3445 } 3446 3447 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3448 func (d *Deployment) GetCreatedAt() Timestamp { 3449 if d == nil || d.CreatedAt == nil { 3450 return Timestamp{} 3451 } 3452 return *d.CreatedAt 3453 } 3454 3455 // GetCreator returns the Creator field. 3456 func (d *Deployment) GetCreator() *User { 3457 if d == nil { 3458 return nil 3459 } 3460 return d.Creator 3461 } 3462 3463 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 3464 func (d *Deployment) GetDescription() string { 3465 if d == nil || d.Description == nil { 3466 return "" 3467 } 3468 return *d.Description 3469 } 3470 3471 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 3472 func (d *Deployment) GetEnvironment() string { 3473 if d == nil || d.Environment == nil { 3474 return "" 3475 } 3476 return *d.Environment 3477 } 3478 3479 // GetID returns the ID field if it's non-nil, zero value otherwise. 3480 func (d *Deployment) GetID() int64 { 3481 if d == nil || d.ID == nil { 3482 return 0 3483 } 3484 return *d.ID 3485 } 3486 3487 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3488 func (d *Deployment) GetNodeID() string { 3489 if d == nil || d.NodeID == nil { 3490 return "" 3491 } 3492 return *d.NodeID 3493 } 3494 3495 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 3496 func (d *Deployment) GetRef() string { 3497 if d == nil || d.Ref == nil { 3498 return "" 3499 } 3500 return *d.Ref 3501 } 3502 3503 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 3504 func (d *Deployment) GetRepositoryURL() string { 3505 if d == nil || d.RepositoryURL == nil { 3506 return "" 3507 } 3508 return *d.RepositoryURL 3509 } 3510 3511 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3512 func (d *Deployment) GetSHA() string { 3513 if d == nil || d.SHA == nil { 3514 return "" 3515 } 3516 return *d.SHA 3517 } 3518 3519 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 3520 func (d *Deployment) GetStatusesURL() string { 3521 if d == nil || d.StatusesURL == nil { 3522 return "" 3523 } 3524 return *d.StatusesURL 3525 } 3526 3527 // GetTask returns the Task field if it's non-nil, zero value otherwise. 3528 func (d *Deployment) GetTask() string { 3529 if d == nil || d.Task == nil { 3530 return "" 3531 } 3532 return *d.Task 3533 } 3534 3535 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3536 func (d *Deployment) GetUpdatedAt() Timestamp { 3537 if d == nil || d.UpdatedAt == nil { 3538 return Timestamp{} 3539 } 3540 return *d.UpdatedAt 3541 } 3542 3543 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3544 func (d *Deployment) GetURL() string { 3545 if d == nil || d.URL == nil { 3546 return "" 3547 } 3548 return *d.URL 3549 } 3550 3551 // GetDeployment returns the Deployment field. 3552 func (d *DeploymentEvent) GetDeployment() *Deployment { 3553 if d == nil { 3554 return nil 3555 } 3556 return d.Deployment 3557 } 3558 3559 // GetInstallation returns the Installation field. 3560 func (d *DeploymentEvent) GetInstallation() *Installation { 3561 if d == nil { 3562 return nil 3563 } 3564 return d.Installation 3565 } 3566 3567 // GetRepo returns the Repo field. 3568 func (d *DeploymentEvent) GetRepo() *Repository { 3569 if d == nil { 3570 return nil 3571 } 3572 return d.Repo 3573 } 3574 3575 // GetSender returns the Sender field. 3576 func (d *DeploymentEvent) GetSender() *User { 3577 if d == nil { 3578 return nil 3579 } 3580 return d.Sender 3581 } 3582 3583 // GetAutoMerge returns the AutoMerge field if it's non-nil, zero value otherwise. 3584 func (d *DeploymentRequest) GetAutoMerge() bool { 3585 if d == nil || d.AutoMerge == nil { 3586 return false 3587 } 3588 return *d.AutoMerge 3589 } 3590 3591 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 3592 func (d *DeploymentRequest) GetDescription() string { 3593 if d == nil || d.Description == nil { 3594 return "" 3595 } 3596 return *d.Description 3597 } 3598 3599 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 3600 func (d *DeploymentRequest) GetEnvironment() string { 3601 if d == nil || d.Environment == nil { 3602 return "" 3603 } 3604 return *d.Environment 3605 } 3606 3607 // GetProductionEnvironment returns the ProductionEnvironment field if it's non-nil, zero value otherwise. 3608 func (d *DeploymentRequest) GetProductionEnvironment() bool { 3609 if d == nil || d.ProductionEnvironment == nil { 3610 return false 3611 } 3612 return *d.ProductionEnvironment 3613 } 3614 3615 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 3616 func (d *DeploymentRequest) GetRef() string { 3617 if d == nil || d.Ref == nil { 3618 return "" 3619 } 3620 return *d.Ref 3621 } 3622 3623 // GetRequiredContexts returns the RequiredContexts field if it's non-nil, zero value otherwise. 3624 func (d *DeploymentRequest) GetRequiredContexts() []string { 3625 if d == nil || d.RequiredContexts == nil { 3626 return nil 3627 } 3628 return *d.RequiredContexts 3629 } 3630 3631 // GetTask returns the Task field if it's non-nil, zero value otherwise. 3632 func (d *DeploymentRequest) GetTask() string { 3633 if d == nil || d.Task == nil { 3634 return "" 3635 } 3636 return *d.Task 3637 } 3638 3639 // GetTransientEnvironment returns the TransientEnvironment field if it's non-nil, zero value otherwise. 3640 func (d *DeploymentRequest) GetTransientEnvironment() bool { 3641 if d == nil || d.TransientEnvironment == nil { 3642 return false 3643 } 3644 return *d.TransientEnvironment 3645 } 3646 3647 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3648 func (d *DeploymentStatus) GetCreatedAt() Timestamp { 3649 if d == nil || d.CreatedAt == nil { 3650 return Timestamp{} 3651 } 3652 return *d.CreatedAt 3653 } 3654 3655 // GetCreator returns the Creator field. 3656 func (d *DeploymentStatus) GetCreator() *User { 3657 if d == nil { 3658 return nil 3659 } 3660 return d.Creator 3661 } 3662 3663 // GetDeploymentURL returns the DeploymentURL field if it's non-nil, zero value otherwise. 3664 func (d *DeploymentStatus) GetDeploymentURL() string { 3665 if d == nil || d.DeploymentURL == nil { 3666 return "" 3667 } 3668 return *d.DeploymentURL 3669 } 3670 3671 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 3672 func (d *DeploymentStatus) GetDescription() string { 3673 if d == nil || d.Description == nil { 3674 return "" 3675 } 3676 return *d.Description 3677 } 3678 3679 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 3680 func (d *DeploymentStatus) GetEnvironment() string { 3681 if d == nil || d.Environment == nil { 3682 return "" 3683 } 3684 return *d.Environment 3685 } 3686 3687 // GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. 3688 func (d *DeploymentStatus) GetEnvironmentURL() string { 3689 if d == nil || d.EnvironmentURL == nil { 3690 return "" 3691 } 3692 return *d.EnvironmentURL 3693 } 3694 3695 // GetID returns the ID field if it's non-nil, zero value otherwise. 3696 func (d *DeploymentStatus) GetID() int64 { 3697 if d == nil || d.ID == nil { 3698 return 0 3699 } 3700 return *d.ID 3701 } 3702 3703 // GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. 3704 func (d *DeploymentStatus) GetLogURL() string { 3705 if d == nil || d.LogURL == nil { 3706 return "" 3707 } 3708 return *d.LogURL 3709 } 3710 3711 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3712 func (d *DeploymentStatus) GetNodeID() string { 3713 if d == nil || d.NodeID == nil { 3714 return "" 3715 } 3716 return *d.NodeID 3717 } 3718 3719 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 3720 func (d *DeploymentStatus) GetRepositoryURL() string { 3721 if d == nil || d.RepositoryURL == nil { 3722 return "" 3723 } 3724 return *d.RepositoryURL 3725 } 3726 3727 // GetState returns the State field if it's non-nil, zero value otherwise. 3728 func (d *DeploymentStatus) GetState() string { 3729 if d == nil || d.State == nil { 3730 return "" 3731 } 3732 return *d.State 3733 } 3734 3735 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 3736 func (d *DeploymentStatus) GetTargetURL() string { 3737 if d == nil || d.TargetURL == nil { 3738 return "" 3739 } 3740 return *d.TargetURL 3741 } 3742 3743 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3744 func (d *DeploymentStatus) GetUpdatedAt() Timestamp { 3745 if d == nil || d.UpdatedAt == nil { 3746 return Timestamp{} 3747 } 3748 return *d.UpdatedAt 3749 } 3750 3751 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3752 func (d *DeploymentStatus) GetURL() string { 3753 if d == nil || d.URL == nil { 3754 return "" 3755 } 3756 return *d.URL 3757 } 3758 3759 // GetDeployment returns the Deployment field. 3760 func (d *DeploymentStatusEvent) GetDeployment() *Deployment { 3761 if d == nil { 3762 return nil 3763 } 3764 return d.Deployment 3765 } 3766 3767 // GetDeploymentStatus returns the DeploymentStatus field. 3768 func (d *DeploymentStatusEvent) GetDeploymentStatus() *DeploymentStatus { 3769 if d == nil { 3770 return nil 3771 } 3772 return d.DeploymentStatus 3773 } 3774 3775 // GetInstallation returns the Installation field. 3776 func (d *DeploymentStatusEvent) GetInstallation() *Installation { 3777 if d == nil { 3778 return nil 3779 } 3780 return d.Installation 3781 } 3782 3783 // GetRepo returns the Repo field. 3784 func (d *DeploymentStatusEvent) GetRepo() *Repository { 3785 if d == nil { 3786 return nil 3787 } 3788 return d.Repo 3789 } 3790 3791 // GetSender returns the Sender field. 3792 func (d *DeploymentStatusEvent) GetSender() *User { 3793 if d == nil { 3794 return nil 3795 } 3796 return d.Sender 3797 } 3798 3799 // GetAutoInactive returns the AutoInactive field if it's non-nil, zero value otherwise. 3800 func (d *DeploymentStatusRequest) GetAutoInactive() bool { 3801 if d == nil || d.AutoInactive == nil { 3802 return false 3803 } 3804 return *d.AutoInactive 3805 } 3806 3807 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 3808 func (d *DeploymentStatusRequest) GetDescription() string { 3809 if d == nil || d.Description == nil { 3810 return "" 3811 } 3812 return *d.Description 3813 } 3814 3815 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 3816 func (d *DeploymentStatusRequest) GetEnvironment() string { 3817 if d == nil || d.Environment == nil { 3818 return "" 3819 } 3820 return *d.Environment 3821 } 3822 3823 // GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. 3824 func (d *DeploymentStatusRequest) GetEnvironmentURL() string { 3825 if d == nil || d.EnvironmentURL == nil { 3826 return "" 3827 } 3828 return *d.EnvironmentURL 3829 } 3830 3831 // GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. 3832 func (d *DeploymentStatusRequest) GetLogURL() string { 3833 if d == nil || d.LogURL == nil { 3834 return "" 3835 } 3836 return *d.LogURL 3837 } 3838 3839 // GetState returns the State field if it's non-nil, zero value otherwise. 3840 func (d *DeploymentStatusRequest) GetState() string { 3841 if d == nil || d.State == nil { 3842 return "" 3843 } 3844 return *d.State 3845 } 3846 3847 // GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 3848 func (d *Discussion) GetActiveLockReason() string { 3849 if d == nil || d.ActiveLockReason == nil { 3850 return "" 3851 } 3852 return *d.ActiveLockReason 3853 } 3854 3855 // GetAnswerChosenAt returns the AnswerChosenAt field if it's non-nil, zero value otherwise. 3856 func (d *Discussion) GetAnswerChosenAt() Timestamp { 3857 if d == nil || d.AnswerChosenAt == nil { 3858 return Timestamp{} 3859 } 3860 return *d.AnswerChosenAt 3861 } 3862 3863 // GetAnswerChosenBy returns the AnswerChosenBy field if it's non-nil, zero value otherwise. 3864 func (d *Discussion) GetAnswerChosenBy() string { 3865 if d == nil || d.AnswerChosenBy == nil { 3866 return "" 3867 } 3868 return *d.AnswerChosenBy 3869 } 3870 3871 // GetAnswerHTMLURL returns the AnswerHTMLURL field if it's non-nil, zero value otherwise. 3872 func (d *Discussion) GetAnswerHTMLURL() string { 3873 if d == nil || d.AnswerHTMLURL == nil { 3874 return "" 3875 } 3876 return *d.AnswerHTMLURL 3877 } 3878 3879 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 3880 func (d *Discussion) GetAuthorAssociation() string { 3881 if d == nil || d.AuthorAssociation == nil { 3882 return "" 3883 } 3884 return *d.AuthorAssociation 3885 } 3886 3887 // GetBody returns the Body field if it's non-nil, zero value otherwise. 3888 func (d *Discussion) GetBody() string { 3889 if d == nil || d.Body == nil { 3890 return "" 3891 } 3892 return *d.Body 3893 } 3894 3895 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 3896 func (d *Discussion) GetComments() int { 3897 if d == nil || d.Comments == nil { 3898 return 0 3899 } 3900 return *d.Comments 3901 } 3902 3903 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3904 func (d *Discussion) GetCreatedAt() Timestamp { 3905 if d == nil || d.CreatedAt == nil { 3906 return Timestamp{} 3907 } 3908 return *d.CreatedAt 3909 } 3910 3911 // GetDiscussionCategory returns the DiscussionCategory field. 3912 func (d *Discussion) GetDiscussionCategory() *DiscussionCategory { 3913 if d == nil { 3914 return nil 3915 } 3916 return d.DiscussionCategory 3917 } 3918 3919 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3920 func (d *Discussion) GetHTMLURL() string { 3921 if d == nil || d.HTMLURL == nil { 3922 return "" 3923 } 3924 return *d.HTMLURL 3925 } 3926 3927 // GetID returns the ID field if it's non-nil, zero value otherwise. 3928 func (d *Discussion) GetID() int64 { 3929 if d == nil || d.ID == nil { 3930 return 0 3931 } 3932 return *d.ID 3933 } 3934 3935 // GetLocked returns the Locked field if it's non-nil, zero value otherwise. 3936 func (d *Discussion) GetLocked() bool { 3937 if d == nil || d.Locked == nil { 3938 return false 3939 } 3940 return *d.Locked 3941 } 3942 3943 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3944 func (d *Discussion) GetNodeID() string { 3945 if d == nil || d.NodeID == nil { 3946 return "" 3947 } 3948 return *d.NodeID 3949 } 3950 3951 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 3952 func (d *Discussion) GetNumber() int { 3953 if d == nil || d.Number == nil { 3954 return 0 3955 } 3956 return *d.Number 3957 } 3958 3959 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 3960 func (d *Discussion) GetRepositoryURL() string { 3961 if d == nil || d.RepositoryURL == nil { 3962 return "" 3963 } 3964 return *d.RepositoryURL 3965 } 3966 3967 // GetState returns the State field if it's non-nil, zero value otherwise. 3968 func (d *Discussion) GetState() string { 3969 if d == nil || d.State == nil { 3970 return "" 3971 } 3972 return *d.State 3973 } 3974 3975 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 3976 func (d *Discussion) GetTitle() string { 3977 if d == nil || d.Title == nil { 3978 return "" 3979 } 3980 return *d.Title 3981 } 3982 3983 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3984 func (d *Discussion) GetUpdatedAt() Timestamp { 3985 if d == nil || d.UpdatedAt == nil { 3986 return Timestamp{} 3987 } 3988 return *d.UpdatedAt 3989 } 3990 3991 // GetUser returns the User field. 3992 func (d *Discussion) GetUser() *User { 3993 if d == nil { 3994 return nil 3995 } 3996 return d.User 3997 } 3998 3999 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4000 func (d *DiscussionCategory) GetCreatedAt() Timestamp { 4001 if d == nil || d.CreatedAt == nil { 4002 return Timestamp{} 4003 } 4004 return *d.CreatedAt 4005 } 4006 4007 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4008 func (d *DiscussionCategory) GetDescription() string { 4009 if d == nil || d.Description == nil { 4010 return "" 4011 } 4012 return *d.Description 4013 } 4014 4015 // GetEmoji returns the Emoji field if it's non-nil, zero value otherwise. 4016 func (d *DiscussionCategory) GetEmoji() string { 4017 if d == nil || d.Emoji == nil { 4018 return "" 4019 } 4020 return *d.Emoji 4021 } 4022 4023 // GetID returns the ID field if it's non-nil, zero value otherwise. 4024 func (d *DiscussionCategory) GetID() int64 { 4025 if d == nil || d.ID == nil { 4026 return 0 4027 } 4028 return *d.ID 4029 } 4030 4031 // GetIsAnswerable returns the IsAnswerable field if it's non-nil, zero value otherwise. 4032 func (d *DiscussionCategory) GetIsAnswerable() bool { 4033 if d == nil || d.IsAnswerable == nil { 4034 return false 4035 } 4036 return *d.IsAnswerable 4037 } 4038 4039 // GetName returns the Name field if it's non-nil, zero value otherwise. 4040 func (d *DiscussionCategory) GetName() string { 4041 if d == nil || d.Name == nil { 4042 return "" 4043 } 4044 return *d.Name 4045 } 4046 4047 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4048 func (d *DiscussionCategory) GetNodeID() string { 4049 if d == nil || d.NodeID == nil { 4050 return "" 4051 } 4052 return *d.NodeID 4053 } 4054 4055 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 4056 func (d *DiscussionCategory) GetRepositoryID() int64 { 4057 if d == nil || d.RepositoryID == nil { 4058 return 0 4059 } 4060 return *d.RepositoryID 4061 } 4062 4063 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 4064 func (d *DiscussionCategory) GetSlug() string { 4065 if d == nil || d.Slug == nil { 4066 return "" 4067 } 4068 return *d.Slug 4069 } 4070 4071 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4072 func (d *DiscussionCategory) GetUpdatedAt() Timestamp { 4073 if d == nil || d.UpdatedAt == nil { 4074 return Timestamp{} 4075 } 4076 return *d.UpdatedAt 4077 } 4078 4079 // GetAuthor returns the Author field. 4080 func (d *DiscussionComment) GetAuthor() *User { 4081 if d == nil { 4082 return nil 4083 } 4084 return d.Author 4085 } 4086 4087 // GetBody returns the Body field if it's non-nil, zero value otherwise. 4088 func (d *DiscussionComment) GetBody() string { 4089 if d == nil || d.Body == nil { 4090 return "" 4091 } 4092 return *d.Body 4093 } 4094 4095 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 4096 func (d *DiscussionComment) GetBodyHTML() string { 4097 if d == nil || d.BodyHTML == nil { 4098 return "" 4099 } 4100 return *d.BodyHTML 4101 } 4102 4103 // GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. 4104 func (d *DiscussionComment) GetBodyVersion() string { 4105 if d == nil || d.BodyVersion == nil { 4106 return "" 4107 } 4108 return *d.BodyVersion 4109 } 4110 4111 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4112 func (d *DiscussionComment) GetCreatedAt() Timestamp { 4113 if d == nil || d.CreatedAt == nil { 4114 return Timestamp{} 4115 } 4116 return *d.CreatedAt 4117 } 4118 4119 // GetDiscussionURL returns the DiscussionURL field if it's non-nil, zero value otherwise. 4120 func (d *DiscussionComment) GetDiscussionURL() string { 4121 if d == nil || d.DiscussionURL == nil { 4122 return "" 4123 } 4124 return *d.DiscussionURL 4125 } 4126 4127 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4128 func (d *DiscussionComment) GetHTMLURL() string { 4129 if d == nil || d.HTMLURL == nil { 4130 return "" 4131 } 4132 return *d.HTMLURL 4133 } 4134 4135 // GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. 4136 func (d *DiscussionComment) GetLastEditedAt() Timestamp { 4137 if d == nil || d.LastEditedAt == nil { 4138 return Timestamp{} 4139 } 4140 return *d.LastEditedAt 4141 } 4142 4143 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4144 func (d *DiscussionComment) GetNodeID() string { 4145 if d == nil || d.NodeID == nil { 4146 return "" 4147 } 4148 return *d.NodeID 4149 } 4150 4151 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 4152 func (d *DiscussionComment) GetNumber() int { 4153 if d == nil || d.Number == nil { 4154 return 0 4155 } 4156 return *d.Number 4157 } 4158 4159 // GetReactions returns the Reactions field. 4160 func (d *DiscussionComment) GetReactions() *Reactions { 4161 if d == nil { 4162 return nil 4163 } 4164 return d.Reactions 4165 } 4166 4167 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4168 func (d *DiscussionComment) GetUpdatedAt() Timestamp { 4169 if d == nil || d.UpdatedAt == nil { 4170 return Timestamp{} 4171 } 4172 return *d.UpdatedAt 4173 } 4174 4175 // GetURL returns the URL field if it's non-nil, zero value otherwise. 4176 func (d *DiscussionComment) GetURL() string { 4177 if d == nil || d.URL == nil { 4178 return "" 4179 } 4180 return *d.URL 4181 } 4182 4183 // GetAction returns the Action field if it's non-nil, zero value otherwise. 4184 func (d *DiscussionEvent) GetAction() string { 4185 if d == nil || d.Action == nil { 4186 return "" 4187 } 4188 return *d.Action 4189 } 4190 4191 // GetDiscussion returns the Discussion field. 4192 func (d *DiscussionEvent) GetDiscussion() *Discussion { 4193 if d == nil { 4194 return nil 4195 } 4196 return d.Discussion 4197 } 4198 4199 // GetInstallation returns the Installation field. 4200 func (d *DiscussionEvent) GetInstallation() *Installation { 4201 if d == nil { 4202 return nil 4203 } 4204 return d.Installation 4205 } 4206 4207 // GetOrg returns the Org field. 4208 func (d *DiscussionEvent) GetOrg() *Organization { 4209 if d == nil { 4210 return nil 4211 } 4212 return d.Org 4213 } 4214 4215 // GetRepo returns the Repo field. 4216 func (d *DiscussionEvent) GetRepo() *Repository { 4217 if d == nil { 4218 return nil 4219 } 4220 return d.Repo 4221 } 4222 4223 // GetSender returns the Sender field. 4224 func (d *DiscussionEvent) GetSender() *User { 4225 if d == nil { 4226 return nil 4227 } 4228 return d.Sender 4229 } 4230 4231 // GetTeams returns the Teams field if it's non-nil, zero value otherwise. 4232 func (d *DismissalRestrictionsRequest) GetTeams() []string { 4233 if d == nil || d.Teams == nil { 4234 return nil 4235 } 4236 return *d.Teams 4237 } 4238 4239 // GetUsers returns the Users field if it's non-nil, zero value otherwise. 4240 func (d *DismissalRestrictionsRequest) GetUsers() []string { 4241 if d == nil || d.Users == nil { 4242 return nil 4243 } 4244 return *d.Users 4245 } 4246 4247 // GetDismissalCommitID returns the DismissalCommitID field if it's non-nil, zero value otherwise. 4248 func (d *DismissedReview) GetDismissalCommitID() string { 4249 if d == nil || d.DismissalCommitID == nil { 4250 return "" 4251 } 4252 return *d.DismissalCommitID 4253 } 4254 4255 // GetDismissalMessage returns the DismissalMessage field if it's non-nil, zero value otherwise. 4256 func (d *DismissedReview) GetDismissalMessage() string { 4257 if d == nil || d.DismissalMessage == nil { 4258 return "" 4259 } 4260 return *d.DismissalMessage 4261 } 4262 4263 // GetReviewID returns the ReviewID field if it's non-nil, zero value otherwise. 4264 func (d *DismissedReview) GetReviewID() int64 { 4265 if d == nil || d.ReviewID == nil { 4266 return 0 4267 } 4268 return *d.ReviewID 4269 } 4270 4271 // GetState returns the State field if it's non-nil, zero value otherwise. 4272 func (d *DismissedReview) GetState() string { 4273 if d == nil || d.State == nil { 4274 return "" 4275 } 4276 return *d.State 4277 } 4278 4279 // GetClientPayload returns the ClientPayload field if it's non-nil, zero value otherwise. 4280 func (d *DispatchRequestOptions) GetClientPayload() json.RawMessage { 4281 if d == nil || d.ClientPayload == nil { 4282 return json.RawMessage{} 4283 } 4284 return *d.ClientPayload 4285 } 4286 4287 // GetBody returns the Body field if it's non-nil, zero value otherwise. 4288 func (d *DraftReviewComment) GetBody() string { 4289 if d == nil || d.Body == nil { 4290 return "" 4291 } 4292 return *d.Body 4293 } 4294 4295 // GetLine returns the Line field if it's non-nil, zero value otherwise. 4296 func (d *DraftReviewComment) GetLine() int { 4297 if d == nil || d.Line == nil { 4298 return 0 4299 } 4300 return *d.Line 4301 } 4302 4303 // GetPath returns the Path field if it's non-nil, zero value otherwise. 4304 func (d *DraftReviewComment) GetPath() string { 4305 if d == nil || d.Path == nil { 4306 return "" 4307 } 4308 return *d.Path 4309 } 4310 4311 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 4312 func (d *DraftReviewComment) GetPosition() int { 4313 if d == nil || d.Position == nil { 4314 return 0 4315 } 4316 return *d.Position 4317 } 4318 4319 // GetSide returns the Side field if it's non-nil, zero value otherwise. 4320 func (d *DraftReviewComment) GetSide() string { 4321 if d == nil || d.Side == nil { 4322 return "" 4323 } 4324 return *d.Side 4325 } 4326 4327 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 4328 func (d *DraftReviewComment) GetStartLine() int { 4329 if d == nil || d.StartLine == nil { 4330 return 0 4331 } 4332 return *d.StartLine 4333 } 4334 4335 // GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. 4336 func (d *DraftReviewComment) GetStartSide() string { 4337 if d == nil || d.StartSide == nil { 4338 return "" 4339 } 4340 return *d.StartSide 4341 } 4342 4343 // GetRef returns the Ref field. 4344 func (e *EditBase) GetRef() *EditRef { 4345 if e == nil { 4346 return nil 4347 } 4348 return e.Ref 4349 } 4350 4351 // GetSHA returns the SHA field. 4352 func (e *EditBase) GetSHA() *EditSHA { 4353 if e == nil { 4354 return nil 4355 } 4356 return e.SHA 4357 } 4358 4359 // GetFrom returns the From field if it's non-nil, zero value otherwise. 4360 func (e *EditBody) GetFrom() string { 4361 if e == nil || e.From == nil { 4362 return "" 4363 } 4364 return *e.From 4365 } 4366 4367 // GetBase returns the Base field. 4368 func (e *EditChange) GetBase() *EditBase { 4369 if e == nil { 4370 return nil 4371 } 4372 return e.Base 4373 } 4374 4375 // GetBody returns the Body field. 4376 func (e *EditChange) GetBody() *EditBody { 4377 if e == nil { 4378 return nil 4379 } 4380 return e.Body 4381 } 4382 4383 // GetRepo returns the Repo field. 4384 func (e *EditChange) GetRepo() *EditRepo { 4385 if e == nil { 4386 return nil 4387 } 4388 return e.Repo 4389 } 4390 4391 // GetTitle returns the Title field. 4392 func (e *EditChange) GetTitle() *EditTitle { 4393 if e == nil { 4394 return nil 4395 } 4396 return e.Title 4397 } 4398 4399 // GetFrom returns the From field if it's non-nil, zero value otherwise. 4400 func (e *EditRef) GetFrom() string { 4401 if e == nil || e.From == nil { 4402 return "" 4403 } 4404 return *e.From 4405 } 4406 4407 // GetName returns the Name field. 4408 func (e *EditRepo) GetName() *RepoName { 4409 if e == nil { 4410 return nil 4411 } 4412 return e.Name 4413 } 4414 4415 // GetFrom returns the From field if it's non-nil, zero value otherwise. 4416 func (e *EditSHA) GetFrom() string { 4417 if e == nil || e.From == nil { 4418 return "" 4419 } 4420 return *e.From 4421 } 4422 4423 // GetFrom returns the From field if it's non-nil, zero value otherwise. 4424 func (e *EditTitle) GetFrom() string { 4425 if e == nil || e.From == nil { 4426 return "" 4427 } 4428 return *e.From 4429 } 4430 4431 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 4432 func (e *Enterprise) GetAvatarURL() string { 4433 if e == nil || e.AvatarURL == nil { 4434 return "" 4435 } 4436 return *e.AvatarURL 4437 } 4438 4439 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4440 func (e *Enterprise) GetCreatedAt() Timestamp { 4441 if e == nil || e.CreatedAt == nil { 4442 return Timestamp{} 4443 } 4444 return *e.CreatedAt 4445 } 4446 4447 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4448 func (e *Enterprise) GetDescription() string { 4449 if e == nil || e.Description == nil { 4450 return "" 4451 } 4452 return *e.Description 4453 } 4454 4455 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4456 func (e *Enterprise) GetHTMLURL() string { 4457 if e == nil || e.HTMLURL == nil { 4458 return "" 4459 } 4460 return *e.HTMLURL 4461 } 4462 4463 // GetID returns the ID field if it's non-nil, zero value otherwise. 4464 func (e *Enterprise) GetID() int { 4465 if e == nil || e.ID == nil { 4466 return 0 4467 } 4468 return *e.ID 4469 } 4470 4471 // GetName returns the Name field if it's non-nil, zero value otherwise. 4472 func (e *Enterprise) GetName() string { 4473 if e == nil || e.Name == nil { 4474 return "" 4475 } 4476 return *e.Name 4477 } 4478 4479 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4480 func (e *Enterprise) GetNodeID() string { 4481 if e == nil || e.NodeID == nil { 4482 return "" 4483 } 4484 return *e.NodeID 4485 } 4486 4487 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 4488 func (e *Enterprise) GetSlug() string { 4489 if e == nil || e.Slug == nil { 4490 return "" 4491 } 4492 return *e.Slug 4493 } 4494 4495 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4496 func (e *Enterprise) GetUpdatedAt() Timestamp { 4497 if e == nil || e.UpdatedAt == nil { 4498 return Timestamp{} 4499 } 4500 return *e.UpdatedAt 4501 } 4502 4503 // GetWebsiteURL returns the WebsiteURL field if it's non-nil, zero value otherwise. 4504 func (e *Enterprise) GetWebsiteURL() string { 4505 if e == nil || e.WebsiteURL == nil { 4506 return "" 4507 } 4508 return *e.WebsiteURL 4509 } 4510 4511 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4512 func (e *Environment) GetCreatedAt() Timestamp { 4513 if e == nil || e.CreatedAt == nil { 4514 return Timestamp{} 4515 } 4516 return *e.CreatedAt 4517 } 4518 4519 // GetDeploymentBranchPolicy returns the DeploymentBranchPolicy field. 4520 func (e *Environment) GetDeploymentBranchPolicy() *BranchPolicy { 4521 if e == nil { 4522 return nil 4523 } 4524 return e.DeploymentBranchPolicy 4525 } 4526 4527 // GetEnvironmentName returns the EnvironmentName field if it's non-nil, zero value otherwise. 4528 func (e *Environment) GetEnvironmentName() string { 4529 if e == nil || e.EnvironmentName == nil { 4530 return "" 4531 } 4532 return *e.EnvironmentName 4533 } 4534 4535 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4536 func (e *Environment) GetHTMLURL() string { 4537 if e == nil || e.HTMLURL == nil { 4538 return "" 4539 } 4540 return *e.HTMLURL 4541 } 4542 4543 // GetID returns the ID field if it's non-nil, zero value otherwise. 4544 func (e *Environment) GetID() int64 { 4545 if e == nil || e.ID == nil { 4546 return 0 4547 } 4548 return *e.ID 4549 } 4550 4551 // GetName returns the Name field if it's non-nil, zero value otherwise. 4552 func (e *Environment) GetName() string { 4553 if e == nil || e.Name == nil { 4554 return "" 4555 } 4556 return *e.Name 4557 } 4558 4559 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4560 func (e *Environment) GetNodeID() string { 4561 if e == nil || e.NodeID == nil { 4562 return "" 4563 } 4564 return *e.NodeID 4565 } 4566 4567 // GetOwner returns the Owner field if it's non-nil, zero value otherwise. 4568 func (e *Environment) GetOwner() string { 4569 if e == nil || e.Owner == nil { 4570 return "" 4571 } 4572 return *e.Owner 4573 } 4574 4575 // GetRepo returns the Repo field if it's non-nil, zero value otherwise. 4576 func (e *Environment) GetRepo() string { 4577 if e == nil || e.Repo == nil { 4578 return "" 4579 } 4580 return *e.Repo 4581 } 4582 4583 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4584 func (e *Environment) GetUpdatedAt() Timestamp { 4585 if e == nil || e.UpdatedAt == nil { 4586 return Timestamp{} 4587 } 4588 return *e.UpdatedAt 4589 } 4590 4591 // GetURL returns the URL field if it's non-nil, zero value otherwise. 4592 func (e *Environment) GetURL() string { 4593 if e == nil || e.URL == nil { 4594 return "" 4595 } 4596 return *e.URL 4597 } 4598 4599 // GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. 4600 func (e *Environment) GetWaitTimer() int { 4601 if e == nil || e.WaitTimer == nil { 4602 return 0 4603 } 4604 return *e.WaitTimer 4605 } 4606 4607 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 4608 func (e *EnvResponse) GetTotalCount() int { 4609 if e == nil || e.TotalCount == nil { 4610 return 0 4611 } 4612 return *e.TotalCount 4613 } 4614 4615 // GetID returns the ID field if it's non-nil, zero value otherwise. 4616 func (e *EnvReviewers) GetID() int64 { 4617 if e == nil || e.ID == nil { 4618 return 0 4619 } 4620 return *e.ID 4621 } 4622 4623 // GetType returns the Type field if it's non-nil, zero value otherwise. 4624 func (e *EnvReviewers) GetType() string { 4625 if e == nil || e.Type == nil { 4626 return "" 4627 } 4628 return *e.Type 4629 } 4630 4631 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4632 func (e *ErrorBlock) GetCreatedAt() Timestamp { 4633 if e == nil || e.CreatedAt == nil { 4634 return Timestamp{} 4635 } 4636 return *e.CreatedAt 4637 } 4638 4639 // GetBlock returns the Block field. 4640 func (e *ErrorResponse) GetBlock() *ErrorBlock { 4641 if e == nil { 4642 return nil 4643 } 4644 return e.Block 4645 } 4646 4647 // GetActor returns the Actor field. 4648 func (e *Event) GetActor() *User { 4649 if e == nil { 4650 return nil 4651 } 4652 return e.Actor 4653 } 4654 4655 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4656 func (e *Event) GetCreatedAt() time.Time { 4657 if e == nil || e.CreatedAt == nil { 4658 return time.Time{} 4659 } 4660 return *e.CreatedAt 4661 } 4662 4663 // GetID returns the ID field if it's non-nil, zero value otherwise. 4664 func (e *Event) GetID() string { 4665 if e == nil || e.ID == nil { 4666 return "" 4667 } 4668 return *e.ID 4669 } 4670 4671 // GetOrg returns the Org field. 4672 func (e *Event) GetOrg() *Organization { 4673 if e == nil { 4674 return nil 4675 } 4676 return e.Org 4677 } 4678 4679 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 4680 func (e *Event) GetPublic() bool { 4681 if e == nil || e.Public == nil { 4682 return false 4683 } 4684 return *e.Public 4685 } 4686 4687 // GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 4688 func (e *Event) GetRawPayload() json.RawMessage { 4689 if e == nil || e.RawPayload == nil { 4690 return json.RawMessage{} 4691 } 4692 return *e.RawPayload 4693 } 4694 4695 // GetRepo returns the Repo field. 4696 func (e *Event) GetRepo() *Repository { 4697 if e == nil { 4698 return nil 4699 } 4700 return e.Repo 4701 } 4702 4703 // GetType returns the Type field if it's non-nil, zero value otherwise. 4704 func (e *Event) GetType() string { 4705 if e == nil || e.Type == nil { 4706 return "" 4707 } 4708 return *e.Type 4709 } 4710 4711 // GetGroupID returns the GroupID field if it's non-nil, zero value otherwise. 4712 func (e *ExternalGroup) GetGroupID() int64 { 4713 if e == nil || e.GroupID == nil { 4714 return 0 4715 } 4716 return *e.GroupID 4717 } 4718 4719 // GetGroupName returns the GroupName field if it's non-nil, zero value otherwise. 4720 func (e *ExternalGroup) GetGroupName() string { 4721 if e == nil || e.GroupName == nil { 4722 return "" 4723 } 4724 return *e.GroupName 4725 } 4726 4727 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4728 func (e *ExternalGroup) GetUpdatedAt() Timestamp { 4729 if e == nil || e.UpdatedAt == nil { 4730 return Timestamp{} 4731 } 4732 return *e.UpdatedAt 4733 } 4734 4735 // GetMemberEmail returns the MemberEmail field if it's non-nil, zero value otherwise. 4736 func (e *ExternalGroupMember) GetMemberEmail() string { 4737 if e == nil || e.MemberEmail == nil { 4738 return "" 4739 } 4740 return *e.MemberEmail 4741 } 4742 4743 // GetMemberID returns the MemberID field if it's non-nil, zero value otherwise. 4744 func (e *ExternalGroupMember) GetMemberID() int64 { 4745 if e == nil || e.MemberID == nil { 4746 return 0 4747 } 4748 return *e.MemberID 4749 } 4750 4751 // GetMemberLogin returns the MemberLogin field if it's non-nil, zero value otherwise. 4752 func (e *ExternalGroupMember) GetMemberLogin() string { 4753 if e == nil || e.MemberLogin == nil { 4754 return "" 4755 } 4756 return *e.MemberLogin 4757 } 4758 4759 // GetMemberName returns the MemberName field if it's non-nil, zero value otherwise. 4760 func (e *ExternalGroupMember) GetMemberName() string { 4761 if e == nil || e.MemberName == nil { 4762 return "" 4763 } 4764 return *e.MemberName 4765 } 4766 4767 // GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. 4768 func (e *ExternalGroupTeam) GetTeamID() int64 { 4769 if e == nil || e.TeamID == nil { 4770 return 0 4771 } 4772 return *e.TeamID 4773 } 4774 4775 // GetTeamName returns the TeamName field if it's non-nil, zero value otherwise. 4776 func (e *ExternalGroupTeam) GetTeamName() string { 4777 if e == nil || e.TeamName == nil { 4778 return "" 4779 } 4780 return *e.TeamName 4781 } 4782 4783 // GetHRef returns the HRef field if it's non-nil, zero value otherwise. 4784 func (f *FeedLink) GetHRef() string { 4785 if f == nil || f.HRef == nil { 4786 return "" 4787 } 4788 return *f.HRef 4789 } 4790 4791 // GetType returns the Type field if it's non-nil, zero value otherwise. 4792 func (f *FeedLink) GetType() string { 4793 if f == nil || f.Type == nil { 4794 return "" 4795 } 4796 return *f.Type 4797 } 4798 4799 // GetCurrentUser returns the CurrentUser field. 4800 func (f *FeedLinks) GetCurrentUser() *FeedLink { 4801 if f == nil { 4802 return nil 4803 } 4804 return f.CurrentUser 4805 } 4806 4807 // GetCurrentUserActor returns the CurrentUserActor field. 4808 func (f *FeedLinks) GetCurrentUserActor() *FeedLink { 4809 if f == nil { 4810 return nil 4811 } 4812 return f.CurrentUserActor 4813 } 4814 4815 // GetCurrentUserOrganization returns the CurrentUserOrganization field. 4816 func (f *FeedLinks) GetCurrentUserOrganization() *FeedLink { 4817 if f == nil { 4818 return nil 4819 } 4820 return f.CurrentUserOrganization 4821 } 4822 4823 // GetCurrentUserPublic returns the CurrentUserPublic field. 4824 func (f *FeedLinks) GetCurrentUserPublic() *FeedLink { 4825 if f == nil { 4826 return nil 4827 } 4828 return f.CurrentUserPublic 4829 } 4830 4831 // GetTimeline returns the Timeline field. 4832 func (f *FeedLinks) GetTimeline() *FeedLink { 4833 if f == nil { 4834 return nil 4835 } 4836 return f.Timeline 4837 } 4838 4839 // GetUser returns the User field. 4840 func (f *FeedLinks) GetUser() *FeedLink { 4841 if f == nil { 4842 return nil 4843 } 4844 return f.User 4845 } 4846 4847 // GetCurrentUserActorURL returns the CurrentUserActorURL field if it's non-nil, zero value otherwise. 4848 func (f *Feeds) GetCurrentUserActorURL() string { 4849 if f == nil || f.CurrentUserActorURL == nil { 4850 return "" 4851 } 4852 return *f.CurrentUserActorURL 4853 } 4854 4855 // GetCurrentUserOrganizationURL returns the CurrentUserOrganizationURL field if it's non-nil, zero value otherwise. 4856 func (f *Feeds) GetCurrentUserOrganizationURL() string { 4857 if f == nil || f.CurrentUserOrganizationURL == nil { 4858 return "" 4859 } 4860 return *f.CurrentUserOrganizationURL 4861 } 4862 4863 // GetCurrentUserPublicURL returns the CurrentUserPublicURL field if it's non-nil, zero value otherwise. 4864 func (f *Feeds) GetCurrentUserPublicURL() string { 4865 if f == nil || f.CurrentUserPublicURL == nil { 4866 return "" 4867 } 4868 return *f.CurrentUserPublicURL 4869 } 4870 4871 // GetCurrentUserURL returns the CurrentUserURL field if it's non-nil, zero value otherwise. 4872 func (f *Feeds) GetCurrentUserURL() string { 4873 if f == nil || f.CurrentUserURL == nil { 4874 return "" 4875 } 4876 return *f.CurrentUserURL 4877 } 4878 4879 // GetLinks returns the Links field. 4880 func (f *Feeds) GetLinks() *FeedLinks { 4881 if f == nil { 4882 return nil 4883 } 4884 return f.Links 4885 } 4886 4887 // GetTimelineURL returns the TimelineURL field if it's non-nil, zero value otherwise. 4888 func (f *Feeds) GetTimelineURL() string { 4889 if f == nil || f.TimelineURL == nil { 4890 return "" 4891 } 4892 return *f.TimelineURL 4893 } 4894 4895 // GetUserURL returns the UserURL field if it's non-nil, zero value otherwise. 4896 func (f *Feeds) GetUserURL() string { 4897 if f == nil || f.UserURL == nil { 4898 return "" 4899 } 4900 return *f.UserURL 4901 } 4902 4903 // GetForkee returns the Forkee field. 4904 func (f *ForkEvent) GetForkee() *Repository { 4905 if f == nil { 4906 return nil 4907 } 4908 return f.Forkee 4909 } 4910 4911 // GetInstallation returns the Installation field. 4912 func (f *ForkEvent) GetInstallation() *Installation { 4913 if f == nil { 4914 return nil 4915 } 4916 return f.Installation 4917 } 4918 4919 // GetRepo returns the Repo field. 4920 func (f *ForkEvent) GetRepo() *Repository { 4921 if f == nil { 4922 return nil 4923 } 4924 return f.Repo 4925 } 4926 4927 // GetSender returns the Sender field. 4928 func (f *ForkEvent) GetSender() *User { 4929 if f == nil { 4930 return nil 4931 } 4932 return f.Sender 4933 } 4934 4935 // GetPreviousTagName returns the PreviousTagName field if it's non-nil, zero value otherwise. 4936 func (g *GenerateNotesOptions) GetPreviousTagName() string { 4937 if g == nil || g.PreviousTagName == nil { 4938 return "" 4939 } 4940 return *g.PreviousTagName 4941 } 4942 4943 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 4944 func (g *GenerateNotesOptions) GetTargetCommitish() string { 4945 if g == nil || g.TargetCommitish == nil { 4946 return "" 4947 } 4948 return *g.TargetCommitish 4949 } 4950 4951 // GetInclude returns the Include field if it's non-nil, zero value otherwise. 4952 func (g *GetAuditLogOptions) GetInclude() string { 4953 if g == nil || g.Include == nil { 4954 return "" 4955 } 4956 return *g.Include 4957 } 4958 4959 // GetOrder returns the Order field if it's non-nil, zero value otherwise. 4960 func (g *GetAuditLogOptions) GetOrder() string { 4961 if g == nil || g.Order == nil { 4962 return "" 4963 } 4964 return *g.Order 4965 } 4966 4967 // GetPhrase returns the Phrase field if it's non-nil, zero value otherwise. 4968 func (g *GetAuditLogOptions) GetPhrase() string { 4969 if g == nil || g.Phrase == nil { 4970 return "" 4971 } 4972 return *g.Phrase 4973 } 4974 4975 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 4976 func (g *Gist) GetComments() int { 4977 if g == nil || g.Comments == nil { 4978 return 0 4979 } 4980 return *g.Comments 4981 } 4982 4983 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4984 func (g *Gist) GetCreatedAt() time.Time { 4985 if g == nil || g.CreatedAt == nil { 4986 return time.Time{} 4987 } 4988 return *g.CreatedAt 4989 } 4990 4991 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4992 func (g *Gist) GetDescription() string { 4993 if g == nil || g.Description == nil { 4994 return "" 4995 } 4996 return *g.Description 4997 } 4998 4999 // GetFiles returns the Files map if it's non-nil, an empty map otherwise. 5000 func (g *Gist) GetFiles() map[GistFilename]GistFile { 5001 if g == nil || g.Files == nil { 5002 return map[GistFilename]GistFile{} 5003 } 5004 return g.Files 5005 } 5006 5007 // GetGitPullURL returns the GitPullURL field if it's non-nil, zero value otherwise. 5008 func (g *Gist) GetGitPullURL() string { 5009 if g == nil || g.GitPullURL == nil { 5010 return "" 5011 } 5012 return *g.GitPullURL 5013 } 5014 5015 // GetGitPushURL returns the GitPushURL field if it's non-nil, zero value otherwise. 5016 func (g *Gist) GetGitPushURL() string { 5017 if g == nil || g.GitPushURL == nil { 5018 return "" 5019 } 5020 return *g.GitPushURL 5021 } 5022 5023 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5024 func (g *Gist) GetHTMLURL() string { 5025 if g == nil || g.HTMLURL == nil { 5026 return "" 5027 } 5028 return *g.HTMLURL 5029 } 5030 5031 // GetID returns the ID field if it's non-nil, zero value otherwise. 5032 func (g *Gist) GetID() string { 5033 if g == nil || g.ID == nil { 5034 return "" 5035 } 5036 return *g.ID 5037 } 5038 5039 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5040 func (g *Gist) GetNodeID() string { 5041 if g == nil || g.NodeID == nil { 5042 return "" 5043 } 5044 return *g.NodeID 5045 } 5046 5047 // GetOwner returns the Owner field. 5048 func (g *Gist) GetOwner() *User { 5049 if g == nil { 5050 return nil 5051 } 5052 return g.Owner 5053 } 5054 5055 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 5056 func (g *Gist) GetPublic() bool { 5057 if g == nil || g.Public == nil { 5058 return false 5059 } 5060 return *g.Public 5061 } 5062 5063 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5064 func (g *Gist) GetUpdatedAt() time.Time { 5065 if g == nil || g.UpdatedAt == nil { 5066 return time.Time{} 5067 } 5068 return *g.UpdatedAt 5069 } 5070 5071 // GetBody returns the Body field if it's non-nil, zero value otherwise. 5072 func (g *GistComment) GetBody() string { 5073 if g == nil || g.Body == nil { 5074 return "" 5075 } 5076 return *g.Body 5077 } 5078 5079 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5080 func (g *GistComment) GetCreatedAt() time.Time { 5081 if g == nil || g.CreatedAt == nil { 5082 return time.Time{} 5083 } 5084 return *g.CreatedAt 5085 } 5086 5087 // GetID returns the ID field if it's non-nil, zero value otherwise. 5088 func (g *GistComment) GetID() int64 { 5089 if g == nil || g.ID == nil { 5090 return 0 5091 } 5092 return *g.ID 5093 } 5094 5095 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5096 func (g *GistComment) GetURL() string { 5097 if g == nil || g.URL == nil { 5098 return "" 5099 } 5100 return *g.URL 5101 } 5102 5103 // GetUser returns the User field. 5104 func (g *GistComment) GetUser() *User { 5105 if g == nil { 5106 return nil 5107 } 5108 return g.User 5109 } 5110 5111 // GetChangeStatus returns the ChangeStatus field. 5112 func (g *GistCommit) GetChangeStatus() *CommitStats { 5113 if g == nil { 5114 return nil 5115 } 5116 return g.ChangeStatus 5117 } 5118 5119 // GetCommittedAt returns the CommittedAt field if it's non-nil, zero value otherwise. 5120 func (g *GistCommit) GetCommittedAt() Timestamp { 5121 if g == nil || g.CommittedAt == nil { 5122 return Timestamp{} 5123 } 5124 return *g.CommittedAt 5125 } 5126 5127 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5128 func (g *GistCommit) GetNodeID() string { 5129 if g == nil || g.NodeID == nil { 5130 return "" 5131 } 5132 return *g.NodeID 5133 } 5134 5135 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5136 func (g *GistCommit) GetURL() string { 5137 if g == nil || g.URL == nil { 5138 return "" 5139 } 5140 return *g.URL 5141 } 5142 5143 // GetUser returns the User field. 5144 func (g *GistCommit) GetUser() *User { 5145 if g == nil { 5146 return nil 5147 } 5148 return g.User 5149 } 5150 5151 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 5152 func (g *GistCommit) GetVersion() string { 5153 if g == nil || g.Version == nil { 5154 return "" 5155 } 5156 return *g.Version 5157 } 5158 5159 // GetContent returns the Content field if it's non-nil, zero value otherwise. 5160 func (g *GistFile) GetContent() string { 5161 if g == nil || g.Content == nil { 5162 return "" 5163 } 5164 return *g.Content 5165 } 5166 5167 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 5168 func (g *GistFile) GetFilename() string { 5169 if g == nil || g.Filename == nil { 5170 return "" 5171 } 5172 return *g.Filename 5173 } 5174 5175 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 5176 func (g *GistFile) GetLanguage() string { 5177 if g == nil || g.Language == nil { 5178 return "" 5179 } 5180 return *g.Language 5181 } 5182 5183 // GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 5184 func (g *GistFile) GetRawURL() string { 5185 if g == nil || g.RawURL == nil { 5186 return "" 5187 } 5188 return *g.RawURL 5189 } 5190 5191 // GetSize returns the Size field if it's non-nil, zero value otherwise. 5192 func (g *GistFile) GetSize() int { 5193 if g == nil || g.Size == nil { 5194 return 0 5195 } 5196 return *g.Size 5197 } 5198 5199 // GetType returns the Type field if it's non-nil, zero value otherwise. 5200 func (g *GistFile) GetType() string { 5201 if g == nil || g.Type == nil { 5202 return "" 5203 } 5204 return *g.Type 5205 } 5206 5207 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5208 func (g *GistFork) GetCreatedAt() Timestamp { 5209 if g == nil || g.CreatedAt == nil { 5210 return Timestamp{} 5211 } 5212 return *g.CreatedAt 5213 } 5214 5215 // GetID returns the ID field if it's non-nil, zero value otherwise. 5216 func (g *GistFork) GetID() string { 5217 if g == nil || g.ID == nil { 5218 return "" 5219 } 5220 return *g.ID 5221 } 5222 5223 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5224 func (g *GistFork) GetNodeID() string { 5225 if g == nil || g.NodeID == nil { 5226 return "" 5227 } 5228 return *g.NodeID 5229 } 5230 5231 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5232 func (g *GistFork) GetUpdatedAt() Timestamp { 5233 if g == nil || g.UpdatedAt == nil { 5234 return Timestamp{} 5235 } 5236 return *g.UpdatedAt 5237 } 5238 5239 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5240 func (g *GistFork) GetURL() string { 5241 if g == nil || g.URL == nil { 5242 return "" 5243 } 5244 return *g.URL 5245 } 5246 5247 // GetUser returns the User field. 5248 func (g *GistFork) GetUser() *User { 5249 if g == nil { 5250 return nil 5251 } 5252 return g.User 5253 } 5254 5255 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 5256 func (g *GistStats) GetPrivateGists() int { 5257 if g == nil || g.PrivateGists == nil { 5258 return 0 5259 } 5260 return *g.PrivateGists 5261 } 5262 5263 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 5264 func (g *GistStats) GetPublicGists() int { 5265 if g == nil || g.PublicGists == nil { 5266 return 0 5267 } 5268 return *g.PublicGists 5269 } 5270 5271 // GetTotalGists returns the TotalGists field if it's non-nil, zero value otherwise. 5272 func (g *GistStats) GetTotalGists() int { 5273 if g == nil || g.TotalGists == nil { 5274 return 0 5275 } 5276 return *g.TotalGists 5277 } 5278 5279 // GetAction returns the Action field if it's non-nil, zero value otherwise. 5280 func (g *GitHubAppAuthorizationEvent) GetAction() string { 5281 if g == nil || g.Action == nil { 5282 return "" 5283 } 5284 return *g.Action 5285 } 5286 5287 // GetInstallation returns the Installation field. 5288 func (g *GitHubAppAuthorizationEvent) GetInstallation() *Installation { 5289 if g == nil { 5290 return nil 5291 } 5292 return g.Installation 5293 } 5294 5295 // GetSender returns the Sender field. 5296 func (g *GitHubAppAuthorizationEvent) GetSender() *User { 5297 if g == nil { 5298 return nil 5299 } 5300 return g.Sender 5301 } 5302 5303 // GetName returns the Name field if it's non-nil, zero value otherwise. 5304 func (g *Gitignore) GetName() string { 5305 if g == nil || g.Name == nil { 5306 return "" 5307 } 5308 return *g.Name 5309 } 5310 5311 // GetSource returns the Source field if it's non-nil, zero value otherwise. 5312 func (g *Gitignore) GetSource() string { 5313 if g == nil || g.Source == nil { 5314 return "" 5315 } 5316 return *g.Source 5317 } 5318 5319 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 5320 func (g *GitObject) GetSHA() string { 5321 if g == nil || g.SHA == nil { 5322 return "" 5323 } 5324 return *g.SHA 5325 } 5326 5327 // GetType returns the Type field if it's non-nil, zero value otherwise. 5328 func (g *GitObject) GetType() string { 5329 if g == nil || g.Type == nil { 5330 return "" 5331 } 5332 return *g.Type 5333 } 5334 5335 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5336 func (g *GitObject) GetURL() string { 5337 if g == nil || g.URL == nil { 5338 return "" 5339 } 5340 return *g.URL 5341 } 5342 5343 // GetInstallation returns the Installation field. 5344 func (g *GollumEvent) GetInstallation() *Installation { 5345 if g == nil { 5346 return nil 5347 } 5348 return g.Installation 5349 } 5350 5351 // GetRepo returns the Repo field. 5352 func (g *GollumEvent) GetRepo() *Repository { 5353 if g == nil { 5354 return nil 5355 } 5356 return g.Repo 5357 } 5358 5359 // GetSender returns the Sender field. 5360 func (g *GollumEvent) GetSender() *User { 5361 if g == nil { 5362 return nil 5363 } 5364 return g.Sender 5365 } 5366 5367 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 5368 func (g *GPGEmail) GetEmail() string { 5369 if g == nil || g.Email == nil { 5370 return "" 5371 } 5372 return *g.Email 5373 } 5374 5375 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 5376 func (g *GPGEmail) GetVerified() bool { 5377 if g == nil || g.Verified == nil { 5378 return false 5379 } 5380 return *g.Verified 5381 } 5382 5383 // GetCanCertify returns the CanCertify field if it's non-nil, zero value otherwise. 5384 func (g *GPGKey) GetCanCertify() bool { 5385 if g == nil || g.CanCertify == nil { 5386 return false 5387 } 5388 return *g.CanCertify 5389 } 5390 5391 // GetCanEncryptComms returns the CanEncryptComms field if it's non-nil, zero value otherwise. 5392 func (g *GPGKey) GetCanEncryptComms() bool { 5393 if g == nil || g.CanEncryptComms == nil { 5394 return false 5395 } 5396 return *g.CanEncryptComms 5397 } 5398 5399 // GetCanEncryptStorage returns the CanEncryptStorage field if it's non-nil, zero value otherwise. 5400 func (g *GPGKey) GetCanEncryptStorage() bool { 5401 if g == nil || g.CanEncryptStorage == nil { 5402 return false 5403 } 5404 return *g.CanEncryptStorage 5405 } 5406 5407 // GetCanSign returns the CanSign field if it's non-nil, zero value otherwise. 5408 func (g *GPGKey) GetCanSign() bool { 5409 if g == nil || g.CanSign == nil { 5410 return false 5411 } 5412 return *g.CanSign 5413 } 5414 5415 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5416 func (g *GPGKey) GetCreatedAt() time.Time { 5417 if g == nil || g.CreatedAt == nil { 5418 return time.Time{} 5419 } 5420 return *g.CreatedAt 5421 } 5422 5423 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 5424 func (g *GPGKey) GetExpiresAt() time.Time { 5425 if g == nil || g.ExpiresAt == nil { 5426 return time.Time{} 5427 } 5428 return *g.ExpiresAt 5429 } 5430 5431 // GetID returns the ID field if it's non-nil, zero value otherwise. 5432 func (g *GPGKey) GetID() int64 { 5433 if g == nil || g.ID == nil { 5434 return 0 5435 } 5436 return *g.ID 5437 } 5438 5439 // GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. 5440 func (g *GPGKey) GetKeyID() string { 5441 if g == nil || g.KeyID == nil { 5442 return "" 5443 } 5444 return *g.KeyID 5445 } 5446 5447 // GetPrimaryKeyID returns the PrimaryKeyID field if it's non-nil, zero value otherwise. 5448 func (g *GPGKey) GetPrimaryKeyID() int64 { 5449 if g == nil || g.PrimaryKeyID == nil { 5450 return 0 5451 } 5452 return *g.PrimaryKeyID 5453 } 5454 5455 // GetPublicKey returns the PublicKey field if it's non-nil, zero value otherwise. 5456 func (g *GPGKey) GetPublicKey() string { 5457 if g == nil || g.PublicKey == nil { 5458 return "" 5459 } 5460 return *g.PublicKey 5461 } 5462 5463 // GetRawKey returns the RawKey field if it's non-nil, zero value otherwise. 5464 func (g *GPGKey) GetRawKey() string { 5465 if g == nil || g.RawKey == nil { 5466 return "" 5467 } 5468 return *g.RawKey 5469 } 5470 5471 // GetApp returns the App field. 5472 func (g *Grant) GetApp() *AuthorizationApp { 5473 if g == nil { 5474 return nil 5475 } 5476 return g.App 5477 } 5478 5479 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5480 func (g *Grant) GetCreatedAt() Timestamp { 5481 if g == nil || g.CreatedAt == nil { 5482 return Timestamp{} 5483 } 5484 return *g.CreatedAt 5485 } 5486 5487 // GetID returns the ID field if it's non-nil, zero value otherwise. 5488 func (g *Grant) GetID() int64 { 5489 if g == nil || g.ID == nil { 5490 return 0 5491 } 5492 return *g.ID 5493 } 5494 5495 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5496 func (g *Grant) GetUpdatedAt() Timestamp { 5497 if g == nil || g.UpdatedAt == nil { 5498 return Timestamp{} 5499 } 5500 return *g.UpdatedAt 5501 } 5502 5503 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5504 func (g *Grant) GetURL() string { 5505 if g == nil || g.URL == nil { 5506 return "" 5507 } 5508 return *g.URL 5509 } 5510 5511 // GetAuthor returns the Author field. 5512 func (h *HeadCommit) GetAuthor() *CommitAuthor { 5513 if h == nil { 5514 return nil 5515 } 5516 return h.Author 5517 } 5518 5519 // GetCommitter returns the Committer field. 5520 func (h *HeadCommit) GetCommitter() *CommitAuthor { 5521 if h == nil { 5522 return nil 5523 } 5524 return h.Committer 5525 } 5526 5527 // GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. 5528 func (h *HeadCommit) GetDistinct() bool { 5529 if h == nil || h.Distinct == nil { 5530 return false 5531 } 5532 return *h.Distinct 5533 } 5534 5535 // GetID returns the ID field if it's non-nil, zero value otherwise. 5536 func (h *HeadCommit) GetID() string { 5537 if h == nil || h.ID == nil { 5538 return "" 5539 } 5540 return *h.ID 5541 } 5542 5543 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 5544 func (h *HeadCommit) GetMessage() string { 5545 if h == nil || h.Message == nil { 5546 return "" 5547 } 5548 return *h.Message 5549 } 5550 5551 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 5552 func (h *HeadCommit) GetSHA() string { 5553 if h == nil || h.SHA == nil { 5554 return "" 5555 } 5556 return *h.SHA 5557 } 5558 5559 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 5560 func (h *HeadCommit) GetTimestamp() Timestamp { 5561 if h == nil || h.Timestamp == nil { 5562 return Timestamp{} 5563 } 5564 return *h.Timestamp 5565 } 5566 5567 // GetTreeID returns the TreeID field if it's non-nil, zero value otherwise. 5568 func (h *HeadCommit) GetTreeID() string { 5569 if h == nil || h.TreeID == nil { 5570 return "" 5571 } 5572 return *h.TreeID 5573 } 5574 5575 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5576 func (h *HeadCommit) GetURL() string { 5577 if h == nil || h.URL == nil { 5578 return "" 5579 } 5580 return *h.URL 5581 } 5582 5583 // GetActive returns the Active field if it's non-nil, zero value otherwise. 5584 func (h *Hook) GetActive() bool { 5585 if h == nil || h.Active == nil { 5586 return false 5587 } 5588 return *h.Active 5589 } 5590 5591 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5592 func (h *Hook) GetCreatedAt() time.Time { 5593 if h == nil || h.CreatedAt == nil { 5594 return time.Time{} 5595 } 5596 return *h.CreatedAt 5597 } 5598 5599 // GetID returns the ID field if it's non-nil, zero value otherwise. 5600 func (h *Hook) GetID() int64 { 5601 if h == nil || h.ID == nil { 5602 return 0 5603 } 5604 return *h.ID 5605 } 5606 5607 // GetName returns the Name field if it's non-nil, zero value otherwise. 5608 func (h *Hook) GetName() string { 5609 if h == nil || h.Name == nil { 5610 return "" 5611 } 5612 return *h.Name 5613 } 5614 5615 // GetPingURL returns the PingURL field if it's non-nil, zero value otherwise. 5616 func (h *Hook) GetPingURL() string { 5617 if h == nil || h.PingURL == nil { 5618 return "" 5619 } 5620 return *h.PingURL 5621 } 5622 5623 // GetTestURL returns the TestURL field if it's non-nil, zero value otherwise. 5624 func (h *Hook) GetTestURL() string { 5625 if h == nil || h.TestURL == nil { 5626 return "" 5627 } 5628 return *h.TestURL 5629 } 5630 5631 // GetType returns the Type field if it's non-nil, zero value otherwise. 5632 func (h *Hook) GetType() string { 5633 if h == nil || h.Type == nil { 5634 return "" 5635 } 5636 return *h.Type 5637 } 5638 5639 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5640 func (h *Hook) GetUpdatedAt() time.Time { 5641 if h == nil || h.UpdatedAt == nil { 5642 return time.Time{} 5643 } 5644 return *h.UpdatedAt 5645 } 5646 5647 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5648 func (h *Hook) GetURL() string { 5649 if h == nil || h.URL == nil { 5650 return "" 5651 } 5652 return *h.URL 5653 } 5654 5655 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 5656 func (h *HookConfig) GetContentType() string { 5657 if h == nil || h.ContentType == nil { 5658 return "" 5659 } 5660 return *h.ContentType 5661 } 5662 5663 // GetInsecureSSL returns the InsecureSSL field if it's non-nil, zero value otherwise. 5664 func (h *HookConfig) GetInsecureSSL() string { 5665 if h == nil || h.InsecureSSL == nil { 5666 return "" 5667 } 5668 return *h.InsecureSSL 5669 } 5670 5671 // GetSecret returns the Secret field if it's non-nil, zero value otherwise. 5672 func (h *HookConfig) GetSecret() string { 5673 if h == nil || h.Secret == nil { 5674 return "" 5675 } 5676 return *h.Secret 5677 } 5678 5679 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5680 func (h *HookConfig) GetURL() string { 5681 if h == nil || h.URL == nil { 5682 return "" 5683 } 5684 return *h.URL 5685 } 5686 5687 // GetAction returns the Action field if it's non-nil, zero value otherwise. 5688 func (h *HookDelivery) GetAction() string { 5689 if h == nil || h.Action == nil { 5690 return "" 5691 } 5692 return *h.Action 5693 } 5694 5695 // GetDeliveredAt returns the DeliveredAt field if it's non-nil, zero value otherwise. 5696 func (h *HookDelivery) GetDeliveredAt() Timestamp { 5697 if h == nil || h.DeliveredAt == nil { 5698 return Timestamp{} 5699 } 5700 return *h.DeliveredAt 5701 } 5702 5703 // GetDuration returns the Duration field. 5704 func (h *HookDelivery) GetDuration() *float64 { 5705 if h == nil { 5706 return nil 5707 } 5708 return h.Duration 5709 } 5710 5711 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 5712 func (h *HookDelivery) GetEvent() string { 5713 if h == nil || h.Event == nil { 5714 return "" 5715 } 5716 return *h.Event 5717 } 5718 5719 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 5720 func (h *HookDelivery) GetGUID() string { 5721 if h == nil || h.GUID == nil { 5722 return "" 5723 } 5724 return *h.GUID 5725 } 5726 5727 // GetID returns the ID field if it's non-nil, zero value otherwise. 5728 func (h *HookDelivery) GetID() int64 { 5729 if h == nil || h.ID == nil { 5730 return 0 5731 } 5732 return *h.ID 5733 } 5734 5735 // GetInstallationID returns the InstallationID field if it's non-nil, zero value otherwise. 5736 func (h *HookDelivery) GetInstallationID() int64 { 5737 if h == nil || h.InstallationID == nil { 5738 return 0 5739 } 5740 return *h.InstallationID 5741 } 5742 5743 // GetRedelivery returns the Redelivery field if it's non-nil, zero value otherwise. 5744 func (h *HookDelivery) GetRedelivery() bool { 5745 if h == nil || h.Redelivery == nil { 5746 return false 5747 } 5748 return *h.Redelivery 5749 } 5750 5751 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 5752 func (h *HookDelivery) GetRepositoryID() int64 { 5753 if h == nil || h.RepositoryID == nil { 5754 return 0 5755 } 5756 return *h.RepositoryID 5757 } 5758 5759 // GetRequest returns the Request field. 5760 func (h *HookDelivery) GetRequest() *HookRequest { 5761 if h == nil { 5762 return nil 5763 } 5764 return h.Request 5765 } 5766 5767 // GetResponse returns the Response field. 5768 func (h *HookDelivery) GetResponse() *HookResponse { 5769 if h == nil { 5770 return nil 5771 } 5772 return h.Response 5773 } 5774 5775 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 5776 func (h *HookDelivery) GetStatus() string { 5777 if h == nil || h.Status == nil { 5778 return "" 5779 } 5780 return *h.Status 5781 } 5782 5783 // GetStatusCode returns the StatusCode field if it's non-nil, zero value otherwise. 5784 func (h *HookDelivery) GetStatusCode() int { 5785 if h == nil || h.StatusCode == nil { 5786 return 0 5787 } 5788 return *h.StatusCode 5789 } 5790 5791 // GetHeaders returns the Headers map if it's non-nil, an empty map otherwise. 5792 func (h *HookRequest) GetHeaders() map[string]string { 5793 if h == nil || h.Headers == nil { 5794 return map[string]string{} 5795 } 5796 return h.Headers 5797 } 5798 5799 // GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 5800 func (h *HookRequest) GetRawPayload() json.RawMessage { 5801 if h == nil || h.RawPayload == nil { 5802 return json.RawMessage{} 5803 } 5804 return *h.RawPayload 5805 } 5806 5807 // GetHeaders returns the Headers map if it's non-nil, an empty map otherwise. 5808 func (h *HookResponse) GetHeaders() map[string]string { 5809 if h == nil || h.Headers == nil { 5810 return map[string]string{} 5811 } 5812 return h.Headers 5813 } 5814 5815 // GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 5816 func (h *HookResponse) GetRawPayload() json.RawMessage { 5817 if h == nil || h.RawPayload == nil { 5818 return json.RawMessage{} 5819 } 5820 return *h.RawPayload 5821 } 5822 5823 // GetActiveHooks returns the ActiveHooks field if it's non-nil, zero value otherwise. 5824 func (h *HookStats) GetActiveHooks() int { 5825 if h == nil || h.ActiveHooks == nil { 5826 return 0 5827 } 5828 return *h.ActiveHooks 5829 } 5830 5831 // GetInactiveHooks returns the InactiveHooks field if it's non-nil, zero value otherwise. 5832 func (h *HookStats) GetInactiveHooks() int { 5833 if h == nil || h.InactiveHooks == nil { 5834 return 0 5835 } 5836 return *h.InactiveHooks 5837 } 5838 5839 // GetTotalHooks returns the TotalHooks field if it's non-nil, zero value otherwise. 5840 func (h *HookStats) GetTotalHooks() int { 5841 if h == nil || h.TotalHooks == nil { 5842 return 0 5843 } 5844 return *h.TotalHooks 5845 } 5846 5847 // GetGroupDescription returns the GroupDescription field if it's non-nil, zero value otherwise. 5848 func (i *IDPGroup) GetGroupDescription() string { 5849 if i == nil || i.GroupDescription == nil { 5850 return "" 5851 } 5852 return *i.GroupDescription 5853 } 5854 5855 // GetGroupID returns the GroupID field if it's non-nil, zero value otherwise. 5856 func (i *IDPGroup) GetGroupID() string { 5857 if i == nil || i.GroupID == nil { 5858 return "" 5859 } 5860 return *i.GroupID 5861 } 5862 5863 // GetGroupName returns the GroupName field if it's non-nil, zero value otherwise. 5864 func (i *IDPGroup) GetGroupName() string { 5865 if i == nil || i.GroupName == nil { 5866 return "" 5867 } 5868 return *i.GroupName 5869 } 5870 5871 // GetAuthorsCount returns the AuthorsCount field if it's non-nil, zero value otherwise. 5872 func (i *Import) GetAuthorsCount() int { 5873 if i == nil || i.AuthorsCount == nil { 5874 return 0 5875 } 5876 return *i.AuthorsCount 5877 } 5878 5879 // GetAuthorsURL returns the AuthorsURL field if it's non-nil, zero value otherwise. 5880 func (i *Import) GetAuthorsURL() string { 5881 if i == nil || i.AuthorsURL == nil { 5882 return "" 5883 } 5884 return *i.AuthorsURL 5885 } 5886 5887 // GetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise. 5888 func (i *Import) GetCommitCount() int { 5889 if i == nil || i.CommitCount == nil { 5890 return 0 5891 } 5892 return *i.CommitCount 5893 } 5894 5895 // GetFailedStep returns the FailedStep field if it's non-nil, zero value otherwise. 5896 func (i *Import) GetFailedStep() string { 5897 if i == nil || i.FailedStep == nil { 5898 return "" 5899 } 5900 return *i.FailedStep 5901 } 5902 5903 // GetHasLargeFiles returns the HasLargeFiles field if it's non-nil, zero value otherwise. 5904 func (i *Import) GetHasLargeFiles() bool { 5905 if i == nil || i.HasLargeFiles == nil { 5906 return false 5907 } 5908 return *i.HasLargeFiles 5909 } 5910 5911 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5912 func (i *Import) GetHTMLURL() string { 5913 if i == nil || i.HTMLURL == nil { 5914 return "" 5915 } 5916 return *i.HTMLURL 5917 } 5918 5919 // GetHumanName returns the HumanName field if it's non-nil, zero value otherwise. 5920 func (i *Import) GetHumanName() string { 5921 if i == nil || i.HumanName == nil { 5922 return "" 5923 } 5924 return *i.HumanName 5925 } 5926 5927 // GetLargeFilesCount returns the LargeFilesCount field if it's non-nil, zero value otherwise. 5928 func (i *Import) GetLargeFilesCount() int { 5929 if i == nil || i.LargeFilesCount == nil { 5930 return 0 5931 } 5932 return *i.LargeFilesCount 5933 } 5934 5935 // GetLargeFilesSize returns the LargeFilesSize field if it's non-nil, zero value otherwise. 5936 func (i *Import) GetLargeFilesSize() int { 5937 if i == nil || i.LargeFilesSize == nil { 5938 return 0 5939 } 5940 return *i.LargeFilesSize 5941 } 5942 5943 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 5944 func (i *Import) GetMessage() string { 5945 if i == nil || i.Message == nil { 5946 return "" 5947 } 5948 return *i.Message 5949 } 5950 5951 // GetPercent returns the Percent field if it's non-nil, zero value otherwise. 5952 func (i *Import) GetPercent() int { 5953 if i == nil || i.Percent == nil { 5954 return 0 5955 } 5956 return *i.Percent 5957 } 5958 5959 // GetPushPercent returns the PushPercent field if it's non-nil, zero value otherwise. 5960 func (i *Import) GetPushPercent() int { 5961 if i == nil || i.PushPercent == nil { 5962 return 0 5963 } 5964 return *i.PushPercent 5965 } 5966 5967 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 5968 func (i *Import) GetRepositoryURL() string { 5969 if i == nil || i.RepositoryURL == nil { 5970 return "" 5971 } 5972 return *i.RepositoryURL 5973 } 5974 5975 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 5976 func (i *Import) GetStatus() string { 5977 if i == nil || i.Status == nil { 5978 return "" 5979 } 5980 return *i.Status 5981 } 5982 5983 // GetStatusText returns the StatusText field if it's non-nil, zero value otherwise. 5984 func (i *Import) GetStatusText() string { 5985 if i == nil || i.StatusText == nil { 5986 return "" 5987 } 5988 return *i.StatusText 5989 } 5990 5991 // GetTFVCProject returns the TFVCProject field if it's non-nil, zero value otherwise. 5992 func (i *Import) GetTFVCProject() string { 5993 if i == nil || i.TFVCProject == nil { 5994 return "" 5995 } 5996 return *i.TFVCProject 5997 } 5998 5999 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6000 func (i *Import) GetURL() string { 6001 if i == nil || i.URL == nil { 6002 return "" 6003 } 6004 return *i.URL 6005 } 6006 6007 // GetUseLFS returns the UseLFS field if it's non-nil, zero value otherwise. 6008 func (i *Import) GetUseLFS() string { 6009 if i == nil || i.UseLFS == nil { 6010 return "" 6011 } 6012 return *i.UseLFS 6013 } 6014 6015 // GetVCS returns the VCS field if it's non-nil, zero value otherwise. 6016 func (i *Import) GetVCS() string { 6017 if i == nil || i.VCS == nil { 6018 return "" 6019 } 6020 return *i.VCS 6021 } 6022 6023 // GetVCSPassword returns the VCSPassword field if it's non-nil, zero value otherwise. 6024 func (i *Import) GetVCSPassword() string { 6025 if i == nil || i.VCSPassword == nil { 6026 return "" 6027 } 6028 return *i.VCSPassword 6029 } 6030 6031 // GetVCSURL returns the VCSURL field if it's non-nil, zero value otherwise. 6032 func (i *Import) GetVCSURL() string { 6033 if i == nil || i.VCSURL == nil { 6034 return "" 6035 } 6036 return *i.VCSURL 6037 } 6038 6039 // GetVCSUsername returns the VCSUsername field if it's non-nil, zero value otherwise. 6040 func (i *Import) GetVCSUsername() string { 6041 if i == nil || i.VCSUsername == nil { 6042 return "" 6043 } 6044 return *i.VCSUsername 6045 } 6046 6047 // GetAccessTokensURL returns the AccessTokensURL field if it's non-nil, zero value otherwise. 6048 func (i *Installation) GetAccessTokensURL() string { 6049 if i == nil || i.AccessTokensURL == nil { 6050 return "" 6051 } 6052 return *i.AccessTokensURL 6053 } 6054 6055 // GetAccount returns the Account field. 6056 func (i *Installation) GetAccount() *User { 6057 if i == nil { 6058 return nil 6059 } 6060 return i.Account 6061 } 6062 6063 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 6064 func (i *Installation) GetAppID() int64 { 6065 if i == nil || i.AppID == nil { 6066 return 0 6067 } 6068 return *i.AppID 6069 } 6070 6071 // GetAppSlug returns the AppSlug field if it's non-nil, zero value otherwise. 6072 func (i *Installation) GetAppSlug() string { 6073 if i == nil || i.AppSlug == nil { 6074 return "" 6075 } 6076 return *i.AppSlug 6077 } 6078 6079 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6080 func (i *Installation) GetCreatedAt() Timestamp { 6081 if i == nil || i.CreatedAt == nil { 6082 return Timestamp{} 6083 } 6084 return *i.CreatedAt 6085 } 6086 6087 // GetHasMultipleSingleFiles returns the HasMultipleSingleFiles field if it's non-nil, zero value otherwise. 6088 func (i *Installation) GetHasMultipleSingleFiles() bool { 6089 if i == nil || i.HasMultipleSingleFiles == nil { 6090 return false 6091 } 6092 return *i.HasMultipleSingleFiles 6093 } 6094 6095 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6096 func (i *Installation) GetHTMLURL() string { 6097 if i == nil || i.HTMLURL == nil { 6098 return "" 6099 } 6100 return *i.HTMLURL 6101 } 6102 6103 // GetID returns the ID field if it's non-nil, zero value otherwise. 6104 func (i *Installation) GetID() int64 { 6105 if i == nil || i.ID == nil { 6106 return 0 6107 } 6108 return *i.ID 6109 } 6110 6111 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6112 func (i *Installation) GetNodeID() string { 6113 if i == nil || i.NodeID == nil { 6114 return "" 6115 } 6116 return *i.NodeID 6117 } 6118 6119 // GetPermissions returns the Permissions field. 6120 func (i *Installation) GetPermissions() *InstallationPermissions { 6121 if i == nil { 6122 return nil 6123 } 6124 return i.Permissions 6125 } 6126 6127 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 6128 func (i *Installation) GetRepositoriesURL() string { 6129 if i == nil || i.RepositoriesURL == nil { 6130 return "" 6131 } 6132 return *i.RepositoriesURL 6133 } 6134 6135 // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 6136 func (i *Installation) GetRepositorySelection() string { 6137 if i == nil || i.RepositorySelection == nil { 6138 return "" 6139 } 6140 return *i.RepositorySelection 6141 } 6142 6143 // GetSingleFileName returns the SingleFileName field if it's non-nil, zero value otherwise. 6144 func (i *Installation) GetSingleFileName() string { 6145 if i == nil || i.SingleFileName == nil { 6146 return "" 6147 } 6148 return *i.SingleFileName 6149 } 6150 6151 // GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise. 6152 func (i *Installation) GetSuspendedAt() Timestamp { 6153 if i == nil || i.SuspendedAt == nil { 6154 return Timestamp{} 6155 } 6156 return *i.SuspendedAt 6157 } 6158 6159 // GetSuspendedBy returns the SuspendedBy field. 6160 func (i *Installation) GetSuspendedBy() *User { 6161 if i == nil { 6162 return nil 6163 } 6164 return i.SuspendedBy 6165 } 6166 6167 // GetTargetID returns the TargetID field if it's non-nil, zero value otherwise. 6168 func (i *Installation) GetTargetID() int64 { 6169 if i == nil || i.TargetID == nil { 6170 return 0 6171 } 6172 return *i.TargetID 6173 } 6174 6175 // GetTargetType returns the TargetType field if it's non-nil, zero value otherwise. 6176 func (i *Installation) GetTargetType() string { 6177 if i == nil || i.TargetType == nil { 6178 return "" 6179 } 6180 return *i.TargetType 6181 } 6182 6183 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6184 func (i *Installation) GetUpdatedAt() Timestamp { 6185 if i == nil || i.UpdatedAt == nil { 6186 return Timestamp{} 6187 } 6188 return *i.UpdatedAt 6189 } 6190 6191 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6192 func (i *InstallationEvent) GetAction() string { 6193 if i == nil || i.Action == nil { 6194 return "" 6195 } 6196 return *i.Action 6197 } 6198 6199 // GetInstallation returns the Installation field. 6200 func (i *InstallationEvent) GetInstallation() *Installation { 6201 if i == nil { 6202 return nil 6203 } 6204 return i.Installation 6205 } 6206 6207 // GetSender returns the Sender field. 6208 func (i *InstallationEvent) GetSender() *User { 6209 if i == nil { 6210 return nil 6211 } 6212 return i.Sender 6213 } 6214 6215 // GetActions returns the Actions field if it's non-nil, zero value otherwise. 6216 func (i *InstallationPermissions) GetActions() string { 6217 if i == nil || i.Actions == nil { 6218 return "" 6219 } 6220 return *i.Actions 6221 } 6222 6223 // GetAdministration returns the Administration field if it's non-nil, zero value otherwise. 6224 func (i *InstallationPermissions) GetAdministration() string { 6225 if i == nil || i.Administration == nil { 6226 return "" 6227 } 6228 return *i.Administration 6229 } 6230 6231 // GetBlocking returns the Blocking field if it's non-nil, zero value otherwise. 6232 func (i *InstallationPermissions) GetBlocking() string { 6233 if i == nil || i.Blocking == nil { 6234 return "" 6235 } 6236 return *i.Blocking 6237 } 6238 6239 // GetChecks returns the Checks field if it's non-nil, zero value otherwise. 6240 func (i *InstallationPermissions) GetChecks() string { 6241 if i == nil || i.Checks == nil { 6242 return "" 6243 } 6244 return *i.Checks 6245 } 6246 6247 // GetContentReferences returns the ContentReferences field if it's non-nil, zero value otherwise. 6248 func (i *InstallationPermissions) GetContentReferences() string { 6249 if i == nil || i.ContentReferences == nil { 6250 return "" 6251 } 6252 return *i.ContentReferences 6253 } 6254 6255 // GetContents returns the Contents field if it's non-nil, zero value otherwise. 6256 func (i *InstallationPermissions) GetContents() string { 6257 if i == nil || i.Contents == nil { 6258 return "" 6259 } 6260 return *i.Contents 6261 } 6262 6263 // GetDeployments returns the Deployments field if it's non-nil, zero value otherwise. 6264 func (i *InstallationPermissions) GetDeployments() string { 6265 if i == nil || i.Deployments == nil { 6266 return "" 6267 } 6268 return *i.Deployments 6269 } 6270 6271 // GetEmails returns the Emails field if it's non-nil, zero value otherwise. 6272 func (i *InstallationPermissions) GetEmails() string { 6273 if i == nil || i.Emails == nil { 6274 return "" 6275 } 6276 return *i.Emails 6277 } 6278 6279 // GetEnvironments returns the Environments field if it's non-nil, zero value otherwise. 6280 func (i *InstallationPermissions) GetEnvironments() string { 6281 if i == nil || i.Environments == nil { 6282 return "" 6283 } 6284 return *i.Environments 6285 } 6286 6287 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 6288 func (i *InstallationPermissions) GetFollowers() string { 6289 if i == nil || i.Followers == nil { 6290 return "" 6291 } 6292 return *i.Followers 6293 } 6294 6295 // GetIssues returns the Issues field if it's non-nil, zero value otherwise. 6296 func (i *InstallationPermissions) GetIssues() string { 6297 if i == nil || i.Issues == nil { 6298 return "" 6299 } 6300 return *i.Issues 6301 } 6302 6303 // GetMembers returns the Members field if it's non-nil, zero value otherwise. 6304 func (i *InstallationPermissions) GetMembers() string { 6305 if i == nil || i.Members == nil { 6306 return "" 6307 } 6308 return *i.Members 6309 } 6310 6311 // GetMetadata returns the Metadata field if it's non-nil, zero value otherwise. 6312 func (i *InstallationPermissions) GetMetadata() string { 6313 if i == nil || i.Metadata == nil { 6314 return "" 6315 } 6316 return *i.Metadata 6317 } 6318 6319 // GetOrganizationAdministration returns the OrganizationAdministration field if it's non-nil, zero value otherwise. 6320 func (i *InstallationPermissions) GetOrganizationAdministration() string { 6321 if i == nil || i.OrganizationAdministration == nil { 6322 return "" 6323 } 6324 return *i.OrganizationAdministration 6325 } 6326 6327 // GetOrganizationHooks returns the OrganizationHooks field if it's non-nil, zero value otherwise. 6328 func (i *InstallationPermissions) GetOrganizationHooks() string { 6329 if i == nil || i.OrganizationHooks == nil { 6330 return "" 6331 } 6332 return *i.OrganizationHooks 6333 } 6334 6335 // GetOrganizationPlan returns the OrganizationPlan field if it's non-nil, zero value otherwise. 6336 func (i *InstallationPermissions) GetOrganizationPlan() string { 6337 if i == nil || i.OrganizationPlan == nil { 6338 return "" 6339 } 6340 return *i.OrganizationPlan 6341 } 6342 6343 // GetOrganizationPreReceiveHooks returns the OrganizationPreReceiveHooks field if it's non-nil, zero value otherwise. 6344 func (i *InstallationPermissions) GetOrganizationPreReceiveHooks() string { 6345 if i == nil || i.OrganizationPreReceiveHooks == nil { 6346 return "" 6347 } 6348 return *i.OrganizationPreReceiveHooks 6349 } 6350 6351 // GetOrganizationProjects returns the OrganizationProjects field if it's non-nil, zero value otherwise. 6352 func (i *InstallationPermissions) GetOrganizationProjects() string { 6353 if i == nil || i.OrganizationProjects == nil { 6354 return "" 6355 } 6356 return *i.OrganizationProjects 6357 } 6358 6359 // GetOrganizationSecrets returns the OrganizationSecrets field if it's non-nil, zero value otherwise. 6360 func (i *InstallationPermissions) GetOrganizationSecrets() string { 6361 if i == nil || i.OrganizationSecrets == nil { 6362 return "" 6363 } 6364 return *i.OrganizationSecrets 6365 } 6366 6367 // GetOrganizationSelfHostedRunners returns the OrganizationSelfHostedRunners field if it's non-nil, zero value otherwise. 6368 func (i *InstallationPermissions) GetOrganizationSelfHostedRunners() string { 6369 if i == nil || i.OrganizationSelfHostedRunners == nil { 6370 return "" 6371 } 6372 return *i.OrganizationSelfHostedRunners 6373 } 6374 6375 // GetOrganizationUserBlocking returns the OrganizationUserBlocking field if it's non-nil, zero value otherwise. 6376 func (i *InstallationPermissions) GetOrganizationUserBlocking() string { 6377 if i == nil || i.OrganizationUserBlocking == nil { 6378 return "" 6379 } 6380 return *i.OrganizationUserBlocking 6381 } 6382 6383 // GetPackages returns the Packages field if it's non-nil, zero value otherwise. 6384 func (i *InstallationPermissions) GetPackages() string { 6385 if i == nil || i.Packages == nil { 6386 return "" 6387 } 6388 return *i.Packages 6389 } 6390 6391 // GetPages returns the Pages field if it's non-nil, zero value otherwise. 6392 func (i *InstallationPermissions) GetPages() string { 6393 if i == nil || i.Pages == nil { 6394 return "" 6395 } 6396 return *i.Pages 6397 } 6398 6399 // GetPullRequests returns the PullRequests field if it's non-nil, zero value otherwise. 6400 func (i *InstallationPermissions) GetPullRequests() string { 6401 if i == nil || i.PullRequests == nil { 6402 return "" 6403 } 6404 return *i.PullRequests 6405 } 6406 6407 // GetRepositoryHooks returns the RepositoryHooks field if it's non-nil, zero value otherwise. 6408 func (i *InstallationPermissions) GetRepositoryHooks() string { 6409 if i == nil || i.RepositoryHooks == nil { 6410 return "" 6411 } 6412 return *i.RepositoryHooks 6413 } 6414 6415 // GetRepositoryPreReceiveHooks returns the RepositoryPreReceiveHooks field if it's non-nil, zero value otherwise. 6416 func (i *InstallationPermissions) GetRepositoryPreReceiveHooks() string { 6417 if i == nil || i.RepositoryPreReceiveHooks == nil { 6418 return "" 6419 } 6420 return *i.RepositoryPreReceiveHooks 6421 } 6422 6423 // GetRepositoryProjects returns the RepositoryProjects field if it's non-nil, zero value otherwise. 6424 func (i *InstallationPermissions) GetRepositoryProjects() string { 6425 if i == nil || i.RepositoryProjects == nil { 6426 return "" 6427 } 6428 return *i.RepositoryProjects 6429 } 6430 6431 // GetSecrets returns the Secrets field if it's non-nil, zero value otherwise. 6432 func (i *InstallationPermissions) GetSecrets() string { 6433 if i == nil || i.Secrets == nil { 6434 return "" 6435 } 6436 return *i.Secrets 6437 } 6438 6439 // GetSecretScanningAlerts returns the SecretScanningAlerts field if it's non-nil, zero value otherwise. 6440 func (i *InstallationPermissions) GetSecretScanningAlerts() string { 6441 if i == nil || i.SecretScanningAlerts == nil { 6442 return "" 6443 } 6444 return *i.SecretScanningAlerts 6445 } 6446 6447 // GetSecurityEvents returns the SecurityEvents field if it's non-nil, zero value otherwise. 6448 func (i *InstallationPermissions) GetSecurityEvents() string { 6449 if i == nil || i.SecurityEvents == nil { 6450 return "" 6451 } 6452 return *i.SecurityEvents 6453 } 6454 6455 // GetSingleFile returns the SingleFile field if it's non-nil, zero value otherwise. 6456 func (i *InstallationPermissions) GetSingleFile() string { 6457 if i == nil || i.SingleFile == nil { 6458 return "" 6459 } 6460 return *i.SingleFile 6461 } 6462 6463 // GetStatuses returns the Statuses field if it's non-nil, zero value otherwise. 6464 func (i *InstallationPermissions) GetStatuses() string { 6465 if i == nil || i.Statuses == nil { 6466 return "" 6467 } 6468 return *i.Statuses 6469 } 6470 6471 // GetTeamDiscussions returns the TeamDiscussions field if it's non-nil, zero value otherwise. 6472 func (i *InstallationPermissions) GetTeamDiscussions() string { 6473 if i == nil || i.TeamDiscussions == nil { 6474 return "" 6475 } 6476 return *i.TeamDiscussions 6477 } 6478 6479 // GetVulnerabilityAlerts returns the VulnerabilityAlerts field if it's non-nil, zero value otherwise. 6480 func (i *InstallationPermissions) GetVulnerabilityAlerts() string { 6481 if i == nil || i.VulnerabilityAlerts == nil { 6482 return "" 6483 } 6484 return *i.VulnerabilityAlerts 6485 } 6486 6487 // GetWorkflows returns the Workflows field if it's non-nil, zero value otherwise. 6488 func (i *InstallationPermissions) GetWorkflows() string { 6489 if i == nil || i.Workflows == nil { 6490 return "" 6491 } 6492 return *i.Workflows 6493 } 6494 6495 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6496 func (i *InstallationRepositoriesEvent) GetAction() string { 6497 if i == nil || i.Action == nil { 6498 return "" 6499 } 6500 return *i.Action 6501 } 6502 6503 // GetInstallation returns the Installation field. 6504 func (i *InstallationRepositoriesEvent) GetInstallation() *Installation { 6505 if i == nil { 6506 return nil 6507 } 6508 return i.Installation 6509 } 6510 6511 // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 6512 func (i *InstallationRepositoriesEvent) GetRepositorySelection() string { 6513 if i == nil || i.RepositorySelection == nil { 6514 return "" 6515 } 6516 return *i.RepositorySelection 6517 } 6518 6519 // GetSender returns the Sender field. 6520 func (i *InstallationRepositoriesEvent) GetSender() *User { 6521 if i == nil { 6522 return nil 6523 } 6524 return i.Sender 6525 } 6526 6527 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 6528 func (i *InstallationToken) GetExpiresAt() time.Time { 6529 if i == nil || i.ExpiresAt == nil { 6530 return time.Time{} 6531 } 6532 return *i.ExpiresAt 6533 } 6534 6535 // GetPermissions returns the Permissions field. 6536 func (i *InstallationToken) GetPermissions() *InstallationPermissions { 6537 if i == nil { 6538 return nil 6539 } 6540 return i.Permissions 6541 } 6542 6543 // GetToken returns the Token field if it's non-nil, zero value otherwise. 6544 func (i *InstallationToken) GetToken() string { 6545 if i == nil || i.Token == nil { 6546 return "" 6547 } 6548 return *i.Token 6549 } 6550 6551 // GetPermissions returns the Permissions field. 6552 func (i *InstallationTokenOptions) GetPermissions() *InstallationPermissions { 6553 if i == nil { 6554 return nil 6555 } 6556 return i.Permissions 6557 } 6558 6559 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 6560 func (i *InteractionRestriction) GetExpiresAt() Timestamp { 6561 if i == nil || i.ExpiresAt == nil { 6562 return Timestamp{} 6563 } 6564 return *i.ExpiresAt 6565 } 6566 6567 // GetLimit returns the Limit field if it's non-nil, zero value otherwise. 6568 func (i *InteractionRestriction) GetLimit() string { 6569 if i == nil || i.Limit == nil { 6570 return "" 6571 } 6572 return *i.Limit 6573 } 6574 6575 // GetOrigin returns the Origin field if it's non-nil, zero value otherwise. 6576 func (i *InteractionRestriction) GetOrigin() string { 6577 if i == nil || i.Origin == nil { 6578 return "" 6579 } 6580 return *i.Origin 6581 } 6582 6583 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6584 func (i *Invitation) GetCreatedAt() time.Time { 6585 if i == nil || i.CreatedAt == nil { 6586 return time.Time{} 6587 } 6588 return *i.CreatedAt 6589 } 6590 6591 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 6592 func (i *Invitation) GetEmail() string { 6593 if i == nil || i.Email == nil { 6594 return "" 6595 } 6596 return *i.Email 6597 } 6598 6599 // GetFailedAt returns the FailedAt field if it's non-nil, zero value otherwise. 6600 func (i *Invitation) GetFailedAt() Timestamp { 6601 if i == nil || i.FailedAt == nil { 6602 return Timestamp{} 6603 } 6604 return *i.FailedAt 6605 } 6606 6607 // GetFailedReason returns the FailedReason field if it's non-nil, zero value otherwise. 6608 func (i *Invitation) GetFailedReason() string { 6609 if i == nil || i.FailedReason == nil { 6610 return "" 6611 } 6612 return *i.FailedReason 6613 } 6614 6615 // GetID returns the ID field if it's non-nil, zero value otherwise. 6616 func (i *Invitation) GetID() int64 { 6617 if i == nil || i.ID == nil { 6618 return 0 6619 } 6620 return *i.ID 6621 } 6622 6623 // GetInvitationTeamURL returns the InvitationTeamURL field if it's non-nil, zero value otherwise. 6624 func (i *Invitation) GetInvitationTeamURL() string { 6625 if i == nil || i.InvitationTeamURL == nil { 6626 return "" 6627 } 6628 return *i.InvitationTeamURL 6629 } 6630 6631 // GetInviter returns the Inviter field. 6632 func (i *Invitation) GetInviter() *User { 6633 if i == nil { 6634 return nil 6635 } 6636 return i.Inviter 6637 } 6638 6639 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 6640 func (i *Invitation) GetLogin() string { 6641 if i == nil || i.Login == nil { 6642 return "" 6643 } 6644 return *i.Login 6645 } 6646 6647 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6648 func (i *Invitation) GetNodeID() string { 6649 if i == nil || i.NodeID == nil { 6650 return "" 6651 } 6652 return *i.NodeID 6653 } 6654 6655 // GetRole returns the Role field if it's non-nil, zero value otherwise. 6656 func (i *Invitation) GetRole() string { 6657 if i == nil || i.Role == nil { 6658 return "" 6659 } 6660 return *i.Role 6661 } 6662 6663 // GetTeamCount returns the TeamCount field if it's non-nil, zero value otherwise. 6664 func (i *Invitation) GetTeamCount() int { 6665 if i == nil || i.TeamCount == nil { 6666 return 0 6667 } 6668 return *i.TeamCount 6669 } 6670 6671 // GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 6672 func (i *Issue) GetActiveLockReason() string { 6673 if i == nil || i.ActiveLockReason == nil { 6674 return "" 6675 } 6676 return *i.ActiveLockReason 6677 } 6678 6679 // GetAssignee returns the Assignee field. 6680 func (i *Issue) GetAssignee() *User { 6681 if i == nil { 6682 return nil 6683 } 6684 return i.Assignee 6685 } 6686 6687 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 6688 func (i *Issue) GetAuthorAssociation() string { 6689 if i == nil || i.AuthorAssociation == nil { 6690 return "" 6691 } 6692 return *i.AuthorAssociation 6693 } 6694 6695 // GetBody returns the Body field if it's non-nil, zero value otherwise. 6696 func (i *Issue) GetBody() string { 6697 if i == nil || i.Body == nil { 6698 return "" 6699 } 6700 return *i.Body 6701 } 6702 6703 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 6704 func (i *Issue) GetClosedAt() time.Time { 6705 if i == nil || i.ClosedAt == nil { 6706 return time.Time{} 6707 } 6708 return *i.ClosedAt 6709 } 6710 6711 // GetClosedBy returns the ClosedBy field. 6712 func (i *Issue) GetClosedBy() *User { 6713 if i == nil { 6714 return nil 6715 } 6716 return i.ClosedBy 6717 } 6718 6719 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 6720 func (i *Issue) GetComments() int { 6721 if i == nil || i.Comments == nil { 6722 return 0 6723 } 6724 return *i.Comments 6725 } 6726 6727 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 6728 func (i *Issue) GetCommentsURL() string { 6729 if i == nil || i.CommentsURL == nil { 6730 return "" 6731 } 6732 return *i.CommentsURL 6733 } 6734 6735 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6736 func (i *Issue) GetCreatedAt() time.Time { 6737 if i == nil || i.CreatedAt == nil { 6738 return time.Time{} 6739 } 6740 return *i.CreatedAt 6741 } 6742 6743 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 6744 func (i *Issue) GetEventsURL() string { 6745 if i == nil || i.EventsURL == nil { 6746 return "" 6747 } 6748 return *i.EventsURL 6749 } 6750 6751 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6752 func (i *Issue) GetHTMLURL() string { 6753 if i == nil || i.HTMLURL == nil { 6754 return "" 6755 } 6756 return *i.HTMLURL 6757 } 6758 6759 // GetID returns the ID field if it's non-nil, zero value otherwise. 6760 func (i *Issue) GetID() int64 { 6761 if i == nil || i.ID == nil { 6762 return 0 6763 } 6764 return *i.ID 6765 } 6766 6767 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 6768 func (i *Issue) GetLabelsURL() string { 6769 if i == nil || i.LabelsURL == nil { 6770 return "" 6771 } 6772 return *i.LabelsURL 6773 } 6774 6775 // GetLocked returns the Locked field if it's non-nil, zero value otherwise. 6776 func (i *Issue) GetLocked() bool { 6777 if i == nil || i.Locked == nil { 6778 return false 6779 } 6780 return *i.Locked 6781 } 6782 6783 // GetMilestone returns the Milestone field. 6784 func (i *Issue) GetMilestone() *Milestone { 6785 if i == nil { 6786 return nil 6787 } 6788 return i.Milestone 6789 } 6790 6791 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6792 func (i *Issue) GetNodeID() string { 6793 if i == nil || i.NodeID == nil { 6794 return "" 6795 } 6796 return *i.NodeID 6797 } 6798 6799 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 6800 func (i *Issue) GetNumber() int { 6801 if i == nil || i.Number == nil { 6802 return 0 6803 } 6804 return *i.Number 6805 } 6806 6807 // GetPullRequestLinks returns the PullRequestLinks field. 6808 func (i *Issue) GetPullRequestLinks() *PullRequestLinks { 6809 if i == nil { 6810 return nil 6811 } 6812 return i.PullRequestLinks 6813 } 6814 6815 // GetReactions returns the Reactions field. 6816 func (i *Issue) GetReactions() *Reactions { 6817 if i == nil { 6818 return nil 6819 } 6820 return i.Reactions 6821 } 6822 6823 // GetRepository returns the Repository field. 6824 func (i *Issue) GetRepository() *Repository { 6825 if i == nil { 6826 return nil 6827 } 6828 return i.Repository 6829 } 6830 6831 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 6832 func (i *Issue) GetRepositoryURL() string { 6833 if i == nil || i.RepositoryURL == nil { 6834 return "" 6835 } 6836 return *i.RepositoryURL 6837 } 6838 6839 // GetState returns the State field if it's non-nil, zero value otherwise. 6840 func (i *Issue) GetState() string { 6841 if i == nil || i.State == nil { 6842 return "" 6843 } 6844 return *i.State 6845 } 6846 6847 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 6848 func (i *Issue) GetTitle() string { 6849 if i == nil || i.Title == nil { 6850 return "" 6851 } 6852 return *i.Title 6853 } 6854 6855 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6856 func (i *Issue) GetUpdatedAt() time.Time { 6857 if i == nil || i.UpdatedAt == nil { 6858 return time.Time{} 6859 } 6860 return *i.UpdatedAt 6861 } 6862 6863 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6864 func (i *Issue) GetURL() string { 6865 if i == nil || i.URL == nil { 6866 return "" 6867 } 6868 return *i.URL 6869 } 6870 6871 // GetUser returns the User field. 6872 func (i *Issue) GetUser() *User { 6873 if i == nil { 6874 return nil 6875 } 6876 return i.User 6877 } 6878 6879 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 6880 func (i *IssueComment) GetAuthorAssociation() string { 6881 if i == nil || i.AuthorAssociation == nil { 6882 return "" 6883 } 6884 return *i.AuthorAssociation 6885 } 6886 6887 // GetBody returns the Body field if it's non-nil, zero value otherwise. 6888 func (i *IssueComment) GetBody() string { 6889 if i == nil || i.Body == nil { 6890 return "" 6891 } 6892 return *i.Body 6893 } 6894 6895 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6896 func (i *IssueComment) GetCreatedAt() time.Time { 6897 if i == nil || i.CreatedAt == nil { 6898 return time.Time{} 6899 } 6900 return *i.CreatedAt 6901 } 6902 6903 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6904 func (i *IssueComment) GetHTMLURL() string { 6905 if i == nil || i.HTMLURL == nil { 6906 return "" 6907 } 6908 return *i.HTMLURL 6909 } 6910 6911 // GetID returns the ID field if it's non-nil, zero value otherwise. 6912 func (i *IssueComment) GetID() int64 { 6913 if i == nil || i.ID == nil { 6914 return 0 6915 } 6916 return *i.ID 6917 } 6918 6919 // GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 6920 func (i *IssueComment) GetIssueURL() string { 6921 if i == nil || i.IssueURL == nil { 6922 return "" 6923 } 6924 return *i.IssueURL 6925 } 6926 6927 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6928 func (i *IssueComment) GetNodeID() string { 6929 if i == nil || i.NodeID == nil { 6930 return "" 6931 } 6932 return *i.NodeID 6933 } 6934 6935 // GetReactions returns the Reactions field. 6936 func (i *IssueComment) GetReactions() *Reactions { 6937 if i == nil { 6938 return nil 6939 } 6940 return i.Reactions 6941 } 6942 6943 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6944 func (i *IssueComment) GetUpdatedAt() time.Time { 6945 if i == nil || i.UpdatedAt == nil { 6946 return time.Time{} 6947 } 6948 return *i.UpdatedAt 6949 } 6950 6951 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6952 func (i *IssueComment) GetURL() string { 6953 if i == nil || i.URL == nil { 6954 return "" 6955 } 6956 return *i.URL 6957 } 6958 6959 // GetUser returns the User field. 6960 func (i *IssueComment) GetUser() *User { 6961 if i == nil { 6962 return nil 6963 } 6964 return i.User 6965 } 6966 6967 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6968 func (i *IssueCommentEvent) GetAction() string { 6969 if i == nil || i.Action == nil { 6970 return "" 6971 } 6972 return *i.Action 6973 } 6974 6975 // GetChanges returns the Changes field. 6976 func (i *IssueCommentEvent) GetChanges() *EditChange { 6977 if i == nil { 6978 return nil 6979 } 6980 return i.Changes 6981 } 6982 6983 // GetComment returns the Comment field. 6984 func (i *IssueCommentEvent) GetComment() *IssueComment { 6985 if i == nil { 6986 return nil 6987 } 6988 return i.Comment 6989 } 6990 6991 // GetInstallation returns the Installation field. 6992 func (i *IssueCommentEvent) GetInstallation() *Installation { 6993 if i == nil { 6994 return nil 6995 } 6996 return i.Installation 6997 } 6998 6999 // GetIssue returns the Issue field. 7000 func (i *IssueCommentEvent) GetIssue() *Issue { 7001 if i == nil { 7002 return nil 7003 } 7004 return i.Issue 7005 } 7006 7007 // GetOrganization returns the Organization field. 7008 func (i *IssueCommentEvent) GetOrganization() *Organization { 7009 if i == nil { 7010 return nil 7011 } 7012 return i.Organization 7013 } 7014 7015 // GetRepo returns the Repo field. 7016 func (i *IssueCommentEvent) GetRepo() *Repository { 7017 if i == nil { 7018 return nil 7019 } 7020 return i.Repo 7021 } 7022 7023 // GetSender returns the Sender field. 7024 func (i *IssueCommentEvent) GetSender() *User { 7025 if i == nil { 7026 return nil 7027 } 7028 return i.Sender 7029 } 7030 7031 // GetActor returns the Actor field. 7032 func (i *IssueEvent) GetActor() *User { 7033 if i == nil { 7034 return nil 7035 } 7036 return i.Actor 7037 } 7038 7039 // GetAssignee returns the Assignee field. 7040 func (i *IssueEvent) GetAssignee() *User { 7041 if i == nil { 7042 return nil 7043 } 7044 return i.Assignee 7045 } 7046 7047 // GetAssigner returns the Assigner field. 7048 func (i *IssueEvent) GetAssigner() *User { 7049 if i == nil { 7050 return nil 7051 } 7052 return i.Assigner 7053 } 7054 7055 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 7056 func (i *IssueEvent) GetCommitID() string { 7057 if i == nil || i.CommitID == nil { 7058 return "" 7059 } 7060 return *i.CommitID 7061 } 7062 7063 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7064 func (i *IssueEvent) GetCreatedAt() time.Time { 7065 if i == nil || i.CreatedAt == nil { 7066 return time.Time{} 7067 } 7068 return *i.CreatedAt 7069 } 7070 7071 // GetDismissedReview returns the DismissedReview field. 7072 func (i *IssueEvent) GetDismissedReview() *DismissedReview { 7073 if i == nil { 7074 return nil 7075 } 7076 return i.DismissedReview 7077 } 7078 7079 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 7080 func (i *IssueEvent) GetEvent() string { 7081 if i == nil || i.Event == nil { 7082 return "" 7083 } 7084 return *i.Event 7085 } 7086 7087 // GetID returns the ID field if it's non-nil, zero value otherwise. 7088 func (i *IssueEvent) GetID() int64 { 7089 if i == nil || i.ID == nil { 7090 return 0 7091 } 7092 return *i.ID 7093 } 7094 7095 // GetIssue returns the Issue field. 7096 func (i *IssueEvent) GetIssue() *Issue { 7097 if i == nil { 7098 return nil 7099 } 7100 return i.Issue 7101 } 7102 7103 // GetLabel returns the Label field. 7104 func (i *IssueEvent) GetLabel() *Label { 7105 if i == nil { 7106 return nil 7107 } 7108 return i.Label 7109 } 7110 7111 // GetLockReason returns the LockReason field if it's non-nil, zero value otherwise. 7112 func (i *IssueEvent) GetLockReason() string { 7113 if i == nil || i.LockReason == nil { 7114 return "" 7115 } 7116 return *i.LockReason 7117 } 7118 7119 // GetMilestone returns the Milestone field. 7120 func (i *IssueEvent) GetMilestone() *Milestone { 7121 if i == nil { 7122 return nil 7123 } 7124 return i.Milestone 7125 } 7126 7127 // GetProjectCard returns the ProjectCard field. 7128 func (i *IssueEvent) GetProjectCard() *ProjectCard { 7129 if i == nil { 7130 return nil 7131 } 7132 return i.ProjectCard 7133 } 7134 7135 // GetRename returns the Rename field. 7136 func (i *IssueEvent) GetRename() *Rename { 7137 if i == nil { 7138 return nil 7139 } 7140 return i.Rename 7141 } 7142 7143 // GetRequestedReviewer returns the RequestedReviewer field. 7144 func (i *IssueEvent) GetRequestedReviewer() *User { 7145 if i == nil { 7146 return nil 7147 } 7148 return i.RequestedReviewer 7149 } 7150 7151 // GetReviewRequester returns the ReviewRequester field. 7152 func (i *IssueEvent) GetReviewRequester() *User { 7153 if i == nil { 7154 return nil 7155 } 7156 return i.ReviewRequester 7157 } 7158 7159 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7160 func (i *IssueEvent) GetURL() string { 7161 if i == nil || i.URL == nil { 7162 return "" 7163 } 7164 return *i.URL 7165 } 7166 7167 // GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. 7168 func (i *IssueImport) GetAssignee() string { 7169 if i == nil || i.Assignee == nil { 7170 return "" 7171 } 7172 return *i.Assignee 7173 } 7174 7175 // GetClosed returns the Closed field if it's non-nil, zero value otherwise. 7176 func (i *IssueImport) GetClosed() bool { 7177 if i == nil || i.Closed == nil { 7178 return false 7179 } 7180 return *i.Closed 7181 } 7182 7183 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 7184 func (i *IssueImport) GetClosedAt() time.Time { 7185 if i == nil || i.ClosedAt == nil { 7186 return time.Time{} 7187 } 7188 return *i.ClosedAt 7189 } 7190 7191 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7192 func (i *IssueImport) GetCreatedAt() time.Time { 7193 if i == nil || i.CreatedAt == nil { 7194 return time.Time{} 7195 } 7196 return *i.CreatedAt 7197 } 7198 7199 // GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. 7200 func (i *IssueImport) GetMilestone() int { 7201 if i == nil || i.Milestone == nil { 7202 return 0 7203 } 7204 return *i.Milestone 7205 } 7206 7207 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7208 func (i *IssueImport) GetUpdatedAt() time.Time { 7209 if i == nil || i.UpdatedAt == nil { 7210 return time.Time{} 7211 } 7212 return *i.UpdatedAt 7213 } 7214 7215 // GetCode returns the Code field if it's non-nil, zero value otherwise. 7216 func (i *IssueImportError) GetCode() string { 7217 if i == nil || i.Code == nil { 7218 return "" 7219 } 7220 return *i.Code 7221 } 7222 7223 // GetField returns the Field field if it's non-nil, zero value otherwise. 7224 func (i *IssueImportError) GetField() string { 7225 if i == nil || i.Field == nil { 7226 return "" 7227 } 7228 return *i.Field 7229 } 7230 7231 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 7232 func (i *IssueImportError) GetLocation() string { 7233 if i == nil || i.Location == nil { 7234 return "" 7235 } 7236 return *i.Location 7237 } 7238 7239 // GetResource returns the Resource field if it's non-nil, zero value otherwise. 7240 func (i *IssueImportError) GetResource() string { 7241 if i == nil || i.Resource == nil { 7242 return "" 7243 } 7244 return *i.Resource 7245 } 7246 7247 // GetValue returns the Value field if it's non-nil, zero value otherwise. 7248 func (i *IssueImportError) GetValue() string { 7249 if i == nil || i.Value == nil { 7250 return "" 7251 } 7252 return *i.Value 7253 } 7254 7255 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7256 func (i *IssueImportResponse) GetCreatedAt() time.Time { 7257 if i == nil || i.CreatedAt == nil { 7258 return time.Time{} 7259 } 7260 return *i.CreatedAt 7261 } 7262 7263 // GetDocumentationURL returns the DocumentationURL field if it's non-nil, zero value otherwise. 7264 func (i *IssueImportResponse) GetDocumentationURL() string { 7265 if i == nil || i.DocumentationURL == nil { 7266 return "" 7267 } 7268 return *i.DocumentationURL 7269 } 7270 7271 // GetID returns the ID field if it's non-nil, zero value otherwise. 7272 func (i *IssueImportResponse) GetID() int { 7273 if i == nil || i.ID == nil { 7274 return 0 7275 } 7276 return *i.ID 7277 } 7278 7279 // GetImportIssuesURL returns the ImportIssuesURL field if it's non-nil, zero value otherwise. 7280 func (i *IssueImportResponse) GetImportIssuesURL() string { 7281 if i == nil || i.ImportIssuesURL == nil { 7282 return "" 7283 } 7284 return *i.ImportIssuesURL 7285 } 7286 7287 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 7288 func (i *IssueImportResponse) GetMessage() string { 7289 if i == nil || i.Message == nil { 7290 return "" 7291 } 7292 return *i.Message 7293 } 7294 7295 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 7296 func (i *IssueImportResponse) GetRepositoryURL() string { 7297 if i == nil || i.RepositoryURL == nil { 7298 return "" 7299 } 7300 return *i.RepositoryURL 7301 } 7302 7303 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 7304 func (i *IssueImportResponse) GetStatus() string { 7305 if i == nil || i.Status == nil { 7306 return "" 7307 } 7308 return *i.Status 7309 } 7310 7311 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7312 func (i *IssueImportResponse) GetUpdatedAt() time.Time { 7313 if i == nil || i.UpdatedAt == nil { 7314 return time.Time{} 7315 } 7316 return *i.UpdatedAt 7317 } 7318 7319 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7320 func (i *IssueImportResponse) GetURL() string { 7321 if i == nil || i.URL == nil { 7322 return "" 7323 } 7324 return *i.URL 7325 } 7326 7327 // GetDirection returns the Direction field if it's non-nil, zero value otherwise. 7328 func (i *IssueListCommentsOptions) GetDirection() string { 7329 if i == nil || i.Direction == nil { 7330 return "" 7331 } 7332 return *i.Direction 7333 } 7334 7335 // GetSince returns the Since field if it's non-nil, zero value otherwise. 7336 func (i *IssueListCommentsOptions) GetSince() time.Time { 7337 if i == nil || i.Since == nil { 7338 return time.Time{} 7339 } 7340 return *i.Since 7341 } 7342 7343 // GetSort returns the Sort field if it's non-nil, zero value otherwise. 7344 func (i *IssueListCommentsOptions) GetSort() string { 7345 if i == nil || i.Sort == nil { 7346 return "" 7347 } 7348 return *i.Sort 7349 } 7350 7351 // GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. 7352 func (i *IssueRequest) GetAssignee() string { 7353 if i == nil || i.Assignee == nil { 7354 return "" 7355 } 7356 return *i.Assignee 7357 } 7358 7359 // GetAssignees returns the Assignees field if it's non-nil, zero value otherwise. 7360 func (i *IssueRequest) GetAssignees() []string { 7361 if i == nil || i.Assignees == nil { 7362 return nil 7363 } 7364 return *i.Assignees 7365 } 7366 7367 // GetBody returns the Body field if it's non-nil, zero value otherwise. 7368 func (i *IssueRequest) GetBody() string { 7369 if i == nil || i.Body == nil { 7370 return "" 7371 } 7372 return *i.Body 7373 } 7374 7375 // GetLabels returns the Labels field if it's non-nil, zero value otherwise. 7376 func (i *IssueRequest) GetLabels() []string { 7377 if i == nil || i.Labels == nil { 7378 return nil 7379 } 7380 return *i.Labels 7381 } 7382 7383 // GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. 7384 func (i *IssueRequest) GetMilestone() int { 7385 if i == nil || i.Milestone == nil { 7386 return 0 7387 } 7388 return *i.Milestone 7389 } 7390 7391 // GetState returns the State field if it's non-nil, zero value otherwise. 7392 func (i *IssueRequest) GetState() string { 7393 if i == nil || i.State == nil { 7394 return "" 7395 } 7396 return *i.State 7397 } 7398 7399 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 7400 func (i *IssueRequest) GetTitle() string { 7401 if i == nil || i.Title == nil { 7402 return "" 7403 } 7404 return *i.Title 7405 } 7406 7407 // GetAction returns the Action field if it's non-nil, zero value otherwise. 7408 func (i *IssuesEvent) GetAction() string { 7409 if i == nil || i.Action == nil { 7410 return "" 7411 } 7412 return *i.Action 7413 } 7414 7415 // GetAssignee returns the Assignee field. 7416 func (i *IssuesEvent) GetAssignee() *User { 7417 if i == nil { 7418 return nil 7419 } 7420 return i.Assignee 7421 } 7422 7423 // GetChanges returns the Changes field. 7424 func (i *IssuesEvent) GetChanges() *EditChange { 7425 if i == nil { 7426 return nil 7427 } 7428 return i.Changes 7429 } 7430 7431 // GetInstallation returns the Installation field. 7432 func (i *IssuesEvent) GetInstallation() *Installation { 7433 if i == nil { 7434 return nil 7435 } 7436 return i.Installation 7437 } 7438 7439 // GetIssue returns the Issue field. 7440 func (i *IssuesEvent) GetIssue() *Issue { 7441 if i == nil { 7442 return nil 7443 } 7444 return i.Issue 7445 } 7446 7447 // GetLabel returns the Label field. 7448 func (i *IssuesEvent) GetLabel() *Label { 7449 if i == nil { 7450 return nil 7451 } 7452 return i.Label 7453 } 7454 7455 // GetRepo returns the Repo field. 7456 func (i *IssuesEvent) GetRepo() *Repository { 7457 if i == nil { 7458 return nil 7459 } 7460 return i.Repo 7461 } 7462 7463 // GetSender returns the Sender field. 7464 func (i *IssuesEvent) GetSender() *User { 7465 if i == nil { 7466 return nil 7467 } 7468 return i.Sender 7469 } 7470 7471 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 7472 func (i *IssuesSearchResult) GetIncompleteResults() bool { 7473 if i == nil || i.IncompleteResults == nil { 7474 return false 7475 } 7476 return *i.IncompleteResults 7477 } 7478 7479 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 7480 func (i *IssuesSearchResult) GetTotal() int { 7481 if i == nil || i.Total == nil { 7482 return 0 7483 } 7484 return *i.Total 7485 } 7486 7487 // GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. 7488 func (i *IssueStats) GetClosedIssues() int { 7489 if i == nil || i.ClosedIssues == nil { 7490 return 0 7491 } 7492 return *i.ClosedIssues 7493 } 7494 7495 // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 7496 func (i *IssueStats) GetOpenIssues() int { 7497 if i == nil || i.OpenIssues == nil { 7498 return 0 7499 } 7500 return *i.OpenIssues 7501 } 7502 7503 // GetTotalIssues returns the TotalIssues field if it's non-nil, zero value otherwise. 7504 func (i *IssueStats) GetTotalIssues() int { 7505 if i == nil || i.TotalIssues == nil { 7506 return 0 7507 } 7508 return *i.TotalIssues 7509 } 7510 7511 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 7512 func (j *Jobs) GetTotalCount() int { 7513 if j == nil || j.TotalCount == nil { 7514 return 0 7515 } 7516 return *j.TotalCount 7517 } 7518 7519 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7520 func (k *Key) GetCreatedAt() Timestamp { 7521 if k == nil || k.CreatedAt == nil { 7522 return Timestamp{} 7523 } 7524 return *k.CreatedAt 7525 } 7526 7527 // GetID returns the ID field if it's non-nil, zero value otherwise. 7528 func (k *Key) GetID() int64 { 7529 if k == nil || k.ID == nil { 7530 return 0 7531 } 7532 return *k.ID 7533 } 7534 7535 // GetKey returns the Key field if it's non-nil, zero value otherwise. 7536 func (k *Key) GetKey() string { 7537 if k == nil || k.Key == nil { 7538 return "" 7539 } 7540 return *k.Key 7541 } 7542 7543 // GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise. 7544 func (k *Key) GetReadOnly() bool { 7545 if k == nil || k.ReadOnly == nil { 7546 return false 7547 } 7548 return *k.ReadOnly 7549 } 7550 7551 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 7552 func (k *Key) GetTitle() string { 7553 if k == nil || k.Title == nil { 7554 return "" 7555 } 7556 return *k.Title 7557 } 7558 7559 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7560 func (k *Key) GetURL() string { 7561 if k == nil || k.URL == nil { 7562 return "" 7563 } 7564 return *k.URL 7565 } 7566 7567 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 7568 func (k *Key) GetVerified() bool { 7569 if k == nil || k.Verified == nil { 7570 return false 7571 } 7572 return *k.Verified 7573 } 7574 7575 // GetColor returns the Color field if it's non-nil, zero value otherwise. 7576 func (l *Label) GetColor() string { 7577 if l == nil || l.Color == nil { 7578 return "" 7579 } 7580 return *l.Color 7581 } 7582 7583 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 7584 func (l *Label) GetDefault() bool { 7585 if l == nil || l.Default == nil { 7586 return false 7587 } 7588 return *l.Default 7589 } 7590 7591 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 7592 func (l *Label) GetDescription() string { 7593 if l == nil || l.Description == nil { 7594 return "" 7595 } 7596 return *l.Description 7597 } 7598 7599 // GetID returns the ID field if it's non-nil, zero value otherwise. 7600 func (l *Label) GetID() int64 { 7601 if l == nil || l.ID == nil { 7602 return 0 7603 } 7604 return *l.ID 7605 } 7606 7607 // GetName returns the Name field if it's non-nil, zero value otherwise. 7608 func (l *Label) GetName() string { 7609 if l == nil || l.Name == nil { 7610 return "" 7611 } 7612 return *l.Name 7613 } 7614 7615 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 7616 func (l *Label) GetNodeID() string { 7617 if l == nil || l.NodeID == nil { 7618 return "" 7619 } 7620 return *l.NodeID 7621 } 7622 7623 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7624 func (l *Label) GetURL() string { 7625 if l == nil || l.URL == nil { 7626 return "" 7627 } 7628 return *l.URL 7629 } 7630 7631 // GetAction returns the Action field if it's non-nil, zero value otherwise. 7632 func (l *LabelEvent) GetAction() string { 7633 if l == nil || l.Action == nil { 7634 return "" 7635 } 7636 return *l.Action 7637 } 7638 7639 // GetChanges returns the Changes field. 7640 func (l *LabelEvent) GetChanges() *EditChange { 7641 if l == nil { 7642 return nil 7643 } 7644 return l.Changes 7645 } 7646 7647 // GetInstallation returns the Installation field. 7648 func (l *LabelEvent) GetInstallation() *Installation { 7649 if l == nil { 7650 return nil 7651 } 7652 return l.Installation 7653 } 7654 7655 // GetLabel returns the Label field. 7656 func (l *LabelEvent) GetLabel() *Label { 7657 if l == nil { 7658 return nil 7659 } 7660 return l.Label 7661 } 7662 7663 // GetOrg returns the Org field. 7664 func (l *LabelEvent) GetOrg() *Organization { 7665 if l == nil { 7666 return nil 7667 } 7668 return l.Org 7669 } 7670 7671 // GetRepo returns the Repo field. 7672 func (l *LabelEvent) GetRepo() *Repository { 7673 if l == nil { 7674 return nil 7675 } 7676 return l.Repo 7677 } 7678 7679 // GetColor returns the Color field if it's non-nil, zero value otherwise. 7680 func (l *LabelResult) GetColor() string { 7681 if l == nil || l.Color == nil { 7682 return "" 7683 } 7684 return *l.Color 7685 } 7686 7687 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 7688 func (l *LabelResult) GetDefault() bool { 7689 if l == nil || l.Default == nil { 7690 return false 7691 } 7692 return *l.Default 7693 } 7694 7695 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 7696 func (l *LabelResult) GetDescription() string { 7697 if l == nil || l.Description == nil { 7698 return "" 7699 } 7700 return *l.Description 7701 } 7702 7703 // GetID returns the ID field if it's non-nil, zero value otherwise. 7704 func (l *LabelResult) GetID() int64 { 7705 if l == nil || l.ID == nil { 7706 return 0 7707 } 7708 return *l.ID 7709 } 7710 7711 // GetName returns the Name field if it's non-nil, zero value otherwise. 7712 func (l *LabelResult) GetName() string { 7713 if l == nil || l.Name == nil { 7714 return "" 7715 } 7716 return *l.Name 7717 } 7718 7719 // GetScore returns the Score field. 7720 func (l *LabelResult) GetScore() *float64 { 7721 if l == nil { 7722 return nil 7723 } 7724 return l.Score 7725 } 7726 7727 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7728 func (l *LabelResult) GetURL() string { 7729 if l == nil || l.URL == nil { 7730 return "" 7731 } 7732 return *l.URL 7733 } 7734 7735 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 7736 func (l *LabelsSearchResult) GetIncompleteResults() bool { 7737 if l == nil || l.IncompleteResults == nil { 7738 return false 7739 } 7740 return *l.IncompleteResults 7741 } 7742 7743 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 7744 func (l *LabelsSearchResult) GetTotal() int { 7745 if l == nil || l.Total == nil { 7746 return 0 7747 } 7748 return *l.Total 7749 } 7750 7751 // GetOID returns the OID field if it's non-nil, zero value otherwise. 7752 func (l *LargeFile) GetOID() string { 7753 if l == nil || l.OID == nil { 7754 return "" 7755 } 7756 return *l.OID 7757 } 7758 7759 // GetPath returns the Path field if it's non-nil, zero value otherwise. 7760 func (l *LargeFile) GetPath() string { 7761 if l == nil || l.Path == nil { 7762 return "" 7763 } 7764 return *l.Path 7765 } 7766 7767 // GetRefName returns the RefName field if it's non-nil, zero value otherwise. 7768 func (l *LargeFile) GetRefName() string { 7769 if l == nil || l.RefName == nil { 7770 return "" 7771 } 7772 return *l.RefName 7773 } 7774 7775 // GetSize returns the Size field if it's non-nil, zero value otherwise. 7776 func (l *LargeFile) GetSize() int { 7777 if l == nil || l.Size == nil { 7778 return 0 7779 } 7780 return *l.Size 7781 } 7782 7783 // GetBody returns the Body field if it's non-nil, zero value otherwise. 7784 func (l *License) GetBody() string { 7785 if l == nil || l.Body == nil { 7786 return "" 7787 } 7788 return *l.Body 7789 } 7790 7791 // GetConditions returns the Conditions field if it's non-nil, zero value otherwise. 7792 func (l *License) GetConditions() []string { 7793 if l == nil || l.Conditions == nil { 7794 return nil 7795 } 7796 return *l.Conditions 7797 } 7798 7799 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 7800 func (l *License) GetDescription() string { 7801 if l == nil || l.Description == nil { 7802 return "" 7803 } 7804 return *l.Description 7805 } 7806 7807 // GetFeatured returns the Featured field if it's non-nil, zero value otherwise. 7808 func (l *License) GetFeatured() bool { 7809 if l == nil || l.Featured == nil { 7810 return false 7811 } 7812 return *l.Featured 7813 } 7814 7815 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7816 func (l *License) GetHTMLURL() string { 7817 if l == nil || l.HTMLURL == nil { 7818 return "" 7819 } 7820 return *l.HTMLURL 7821 } 7822 7823 // GetImplementation returns the Implementation field if it's non-nil, zero value otherwise. 7824 func (l *License) GetImplementation() string { 7825 if l == nil || l.Implementation == nil { 7826 return "" 7827 } 7828 return *l.Implementation 7829 } 7830 7831 // GetKey returns the Key field if it's non-nil, zero value otherwise. 7832 func (l *License) GetKey() string { 7833 if l == nil || l.Key == nil { 7834 return "" 7835 } 7836 return *l.Key 7837 } 7838 7839 // GetLimitations returns the Limitations field if it's non-nil, zero value otherwise. 7840 func (l *License) GetLimitations() []string { 7841 if l == nil || l.Limitations == nil { 7842 return nil 7843 } 7844 return *l.Limitations 7845 } 7846 7847 // GetName returns the Name field if it's non-nil, zero value otherwise. 7848 func (l *License) GetName() string { 7849 if l == nil || l.Name == nil { 7850 return "" 7851 } 7852 return *l.Name 7853 } 7854 7855 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 7856 func (l *License) GetPermissions() []string { 7857 if l == nil || l.Permissions == nil { 7858 return nil 7859 } 7860 return *l.Permissions 7861 } 7862 7863 // GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. 7864 func (l *License) GetSPDXID() string { 7865 if l == nil || l.SPDXID == nil { 7866 return "" 7867 } 7868 return *l.SPDXID 7869 } 7870 7871 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7872 func (l *License) GetURL() string { 7873 if l == nil || l.URL == nil { 7874 return "" 7875 } 7876 return *l.URL 7877 } 7878 7879 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 7880 func (l *ListCheckRunsOptions) GetAppID() int64 { 7881 if l == nil || l.AppID == nil { 7882 return 0 7883 } 7884 return *l.AppID 7885 } 7886 7887 // GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. 7888 func (l *ListCheckRunsOptions) GetCheckName() string { 7889 if l == nil || l.CheckName == nil { 7890 return "" 7891 } 7892 return *l.CheckName 7893 } 7894 7895 // GetFilter returns the Filter field if it's non-nil, zero value otherwise. 7896 func (l *ListCheckRunsOptions) GetFilter() string { 7897 if l == nil || l.Filter == nil { 7898 return "" 7899 } 7900 return *l.Filter 7901 } 7902 7903 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 7904 func (l *ListCheckRunsOptions) GetStatus() string { 7905 if l == nil || l.Status == nil { 7906 return "" 7907 } 7908 return *l.Status 7909 } 7910 7911 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 7912 func (l *ListCheckRunsResults) GetTotal() int { 7913 if l == nil || l.Total == nil { 7914 return 0 7915 } 7916 return *l.Total 7917 } 7918 7919 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 7920 func (l *ListCheckSuiteOptions) GetAppID() int { 7921 if l == nil || l.AppID == nil { 7922 return 0 7923 } 7924 return *l.AppID 7925 } 7926 7927 // GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. 7928 func (l *ListCheckSuiteOptions) GetCheckName() string { 7929 if l == nil || l.CheckName == nil { 7930 return "" 7931 } 7932 return *l.CheckName 7933 } 7934 7935 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 7936 func (l *ListCheckSuiteResults) GetTotal() int { 7937 if l == nil || l.Total == nil { 7938 return 0 7939 } 7940 return *l.Total 7941 } 7942 7943 // GetAffiliation returns the Affiliation field if it's non-nil, zero value otherwise. 7944 func (l *ListCollaboratorOptions) GetAffiliation() string { 7945 if l == nil || l.Affiliation == nil { 7946 return "" 7947 } 7948 return *l.Affiliation 7949 } 7950 7951 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 7952 func (l *ListExternalGroupsOptions) GetDisplayName() string { 7953 if l == nil || l.DisplayName == nil { 7954 return "" 7955 } 7956 return *l.DisplayName 7957 } 7958 7959 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 7960 func (l *ListRepositories) GetTotalCount() int { 7961 if l == nil || l.TotalCount == nil { 7962 return 0 7963 } 7964 return *l.TotalCount 7965 } 7966 7967 // GetCount returns the Count field if it's non-nil, zero value otherwise. 7968 func (l *ListSCIMProvisionedIdentitiesOptions) GetCount() int { 7969 if l == nil || l.Count == nil { 7970 return 0 7971 } 7972 return *l.Count 7973 } 7974 7975 // GetFilter returns the Filter field if it's non-nil, zero value otherwise. 7976 func (l *ListSCIMProvisionedIdentitiesOptions) GetFilter() string { 7977 if l == nil || l.Filter == nil { 7978 return "" 7979 } 7980 return *l.Filter 7981 } 7982 7983 // GetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise. 7984 func (l *ListSCIMProvisionedIdentitiesOptions) GetStartIndex() int { 7985 if l == nil || l.StartIndex == nil { 7986 return 0 7987 } 7988 return *l.StartIndex 7989 } 7990 7991 // GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. 7992 func (l *Location) GetEndColumn() int { 7993 if l == nil || l.EndColumn == nil { 7994 return 0 7995 } 7996 return *l.EndColumn 7997 } 7998 7999 // GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. 8000 func (l *Location) GetEndLine() int { 8001 if l == nil || l.EndLine == nil { 8002 return 0 8003 } 8004 return *l.EndLine 8005 } 8006 8007 // GetPath returns the Path field if it's non-nil, zero value otherwise. 8008 func (l *Location) GetPath() string { 8009 if l == nil || l.Path == nil { 8010 return "" 8011 } 8012 return *l.Path 8013 } 8014 8015 // GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. 8016 func (l *Location) GetStartColumn() int { 8017 if l == nil || l.StartColumn == nil { 8018 return 0 8019 } 8020 return *l.StartColumn 8021 } 8022 8023 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 8024 func (l *Location) GetStartLine() int { 8025 if l == nil || l.StartLine == nil { 8026 return 0 8027 } 8028 return *l.StartLine 8029 } 8030 8031 // GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. 8032 func (m *MarketplacePendingChange) GetEffectiveDate() Timestamp { 8033 if m == nil || m.EffectiveDate == nil { 8034 return Timestamp{} 8035 } 8036 return *m.EffectiveDate 8037 } 8038 8039 // GetID returns the ID field if it's non-nil, zero value otherwise. 8040 func (m *MarketplacePendingChange) GetID() int64 { 8041 if m == nil || m.ID == nil { 8042 return 0 8043 } 8044 return *m.ID 8045 } 8046 8047 // GetPlan returns the Plan field. 8048 func (m *MarketplacePendingChange) GetPlan() *MarketplacePlan { 8049 if m == nil { 8050 return nil 8051 } 8052 return m.Plan 8053 } 8054 8055 // GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. 8056 func (m *MarketplacePendingChange) GetUnitCount() int { 8057 if m == nil || m.UnitCount == nil { 8058 return 0 8059 } 8060 return *m.UnitCount 8061 } 8062 8063 // GetAccountsURL returns the AccountsURL field if it's non-nil, zero value otherwise. 8064 func (m *MarketplacePlan) GetAccountsURL() string { 8065 if m == nil || m.AccountsURL == nil { 8066 return "" 8067 } 8068 return *m.AccountsURL 8069 } 8070 8071 // GetBullets returns the Bullets field if it's non-nil, zero value otherwise. 8072 func (m *MarketplacePlan) GetBullets() []string { 8073 if m == nil || m.Bullets == nil { 8074 return nil 8075 } 8076 return *m.Bullets 8077 } 8078 8079 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 8080 func (m *MarketplacePlan) GetDescription() string { 8081 if m == nil || m.Description == nil { 8082 return "" 8083 } 8084 return *m.Description 8085 } 8086 8087 // GetHasFreeTrial returns the HasFreeTrial field if it's non-nil, zero value otherwise. 8088 func (m *MarketplacePlan) GetHasFreeTrial() bool { 8089 if m == nil || m.HasFreeTrial == nil { 8090 return false 8091 } 8092 return *m.HasFreeTrial 8093 } 8094 8095 // GetID returns the ID field if it's non-nil, zero value otherwise. 8096 func (m *MarketplacePlan) GetID() int64 { 8097 if m == nil || m.ID == nil { 8098 return 0 8099 } 8100 return *m.ID 8101 } 8102 8103 // GetMonthlyPriceInCents returns the MonthlyPriceInCents field if it's non-nil, zero value otherwise. 8104 func (m *MarketplacePlan) GetMonthlyPriceInCents() int { 8105 if m == nil || m.MonthlyPriceInCents == nil { 8106 return 0 8107 } 8108 return *m.MonthlyPriceInCents 8109 } 8110 8111 // GetName returns the Name field if it's non-nil, zero value otherwise. 8112 func (m *MarketplacePlan) GetName() string { 8113 if m == nil || m.Name == nil { 8114 return "" 8115 } 8116 return *m.Name 8117 } 8118 8119 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 8120 func (m *MarketplacePlan) GetNumber() int { 8121 if m == nil || m.Number == nil { 8122 return 0 8123 } 8124 return *m.Number 8125 } 8126 8127 // GetPriceModel returns the PriceModel field if it's non-nil, zero value otherwise. 8128 func (m *MarketplacePlan) GetPriceModel() string { 8129 if m == nil || m.PriceModel == nil { 8130 return "" 8131 } 8132 return *m.PriceModel 8133 } 8134 8135 // GetState returns the State field if it's non-nil, zero value otherwise. 8136 func (m *MarketplacePlan) GetState() string { 8137 if m == nil || m.State == nil { 8138 return "" 8139 } 8140 return *m.State 8141 } 8142 8143 // GetUnitName returns the UnitName field if it's non-nil, zero value otherwise. 8144 func (m *MarketplacePlan) GetUnitName() string { 8145 if m == nil || m.UnitName == nil { 8146 return "" 8147 } 8148 return *m.UnitName 8149 } 8150 8151 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8152 func (m *MarketplacePlan) GetURL() string { 8153 if m == nil || m.URL == nil { 8154 return "" 8155 } 8156 return *m.URL 8157 } 8158 8159 // GetYearlyPriceInCents returns the YearlyPriceInCents field if it's non-nil, zero value otherwise. 8160 func (m *MarketplacePlan) GetYearlyPriceInCents() int { 8161 if m == nil || m.YearlyPriceInCents == nil { 8162 return 0 8163 } 8164 return *m.YearlyPriceInCents 8165 } 8166 8167 // GetID returns the ID field if it's non-nil, zero value otherwise. 8168 func (m *MarketplacePlanAccount) GetID() int64 { 8169 if m == nil || m.ID == nil { 8170 return 0 8171 } 8172 return *m.ID 8173 } 8174 8175 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 8176 func (m *MarketplacePlanAccount) GetLogin() string { 8177 if m == nil || m.Login == nil { 8178 return "" 8179 } 8180 return *m.Login 8181 } 8182 8183 // GetMarketplacePendingChange returns the MarketplacePendingChange field. 8184 func (m *MarketplacePlanAccount) GetMarketplacePendingChange() *MarketplacePendingChange { 8185 if m == nil { 8186 return nil 8187 } 8188 return m.MarketplacePendingChange 8189 } 8190 8191 // GetMarketplacePurchase returns the MarketplacePurchase field. 8192 func (m *MarketplacePlanAccount) GetMarketplacePurchase() *MarketplacePurchase { 8193 if m == nil { 8194 return nil 8195 } 8196 return m.MarketplacePurchase 8197 } 8198 8199 // GetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise. 8200 func (m *MarketplacePlanAccount) GetOrganizationBillingEmail() string { 8201 if m == nil || m.OrganizationBillingEmail == nil { 8202 return "" 8203 } 8204 return *m.OrganizationBillingEmail 8205 } 8206 8207 // GetType returns the Type field if it's non-nil, zero value otherwise. 8208 func (m *MarketplacePlanAccount) GetType() string { 8209 if m == nil || m.Type == nil { 8210 return "" 8211 } 8212 return *m.Type 8213 } 8214 8215 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8216 func (m *MarketplacePlanAccount) GetURL() string { 8217 if m == nil || m.URL == nil { 8218 return "" 8219 } 8220 return *m.URL 8221 } 8222 8223 // GetBillingCycle returns the BillingCycle field if it's non-nil, zero value otherwise. 8224 func (m *MarketplacePurchase) GetBillingCycle() string { 8225 if m == nil || m.BillingCycle == nil { 8226 return "" 8227 } 8228 return *m.BillingCycle 8229 } 8230 8231 // GetFreeTrialEndsOn returns the FreeTrialEndsOn field if it's non-nil, zero value otherwise. 8232 func (m *MarketplacePurchase) GetFreeTrialEndsOn() Timestamp { 8233 if m == nil || m.FreeTrialEndsOn == nil { 8234 return Timestamp{} 8235 } 8236 return *m.FreeTrialEndsOn 8237 } 8238 8239 // GetNextBillingDate returns the NextBillingDate field if it's non-nil, zero value otherwise. 8240 func (m *MarketplacePurchase) GetNextBillingDate() Timestamp { 8241 if m == nil || m.NextBillingDate == nil { 8242 return Timestamp{} 8243 } 8244 return *m.NextBillingDate 8245 } 8246 8247 // GetOnFreeTrial returns the OnFreeTrial field if it's non-nil, zero value otherwise. 8248 func (m *MarketplacePurchase) GetOnFreeTrial() bool { 8249 if m == nil || m.OnFreeTrial == nil { 8250 return false 8251 } 8252 return *m.OnFreeTrial 8253 } 8254 8255 // GetPlan returns the Plan field. 8256 func (m *MarketplacePurchase) GetPlan() *MarketplacePlan { 8257 if m == nil { 8258 return nil 8259 } 8260 return m.Plan 8261 } 8262 8263 // GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. 8264 func (m *MarketplacePurchase) GetUnitCount() int { 8265 if m == nil || m.UnitCount == nil { 8266 return 0 8267 } 8268 return *m.UnitCount 8269 } 8270 8271 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8272 func (m *MarketplacePurchase) GetUpdatedAt() Timestamp { 8273 if m == nil || m.UpdatedAt == nil { 8274 return Timestamp{} 8275 } 8276 return *m.UpdatedAt 8277 } 8278 8279 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8280 func (m *MarketplacePurchaseEvent) GetAction() string { 8281 if m == nil || m.Action == nil { 8282 return "" 8283 } 8284 return *m.Action 8285 } 8286 8287 // GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. 8288 func (m *MarketplacePurchaseEvent) GetEffectiveDate() Timestamp { 8289 if m == nil || m.EffectiveDate == nil { 8290 return Timestamp{} 8291 } 8292 return *m.EffectiveDate 8293 } 8294 8295 // GetInstallation returns the Installation field. 8296 func (m *MarketplacePurchaseEvent) GetInstallation() *Installation { 8297 if m == nil { 8298 return nil 8299 } 8300 return m.Installation 8301 } 8302 8303 // GetMarketplacePurchase returns the MarketplacePurchase field. 8304 func (m *MarketplacePurchaseEvent) GetMarketplacePurchase() *MarketplacePurchase { 8305 if m == nil { 8306 return nil 8307 } 8308 return m.MarketplacePurchase 8309 } 8310 8311 // GetPreviousMarketplacePurchase returns the PreviousMarketplacePurchase field. 8312 func (m *MarketplacePurchaseEvent) GetPreviousMarketplacePurchase() *MarketplacePurchase { 8313 if m == nil { 8314 return nil 8315 } 8316 return m.PreviousMarketplacePurchase 8317 } 8318 8319 // GetSender returns the Sender field. 8320 func (m *MarketplacePurchaseEvent) GetSender() *User { 8321 if m == nil { 8322 return nil 8323 } 8324 return m.Sender 8325 } 8326 8327 // GetText returns the Text field if it's non-nil, zero value otherwise. 8328 func (m *Match) GetText() string { 8329 if m == nil || m.Text == nil { 8330 return "" 8331 } 8332 return *m.Text 8333 } 8334 8335 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8336 func (m *MemberEvent) GetAction() string { 8337 if m == nil || m.Action == nil { 8338 return "" 8339 } 8340 return *m.Action 8341 } 8342 8343 // GetInstallation returns the Installation field. 8344 func (m *MemberEvent) GetInstallation() *Installation { 8345 if m == nil { 8346 return nil 8347 } 8348 return m.Installation 8349 } 8350 8351 // GetMember returns the Member field. 8352 func (m *MemberEvent) GetMember() *User { 8353 if m == nil { 8354 return nil 8355 } 8356 return m.Member 8357 } 8358 8359 // GetRepo returns the Repo field. 8360 func (m *MemberEvent) GetRepo() *Repository { 8361 if m == nil { 8362 return nil 8363 } 8364 return m.Repo 8365 } 8366 8367 // GetSender returns the Sender field. 8368 func (m *MemberEvent) GetSender() *User { 8369 if m == nil { 8370 return nil 8371 } 8372 return m.Sender 8373 } 8374 8375 // GetOrganization returns the Organization field. 8376 func (m *Membership) GetOrganization() *Organization { 8377 if m == nil { 8378 return nil 8379 } 8380 return m.Organization 8381 } 8382 8383 // GetOrganizationURL returns the OrganizationURL field if it's non-nil, zero value otherwise. 8384 func (m *Membership) GetOrganizationURL() string { 8385 if m == nil || m.OrganizationURL == nil { 8386 return "" 8387 } 8388 return *m.OrganizationURL 8389 } 8390 8391 // GetRole returns the Role field if it's non-nil, zero value otherwise. 8392 func (m *Membership) GetRole() string { 8393 if m == nil || m.Role == nil { 8394 return "" 8395 } 8396 return *m.Role 8397 } 8398 8399 // GetState returns the State field if it's non-nil, zero value otherwise. 8400 func (m *Membership) GetState() string { 8401 if m == nil || m.State == nil { 8402 return "" 8403 } 8404 return *m.State 8405 } 8406 8407 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8408 func (m *Membership) GetURL() string { 8409 if m == nil || m.URL == nil { 8410 return "" 8411 } 8412 return *m.URL 8413 } 8414 8415 // GetUser returns the User field. 8416 func (m *Membership) GetUser() *User { 8417 if m == nil { 8418 return nil 8419 } 8420 return m.User 8421 } 8422 8423 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8424 func (m *MembershipEvent) GetAction() string { 8425 if m == nil || m.Action == nil { 8426 return "" 8427 } 8428 return *m.Action 8429 } 8430 8431 // GetInstallation returns the Installation field. 8432 func (m *MembershipEvent) GetInstallation() *Installation { 8433 if m == nil { 8434 return nil 8435 } 8436 return m.Installation 8437 } 8438 8439 // GetMember returns the Member field. 8440 func (m *MembershipEvent) GetMember() *User { 8441 if m == nil { 8442 return nil 8443 } 8444 return m.Member 8445 } 8446 8447 // GetOrg returns the Org field. 8448 func (m *MembershipEvent) GetOrg() *Organization { 8449 if m == nil { 8450 return nil 8451 } 8452 return m.Org 8453 } 8454 8455 // GetScope returns the Scope field if it's non-nil, zero value otherwise. 8456 func (m *MembershipEvent) GetScope() string { 8457 if m == nil || m.Scope == nil { 8458 return "" 8459 } 8460 return *m.Scope 8461 } 8462 8463 // GetSender returns the Sender field. 8464 func (m *MembershipEvent) GetSender() *User { 8465 if m == nil { 8466 return nil 8467 } 8468 return m.Sender 8469 } 8470 8471 // GetTeam returns the Team field. 8472 func (m *MembershipEvent) GetTeam() *Team { 8473 if m == nil { 8474 return nil 8475 } 8476 return m.Team 8477 } 8478 8479 // GetText returns the Text field if it's non-nil, zero value otherwise. 8480 func (m *Message) GetText() string { 8481 if m == nil || m.Text == nil { 8482 return "" 8483 } 8484 return *m.Text 8485 } 8486 8487 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8488 func (m *MetaEvent) GetAction() string { 8489 if m == nil || m.Action == nil { 8490 return "" 8491 } 8492 return *m.Action 8493 } 8494 8495 // GetHook returns the Hook field. 8496 func (m *MetaEvent) GetHook() *Hook { 8497 if m == nil { 8498 return nil 8499 } 8500 return m.Hook 8501 } 8502 8503 // GetHookID returns the HookID field if it's non-nil, zero value otherwise. 8504 func (m *MetaEvent) GetHookID() int64 { 8505 if m == nil || m.HookID == nil { 8506 return 0 8507 } 8508 return *m.HookID 8509 } 8510 8511 // GetInstallation returns the Installation field. 8512 func (m *MetaEvent) GetInstallation() *Installation { 8513 if m == nil { 8514 return nil 8515 } 8516 return m.Installation 8517 } 8518 8519 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 8520 func (m *Metric) GetHTMLURL() string { 8521 if m == nil || m.HTMLURL == nil { 8522 return "" 8523 } 8524 return *m.HTMLURL 8525 } 8526 8527 // GetKey returns the Key field if it's non-nil, zero value otherwise. 8528 func (m *Metric) GetKey() string { 8529 if m == nil || m.Key == nil { 8530 return "" 8531 } 8532 return *m.Key 8533 } 8534 8535 // GetName returns the Name field if it's non-nil, zero value otherwise. 8536 func (m *Metric) GetName() string { 8537 if m == nil || m.Name == nil { 8538 return "" 8539 } 8540 return *m.Name 8541 } 8542 8543 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 8544 func (m *Metric) GetNodeID() string { 8545 if m == nil || m.NodeID == nil { 8546 return "" 8547 } 8548 return *m.NodeID 8549 } 8550 8551 // GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. 8552 func (m *Metric) GetSPDXID() string { 8553 if m == nil || m.SPDXID == nil { 8554 return "" 8555 } 8556 return *m.SPDXID 8557 } 8558 8559 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8560 func (m *Metric) GetURL() string { 8561 if m == nil || m.URL == nil { 8562 return "" 8563 } 8564 return *m.URL 8565 } 8566 8567 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8568 func (m *Migration) GetCreatedAt() string { 8569 if m == nil || m.CreatedAt == nil { 8570 return "" 8571 } 8572 return *m.CreatedAt 8573 } 8574 8575 // GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 8576 func (m *Migration) GetExcludeAttachments() bool { 8577 if m == nil || m.ExcludeAttachments == nil { 8578 return false 8579 } 8580 return *m.ExcludeAttachments 8581 } 8582 8583 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 8584 func (m *Migration) GetGUID() string { 8585 if m == nil || m.GUID == nil { 8586 return "" 8587 } 8588 return *m.GUID 8589 } 8590 8591 // GetID returns the ID field if it's non-nil, zero value otherwise. 8592 func (m *Migration) GetID() int64 { 8593 if m == nil || m.ID == nil { 8594 return 0 8595 } 8596 return *m.ID 8597 } 8598 8599 // GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 8600 func (m *Migration) GetLockRepositories() bool { 8601 if m == nil || m.LockRepositories == nil { 8602 return false 8603 } 8604 return *m.LockRepositories 8605 } 8606 8607 // GetState returns the State field if it's non-nil, zero value otherwise. 8608 func (m *Migration) GetState() string { 8609 if m == nil || m.State == nil { 8610 return "" 8611 } 8612 return *m.State 8613 } 8614 8615 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8616 func (m *Migration) GetUpdatedAt() string { 8617 if m == nil || m.UpdatedAt == nil { 8618 return "" 8619 } 8620 return *m.UpdatedAt 8621 } 8622 8623 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8624 func (m *Migration) GetURL() string { 8625 if m == nil || m.URL == nil { 8626 return "" 8627 } 8628 return *m.URL 8629 } 8630 8631 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 8632 func (m *Milestone) GetClosedAt() time.Time { 8633 if m == nil || m.ClosedAt == nil { 8634 return time.Time{} 8635 } 8636 return *m.ClosedAt 8637 } 8638 8639 // GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. 8640 func (m *Milestone) GetClosedIssues() int { 8641 if m == nil || m.ClosedIssues == nil { 8642 return 0 8643 } 8644 return *m.ClosedIssues 8645 } 8646 8647 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8648 func (m *Milestone) GetCreatedAt() time.Time { 8649 if m == nil || m.CreatedAt == nil { 8650 return time.Time{} 8651 } 8652 return *m.CreatedAt 8653 } 8654 8655 // GetCreator returns the Creator field. 8656 func (m *Milestone) GetCreator() *User { 8657 if m == nil { 8658 return nil 8659 } 8660 return m.Creator 8661 } 8662 8663 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 8664 func (m *Milestone) GetDescription() string { 8665 if m == nil || m.Description == nil { 8666 return "" 8667 } 8668 return *m.Description 8669 } 8670 8671 // GetDueOn returns the DueOn field if it's non-nil, zero value otherwise. 8672 func (m *Milestone) GetDueOn() time.Time { 8673 if m == nil || m.DueOn == nil { 8674 return time.Time{} 8675 } 8676 return *m.DueOn 8677 } 8678 8679 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 8680 func (m *Milestone) GetHTMLURL() string { 8681 if m == nil || m.HTMLURL == nil { 8682 return "" 8683 } 8684 return *m.HTMLURL 8685 } 8686 8687 // GetID returns the ID field if it's non-nil, zero value otherwise. 8688 func (m *Milestone) GetID() int64 { 8689 if m == nil || m.ID == nil { 8690 return 0 8691 } 8692 return *m.ID 8693 } 8694 8695 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 8696 func (m *Milestone) GetLabelsURL() string { 8697 if m == nil || m.LabelsURL == nil { 8698 return "" 8699 } 8700 return *m.LabelsURL 8701 } 8702 8703 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 8704 func (m *Milestone) GetNodeID() string { 8705 if m == nil || m.NodeID == nil { 8706 return "" 8707 } 8708 return *m.NodeID 8709 } 8710 8711 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 8712 func (m *Milestone) GetNumber() int { 8713 if m == nil || m.Number == nil { 8714 return 0 8715 } 8716 return *m.Number 8717 } 8718 8719 // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 8720 func (m *Milestone) GetOpenIssues() int { 8721 if m == nil || m.OpenIssues == nil { 8722 return 0 8723 } 8724 return *m.OpenIssues 8725 } 8726 8727 // GetState returns the State field if it's non-nil, zero value otherwise. 8728 func (m *Milestone) GetState() string { 8729 if m == nil || m.State == nil { 8730 return "" 8731 } 8732 return *m.State 8733 } 8734 8735 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 8736 func (m *Milestone) GetTitle() string { 8737 if m == nil || m.Title == nil { 8738 return "" 8739 } 8740 return *m.Title 8741 } 8742 8743 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8744 func (m *Milestone) GetUpdatedAt() time.Time { 8745 if m == nil || m.UpdatedAt == nil { 8746 return time.Time{} 8747 } 8748 return *m.UpdatedAt 8749 } 8750 8751 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8752 func (m *Milestone) GetURL() string { 8753 if m == nil || m.URL == nil { 8754 return "" 8755 } 8756 return *m.URL 8757 } 8758 8759 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8760 func (m *MilestoneEvent) GetAction() string { 8761 if m == nil || m.Action == nil { 8762 return "" 8763 } 8764 return *m.Action 8765 } 8766 8767 // GetChanges returns the Changes field. 8768 func (m *MilestoneEvent) GetChanges() *EditChange { 8769 if m == nil { 8770 return nil 8771 } 8772 return m.Changes 8773 } 8774 8775 // GetInstallation returns the Installation field. 8776 func (m *MilestoneEvent) GetInstallation() *Installation { 8777 if m == nil { 8778 return nil 8779 } 8780 return m.Installation 8781 } 8782 8783 // GetMilestone returns the Milestone field. 8784 func (m *MilestoneEvent) GetMilestone() *Milestone { 8785 if m == nil { 8786 return nil 8787 } 8788 return m.Milestone 8789 } 8790 8791 // GetOrg returns the Org field. 8792 func (m *MilestoneEvent) GetOrg() *Organization { 8793 if m == nil { 8794 return nil 8795 } 8796 return m.Org 8797 } 8798 8799 // GetRepo returns the Repo field. 8800 func (m *MilestoneEvent) GetRepo() *Repository { 8801 if m == nil { 8802 return nil 8803 } 8804 return m.Repo 8805 } 8806 8807 // GetSender returns the Sender field. 8808 func (m *MilestoneEvent) GetSender() *User { 8809 if m == nil { 8810 return nil 8811 } 8812 return m.Sender 8813 } 8814 8815 // GetClosedMilestones returns the ClosedMilestones field if it's non-nil, zero value otherwise. 8816 func (m *MilestoneStats) GetClosedMilestones() int { 8817 if m == nil || m.ClosedMilestones == nil { 8818 return 0 8819 } 8820 return *m.ClosedMilestones 8821 } 8822 8823 // GetOpenMilestones returns the OpenMilestones field if it's non-nil, zero value otherwise. 8824 func (m *MilestoneStats) GetOpenMilestones() int { 8825 if m == nil || m.OpenMilestones == nil { 8826 return 0 8827 } 8828 return *m.OpenMilestones 8829 } 8830 8831 // GetTotalMilestones returns the TotalMilestones field if it's non-nil, zero value otherwise. 8832 func (m *MilestoneStats) GetTotalMilestones() int { 8833 if m == nil || m.TotalMilestones == nil { 8834 return 0 8835 } 8836 return *m.TotalMilestones 8837 } 8838 8839 // GetAnalysisKey returns the AnalysisKey field if it's non-nil, zero value otherwise. 8840 func (m *MostRecentInstance) GetAnalysisKey() string { 8841 if m == nil || m.AnalysisKey == nil { 8842 return "" 8843 } 8844 return *m.AnalysisKey 8845 } 8846 8847 // GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. 8848 func (m *MostRecentInstance) GetCommitSHA() string { 8849 if m == nil || m.CommitSHA == nil { 8850 return "" 8851 } 8852 return *m.CommitSHA 8853 } 8854 8855 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 8856 func (m *MostRecentInstance) GetEnvironment() string { 8857 if m == nil || m.Environment == nil { 8858 return "" 8859 } 8860 return *m.Environment 8861 } 8862 8863 // GetLocation returns the Location field. 8864 func (m *MostRecentInstance) GetLocation() *Location { 8865 if m == nil { 8866 return nil 8867 } 8868 return m.Location 8869 } 8870 8871 // GetMessage returns the Message field. 8872 func (m *MostRecentInstance) GetMessage() *Message { 8873 if m == nil { 8874 return nil 8875 } 8876 return m.Message 8877 } 8878 8879 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 8880 func (m *MostRecentInstance) GetRef() string { 8881 if m == nil || m.Ref == nil { 8882 return "" 8883 } 8884 return *m.Ref 8885 } 8886 8887 // GetState returns the State field if it's non-nil, zero value otherwise. 8888 func (m *MostRecentInstance) GetState() string { 8889 if m == nil || m.State == nil { 8890 return "" 8891 } 8892 return *m.State 8893 } 8894 8895 // GetBase returns the Base field if it's non-nil, zero value otherwise. 8896 func (n *NewPullRequest) GetBase() string { 8897 if n == nil || n.Base == nil { 8898 return "" 8899 } 8900 return *n.Base 8901 } 8902 8903 // GetBody returns the Body field if it's non-nil, zero value otherwise. 8904 func (n *NewPullRequest) GetBody() string { 8905 if n == nil || n.Body == nil { 8906 return "" 8907 } 8908 return *n.Body 8909 } 8910 8911 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 8912 func (n *NewPullRequest) GetDraft() bool { 8913 if n == nil || n.Draft == nil { 8914 return false 8915 } 8916 return *n.Draft 8917 } 8918 8919 // GetHead returns the Head field if it's non-nil, zero value otherwise. 8920 func (n *NewPullRequest) GetHead() string { 8921 if n == nil || n.Head == nil { 8922 return "" 8923 } 8924 return *n.Head 8925 } 8926 8927 // GetIssue returns the Issue field if it's non-nil, zero value otherwise. 8928 func (n *NewPullRequest) GetIssue() int { 8929 if n == nil || n.Issue == nil { 8930 return 0 8931 } 8932 return *n.Issue 8933 } 8934 8935 // GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 8936 func (n *NewPullRequest) GetMaintainerCanModify() bool { 8937 if n == nil || n.MaintainerCanModify == nil { 8938 return false 8939 } 8940 return *n.MaintainerCanModify 8941 } 8942 8943 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 8944 func (n *NewPullRequest) GetTitle() string { 8945 if n == nil || n.Title == nil { 8946 return "" 8947 } 8948 return *n.Title 8949 } 8950 8951 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 8952 func (n *NewTeam) GetDescription() string { 8953 if n == nil || n.Description == nil { 8954 return "" 8955 } 8956 return *n.Description 8957 } 8958 8959 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 8960 func (n *NewTeam) GetLDAPDN() string { 8961 if n == nil || n.LDAPDN == nil { 8962 return "" 8963 } 8964 return *n.LDAPDN 8965 } 8966 8967 // GetParentTeamID returns the ParentTeamID field if it's non-nil, zero value otherwise. 8968 func (n *NewTeam) GetParentTeamID() int64 { 8969 if n == nil || n.ParentTeamID == nil { 8970 return 0 8971 } 8972 return *n.ParentTeamID 8973 } 8974 8975 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 8976 func (n *NewTeam) GetPermission() string { 8977 if n == nil || n.Permission == nil { 8978 return "" 8979 } 8980 return *n.Permission 8981 } 8982 8983 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 8984 func (n *NewTeam) GetPrivacy() string { 8985 if n == nil || n.Privacy == nil { 8986 return "" 8987 } 8988 return *n.Privacy 8989 } 8990 8991 // GetID returns the ID field if it's non-nil, zero value otherwise. 8992 func (n *Notification) GetID() string { 8993 if n == nil || n.ID == nil { 8994 return "" 8995 } 8996 return *n.ID 8997 } 8998 8999 // GetLastReadAt returns the LastReadAt field if it's non-nil, zero value otherwise. 9000 func (n *Notification) GetLastReadAt() time.Time { 9001 if n == nil || n.LastReadAt == nil { 9002 return time.Time{} 9003 } 9004 return *n.LastReadAt 9005 } 9006 9007 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 9008 func (n *Notification) GetReason() string { 9009 if n == nil || n.Reason == nil { 9010 return "" 9011 } 9012 return *n.Reason 9013 } 9014 9015 // GetRepository returns the Repository field. 9016 func (n *Notification) GetRepository() *Repository { 9017 if n == nil { 9018 return nil 9019 } 9020 return n.Repository 9021 } 9022 9023 // GetSubject returns the Subject field. 9024 func (n *Notification) GetSubject() *NotificationSubject { 9025 if n == nil { 9026 return nil 9027 } 9028 return n.Subject 9029 } 9030 9031 // GetUnread returns the Unread field if it's non-nil, zero value otherwise. 9032 func (n *Notification) GetUnread() bool { 9033 if n == nil || n.Unread == nil { 9034 return false 9035 } 9036 return *n.Unread 9037 } 9038 9039 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9040 func (n *Notification) GetUpdatedAt() time.Time { 9041 if n == nil || n.UpdatedAt == nil { 9042 return time.Time{} 9043 } 9044 return *n.UpdatedAt 9045 } 9046 9047 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9048 func (n *Notification) GetURL() string { 9049 if n == nil || n.URL == nil { 9050 return "" 9051 } 9052 return *n.URL 9053 } 9054 9055 // GetLatestCommentURL returns the LatestCommentURL field if it's non-nil, zero value otherwise. 9056 func (n *NotificationSubject) GetLatestCommentURL() string { 9057 if n == nil || n.LatestCommentURL == nil { 9058 return "" 9059 } 9060 return *n.LatestCommentURL 9061 } 9062 9063 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 9064 func (n *NotificationSubject) GetTitle() string { 9065 if n == nil || n.Title == nil { 9066 return "" 9067 } 9068 return *n.Title 9069 } 9070 9071 // GetType returns the Type field if it's non-nil, zero value otherwise. 9072 func (n *NotificationSubject) GetType() string { 9073 if n == nil || n.Type == nil { 9074 return "" 9075 } 9076 return *n.Type 9077 } 9078 9079 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9080 func (n *NotificationSubject) GetURL() string { 9081 if n == nil || n.URL == nil { 9082 return "" 9083 } 9084 return *n.URL 9085 } 9086 9087 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 9088 func (o *OAuthAPP) GetClientID() string { 9089 if o == nil || o.ClientID == nil { 9090 return "" 9091 } 9092 return *o.ClientID 9093 } 9094 9095 // GetName returns the Name field if it's non-nil, zero value otherwise. 9096 func (o *OAuthAPP) GetName() string { 9097 if o == nil || o.Name == nil { 9098 return "" 9099 } 9100 return *o.Name 9101 } 9102 9103 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9104 func (o *OAuthAPP) GetURL() string { 9105 if o == nil || o.URL == nil { 9106 return "" 9107 } 9108 return *o.URL 9109 } 9110 9111 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 9112 func (o *Organization) GetAvatarURL() string { 9113 if o == nil || o.AvatarURL == nil { 9114 return "" 9115 } 9116 return *o.AvatarURL 9117 } 9118 9119 // GetBillingEmail returns the BillingEmail field if it's non-nil, zero value otherwise. 9120 func (o *Organization) GetBillingEmail() string { 9121 if o == nil || o.BillingEmail == nil { 9122 return "" 9123 } 9124 return *o.BillingEmail 9125 } 9126 9127 // GetBlog returns the Blog field if it's non-nil, zero value otherwise. 9128 func (o *Organization) GetBlog() string { 9129 if o == nil || o.Blog == nil { 9130 return "" 9131 } 9132 return *o.Blog 9133 } 9134 9135 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 9136 func (o *Organization) GetCollaborators() int { 9137 if o == nil || o.Collaborators == nil { 9138 return 0 9139 } 9140 return *o.Collaborators 9141 } 9142 9143 // GetCompany returns the Company field if it's non-nil, zero value otherwise. 9144 func (o *Organization) GetCompany() string { 9145 if o == nil || o.Company == nil { 9146 return "" 9147 } 9148 return *o.Company 9149 } 9150 9151 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9152 func (o *Organization) GetCreatedAt() time.Time { 9153 if o == nil || o.CreatedAt == nil { 9154 return time.Time{} 9155 } 9156 return *o.CreatedAt 9157 } 9158 9159 // GetDefaultRepoPermission returns the DefaultRepoPermission field if it's non-nil, zero value otherwise. 9160 func (o *Organization) GetDefaultRepoPermission() string { 9161 if o == nil || o.DefaultRepoPermission == nil { 9162 return "" 9163 } 9164 return *o.DefaultRepoPermission 9165 } 9166 9167 // GetDefaultRepoSettings returns the DefaultRepoSettings field if it's non-nil, zero value otherwise. 9168 func (o *Organization) GetDefaultRepoSettings() string { 9169 if o == nil || o.DefaultRepoSettings == nil { 9170 return "" 9171 } 9172 return *o.DefaultRepoSettings 9173 } 9174 9175 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 9176 func (o *Organization) GetDescription() string { 9177 if o == nil || o.Description == nil { 9178 return "" 9179 } 9180 return *o.Description 9181 } 9182 9183 // GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 9184 func (o *Organization) GetDiskUsage() int { 9185 if o == nil || o.DiskUsage == nil { 9186 return 0 9187 } 9188 return *o.DiskUsage 9189 } 9190 9191 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 9192 func (o *Organization) GetEmail() string { 9193 if o == nil || o.Email == nil { 9194 return "" 9195 } 9196 return *o.Email 9197 } 9198 9199 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 9200 func (o *Organization) GetEventsURL() string { 9201 if o == nil || o.EventsURL == nil { 9202 return "" 9203 } 9204 return *o.EventsURL 9205 } 9206 9207 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 9208 func (o *Organization) GetFollowers() int { 9209 if o == nil || o.Followers == nil { 9210 return 0 9211 } 9212 return *o.Followers 9213 } 9214 9215 // GetFollowing returns the Following field if it's non-nil, zero value otherwise. 9216 func (o *Organization) GetFollowing() int { 9217 if o == nil || o.Following == nil { 9218 return 0 9219 } 9220 return *o.Following 9221 } 9222 9223 // GetHasOrganizationProjects returns the HasOrganizationProjects field if it's non-nil, zero value otherwise. 9224 func (o *Organization) GetHasOrganizationProjects() bool { 9225 if o == nil || o.HasOrganizationProjects == nil { 9226 return false 9227 } 9228 return *o.HasOrganizationProjects 9229 } 9230 9231 // GetHasRepositoryProjects returns the HasRepositoryProjects field if it's non-nil, zero value otherwise. 9232 func (o *Organization) GetHasRepositoryProjects() bool { 9233 if o == nil || o.HasRepositoryProjects == nil { 9234 return false 9235 } 9236 return *o.HasRepositoryProjects 9237 } 9238 9239 // GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 9240 func (o *Organization) GetHooksURL() string { 9241 if o == nil || o.HooksURL == nil { 9242 return "" 9243 } 9244 return *o.HooksURL 9245 } 9246 9247 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9248 func (o *Organization) GetHTMLURL() string { 9249 if o == nil || o.HTMLURL == nil { 9250 return "" 9251 } 9252 return *o.HTMLURL 9253 } 9254 9255 // GetID returns the ID field if it's non-nil, zero value otherwise. 9256 func (o *Organization) GetID() int64 { 9257 if o == nil || o.ID == nil { 9258 return 0 9259 } 9260 return *o.ID 9261 } 9262 9263 // GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 9264 func (o *Organization) GetIssuesURL() string { 9265 if o == nil || o.IssuesURL == nil { 9266 return "" 9267 } 9268 return *o.IssuesURL 9269 } 9270 9271 // GetIsVerified returns the IsVerified field if it's non-nil, zero value otherwise. 9272 func (o *Organization) GetIsVerified() bool { 9273 if o == nil || o.IsVerified == nil { 9274 return false 9275 } 9276 return *o.IsVerified 9277 } 9278 9279 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 9280 func (o *Organization) GetLocation() string { 9281 if o == nil || o.Location == nil { 9282 return "" 9283 } 9284 return *o.Location 9285 } 9286 9287 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 9288 func (o *Organization) GetLogin() string { 9289 if o == nil || o.Login == nil { 9290 return "" 9291 } 9292 return *o.Login 9293 } 9294 9295 // GetMembersAllowedRepositoryCreationType returns the MembersAllowedRepositoryCreationType field if it's non-nil, zero value otherwise. 9296 func (o *Organization) GetMembersAllowedRepositoryCreationType() string { 9297 if o == nil || o.MembersAllowedRepositoryCreationType == nil { 9298 return "" 9299 } 9300 return *o.MembersAllowedRepositoryCreationType 9301 } 9302 9303 // GetMembersCanCreateInternalRepos returns the MembersCanCreateInternalRepos field if it's non-nil, zero value otherwise. 9304 func (o *Organization) GetMembersCanCreateInternalRepos() bool { 9305 if o == nil || o.MembersCanCreateInternalRepos == nil { 9306 return false 9307 } 9308 return *o.MembersCanCreateInternalRepos 9309 } 9310 9311 // GetMembersCanCreatePages returns the MembersCanCreatePages field if it's non-nil, zero value otherwise. 9312 func (o *Organization) GetMembersCanCreatePages() bool { 9313 if o == nil || o.MembersCanCreatePages == nil { 9314 return false 9315 } 9316 return *o.MembersCanCreatePages 9317 } 9318 9319 // GetMembersCanCreatePrivatePages returns the MembersCanCreatePrivatePages field if it's non-nil, zero value otherwise. 9320 func (o *Organization) GetMembersCanCreatePrivatePages() bool { 9321 if o == nil || o.MembersCanCreatePrivatePages == nil { 9322 return false 9323 } 9324 return *o.MembersCanCreatePrivatePages 9325 } 9326 9327 // GetMembersCanCreatePrivateRepos returns the MembersCanCreatePrivateRepos field if it's non-nil, zero value otherwise. 9328 func (o *Organization) GetMembersCanCreatePrivateRepos() bool { 9329 if o == nil || o.MembersCanCreatePrivateRepos == nil { 9330 return false 9331 } 9332 return *o.MembersCanCreatePrivateRepos 9333 } 9334 9335 // GetMembersCanCreatePublicPages returns the MembersCanCreatePublicPages field if it's non-nil, zero value otherwise. 9336 func (o *Organization) GetMembersCanCreatePublicPages() bool { 9337 if o == nil || o.MembersCanCreatePublicPages == nil { 9338 return false 9339 } 9340 return *o.MembersCanCreatePublicPages 9341 } 9342 9343 // GetMembersCanCreatePublicRepos returns the MembersCanCreatePublicRepos field if it's non-nil, zero value otherwise. 9344 func (o *Organization) GetMembersCanCreatePublicRepos() bool { 9345 if o == nil || o.MembersCanCreatePublicRepos == nil { 9346 return false 9347 } 9348 return *o.MembersCanCreatePublicRepos 9349 } 9350 9351 // GetMembersCanCreateRepos returns the MembersCanCreateRepos field if it's non-nil, zero value otherwise. 9352 func (o *Organization) GetMembersCanCreateRepos() bool { 9353 if o == nil || o.MembersCanCreateRepos == nil { 9354 return false 9355 } 9356 return *o.MembersCanCreateRepos 9357 } 9358 9359 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 9360 func (o *Organization) GetMembersURL() string { 9361 if o == nil || o.MembersURL == nil { 9362 return "" 9363 } 9364 return *o.MembersURL 9365 } 9366 9367 // GetName returns the Name field if it's non-nil, zero value otherwise. 9368 func (o *Organization) GetName() string { 9369 if o == nil || o.Name == nil { 9370 return "" 9371 } 9372 return *o.Name 9373 } 9374 9375 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9376 func (o *Organization) GetNodeID() string { 9377 if o == nil || o.NodeID == nil { 9378 return "" 9379 } 9380 return *o.NodeID 9381 } 9382 9383 // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 9384 func (o *Organization) GetOwnedPrivateRepos() int { 9385 if o == nil || o.OwnedPrivateRepos == nil { 9386 return 0 9387 } 9388 return *o.OwnedPrivateRepos 9389 } 9390 9391 // GetPlan returns the Plan field. 9392 func (o *Organization) GetPlan() *Plan { 9393 if o == nil { 9394 return nil 9395 } 9396 return o.Plan 9397 } 9398 9399 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 9400 func (o *Organization) GetPrivateGists() int { 9401 if o == nil || o.PrivateGists == nil { 9402 return 0 9403 } 9404 return *o.PrivateGists 9405 } 9406 9407 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 9408 func (o *Organization) GetPublicGists() int { 9409 if o == nil || o.PublicGists == nil { 9410 return 0 9411 } 9412 return *o.PublicGists 9413 } 9414 9415 // GetPublicMembersURL returns the PublicMembersURL field if it's non-nil, zero value otherwise. 9416 func (o *Organization) GetPublicMembersURL() string { 9417 if o == nil || o.PublicMembersURL == nil { 9418 return "" 9419 } 9420 return *o.PublicMembersURL 9421 } 9422 9423 // GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 9424 func (o *Organization) GetPublicRepos() int { 9425 if o == nil || o.PublicRepos == nil { 9426 return 0 9427 } 9428 return *o.PublicRepos 9429 } 9430 9431 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 9432 func (o *Organization) GetReposURL() string { 9433 if o == nil || o.ReposURL == nil { 9434 return "" 9435 } 9436 return *o.ReposURL 9437 } 9438 9439 // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 9440 func (o *Organization) GetTotalPrivateRepos() int { 9441 if o == nil || o.TotalPrivateRepos == nil { 9442 return 0 9443 } 9444 return *o.TotalPrivateRepos 9445 } 9446 9447 // GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. 9448 func (o *Organization) GetTwitterUsername() string { 9449 if o == nil || o.TwitterUsername == nil { 9450 return "" 9451 } 9452 return *o.TwitterUsername 9453 } 9454 9455 // GetTwoFactorRequirementEnabled returns the TwoFactorRequirementEnabled field if it's non-nil, zero value otherwise. 9456 func (o *Organization) GetTwoFactorRequirementEnabled() bool { 9457 if o == nil || o.TwoFactorRequirementEnabled == nil { 9458 return false 9459 } 9460 return *o.TwoFactorRequirementEnabled 9461 } 9462 9463 // GetType returns the Type field if it's non-nil, zero value otherwise. 9464 func (o *Organization) GetType() string { 9465 if o == nil || o.Type == nil { 9466 return "" 9467 } 9468 return *o.Type 9469 } 9470 9471 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9472 func (o *Organization) GetUpdatedAt() time.Time { 9473 if o == nil || o.UpdatedAt == nil { 9474 return time.Time{} 9475 } 9476 return *o.UpdatedAt 9477 } 9478 9479 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9480 func (o *Organization) GetURL() string { 9481 if o == nil || o.URL == nil { 9482 return "" 9483 } 9484 return *o.URL 9485 } 9486 9487 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9488 func (o *OrganizationEvent) GetAction() string { 9489 if o == nil || o.Action == nil { 9490 return "" 9491 } 9492 return *o.Action 9493 } 9494 9495 // GetInstallation returns the Installation field. 9496 func (o *OrganizationEvent) GetInstallation() *Installation { 9497 if o == nil { 9498 return nil 9499 } 9500 return o.Installation 9501 } 9502 9503 // GetInvitation returns the Invitation field. 9504 func (o *OrganizationEvent) GetInvitation() *Invitation { 9505 if o == nil { 9506 return nil 9507 } 9508 return o.Invitation 9509 } 9510 9511 // GetMembership returns the Membership field. 9512 func (o *OrganizationEvent) GetMembership() *Membership { 9513 if o == nil { 9514 return nil 9515 } 9516 return o.Membership 9517 } 9518 9519 // GetOrganization returns the Organization field. 9520 func (o *OrganizationEvent) GetOrganization() *Organization { 9521 if o == nil { 9522 return nil 9523 } 9524 return o.Organization 9525 } 9526 9527 // GetSender returns the Sender field. 9528 func (o *OrganizationEvent) GetSender() *User { 9529 if o == nil { 9530 return nil 9531 } 9532 return o.Sender 9533 } 9534 9535 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 9536 func (o *OrganizationInstallations) GetTotalCount() int { 9537 if o == nil || o.TotalCount == nil { 9538 return 0 9539 } 9540 return *o.TotalCount 9541 } 9542 9543 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9544 func (o *OrgBlockEvent) GetAction() string { 9545 if o == nil || o.Action == nil { 9546 return "" 9547 } 9548 return *o.Action 9549 } 9550 9551 // GetBlockedUser returns the BlockedUser field. 9552 func (o *OrgBlockEvent) GetBlockedUser() *User { 9553 if o == nil { 9554 return nil 9555 } 9556 return o.BlockedUser 9557 } 9558 9559 // GetInstallation returns the Installation field. 9560 func (o *OrgBlockEvent) GetInstallation() *Installation { 9561 if o == nil { 9562 return nil 9563 } 9564 return o.Installation 9565 } 9566 9567 // GetOrganization returns the Organization field. 9568 func (o *OrgBlockEvent) GetOrganization() *Organization { 9569 if o == nil { 9570 return nil 9571 } 9572 return o.Organization 9573 } 9574 9575 // GetSender returns the Sender field. 9576 func (o *OrgBlockEvent) GetSender() *User { 9577 if o == nil { 9578 return nil 9579 } 9580 return o.Sender 9581 } 9582 9583 // GetDisabledOrgs returns the DisabledOrgs field if it's non-nil, zero value otherwise. 9584 func (o *OrgStats) GetDisabledOrgs() int { 9585 if o == nil || o.DisabledOrgs == nil { 9586 return 0 9587 } 9588 return *o.DisabledOrgs 9589 } 9590 9591 // GetTotalOrgs returns the TotalOrgs field if it's non-nil, zero value otherwise. 9592 func (o *OrgStats) GetTotalOrgs() int { 9593 if o == nil || o.TotalOrgs == nil { 9594 return 0 9595 } 9596 return *o.TotalOrgs 9597 } 9598 9599 // GetTotalTeamMembers returns the TotalTeamMembers field if it's non-nil, zero value otherwise. 9600 func (o *OrgStats) GetTotalTeamMembers() int { 9601 if o == nil || o.TotalTeamMembers == nil { 9602 return 0 9603 } 9604 return *o.TotalTeamMembers 9605 } 9606 9607 // GetTotalTeams returns the TotalTeams field if it's non-nil, zero value otherwise. 9608 func (o *OrgStats) GetTotalTeams() int { 9609 if o == nil || o.TotalTeams == nil { 9610 return 0 9611 } 9612 return *o.TotalTeams 9613 } 9614 9615 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9616 func (p *Package) GetCreatedAt() Timestamp { 9617 if p == nil || p.CreatedAt == nil { 9618 return Timestamp{} 9619 } 9620 return *p.CreatedAt 9621 } 9622 9623 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9624 func (p *Package) GetHTMLURL() string { 9625 if p == nil || p.HTMLURL == nil { 9626 return "" 9627 } 9628 return *p.HTMLURL 9629 } 9630 9631 // GetID returns the ID field if it's non-nil, zero value otherwise. 9632 func (p *Package) GetID() int64 { 9633 if p == nil || p.ID == nil { 9634 return 0 9635 } 9636 return *p.ID 9637 } 9638 9639 // GetName returns the Name field if it's non-nil, zero value otherwise. 9640 func (p *Package) GetName() string { 9641 if p == nil || p.Name == nil { 9642 return "" 9643 } 9644 return *p.Name 9645 } 9646 9647 // GetOwner returns the Owner field. 9648 func (p *Package) GetOwner() *User { 9649 if p == nil { 9650 return nil 9651 } 9652 return p.Owner 9653 } 9654 9655 // GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. 9656 func (p *Package) GetPackageType() string { 9657 if p == nil || p.PackageType == nil { 9658 return "" 9659 } 9660 return *p.PackageType 9661 } 9662 9663 // GetPackageVersion returns the PackageVersion field. 9664 func (p *Package) GetPackageVersion() *PackageVersion { 9665 if p == nil { 9666 return nil 9667 } 9668 return p.PackageVersion 9669 } 9670 9671 // GetRegistry returns the Registry field. 9672 func (p *Package) GetRegistry() *PackageRegistry { 9673 if p == nil { 9674 return nil 9675 } 9676 return p.Registry 9677 } 9678 9679 // GetRepository returns the Repository field. 9680 func (p *Package) GetRepository() *Repository { 9681 if p == nil { 9682 return nil 9683 } 9684 return p.Repository 9685 } 9686 9687 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9688 func (p *Package) GetUpdatedAt() Timestamp { 9689 if p == nil || p.UpdatedAt == nil { 9690 return Timestamp{} 9691 } 9692 return *p.UpdatedAt 9693 } 9694 9695 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9696 func (p *Package) GetURL() string { 9697 if p == nil || p.URL == nil { 9698 return "" 9699 } 9700 return *p.URL 9701 } 9702 9703 // GetVersionCount returns the VersionCount field if it's non-nil, zero value otherwise. 9704 func (p *Package) GetVersionCount() int64 { 9705 if p == nil || p.VersionCount == nil { 9706 return 0 9707 } 9708 return *p.VersionCount 9709 } 9710 9711 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 9712 func (p *Package) GetVisibility() string { 9713 if p == nil || p.Visibility == nil { 9714 return "" 9715 } 9716 return *p.Visibility 9717 } 9718 9719 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9720 func (p *PackageEvent) GetAction() string { 9721 if p == nil || p.Action == nil { 9722 return "" 9723 } 9724 return *p.Action 9725 } 9726 9727 // GetInstallation returns the Installation field. 9728 func (p *PackageEvent) GetInstallation() *Installation { 9729 if p == nil { 9730 return nil 9731 } 9732 return p.Installation 9733 } 9734 9735 // GetOrg returns the Org field. 9736 func (p *PackageEvent) GetOrg() *Organization { 9737 if p == nil { 9738 return nil 9739 } 9740 return p.Org 9741 } 9742 9743 // GetPackage returns the Package field. 9744 func (p *PackageEvent) GetPackage() *Package { 9745 if p == nil { 9746 return nil 9747 } 9748 return p.Package 9749 } 9750 9751 // GetRepo returns the Repo field. 9752 func (p *PackageEvent) GetRepo() *Repository { 9753 if p == nil { 9754 return nil 9755 } 9756 return p.Repo 9757 } 9758 9759 // GetSender returns the Sender field. 9760 func (p *PackageEvent) GetSender() *User { 9761 if p == nil { 9762 return nil 9763 } 9764 return p.Sender 9765 } 9766 9767 // GetAuthor returns the Author field. 9768 func (p *PackageFile) GetAuthor() *User { 9769 if p == nil { 9770 return nil 9771 } 9772 return p.Author 9773 } 9774 9775 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 9776 func (p *PackageFile) GetContentType() string { 9777 if p == nil || p.ContentType == nil { 9778 return "" 9779 } 9780 return *p.ContentType 9781 } 9782 9783 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9784 func (p *PackageFile) GetCreatedAt() Timestamp { 9785 if p == nil || p.CreatedAt == nil { 9786 return Timestamp{} 9787 } 9788 return *p.CreatedAt 9789 } 9790 9791 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 9792 func (p *PackageFile) GetDownloadURL() string { 9793 if p == nil || p.DownloadURL == nil { 9794 return "" 9795 } 9796 return *p.DownloadURL 9797 } 9798 9799 // GetID returns the ID field if it's non-nil, zero value otherwise. 9800 func (p *PackageFile) GetID() int64 { 9801 if p == nil || p.ID == nil { 9802 return 0 9803 } 9804 return *p.ID 9805 } 9806 9807 // GetMD5 returns the MD5 field if it's non-nil, zero value otherwise. 9808 func (p *PackageFile) GetMD5() string { 9809 if p == nil || p.MD5 == nil { 9810 return "" 9811 } 9812 return *p.MD5 9813 } 9814 9815 // GetName returns the Name field if it's non-nil, zero value otherwise. 9816 func (p *PackageFile) GetName() string { 9817 if p == nil || p.Name == nil { 9818 return "" 9819 } 9820 return *p.Name 9821 } 9822 9823 // GetSHA1 returns the SHA1 field if it's non-nil, zero value otherwise. 9824 func (p *PackageFile) GetSHA1() string { 9825 if p == nil || p.SHA1 == nil { 9826 return "" 9827 } 9828 return *p.SHA1 9829 } 9830 9831 // GetSHA256 returns the SHA256 field if it's non-nil, zero value otherwise. 9832 func (p *PackageFile) GetSHA256() string { 9833 if p == nil || p.SHA256 == nil { 9834 return "" 9835 } 9836 return *p.SHA256 9837 } 9838 9839 // GetSize returns the Size field if it's non-nil, zero value otherwise. 9840 func (p *PackageFile) GetSize() int64 { 9841 if p == nil || p.Size == nil { 9842 return 0 9843 } 9844 return *p.Size 9845 } 9846 9847 // GetState returns the State field if it's non-nil, zero value otherwise. 9848 func (p *PackageFile) GetState() string { 9849 if p == nil || p.State == nil { 9850 return "" 9851 } 9852 return *p.State 9853 } 9854 9855 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9856 func (p *PackageFile) GetUpdatedAt() Timestamp { 9857 if p == nil || p.UpdatedAt == nil { 9858 return Timestamp{} 9859 } 9860 return *p.UpdatedAt 9861 } 9862 9863 // GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. 9864 func (p *PackageListOptions) GetPackageType() string { 9865 if p == nil || p.PackageType == nil { 9866 return "" 9867 } 9868 return *p.PackageType 9869 } 9870 9871 // GetState returns the State field if it's non-nil, zero value otherwise. 9872 func (p *PackageListOptions) GetState() string { 9873 if p == nil || p.State == nil { 9874 return "" 9875 } 9876 return *p.State 9877 } 9878 9879 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 9880 func (p *PackageListOptions) GetVisibility() string { 9881 if p == nil || p.Visibility == nil { 9882 return "" 9883 } 9884 return *p.Visibility 9885 } 9886 9887 // GetContainer returns the Container field. 9888 func (p *PackageMetadata) GetContainer() *PackageContainerMetadata { 9889 if p == nil { 9890 return nil 9891 } 9892 return p.Container 9893 } 9894 9895 // GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. 9896 func (p *PackageMetadata) GetPackageType() string { 9897 if p == nil || p.PackageType == nil { 9898 return "" 9899 } 9900 return *p.PackageType 9901 } 9902 9903 // GetAboutURL returns the AboutURL field if it's non-nil, zero value otherwise. 9904 func (p *PackageRegistry) GetAboutURL() string { 9905 if p == nil || p.AboutURL == nil { 9906 return "" 9907 } 9908 return *p.AboutURL 9909 } 9910 9911 // GetName returns the Name field if it's non-nil, zero value otherwise. 9912 func (p *PackageRegistry) GetName() string { 9913 if p == nil || p.Name == nil { 9914 return "" 9915 } 9916 return *p.Name 9917 } 9918 9919 // GetType returns the Type field if it's non-nil, zero value otherwise. 9920 func (p *PackageRegistry) GetType() string { 9921 if p == nil || p.Type == nil { 9922 return "" 9923 } 9924 return *p.Type 9925 } 9926 9927 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9928 func (p *PackageRegistry) GetURL() string { 9929 if p == nil || p.URL == nil { 9930 return "" 9931 } 9932 return *p.URL 9933 } 9934 9935 // GetVendor returns the Vendor field if it's non-nil, zero value otherwise. 9936 func (p *PackageRegistry) GetVendor() string { 9937 if p == nil || p.Vendor == nil { 9938 return "" 9939 } 9940 return *p.Vendor 9941 } 9942 9943 // GetAuthor returns the Author field. 9944 func (p *PackageRelease) GetAuthor() *User { 9945 if p == nil { 9946 return nil 9947 } 9948 return p.Author 9949 } 9950 9951 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9952 func (p *PackageRelease) GetCreatedAt() Timestamp { 9953 if p == nil || p.CreatedAt == nil { 9954 return Timestamp{} 9955 } 9956 return *p.CreatedAt 9957 } 9958 9959 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 9960 func (p *PackageRelease) GetDraft() bool { 9961 if p == nil || p.Draft == nil { 9962 return false 9963 } 9964 return *p.Draft 9965 } 9966 9967 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9968 func (p *PackageRelease) GetHTMLURL() string { 9969 if p == nil || p.HTMLURL == nil { 9970 return "" 9971 } 9972 return *p.HTMLURL 9973 } 9974 9975 // GetID returns the ID field if it's non-nil, zero value otherwise. 9976 func (p *PackageRelease) GetID() int64 { 9977 if p == nil || p.ID == nil { 9978 return 0 9979 } 9980 return *p.ID 9981 } 9982 9983 // GetName returns the Name field if it's non-nil, zero value otherwise. 9984 func (p *PackageRelease) GetName() string { 9985 if p == nil || p.Name == nil { 9986 return "" 9987 } 9988 return *p.Name 9989 } 9990 9991 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 9992 func (p *PackageRelease) GetPrerelease() bool { 9993 if p == nil || p.Prerelease == nil { 9994 return false 9995 } 9996 return *p.Prerelease 9997 } 9998 9999 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 10000 func (p *PackageRelease) GetPublishedAt() Timestamp { 10001 if p == nil || p.PublishedAt == nil { 10002 return Timestamp{} 10003 } 10004 return *p.PublishedAt 10005 } 10006 10007 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 10008 func (p *PackageRelease) GetTagName() string { 10009 if p == nil || p.TagName == nil { 10010 return "" 10011 } 10012 return *p.TagName 10013 } 10014 10015 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 10016 func (p *PackageRelease) GetTargetCommitish() string { 10017 if p == nil || p.TargetCommitish == nil { 10018 return "" 10019 } 10020 return *p.TargetCommitish 10021 } 10022 10023 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10024 func (p *PackageRelease) GetURL() string { 10025 if p == nil || p.URL == nil { 10026 return "" 10027 } 10028 return *p.URL 10029 } 10030 10031 // GetAuthor returns the Author field. 10032 func (p *PackageVersion) GetAuthor() *User { 10033 if p == nil { 10034 return nil 10035 } 10036 return p.Author 10037 } 10038 10039 // GetBody returns the Body field if it's non-nil, zero value otherwise. 10040 func (p *PackageVersion) GetBody() string { 10041 if p == nil || p.Body == nil { 10042 return "" 10043 } 10044 return *p.Body 10045 } 10046 10047 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 10048 func (p *PackageVersion) GetBodyHTML() string { 10049 if p == nil || p.BodyHTML == nil { 10050 return "" 10051 } 10052 return *p.BodyHTML 10053 } 10054 10055 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10056 func (p *PackageVersion) GetCreatedAt() Timestamp { 10057 if p == nil || p.CreatedAt == nil { 10058 return Timestamp{} 10059 } 10060 return *p.CreatedAt 10061 } 10062 10063 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 10064 func (p *PackageVersion) GetDraft() bool { 10065 if p == nil || p.Draft == nil { 10066 return false 10067 } 10068 return *p.Draft 10069 } 10070 10071 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 10072 func (p *PackageVersion) GetHTMLURL() string { 10073 if p == nil || p.HTMLURL == nil { 10074 return "" 10075 } 10076 return *p.HTMLURL 10077 } 10078 10079 // GetID returns the ID field if it's non-nil, zero value otherwise. 10080 func (p *PackageVersion) GetID() int64 { 10081 if p == nil || p.ID == nil { 10082 return 0 10083 } 10084 return *p.ID 10085 } 10086 10087 // GetInstallationCommand returns the InstallationCommand field if it's non-nil, zero value otherwise. 10088 func (p *PackageVersion) GetInstallationCommand() string { 10089 if p == nil || p.InstallationCommand == nil { 10090 return "" 10091 } 10092 return *p.InstallationCommand 10093 } 10094 10095 // GetManifest returns the Manifest field if it's non-nil, zero value otherwise. 10096 func (p *PackageVersion) GetManifest() string { 10097 if p == nil || p.Manifest == nil { 10098 return "" 10099 } 10100 return *p.Manifest 10101 } 10102 10103 // GetMetadata returns the Metadata field. 10104 func (p *PackageVersion) GetMetadata() *PackageMetadata { 10105 if p == nil { 10106 return nil 10107 } 10108 return p.Metadata 10109 } 10110 10111 // GetName returns the Name field if it's non-nil, zero value otherwise. 10112 func (p *PackageVersion) GetName() string { 10113 if p == nil || p.Name == nil { 10114 return "" 10115 } 10116 return *p.Name 10117 } 10118 10119 // GetPackageHTMLURL returns the PackageHTMLURL field if it's non-nil, zero value otherwise. 10120 func (p *PackageVersion) GetPackageHTMLURL() string { 10121 if p == nil || p.PackageHTMLURL == nil { 10122 return "" 10123 } 10124 return *p.PackageHTMLURL 10125 } 10126 10127 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 10128 func (p *PackageVersion) GetPrerelease() bool { 10129 if p == nil || p.Prerelease == nil { 10130 return false 10131 } 10132 return *p.Prerelease 10133 } 10134 10135 // GetRelease returns the Release field. 10136 func (p *PackageVersion) GetRelease() *PackageRelease { 10137 if p == nil { 10138 return nil 10139 } 10140 return p.Release 10141 } 10142 10143 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 10144 func (p *PackageVersion) GetSummary() string { 10145 if p == nil || p.Summary == nil { 10146 return "" 10147 } 10148 return *p.Summary 10149 } 10150 10151 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 10152 func (p *PackageVersion) GetTagName() string { 10153 if p == nil || p.TagName == nil { 10154 return "" 10155 } 10156 return *p.TagName 10157 } 10158 10159 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 10160 func (p *PackageVersion) GetTargetCommitish() string { 10161 if p == nil || p.TargetCommitish == nil { 10162 return "" 10163 } 10164 return *p.TargetCommitish 10165 } 10166 10167 // GetTargetOID returns the TargetOID field if it's non-nil, zero value otherwise. 10168 func (p *PackageVersion) GetTargetOID() string { 10169 if p == nil || p.TargetOID == nil { 10170 return "" 10171 } 10172 return *p.TargetOID 10173 } 10174 10175 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10176 func (p *PackageVersion) GetUpdatedAt() Timestamp { 10177 if p == nil || p.UpdatedAt == nil { 10178 return Timestamp{} 10179 } 10180 return *p.UpdatedAt 10181 } 10182 10183 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10184 func (p *PackageVersion) GetURL() string { 10185 if p == nil || p.URL == nil { 10186 return "" 10187 } 10188 return *p.URL 10189 } 10190 10191 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 10192 func (p *PackageVersion) GetVersion() string { 10193 if p == nil || p.Version == nil { 10194 return "" 10195 } 10196 return *p.Version 10197 } 10198 10199 // GetAction returns the Action field if it's non-nil, zero value otherwise. 10200 func (p *Page) GetAction() string { 10201 if p == nil || p.Action == nil { 10202 return "" 10203 } 10204 return *p.Action 10205 } 10206 10207 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 10208 func (p *Page) GetHTMLURL() string { 10209 if p == nil || p.HTMLURL == nil { 10210 return "" 10211 } 10212 return *p.HTMLURL 10213 } 10214 10215 // GetPageName returns the PageName field if it's non-nil, zero value otherwise. 10216 func (p *Page) GetPageName() string { 10217 if p == nil || p.PageName == nil { 10218 return "" 10219 } 10220 return *p.PageName 10221 } 10222 10223 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 10224 func (p *Page) GetSHA() string { 10225 if p == nil || p.SHA == nil { 10226 return "" 10227 } 10228 return *p.SHA 10229 } 10230 10231 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 10232 func (p *Page) GetSummary() string { 10233 if p == nil || p.Summary == nil { 10234 return "" 10235 } 10236 return *p.Summary 10237 } 10238 10239 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 10240 func (p *Page) GetTitle() string { 10241 if p == nil || p.Title == nil { 10242 return "" 10243 } 10244 return *p.Title 10245 } 10246 10247 // GetBuild returns the Build field. 10248 func (p *PageBuildEvent) GetBuild() *PagesBuild { 10249 if p == nil { 10250 return nil 10251 } 10252 return p.Build 10253 } 10254 10255 // GetID returns the ID field if it's non-nil, zero value otherwise. 10256 func (p *PageBuildEvent) GetID() int64 { 10257 if p == nil || p.ID == nil { 10258 return 0 10259 } 10260 return *p.ID 10261 } 10262 10263 // GetInstallation returns the Installation field. 10264 func (p *PageBuildEvent) GetInstallation() *Installation { 10265 if p == nil { 10266 return nil 10267 } 10268 return p.Installation 10269 } 10270 10271 // GetRepo returns the Repo field. 10272 func (p *PageBuildEvent) GetRepo() *Repository { 10273 if p == nil { 10274 return nil 10275 } 10276 return p.Repo 10277 } 10278 10279 // GetSender returns the Sender field. 10280 func (p *PageBuildEvent) GetSender() *User { 10281 if p == nil { 10282 return nil 10283 } 10284 return p.Sender 10285 } 10286 10287 // GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. 10288 func (p *Pages) GetCNAME() string { 10289 if p == nil || p.CNAME == nil { 10290 return "" 10291 } 10292 return *p.CNAME 10293 } 10294 10295 // GetCustom404 returns the Custom404 field if it's non-nil, zero value otherwise. 10296 func (p *Pages) GetCustom404() bool { 10297 if p == nil || p.Custom404 == nil { 10298 return false 10299 } 10300 return *p.Custom404 10301 } 10302 10303 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 10304 func (p *Pages) GetHTMLURL() string { 10305 if p == nil || p.HTMLURL == nil { 10306 return "" 10307 } 10308 return *p.HTMLURL 10309 } 10310 10311 // GetHTTPSCertificate returns the HTTPSCertificate field. 10312 func (p *Pages) GetHTTPSCertificate() *PagesHTTPSCertificate { 10313 if p == nil { 10314 return nil 10315 } 10316 return p.HTTPSCertificate 10317 } 10318 10319 // GetHTTPSEnforced returns the HTTPSEnforced field if it's non-nil, zero value otherwise. 10320 func (p *Pages) GetHTTPSEnforced() bool { 10321 if p == nil || p.HTTPSEnforced == nil { 10322 return false 10323 } 10324 return *p.HTTPSEnforced 10325 } 10326 10327 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 10328 func (p *Pages) GetPublic() bool { 10329 if p == nil || p.Public == nil { 10330 return false 10331 } 10332 return *p.Public 10333 } 10334 10335 // GetSource returns the Source field. 10336 func (p *Pages) GetSource() *PagesSource { 10337 if p == nil { 10338 return nil 10339 } 10340 return p.Source 10341 } 10342 10343 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 10344 func (p *Pages) GetStatus() string { 10345 if p == nil || p.Status == nil { 10346 return "" 10347 } 10348 return *p.Status 10349 } 10350 10351 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10352 func (p *Pages) GetURL() string { 10353 if p == nil || p.URL == nil { 10354 return "" 10355 } 10356 return *p.URL 10357 } 10358 10359 // GetCommit returns the Commit field if it's non-nil, zero value otherwise. 10360 func (p *PagesBuild) GetCommit() string { 10361 if p == nil || p.Commit == nil { 10362 return "" 10363 } 10364 return *p.Commit 10365 } 10366 10367 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10368 func (p *PagesBuild) GetCreatedAt() Timestamp { 10369 if p == nil || p.CreatedAt == nil { 10370 return Timestamp{} 10371 } 10372 return *p.CreatedAt 10373 } 10374 10375 // GetDuration returns the Duration field if it's non-nil, zero value otherwise. 10376 func (p *PagesBuild) GetDuration() int { 10377 if p == nil || p.Duration == nil { 10378 return 0 10379 } 10380 return *p.Duration 10381 } 10382 10383 // GetError returns the Error field. 10384 func (p *PagesBuild) GetError() *PagesError { 10385 if p == nil { 10386 return nil 10387 } 10388 return p.Error 10389 } 10390 10391 // GetPusher returns the Pusher field. 10392 func (p *PagesBuild) GetPusher() *User { 10393 if p == nil { 10394 return nil 10395 } 10396 return p.Pusher 10397 } 10398 10399 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 10400 func (p *PagesBuild) GetStatus() string { 10401 if p == nil || p.Status == nil { 10402 return "" 10403 } 10404 return *p.Status 10405 } 10406 10407 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10408 func (p *PagesBuild) GetUpdatedAt() Timestamp { 10409 if p == nil || p.UpdatedAt == nil { 10410 return Timestamp{} 10411 } 10412 return *p.UpdatedAt 10413 } 10414 10415 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10416 func (p *PagesBuild) GetURL() string { 10417 if p == nil || p.URL == nil { 10418 return "" 10419 } 10420 return *p.URL 10421 } 10422 10423 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 10424 func (p *PagesError) GetMessage() string { 10425 if p == nil || p.Message == nil { 10426 return "" 10427 } 10428 return *p.Message 10429 } 10430 10431 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 10432 func (p *PagesHTTPSCertificate) GetDescription() string { 10433 if p == nil || p.Description == nil { 10434 return "" 10435 } 10436 return *p.Description 10437 } 10438 10439 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 10440 func (p *PagesHTTPSCertificate) GetExpiresAt() string { 10441 if p == nil || p.ExpiresAt == nil { 10442 return "" 10443 } 10444 return *p.ExpiresAt 10445 } 10446 10447 // GetState returns the State field if it's non-nil, zero value otherwise. 10448 func (p *PagesHTTPSCertificate) GetState() string { 10449 if p == nil || p.State == nil { 10450 return "" 10451 } 10452 return *p.State 10453 } 10454 10455 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 10456 func (p *PagesSource) GetBranch() string { 10457 if p == nil || p.Branch == nil { 10458 return "" 10459 } 10460 return *p.Branch 10461 } 10462 10463 // GetPath returns the Path field if it's non-nil, zero value otherwise. 10464 func (p *PagesSource) GetPath() string { 10465 if p == nil || p.Path == nil { 10466 return "" 10467 } 10468 return *p.Path 10469 } 10470 10471 // GetTotalPages returns the TotalPages field if it's non-nil, zero value otherwise. 10472 func (p *PageStats) GetTotalPages() int { 10473 if p == nil || p.TotalPages == nil { 10474 return 0 10475 } 10476 return *p.TotalPages 10477 } 10478 10479 // GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. 10480 func (p *PagesUpdate) GetCNAME() string { 10481 if p == nil || p.CNAME == nil { 10482 return "" 10483 } 10484 return *p.CNAME 10485 } 10486 10487 // GetSource returns the Source field if it's non-nil, zero value otherwise. 10488 func (p *PagesUpdate) GetSource() string { 10489 if p == nil || p.Source == nil { 10490 return "" 10491 } 10492 return *p.Source 10493 } 10494 10495 // GetHook returns the Hook field. 10496 func (p *PingEvent) GetHook() *Hook { 10497 if p == nil { 10498 return nil 10499 } 10500 return p.Hook 10501 } 10502 10503 // GetHookID returns the HookID field if it's non-nil, zero value otherwise. 10504 func (p *PingEvent) GetHookID() int64 { 10505 if p == nil || p.HookID == nil { 10506 return 0 10507 } 10508 return *p.HookID 10509 } 10510 10511 // GetInstallation returns the Installation field. 10512 func (p *PingEvent) GetInstallation() *Installation { 10513 if p == nil { 10514 return nil 10515 } 10516 return p.Installation 10517 } 10518 10519 // GetZen returns the Zen field if it's non-nil, zero value otherwise. 10520 func (p *PingEvent) GetZen() string { 10521 if p == nil || p.Zen == nil { 10522 return "" 10523 } 10524 return *p.Zen 10525 } 10526 10527 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 10528 func (p *Plan) GetCollaborators() int { 10529 if p == nil || p.Collaborators == nil { 10530 return 0 10531 } 10532 return *p.Collaborators 10533 } 10534 10535 // GetFilledSeats returns the FilledSeats field if it's non-nil, zero value otherwise. 10536 func (p *Plan) GetFilledSeats() int { 10537 if p == nil || p.FilledSeats == nil { 10538 return 0 10539 } 10540 return *p.FilledSeats 10541 } 10542 10543 // GetName returns the Name field if it's non-nil, zero value otherwise. 10544 func (p *Plan) GetName() string { 10545 if p == nil || p.Name == nil { 10546 return "" 10547 } 10548 return *p.Name 10549 } 10550 10551 // GetPrivateRepos returns the PrivateRepos field if it's non-nil, zero value otherwise. 10552 func (p *Plan) GetPrivateRepos() int { 10553 if p == nil || p.PrivateRepos == nil { 10554 return 0 10555 } 10556 return *p.PrivateRepos 10557 } 10558 10559 // GetSeats returns the Seats field if it's non-nil, zero value otherwise. 10560 func (p *Plan) GetSeats() int { 10561 if p == nil || p.Seats == nil { 10562 return 0 10563 } 10564 return *p.Seats 10565 } 10566 10567 // GetSpace returns the Space field if it's non-nil, zero value otherwise. 10568 func (p *Plan) GetSpace() int { 10569 if p == nil || p.Space == nil { 10570 return 0 10571 } 10572 return *p.Space 10573 } 10574 10575 // GetConfigURL returns the ConfigURL field if it's non-nil, zero value otherwise. 10576 func (p *PreReceiveHook) GetConfigURL() string { 10577 if p == nil || p.ConfigURL == nil { 10578 return "" 10579 } 10580 return *p.ConfigURL 10581 } 10582 10583 // GetEnforcement returns the Enforcement field if it's non-nil, zero value otherwise. 10584 func (p *PreReceiveHook) GetEnforcement() string { 10585 if p == nil || p.Enforcement == nil { 10586 return "" 10587 } 10588 return *p.Enforcement 10589 } 10590 10591 // GetID returns the ID field if it's non-nil, zero value otherwise. 10592 func (p *PreReceiveHook) GetID() int64 { 10593 if p == nil || p.ID == nil { 10594 return 0 10595 } 10596 return *p.ID 10597 } 10598 10599 // GetName returns the Name field if it's non-nil, zero value otherwise. 10600 func (p *PreReceiveHook) GetName() string { 10601 if p == nil || p.Name == nil { 10602 return "" 10603 } 10604 return *p.Name 10605 } 10606 10607 // GetHRef returns the HRef field if it's non-nil, zero value otherwise. 10608 func (p *PRLink) GetHRef() string { 10609 if p == nil || p.HRef == nil { 10610 return "" 10611 } 10612 return *p.HRef 10613 } 10614 10615 // GetComments returns the Comments field. 10616 func (p *PRLinks) GetComments() *PRLink { 10617 if p == nil { 10618 return nil 10619 } 10620 return p.Comments 10621 } 10622 10623 // GetCommits returns the Commits field. 10624 func (p *PRLinks) GetCommits() *PRLink { 10625 if p == nil { 10626 return nil 10627 } 10628 return p.Commits 10629 } 10630 10631 // GetHTML returns the HTML field. 10632 func (p *PRLinks) GetHTML() *PRLink { 10633 if p == nil { 10634 return nil 10635 } 10636 return p.HTML 10637 } 10638 10639 // GetIssue returns the Issue field. 10640 func (p *PRLinks) GetIssue() *PRLink { 10641 if p == nil { 10642 return nil 10643 } 10644 return p.Issue 10645 } 10646 10647 // GetReviewComment returns the ReviewComment field. 10648 func (p *PRLinks) GetReviewComment() *PRLink { 10649 if p == nil { 10650 return nil 10651 } 10652 return p.ReviewComment 10653 } 10654 10655 // GetReviewComments returns the ReviewComments field. 10656 func (p *PRLinks) GetReviewComments() *PRLink { 10657 if p == nil { 10658 return nil 10659 } 10660 return p.ReviewComments 10661 } 10662 10663 // GetSelf returns the Self field. 10664 func (p *PRLinks) GetSelf() *PRLink { 10665 if p == nil { 10666 return nil 10667 } 10668 return p.Self 10669 } 10670 10671 // GetStatuses returns the Statuses field. 10672 func (p *PRLinks) GetStatuses() *PRLink { 10673 if p == nil { 10674 return nil 10675 } 10676 return p.Statuses 10677 } 10678 10679 // GetBody returns the Body field if it's non-nil, zero value otherwise. 10680 func (p *Project) GetBody() string { 10681 if p == nil || p.Body == nil { 10682 return "" 10683 } 10684 return *p.Body 10685 } 10686 10687 // GetColumnsURL returns the ColumnsURL field if it's non-nil, zero value otherwise. 10688 func (p *Project) GetColumnsURL() string { 10689 if p == nil || p.ColumnsURL == nil { 10690 return "" 10691 } 10692 return *p.ColumnsURL 10693 } 10694 10695 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10696 func (p *Project) GetCreatedAt() Timestamp { 10697 if p == nil || p.CreatedAt == nil { 10698 return Timestamp{} 10699 } 10700 return *p.CreatedAt 10701 } 10702 10703 // GetCreator returns the Creator field. 10704 func (p *Project) GetCreator() *User { 10705 if p == nil { 10706 return nil 10707 } 10708 return p.Creator 10709 } 10710 10711 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 10712 func (p *Project) GetHTMLURL() string { 10713 if p == nil || p.HTMLURL == nil { 10714 return "" 10715 } 10716 return *p.HTMLURL 10717 } 10718 10719 // GetID returns the ID field if it's non-nil, zero value otherwise. 10720 func (p *Project) GetID() int64 { 10721 if p == nil || p.ID == nil { 10722 return 0 10723 } 10724 return *p.ID 10725 } 10726 10727 // GetName returns the Name field if it's non-nil, zero value otherwise. 10728 func (p *Project) GetName() string { 10729 if p == nil || p.Name == nil { 10730 return "" 10731 } 10732 return *p.Name 10733 } 10734 10735 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10736 func (p *Project) GetNodeID() string { 10737 if p == nil || p.NodeID == nil { 10738 return "" 10739 } 10740 return *p.NodeID 10741 } 10742 10743 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 10744 func (p *Project) GetNumber() int { 10745 if p == nil || p.Number == nil { 10746 return 0 10747 } 10748 return *p.Number 10749 } 10750 10751 // GetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise. 10752 func (p *Project) GetOrganizationPermission() string { 10753 if p == nil || p.OrganizationPermission == nil { 10754 return "" 10755 } 10756 return *p.OrganizationPermission 10757 } 10758 10759 // GetOwnerURL returns the OwnerURL field if it's non-nil, zero value otherwise. 10760 func (p *Project) GetOwnerURL() string { 10761 if p == nil || p.OwnerURL == nil { 10762 return "" 10763 } 10764 return *p.OwnerURL 10765 } 10766 10767 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 10768 func (p *Project) GetPrivate() bool { 10769 if p == nil || p.Private == nil { 10770 return false 10771 } 10772 return *p.Private 10773 } 10774 10775 // GetState returns the State field if it's non-nil, zero value otherwise. 10776 func (p *Project) GetState() string { 10777 if p == nil || p.State == nil { 10778 return "" 10779 } 10780 return *p.State 10781 } 10782 10783 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10784 func (p *Project) GetUpdatedAt() Timestamp { 10785 if p == nil || p.UpdatedAt == nil { 10786 return Timestamp{} 10787 } 10788 return *p.UpdatedAt 10789 } 10790 10791 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10792 func (p *Project) GetURL() string { 10793 if p == nil || p.URL == nil { 10794 return "" 10795 } 10796 return *p.URL 10797 } 10798 10799 // GetFrom returns the From field if it's non-nil, zero value otherwise. 10800 func (p *ProjectBody) GetFrom() string { 10801 if p == nil || p.From == nil { 10802 return "" 10803 } 10804 return *p.From 10805 } 10806 10807 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 10808 func (p *ProjectCard) GetArchived() bool { 10809 if p == nil || p.Archived == nil { 10810 return false 10811 } 10812 return *p.Archived 10813 } 10814 10815 // GetColumnID returns the ColumnID field if it's non-nil, zero value otherwise. 10816 func (p *ProjectCard) GetColumnID() int64 { 10817 if p == nil || p.ColumnID == nil { 10818 return 0 10819 } 10820 return *p.ColumnID 10821 } 10822 10823 // GetColumnName returns the ColumnName field if it's non-nil, zero value otherwise. 10824 func (p *ProjectCard) GetColumnName() string { 10825 if p == nil || p.ColumnName == nil { 10826 return "" 10827 } 10828 return *p.ColumnName 10829 } 10830 10831 // GetColumnURL returns the ColumnURL field if it's non-nil, zero value otherwise. 10832 func (p *ProjectCard) GetColumnURL() string { 10833 if p == nil || p.ColumnURL == nil { 10834 return "" 10835 } 10836 return *p.ColumnURL 10837 } 10838 10839 // GetContentURL returns the ContentURL field if it's non-nil, zero value otherwise. 10840 func (p *ProjectCard) GetContentURL() string { 10841 if p == nil || p.ContentURL == nil { 10842 return "" 10843 } 10844 return *p.ContentURL 10845 } 10846 10847 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10848 func (p *ProjectCard) GetCreatedAt() Timestamp { 10849 if p == nil || p.CreatedAt == nil { 10850 return Timestamp{} 10851 } 10852 return *p.CreatedAt 10853 } 10854 10855 // GetCreator returns the Creator field. 10856 func (p *ProjectCard) GetCreator() *User { 10857 if p == nil { 10858 return nil 10859 } 10860 return p.Creator 10861 } 10862 10863 // GetID returns the ID field if it's non-nil, zero value otherwise. 10864 func (p *ProjectCard) GetID() int64 { 10865 if p == nil || p.ID == nil { 10866 return 0 10867 } 10868 return *p.ID 10869 } 10870 10871 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10872 func (p *ProjectCard) GetNodeID() string { 10873 if p == nil || p.NodeID == nil { 10874 return "" 10875 } 10876 return *p.NodeID 10877 } 10878 10879 // GetNote returns the Note field if it's non-nil, zero value otherwise. 10880 func (p *ProjectCard) GetNote() string { 10881 if p == nil || p.Note == nil { 10882 return "" 10883 } 10884 return *p.Note 10885 } 10886 10887 // GetPreviousColumnName returns the PreviousColumnName field if it's non-nil, zero value otherwise. 10888 func (p *ProjectCard) GetPreviousColumnName() string { 10889 if p == nil || p.PreviousColumnName == nil { 10890 return "" 10891 } 10892 return *p.PreviousColumnName 10893 } 10894 10895 // GetProjectID returns the ProjectID field if it's non-nil, zero value otherwise. 10896 func (p *ProjectCard) GetProjectID() int64 { 10897 if p == nil || p.ProjectID == nil { 10898 return 0 10899 } 10900 return *p.ProjectID 10901 } 10902 10903 // GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. 10904 func (p *ProjectCard) GetProjectURL() string { 10905 if p == nil || p.ProjectURL == nil { 10906 return "" 10907 } 10908 return *p.ProjectURL 10909 } 10910 10911 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10912 func (p *ProjectCard) GetUpdatedAt() Timestamp { 10913 if p == nil || p.UpdatedAt == nil { 10914 return Timestamp{} 10915 } 10916 return *p.UpdatedAt 10917 } 10918 10919 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10920 func (p *ProjectCard) GetURL() string { 10921 if p == nil || p.URL == nil { 10922 return "" 10923 } 10924 return *p.URL 10925 } 10926 10927 // GetNote returns the Note field. 10928 func (p *ProjectCardChange) GetNote() *ProjectCardNote { 10929 if p == nil { 10930 return nil 10931 } 10932 return p.Note 10933 } 10934 10935 // GetAction returns the Action field if it's non-nil, zero value otherwise. 10936 func (p *ProjectCardEvent) GetAction() string { 10937 if p == nil || p.Action == nil { 10938 return "" 10939 } 10940 return *p.Action 10941 } 10942 10943 // GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 10944 func (p *ProjectCardEvent) GetAfterID() int64 { 10945 if p == nil || p.AfterID == nil { 10946 return 0 10947 } 10948 return *p.AfterID 10949 } 10950 10951 // GetChanges returns the Changes field. 10952 func (p *ProjectCardEvent) GetChanges() *ProjectCardChange { 10953 if p == nil { 10954 return nil 10955 } 10956 return p.Changes 10957 } 10958 10959 // GetInstallation returns the Installation field. 10960 func (p *ProjectCardEvent) GetInstallation() *Installation { 10961 if p == nil { 10962 return nil 10963 } 10964 return p.Installation 10965 } 10966 10967 // GetOrg returns the Org field. 10968 func (p *ProjectCardEvent) GetOrg() *Organization { 10969 if p == nil { 10970 return nil 10971 } 10972 return p.Org 10973 } 10974 10975 // GetProjectCard returns the ProjectCard field. 10976 func (p *ProjectCardEvent) GetProjectCard() *ProjectCard { 10977 if p == nil { 10978 return nil 10979 } 10980 return p.ProjectCard 10981 } 10982 10983 // GetRepo returns the Repo field. 10984 func (p *ProjectCardEvent) GetRepo() *Repository { 10985 if p == nil { 10986 return nil 10987 } 10988 return p.Repo 10989 } 10990 10991 // GetSender returns the Sender field. 10992 func (p *ProjectCardEvent) GetSender() *User { 10993 if p == nil { 10994 return nil 10995 } 10996 return p.Sender 10997 } 10998 10999 // GetArchivedState returns the ArchivedState field if it's non-nil, zero value otherwise. 11000 func (p *ProjectCardListOptions) GetArchivedState() string { 11001 if p == nil || p.ArchivedState == nil { 11002 return "" 11003 } 11004 return *p.ArchivedState 11005 } 11006 11007 // GetFrom returns the From field if it's non-nil, zero value otherwise. 11008 func (p *ProjectCardNote) GetFrom() string { 11009 if p == nil || p.From == nil { 11010 return "" 11011 } 11012 return *p.From 11013 } 11014 11015 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 11016 func (p *ProjectCardOptions) GetArchived() bool { 11017 if p == nil || p.Archived == nil { 11018 return false 11019 } 11020 return *p.Archived 11021 } 11022 11023 // GetBody returns the Body field. 11024 func (p *ProjectChange) GetBody() *ProjectBody { 11025 if p == nil { 11026 return nil 11027 } 11028 return p.Body 11029 } 11030 11031 // GetName returns the Name field. 11032 func (p *ProjectChange) GetName() *ProjectName { 11033 if p == nil { 11034 return nil 11035 } 11036 return p.Name 11037 } 11038 11039 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 11040 func (p *ProjectCollaboratorOptions) GetPermission() string { 11041 if p == nil || p.Permission == nil { 11042 return "" 11043 } 11044 return *p.Permission 11045 } 11046 11047 // GetCardsURL returns the CardsURL field if it's non-nil, zero value otherwise. 11048 func (p *ProjectColumn) GetCardsURL() string { 11049 if p == nil || p.CardsURL == nil { 11050 return "" 11051 } 11052 return *p.CardsURL 11053 } 11054 11055 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11056 func (p *ProjectColumn) GetCreatedAt() Timestamp { 11057 if p == nil || p.CreatedAt == nil { 11058 return Timestamp{} 11059 } 11060 return *p.CreatedAt 11061 } 11062 11063 // GetID returns the ID field if it's non-nil, zero value otherwise. 11064 func (p *ProjectColumn) GetID() int64 { 11065 if p == nil || p.ID == nil { 11066 return 0 11067 } 11068 return *p.ID 11069 } 11070 11071 // GetName returns the Name field if it's non-nil, zero value otherwise. 11072 func (p *ProjectColumn) GetName() string { 11073 if p == nil || p.Name == nil { 11074 return "" 11075 } 11076 return *p.Name 11077 } 11078 11079 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11080 func (p *ProjectColumn) GetNodeID() string { 11081 if p == nil || p.NodeID == nil { 11082 return "" 11083 } 11084 return *p.NodeID 11085 } 11086 11087 // GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. 11088 func (p *ProjectColumn) GetProjectURL() string { 11089 if p == nil || p.ProjectURL == nil { 11090 return "" 11091 } 11092 return *p.ProjectURL 11093 } 11094 11095 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11096 func (p *ProjectColumn) GetUpdatedAt() Timestamp { 11097 if p == nil || p.UpdatedAt == nil { 11098 return Timestamp{} 11099 } 11100 return *p.UpdatedAt 11101 } 11102 11103 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11104 func (p *ProjectColumn) GetURL() string { 11105 if p == nil || p.URL == nil { 11106 return "" 11107 } 11108 return *p.URL 11109 } 11110 11111 // GetName returns the Name field. 11112 func (p *ProjectColumnChange) GetName() *ProjectColumnName { 11113 if p == nil { 11114 return nil 11115 } 11116 return p.Name 11117 } 11118 11119 // GetAction returns the Action field if it's non-nil, zero value otherwise. 11120 func (p *ProjectColumnEvent) GetAction() string { 11121 if p == nil || p.Action == nil { 11122 return "" 11123 } 11124 return *p.Action 11125 } 11126 11127 // GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 11128 func (p *ProjectColumnEvent) GetAfterID() int64 { 11129 if p == nil || p.AfterID == nil { 11130 return 0 11131 } 11132 return *p.AfterID 11133 } 11134 11135 // GetChanges returns the Changes field. 11136 func (p *ProjectColumnEvent) GetChanges() *ProjectColumnChange { 11137 if p == nil { 11138 return nil 11139 } 11140 return p.Changes 11141 } 11142 11143 // GetInstallation returns the Installation field. 11144 func (p *ProjectColumnEvent) GetInstallation() *Installation { 11145 if p == nil { 11146 return nil 11147 } 11148 return p.Installation 11149 } 11150 11151 // GetOrg returns the Org field. 11152 func (p *ProjectColumnEvent) GetOrg() *Organization { 11153 if p == nil { 11154 return nil 11155 } 11156 return p.Org 11157 } 11158 11159 // GetProjectColumn returns the ProjectColumn field. 11160 func (p *ProjectColumnEvent) GetProjectColumn() *ProjectColumn { 11161 if p == nil { 11162 return nil 11163 } 11164 return p.ProjectColumn 11165 } 11166 11167 // GetRepo returns the Repo field. 11168 func (p *ProjectColumnEvent) GetRepo() *Repository { 11169 if p == nil { 11170 return nil 11171 } 11172 return p.Repo 11173 } 11174 11175 // GetSender returns the Sender field. 11176 func (p *ProjectColumnEvent) GetSender() *User { 11177 if p == nil { 11178 return nil 11179 } 11180 return p.Sender 11181 } 11182 11183 // GetFrom returns the From field if it's non-nil, zero value otherwise. 11184 func (p *ProjectColumnName) GetFrom() string { 11185 if p == nil || p.From == nil { 11186 return "" 11187 } 11188 return *p.From 11189 } 11190 11191 // GetAction returns the Action field if it's non-nil, zero value otherwise. 11192 func (p *ProjectEvent) GetAction() string { 11193 if p == nil || p.Action == nil { 11194 return "" 11195 } 11196 return *p.Action 11197 } 11198 11199 // GetChanges returns the Changes field. 11200 func (p *ProjectEvent) GetChanges() *ProjectChange { 11201 if p == nil { 11202 return nil 11203 } 11204 return p.Changes 11205 } 11206 11207 // GetInstallation returns the Installation field. 11208 func (p *ProjectEvent) GetInstallation() *Installation { 11209 if p == nil { 11210 return nil 11211 } 11212 return p.Installation 11213 } 11214 11215 // GetOrg returns the Org field. 11216 func (p *ProjectEvent) GetOrg() *Organization { 11217 if p == nil { 11218 return nil 11219 } 11220 return p.Org 11221 } 11222 11223 // GetProject returns the Project field. 11224 func (p *ProjectEvent) GetProject() *Project { 11225 if p == nil { 11226 return nil 11227 } 11228 return p.Project 11229 } 11230 11231 // GetRepo returns the Repo field. 11232 func (p *ProjectEvent) GetRepo() *Repository { 11233 if p == nil { 11234 return nil 11235 } 11236 return p.Repo 11237 } 11238 11239 // GetSender returns the Sender field. 11240 func (p *ProjectEvent) GetSender() *User { 11241 if p == nil { 11242 return nil 11243 } 11244 return p.Sender 11245 } 11246 11247 // GetFrom returns the From field if it's non-nil, zero value otherwise. 11248 func (p *ProjectName) GetFrom() string { 11249 if p == nil || p.From == nil { 11250 return "" 11251 } 11252 return *p.From 11253 } 11254 11255 // GetBody returns the Body field if it's non-nil, zero value otherwise. 11256 func (p *ProjectOptions) GetBody() string { 11257 if p == nil || p.Body == nil { 11258 return "" 11259 } 11260 return *p.Body 11261 } 11262 11263 // GetName returns the Name field if it's non-nil, zero value otherwise. 11264 func (p *ProjectOptions) GetName() string { 11265 if p == nil || p.Name == nil { 11266 return "" 11267 } 11268 return *p.Name 11269 } 11270 11271 // GetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise. 11272 func (p *ProjectOptions) GetOrganizationPermission() string { 11273 if p == nil || p.OrganizationPermission == nil { 11274 return "" 11275 } 11276 return *p.OrganizationPermission 11277 } 11278 11279 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 11280 func (p *ProjectOptions) GetPrivate() bool { 11281 if p == nil || p.Private == nil { 11282 return false 11283 } 11284 return *p.Private 11285 } 11286 11287 // GetState returns the State field if it's non-nil, zero value otherwise. 11288 func (p *ProjectOptions) GetState() string { 11289 if p == nil || p.State == nil { 11290 return "" 11291 } 11292 return *p.State 11293 } 11294 11295 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 11296 func (p *ProjectPermissionLevel) GetPermission() string { 11297 if p == nil || p.Permission == nil { 11298 return "" 11299 } 11300 return *p.Permission 11301 } 11302 11303 // GetUser returns the User field. 11304 func (p *ProjectPermissionLevel) GetUser() *User { 11305 if p == nil { 11306 return nil 11307 } 11308 return p.User 11309 } 11310 11311 // GetAllowDeletions returns the AllowDeletions field. 11312 func (p *Protection) GetAllowDeletions() *AllowDeletions { 11313 if p == nil { 11314 return nil 11315 } 11316 return p.AllowDeletions 11317 } 11318 11319 // GetAllowForcePushes returns the AllowForcePushes field. 11320 func (p *Protection) GetAllowForcePushes() *AllowForcePushes { 11321 if p == nil { 11322 return nil 11323 } 11324 return p.AllowForcePushes 11325 } 11326 11327 // GetEnforceAdmins returns the EnforceAdmins field. 11328 func (p *Protection) GetEnforceAdmins() *AdminEnforcement { 11329 if p == nil { 11330 return nil 11331 } 11332 return p.EnforceAdmins 11333 } 11334 11335 // GetRequiredConversationResolution returns the RequiredConversationResolution field. 11336 func (p *Protection) GetRequiredConversationResolution() *RequiredConversationResolution { 11337 if p == nil { 11338 return nil 11339 } 11340 return p.RequiredConversationResolution 11341 } 11342 11343 // GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. 11344 func (p *Protection) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcement { 11345 if p == nil { 11346 return nil 11347 } 11348 return p.RequiredPullRequestReviews 11349 } 11350 11351 // GetRequiredStatusChecks returns the RequiredStatusChecks field. 11352 func (p *Protection) GetRequiredStatusChecks() *RequiredStatusChecks { 11353 if p == nil { 11354 return nil 11355 } 11356 return p.RequiredStatusChecks 11357 } 11358 11359 // GetRequireLinearHistory returns the RequireLinearHistory field. 11360 func (p *Protection) GetRequireLinearHistory() *RequireLinearHistory { 11361 if p == nil { 11362 return nil 11363 } 11364 return p.RequireLinearHistory 11365 } 11366 11367 // GetRestrictions returns the Restrictions field. 11368 func (p *Protection) GetRestrictions() *BranchRestrictions { 11369 if p == nil { 11370 return nil 11371 } 11372 return p.Restrictions 11373 } 11374 11375 // GetAuthorizedActorNames returns the AuthorizedActorNames field. 11376 func (p *ProtectionChanges) GetAuthorizedActorNames() *AuthorizedActorNames { 11377 if p == nil { 11378 return nil 11379 } 11380 return p.AuthorizedActorNames 11381 } 11382 11383 // GetAuthorizedActorsOnly returns the AuthorizedActorsOnly field. 11384 func (p *ProtectionChanges) GetAuthorizedActorsOnly() *AuthorizedActorsOnly { 11385 if p == nil { 11386 return nil 11387 } 11388 return p.AuthorizedActorsOnly 11389 } 11390 11391 // GetAllowDeletions returns the AllowDeletions field if it's non-nil, zero value otherwise. 11392 func (p *ProtectionRequest) GetAllowDeletions() bool { 11393 if p == nil || p.AllowDeletions == nil { 11394 return false 11395 } 11396 return *p.AllowDeletions 11397 } 11398 11399 // GetAllowForcePushes returns the AllowForcePushes field if it's non-nil, zero value otherwise. 11400 func (p *ProtectionRequest) GetAllowForcePushes() bool { 11401 if p == nil || p.AllowForcePushes == nil { 11402 return false 11403 } 11404 return *p.AllowForcePushes 11405 } 11406 11407 // GetRequiredConversationResolution returns the RequiredConversationResolution field if it's non-nil, zero value otherwise. 11408 func (p *ProtectionRequest) GetRequiredConversationResolution() bool { 11409 if p == nil || p.RequiredConversationResolution == nil { 11410 return false 11411 } 11412 return *p.RequiredConversationResolution 11413 } 11414 11415 // GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. 11416 func (p *ProtectionRequest) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcementRequest { 11417 if p == nil { 11418 return nil 11419 } 11420 return p.RequiredPullRequestReviews 11421 } 11422 11423 // GetRequiredStatusChecks returns the RequiredStatusChecks field. 11424 func (p *ProtectionRequest) GetRequiredStatusChecks() *RequiredStatusChecks { 11425 if p == nil { 11426 return nil 11427 } 11428 return p.RequiredStatusChecks 11429 } 11430 11431 // GetRequireLinearHistory returns the RequireLinearHistory field if it's non-nil, zero value otherwise. 11432 func (p *ProtectionRequest) GetRequireLinearHistory() bool { 11433 if p == nil || p.RequireLinearHistory == nil { 11434 return false 11435 } 11436 return *p.RequireLinearHistory 11437 } 11438 11439 // GetRestrictions returns the Restrictions field. 11440 func (p *ProtectionRequest) GetRestrictions() *BranchRestrictionsRequest { 11441 if p == nil { 11442 return nil 11443 } 11444 return p.Restrictions 11445 } 11446 11447 // GetID returns the ID field if it's non-nil, zero value otherwise. 11448 func (p *ProtectionRule) GetID() int64 { 11449 if p == nil || p.ID == nil { 11450 return 0 11451 } 11452 return *p.ID 11453 } 11454 11455 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11456 func (p *ProtectionRule) GetNodeID() string { 11457 if p == nil || p.NodeID == nil { 11458 return "" 11459 } 11460 return *p.NodeID 11461 } 11462 11463 // GetType returns the Type field if it's non-nil, zero value otherwise. 11464 func (p *ProtectionRule) GetType() string { 11465 if p == nil || p.Type == nil { 11466 return "" 11467 } 11468 return *p.Type 11469 } 11470 11471 // GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. 11472 func (p *ProtectionRule) GetWaitTimer() int { 11473 if p == nil || p.WaitTimer == nil { 11474 return 0 11475 } 11476 return *p.WaitTimer 11477 } 11478 11479 // GetInstallation returns the Installation field. 11480 func (p *PublicEvent) GetInstallation() *Installation { 11481 if p == nil { 11482 return nil 11483 } 11484 return p.Installation 11485 } 11486 11487 // GetRepo returns the Repo field. 11488 func (p *PublicEvent) GetRepo() *Repository { 11489 if p == nil { 11490 return nil 11491 } 11492 return p.Repo 11493 } 11494 11495 // GetSender returns the Sender field. 11496 func (p *PublicEvent) GetSender() *User { 11497 if p == nil { 11498 return nil 11499 } 11500 return p.Sender 11501 } 11502 11503 // GetKey returns the Key field if it's non-nil, zero value otherwise. 11504 func (p *PublicKey) GetKey() string { 11505 if p == nil || p.Key == nil { 11506 return "" 11507 } 11508 return *p.Key 11509 } 11510 11511 // GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. 11512 func (p *PublicKey) GetKeyID() string { 11513 if p == nil || p.KeyID == nil { 11514 return "" 11515 } 11516 return *p.KeyID 11517 } 11518 11519 // GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 11520 func (p *PullRequest) GetActiveLockReason() string { 11521 if p == nil || p.ActiveLockReason == nil { 11522 return "" 11523 } 11524 return *p.ActiveLockReason 11525 } 11526 11527 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 11528 func (p *PullRequest) GetAdditions() int { 11529 if p == nil || p.Additions == nil { 11530 return 0 11531 } 11532 return *p.Additions 11533 } 11534 11535 // GetAssignee returns the Assignee field. 11536 func (p *PullRequest) GetAssignee() *User { 11537 if p == nil { 11538 return nil 11539 } 11540 return p.Assignee 11541 } 11542 11543 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 11544 func (p *PullRequest) GetAuthorAssociation() string { 11545 if p == nil || p.AuthorAssociation == nil { 11546 return "" 11547 } 11548 return *p.AuthorAssociation 11549 } 11550 11551 // GetAutoMerge returns the AutoMerge field. 11552 func (p *PullRequest) GetAutoMerge() *PullRequestAutoMerge { 11553 if p == nil { 11554 return nil 11555 } 11556 return p.AutoMerge 11557 } 11558 11559 // GetBase returns the Base field. 11560 func (p *PullRequest) GetBase() *PullRequestBranch { 11561 if p == nil { 11562 return nil 11563 } 11564 return p.Base 11565 } 11566 11567 // GetBody returns the Body field if it's non-nil, zero value otherwise. 11568 func (p *PullRequest) GetBody() string { 11569 if p == nil || p.Body == nil { 11570 return "" 11571 } 11572 return *p.Body 11573 } 11574 11575 // GetChangedFiles returns the ChangedFiles field if it's non-nil, zero value otherwise. 11576 func (p *PullRequest) GetChangedFiles() int { 11577 if p == nil || p.ChangedFiles == nil { 11578 return 0 11579 } 11580 return *p.ChangedFiles 11581 } 11582 11583 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 11584 func (p *PullRequest) GetClosedAt() time.Time { 11585 if p == nil || p.ClosedAt == nil { 11586 return time.Time{} 11587 } 11588 return *p.ClosedAt 11589 } 11590 11591 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 11592 func (p *PullRequest) GetComments() int { 11593 if p == nil || p.Comments == nil { 11594 return 0 11595 } 11596 return *p.Comments 11597 } 11598 11599 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 11600 func (p *PullRequest) GetCommentsURL() string { 11601 if p == nil || p.CommentsURL == nil { 11602 return "" 11603 } 11604 return *p.CommentsURL 11605 } 11606 11607 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 11608 func (p *PullRequest) GetCommits() int { 11609 if p == nil || p.Commits == nil { 11610 return 0 11611 } 11612 return *p.Commits 11613 } 11614 11615 // GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. 11616 func (p *PullRequest) GetCommitsURL() string { 11617 if p == nil || p.CommitsURL == nil { 11618 return "" 11619 } 11620 return *p.CommitsURL 11621 } 11622 11623 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11624 func (p *PullRequest) GetCreatedAt() time.Time { 11625 if p == nil || p.CreatedAt == nil { 11626 return time.Time{} 11627 } 11628 return *p.CreatedAt 11629 } 11630 11631 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 11632 func (p *PullRequest) GetDeletions() int { 11633 if p == nil || p.Deletions == nil { 11634 return 0 11635 } 11636 return *p.Deletions 11637 } 11638 11639 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 11640 func (p *PullRequest) GetDiffURL() string { 11641 if p == nil || p.DiffURL == nil { 11642 return "" 11643 } 11644 return *p.DiffURL 11645 } 11646 11647 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 11648 func (p *PullRequest) GetDraft() bool { 11649 if p == nil || p.Draft == nil { 11650 return false 11651 } 11652 return *p.Draft 11653 } 11654 11655 // GetHead returns the Head field. 11656 func (p *PullRequest) GetHead() *PullRequestBranch { 11657 if p == nil { 11658 return nil 11659 } 11660 return p.Head 11661 } 11662 11663 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11664 func (p *PullRequest) GetHTMLURL() string { 11665 if p == nil || p.HTMLURL == nil { 11666 return "" 11667 } 11668 return *p.HTMLURL 11669 } 11670 11671 // GetID returns the ID field if it's non-nil, zero value otherwise. 11672 func (p *PullRequest) GetID() int64 { 11673 if p == nil || p.ID == nil { 11674 return 0 11675 } 11676 return *p.ID 11677 } 11678 11679 // GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 11680 func (p *PullRequest) GetIssueURL() string { 11681 if p == nil || p.IssueURL == nil { 11682 return "" 11683 } 11684 return *p.IssueURL 11685 } 11686 11687 // GetLinks returns the Links field. 11688 func (p *PullRequest) GetLinks() *PRLinks { 11689 if p == nil { 11690 return nil 11691 } 11692 return p.Links 11693 } 11694 11695 // GetLocked returns the Locked field if it's non-nil, zero value otherwise. 11696 func (p *PullRequest) GetLocked() bool { 11697 if p == nil || p.Locked == nil { 11698 return false 11699 } 11700 return *p.Locked 11701 } 11702 11703 // GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 11704 func (p *PullRequest) GetMaintainerCanModify() bool { 11705 if p == nil || p.MaintainerCanModify == nil { 11706 return false 11707 } 11708 return *p.MaintainerCanModify 11709 } 11710 11711 // GetMergeable returns the Mergeable field if it's non-nil, zero value otherwise. 11712 func (p *PullRequest) GetMergeable() bool { 11713 if p == nil || p.Mergeable == nil { 11714 return false 11715 } 11716 return *p.Mergeable 11717 } 11718 11719 // GetMergeableState returns the MergeableState field if it's non-nil, zero value otherwise. 11720 func (p *PullRequest) GetMergeableState() string { 11721 if p == nil || p.MergeableState == nil { 11722 return "" 11723 } 11724 return *p.MergeableState 11725 } 11726 11727 // GetMergeCommitSHA returns the MergeCommitSHA field if it's non-nil, zero value otherwise. 11728 func (p *PullRequest) GetMergeCommitSHA() string { 11729 if p == nil || p.MergeCommitSHA == nil { 11730 return "" 11731 } 11732 return *p.MergeCommitSHA 11733 } 11734 11735 // GetMerged returns the Merged field if it's non-nil, zero value otherwise. 11736 func (p *PullRequest) GetMerged() bool { 11737 if p == nil || p.Merged == nil { 11738 return false 11739 } 11740 return *p.Merged 11741 } 11742 11743 // GetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise. 11744 func (p *PullRequest) GetMergedAt() time.Time { 11745 if p == nil || p.MergedAt == nil { 11746 return time.Time{} 11747 } 11748 return *p.MergedAt 11749 } 11750 11751 // GetMergedBy returns the MergedBy field. 11752 func (p *PullRequest) GetMergedBy() *User { 11753 if p == nil { 11754 return nil 11755 } 11756 return p.MergedBy 11757 } 11758 11759 // GetMilestone returns the Milestone field. 11760 func (p *PullRequest) GetMilestone() *Milestone { 11761 if p == nil { 11762 return nil 11763 } 11764 return p.Milestone 11765 } 11766 11767 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11768 func (p *PullRequest) GetNodeID() string { 11769 if p == nil || p.NodeID == nil { 11770 return "" 11771 } 11772 return *p.NodeID 11773 } 11774 11775 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 11776 func (p *PullRequest) GetNumber() int { 11777 if p == nil || p.Number == nil { 11778 return 0 11779 } 11780 return *p.Number 11781 } 11782 11783 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 11784 func (p *PullRequest) GetPatchURL() string { 11785 if p == nil || p.PatchURL == nil { 11786 return "" 11787 } 11788 return *p.PatchURL 11789 } 11790 11791 // GetRebaseable returns the Rebaseable field if it's non-nil, zero value otherwise. 11792 func (p *PullRequest) GetRebaseable() bool { 11793 if p == nil || p.Rebaseable == nil { 11794 return false 11795 } 11796 return *p.Rebaseable 11797 } 11798 11799 // GetReviewComments returns the ReviewComments field if it's non-nil, zero value otherwise. 11800 func (p *PullRequest) GetReviewComments() int { 11801 if p == nil || p.ReviewComments == nil { 11802 return 0 11803 } 11804 return *p.ReviewComments 11805 } 11806 11807 // GetReviewCommentsURL returns the ReviewCommentsURL field if it's non-nil, zero value otherwise. 11808 func (p *PullRequest) GetReviewCommentsURL() string { 11809 if p == nil || p.ReviewCommentsURL == nil { 11810 return "" 11811 } 11812 return *p.ReviewCommentsURL 11813 } 11814 11815 // GetReviewCommentURL returns the ReviewCommentURL field if it's non-nil, zero value otherwise. 11816 func (p *PullRequest) GetReviewCommentURL() string { 11817 if p == nil || p.ReviewCommentURL == nil { 11818 return "" 11819 } 11820 return *p.ReviewCommentURL 11821 } 11822 11823 // GetState returns the State field if it's non-nil, zero value otherwise. 11824 func (p *PullRequest) GetState() string { 11825 if p == nil || p.State == nil { 11826 return "" 11827 } 11828 return *p.State 11829 } 11830 11831 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 11832 func (p *PullRequest) GetStatusesURL() string { 11833 if p == nil || p.StatusesURL == nil { 11834 return "" 11835 } 11836 return *p.StatusesURL 11837 } 11838 11839 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 11840 func (p *PullRequest) GetTitle() string { 11841 if p == nil || p.Title == nil { 11842 return "" 11843 } 11844 return *p.Title 11845 } 11846 11847 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11848 func (p *PullRequest) GetUpdatedAt() time.Time { 11849 if p == nil || p.UpdatedAt == nil { 11850 return time.Time{} 11851 } 11852 return *p.UpdatedAt 11853 } 11854 11855 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11856 func (p *PullRequest) GetURL() string { 11857 if p == nil || p.URL == nil { 11858 return "" 11859 } 11860 return *p.URL 11861 } 11862 11863 // GetUser returns the User field. 11864 func (p *PullRequest) GetUser() *User { 11865 if p == nil { 11866 return nil 11867 } 11868 return p.User 11869 } 11870 11871 // GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. 11872 func (p *PullRequestAutoMerge) GetCommitMessage() string { 11873 if p == nil || p.CommitMessage == nil { 11874 return "" 11875 } 11876 return *p.CommitMessage 11877 } 11878 11879 // GetCommitTitle returns the CommitTitle field if it's non-nil, zero value otherwise. 11880 func (p *PullRequestAutoMerge) GetCommitTitle() string { 11881 if p == nil || p.CommitTitle == nil { 11882 return "" 11883 } 11884 return *p.CommitTitle 11885 } 11886 11887 // GetEnabledBy returns the EnabledBy field. 11888 func (p *PullRequestAutoMerge) GetEnabledBy() *User { 11889 if p == nil { 11890 return nil 11891 } 11892 return p.EnabledBy 11893 } 11894 11895 // GetMergeMethod returns the MergeMethod field if it's non-nil, zero value otherwise. 11896 func (p *PullRequestAutoMerge) GetMergeMethod() string { 11897 if p == nil || p.MergeMethod == nil { 11898 return "" 11899 } 11900 return *p.MergeMethod 11901 } 11902 11903 // GetLabel returns the Label field if it's non-nil, zero value otherwise. 11904 func (p *PullRequestBranch) GetLabel() string { 11905 if p == nil || p.Label == nil { 11906 return "" 11907 } 11908 return *p.Label 11909 } 11910 11911 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 11912 func (p *PullRequestBranch) GetRef() string { 11913 if p == nil || p.Ref == nil { 11914 return "" 11915 } 11916 return *p.Ref 11917 } 11918 11919 // GetRepo returns the Repo field. 11920 func (p *PullRequestBranch) GetRepo() *Repository { 11921 if p == nil { 11922 return nil 11923 } 11924 return p.Repo 11925 } 11926 11927 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 11928 func (p *PullRequestBranch) GetSHA() string { 11929 if p == nil || p.SHA == nil { 11930 return "" 11931 } 11932 return *p.SHA 11933 } 11934 11935 // GetUser returns the User field. 11936 func (p *PullRequestBranch) GetUser() *User { 11937 if p == nil { 11938 return nil 11939 } 11940 return p.User 11941 } 11942 11943 // GetExpectedHeadSHA returns the ExpectedHeadSHA field if it's non-nil, zero value otherwise. 11944 func (p *PullRequestBranchUpdateOptions) GetExpectedHeadSHA() string { 11945 if p == nil || p.ExpectedHeadSHA == nil { 11946 return "" 11947 } 11948 return *p.ExpectedHeadSHA 11949 } 11950 11951 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 11952 func (p *PullRequestBranchUpdateResponse) GetMessage() string { 11953 if p == nil || p.Message == nil { 11954 return "" 11955 } 11956 return *p.Message 11957 } 11958 11959 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11960 func (p *PullRequestBranchUpdateResponse) GetURL() string { 11961 if p == nil || p.URL == nil { 11962 return "" 11963 } 11964 return *p.URL 11965 } 11966 11967 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 11968 func (p *PullRequestComment) GetAuthorAssociation() string { 11969 if p == nil || p.AuthorAssociation == nil { 11970 return "" 11971 } 11972 return *p.AuthorAssociation 11973 } 11974 11975 // GetBody returns the Body field if it's non-nil, zero value otherwise. 11976 func (p *PullRequestComment) GetBody() string { 11977 if p == nil || p.Body == nil { 11978 return "" 11979 } 11980 return *p.Body 11981 } 11982 11983 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 11984 func (p *PullRequestComment) GetCommitID() string { 11985 if p == nil || p.CommitID == nil { 11986 return "" 11987 } 11988 return *p.CommitID 11989 } 11990 11991 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11992 func (p *PullRequestComment) GetCreatedAt() time.Time { 11993 if p == nil || p.CreatedAt == nil { 11994 return time.Time{} 11995 } 11996 return *p.CreatedAt 11997 } 11998 11999 // GetDiffHunk returns the DiffHunk field if it's non-nil, zero value otherwise. 12000 func (p *PullRequestComment) GetDiffHunk() string { 12001 if p == nil || p.DiffHunk == nil { 12002 return "" 12003 } 12004 return *p.DiffHunk 12005 } 12006 12007 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 12008 func (p *PullRequestComment) GetHTMLURL() string { 12009 if p == nil || p.HTMLURL == nil { 12010 return "" 12011 } 12012 return *p.HTMLURL 12013 } 12014 12015 // GetID returns the ID field if it's non-nil, zero value otherwise. 12016 func (p *PullRequestComment) GetID() int64 { 12017 if p == nil || p.ID == nil { 12018 return 0 12019 } 12020 return *p.ID 12021 } 12022 12023 // GetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise. 12024 func (p *PullRequestComment) GetInReplyTo() int64 { 12025 if p == nil || p.InReplyTo == nil { 12026 return 0 12027 } 12028 return *p.InReplyTo 12029 } 12030 12031 // GetLine returns the Line field if it's non-nil, zero value otherwise. 12032 func (p *PullRequestComment) GetLine() int { 12033 if p == nil || p.Line == nil { 12034 return 0 12035 } 12036 return *p.Line 12037 } 12038 12039 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12040 func (p *PullRequestComment) GetNodeID() string { 12041 if p == nil || p.NodeID == nil { 12042 return "" 12043 } 12044 return *p.NodeID 12045 } 12046 12047 // GetOriginalCommitID returns the OriginalCommitID field if it's non-nil, zero value otherwise. 12048 func (p *PullRequestComment) GetOriginalCommitID() string { 12049 if p == nil || p.OriginalCommitID == nil { 12050 return "" 12051 } 12052 return *p.OriginalCommitID 12053 } 12054 12055 // GetOriginalLine returns the OriginalLine field if it's non-nil, zero value otherwise. 12056 func (p *PullRequestComment) GetOriginalLine() int { 12057 if p == nil || p.OriginalLine == nil { 12058 return 0 12059 } 12060 return *p.OriginalLine 12061 } 12062 12063 // GetOriginalPosition returns the OriginalPosition field if it's non-nil, zero value otherwise. 12064 func (p *PullRequestComment) GetOriginalPosition() int { 12065 if p == nil || p.OriginalPosition == nil { 12066 return 0 12067 } 12068 return *p.OriginalPosition 12069 } 12070 12071 // GetOriginalStartLine returns the OriginalStartLine field if it's non-nil, zero value otherwise. 12072 func (p *PullRequestComment) GetOriginalStartLine() int { 12073 if p == nil || p.OriginalStartLine == nil { 12074 return 0 12075 } 12076 return *p.OriginalStartLine 12077 } 12078 12079 // GetPath returns the Path field if it's non-nil, zero value otherwise. 12080 func (p *PullRequestComment) GetPath() string { 12081 if p == nil || p.Path == nil { 12082 return "" 12083 } 12084 return *p.Path 12085 } 12086 12087 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 12088 func (p *PullRequestComment) GetPosition() int { 12089 if p == nil || p.Position == nil { 12090 return 0 12091 } 12092 return *p.Position 12093 } 12094 12095 // GetPullRequestReviewID returns the PullRequestReviewID field if it's non-nil, zero value otherwise. 12096 func (p *PullRequestComment) GetPullRequestReviewID() int64 { 12097 if p == nil || p.PullRequestReviewID == nil { 12098 return 0 12099 } 12100 return *p.PullRequestReviewID 12101 } 12102 12103 // GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 12104 func (p *PullRequestComment) GetPullRequestURL() string { 12105 if p == nil || p.PullRequestURL == nil { 12106 return "" 12107 } 12108 return *p.PullRequestURL 12109 } 12110 12111 // GetReactions returns the Reactions field. 12112 func (p *PullRequestComment) GetReactions() *Reactions { 12113 if p == nil { 12114 return nil 12115 } 12116 return p.Reactions 12117 } 12118 12119 // GetSide returns the Side field if it's non-nil, zero value otherwise. 12120 func (p *PullRequestComment) GetSide() string { 12121 if p == nil || p.Side == nil { 12122 return "" 12123 } 12124 return *p.Side 12125 } 12126 12127 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 12128 func (p *PullRequestComment) GetStartLine() int { 12129 if p == nil || p.StartLine == nil { 12130 return 0 12131 } 12132 return *p.StartLine 12133 } 12134 12135 // GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. 12136 func (p *PullRequestComment) GetStartSide() string { 12137 if p == nil || p.StartSide == nil { 12138 return "" 12139 } 12140 return *p.StartSide 12141 } 12142 12143 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 12144 func (p *PullRequestComment) GetUpdatedAt() time.Time { 12145 if p == nil || p.UpdatedAt == nil { 12146 return time.Time{} 12147 } 12148 return *p.UpdatedAt 12149 } 12150 12151 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12152 func (p *PullRequestComment) GetURL() string { 12153 if p == nil || p.URL == nil { 12154 return "" 12155 } 12156 return *p.URL 12157 } 12158 12159 // GetUser returns the User field. 12160 func (p *PullRequestComment) GetUser() *User { 12161 if p == nil { 12162 return nil 12163 } 12164 return p.User 12165 } 12166 12167 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12168 func (p *PullRequestEvent) GetAction() string { 12169 if p == nil || p.Action == nil { 12170 return "" 12171 } 12172 return *p.Action 12173 } 12174 12175 // GetAfter returns the After field if it's non-nil, zero value otherwise. 12176 func (p *PullRequestEvent) GetAfter() string { 12177 if p == nil || p.After == nil { 12178 return "" 12179 } 12180 return *p.After 12181 } 12182 12183 // GetAssignee returns the Assignee field. 12184 func (p *PullRequestEvent) GetAssignee() *User { 12185 if p == nil { 12186 return nil 12187 } 12188 return p.Assignee 12189 } 12190 12191 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 12192 func (p *PullRequestEvent) GetBefore() string { 12193 if p == nil || p.Before == nil { 12194 return "" 12195 } 12196 return *p.Before 12197 } 12198 12199 // GetChanges returns the Changes field. 12200 func (p *PullRequestEvent) GetChanges() *EditChange { 12201 if p == nil { 12202 return nil 12203 } 12204 return p.Changes 12205 } 12206 12207 // GetInstallation returns the Installation field. 12208 func (p *PullRequestEvent) GetInstallation() *Installation { 12209 if p == nil { 12210 return nil 12211 } 12212 return p.Installation 12213 } 12214 12215 // GetLabel returns the Label field. 12216 func (p *PullRequestEvent) GetLabel() *Label { 12217 if p == nil { 12218 return nil 12219 } 12220 return p.Label 12221 } 12222 12223 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 12224 func (p *PullRequestEvent) GetNumber() int { 12225 if p == nil || p.Number == nil { 12226 return 0 12227 } 12228 return *p.Number 12229 } 12230 12231 // GetOrganization returns the Organization field. 12232 func (p *PullRequestEvent) GetOrganization() *Organization { 12233 if p == nil { 12234 return nil 12235 } 12236 return p.Organization 12237 } 12238 12239 // GetPullRequest returns the PullRequest field. 12240 func (p *PullRequestEvent) GetPullRequest() *PullRequest { 12241 if p == nil { 12242 return nil 12243 } 12244 return p.PullRequest 12245 } 12246 12247 // GetRepo returns the Repo field. 12248 func (p *PullRequestEvent) GetRepo() *Repository { 12249 if p == nil { 12250 return nil 12251 } 12252 return p.Repo 12253 } 12254 12255 // GetRequestedReviewer returns the RequestedReviewer field. 12256 func (p *PullRequestEvent) GetRequestedReviewer() *User { 12257 if p == nil { 12258 return nil 12259 } 12260 return p.RequestedReviewer 12261 } 12262 12263 // GetRequestedTeam returns the RequestedTeam field. 12264 func (p *PullRequestEvent) GetRequestedTeam() *Team { 12265 if p == nil { 12266 return nil 12267 } 12268 return p.RequestedTeam 12269 } 12270 12271 // GetSender returns the Sender field. 12272 func (p *PullRequestEvent) GetSender() *User { 12273 if p == nil { 12274 return nil 12275 } 12276 return p.Sender 12277 } 12278 12279 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 12280 func (p *PullRequestLinks) GetDiffURL() string { 12281 if p == nil || p.DiffURL == nil { 12282 return "" 12283 } 12284 return *p.DiffURL 12285 } 12286 12287 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 12288 func (p *PullRequestLinks) GetHTMLURL() string { 12289 if p == nil || p.HTMLURL == nil { 12290 return "" 12291 } 12292 return *p.HTMLURL 12293 } 12294 12295 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 12296 func (p *PullRequestLinks) GetPatchURL() string { 12297 if p == nil || p.PatchURL == nil { 12298 return "" 12299 } 12300 return *p.PatchURL 12301 } 12302 12303 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12304 func (p *PullRequestLinks) GetURL() string { 12305 if p == nil || p.URL == nil { 12306 return "" 12307 } 12308 return *p.URL 12309 } 12310 12311 // GetMerged returns the Merged field if it's non-nil, zero value otherwise. 12312 func (p *PullRequestMergeResult) GetMerged() bool { 12313 if p == nil || p.Merged == nil { 12314 return false 12315 } 12316 return *p.Merged 12317 } 12318 12319 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 12320 func (p *PullRequestMergeResult) GetMessage() string { 12321 if p == nil || p.Message == nil { 12322 return "" 12323 } 12324 return *p.Message 12325 } 12326 12327 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 12328 func (p *PullRequestMergeResult) GetSHA() string { 12329 if p == nil || p.SHA == nil { 12330 return "" 12331 } 12332 return *p.SHA 12333 } 12334 12335 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 12336 func (p *PullRequestReview) GetAuthorAssociation() string { 12337 if p == nil || p.AuthorAssociation == nil { 12338 return "" 12339 } 12340 return *p.AuthorAssociation 12341 } 12342 12343 // GetBody returns the Body field if it's non-nil, zero value otherwise. 12344 func (p *PullRequestReview) GetBody() string { 12345 if p == nil || p.Body == nil { 12346 return "" 12347 } 12348 return *p.Body 12349 } 12350 12351 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 12352 func (p *PullRequestReview) GetCommitID() string { 12353 if p == nil || p.CommitID == nil { 12354 return "" 12355 } 12356 return *p.CommitID 12357 } 12358 12359 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 12360 func (p *PullRequestReview) GetHTMLURL() string { 12361 if p == nil || p.HTMLURL == nil { 12362 return "" 12363 } 12364 return *p.HTMLURL 12365 } 12366 12367 // GetID returns the ID field if it's non-nil, zero value otherwise. 12368 func (p *PullRequestReview) GetID() int64 { 12369 if p == nil || p.ID == nil { 12370 return 0 12371 } 12372 return *p.ID 12373 } 12374 12375 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12376 func (p *PullRequestReview) GetNodeID() string { 12377 if p == nil || p.NodeID == nil { 12378 return "" 12379 } 12380 return *p.NodeID 12381 } 12382 12383 // GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 12384 func (p *PullRequestReview) GetPullRequestURL() string { 12385 if p == nil || p.PullRequestURL == nil { 12386 return "" 12387 } 12388 return *p.PullRequestURL 12389 } 12390 12391 // GetState returns the State field if it's non-nil, zero value otherwise. 12392 func (p *PullRequestReview) GetState() string { 12393 if p == nil || p.State == nil { 12394 return "" 12395 } 12396 return *p.State 12397 } 12398 12399 // GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. 12400 func (p *PullRequestReview) GetSubmittedAt() time.Time { 12401 if p == nil || p.SubmittedAt == nil { 12402 return time.Time{} 12403 } 12404 return *p.SubmittedAt 12405 } 12406 12407 // GetUser returns the User field. 12408 func (p *PullRequestReview) GetUser() *User { 12409 if p == nil { 12410 return nil 12411 } 12412 return p.User 12413 } 12414 12415 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12416 func (p *PullRequestReviewCommentEvent) GetAction() string { 12417 if p == nil || p.Action == nil { 12418 return "" 12419 } 12420 return *p.Action 12421 } 12422 12423 // GetChanges returns the Changes field. 12424 func (p *PullRequestReviewCommentEvent) GetChanges() *EditChange { 12425 if p == nil { 12426 return nil 12427 } 12428 return p.Changes 12429 } 12430 12431 // GetComment returns the Comment field. 12432 func (p *PullRequestReviewCommentEvent) GetComment() *PullRequestComment { 12433 if p == nil { 12434 return nil 12435 } 12436 return p.Comment 12437 } 12438 12439 // GetInstallation returns the Installation field. 12440 func (p *PullRequestReviewCommentEvent) GetInstallation() *Installation { 12441 if p == nil { 12442 return nil 12443 } 12444 return p.Installation 12445 } 12446 12447 // GetPullRequest returns the PullRequest field. 12448 func (p *PullRequestReviewCommentEvent) GetPullRequest() *PullRequest { 12449 if p == nil { 12450 return nil 12451 } 12452 return p.PullRequest 12453 } 12454 12455 // GetRepo returns the Repo field. 12456 func (p *PullRequestReviewCommentEvent) GetRepo() *Repository { 12457 if p == nil { 12458 return nil 12459 } 12460 return p.Repo 12461 } 12462 12463 // GetSender returns the Sender field. 12464 func (p *PullRequestReviewCommentEvent) GetSender() *User { 12465 if p == nil { 12466 return nil 12467 } 12468 return p.Sender 12469 } 12470 12471 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 12472 func (p *PullRequestReviewDismissalRequest) GetMessage() string { 12473 if p == nil || p.Message == nil { 12474 return "" 12475 } 12476 return *p.Message 12477 } 12478 12479 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12480 func (p *PullRequestReviewEvent) GetAction() string { 12481 if p == nil || p.Action == nil { 12482 return "" 12483 } 12484 return *p.Action 12485 } 12486 12487 // GetInstallation returns the Installation field. 12488 func (p *PullRequestReviewEvent) GetInstallation() *Installation { 12489 if p == nil { 12490 return nil 12491 } 12492 return p.Installation 12493 } 12494 12495 // GetOrganization returns the Organization field. 12496 func (p *PullRequestReviewEvent) GetOrganization() *Organization { 12497 if p == nil { 12498 return nil 12499 } 12500 return p.Organization 12501 } 12502 12503 // GetPullRequest returns the PullRequest field. 12504 func (p *PullRequestReviewEvent) GetPullRequest() *PullRequest { 12505 if p == nil { 12506 return nil 12507 } 12508 return p.PullRequest 12509 } 12510 12511 // GetRepo returns the Repo field. 12512 func (p *PullRequestReviewEvent) GetRepo() *Repository { 12513 if p == nil { 12514 return nil 12515 } 12516 return p.Repo 12517 } 12518 12519 // GetReview returns the Review field. 12520 func (p *PullRequestReviewEvent) GetReview() *PullRequestReview { 12521 if p == nil { 12522 return nil 12523 } 12524 return p.Review 12525 } 12526 12527 // GetSender returns the Sender field. 12528 func (p *PullRequestReviewEvent) GetSender() *User { 12529 if p == nil { 12530 return nil 12531 } 12532 return p.Sender 12533 } 12534 12535 // GetBody returns the Body field if it's non-nil, zero value otherwise. 12536 func (p *PullRequestReviewRequest) GetBody() string { 12537 if p == nil || p.Body == nil { 12538 return "" 12539 } 12540 return *p.Body 12541 } 12542 12543 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 12544 func (p *PullRequestReviewRequest) GetCommitID() string { 12545 if p == nil || p.CommitID == nil { 12546 return "" 12547 } 12548 return *p.CommitID 12549 } 12550 12551 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 12552 func (p *PullRequestReviewRequest) GetEvent() string { 12553 if p == nil || p.Event == nil { 12554 return "" 12555 } 12556 return *p.Event 12557 } 12558 12559 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12560 func (p *PullRequestReviewRequest) GetNodeID() string { 12561 if p == nil || p.NodeID == nil { 12562 return "" 12563 } 12564 return *p.NodeID 12565 } 12566 12567 // GetDismissalRestrictions returns the DismissalRestrictions field. 12568 func (p *PullRequestReviewsEnforcement) GetDismissalRestrictions() *DismissalRestrictions { 12569 if p == nil { 12570 return nil 12571 } 12572 return p.DismissalRestrictions 12573 } 12574 12575 // GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. 12576 func (p *PullRequestReviewsEnforcementRequest) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest { 12577 if p == nil { 12578 return nil 12579 } 12580 return p.DismissalRestrictionsRequest 12581 } 12582 12583 // GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. 12584 func (p *PullRequestReviewsEnforcementUpdate) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest { 12585 if p == nil { 12586 return nil 12587 } 12588 return p.DismissalRestrictionsRequest 12589 } 12590 12591 // GetDismissStaleReviews returns the DismissStaleReviews field if it's non-nil, zero value otherwise. 12592 func (p *PullRequestReviewsEnforcementUpdate) GetDismissStaleReviews() bool { 12593 if p == nil || p.DismissStaleReviews == nil { 12594 return false 12595 } 12596 return *p.DismissStaleReviews 12597 } 12598 12599 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12600 func (p *PullRequestTargetEvent) GetAction() string { 12601 if p == nil || p.Action == nil { 12602 return "" 12603 } 12604 return *p.Action 12605 } 12606 12607 // GetAfter returns the After field if it's non-nil, zero value otherwise. 12608 func (p *PullRequestTargetEvent) GetAfter() string { 12609 if p == nil || p.After == nil { 12610 return "" 12611 } 12612 return *p.After 12613 } 12614 12615 // GetAssignee returns the Assignee field. 12616 func (p *PullRequestTargetEvent) GetAssignee() *User { 12617 if p == nil { 12618 return nil 12619 } 12620 return p.Assignee 12621 } 12622 12623 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 12624 func (p *PullRequestTargetEvent) GetBefore() string { 12625 if p == nil || p.Before == nil { 12626 return "" 12627 } 12628 return *p.Before 12629 } 12630 12631 // GetChanges returns the Changes field. 12632 func (p *PullRequestTargetEvent) GetChanges() *EditChange { 12633 if p == nil { 12634 return nil 12635 } 12636 return p.Changes 12637 } 12638 12639 // GetInstallation returns the Installation field. 12640 func (p *PullRequestTargetEvent) GetInstallation() *Installation { 12641 if p == nil { 12642 return nil 12643 } 12644 return p.Installation 12645 } 12646 12647 // GetLabel returns the Label field. 12648 func (p *PullRequestTargetEvent) GetLabel() *Label { 12649 if p == nil { 12650 return nil 12651 } 12652 return p.Label 12653 } 12654 12655 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 12656 func (p *PullRequestTargetEvent) GetNumber() int { 12657 if p == nil || p.Number == nil { 12658 return 0 12659 } 12660 return *p.Number 12661 } 12662 12663 // GetOrganization returns the Organization field. 12664 func (p *PullRequestTargetEvent) GetOrganization() *Organization { 12665 if p == nil { 12666 return nil 12667 } 12668 return p.Organization 12669 } 12670 12671 // GetPullRequest returns the PullRequest field. 12672 func (p *PullRequestTargetEvent) GetPullRequest() *PullRequest { 12673 if p == nil { 12674 return nil 12675 } 12676 return p.PullRequest 12677 } 12678 12679 // GetRepo returns the Repo field. 12680 func (p *PullRequestTargetEvent) GetRepo() *Repository { 12681 if p == nil { 12682 return nil 12683 } 12684 return p.Repo 12685 } 12686 12687 // GetRequestedReviewer returns the RequestedReviewer field. 12688 func (p *PullRequestTargetEvent) GetRequestedReviewer() *User { 12689 if p == nil { 12690 return nil 12691 } 12692 return p.RequestedReviewer 12693 } 12694 12695 // GetRequestedTeam returns the RequestedTeam field. 12696 func (p *PullRequestTargetEvent) GetRequestedTeam() *Team { 12697 if p == nil { 12698 return nil 12699 } 12700 return p.RequestedTeam 12701 } 12702 12703 // GetSender returns the Sender field. 12704 func (p *PullRequestTargetEvent) GetSender() *User { 12705 if p == nil { 12706 return nil 12707 } 12708 return p.Sender 12709 } 12710 12711 // GetMergablePulls returns the MergablePulls field if it's non-nil, zero value otherwise. 12712 func (p *PullStats) GetMergablePulls() int { 12713 if p == nil || p.MergablePulls == nil { 12714 return 0 12715 } 12716 return *p.MergablePulls 12717 } 12718 12719 // GetMergedPulls returns the MergedPulls field if it's non-nil, zero value otherwise. 12720 func (p *PullStats) GetMergedPulls() int { 12721 if p == nil || p.MergedPulls == nil { 12722 return 0 12723 } 12724 return *p.MergedPulls 12725 } 12726 12727 // GetTotalPulls returns the TotalPulls field if it's non-nil, zero value otherwise. 12728 func (p *PullStats) GetTotalPulls() int { 12729 if p == nil || p.TotalPulls == nil { 12730 return 0 12731 } 12732 return *p.TotalPulls 12733 } 12734 12735 // GetUnmergablePulls returns the UnmergablePulls field if it's non-nil, zero value otherwise. 12736 func (p *PullStats) GetUnmergablePulls() int { 12737 if p == nil || p.UnmergablePulls == nil { 12738 return 0 12739 } 12740 return *p.UnmergablePulls 12741 } 12742 12743 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 12744 func (p *PunchCard) GetCommits() int { 12745 if p == nil || p.Commits == nil { 12746 return 0 12747 } 12748 return *p.Commits 12749 } 12750 12751 // GetDay returns the Day field if it's non-nil, zero value otherwise. 12752 func (p *PunchCard) GetDay() int { 12753 if p == nil || p.Day == nil { 12754 return 0 12755 } 12756 return *p.Day 12757 } 12758 12759 // GetHour returns the Hour field if it's non-nil, zero value otherwise. 12760 func (p *PunchCard) GetHour() int { 12761 if p == nil || p.Hour == nil { 12762 return 0 12763 } 12764 return *p.Hour 12765 } 12766 12767 // GetAfter returns the After field if it's non-nil, zero value otherwise. 12768 func (p *PushEvent) GetAfter() string { 12769 if p == nil || p.After == nil { 12770 return "" 12771 } 12772 return *p.After 12773 } 12774 12775 // GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise. 12776 func (p *PushEvent) GetBaseRef() string { 12777 if p == nil || p.BaseRef == nil { 12778 return "" 12779 } 12780 return *p.BaseRef 12781 } 12782 12783 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 12784 func (p *PushEvent) GetBefore() string { 12785 if p == nil || p.Before == nil { 12786 return "" 12787 } 12788 return *p.Before 12789 } 12790 12791 // GetCompare returns the Compare field if it's non-nil, zero value otherwise. 12792 func (p *PushEvent) GetCompare() string { 12793 if p == nil || p.Compare == nil { 12794 return "" 12795 } 12796 return *p.Compare 12797 } 12798 12799 // GetCreated returns the Created field if it's non-nil, zero value otherwise. 12800 func (p *PushEvent) GetCreated() bool { 12801 if p == nil || p.Created == nil { 12802 return false 12803 } 12804 return *p.Created 12805 } 12806 12807 // GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. 12808 func (p *PushEvent) GetDeleted() bool { 12809 if p == nil || p.Deleted == nil { 12810 return false 12811 } 12812 return *p.Deleted 12813 } 12814 12815 // GetDistinctSize returns the DistinctSize field if it's non-nil, zero value otherwise. 12816 func (p *PushEvent) GetDistinctSize() int { 12817 if p == nil || p.DistinctSize == nil { 12818 return 0 12819 } 12820 return *p.DistinctSize 12821 } 12822 12823 // GetForced returns the Forced field if it's non-nil, zero value otherwise. 12824 func (p *PushEvent) GetForced() bool { 12825 if p == nil || p.Forced == nil { 12826 return false 12827 } 12828 return *p.Forced 12829 } 12830 12831 // GetHead returns the Head field if it's non-nil, zero value otherwise. 12832 func (p *PushEvent) GetHead() string { 12833 if p == nil || p.Head == nil { 12834 return "" 12835 } 12836 return *p.Head 12837 } 12838 12839 // GetHeadCommit returns the HeadCommit field. 12840 func (p *PushEvent) GetHeadCommit() *HeadCommit { 12841 if p == nil { 12842 return nil 12843 } 12844 return p.HeadCommit 12845 } 12846 12847 // GetInstallation returns the Installation field. 12848 func (p *PushEvent) GetInstallation() *Installation { 12849 if p == nil { 12850 return nil 12851 } 12852 return p.Installation 12853 } 12854 12855 // GetOrganization returns the Organization field. 12856 func (p *PushEvent) GetOrganization() *Organization { 12857 if p == nil { 12858 return nil 12859 } 12860 return p.Organization 12861 } 12862 12863 // GetPusher returns the Pusher field. 12864 func (p *PushEvent) GetPusher() *User { 12865 if p == nil { 12866 return nil 12867 } 12868 return p.Pusher 12869 } 12870 12871 // GetPushID returns the PushID field if it's non-nil, zero value otherwise. 12872 func (p *PushEvent) GetPushID() int64 { 12873 if p == nil || p.PushID == nil { 12874 return 0 12875 } 12876 return *p.PushID 12877 } 12878 12879 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 12880 func (p *PushEvent) GetRef() string { 12881 if p == nil || p.Ref == nil { 12882 return "" 12883 } 12884 return *p.Ref 12885 } 12886 12887 // GetRepo returns the Repo field. 12888 func (p *PushEvent) GetRepo() *PushEventRepository { 12889 if p == nil { 12890 return nil 12891 } 12892 return p.Repo 12893 } 12894 12895 // GetSender returns the Sender field. 12896 func (p *PushEvent) GetSender() *User { 12897 if p == nil { 12898 return nil 12899 } 12900 return p.Sender 12901 } 12902 12903 // GetSize returns the Size field if it's non-nil, zero value otherwise. 12904 func (p *PushEvent) GetSize() int { 12905 if p == nil || p.Size == nil { 12906 return 0 12907 } 12908 return *p.Size 12909 } 12910 12911 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 12912 func (p *PushEventRepoOwner) GetEmail() string { 12913 if p == nil || p.Email == nil { 12914 return "" 12915 } 12916 return *p.Email 12917 } 12918 12919 // GetName returns the Name field if it's non-nil, zero value otherwise. 12920 func (p *PushEventRepoOwner) GetName() string { 12921 if p == nil || p.Name == nil { 12922 return "" 12923 } 12924 return *p.Name 12925 } 12926 12927 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 12928 func (p *PushEventRepository) GetArchived() bool { 12929 if p == nil || p.Archived == nil { 12930 return false 12931 } 12932 return *p.Archived 12933 } 12934 12935 // GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 12936 func (p *PushEventRepository) GetArchiveURL() string { 12937 if p == nil || p.ArchiveURL == nil { 12938 return "" 12939 } 12940 return *p.ArchiveURL 12941 } 12942 12943 // GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 12944 func (p *PushEventRepository) GetCloneURL() string { 12945 if p == nil || p.CloneURL == nil { 12946 return "" 12947 } 12948 return *p.CloneURL 12949 } 12950 12951 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12952 func (p *PushEventRepository) GetCreatedAt() Timestamp { 12953 if p == nil || p.CreatedAt == nil { 12954 return Timestamp{} 12955 } 12956 return *p.CreatedAt 12957 } 12958 12959 // GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 12960 func (p *PushEventRepository) GetDefaultBranch() string { 12961 if p == nil || p.DefaultBranch == nil { 12962 return "" 12963 } 12964 return *p.DefaultBranch 12965 } 12966 12967 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 12968 func (p *PushEventRepository) GetDescription() string { 12969 if p == nil || p.Description == nil { 12970 return "" 12971 } 12972 return *p.Description 12973 } 12974 12975 // GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. 12976 func (p *PushEventRepository) GetDisabled() bool { 12977 if p == nil || p.Disabled == nil { 12978 return false 12979 } 12980 return *p.Disabled 12981 } 12982 12983 // GetFork returns the Fork field if it's non-nil, zero value otherwise. 12984 func (p *PushEventRepository) GetFork() bool { 12985 if p == nil || p.Fork == nil { 12986 return false 12987 } 12988 return *p.Fork 12989 } 12990 12991 // GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 12992 func (p *PushEventRepository) GetForksCount() int { 12993 if p == nil || p.ForksCount == nil { 12994 return 0 12995 } 12996 return *p.ForksCount 12997 } 12998 12999 // GetFullName returns the FullName field if it's non-nil, zero value otherwise. 13000 func (p *PushEventRepository) GetFullName() string { 13001 if p == nil || p.FullName == nil { 13002 return "" 13003 } 13004 return *p.FullName 13005 } 13006 13007 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 13008 func (p *PushEventRepository) GetGitURL() string { 13009 if p == nil || p.GitURL == nil { 13010 return "" 13011 } 13012 return *p.GitURL 13013 } 13014 13015 // GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 13016 func (p *PushEventRepository) GetHasDownloads() bool { 13017 if p == nil || p.HasDownloads == nil { 13018 return false 13019 } 13020 return *p.HasDownloads 13021 } 13022 13023 // GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 13024 func (p *PushEventRepository) GetHasIssues() bool { 13025 if p == nil || p.HasIssues == nil { 13026 return false 13027 } 13028 return *p.HasIssues 13029 } 13030 13031 // GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 13032 func (p *PushEventRepository) GetHasPages() bool { 13033 if p == nil || p.HasPages == nil { 13034 return false 13035 } 13036 return *p.HasPages 13037 } 13038 13039 // GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 13040 func (p *PushEventRepository) GetHasWiki() bool { 13041 if p == nil || p.HasWiki == nil { 13042 return false 13043 } 13044 return *p.HasWiki 13045 } 13046 13047 // GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 13048 func (p *PushEventRepository) GetHomepage() string { 13049 if p == nil || p.Homepage == nil { 13050 return "" 13051 } 13052 return *p.Homepage 13053 } 13054 13055 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13056 func (p *PushEventRepository) GetHTMLURL() string { 13057 if p == nil || p.HTMLURL == nil { 13058 return "" 13059 } 13060 return *p.HTMLURL 13061 } 13062 13063 // GetID returns the ID field if it's non-nil, zero value otherwise. 13064 func (p *PushEventRepository) GetID() int64 { 13065 if p == nil || p.ID == nil { 13066 return 0 13067 } 13068 return *p.ID 13069 } 13070 13071 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 13072 func (p *PushEventRepository) GetLanguage() string { 13073 if p == nil || p.Language == nil { 13074 return "" 13075 } 13076 return *p.Language 13077 } 13078 13079 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 13080 func (p *PushEventRepository) GetMasterBranch() string { 13081 if p == nil || p.MasterBranch == nil { 13082 return "" 13083 } 13084 return *p.MasterBranch 13085 } 13086 13087 // GetName returns the Name field if it's non-nil, zero value otherwise. 13088 func (p *PushEventRepository) GetName() string { 13089 if p == nil || p.Name == nil { 13090 return "" 13091 } 13092 return *p.Name 13093 } 13094 13095 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13096 func (p *PushEventRepository) GetNodeID() string { 13097 if p == nil || p.NodeID == nil { 13098 return "" 13099 } 13100 return *p.NodeID 13101 } 13102 13103 // GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 13104 func (p *PushEventRepository) GetOpenIssuesCount() int { 13105 if p == nil || p.OpenIssuesCount == nil { 13106 return 0 13107 } 13108 return *p.OpenIssuesCount 13109 } 13110 13111 // GetOrganization returns the Organization field if it's non-nil, zero value otherwise. 13112 func (p *PushEventRepository) GetOrganization() string { 13113 if p == nil || p.Organization == nil { 13114 return "" 13115 } 13116 return *p.Organization 13117 } 13118 13119 // GetOwner returns the Owner field. 13120 func (p *PushEventRepository) GetOwner() *User { 13121 if p == nil { 13122 return nil 13123 } 13124 return p.Owner 13125 } 13126 13127 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 13128 func (p *PushEventRepository) GetPrivate() bool { 13129 if p == nil || p.Private == nil { 13130 return false 13131 } 13132 return *p.Private 13133 } 13134 13135 // GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 13136 func (p *PushEventRepository) GetPullsURL() string { 13137 if p == nil || p.PullsURL == nil { 13138 return "" 13139 } 13140 return *p.PullsURL 13141 } 13142 13143 // GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 13144 func (p *PushEventRepository) GetPushedAt() Timestamp { 13145 if p == nil || p.PushedAt == nil { 13146 return Timestamp{} 13147 } 13148 return *p.PushedAt 13149 } 13150 13151 // GetSize returns the Size field if it's non-nil, zero value otherwise. 13152 func (p *PushEventRepository) GetSize() int { 13153 if p == nil || p.Size == nil { 13154 return 0 13155 } 13156 return *p.Size 13157 } 13158 13159 // GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 13160 func (p *PushEventRepository) GetSSHURL() string { 13161 if p == nil || p.SSHURL == nil { 13162 return "" 13163 } 13164 return *p.SSHURL 13165 } 13166 13167 // GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 13168 func (p *PushEventRepository) GetStargazersCount() int { 13169 if p == nil || p.StargazersCount == nil { 13170 return 0 13171 } 13172 return *p.StargazersCount 13173 } 13174 13175 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 13176 func (p *PushEventRepository) GetStatusesURL() string { 13177 if p == nil || p.StatusesURL == nil { 13178 return "" 13179 } 13180 return *p.StatusesURL 13181 } 13182 13183 // GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 13184 func (p *PushEventRepository) GetSVNURL() string { 13185 if p == nil || p.SVNURL == nil { 13186 return "" 13187 } 13188 return *p.SVNURL 13189 } 13190 13191 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13192 func (p *PushEventRepository) GetUpdatedAt() Timestamp { 13193 if p == nil || p.UpdatedAt == nil { 13194 return Timestamp{} 13195 } 13196 return *p.UpdatedAt 13197 } 13198 13199 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13200 func (p *PushEventRepository) GetURL() string { 13201 if p == nil || p.URL == nil { 13202 return "" 13203 } 13204 return *p.URL 13205 } 13206 13207 // GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 13208 func (p *PushEventRepository) GetWatchersCount() int { 13209 if p == nil || p.WatchersCount == nil { 13210 return 0 13211 } 13212 return *p.WatchersCount 13213 } 13214 13215 // GetCore returns the Core field. 13216 func (r *RateLimits) GetCore() *Rate { 13217 if r == nil { 13218 return nil 13219 } 13220 return r.Core 13221 } 13222 13223 // GetSearch returns the Search field. 13224 func (r *RateLimits) GetSearch() *Rate { 13225 if r == nil { 13226 return nil 13227 } 13228 return r.Search 13229 } 13230 13231 // GetContent returns the Content field if it's non-nil, zero value otherwise. 13232 func (r *Reaction) GetContent() string { 13233 if r == nil || r.Content == nil { 13234 return "" 13235 } 13236 return *r.Content 13237 } 13238 13239 // GetID returns the ID field if it's non-nil, zero value otherwise. 13240 func (r *Reaction) GetID() int64 { 13241 if r == nil || r.ID == nil { 13242 return 0 13243 } 13244 return *r.ID 13245 } 13246 13247 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13248 func (r *Reaction) GetNodeID() string { 13249 if r == nil || r.NodeID == nil { 13250 return "" 13251 } 13252 return *r.NodeID 13253 } 13254 13255 // GetUser returns the User field. 13256 func (r *Reaction) GetUser() *User { 13257 if r == nil { 13258 return nil 13259 } 13260 return r.User 13261 } 13262 13263 // GetConfused returns the Confused field if it's non-nil, zero value otherwise. 13264 func (r *Reactions) GetConfused() int { 13265 if r == nil || r.Confused == nil { 13266 return 0 13267 } 13268 return *r.Confused 13269 } 13270 13271 // GetEyes returns the Eyes field if it's non-nil, zero value otherwise. 13272 func (r *Reactions) GetEyes() int { 13273 if r == nil || r.Eyes == nil { 13274 return 0 13275 } 13276 return *r.Eyes 13277 } 13278 13279 // GetHeart returns the Heart field if it's non-nil, zero value otherwise. 13280 func (r *Reactions) GetHeart() int { 13281 if r == nil || r.Heart == nil { 13282 return 0 13283 } 13284 return *r.Heart 13285 } 13286 13287 // GetHooray returns the Hooray field if it's non-nil, zero value otherwise. 13288 func (r *Reactions) GetHooray() int { 13289 if r == nil || r.Hooray == nil { 13290 return 0 13291 } 13292 return *r.Hooray 13293 } 13294 13295 // GetLaugh returns the Laugh field if it's non-nil, zero value otherwise. 13296 func (r *Reactions) GetLaugh() int { 13297 if r == nil || r.Laugh == nil { 13298 return 0 13299 } 13300 return *r.Laugh 13301 } 13302 13303 // GetMinusOne returns the MinusOne field if it's non-nil, zero value otherwise. 13304 func (r *Reactions) GetMinusOne() int { 13305 if r == nil || r.MinusOne == nil { 13306 return 0 13307 } 13308 return *r.MinusOne 13309 } 13310 13311 // GetPlusOne returns the PlusOne field if it's non-nil, zero value otherwise. 13312 func (r *Reactions) GetPlusOne() int { 13313 if r == nil || r.PlusOne == nil { 13314 return 0 13315 } 13316 return *r.PlusOne 13317 } 13318 13319 // GetRocket returns the Rocket field if it's non-nil, zero value otherwise. 13320 func (r *Reactions) GetRocket() int { 13321 if r == nil || r.Rocket == nil { 13322 return 0 13323 } 13324 return *r.Rocket 13325 } 13326 13327 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 13328 func (r *Reactions) GetTotalCount() int { 13329 if r == nil || r.TotalCount == nil { 13330 return 0 13331 } 13332 return *r.TotalCount 13333 } 13334 13335 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13336 func (r *Reactions) GetURL() string { 13337 if r == nil || r.URL == nil { 13338 return "" 13339 } 13340 return *r.URL 13341 } 13342 13343 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13344 func (r *Reference) GetNodeID() string { 13345 if r == nil || r.NodeID == nil { 13346 return "" 13347 } 13348 return *r.NodeID 13349 } 13350 13351 // GetObject returns the Object field. 13352 func (r *Reference) GetObject() *GitObject { 13353 if r == nil { 13354 return nil 13355 } 13356 return r.Object 13357 } 13358 13359 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 13360 func (r *Reference) GetRef() string { 13361 if r == nil || r.Ref == nil { 13362 return "" 13363 } 13364 return *r.Ref 13365 } 13366 13367 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13368 func (r *Reference) GetURL() string { 13369 if r == nil || r.URL == nil { 13370 return "" 13371 } 13372 return *r.URL 13373 } 13374 13375 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 13376 func (r *RegistrationToken) GetExpiresAt() Timestamp { 13377 if r == nil || r.ExpiresAt == nil { 13378 return Timestamp{} 13379 } 13380 return *r.ExpiresAt 13381 } 13382 13383 // GetToken returns the Token field if it's non-nil, zero value otherwise. 13384 func (r *RegistrationToken) GetToken() string { 13385 if r == nil || r.Token == nil { 13386 return "" 13387 } 13388 return *r.Token 13389 } 13390 13391 // GetBrowserDownloadURL returns the BrowserDownloadURL field if it's non-nil, zero value otherwise. 13392 func (r *ReleaseAsset) GetBrowserDownloadURL() string { 13393 if r == nil || r.BrowserDownloadURL == nil { 13394 return "" 13395 } 13396 return *r.BrowserDownloadURL 13397 } 13398 13399 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 13400 func (r *ReleaseAsset) GetContentType() string { 13401 if r == nil || r.ContentType == nil { 13402 return "" 13403 } 13404 return *r.ContentType 13405 } 13406 13407 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13408 func (r *ReleaseAsset) GetCreatedAt() Timestamp { 13409 if r == nil || r.CreatedAt == nil { 13410 return Timestamp{} 13411 } 13412 return *r.CreatedAt 13413 } 13414 13415 // GetDownloadCount returns the DownloadCount field if it's non-nil, zero value otherwise. 13416 func (r *ReleaseAsset) GetDownloadCount() int { 13417 if r == nil || r.DownloadCount == nil { 13418 return 0 13419 } 13420 return *r.DownloadCount 13421 } 13422 13423 // GetID returns the ID field if it's non-nil, zero value otherwise. 13424 func (r *ReleaseAsset) GetID() int64 { 13425 if r == nil || r.ID == nil { 13426 return 0 13427 } 13428 return *r.ID 13429 } 13430 13431 // GetLabel returns the Label field if it's non-nil, zero value otherwise. 13432 func (r *ReleaseAsset) GetLabel() string { 13433 if r == nil || r.Label == nil { 13434 return "" 13435 } 13436 return *r.Label 13437 } 13438 13439 // GetName returns the Name field if it's non-nil, zero value otherwise. 13440 func (r *ReleaseAsset) GetName() string { 13441 if r == nil || r.Name == nil { 13442 return "" 13443 } 13444 return *r.Name 13445 } 13446 13447 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13448 func (r *ReleaseAsset) GetNodeID() string { 13449 if r == nil || r.NodeID == nil { 13450 return "" 13451 } 13452 return *r.NodeID 13453 } 13454 13455 // GetSize returns the Size field if it's non-nil, zero value otherwise. 13456 func (r *ReleaseAsset) GetSize() int { 13457 if r == nil || r.Size == nil { 13458 return 0 13459 } 13460 return *r.Size 13461 } 13462 13463 // GetState returns the State field if it's non-nil, zero value otherwise. 13464 func (r *ReleaseAsset) GetState() string { 13465 if r == nil || r.State == nil { 13466 return "" 13467 } 13468 return *r.State 13469 } 13470 13471 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13472 func (r *ReleaseAsset) GetUpdatedAt() Timestamp { 13473 if r == nil || r.UpdatedAt == nil { 13474 return Timestamp{} 13475 } 13476 return *r.UpdatedAt 13477 } 13478 13479 // GetUploader returns the Uploader field. 13480 func (r *ReleaseAsset) GetUploader() *User { 13481 if r == nil { 13482 return nil 13483 } 13484 return r.Uploader 13485 } 13486 13487 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13488 func (r *ReleaseAsset) GetURL() string { 13489 if r == nil || r.URL == nil { 13490 return "" 13491 } 13492 return *r.URL 13493 } 13494 13495 // GetAction returns the Action field if it's non-nil, zero value otherwise. 13496 func (r *ReleaseEvent) GetAction() string { 13497 if r == nil || r.Action == nil { 13498 return "" 13499 } 13500 return *r.Action 13501 } 13502 13503 // GetInstallation returns the Installation field. 13504 func (r *ReleaseEvent) GetInstallation() *Installation { 13505 if r == nil { 13506 return nil 13507 } 13508 return r.Installation 13509 } 13510 13511 // GetRelease returns the Release field. 13512 func (r *ReleaseEvent) GetRelease() *RepositoryRelease { 13513 if r == nil { 13514 return nil 13515 } 13516 return r.Release 13517 } 13518 13519 // GetRepo returns the Repo field. 13520 func (r *ReleaseEvent) GetRepo() *Repository { 13521 if r == nil { 13522 return nil 13523 } 13524 return r.Repo 13525 } 13526 13527 // GetSender returns the Sender field. 13528 func (r *ReleaseEvent) GetSender() *User { 13529 if r == nil { 13530 return nil 13531 } 13532 return r.Sender 13533 } 13534 13535 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 13536 func (r *RemoveToken) GetExpiresAt() Timestamp { 13537 if r == nil || r.ExpiresAt == nil { 13538 return Timestamp{} 13539 } 13540 return *r.ExpiresAt 13541 } 13542 13543 // GetToken returns the Token field if it's non-nil, zero value otherwise. 13544 func (r *RemoveToken) GetToken() string { 13545 if r == nil || r.Token == nil { 13546 return "" 13547 } 13548 return *r.Token 13549 } 13550 13551 // GetFrom returns the From field if it's non-nil, zero value otherwise. 13552 func (r *Rename) GetFrom() string { 13553 if r == nil || r.From == nil { 13554 return "" 13555 } 13556 return *r.From 13557 } 13558 13559 // GetTo returns the To field if it's non-nil, zero value otherwise. 13560 func (r *Rename) GetTo() string { 13561 if r == nil || r.To == nil { 13562 return "" 13563 } 13564 return *r.To 13565 } 13566 13567 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 13568 func (r *RenameOrgResponse) GetMessage() string { 13569 if r == nil || r.Message == nil { 13570 return "" 13571 } 13572 return *r.Message 13573 } 13574 13575 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13576 func (r *RenameOrgResponse) GetURL() string { 13577 if r == nil || r.URL == nil { 13578 return "" 13579 } 13580 return *r.URL 13581 } 13582 13583 // GetFrom returns the From field if it's non-nil, zero value otherwise. 13584 func (r *RepoName) GetFrom() string { 13585 if r == nil || r.From == nil { 13586 return "" 13587 } 13588 return *r.From 13589 } 13590 13591 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 13592 func (r *RepositoriesSearchResult) GetIncompleteResults() bool { 13593 if r == nil || r.IncompleteResults == nil { 13594 return false 13595 } 13596 return *r.IncompleteResults 13597 } 13598 13599 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 13600 func (r *RepositoriesSearchResult) GetTotal() int { 13601 if r == nil || r.Total == nil { 13602 return 0 13603 } 13604 return *r.Total 13605 } 13606 13607 // GetAllowAutoMerge returns the AllowAutoMerge field if it's non-nil, zero value otherwise. 13608 func (r *Repository) GetAllowAutoMerge() bool { 13609 if r == nil || r.AllowAutoMerge == nil { 13610 return false 13611 } 13612 return *r.AllowAutoMerge 13613 } 13614 13615 // GetAllowMergeCommit returns the AllowMergeCommit field if it's non-nil, zero value otherwise. 13616 func (r *Repository) GetAllowMergeCommit() bool { 13617 if r == nil || r.AllowMergeCommit == nil { 13618 return false 13619 } 13620 return *r.AllowMergeCommit 13621 } 13622 13623 // GetAllowRebaseMerge returns the AllowRebaseMerge field if it's non-nil, zero value otherwise. 13624 func (r *Repository) GetAllowRebaseMerge() bool { 13625 if r == nil || r.AllowRebaseMerge == nil { 13626 return false 13627 } 13628 return *r.AllowRebaseMerge 13629 } 13630 13631 // GetAllowSquashMerge returns the AllowSquashMerge field if it's non-nil, zero value otherwise. 13632 func (r *Repository) GetAllowSquashMerge() bool { 13633 if r == nil || r.AllowSquashMerge == nil { 13634 return false 13635 } 13636 return *r.AllowSquashMerge 13637 } 13638 13639 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 13640 func (r *Repository) GetArchived() bool { 13641 if r == nil || r.Archived == nil { 13642 return false 13643 } 13644 return *r.Archived 13645 } 13646 13647 // GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 13648 func (r *Repository) GetArchiveURL() string { 13649 if r == nil || r.ArchiveURL == nil { 13650 return "" 13651 } 13652 return *r.ArchiveURL 13653 } 13654 13655 // GetAssigneesURL returns the AssigneesURL field if it's non-nil, zero value otherwise. 13656 func (r *Repository) GetAssigneesURL() string { 13657 if r == nil || r.AssigneesURL == nil { 13658 return "" 13659 } 13660 return *r.AssigneesURL 13661 } 13662 13663 // GetAutoInit returns the AutoInit field if it's non-nil, zero value otherwise. 13664 func (r *Repository) GetAutoInit() bool { 13665 if r == nil || r.AutoInit == nil { 13666 return false 13667 } 13668 return *r.AutoInit 13669 } 13670 13671 // GetBlobsURL returns the BlobsURL field if it's non-nil, zero value otherwise. 13672 func (r *Repository) GetBlobsURL() string { 13673 if r == nil || r.BlobsURL == nil { 13674 return "" 13675 } 13676 return *r.BlobsURL 13677 } 13678 13679 // GetBranchesURL returns the BranchesURL field if it's non-nil, zero value otherwise. 13680 func (r *Repository) GetBranchesURL() string { 13681 if r == nil || r.BranchesURL == nil { 13682 return "" 13683 } 13684 return *r.BranchesURL 13685 } 13686 13687 // GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 13688 func (r *Repository) GetCloneURL() string { 13689 if r == nil || r.CloneURL == nil { 13690 return "" 13691 } 13692 return *r.CloneURL 13693 } 13694 13695 // GetCodeOfConduct returns the CodeOfConduct field. 13696 func (r *Repository) GetCodeOfConduct() *CodeOfConduct { 13697 if r == nil { 13698 return nil 13699 } 13700 return r.CodeOfConduct 13701 } 13702 13703 // GetCollaboratorsURL returns the CollaboratorsURL field if it's non-nil, zero value otherwise. 13704 func (r *Repository) GetCollaboratorsURL() string { 13705 if r == nil || r.CollaboratorsURL == nil { 13706 return "" 13707 } 13708 return *r.CollaboratorsURL 13709 } 13710 13711 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 13712 func (r *Repository) GetCommentsURL() string { 13713 if r == nil || r.CommentsURL == nil { 13714 return "" 13715 } 13716 return *r.CommentsURL 13717 } 13718 13719 // GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. 13720 func (r *Repository) GetCommitsURL() string { 13721 if r == nil || r.CommitsURL == nil { 13722 return "" 13723 } 13724 return *r.CommitsURL 13725 } 13726 13727 // GetCompareURL returns the CompareURL field if it's non-nil, zero value otherwise. 13728 func (r *Repository) GetCompareURL() string { 13729 if r == nil || r.CompareURL == nil { 13730 return "" 13731 } 13732 return *r.CompareURL 13733 } 13734 13735 // GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 13736 func (r *Repository) GetContentsURL() string { 13737 if r == nil || r.ContentsURL == nil { 13738 return "" 13739 } 13740 return *r.ContentsURL 13741 } 13742 13743 // GetContributorsURL returns the ContributorsURL field if it's non-nil, zero value otherwise. 13744 func (r *Repository) GetContributorsURL() string { 13745 if r == nil || r.ContributorsURL == nil { 13746 return "" 13747 } 13748 return *r.ContributorsURL 13749 } 13750 13751 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13752 func (r *Repository) GetCreatedAt() Timestamp { 13753 if r == nil || r.CreatedAt == nil { 13754 return Timestamp{} 13755 } 13756 return *r.CreatedAt 13757 } 13758 13759 // GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 13760 func (r *Repository) GetDefaultBranch() string { 13761 if r == nil || r.DefaultBranch == nil { 13762 return "" 13763 } 13764 return *r.DefaultBranch 13765 } 13766 13767 // GetDeleteBranchOnMerge returns the DeleteBranchOnMerge field if it's non-nil, zero value otherwise. 13768 func (r *Repository) GetDeleteBranchOnMerge() bool { 13769 if r == nil || r.DeleteBranchOnMerge == nil { 13770 return false 13771 } 13772 return *r.DeleteBranchOnMerge 13773 } 13774 13775 // GetDeploymentsURL returns the DeploymentsURL field if it's non-nil, zero value otherwise. 13776 func (r *Repository) GetDeploymentsURL() string { 13777 if r == nil || r.DeploymentsURL == nil { 13778 return "" 13779 } 13780 return *r.DeploymentsURL 13781 } 13782 13783 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 13784 func (r *Repository) GetDescription() string { 13785 if r == nil || r.Description == nil { 13786 return "" 13787 } 13788 return *r.Description 13789 } 13790 13791 // GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. 13792 func (r *Repository) GetDisabled() bool { 13793 if r == nil || r.Disabled == nil { 13794 return false 13795 } 13796 return *r.Disabled 13797 } 13798 13799 // GetDownloadsURL returns the DownloadsURL field if it's non-nil, zero value otherwise. 13800 func (r *Repository) GetDownloadsURL() string { 13801 if r == nil || r.DownloadsURL == nil { 13802 return "" 13803 } 13804 return *r.DownloadsURL 13805 } 13806 13807 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 13808 func (r *Repository) GetEventsURL() string { 13809 if r == nil || r.EventsURL == nil { 13810 return "" 13811 } 13812 return *r.EventsURL 13813 } 13814 13815 // GetFork returns the Fork field if it's non-nil, zero value otherwise. 13816 func (r *Repository) GetFork() bool { 13817 if r == nil || r.Fork == nil { 13818 return false 13819 } 13820 return *r.Fork 13821 } 13822 13823 // GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 13824 func (r *Repository) GetForksCount() int { 13825 if r == nil || r.ForksCount == nil { 13826 return 0 13827 } 13828 return *r.ForksCount 13829 } 13830 13831 // GetForksURL returns the ForksURL field if it's non-nil, zero value otherwise. 13832 func (r *Repository) GetForksURL() string { 13833 if r == nil || r.ForksURL == nil { 13834 return "" 13835 } 13836 return *r.ForksURL 13837 } 13838 13839 // GetFullName returns the FullName field if it's non-nil, zero value otherwise. 13840 func (r *Repository) GetFullName() string { 13841 if r == nil || r.FullName == nil { 13842 return "" 13843 } 13844 return *r.FullName 13845 } 13846 13847 // GetGitCommitsURL returns the GitCommitsURL field if it's non-nil, zero value otherwise. 13848 func (r *Repository) GetGitCommitsURL() string { 13849 if r == nil || r.GitCommitsURL == nil { 13850 return "" 13851 } 13852 return *r.GitCommitsURL 13853 } 13854 13855 // GetGitignoreTemplate returns the GitignoreTemplate field if it's non-nil, zero value otherwise. 13856 func (r *Repository) GetGitignoreTemplate() string { 13857 if r == nil || r.GitignoreTemplate == nil { 13858 return "" 13859 } 13860 return *r.GitignoreTemplate 13861 } 13862 13863 // GetGitRefsURL returns the GitRefsURL field if it's non-nil, zero value otherwise. 13864 func (r *Repository) GetGitRefsURL() string { 13865 if r == nil || r.GitRefsURL == nil { 13866 return "" 13867 } 13868 return *r.GitRefsURL 13869 } 13870 13871 // GetGitTagsURL returns the GitTagsURL field if it's non-nil, zero value otherwise. 13872 func (r *Repository) GetGitTagsURL() string { 13873 if r == nil || r.GitTagsURL == nil { 13874 return "" 13875 } 13876 return *r.GitTagsURL 13877 } 13878 13879 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 13880 func (r *Repository) GetGitURL() string { 13881 if r == nil || r.GitURL == nil { 13882 return "" 13883 } 13884 return *r.GitURL 13885 } 13886 13887 // GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 13888 func (r *Repository) GetHasDownloads() bool { 13889 if r == nil || r.HasDownloads == nil { 13890 return false 13891 } 13892 return *r.HasDownloads 13893 } 13894 13895 // GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 13896 func (r *Repository) GetHasIssues() bool { 13897 if r == nil || r.HasIssues == nil { 13898 return false 13899 } 13900 return *r.HasIssues 13901 } 13902 13903 // GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 13904 func (r *Repository) GetHasPages() bool { 13905 if r == nil || r.HasPages == nil { 13906 return false 13907 } 13908 return *r.HasPages 13909 } 13910 13911 // GetHasProjects returns the HasProjects field if it's non-nil, zero value otherwise. 13912 func (r *Repository) GetHasProjects() bool { 13913 if r == nil || r.HasProjects == nil { 13914 return false 13915 } 13916 return *r.HasProjects 13917 } 13918 13919 // GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 13920 func (r *Repository) GetHasWiki() bool { 13921 if r == nil || r.HasWiki == nil { 13922 return false 13923 } 13924 return *r.HasWiki 13925 } 13926 13927 // GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 13928 func (r *Repository) GetHomepage() string { 13929 if r == nil || r.Homepage == nil { 13930 return "" 13931 } 13932 return *r.Homepage 13933 } 13934 13935 // GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 13936 func (r *Repository) GetHooksURL() string { 13937 if r == nil || r.HooksURL == nil { 13938 return "" 13939 } 13940 return *r.HooksURL 13941 } 13942 13943 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13944 func (r *Repository) GetHTMLURL() string { 13945 if r == nil || r.HTMLURL == nil { 13946 return "" 13947 } 13948 return *r.HTMLURL 13949 } 13950 13951 // GetID returns the ID field if it's non-nil, zero value otherwise. 13952 func (r *Repository) GetID() int64 { 13953 if r == nil || r.ID == nil { 13954 return 0 13955 } 13956 return *r.ID 13957 } 13958 13959 // GetIssueCommentURL returns the IssueCommentURL field if it's non-nil, zero value otherwise. 13960 func (r *Repository) GetIssueCommentURL() string { 13961 if r == nil || r.IssueCommentURL == nil { 13962 return "" 13963 } 13964 return *r.IssueCommentURL 13965 } 13966 13967 // GetIssueEventsURL returns the IssueEventsURL field if it's non-nil, zero value otherwise. 13968 func (r *Repository) GetIssueEventsURL() string { 13969 if r == nil || r.IssueEventsURL == nil { 13970 return "" 13971 } 13972 return *r.IssueEventsURL 13973 } 13974 13975 // GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 13976 func (r *Repository) GetIssuesURL() string { 13977 if r == nil || r.IssuesURL == nil { 13978 return "" 13979 } 13980 return *r.IssuesURL 13981 } 13982 13983 // GetIsTemplate returns the IsTemplate field if it's non-nil, zero value otherwise. 13984 func (r *Repository) GetIsTemplate() bool { 13985 if r == nil || r.IsTemplate == nil { 13986 return false 13987 } 13988 return *r.IsTemplate 13989 } 13990 13991 // GetKeysURL returns the KeysURL field if it's non-nil, zero value otherwise. 13992 func (r *Repository) GetKeysURL() string { 13993 if r == nil || r.KeysURL == nil { 13994 return "" 13995 } 13996 return *r.KeysURL 13997 } 13998 13999 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 14000 func (r *Repository) GetLabelsURL() string { 14001 if r == nil || r.LabelsURL == nil { 14002 return "" 14003 } 14004 return *r.LabelsURL 14005 } 14006 14007 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 14008 func (r *Repository) GetLanguage() string { 14009 if r == nil || r.Language == nil { 14010 return "" 14011 } 14012 return *r.Language 14013 } 14014 14015 // GetLanguagesURL returns the LanguagesURL field if it's non-nil, zero value otherwise. 14016 func (r *Repository) GetLanguagesURL() string { 14017 if r == nil || r.LanguagesURL == nil { 14018 return "" 14019 } 14020 return *r.LanguagesURL 14021 } 14022 14023 // GetLicense returns the License field. 14024 func (r *Repository) GetLicense() *License { 14025 if r == nil { 14026 return nil 14027 } 14028 return r.License 14029 } 14030 14031 // GetLicenseTemplate returns the LicenseTemplate field if it's non-nil, zero value otherwise. 14032 func (r *Repository) GetLicenseTemplate() string { 14033 if r == nil || r.LicenseTemplate == nil { 14034 return "" 14035 } 14036 return *r.LicenseTemplate 14037 } 14038 14039 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 14040 func (r *Repository) GetMasterBranch() string { 14041 if r == nil || r.MasterBranch == nil { 14042 return "" 14043 } 14044 return *r.MasterBranch 14045 } 14046 14047 // GetMergesURL returns the MergesURL field if it's non-nil, zero value otherwise. 14048 func (r *Repository) GetMergesURL() string { 14049 if r == nil || r.MergesURL == nil { 14050 return "" 14051 } 14052 return *r.MergesURL 14053 } 14054 14055 // GetMilestonesURL returns the MilestonesURL field if it's non-nil, zero value otherwise. 14056 func (r *Repository) GetMilestonesURL() string { 14057 if r == nil || r.MilestonesURL == nil { 14058 return "" 14059 } 14060 return *r.MilestonesURL 14061 } 14062 14063 // GetMirrorURL returns the MirrorURL field if it's non-nil, zero value otherwise. 14064 func (r *Repository) GetMirrorURL() string { 14065 if r == nil || r.MirrorURL == nil { 14066 return "" 14067 } 14068 return *r.MirrorURL 14069 } 14070 14071 // GetName returns the Name field if it's non-nil, zero value otherwise. 14072 func (r *Repository) GetName() string { 14073 if r == nil || r.Name == nil { 14074 return "" 14075 } 14076 return *r.Name 14077 } 14078 14079 // GetNetworkCount returns the NetworkCount field if it's non-nil, zero value otherwise. 14080 func (r *Repository) GetNetworkCount() int { 14081 if r == nil || r.NetworkCount == nil { 14082 return 0 14083 } 14084 return *r.NetworkCount 14085 } 14086 14087 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14088 func (r *Repository) GetNodeID() string { 14089 if r == nil || r.NodeID == nil { 14090 return "" 14091 } 14092 return *r.NodeID 14093 } 14094 14095 // GetNotificationsURL returns the NotificationsURL field if it's non-nil, zero value otherwise. 14096 func (r *Repository) GetNotificationsURL() string { 14097 if r == nil || r.NotificationsURL == nil { 14098 return "" 14099 } 14100 return *r.NotificationsURL 14101 } 14102 14103 // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 14104 func (r *Repository) GetOpenIssues() int { 14105 if r == nil || r.OpenIssues == nil { 14106 return 0 14107 } 14108 return *r.OpenIssues 14109 } 14110 14111 // GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 14112 func (r *Repository) GetOpenIssuesCount() int { 14113 if r == nil || r.OpenIssuesCount == nil { 14114 return 0 14115 } 14116 return *r.OpenIssuesCount 14117 } 14118 14119 // GetOrganization returns the Organization field. 14120 func (r *Repository) GetOrganization() *Organization { 14121 if r == nil { 14122 return nil 14123 } 14124 return r.Organization 14125 } 14126 14127 // GetOwner returns the Owner field. 14128 func (r *Repository) GetOwner() *User { 14129 if r == nil { 14130 return nil 14131 } 14132 return r.Owner 14133 } 14134 14135 // GetParent returns the Parent field. 14136 func (r *Repository) GetParent() *Repository { 14137 if r == nil { 14138 return nil 14139 } 14140 return r.Parent 14141 } 14142 14143 // GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. 14144 func (r *Repository) GetPermissions() map[string]bool { 14145 if r == nil || r.Permissions == nil { 14146 return map[string]bool{} 14147 } 14148 return r.Permissions 14149 } 14150 14151 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 14152 func (r *Repository) GetPrivate() bool { 14153 if r == nil || r.Private == nil { 14154 return false 14155 } 14156 return *r.Private 14157 } 14158 14159 // GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 14160 func (r *Repository) GetPullsURL() string { 14161 if r == nil || r.PullsURL == nil { 14162 return "" 14163 } 14164 return *r.PullsURL 14165 } 14166 14167 // GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 14168 func (r *Repository) GetPushedAt() Timestamp { 14169 if r == nil || r.PushedAt == nil { 14170 return Timestamp{} 14171 } 14172 return *r.PushedAt 14173 } 14174 14175 // GetReleasesURL returns the ReleasesURL field if it's non-nil, zero value otherwise. 14176 func (r *Repository) GetReleasesURL() string { 14177 if r == nil || r.ReleasesURL == nil { 14178 return "" 14179 } 14180 return *r.ReleasesURL 14181 } 14182 14183 // GetSecurityAndAnalysis returns the SecurityAndAnalysis field. 14184 func (r *Repository) GetSecurityAndAnalysis() *SecurityAndAnalysis { 14185 if r == nil { 14186 return nil 14187 } 14188 return r.SecurityAndAnalysis 14189 } 14190 14191 // GetSize returns the Size field if it's non-nil, zero value otherwise. 14192 func (r *Repository) GetSize() int { 14193 if r == nil || r.Size == nil { 14194 return 0 14195 } 14196 return *r.Size 14197 } 14198 14199 // GetSource returns the Source field. 14200 func (r *Repository) GetSource() *Repository { 14201 if r == nil { 14202 return nil 14203 } 14204 return r.Source 14205 } 14206 14207 // GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 14208 func (r *Repository) GetSSHURL() string { 14209 if r == nil || r.SSHURL == nil { 14210 return "" 14211 } 14212 return *r.SSHURL 14213 } 14214 14215 // GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 14216 func (r *Repository) GetStargazersCount() int { 14217 if r == nil || r.StargazersCount == nil { 14218 return 0 14219 } 14220 return *r.StargazersCount 14221 } 14222 14223 // GetStargazersURL returns the StargazersURL field if it's non-nil, zero value otherwise. 14224 func (r *Repository) GetStargazersURL() string { 14225 if r == nil || r.StargazersURL == nil { 14226 return "" 14227 } 14228 return *r.StargazersURL 14229 } 14230 14231 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 14232 func (r *Repository) GetStatusesURL() string { 14233 if r == nil || r.StatusesURL == nil { 14234 return "" 14235 } 14236 return *r.StatusesURL 14237 } 14238 14239 // GetSubscribersCount returns the SubscribersCount field if it's non-nil, zero value otherwise. 14240 func (r *Repository) GetSubscribersCount() int { 14241 if r == nil || r.SubscribersCount == nil { 14242 return 0 14243 } 14244 return *r.SubscribersCount 14245 } 14246 14247 // GetSubscribersURL returns the SubscribersURL field if it's non-nil, zero value otherwise. 14248 func (r *Repository) GetSubscribersURL() string { 14249 if r == nil || r.SubscribersURL == nil { 14250 return "" 14251 } 14252 return *r.SubscribersURL 14253 } 14254 14255 // GetSubscriptionURL returns the SubscriptionURL field if it's non-nil, zero value otherwise. 14256 func (r *Repository) GetSubscriptionURL() string { 14257 if r == nil || r.SubscriptionURL == nil { 14258 return "" 14259 } 14260 return *r.SubscriptionURL 14261 } 14262 14263 // GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 14264 func (r *Repository) GetSVNURL() string { 14265 if r == nil || r.SVNURL == nil { 14266 return "" 14267 } 14268 return *r.SVNURL 14269 } 14270 14271 // GetTagsURL returns the TagsURL field if it's non-nil, zero value otherwise. 14272 func (r *Repository) GetTagsURL() string { 14273 if r == nil || r.TagsURL == nil { 14274 return "" 14275 } 14276 return *r.TagsURL 14277 } 14278 14279 // GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. 14280 func (r *Repository) GetTeamID() int64 { 14281 if r == nil || r.TeamID == nil { 14282 return 0 14283 } 14284 return *r.TeamID 14285 } 14286 14287 // GetTeamsURL returns the TeamsURL field if it's non-nil, zero value otherwise. 14288 func (r *Repository) GetTeamsURL() string { 14289 if r == nil || r.TeamsURL == nil { 14290 return "" 14291 } 14292 return *r.TeamsURL 14293 } 14294 14295 // GetTemplateRepository returns the TemplateRepository field. 14296 func (r *Repository) GetTemplateRepository() *Repository { 14297 if r == nil { 14298 return nil 14299 } 14300 return r.TemplateRepository 14301 } 14302 14303 // GetTreesURL returns the TreesURL field if it's non-nil, zero value otherwise. 14304 func (r *Repository) GetTreesURL() string { 14305 if r == nil || r.TreesURL == nil { 14306 return "" 14307 } 14308 return *r.TreesURL 14309 } 14310 14311 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14312 func (r *Repository) GetUpdatedAt() Timestamp { 14313 if r == nil || r.UpdatedAt == nil { 14314 return Timestamp{} 14315 } 14316 return *r.UpdatedAt 14317 } 14318 14319 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14320 func (r *Repository) GetURL() string { 14321 if r == nil || r.URL == nil { 14322 return "" 14323 } 14324 return *r.URL 14325 } 14326 14327 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 14328 func (r *Repository) GetVisibility() string { 14329 if r == nil || r.Visibility == nil { 14330 return "" 14331 } 14332 return *r.Visibility 14333 } 14334 14335 // GetWatchers returns the Watchers field if it's non-nil, zero value otherwise. 14336 func (r *Repository) GetWatchers() int { 14337 if r == nil || r.Watchers == nil { 14338 return 0 14339 } 14340 return *r.Watchers 14341 } 14342 14343 // GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 14344 func (r *Repository) GetWatchersCount() int { 14345 if r == nil || r.WatchersCount == nil { 14346 return 0 14347 } 14348 return *r.WatchersCount 14349 } 14350 14351 // GetAdvancedSecurityCommitters returns the AdvancedSecurityCommitters field if it's non-nil, zero value otherwise. 14352 func (r *RepositoryActiveCommitters) GetAdvancedSecurityCommitters() int { 14353 if r == nil || r.AdvancedSecurityCommitters == nil { 14354 return 0 14355 } 14356 return *r.AdvancedSecurityCommitters 14357 } 14358 14359 // GetName returns the Name field if it's non-nil, zero value otherwise. 14360 func (r *RepositoryActiveCommitters) GetName() string { 14361 if r == nil || r.Name == nil { 14362 return "" 14363 } 14364 return *r.Name 14365 } 14366 14367 // GetBody returns the Body field if it's non-nil, zero value otherwise. 14368 func (r *RepositoryComment) GetBody() string { 14369 if r == nil || r.Body == nil { 14370 return "" 14371 } 14372 return *r.Body 14373 } 14374 14375 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 14376 func (r *RepositoryComment) GetCommitID() string { 14377 if r == nil || r.CommitID == nil { 14378 return "" 14379 } 14380 return *r.CommitID 14381 } 14382 14383 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14384 func (r *RepositoryComment) GetCreatedAt() time.Time { 14385 if r == nil || r.CreatedAt == nil { 14386 return time.Time{} 14387 } 14388 return *r.CreatedAt 14389 } 14390 14391 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 14392 func (r *RepositoryComment) GetHTMLURL() string { 14393 if r == nil || r.HTMLURL == nil { 14394 return "" 14395 } 14396 return *r.HTMLURL 14397 } 14398 14399 // GetID returns the ID field if it's non-nil, zero value otherwise. 14400 func (r *RepositoryComment) GetID() int64 { 14401 if r == nil || r.ID == nil { 14402 return 0 14403 } 14404 return *r.ID 14405 } 14406 14407 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14408 func (r *RepositoryComment) GetNodeID() string { 14409 if r == nil || r.NodeID == nil { 14410 return "" 14411 } 14412 return *r.NodeID 14413 } 14414 14415 // GetPath returns the Path field if it's non-nil, zero value otherwise. 14416 func (r *RepositoryComment) GetPath() string { 14417 if r == nil || r.Path == nil { 14418 return "" 14419 } 14420 return *r.Path 14421 } 14422 14423 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 14424 func (r *RepositoryComment) GetPosition() int { 14425 if r == nil || r.Position == nil { 14426 return 0 14427 } 14428 return *r.Position 14429 } 14430 14431 // GetReactions returns the Reactions field. 14432 func (r *RepositoryComment) GetReactions() *Reactions { 14433 if r == nil { 14434 return nil 14435 } 14436 return r.Reactions 14437 } 14438 14439 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14440 func (r *RepositoryComment) GetUpdatedAt() time.Time { 14441 if r == nil || r.UpdatedAt == nil { 14442 return time.Time{} 14443 } 14444 return *r.UpdatedAt 14445 } 14446 14447 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14448 func (r *RepositoryComment) GetURL() string { 14449 if r == nil || r.URL == nil { 14450 return "" 14451 } 14452 return *r.URL 14453 } 14454 14455 // GetUser returns the User field. 14456 func (r *RepositoryComment) GetUser() *User { 14457 if r == nil { 14458 return nil 14459 } 14460 return r.User 14461 } 14462 14463 // GetAuthor returns the Author field. 14464 func (r *RepositoryCommit) GetAuthor() *User { 14465 if r == nil { 14466 return nil 14467 } 14468 return r.Author 14469 } 14470 14471 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 14472 func (r *RepositoryCommit) GetCommentsURL() string { 14473 if r == nil || r.CommentsURL == nil { 14474 return "" 14475 } 14476 return *r.CommentsURL 14477 } 14478 14479 // GetCommit returns the Commit field. 14480 func (r *RepositoryCommit) GetCommit() *Commit { 14481 if r == nil { 14482 return nil 14483 } 14484 return r.Commit 14485 } 14486 14487 // GetCommitter returns the Committer field. 14488 func (r *RepositoryCommit) GetCommitter() *User { 14489 if r == nil { 14490 return nil 14491 } 14492 return r.Committer 14493 } 14494 14495 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 14496 func (r *RepositoryCommit) GetHTMLURL() string { 14497 if r == nil || r.HTMLURL == nil { 14498 return "" 14499 } 14500 return *r.HTMLURL 14501 } 14502 14503 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14504 func (r *RepositoryCommit) GetNodeID() string { 14505 if r == nil || r.NodeID == nil { 14506 return "" 14507 } 14508 return *r.NodeID 14509 } 14510 14511 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 14512 func (r *RepositoryCommit) GetSHA() string { 14513 if r == nil || r.SHA == nil { 14514 return "" 14515 } 14516 return *r.SHA 14517 } 14518 14519 // GetStats returns the Stats field. 14520 func (r *RepositoryCommit) GetStats() *CommitStats { 14521 if r == nil { 14522 return nil 14523 } 14524 return r.Stats 14525 } 14526 14527 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14528 func (r *RepositoryCommit) GetURL() string { 14529 if r == nil || r.URL == nil { 14530 return "" 14531 } 14532 return *r.URL 14533 } 14534 14535 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 14536 func (r *RepositoryContent) GetDownloadURL() string { 14537 if r == nil || r.DownloadURL == nil { 14538 return "" 14539 } 14540 return *r.DownloadURL 14541 } 14542 14543 // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 14544 func (r *RepositoryContent) GetEncoding() string { 14545 if r == nil || r.Encoding == nil { 14546 return "" 14547 } 14548 return *r.Encoding 14549 } 14550 14551 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 14552 func (r *RepositoryContent) GetGitURL() string { 14553 if r == nil || r.GitURL == nil { 14554 return "" 14555 } 14556 return *r.GitURL 14557 } 14558 14559 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 14560 func (r *RepositoryContent) GetHTMLURL() string { 14561 if r == nil || r.HTMLURL == nil { 14562 return "" 14563 } 14564 return *r.HTMLURL 14565 } 14566 14567 // GetName returns the Name field if it's non-nil, zero value otherwise. 14568 func (r *RepositoryContent) GetName() string { 14569 if r == nil || r.Name == nil { 14570 return "" 14571 } 14572 return *r.Name 14573 } 14574 14575 // GetPath returns the Path field if it's non-nil, zero value otherwise. 14576 func (r *RepositoryContent) GetPath() string { 14577 if r == nil || r.Path == nil { 14578 return "" 14579 } 14580 return *r.Path 14581 } 14582 14583 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 14584 func (r *RepositoryContent) GetSHA() string { 14585 if r == nil || r.SHA == nil { 14586 return "" 14587 } 14588 return *r.SHA 14589 } 14590 14591 // GetSize returns the Size field if it's non-nil, zero value otherwise. 14592 func (r *RepositoryContent) GetSize() int { 14593 if r == nil || r.Size == nil { 14594 return 0 14595 } 14596 return *r.Size 14597 } 14598 14599 // GetTarget returns the Target field if it's non-nil, zero value otherwise. 14600 func (r *RepositoryContent) GetTarget() string { 14601 if r == nil || r.Target == nil { 14602 return "" 14603 } 14604 return *r.Target 14605 } 14606 14607 // GetType returns the Type field if it's non-nil, zero value otherwise. 14608 func (r *RepositoryContent) GetType() string { 14609 if r == nil || r.Type == nil { 14610 return "" 14611 } 14612 return *r.Type 14613 } 14614 14615 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14616 func (r *RepositoryContent) GetURL() string { 14617 if r == nil || r.URL == nil { 14618 return "" 14619 } 14620 return *r.URL 14621 } 14622 14623 // GetAuthor returns the Author field. 14624 func (r *RepositoryContentFileOptions) GetAuthor() *CommitAuthor { 14625 if r == nil { 14626 return nil 14627 } 14628 return r.Author 14629 } 14630 14631 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 14632 func (r *RepositoryContentFileOptions) GetBranch() string { 14633 if r == nil || r.Branch == nil { 14634 return "" 14635 } 14636 return *r.Branch 14637 } 14638 14639 // GetCommitter returns the Committer field. 14640 func (r *RepositoryContentFileOptions) GetCommitter() *CommitAuthor { 14641 if r == nil { 14642 return nil 14643 } 14644 return r.Committer 14645 } 14646 14647 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 14648 func (r *RepositoryContentFileOptions) GetMessage() string { 14649 if r == nil || r.Message == nil { 14650 return "" 14651 } 14652 return *r.Message 14653 } 14654 14655 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 14656 func (r *RepositoryContentFileOptions) GetSHA() string { 14657 if r == nil || r.SHA == nil { 14658 return "" 14659 } 14660 return *r.SHA 14661 } 14662 14663 // GetContent returns the Content field. 14664 func (r *RepositoryContentResponse) GetContent() *RepositoryContent { 14665 if r == nil { 14666 return nil 14667 } 14668 return r.Content 14669 } 14670 14671 // GetAction returns the Action field if it's non-nil, zero value otherwise. 14672 func (r *RepositoryDispatchEvent) GetAction() string { 14673 if r == nil || r.Action == nil { 14674 return "" 14675 } 14676 return *r.Action 14677 } 14678 14679 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 14680 func (r *RepositoryDispatchEvent) GetBranch() string { 14681 if r == nil || r.Branch == nil { 14682 return "" 14683 } 14684 return *r.Branch 14685 } 14686 14687 // GetInstallation returns the Installation field. 14688 func (r *RepositoryDispatchEvent) GetInstallation() *Installation { 14689 if r == nil { 14690 return nil 14691 } 14692 return r.Installation 14693 } 14694 14695 // GetOrg returns the Org field. 14696 func (r *RepositoryDispatchEvent) GetOrg() *Organization { 14697 if r == nil { 14698 return nil 14699 } 14700 return r.Org 14701 } 14702 14703 // GetRepo returns the Repo field. 14704 func (r *RepositoryDispatchEvent) GetRepo() *Repository { 14705 if r == nil { 14706 return nil 14707 } 14708 return r.Repo 14709 } 14710 14711 // GetSender returns the Sender field. 14712 func (r *RepositoryDispatchEvent) GetSender() *User { 14713 if r == nil { 14714 return nil 14715 } 14716 return r.Sender 14717 } 14718 14719 // GetAction returns the Action field if it's non-nil, zero value otherwise. 14720 func (r *RepositoryEvent) GetAction() string { 14721 if r == nil || r.Action == nil { 14722 return "" 14723 } 14724 return *r.Action 14725 } 14726 14727 // GetChanges returns the Changes field. 14728 func (r *RepositoryEvent) GetChanges() *EditChange { 14729 if r == nil { 14730 return nil 14731 } 14732 return r.Changes 14733 } 14734 14735 // GetInstallation returns the Installation field. 14736 func (r *RepositoryEvent) GetInstallation() *Installation { 14737 if r == nil { 14738 return nil 14739 } 14740 return r.Installation 14741 } 14742 14743 // GetOrg returns the Org field. 14744 func (r *RepositoryEvent) GetOrg() *Organization { 14745 if r == nil { 14746 return nil 14747 } 14748 return r.Org 14749 } 14750 14751 // GetRepo returns the Repo field. 14752 func (r *RepositoryEvent) GetRepo() *Repository { 14753 if r == nil { 14754 return nil 14755 } 14756 return r.Repo 14757 } 14758 14759 // GetSender returns the Sender field. 14760 func (r *RepositoryEvent) GetSender() *User { 14761 if r == nil { 14762 return nil 14763 } 14764 return r.Sender 14765 } 14766 14767 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14768 func (r *RepositoryInvitation) GetCreatedAt() Timestamp { 14769 if r == nil || r.CreatedAt == nil { 14770 return Timestamp{} 14771 } 14772 return *r.CreatedAt 14773 } 14774 14775 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 14776 func (r *RepositoryInvitation) GetHTMLURL() string { 14777 if r == nil || r.HTMLURL == nil { 14778 return "" 14779 } 14780 return *r.HTMLURL 14781 } 14782 14783 // GetID returns the ID field if it's non-nil, zero value otherwise. 14784 func (r *RepositoryInvitation) GetID() int64 { 14785 if r == nil || r.ID == nil { 14786 return 0 14787 } 14788 return *r.ID 14789 } 14790 14791 // GetInvitee returns the Invitee field. 14792 func (r *RepositoryInvitation) GetInvitee() *User { 14793 if r == nil { 14794 return nil 14795 } 14796 return r.Invitee 14797 } 14798 14799 // GetInviter returns the Inviter field. 14800 func (r *RepositoryInvitation) GetInviter() *User { 14801 if r == nil { 14802 return nil 14803 } 14804 return r.Inviter 14805 } 14806 14807 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 14808 func (r *RepositoryInvitation) GetPermissions() string { 14809 if r == nil || r.Permissions == nil { 14810 return "" 14811 } 14812 return *r.Permissions 14813 } 14814 14815 // GetRepo returns the Repo field. 14816 func (r *RepositoryInvitation) GetRepo() *Repository { 14817 if r == nil { 14818 return nil 14819 } 14820 return r.Repo 14821 } 14822 14823 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14824 func (r *RepositoryInvitation) GetURL() string { 14825 if r == nil || r.URL == nil { 14826 return "" 14827 } 14828 return *r.URL 14829 } 14830 14831 // GetContent returns the Content field if it's non-nil, zero value otherwise. 14832 func (r *RepositoryLicense) GetContent() string { 14833 if r == nil || r.Content == nil { 14834 return "" 14835 } 14836 return *r.Content 14837 } 14838 14839 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 14840 func (r *RepositoryLicense) GetDownloadURL() string { 14841 if r == nil || r.DownloadURL == nil { 14842 return "" 14843 } 14844 return *r.DownloadURL 14845 } 14846 14847 // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 14848 func (r *RepositoryLicense) GetEncoding() string { 14849 if r == nil || r.Encoding == nil { 14850 return "" 14851 } 14852 return *r.Encoding 14853 } 14854 14855 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 14856 func (r *RepositoryLicense) GetGitURL() string { 14857 if r == nil || r.GitURL == nil { 14858 return "" 14859 } 14860 return *r.GitURL 14861 } 14862 14863 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 14864 func (r *RepositoryLicense) GetHTMLURL() string { 14865 if r == nil || r.HTMLURL == nil { 14866 return "" 14867 } 14868 return *r.HTMLURL 14869 } 14870 14871 // GetLicense returns the License field. 14872 func (r *RepositoryLicense) GetLicense() *License { 14873 if r == nil { 14874 return nil 14875 } 14876 return r.License 14877 } 14878 14879 // GetName returns the Name field if it's non-nil, zero value otherwise. 14880 func (r *RepositoryLicense) GetName() string { 14881 if r == nil || r.Name == nil { 14882 return "" 14883 } 14884 return *r.Name 14885 } 14886 14887 // GetPath returns the Path field if it's non-nil, zero value otherwise. 14888 func (r *RepositoryLicense) GetPath() string { 14889 if r == nil || r.Path == nil { 14890 return "" 14891 } 14892 return *r.Path 14893 } 14894 14895 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 14896 func (r *RepositoryLicense) GetSHA() string { 14897 if r == nil || r.SHA == nil { 14898 return "" 14899 } 14900 return *r.SHA 14901 } 14902 14903 // GetSize returns the Size field if it's non-nil, zero value otherwise. 14904 func (r *RepositoryLicense) GetSize() int { 14905 if r == nil || r.Size == nil { 14906 return 0 14907 } 14908 return *r.Size 14909 } 14910 14911 // GetType returns the Type field if it's non-nil, zero value otherwise. 14912 func (r *RepositoryLicense) GetType() string { 14913 if r == nil || r.Type == nil { 14914 return "" 14915 } 14916 return *r.Type 14917 } 14918 14919 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14920 func (r *RepositoryLicense) GetURL() string { 14921 if r == nil || r.URL == nil { 14922 return "" 14923 } 14924 return *r.URL 14925 } 14926 14927 // GetBase returns the Base field if it's non-nil, zero value otherwise. 14928 func (r *RepositoryMergeRequest) GetBase() string { 14929 if r == nil || r.Base == nil { 14930 return "" 14931 } 14932 return *r.Base 14933 } 14934 14935 // GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. 14936 func (r *RepositoryMergeRequest) GetCommitMessage() string { 14937 if r == nil || r.CommitMessage == nil { 14938 return "" 14939 } 14940 return *r.CommitMessage 14941 } 14942 14943 // GetHead returns the Head field if it's non-nil, zero value otherwise. 14944 func (r *RepositoryMergeRequest) GetHead() string { 14945 if r == nil || r.Head == nil { 14946 return "" 14947 } 14948 return *r.Head 14949 } 14950 14951 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 14952 func (r *RepositoryPermissionLevel) GetPermission() string { 14953 if r == nil || r.Permission == nil { 14954 return "" 14955 } 14956 return *r.Permission 14957 } 14958 14959 // GetUser returns the User field. 14960 func (r *RepositoryPermissionLevel) GetUser() *User { 14961 if r == nil { 14962 return nil 14963 } 14964 return r.User 14965 } 14966 14967 // GetAssetsURL returns the AssetsURL field if it's non-nil, zero value otherwise. 14968 func (r *RepositoryRelease) GetAssetsURL() string { 14969 if r == nil || r.AssetsURL == nil { 14970 return "" 14971 } 14972 return *r.AssetsURL 14973 } 14974 14975 // GetAuthor returns the Author field. 14976 func (r *RepositoryRelease) GetAuthor() *User { 14977 if r == nil { 14978 return nil 14979 } 14980 return r.Author 14981 } 14982 14983 // GetBody returns the Body field if it's non-nil, zero value otherwise. 14984 func (r *RepositoryRelease) GetBody() string { 14985 if r == nil || r.Body == nil { 14986 return "" 14987 } 14988 return *r.Body 14989 } 14990 14991 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14992 func (r *RepositoryRelease) GetCreatedAt() Timestamp { 14993 if r == nil || r.CreatedAt == nil { 14994 return Timestamp{} 14995 } 14996 return *r.CreatedAt 14997 } 14998 14999 // GetDiscussionCategoryName returns the DiscussionCategoryName field if it's non-nil, zero value otherwise. 15000 func (r *RepositoryRelease) GetDiscussionCategoryName() string { 15001 if r == nil || r.DiscussionCategoryName == nil { 15002 return "" 15003 } 15004 return *r.DiscussionCategoryName 15005 } 15006 15007 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 15008 func (r *RepositoryRelease) GetDraft() bool { 15009 if r == nil || r.Draft == nil { 15010 return false 15011 } 15012 return *r.Draft 15013 } 15014 15015 // GetGenerateReleaseNotes returns the GenerateReleaseNotes field if it's non-nil, zero value otherwise. 15016 func (r *RepositoryRelease) GetGenerateReleaseNotes() bool { 15017 if r == nil || r.GenerateReleaseNotes == nil { 15018 return false 15019 } 15020 return *r.GenerateReleaseNotes 15021 } 15022 15023 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 15024 func (r *RepositoryRelease) GetHTMLURL() string { 15025 if r == nil || r.HTMLURL == nil { 15026 return "" 15027 } 15028 return *r.HTMLURL 15029 } 15030 15031 // GetID returns the ID field if it's non-nil, zero value otherwise. 15032 func (r *RepositoryRelease) GetID() int64 { 15033 if r == nil || r.ID == nil { 15034 return 0 15035 } 15036 return *r.ID 15037 } 15038 15039 // GetName returns the Name field if it's non-nil, zero value otherwise. 15040 func (r *RepositoryRelease) GetName() string { 15041 if r == nil || r.Name == nil { 15042 return "" 15043 } 15044 return *r.Name 15045 } 15046 15047 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15048 func (r *RepositoryRelease) GetNodeID() string { 15049 if r == nil || r.NodeID == nil { 15050 return "" 15051 } 15052 return *r.NodeID 15053 } 15054 15055 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 15056 func (r *RepositoryRelease) GetPrerelease() bool { 15057 if r == nil || r.Prerelease == nil { 15058 return false 15059 } 15060 return *r.Prerelease 15061 } 15062 15063 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 15064 func (r *RepositoryRelease) GetPublishedAt() Timestamp { 15065 if r == nil || r.PublishedAt == nil { 15066 return Timestamp{} 15067 } 15068 return *r.PublishedAt 15069 } 15070 15071 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 15072 func (r *RepositoryRelease) GetTagName() string { 15073 if r == nil || r.TagName == nil { 15074 return "" 15075 } 15076 return *r.TagName 15077 } 15078 15079 // GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 15080 func (r *RepositoryRelease) GetTarballURL() string { 15081 if r == nil || r.TarballURL == nil { 15082 return "" 15083 } 15084 return *r.TarballURL 15085 } 15086 15087 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 15088 func (r *RepositoryRelease) GetTargetCommitish() string { 15089 if r == nil || r.TargetCommitish == nil { 15090 return "" 15091 } 15092 return *r.TargetCommitish 15093 } 15094 15095 // GetUploadURL returns the UploadURL field if it's non-nil, zero value otherwise. 15096 func (r *RepositoryRelease) GetUploadURL() string { 15097 if r == nil || r.UploadURL == nil { 15098 return "" 15099 } 15100 return *r.UploadURL 15101 } 15102 15103 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15104 func (r *RepositoryRelease) GetURL() string { 15105 if r == nil || r.URL == nil { 15106 return "" 15107 } 15108 return *r.URL 15109 } 15110 15111 // GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 15112 func (r *RepositoryRelease) GetZipballURL() string { 15113 if r == nil || r.ZipballURL == nil { 15114 return "" 15115 } 15116 return *r.ZipballURL 15117 } 15118 15119 // GetCommit returns the Commit field. 15120 func (r *RepositoryTag) GetCommit() *Commit { 15121 if r == nil { 15122 return nil 15123 } 15124 return r.Commit 15125 } 15126 15127 // GetName returns the Name field if it's non-nil, zero value otherwise. 15128 func (r *RepositoryTag) GetName() string { 15129 if r == nil || r.Name == nil { 15130 return "" 15131 } 15132 return *r.Name 15133 } 15134 15135 // GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 15136 func (r *RepositoryTag) GetTarballURL() string { 15137 if r == nil || r.TarballURL == nil { 15138 return "" 15139 } 15140 return *r.TarballURL 15141 } 15142 15143 // GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 15144 func (r *RepositoryTag) GetZipballURL() string { 15145 if r == nil || r.ZipballURL == nil { 15146 return "" 15147 } 15148 return *r.ZipballURL 15149 } 15150 15151 // GetAffectedPackageName returns the AffectedPackageName field if it's non-nil, zero value otherwise. 15152 func (r *RepositoryVulnerabilityAlert) GetAffectedPackageName() string { 15153 if r == nil || r.AffectedPackageName == nil { 15154 return "" 15155 } 15156 return *r.AffectedPackageName 15157 } 15158 15159 // GetAffectedRange returns the AffectedRange field if it's non-nil, zero value otherwise. 15160 func (r *RepositoryVulnerabilityAlert) GetAffectedRange() string { 15161 if r == nil || r.AffectedRange == nil { 15162 return "" 15163 } 15164 return *r.AffectedRange 15165 } 15166 15167 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 15168 func (r *RepositoryVulnerabilityAlert) GetCreatedAt() Timestamp { 15169 if r == nil || r.CreatedAt == nil { 15170 return Timestamp{} 15171 } 15172 return *r.CreatedAt 15173 } 15174 15175 // GetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise. 15176 func (r *RepositoryVulnerabilityAlert) GetDismissedAt() Timestamp { 15177 if r == nil || r.DismissedAt == nil { 15178 return Timestamp{} 15179 } 15180 return *r.DismissedAt 15181 } 15182 15183 // GetDismisser returns the Dismisser field. 15184 func (r *RepositoryVulnerabilityAlert) GetDismisser() *User { 15185 if r == nil { 15186 return nil 15187 } 15188 return r.Dismisser 15189 } 15190 15191 // GetDismissReason returns the DismissReason field if it's non-nil, zero value otherwise. 15192 func (r *RepositoryVulnerabilityAlert) GetDismissReason() string { 15193 if r == nil || r.DismissReason == nil { 15194 return "" 15195 } 15196 return *r.DismissReason 15197 } 15198 15199 // GetExternalIdentifier returns the ExternalIdentifier field if it's non-nil, zero value otherwise. 15200 func (r *RepositoryVulnerabilityAlert) GetExternalIdentifier() string { 15201 if r == nil || r.ExternalIdentifier == nil { 15202 return "" 15203 } 15204 return *r.ExternalIdentifier 15205 } 15206 15207 // GetExternalReference returns the ExternalReference field if it's non-nil, zero value otherwise. 15208 func (r *RepositoryVulnerabilityAlert) GetExternalReference() string { 15209 if r == nil || r.ExternalReference == nil { 15210 return "" 15211 } 15212 return *r.ExternalReference 15213 } 15214 15215 // GetFixedIn returns the FixedIn field if it's non-nil, zero value otherwise. 15216 func (r *RepositoryVulnerabilityAlert) GetFixedIn() string { 15217 if r == nil || r.FixedIn == nil { 15218 return "" 15219 } 15220 return *r.FixedIn 15221 } 15222 15223 // GetGitHubSecurityAdvisoryID returns the GitHubSecurityAdvisoryID field if it's non-nil, zero value otherwise. 15224 func (r *RepositoryVulnerabilityAlert) GetGitHubSecurityAdvisoryID() string { 15225 if r == nil || r.GitHubSecurityAdvisoryID == nil { 15226 return "" 15227 } 15228 return *r.GitHubSecurityAdvisoryID 15229 } 15230 15231 // GetID returns the ID field if it's non-nil, zero value otherwise. 15232 func (r *RepositoryVulnerabilityAlert) GetID() int64 { 15233 if r == nil || r.ID == nil { 15234 return 0 15235 } 15236 return *r.ID 15237 } 15238 15239 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 15240 func (r *RepositoryVulnerabilityAlert) GetSeverity() string { 15241 if r == nil || r.Severity == nil { 15242 return "" 15243 } 15244 return *r.Severity 15245 } 15246 15247 // GetAction returns the Action field if it's non-nil, zero value otherwise. 15248 func (r *RepositoryVulnerabilityAlertEvent) GetAction() string { 15249 if r == nil || r.Action == nil { 15250 return "" 15251 } 15252 return *r.Action 15253 } 15254 15255 // GetAlert returns the Alert field. 15256 func (r *RepositoryVulnerabilityAlertEvent) GetAlert() *RepositoryVulnerabilityAlert { 15257 if r == nil { 15258 return nil 15259 } 15260 return r.Alert 15261 } 15262 15263 // GetInstallation returns the Installation field. 15264 func (r *RepositoryVulnerabilityAlertEvent) GetInstallation() *Installation { 15265 if r == nil { 15266 return nil 15267 } 15268 return r.Installation 15269 } 15270 15271 // GetRepository returns the Repository field. 15272 func (r *RepositoryVulnerabilityAlertEvent) GetRepository() *Repository { 15273 if r == nil { 15274 return nil 15275 } 15276 return r.Repository 15277 } 15278 15279 // GetForkRepos returns the ForkRepos field if it's non-nil, zero value otherwise. 15280 func (r *RepoStats) GetForkRepos() int { 15281 if r == nil || r.ForkRepos == nil { 15282 return 0 15283 } 15284 return *r.ForkRepos 15285 } 15286 15287 // GetOrgRepos returns the OrgRepos field if it's non-nil, zero value otherwise. 15288 func (r *RepoStats) GetOrgRepos() int { 15289 if r == nil || r.OrgRepos == nil { 15290 return 0 15291 } 15292 return *r.OrgRepos 15293 } 15294 15295 // GetRootRepos returns the RootRepos field if it's non-nil, zero value otherwise. 15296 func (r *RepoStats) GetRootRepos() int { 15297 if r == nil || r.RootRepos == nil { 15298 return 0 15299 } 15300 return *r.RootRepos 15301 } 15302 15303 // GetTotalPushes returns the TotalPushes field if it's non-nil, zero value otherwise. 15304 func (r *RepoStats) GetTotalPushes() int { 15305 if r == nil || r.TotalPushes == nil { 15306 return 0 15307 } 15308 return *r.TotalPushes 15309 } 15310 15311 // GetTotalRepos returns the TotalRepos field if it's non-nil, zero value otherwise. 15312 func (r *RepoStats) GetTotalRepos() int { 15313 if r == nil || r.TotalRepos == nil { 15314 return 0 15315 } 15316 return *r.TotalRepos 15317 } 15318 15319 // GetTotalWikis returns the TotalWikis field if it's non-nil, zero value otherwise. 15320 func (r *RepoStats) GetTotalWikis() int { 15321 if r == nil || r.TotalWikis == nil { 15322 return 0 15323 } 15324 return *r.TotalWikis 15325 } 15326 15327 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 15328 func (r *RepoStatus) GetAvatarURL() string { 15329 if r == nil || r.AvatarURL == nil { 15330 return "" 15331 } 15332 return *r.AvatarURL 15333 } 15334 15335 // GetContext returns the Context field if it's non-nil, zero value otherwise. 15336 func (r *RepoStatus) GetContext() string { 15337 if r == nil || r.Context == nil { 15338 return "" 15339 } 15340 return *r.Context 15341 } 15342 15343 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 15344 func (r *RepoStatus) GetCreatedAt() time.Time { 15345 if r == nil || r.CreatedAt == nil { 15346 return time.Time{} 15347 } 15348 return *r.CreatedAt 15349 } 15350 15351 // GetCreator returns the Creator field. 15352 func (r *RepoStatus) GetCreator() *User { 15353 if r == nil { 15354 return nil 15355 } 15356 return r.Creator 15357 } 15358 15359 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 15360 func (r *RepoStatus) GetDescription() string { 15361 if r == nil || r.Description == nil { 15362 return "" 15363 } 15364 return *r.Description 15365 } 15366 15367 // GetID returns the ID field if it's non-nil, zero value otherwise. 15368 func (r *RepoStatus) GetID() int64 { 15369 if r == nil || r.ID == nil { 15370 return 0 15371 } 15372 return *r.ID 15373 } 15374 15375 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15376 func (r *RepoStatus) GetNodeID() string { 15377 if r == nil || r.NodeID == nil { 15378 return "" 15379 } 15380 return *r.NodeID 15381 } 15382 15383 // GetState returns the State field if it's non-nil, zero value otherwise. 15384 func (r *RepoStatus) GetState() string { 15385 if r == nil || r.State == nil { 15386 return "" 15387 } 15388 return *r.State 15389 } 15390 15391 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 15392 func (r *RepoStatus) GetTargetURL() string { 15393 if r == nil || r.TargetURL == nil { 15394 return "" 15395 } 15396 return *r.TargetURL 15397 } 15398 15399 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 15400 func (r *RepoStatus) GetUpdatedAt() time.Time { 15401 if r == nil || r.UpdatedAt == nil { 15402 return time.Time{} 15403 } 15404 return *r.UpdatedAt 15405 } 15406 15407 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15408 func (r *RepoStatus) GetURL() string { 15409 if r == nil || r.URL == nil { 15410 return "" 15411 } 15412 return *r.URL 15413 } 15414 15415 // GetType returns the Type field if it's non-nil, zero value otherwise. 15416 func (r *RequiredReviewer) GetType() string { 15417 if r == nil || r.Type == nil { 15418 return "" 15419 } 15420 return *r.Type 15421 } 15422 15423 // GetStrict returns the Strict field if it's non-nil, zero value otherwise. 15424 func (r *RequiredStatusChecksRequest) GetStrict() bool { 15425 if r == nil || r.Strict == nil { 15426 return false 15427 } 15428 return *r.Strict 15429 } 15430 15431 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15432 func (r *ReviewersRequest) GetNodeID() string { 15433 if r == nil || r.NodeID == nil { 15434 return "" 15435 } 15436 return *r.NodeID 15437 } 15438 15439 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 15440 func (r *Rule) GetDescription() string { 15441 if r == nil || r.Description == nil { 15442 return "" 15443 } 15444 return *r.Description 15445 } 15446 15447 // GetFullDescription returns the FullDescription field if it's non-nil, zero value otherwise. 15448 func (r *Rule) GetFullDescription() string { 15449 if r == nil || r.FullDescription == nil { 15450 return "" 15451 } 15452 return *r.FullDescription 15453 } 15454 15455 // GetHelp returns the Help field if it's non-nil, zero value otherwise. 15456 func (r *Rule) GetHelp() string { 15457 if r == nil || r.Help == nil { 15458 return "" 15459 } 15460 return *r.Help 15461 } 15462 15463 // GetID returns the ID field if it's non-nil, zero value otherwise. 15464 func (r *Rule) GetID() string { 15465 if r == nil || r.ID == nil { 15466 return "" 15467 } 15468 return *r.ID 15469 } 15470 15471 // GetName returns the Name field if it's non-nil, zero value otherwise. 15472 func (r *Rule) GetName() string { 15473 if r == nil || r.Name == nil { 15474 return "" 15475 } 15476 return *r.Name 15477 } 15478 15479 // GetSecuritySeverityLevel returns the SecuritySeverityLevel field if it's non-nil, zero value otherwise. 15480 func (r *Rule) GetSecuritySeverityLevel() string { 15481 if r == nil || r.SecuritySeverityLevel == nil { 15482 return "" 15483 } 15484 return *r.SecuritySeverityLevel 15485 } 15486 15487 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 15488 func (r *Rule) GetSeverity() string { 15489 if r == nil || r.Severity == nil { 15490 return "" 15491 } 15492 return *r.Severity 15493 } 15494 15495 // GetBusy returns the Busy field if it's non-nil, zero value otherwise. 15496 func (r *Runner) GetBusy() bool { 15497 if r == nil || r.Busy == nil { 15498 return false 15499 } 15500 return *r.Busy 15501 } 15502 15503 // GetID returns the ID field if it's non-nil, zero value otherwise. 15504 func (r *Runner) GetID() int64 { 15505 if r == nil || r.ID == nil { 15506 return 0 15507 } 15508 return *r.ID 15509 } 15510 15511 // GetName returns the Name field if it's non-nil, zero value otherwise. 15512 func (r *Runner) GetName() string { 15513 if r == nil || r.Name == nil { 15514 return "" 15515 } 15516 return *r.Name 15517 } 15518 15519 // GetOS returns the OS field if it's non-nil, zero value otherwise. 15520 func (r *Runner) GetOS() string { 15521 if r == nil || r.OS == nil { 15522 return "" 15523 } 15524 return *r.OS 15525 } 15526 15527 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 15528 func (r *Runner) GetStatus() string { 15529 if r == nil || r.Status == nil { 15530 return "" 15531 } 15532 return *r.Status 15533 } 15534 15535 // GetArchitecture returns the Architecture field if it's non-nil, zero value otherwise. 15536 func (r *RunnerApplicationDownload) GetArchitecture() string { 15537 if r == nil || r.Architecture == nil { 15538 return "" 15539 } 15540 return *r.Architecture 15541 } 15542 15543 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 15544 func (r *RunnerApplicationDownload) GetDownloadURL() string { 15545 if r == nil || r.DownloadURL == nil { 15546 return "" 15547 } 15548 return *r.DownloadURL 15549 } 15550 15551 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 15552 func (r *RunnerApplicationDownload) GetFilename() string { 15553 if r == nil || r.Filename == nil { 15554 return "" 15555 } 15556 return *r.Filename 15557 } 15558 15559 // GetOS returns the OS field if it's non-nil, zero value otherwise. 15560 func (r *RunnerApplicationDownload) GetOS() string { 15561 if r == nil || r.OS == nil { 15562 return "" 15563 } 15564 return *r.OS 15565 } 15566 15567 // GetSHA256Checksum returns the SHA256Checksum field if it's non-nil, zero value otherwise. 15568 func (r *RunnerApplicationDownload) GetSHA256Checksum() string { 15569 if r == nil || r.SHA256Checksum == nil { 15570 return "" 15571 } 15572 return *r.SHA256Checksum 15573 } 15574 15575 // GetTempDownloadToken returns the TempDownloadToken field if it's non-nil, zero value otherwise. 15576 func (r *RunnerApplicationDownload) GetTempDownloadToken() string { 15577 if r == nil || r.TempDownloadToken == nil { 15578 return "" 15579 } 15580 return *r.TempDownloadToken 15581 } 15582 15583 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 15584 func (r *RunnerGroup) GetAllowsPublicRepositories() bool { 15585 if r == nil || r.AllowsPublicRepositories == nil { 15586 return false 15587 } 15588 return *r.AllowsPublicRepositories 15589 } 15590 15591 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 15592 func (r *RunnerGroup) GetDefault() bool { 15593 if r == nil || r.Default == nil { 15594 return false 15595 } 15596 return *r.Default 15597 } 15598 15599 // GetID returns the ID field if it's non-nil, zero value otherwise. 15600 func (r *RunnerGroup) GetID() int64 { 15601 if r == nil || r.ID == nil { 15602 return 0 15603 } 15604 return *r.ID 15605 } 15606 15607 // GetInherited returns the Inherited field if it's non-nil, zero value otherwise. 15608 func (r *RunnerGroup) GetInherited() bool { 15609 if r == nil || r.Inherited == nil { 15610 return false 15611 } 15612 return *r.Inherited 15613 } 15614 15615 // GetName returns the Name field if it's non-nil, zero value otherwise. 15616 func (r *RunnerGroup) GetName() string { 15617 if r == nil || r.Name == nil { 15618 return "" 15619 } 15620 return *r.Name 15621 } 15622 15623 // GetRunnersURL returns the RunnersURL field if it's non-nil, zero value otherwise. 15624 func (r *RunnerGroup) GetRunnersURL() string { 15625 if r == nil || r.RunnersURL == nil { 15626 return "" 15627 } 15628 return *r.RunnersURL 15629 } 15630 15631 // GetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise. 15632 func (r *RunnerGroup) GetSelectedRepositoriesURL() string { 15633 if r == nil || r.SelectedRepositoriesURL == nil { 15634 return "" 15635 } 15636 return *r.SelectedRepositoriesURL 15637 } 15638 15639 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 15640 func (r *RunnerGroup) GetVisibility() string { 15641 if r == nil || r.Visibility == nil { 15642 return "" 15643 } 15644 return *r.Visibility 15645 } 15646 15647 // GetID returns the ID field if it's non-nil, zero value otherwise. 15648 func (r *RunnerLabels) GetID() int64 { 15649 if r == nil || r.ID == nil { 15650 return 0 15651 } 15652 return *r.ID 15653 } 15654 15655 // GetName returns the Name field if it's non-nil, zero value otherwise. 15656 func (r *RunnerLabels) GetName() string { 15657 if r == nil || r.Name == nil { 15658 return "" 15659 } 15660 return *r.Name 15661 } 15662 15663 // GetType returns the Type field if it's non-nil, zero value otherwise. 15664 func (r *RunnerLabels) GetType() string { 15665 if r == nil || r.Type == nil { 15666 return "" 15667 } 15668 return *r.Type 15669 } 15670 15671 // GetCheckoutURI returns the CheckoutURI field if it's non-nil, zero value otherwise. 15672 func (s *SarifAnalysis) GetCheckoutURI() string { 15673 if s == nil || s.CheckoutURI == nil { 15674 return "" 15675 } 15676 return *s.CheckoutURI 15677 } 15678 15679 // GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. 15680 func (s *SarifAnalysis) GetCommitSHA() string { 15681 if s == nil || s.CommitSHA == nil { 15682 return "" 15683 } 15684 return *s.CommitSHA 15685 } 15686 15687 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 15688 func (s *SarifAnalysis) GetRef() string { 15689 if s == nil || s.Ref == nil { 15690 return "" 15691 } 15692 return *s.Ref 15693 } 15694 15695 // GetSarif returns the Sarif field if it's non-nil, zero value otherwise. 15696 func (s *SarifAnalysis) GetSarif() string { 15697 if s == nil || s.Sarif == nil { 15698 return "" 15699 } 15700 return *s.Sarif 15701 } 15702 15703 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 15704 func (s *SarifAnalysis) GetStartedAt() Timestamp { 15705 if s == nil || s.StartedAt == nil { 15706 return Timestamp{} 15707 } 15708 return *s.StartedAt 15709 } 15710 15711 // GetToolName returns the ToolName field if it's non-nil, zero value otherwise. 15712 func (s *SarifAnalysis) GetToolName() string { 15713 if s == nil || s.ToolName == nil { 15714 return "" 15715 } 15716 return *s.ToolName 15717 } 15718 15719 // GetID returns the ID field if it's non-nil, zero value otherwise. 15720 func (s *SarifID) GetID() string { 15721 if s == nil || s.ID == nil { 15722 return "" 15723 } 15724 return *s.ID 15725 } 15726 15727 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15728 func (s *SarifID) GetURL() string { 15729 if s == nil || s.URL == nil { 15730 return "" 15731 } 15732 return *s.URL 15733 } 15734 15735 // GetAnalysisKey returns the AnalysisKey field if it's non-nil, zero value otherwise. 15736 func (s *ScanningAnalysis) GetAnalysisKey() string { 15737 if s == nil || s.AnalysisKey == nil { 15738 return "" 15739 } 15740 return *s.AnalysisKey 15741 } 15742 15743 // GetCategory returns the Category field if it's non-nil, zero value otherwise. 15744 func (s *ScanningAnalysis) GetCategory() string { 15745 if s == nil || s.Category == nil { 15746 return "" 15747 } 15748 return *s.Category 15749 } 15750 15751 // GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. 15752 func (s *ScanningAnalysis) GetCommitSHA() string { 15753 if s == nil || s.CommitSHA == nil { 15754 return "" 15755 } 15756 return *s.CommitSHA 15757 } 15758 15759 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 15760 func (s *ScanningAnalysis) GetCreatedAt() Timestamp { 15761 if s == nil || s.CreatedAt == nil { 15762 return Timestamp{} 15763 } 15764 return *s.CreatedAt 15765 } 15766 15767 // GetDeletable returns the Deletable field if it's non-nil, zero value otherwise. 15768 func (s *ScanningAnalysis) GetDeletable() bool { 15769 if s == nil || s.Deletable == nil { 15770 return false 15771 } 15772 return *s.Deletable 15773 } 15774 15775 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 15776 func (s *ScanningAnalysis) GetEnvironment() string { 15777 if s == nil || s.Environment == nil { 15778 return "" 15779 } 15780 return *s.Environment 15781 } 15782 15783 // GetError returns the Error field if it's non-nil, zero value otherwise. 15784 func (s *ScanningAnalysis) GetError() string { 15785 if s == nil || s.Error == nil { 15786 return "" 15787 } 15788 return *s.Error 15789 } 15790 15791 // GetID returns the ID field if it's non-nil, zero value otherwise. 15792 func (s *ScanningAnalysis) GetID() int64 { 15793 if s == nil || s.ID == nil { 15794 return 0 15795 } 15796 return *s.ID 15797 } 15798 15799 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 15800 func (s *ScanningAnalysis) GetRef() string { 15801 if s == nil || s.Ref == nil { 15802 return "" 15803 } 15804 return *s.Ref 15805 } 15806 15807 // GetResultsCount returns the ResultsCount field if it's non-nil, zero value otherwise. 15808 func (s *ScanningAnalysis) GetResultsCount() int { 15809 if s == nil || s.ResultsCount == nil { 15810 return 0 15811 } 15812 return *s.ResultsCount 15813 } 15814 15815 // GetRulesCount returns the RulesCount field if it's non-nil, zero value otherwise. 15816 func (s *ScanningAnalysis) GetRulesCount() int { 15817 if s == nil || s.RulesCount == nil { 15818 return 0 15819 } 15820 return *s.RulesCount 15821 } 15822 15823 // GetSarifID returns the SarifID field if it's non-nil, zero value otherwise. 15824 func (s *ScanningAnalysis) GetSarifID() string { 15825 if s == nil || s.SarifID == nil { 15826 return "" 15827 } 15828 return *s.SarifID 15829 } 15830 15831 // GetTool returns the Tool field. 15832 func (s *ScanningAnalysis) GetTool() *Tool { 15833 if s == nil { 15834 return nil 15835 } 15836 return s.Tool 15837 } 15838 15839 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15840 func (s *ScanningAnalysis) GetURL() string { 15841 if s == nil || s.URL == nil { 15842 return "" 15843 } 15844 return *s.URL 15845 } 15846 15847 // GetWarning returns the Warning field if it's non-nil, zero value otherwise. 15848 func (s *ScanningAnalysis) GetWarning() string { 15849 if s == nil || s.Warning == nil { 15850 return "" 15851 } 15852 return *s.Warning 15853 } 15854 15855 // GetActive returns the Active field if it's non-nil, zero value otherwise. 15856 func (s *SCIMUserAttributes) GetActive() bool { 15857 if s == nil || s.Active == nil { 15858 return false 15859 } 15860 return *s.Active 15861 } 15862 15863 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 15864 func (s *SCIMUserAttributes) GetDisplayName() string { 15865 if s == nil || s.DisplayName == nil { 15866 return "" 15867 } 15868 return *s.DisplayName 15869 } 15870 15871 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 15872 func (s *SCIMUserAttributes) GetExternalID() string { 15873 if s == nil || s.ExternalID == nil { 15874 return "" 15875 } 15876 return *s.ExternalID 15877 } 15878 15879 // GetPrimary returns the Primary field if it's non-nil, zero value otherwise. 15880 func (s *SCIMUserEmail) GetPrimary() bool { 15881 if s == nil || s.Primary == nil { 15882 return false 15883 } 15884 return *s.Primary 15885 } 15886 15887 // GetType returns the Type field if it's non-nil, zero value otherwise. 15888 func (s *SCIMUserEmail) GetType() string { 15889 if s == nil || s.Type == nil { 15890 return "" 15891 } 15892 return *s.Type 15893 } 15894 15895 // GetFormatted returns the Formatted field if it's non-nil, zero value otherwise. 15896 func (s *SCIMUserName) GetFormatted() string { 15897 if s == nil || s.Formatted == nil { 15898 return "" 15899 } 15900 return *s.Formatted 15901 } 15902 15903 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 15904 func (s *SecretScanning) GetStatus() string { 15905 if s == nil || s.Status == nil { 15906 return "" 15907 } 15908 return *s.Status 15909 } 15910 15911 // GetAdvancedSecurity returns the AdvancedSecurity field. 15912 func (s *SecurityAndAnalysis) GetAdvancedSecurity() *AdvancedSecurity { 15913 if s == nil { 15914 return nil 15915 } 15916 return s.AdvancedSecurity 15917 } 15918 15919 // GetSecretScanning returns the SecretScanning field. 15920 func (s *SecurityAndAnalysis) GetSecretScanning() *SecretScanning { 15921 if s == nil { 15922 return nil 15923 } 15924 return s.SecretScanning 15925 } 15926 15927 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 15928 func (s *SelectedReposList) GetTotalCount() int { 15929 if s == nil || s.TotalCount == nil { 15930 return 0 15931 } 15932 return *s.TotalCount 15933 } 15934 15935 // GetName returns the Name field if it's non-nil, zero value otherwise. 15936 func (s *ServiceHook) GetName() string { 15937 if s == nil || s.Name == nil { 15938 return "" 15939 } 15940 return *s.Name 15941 } 15942 15943 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 15944 func (s *SignaturesProtectedBranch) GetEnabled() bool { 15945 if s == nil || s.Enabled == nil { 15946 return false 15947 } 15948 return *s.Enabled 15949 } 15950 15951 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15952 func (s *SignaturesProtectedBranch) GetURL() string { 15953 if s == nil || s.URL == nil { 15954 return "" 15955 } 15956 return *s.URL 15957 } 15958 15959 // GetPayload returns the Payload field if it's non-nil, zero value otherwise. 15960 func (s *SignatureVerification) GetPayload() string { 15961 if s == nil || s.Payload == nil { 15962 return "" 15963 } 15964 return *s.Payload 15965 } 15966 15967 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 15968 func (s *SignatureVerification) GetReason() string { 15969 if s == nil || s.Reason == nil { 15970 return "" 15971 } 15972 return *s.Reason 15973 } 15974 15975 // GetSignature returns the Signature field if it's non-nil, zero value otherwise. 15976 func (s *SignatureVerification) GetSignature() string { 15977 if s == nil || s.Signature == nil { 15978 return "" 15979 } 15980 return *s.Signature 15981 } 15982 15983 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 15984 func (s *SignatureVerification) GetVerified() bool { 15985 if s == nil || s.Verified == nil { 15986 return false 15987 } 15988 return *s.Verified 15989 } 15990 15991 // GetActor returns the Actor field. 15992 func (s *Source) GetActor() *User { 15993 if s == nil { 15994 return nil 15995 } 15996 return s.Actor 15997 } 15998 15999 // GetID returns the ID field if it's non-nil, zero value otherwise. 16000 func (s *Source) GetID() int64 { 16001 if s == nil || s.ID == nil { 16002 return 0 16003 } 16004 return *s.ID 16005 } 16006 16007 // GetIssue returns the Issue field. 16008 func (s *Source) GetIssue() *Issue { 16009 if s == nil { 16010 return nil 16011 } 16012 return s.Issue 16013 } 16014 16015 // GetType returns the Type field if it's non-nil, zero value otherwise. 16016 func (s *Source) GetType() string { 16017 if s == nil || s.Type == nil { 16018 return "" 16019 } 16020 return *s.Type 16021 } 16022 16023 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16024 func (s *Source) GetURL() string { 16025 if s == nil || s.URL == nil { 16026 return "" 16027 } 16028 return *s.URL 16029 } 16030 16031 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 16032 func (s *SourceImportAuthor) GetEmail() string { 16033 if s == nil || s.Email == nil { 16034 return "" 16035 } 16036 return *s.Email 16037 } 16038 16039 // GetID returns the ID field if it's non-nil, zero value otherwise. 16040 func (s *SourceImportAuthor) GetID() int64 { 16041 if s == nil || s.ID == nil { 16042 return 0 16043 } 16044 return *s.ID 16045 } 16046 16047 // GetImportURL returns the ImportURL field if it's non-nil, zero value otherwise. 16048 func (s *SourceImportAuthor) GetImportURL() string { 16049 if s == nil || s.ImportURL == nil { 16050 return "" 16051 } 16052 return *s.ImportURL 16053 } 16054 16055 // GetName returns the Name field if it's non-nil, zero value otherwise. 16056 func (s *SourceImportAuthor) GetName() string { 16057 if s == nil || s.Name == nil { 16058 return "" 16059 } 16060 return *s.Name 16061 } 16062 16063 // GetRemoteID returns the RemoteID field if it's non-nil, zero value otherwise. 16064 func (s *SourceImportAuthor) GetRemoteID() string { 16065 if s == nil || s.RemoteID == nil { 16066 return "" 16067 } 16068 return *s.RemoteID 16069 } 16070 16071 // GetRemoteName returns the RemoteName field if it's non-nil, zero value otherwise. 16072 func (s *SourceImportAuthor) GetRemoteName() string { 16073 if s == nil || s.RemoteName == nil { 16074 return "" 16075 } 16076 return *s.RemoteName 16077 } 16078 16079 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16080 func (s *SourceImportAuthor) GetURL() string { 16081 if s == nil || s.URL == nil { 16082 return "" 16083 } 16084 return *s.URL 16085 } 16086 16087 // GetAction returns the Action field if it's non-nil, zero value otherwise. 16088 func (s *StarEvent) GetAction() string { 16089 if s == nil || s.Action == nil { 16090 return "" 16091 } 16092 return *s.Action 16093 } 16094 16095 // GetInstallation returns the Installation field. 16096 func (s *StarEvent) GetInstallation() *Installation { 16097 if s == nil { 16098 return nil 16099 } 16100 return s.Installation 16101 } 16102 16103 // GetOrg returns the Org field. 16104 func (s *StarEvent) GetOrg() *Organization { 16105 if s == nil { 16106 return nil 16107 } 16108 return s.Org 16109 } 16110 16111 // GetRepo returns the Repo field. 16112 func (s *StarEvent) GetRepo() *Repository { 16113 if s == nil { 16114 return nil 16115 } 16116 return s.Repo 16117 } 16118 16119 // GetSender returns the Sender field. 16120 func (s *StarEvent) GetSender() *User { 16121 if s == nil { 16122 return nil 16123 } 16124 return s.Sender 16125 } 16126 16127 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 16128 func (s *StarEvent) GetStarredAt() Timestamp { 16129 if s == nil || s.StarredAt == nil { 16130 return Timestamp{} 16131 } 16132 return *s.StarredAt 16133 } 16134 16135 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 16136 func (s *Stargazer) GetStarredAt() Timestamp { 16137 if s == nil || s.StarredAt == nil { 16138 return Timestamp{} 16139 } 16140 return *s.StarredAt 16141 } 16142 16143 // GetUser returns the User field. 16144 func (s *Stargazer) GetUser() *User { 16145 if s == nil { 16146 return nil 16147 } 16148 return s.User 16149 } 16150 16151 // GetRepository returns the Repository field. 16152 func (s *StarredRepository) GetRepository() *Repository { 16153 if s == nil { 16154 return nil 16155 } 16156 return s.Repository 16157 } 16158 16159 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 16160 func (s *StarredRepository) GetStarredAt() Timestamp { 16161 if s == nil || s.StarredAt == nil { 16162 return Timestamp{} 16163 } 16164 return *s.StarredAt 16165 } 16166 16167 // GetCommit returns the Commit field. 16168 func (s *StatusEvent) GetCommit() *RepositoryCommit { 16169 if s == nil { 16170 return nil 16171 } 16172 return s.Commit 16173 } 16174 16175 // GetContext returns the Context field if it's non-nil, zero value otherwise. 16176 func (s *StatusEvent) GetContext() string { 16177 if s == nil || s.Context == nil { 16178 return "" 16179 } 16180 return *s.Context 16181 } 16182 16183 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 16184 func (s *StatusEvent) GetCreatedAt() Timestamp { 16185 if s == nil || s.CreatedAt == nil { 16186 return Timestamp{} 16187 } 16188 return *s.CreatedAt 16189 } 16190 16191 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 16192 func (s *StatusEvent) GetDescription() string { 16193 if s == nil || s.Description == nil { 16194 return "" 16195 } 16196 return *s.Description 16197 } 16198 16199 // GetID returns the ID field if it's non-nil, zero value otherwise. 16200 func (s *StatusEvent) GetID() int64 { 16201 if s == nil || s.ID == nil { 16202 return 0 16203 } 16204 return *s.ID 16205 } 16206 16207 // GetInstallation returns the Installation field. 16208 func (s *StatusEvent) GetInstallation() *Installation { 16209 if s == nil { 16210 return nil 16211 } 16212 return s.Installation 16213 } 16214 16215 // GetName returns the Name field if it's non-nil, zero value otherwise. 16216 func (s *StatusEvent) GetName() string { 16217 if s == nil || s.Name == nil { 16218 return "" 16219 } 16220 return *s.Name 16221 } 16222 16223 // GetRepo returns the Repo field. 16224 func (s *StatusEvent) GetRepo() *Repository { 16225 if s == nil { 16226 return nil 16227 } 16228 return s.Repo 16229 } 16230 16231 // GetSender returns the Sender field. 16232 func (s *StatusEvent) GetSender() *User { 16233 if s == nil { 16234 return nil 16235 } 16236 return s.Sender 16237 } 16238 16239 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 16240 func (s *StatusEvent) GetSHA() string { 16241 if s == nil || s.SHA == nil { 16242 return "" 16243 } 16244 return *s.SHA 16245 } 16246 16247 // GetState returns the State field if it's non-nil, zero value otherwise. 16248 func (s *StatusEvent) GetState() string { 16249 if s == nil || s.State == nil { 16250 return "" 16251 } 16252 return *s.State 16253 } 16254 16255 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 16256 func (s *StatusEvent) GetTargetURL() string { 16257 if s == nil || s.TargetURL == nil { 16258 return "" 16259 } 16260 return *s.TargetURL 16261 } 16262 16263 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 16264 func (s *StatusEvent) GetUpdatedAt() Timestamp { 16265 if s == nil || s.UpdatedAt == nil { 16266 return Timestamp{} 16267 } 16268 return *s.UpdatedAt 16269 } 16270 16271 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 16272 func (s *Subscription) GetCreatedAt() Timestamp { 16273 if s == nil || s.CreatedAt == nil { 16274 return Timestamp{} 16275 } 16276 return *s.CreatedAt 16277 } 16278 16279 // GetIgnored returns the Ignored field if it's non-nil, zero value otherwise. 16280 func (s *Subscription) GetIgnored() bool { 16281 if s == nil || s.Ignored == nil { 16282 return false 16283 } 16284 return *s.Ignored 16285 } 16286 16287 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 16288 func (s *Subscription) GetReason() string { 16289 if s == nil || s.Reason == nil { 16290 return "" 16291 } 16292 return *s.Reason 16293 } 16294 16295 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 16296 func (s *Subscription) GetRepositoryURL() string { 16297 if s == nil || s.RepositoryURL == nil { 16298 return "" 16299 } 16300 return *s.RepositoryURL 16301 } 16302 16303 // GetSubscribed returns the Subscribed field if it's non-nil, zero value otherwise. 16304 func (s *Subscription) GetSubscribed() bool { 16305 if s == nil || s.Subscribed == nil { 16306 return false 16307 } 16308 return *s.Subscribed 16309 } 16310 16311 // GetThreadURL returns the ThreadURL field if it's non-nil, zero value otherwise. 16312 func (s *Subscription) GetThreadURL() string { 16313 if s == nil || s.ThreadURL == nil { 16314 return "" 16315 } 16316 return *s.ThreadURL 16317 } 16318 16319 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16320 func (s *Subscription) GetURL() string { 16321 if s == nil || s.URL == nil { 16322 return "" 16323 } 16324 return *s.URL 16325 } 16326 16327 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 16328 func (t *Tag) GetMessage() string { 16329 if t == nil || t.Message == nil { 16330 return "" 16331 } 16332 return *t.Message 16333 } 16334 16335 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 16336 func (t *Tag) GetNodeID() string { 16337 if t == nil || t.NodeID == nil { 16338 return "" 16339 } 16340 return *t.NodeID 16341 } 16342 16343 // GetObject returns the Object field. 16344 func (t *Tag) GetObject() *GitObject { 16345 if t == nil { 16346 return nil 16347 } 16348 return t.Object 16349 } 16350 16351 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 16352 func (t *Tag) GetSHA() string { 16353 if t == nil || t.SHA == nil { 16354 return "" 16355 } 16356 return *t.SHA 16357 } 16358 16359 // GetTag returns the Tag field if it's non-nil, zero value otherwise. 16360 func (t *Tag) GetTag() string { 16361 if t == nil || t.Tag == nil { 16362 return "" 16363 } 16364 return *t.Tag 16365 } 16366 16367 // GetTagger returns the Tagger field. 16368 func (t *Tag) GetTagger() *CommitAuthor { 16369 if t == nil { 16370 return nil 16371 } 16372 return t.Tagger 16373 } 16374 16375 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16376 func (t *Tag) GetURL() string { 16377 if t == nil || t.URL == nil { 16378 return "" 16379 } 16380 return *t.URL 16381 } 16382 16383 // GetVerification returns the Verification field. 16384 func (t *Tag) GetVerification() *SignatureVerification { 16385 if t == nil { 16386 return nil 16387 } 16388 return t.Verification 16389 } 16390 16391 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 16392 func (t *TaskStep) GetCompletedAt() Timestamp { 16393 if t == nil || t.CompletedAt == nil { 16394 return Timestamp{} 16395 } 16396 return *t.CompletedAt 16397 } 16398 16399 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 16400 func (t *TaskStep) GetConclusion() string { 16401 if t == nil || t.Conclusion == nil { 16402 return "" 16403 } 16404 return *t.Conclusion 16405 } 16406 16407 // GetName returns the Name field if it's non-nil, zero value otherwise. 16408 func (t *TaskStep) GetName() string { 16409 if t == nil || t.Name == nil { 16410 return "" 16411 } 16412 return *t.Name 16413 } 16414 16415 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 16416 func (t *TaskStep) GetNumber() int64 { 16417 if t == nil || t.Number == nil { 16418 return 0 16419 } 16420 return *t.Number 16421 } 16422 16423 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 16424 func (t *TaskStep) GetStartedAt() Timestamp { 16425 if t == nil || t.StartedAt == nil { 16426 return Timestamp{} 16427 } 16428 return *t.StartedAt 16429 } 16430 16431 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 16432 func (t *TaskStep) GetStatus() string { 16433 if t == nil || t.Status == nil { 16434 return "" 16435 } 16436 return *t.Status 16437 } 16438 16439 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 16440 func (t *Team) GetDescription() string { 16441 if t == nil || t.Description == nil { 16442 return "" 16443 } 16444 return *t.Description 16445 } 16446 16447 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 16448 func (t *Team) GetHTMLURL() string { 16449 if t == nil || t.HTMLURL == nil { 16450 return "" 16451 } 16452 return *t.HTMLURL 16453 } 16454 16455 // GetID returns the ID field if it's non-nil, zero value otherwise. 16456 func (t *Team) GetID() int64 { 16457 if t == nil || t.ID == nil { 16458 return 0 16459 } 16460 return *t.ID 16461 } 16462 16463 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 16464 func (t *Team) GetLDAPDN() string { 16465 if t == nil || t.LDAPDN == nil { 16466 return "" 16467 } 16468 return *t.LDAPDN 16469 } 16470 16471 // GetMembersCount returns the MembersCount field if it's non-nil, zero value otherwise. 16472 func (t *Team) GetMembersCount() int { 16473 if t == nil || t.MembersCount == nil { 16474 return 0 16475 } 16476 return *t.MembersCount 16477 } 16478 16479 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 16480 func (t *Team) GetMembersURL() string { 16481 if t == nil || t.MembersURL == nil { 16482 return "" 16483 } 16484 return *t.MembersURL 16485 } 16486 16487 // GetName returns the Name field if it's non-nil, zero value otherwise. 16488 func (t *Team) GetName() string { 16489 if t == nil || t.Name == nil { 16490 return "" 16491 } 16492 return *t.Name 16493 } 16494 16495 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 16496 func (t *Team) GetNodeID() string { 16497 if t == nil || t.NodeID == nil { 16498 return "" 16499 } 16500 return *t.NodeID 16501 } 16502 16503 // GetOrganization returns the Organization field. 16504 func (t *Team) GetOrganization() *Organization { 16505 if t == nil { 16506 return nil 16507 } 16508 return t.Organization 16509 } 16510 16511 // GetParent returns the Parent field. 16512 func (t *Team) GetParent() *Team { 16513 if t == nil { 16514 return nil 16515 } 16516 return t.Parent 16517 } 16518 16519 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 16520 func (t *Team) GetPermission() string { 16521 if t == nil || t.Permission == nil { 16522 return "" 16523 } 16524 return *t.Permission 16525 } 16526 16527 // GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. 16528 func (t *Team) GetPermissions() map[string]bool { 16529 if t == nil || t.Permissions == nil { 16530 return map[string]bool{} 16531 } 16532 return t.Permissions 16533 } 16534 16535 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 16536 func (t *Team) GetPrivacy() string { 16537 if t == nil || t.Privacy == nil { 16538 return "" 16539 } 16540 return *t.Privacy 16541 } 16542 16543 // GetReposCount returns the ReposCount field if it's non-nil, zero value otherwise. 16544 func (t *Team) GetReposCount() int { 16545 if t == nil || t.ReposCount == nil { 16546 return 0 16547 } 16548 return *t.ReposCount 16549 } 16550 16551 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 16552 func (t *Team) GetRepositoriesURL() string { 16553 if t == nil || t.RepositoriesURL == nil { 16554 return "" 16555 } 16556 return *t.RepositoriesURL 16557 } 16558 16559 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 16560 func (t *Team) GetSlug() string { 16561 if t == nil || t.Slug == nil { 16562 return "" 16563 } 16564 return *t.Slug 16565 } 16566 16567 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16568 func (t *Team) GetURL() string { 16569 if t == nil || t.URL == nil { 16570 return "" 16571 } 16572 return *t.URL 16573 } 16574 16575 // GetInstallation returns the Installation field. 16576 func (t *TeamAddEvent) GetInstallation() *Installation { 16577 if t == nil { 16578 return nil 16579 } 16580 return t.Installation 16581 } 16582 16583 // GetOrg returns the Org field. 16584 func (t *TeamAddEvent) GetOrg() *Organization { 16585 if t == nil { 16586 return nil 16587 } 16588 return t.Org 16589 } 16590 16591 // GetRepo returns the Repo field. 16592 func (t *TeamAddEvent) GetRepo() *Repository { 16593 if t == nil { 16594 return nil 16595 } 16596 return t.Repo 16597 } 16598 16599 // GetSender returns the Sender field. 16600 func (t *TeamAddEvent) GetSender() *User { 16601 if t == nil { 16602 return nil 16603 } 16604 return t.Sender 16605 } 16606 16607 // GetTeam returns the Team field. 16608 func (t *TeamAddEvent) GetTeam() *Team { 16609 if t == nil { 16610 return nil 16611 } 16612 return t.Team 16613 } 16614 16615 // GetDescription returns the Description field. 16616 func (t *TeamChange) GetDescription() *TeamDescription { 16617 if t == nil { 16618 return nil 16619 } 16620 return t.Description 16621 } 16622 16623 // GetName returns the Name field. 16624 func (t *TeamChange) GetName() *TeamName { 16625 if t == nil { 16626 return nil 16627 } 16628 return t.Name 16629 } 16630 16631 // GetPrivacy returns the Privacy field. 16632 func (t *TeamChange) GetPrivacy() *TeamPrivacy { 16633 if t == nil { 16634 return nil 16635 } 16636 return t.Privacy 16637 } 16638 16639 // GetRepository returns the Repository field. 16640 func (t *TeamChange) GetRepository() *TeamRepository { 16641 if t == nil { 16642 return nil 16643 } 16644 return t.Repository 16645 } 16646 16647 // GetFrom returns the From field if it's non-nil, zero value otherwise. 16648 func (t *TeamDescription) GetFrom() string { 16649 if t == nil || t.From == nil { 16650 return "" 16651 } 16652 return *t.From 16653 } 16654 16655 // GetAuthor returns the Author field. 16656 func (t *TeamDiscussion) GetAuthor() *User { 16657 if t == nil { 16658 return nil 16659 } 16660 return t.Author 16661 } 16662 16663 // GetBody returns the Body field if it's non-nil, zero value otherwise. 16664 func (t *TeamDiscussion) GetBody() string { 16665 if t == nil || t.Body == nil { 16666 return "" 16667 } 16668 return *t.Body 16669 } 16670 16671 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 16672 func (t *TeamDiscussion) GetBodyHTML() string { 16673 if t == nil || t.BodyHTML == nil { 16674 return "" 16675 } 16676 return *t.BodyHTML 16677 } 16678 16679 // GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. 16680 func (t *TeamDiscussion) GetBodyVersion() string { 16681 if t == nil || t.BodyVersion == nil { 16682 return "" 16683 } 16684 return *t.BodyVersion 16685 } 16686 16687 // GetCommentsCount returns the CommentsCount field if it's non-nil, zero value otherwise. 16688 func (t *TeamDiscussion) GetCommentsCount() int { 16689 if t == nil || t.CommentsCount == nil { 16690 return 0 16691 } 16692 return *t.CommentsCount 16693 } 16694 16695 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 16696 func (t *TeamDiscussion) GetCommentsURL() string { 16697 if t == nil || t.CommentsURL == nil { 16698 return "" 16699 } 16700 return *t.CommentsURL 16701 } 16702 16703 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 16704 func (t *TeamDiscussion) GetCreatedAt() Timestamp { 16705 if t == nil || t.CreatedAt == nil { 16706 return Timestamp{} 16707 } 16708 return *t.CreatedAt 16709 } 16710 16711 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 16712 func (t *TeamDiscussion) GetHTMLURL() string { 16713 if t == nil || t.HTMLURL == nil { 16714 return "" 16715 } 16716 return *t.HTMLURL 16717 } 16718 16719 // GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. 16720 func (t *TeamDiscussion) GetLastEditedAt() Timestamp { 16721 if t == nil || t.LastEditedAt == nil { 16722 return Timestamp{} 16723 } 16724 return *t.LastEditedAt 16725 } 16726 16727 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 16728 func (t *TeamDiscussion) GetNodeID() string { 16729 if t == nil || t.NodeID == nil { 16730 return "" 16731 } 16732 return *t.NodeID 16733 } 16734 16735 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 16736 func (t *TeamDiscussion) GetNumber() int { 16737 if t == nil || t.Number == nil { 16738 return 0 16739 } 16740 return *t.Number 16741 } 16742 16743 // GetPinned returns the Pinned field if it's non-nil, zero value otherwise. 16744 func (t *TeamDiscussion) GetPinned() bool { 16745 if t == nil || t.Pinned == nil { 16746 return false 16747 } 16748 return *t.Pinned 16749 } 16750 16751 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 16752 func (t *TeamDiscussion) GetPrivate() bool { 16753 if t == nil || t.Private == nil { 16754 return false 16755 } 16756 return *t.Private 16757 } 16758 16759 // GetReactions returns the Reactions field. 16760 func (t *TeamDiscussion) GetReactions() *Reactions { 16761 if t == nil { 16762 return nil 16763 } 16764 return t.Reactions 16765 } 16766 16767 // GetTeamURL returns the TeamURL field if it's non-nil, zero value otherwise. 16768 func (t *TeamDiscussion) GetTeamURL() string { 16769 if t == nil || t.TeamURL == nil { 16770 return "" 16771 } 16772 return *t.TeamURL 16773 } 16774 16775 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 16776 func (t *TeamDiscussion) GetTitle() string { 16777 if t == nil || t.Title == nil { 16778 return "" 16779 } 16780 return *t.Title 16781 } 16782 16783 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 16784 func (t *TeamDiscussion) GetUpdatedAt() Timestamp { 16785 if t == nil || t.UpdatedAt == nil { 16786 return Timestamp{} 16787 } 16788 return *t.UpdatedAt 16789 } 16790 16791 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16792 func (t *TeamDiscussion) GetURL() string { 16793 if t == nil || t.URL == nil { 16794 return "" 16795 } 16796 return *t.URL 16797 } 16798 16799 // GetAction returns the Action field if it's non-nil, zero value otherwise. 16800 func (t *TeamEvent) GetAction() string { 16801 if t == nil || t.Action == nil { 16802 return "" 16803 } 16804 return *t.Action 16805 } 16806 16807 // GetChanges returns the Changes field. 16808 func (t *TeamEvent) GetChanges() *TeamChange { 16809 if t == nil { 16810 return nil 16811 } 16812 return t.Changes 16813 } 16814 16815 // GetInstallation returns the Installation field. 16816 func (t *TeamEvent) GetInstallation() *Installation { 16817 if t == nil { 16818 return nil 16819 } 16820 return t.Installation 16821 } 16822 16823 // GetOrg returns the Org field. 16824 func (t *TeamEvent) GetOrg() *Organization { 16825 if t == nil { 16826 return nil 16827 } 16828 return t.Org 16829 } 16830 16831 // GetRepo returns the Repo field. 16832 func (t *TeamEvent) GetRepo() *Repository { 16833 if t == nil { 16834 return nil 16835 } 16836 return t.Repo 16837 } 16838 16839 // GetSender returns the Sender field. 16840 func (t *TeamEvent) GetSender() *User { 16841 if t == nil { 16842 return nil 16843 } 16844 return t.Sender 16845 } 16846 16847 // GetTeam returns the Team field. 16848 func (t *TeamEvent) GetTeam() *Team { 16849 if t == nil { 16850 return nil 16851 } 16852 return t.Team 16853 } 16854 16855 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 16856 func (t *TeamLDAPMapping) GetDescription() string { 16857 if t == nil || t.Description == nil { 16858 return "" 16859 } 16860 return *t.Description 16861 } 16862 16863 // GetID returns the ID field if it's non-nil, zero value otherwise. 16864 func (t *TeamLDAPMapping) GetID() int64 { 16865 if t == nil || t.ID == nil { 16866 return 0 16867 } 16868 return *t.ID 16869 } 16870 16871 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 16872 func (t *TeamLDAPMapping) GetLDAPDN() string { 16873 if t == nil || t.LDAPDN == nil { 16874 return "" 16875 } 16876 return *t.LDAPDN 16877 } 16878 16879 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 16880 func (t *TeamLDAPMapping) GetMembersURL() string { 16881 if t == nil || t.MembersURL == nil { 16882 return "" 16883 } 16884 return *t.MembersURL 16885 } 16886 16887 // GetName returns the Name field if it's non-nil, zero value otherwise. 16888 func (t *TeamLDAPMapping) GetName() string { 16889 if t == nil || t.Name == nil { 16890 return "" 16891 } 16892 return *t.Name 16893 } 16894 16895 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 16896 func (t *TeamLDAPMapping) GetPermission() string { 16897 if t == nil || t.Permission == nil { 16898 return "" 16899 } 16900 return *t.Permission 16901 } 16902 16903 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 16904 func (t *TeamLDAPMapping) GetPrivacy() string { 16905 if t == nil || t.Privacy == nil { 16906 return "" 16907 } 16908 return *t.Privacy 16909 } 16910 16911 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 16912 func (t *TeamLDAPMapping) GetRepositoriesURL() string { 16913 if t == nil || t.RepositoriesURL == nil { 16914 return "" 16915 } 16916 return *t.RepositoriesURL 16917 } 16918 16919 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 16920 func (t *TeamLDAPMapping) GetSlug() string { 16921 if t == nil || t.Slug == nil { 16922 return "" 16923 } 16924 return *t.Slug 16925 } 16926 16927 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16928 func (t *TeamLDAPMapping) GetURL() string { 16929 if t == nil || t.URL == nil { 16930 return "" 16931 } 16932 return *t.URL 16933 } 16934 16935 // GetFrom returns the From field if it's non-nil, zero value otherwise. 16936 func (t *TeamName) GetFrom() string { 16937 if t == nil || t.From == nil { 16938 return "" 16939 } 16940 return *t.From 16941 } 16942 16943 // GetFrom returns the From field. 16944 func (t *TeamPermissions) GetFrom() *TeamPermissionsFrom { 16945 if t == nil { 16946 return nil 16947 } 16948 return t.From 16949 } 16950 16951 // GetAdmin returns the Admin field if it's non-nil, zero value otherwise. 16952 func (t *TeamPermissionsFrom) GetAdmin() bool { 16953 if t == nil || t.Admin == nil { 16954 return false 16955 } 16956 return *t.Admin 16957 } 16958 16959 // GetPull returns the Pull field if it's non-nil, zero value otherwise. 16960 func (t *TeamPermissionsFrom) GetPull() bool { 16961 if t == nil || t.Pull == nil { 16962 return false 16963 } 16964 return *t.Pull 16965 } 16966 16967 // GetPush returns the Push field if it's non-nil, zero value otherwise. 16968 func (t *TeamPermissionsFrom) GetPush() bool { 16969 if t == nil || t.Push == nil { 16970 return false 16971 } 16972 return *t.Push 16973 } 16974 16975 // GetFrom returns the From field if it's non-nil, zero value otherwise. 16976 func (t *TeamPrivacy) GetFrom() string { 16977 if t == nil || t.From == nil { 16978 return "" 16979 } 16980 return *t.From 16981 } 16982 16983 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 16984 func (t *TeamProjectOptions) GetPermission() string { 16985 if t == nil || t.Permission == nil { 16986 return "" 16987 } 16988 return *t.Permission 16989 } 16990 16991 // GetPermissions returns the Permissions field. 16992 func (t *TeamRepository) GetPermissions() *TeamPermissions { 16993 if t == nil { 16994 return nil 16995 } 16996 return t.Permissions 16997 } 16998 16999 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 17000 func (t *TemplateRepoRequest) GetDescription() string { 17001 if t == nil || t.Description == nil { 17002 return "" 17003 } 17004 return *t.Description 17005 } 17006 17007 // GetIncludeAllBranches returns the IncludeAllBranches field if it's non-nil, zero value otherwise. 17008 func (t *TemplateRepoRequest) GetIncludeAllBranches() bool { 17009 if t == nil || t.IncludeAllBranches == nil { 17010 return false 17011 } 17012 return *t.IncludeAllBranches 17013 } 17014 17015 // GetName returns the Name field if it's non-nil, zero value otherwise. 17016 func (t *TemplateRepoRequest) GetName() string { 17017 if t == nil || t.Name == nil { 17018 return "" 17019 } 17020 return *t.Name 17021 } 17022 17023 // GetOwner returns the Owner field if it's non-nil, zero value otherwise. 17024 func (t *TemplateRepoRequest) GetOwner() string { 17025 if t == nil || t.Owner == nil { 17026 return "" 17027 } 17028 return *t.Owner 17029 } 17030 17031 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 17032 func (t *TemplateRepoRequest) GetPrivate() bool { 17033 if t == nil || t.Private == nil { 17034 return false 17035 } 17036 return *t.Private 17037 } 17038 17039 // GetFragment returns the Fragment field if it's non-nil, zero value otherwise. 17040 func (t *TextMatch) GetFragment() string { 17041 if t == nil || t.Fragment == nil { 17042 return "" 17043 } 17044 return *t.Fragment 17045 } 17046 17047 // GetObjectType returns the ObjectType field if it's non-nil, zero value otherwise. 17048 func (t *TextMatch) GetObjectType() string { 17049 if t == nil || t.ObjectType == nil { 17050 return "" 17051 } 17052 return *t.ObjectType 17053 } 17054 17055 // GetObjectURL returns the ObjectURL field if it's non-nil, zero value otherwise. 17056 func (t *TextMatch) GetObjectURL() string { 17057 if t == nil || t.ObjectURL == nil { 17058 return "" 17059 } 17060 return *t.ObjectURL 17061 } 17062 17063 // GetProperty returns the Property field if it's non-nil, zero value otherwise. 17064 func (t *TextMatch) GetProperty() string { 17065 if t == nil || t.Property == nil { 17066 return "" 17067 } 17068 return *t.Property 17069 } 17070 17071 // GetActor returns the Actor field. 17072 func (t *Timeline) GetActor() *User { 17073 if t == nil { 17074 return nil 17075 } 17076 return t.Actor 17077 } 17078 17079 // GetAssignee returns the Assignee field. 17080 func (t *Timeline) GetAssignee() *User { 17081 if t == nil { 17082 return nil 17083 } 17084 return t.Assignee 17085 } 17086 17087 // GetAssigner returns the Assigner field. 17088 func (t *Timeline) GetAssigner() *User { 17089 if t == nil { 17090 return nil 17091 } 17092 return t.Assigner 17093 } 17094 17095 // GetAuthor returns the Author field. 17096 func (t *Timeline) GetAuthor() *CommitAuthor { 17097 if t == nil { 17098 return nil 17099 } 17100 return t.Author 17101 } 17102 17103 // GetBody returns the Body field if it's non-nil, zero value otherwise. 17104 func (t *Timeline) GetBody() string { 17105 if t == nil || t.Body == nil { 17106 return "" 17107 } 17108 return *t.Body 17109 } 17110 17111 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 17112 func (t *Timeline) GetCommitID() string { 17113 if t == nil || t.CommitID == nil { 17114 return "" 17115 } 17116 return *t.CommitID 17117 } 17118 17119 // GetCommitter returns the Committer field. 17120 func (t *Timeline) GetCommitter() *CommitAuthor { 17121 if t == nil { 17122 return nil 17123 } 17124 return t.Committer 17125 } 17126 17127 // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 17128 func (t *Timeline) GetCommitURL() string { 17129 if t == nil || t.CommitURL == nil { 17130 return "" 17131 } 17132 return *t.CommitURL 17133 } 17134 17135 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 17136 func (t *Timeline) GetCreatedAt() time.Time { 17137 if t == nil || t.CreatedAt == nil { 17138 return time.Time{} 17139 } 17140 return *t.CreatedAt 17141 } 17142 17143 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 17144 func (t *Timeline) GetEvent() string { 17145 if t == nil || t.Event == nil { 17146 return "" 17147 } 17148 return *t.Event 17149 } 17150 17151 // GetID returns the ID field if it's non-nil, zero value otherwise. 17152 func (t *Timeline) GetID() int64 { 17153 if t == nil || t.ID == nil { 17154 return 0 17155 } 17156 return *t.ID 17157 } 17158 17159 // GetLabel returns the Label field. 17160 func (t *Timeline) GetLabel() *Label { 17161 if t == nil { 17162 return nil 17163 } 17164 return t.Label 17165 } 17166 17167 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 17168 func (t *Timeline) GetMessage() string { 17169 if t == nil || t.Message == nil { 17170 return "" 17171 } 17172 return *t.Message 17173 } 17174 17175 // GetMilestone returns the Milestone field. 17176 func (t *Timeline) GetMilestone() *Milestone { 17177 if t == nil { 17178 return nil 17179 } 17180 return t.Milestone 17181 } 17182 17183 // GetProjectCard returns the ProjectCard field. 17184 func (t *Timeline) GetProjectCard() *ProjectCard { 17185 if t == nil { 17186 return nil 17187 } 17188 return t.ProjectCard 17189 } 17190 17191 // GetRename returns the Rename field. 17192 func (t *Timeline) GetRename() *Rename { 17193 if t == nil { 17194 return nil 17195 } 17196 return t.Rename 17197 } 17198 17199 // GetRequester returns the Requester field. 17200 func (t *Timeline) GetRequester() *User { 17201 if t == nil { 17202 return nil 17203 } 17204 return t.Requester 17205 } 17206 17207 // GetReviewer returns the Reviewer field. 17208 func (t *Timeline) GetReviewer() *User { 17209 if t == nil { 17210 return nil 17211 } 17212 return t.Reviewer 17213 } 17214 17215 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 17216 func (t *Timeline) GetSHA() string { 17217 if t == nil || t.SHA == nil { 17218 return "" 17219 } 17220 return *t.SHA 17221 } 17222 17223 // GetSource returns the Source field. 17224 func (t *Timeline) GetSource() *Source { 17225 if t == nil { 17226 return nil 17227 } 17228 return t.Source 17229 } 17230 17231 // GetState returns the State field if it's non-nil, zero value otherwise. 17232 func (t *Timeline) GetState() string { 17233 if t == nil || t.State == nil { 17234 return "" 17235 } 17236 return *t.State 17237 } 17238 17239 // GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. 17240 func (t *Timeline) GetSubmittedAt() time.Time { 17241 if t == nil || t.SubmittedAt == nil { 17242 return time.Time{} 17243 } 17244 return *t.SubmittedAt 17245 } 17246 17247 // GetURL returns the URL field if it's non-nil, zero value otherwise. 17248 func (t *Timeline) GetURL() string { 17249 if t == nil || t.URL == nil { 17250 return "" 17251 } 17252 return *t.URL 17253 } 17254 17255 // GetUser returns the User field. 17256 func (t *Timeline) GetUser() *User { 17257 if t == nil { 17258 return nil 17259 } 17260 return t.User 17261 } 17262 17263 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 17264 func (t *Tool) GetGUID() string { 17265 if t == nil || t.GUID == nil { 17266 return "" 17267 } 17268 return *t.GUID 17269 } 17270 17271 // GetName returns the Name field if it's non-nil, zero value otherwise. 17272 func (t *Tool) GetName() string { 17273 if t == nil || t.Name == nil { 17274 return "" 17275 } 17276 return *t.Name 17277 } 17278 17279 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 17280 func (t *Tool) GetVersion() string { 17281 if t == nil || t.Version == nil { 17282 return "" 17283 } 17284 return *t.Version 17285 } 17286 17287 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 17288 func (t *TopicResult) GetCreatedAt() Timestamp { 17289 if t == nil || t.CreatedAt == nil { 17290 return Timestamp{} 17291 } 17292 return *t.CreatedAt 17293 } 17294 17295 // GetCreatedBy returns the CreatedBy field if it's non-nil, zero value otherwise. 17296 func (t *TopicResult) GetCreatedBy() string { 17297 if t == nil || t.CreatedBy == nil { 17298 return "" 17299 } 17300 return *t.CreatedBy 17301 } 17302 17303 // GetCurated returns the Curated field if it's non-nil, zero value otherwise. 17304 func (t *TopicResult) GetCurated() bool { 17305 if t == nil || t.Curated == nil { 17306 return false 17307 } 17308 return *t.Curated 17309 } 17310 17311 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 17312 func (t *TopicResult) GetDescription() string { 17313 if t == nil || t.Description == nil { 17314 return "" 17315 } 17316 return *t.Description 17317 } 17318 17319 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 17320 func (t *TopicResult) GetDisplayName() string { 17321 if t == nil || t.DisplayName == nil { 17322 return "" 17323 } 17324 return *t.DisplayName 17325 } 17326 17327 // GetFeatured returns the Featured field if it's non-nil, zero value otherwise. 17328 func (t *TopicResult) GetFeatured() bool { 17329 if t == nil || t.Featured == nil { 17330 return false 17331 } 17332 return *t.Featured 17333 } 17334 17335 // GetName returns the Name field if it's non-nil, zero value otherwise. 17336 func (t *TopicResult) GetName() string { 17337 if t == nil || t.Name == nil { 17338 return "" 17339 } 17340 return *t.Name 17341 } 17342 17343 // GetScore returns the Score field. 17344 func (t *TopicResult) GetScore() *float64 { 17345 if t == nil { 17346 return nil 17347 } 17348 return t.Score 17349 } 17350 17351 // GetShortDescription returns the ShortDescription field if it's non-nil, zero value otherwise. 17352 func (t *TopicResult) GetShortDescription() string { 17353 if t == nil || t.ShortDescription == nil { 17354 return "" 17355 } 17356 return *t.ShortDescription 17357 } 17358 17359 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 17360 func (t *TopicResult) GetUpdatedAt() string { 17361 if t == nil || t.UpdatedAt == nil { 17362 return "" 17363 } 17364 return *t.UpdatedAt 17365 } 17366 17367 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 17368 func (t *TopicsSearchResult) GetIncompleteResults() bool { 17369 if t == nil || t.IncompleteResults == nil { 17370 return false 17371 } 17372 return *t.IncompleteResults 17373 } 17374 17375 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 17376 func (t *TopicsSearchResult) GetTotal() int { 17377 if t == nil || t.Total == nil { 17378 return 0 17379 } 17380 return *t.Total 17381 } 17382 17383 // GetCount returns the Count field if it's non-nil, zero value otherwise. 17384 func (t *TrafficClones) GetCount() int { 17385 if t == nil || t.Count == nil { 17386 return 0 17387 } 17388 return *t.Count 17389 } 17390 17391 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 17392 func (t *TrafficClones) GetUniques() int { 17393 if t == nil || t.Uniques == nil { 17394 return 0 17395 } 17396 return *t.Uniques 17397 } 17398 17399 // GetCount returns the Count field if it's non-nil, zero value otherwise. 17400 func (t *TrafficData) GetCount() int { 17401 if t == nil || t.Count == nil { 17402 return 0 17403 } 17404 return *t.Count 17405 } 17406 17407 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 17408 func (t *TrafficData) GetTimestamp() Timestamp { 17409 if t == nil || t.Timestamp == nil { 17410 return Timestamp{} 17411 } 17412 return *t.Timestamp 17413 } 17414 17415 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 17416 func (t *TrafficData) GetUniques() int { 17417 if t == nil || t.Uniques == nil { 17418 return 0 17419 } 17420 return *t.Uniques 17421 } 17422 17423 // GetCount returns the Count field if it's non-nil, zero value otherwise. 17424 func (t *TrafficPath) GetCount() int { 17425 if t == nil || t.Count == nil { 17426 return 0 17427 } 17428 return *t.Count 17429 } 17430 17431 // GetPath returns the Path field if it's non-nil, zero value otherwise. 17432 func (t *TrafficPath) GetPath() string { 17433 if t == nil || t.Path == nil { 17434 return "" 17435 } 17436 return *t.Path 17437 } 17438 17439 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 17440 func (t *TrafficPath) GetTitle() string { 17441 if t == nil || t.Title == nil { 17442 return "" 17443 } 17444 return *t.Title 17445 } 17446 17447 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 17448 func (t *TrafficPath) GetUniques() int { 17449 if t == nil || t.Uniques == nil { 17450 return 0 17451 } 17452 return *t.Uniques 17453 } 17454 17455 // GetCount returns the Count field if it's non-nil, zero value otherwise. 17456 func (t *TrafficReferrer) GetCount() int { 17457 if t == nil || t.Count == nil { 17458 return 0 17459 } 17460 return *t.Count 17461 } 17462 17463 // GetReferrer returns the Referrer field if it's non-nil, zero value otherwise. 17464 func (t *TrafficReferrer) GetReferrer() string { 17465 if t == nil || t.Referrer == nil { 17466 return "" 17467 } 17468 return *t.Referrer 17469 } 17470 17471 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 17472 func (t *TrafficReferrer) GetUniques() int { 17473 if t == nil || t.Uniques == nil { 17474 return 0 17475 } 17476 return *t.Uniques 17477 } 17478 17479 // GetCount returns the Count field if it's non-nil, zero value otherwise. 17480 func (t *TrafficViews) GetCount() int { 17481 if t == nil || t.Count == nil { 17482 return 0 17483 } 17484 return *t.Count 17485 } 17486 17487 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 17488 func (t *TrafficViews) GetUniques() int { 17489 if t == nil || t.Uniques == nil { 17490 return 0 17491 } 17492 return *t.Uniques 17493 } 17494 17495 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 17496 func (t *Tree) GetSHA() string { 17497 if t == nil || t.SHA == nil { 17498 return "" 17499 } 17500 return *t.SHA 17501 } 17502 17503 // GetTruncated returns the Truncated field if it's non-nil, zero value otherwise. 17504 func (t *Tree) GetTruncated() bool { 17505 if t == nil || t.Truncated == nil { 17506 return false 17507 } 17508 return *t.Truncated 17509 } 17510 17511 // GetContent returns the Content field if it's non-nil, zero value otherwise. 17512 func (t *TreeEntry) GetContent() string { 17513 if t == nil || t.Content == nil { 17514 return "" 17515 } 17516 return *t.Content 17517 } 17518 17519 // GetMode returns the Mode field if it's non-nil, zero value otherwise. 17520 func (t *TreeEntry) GetMode() string { 17521 if t == nil || t.Mode == nil { 17522 return "" 17523 } 17524 return *t.Mode 17525 } 17526 17527 // GetPath returns the Path field if it's non-nil, zero value otherwise. 17528 func (t *TreeEntry) GetPath() string { 17529 if t == nil || t.Path == nil { 17530 return "" 17531 } 17532 return *t.Path 17533 } 17534 17535 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 17536 func (t *TreeEntry) GetSHA() string { 17537 if t == nil || t.SHA == nil { 17538 return "" 17539 } 17540 return *t.SHA 17541 } 17542 17543 // GetSize returns the Size field if it's non-nil, zero value otherwise. 17544 func (t *TreeEntry) GetSize() int { 17545 if t == nil || t.Size == nil { 17546 return 0 17547 } 17548 return *t.Size 17549 } 17550 17551 // GetType returns the Type field if it's non-nil, zero value otherwise. 17552 func (t *TreeEntry) GetType() string { 17553 if t == nil || t.Type == nil { 17554 return "" 17555 } 17556 return *t.Type 17557 } 17558 17559 // GetURL returns the URL field if it's non-nil, zero value otherwise. 17560 func (t *TreeEntry) GetURL() string { 17561 if t == nil || t.URL == nil { 17562 return "" 17563 } 17564 return *t.URL 17565 } 17566 17567 // GetPath returns the Path field if it's non-nil, zero value otherwise. 17568 func (u *UpdateAttributeForSCIMUserOperations) GetPath() string { 17569 if u == nil || u.Path == nil { 17570 return "" 17571 } 17572 return *u.Path 17573 } 17574 17575 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 17576 func (u *UpdateCheckRunOptions) GetCompletedAt() Timestamp { 17577 if u == nil || u.CompletedAt == nil { 17578 return Timestamp{} 17579 } 17580 return *u.CompletedAt 17581 } 17582 17583 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 17584 func (u *UpdateCheckRunOptions) GetConclusion() string { 17585 if u == nil || u.Conclusion == nil { 17586 return "" 17587 } 17588 return *u.Conclusion 17589 } 17590 17591 // GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 17592 func (u *UpdateCheckRunOptions) GetDetailsURL() string { 17593 if u == nil || u.DetailsURL == nil { 17594 return "" 17595 } 17596 return *u.DetailsURL 17597 } 17598 17599 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 17600 func (u *UpdateCheckRunOptions) GetExternalID() string { 17601 if u == nil || u.ExternalID == nil { 17602 return "" 17603 } 17604 return *u.ExternalID 17605 } 17606 17607 // GetOutput returns the Output field. 17608 func (u *UpdateCheckRunOptions) GetOutput() *CheckRunOutput { 17609 if u == nil { 17610 return nil 17611 } 17612 return u.Output 17613 } 17614 17615 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 17616 func (u *UpdateCheckRunOptions) GetStatus() string { 17617 if u == nil || u.Status == nil { 17618 return "" 17619 } 17620 return *u.Status 17621 } 17622 17623 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 17624 func (u *UpdateRunnerGroupRequest) GetAllowsPublicRepositories() bool { 17625 if u == nil || u.AllowsPublicRepositories == nil { 17626 return false 17627 } 17628 return *u.AllowsPublicRepositories 17629 } 17630 17631 // GetName returns the Name field if it's non-nil, zero value otherwise. 17632 func (u *UpdateRunnerGroupRequest) GetName() string { 17633 if u == nil || u.Name == nil { 17634 return "" 17635 } 17636 return *u.Name 17637 } 17638 17639 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 17640 func (u *UpdateRunnerGroupRequest) GetVisibility() string { 17641 if u == nil || u.Visibility == nil { 17642 return "" 17643 } 17644 return *u.Visibility 17645 } 17646 17647 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 17648 func (u *User) GetAvatarURL() string { 17649 if u == nil || u.AvatarURL == nil { 17650 return "" 17651 } 17652 return *u.AvatarURL 17653 } 17654 17655 // GetBio returns the Bio field if it's non-nil, zero value otherwise. 17656 func (u *User) GetBio() string { 17657 if u == nil || u.Bio == nil { 17658 return "" 17659 } 17660 return *u.Bio 17661 } 17662 17663 // GetBlog returns the Blog field if it's non-nil, zero value otherwise. 17664 func (u *User) GetBlog() string { 17665 if u == nil || u.Blog == nil { 17666 return "" 17667 } 17668 return *u.Blog 17669 } 17670 17671 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 17672 func (u *User) GetCollaborators() int { 17673 if u == nil || u.Collaborators == nil { 17674 return 0 17675 } 17676 return *u.Collaborators 17677 } 17678 17679 // GetCompany returns the Company field if it's non-nil, zero value otherwise. 17680 func (u *User) GetCompany() string { 17681 if u == nil || u.Company == nil { 17682 return "" 17683 } 17684 return *u.Company 17685 } 17686 17687 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 17688 func (u *User) GetCreatedAt() Timestamp { 17689 if u == nil || u.CreatedAt == nil { 17690 return Timestamp{} 17691 } 17692 return *u.CreatedAt 17693 } 17694 17695 // GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 17696 func (u *User) GetDiskUsage() int { 17697 if u == nil || u.DiskUsage == nil { 17698 return 0 17699 } 17700 return *u.DiskUsage 17701 } 17702 17703 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 17704 func (u *User) GetEmail() string { 17705 if u == nil || u.Email == nil { 17706 return "" 17707 } 17708 return *u.Email 17709 } 17710 17711 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 17712 func (u *User) GetEventsURL() string { 17713 if u == nil || u.EventsURL == nil { 17714 return "" 17715 } 17716 return *u.EventsURL 17717 } 17718 17719 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 17720 func (u *User) GetFollowers() int { 17721 if u == nil || u.Followers == nil { 17722 return 0 17723 } 17724 return *u.Followers 17725 } 17726 17727 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 17728 func (u *User) GetFollowersURL() string { 17729 if u == nil || u.FollowersURL == nil { 17730 return "" 17731 } 17732 return *u.FollowersURL 17733 } 17734 17735 // GetFollowing returns the Following field if it's non-nil, zero value otherwise. 17736 func (u *User) GetFollowing() int { 17737 if u == nil || u.Following == nil { 17738 return 0 17739 } 17740 return *u.Following 17741 } 17742 17743 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 17744 func (u *User) GetFollowingURL() string { 17745 if u == nil || u.FollowingURL == nil { 17746 return "" 17747 } 17748 return *u.FollowingURL 17749 } 17750 17751 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 17752 func (u *User) GetGistsURL() string { 17753 if u == nil || u.GistsURL == nil { 17754 return "" 17755 } 17756 return *u.GistsURL 17757 } 17758 17759 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 17760 func (u *User) GetGravatarID() string { 17761 if u == nil || u.GravatarID == nil { 17762 return "" 17763 } 17764 return *u.GravatarID 17765 } 17766 17767 // GetHireable returns the Hireable field if it's non-nil, zero value otherwise. 17768 func (u *User) GetHireable() bool { 17769 if u == nil || u.Hireable == nil { 17770 return false 17771 } 17772 return *u.Hireable 17773 } 17774 17775 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 17776 func (u *User) GetHTMLURL() string { 17777 if u == nil || u.HTMLURL == nil { 17778 return "" 17779 } 17780 return *u.HTMLURL 17781 } 17782 17783 // GetID returns the ID field if it's non-nil, zero value otherwise. 17784 func (u *User) GetID() int64 { 17785 if u == nil || u.ID == nil { 17786 return 0 17787 } 17788 return *u.ID 17789 } 17790 17791 // GetLdapDn returns the LdapDn field if it's non-nil, zero value otherwise. 17792 func (u *User) GetLdapDn() string { 17793 if u == nil || u.LdapDn == nil { 17794 return "" 17795 } 17796 return *u.LdapDn 17797 } 17798 17799 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 17800 func (u *User) GetLocation() string { 17801 if u == nil || u.Location == nil { 17802 return "" 17803 } 17804 return *u.Location 17805 } 17806 17807 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 17808 func (u *User) GetLogin() string { 17809 if u == nil || u.Login == nil { 17810 return "" 17811 } 17812 return *u.Login 17813 } 17814 17815 // GetName returns the Name field if it's non-nil, zero value otherwise. 17816 func (u *User) GetName() string { 17817 if u == nil || u.Name == nil { 17818 return "" 17819 } 17820 return *u.Name 17821 } 17822 17823 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 17824 func (u *User) GetNodeID() string { 17825 if u == nil || u.NodeID == nil { 17826 return "" 17827 } 17828 return *u.NodeID 17829 } 17830 17831 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 17832 func (u *User) GetOrganizationsURL() string { 17833 if u == nil || u.OrganizationsURL == nil { 17834 return "" 17835 } 17836 return *u.OrganizationsURL 17837 } 17838 17839 // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 17840 func (u *User) GetOwnedPrivateRepos() int { 17841 if u == nil || u.OwnedPrivateRepos == nil { 17842 return 0 17843 } 17844 return *u.OwnedPrivateRepos 17845 } 17846 17847 // GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. 17848 func (u *User) GetPermissions() map[string]bool { 17849 if u == nil || u.Permissions == nil { 17850 return map[string]bool{} 17851 } 17852 return u.Permissions 17853 } 17854 17855 // GetPlan returns the Plan field. 17856 func (u *User) GetPlan() *Plan { 17857 if u == nil { 17858 return nil 17859 } 17860 return u.Plan 17861 } 17862 17863 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 17864 func (u *User) GetPrivateGists() int { 17865 if u == nil || u.PrivateGists == nil { 17866 return 0 17867 } 17868 return *u.PrivateGists 17869 } 17870 17871 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 17872 func (u *User) GetPublicGists() int { 17873 if u == nil || u.PublicGists == nil { 17874 return 0 17875 } 17876 return *u.PublicGists 17877 } 17878 17879 // GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 17880 func (u *User) GetPublicRepos() int { 17881 if u == nil || u.PublicRepos == nil { 17882 return 0 17883 } 17884 return *u.PublicRepos 17885 } 17886 17887 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 17888 func (u *User) GetReceivedEventsURL() string { 17889 if u == nil || u.ReceivedEventsURL == nil { 17890 return "" 17891 } 17892 return *u.ReceivedEventsURL 17893 } 17894 17895 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 17896 func (u *User) GetReposURL() string { 17897 if u == nil || u.ReposURL == nil { 17898 return "" 17899 } 17900 return *u.ReposURL 17901 } 17902 17903 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 17904 func (u *User) GetSiteAdmin() bool { 17905 if u == nil || u.SiteAdmin == nil { 17906 return false 17907 } 17908 return *u.SiteAdmin 17909 } 17910 17911 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 17912 func (u *User) GetStarredURL() string { 17913 if u == nil || u.StarredURL == nil { 17914 return "" 17915 } 17916 return *u.StarredURL 17917 } 17918 17919 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 17920 func (u *User) GetSubscriptionsURL() string { 17921 if u == nil || u.SubscriptionsURL == nil { 17922 return "" 17923 } 17924 return *u.SubscriptionsURL 17925 } 17926 17927 // GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise. 17928 func (u *User) GetSuspendedAt() Timestamp { 17929 if u == nil || u.SuspendedAt == nil { 17930 return Timestamp{} 17931 } 17932 return *u.SuspendedAt 17933 } 17934 17935 // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 17936 func (u *User) GetTotalPrivateRepos() int { 17937 if u == nil || u.TotalPrivateRepos == nil { 17938 return 0 17939 } 17940 return *u.TotalPrivateRepos 17941 } 17942 17943 // GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. 17944 func (u *User) GetTwitterUsername() string { 17945 if u == nil || u.TwitterUsername == nil { 17946 return "" 17947 } 17948 return *u.TwitterUsername 17949 } 17950 17951 // GetTwoFactorAuthentication returns the TwoFactorAuthentication field if it's non-nil, zero value otherwise. 17952 func (u *User) GetTwoFactorAuthentication() bool { 17953 if u == nil || u.TwoFactorAuthentication == nil { 17954 return false 17955 } 17956 return *u.TwoFactorAuthentication 17957 } 17958 17959 // GetType returns the Type field if it's non-nil, zero value otherwise. 17960 func (u *User) GetType() string { 17961 if u == nil || u.Type == nil { 17962 return "" 17963 } 17964 return *u.Type 17965 } 17966 17967 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 17968 func (u *User) GetUpdatedAt() Timestamp { 17969 if u == nil || u.UpdatedAt == nil { 17970 return Timestamp{} 17971 } 17972 return *u.UpdatedAt 17973 } 17974 17975 // GetURL returns the URL field if it's non-nil, zero value otherwise. 17976 func (u *User) GetURL() string { 17977 if u == nil || u.URL == nil { 17978 return "" 17979 } 17980 return *u.URL 17981 } 17982 17983 // GetApp returns the App field. 17984 func (u *UserAuthorization) GetApp() *OAuthAPP { 17985 if u == nil { 17986 return nil 17987 } 17988 return u.App 17989 } 17990 17991 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 17992 func (u *UserAuthorization) GetCreatedAt() Timestamp { 17993 if u == nil || u.CreatedAt == nil { 17994 return Timestamp{} 17995 } 17996 return *u.CreatedAt 17997 } 17998 17999 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 18000 func (u *UserAuthorization) GetFingerprint() string { 18001 if u == nil || u.Fingerprint == nil { 18002 return "" 18003 } 18004 return *u.Fingerprint 18005 } 18006 18007 // GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. 18008 func (u *UserAuthorization) GetHashedToken() string { 18009 if u == nil || u.HashedToken == nil { 18010 return "" 18011 } 18012 return *u.HashedToken 18013 } 18014 18015 // GetID returns the ID field if it's non-nil, zero value otherwise. 18016 func (u *UserAuthorization) GetID() int64 { 18017 if u == nil || u.ID == nil { 18018 return 0 18019 } 18020 return *u.ID 18021 } 18022 18023 // GetNote returns the Note field if it's non-nil, zero value otherwise. 18024 func (u *UserAuthorization) GetNote() string { 18025 if u == nil || u.Note == nil { 18026 return "" 18027 } 18028 return *u.Note 18029 } 18030 18031 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 18032 func (u *UserAuthorization) GetNoteURL() string { 18033 if u == nil || u.NoteURL == nil { 18034 return "" 18035 } 18036 return *u.NoteURL 18037 } 18038 18039 // GetToken returns the Token field if it's non-nil, zero value otherwise. 18040 func (u *UserAuthorization) GetToken() string { 18041 if u == nil || u.Token == nil { 18042 return "" 18043 } 18044 return *u.Token 18045 } 18046 18047 // GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. 18048 func (u *UserAuthorization) GetTokenLastEight() string { 18049 if u == nil || u.TokenLastEight == nil { 18050 return "" 18051 } 18052 return *u.TokenLastEight 18053 } 18054 18055 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 18056 func (u *UserAuthorization) GetUpdatedAt() Timestamp { 18057 if u == nil || u.UpdatedAt == nil { 18058 return Timestamp{} 18059 } 18060 return *u.UpdatedAt 18061 } 18062 18063 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18064 func (u *UserAuthorization) GetURL() string { 18065 if u == nil || u.URL == nil { 18066 return "" 18067 } 18068 return *u.URL 18069 } 18070 18071 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 18072 func (u *UserContext) GetMessage() string { 18073 if u == nil || u.Message == nil { 18074 return "" 18075 } 18076 return *u.Message 18077 } 18078 18079 // GetOcticon returns the Octicon field if it's non-nil, zero value otherwise. 18080 func (u *UserContext) GetOcticon() string { 18081 if u == nil || u.Octicon == nil { 18082 return "" 18083 } 18084 return *u.Octicon 18085 } 18086 18087 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 18088 func (u *UserEmail) GetEmail() string { 18089 if u == nil || u.Email == nil { 18090 return "" 18091 } 18092 return *u.Email 18093 } 18094 18095 // GetPrimary returns the Primary field if it's non-nil, zero value otherwise. 18096 func (u *UserEmail) GetPrimary() bool { 18097 if u == nil || u.Primary == nil { 18098 return false 18099 } 18100 return *u.Primary 18101 } 18102 18103 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 18104 func (u *UserEmail) GetVerified() bool { 18105 if u == nil || u.Verified == nil { 18106 return false 18107 } 18108 return *u.Verified 18109 } 18110 18111 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 18112 func (u *UserEmail) GetVisibility() string { 18113 if u == nil || u.Visibility == nil { 18114 return "" 18115 } 18116 return *u.Visibility 18117 } 18118 18119 // GetAction returns the Action field if it's non-nil, zero value otherwise. 18120 func (u *UserEvent) GetAction() string { 18121 if u == nil || u.Action == nil { 18122 return "" 18123 } 18124 return *u.Action 18125 } 18126 18127 // GetEnterprise returns the Enterprise field. 18128 func (u *UserEvent) GetEnterprise() *Enterprise { 18129 if u == nil { 18130 return nil 18131 } 18132 return u.Enterprise 18133 } 18134 18135 // GetInstallation returns the Installation field. 18136 func (u *UserEvent) GetInstallation() *Installation { 18137 if u == nil { 18138 return nil 18139 } 18140 return u.Installation 18141 } 18142 18143 // GetSender returns the Sender field. 18144 func (u *UserEvent) GetSender() *User { 18145 if u == nil { 18146 return nil 18147 } 18148 return u.Sender 18149 } 18150 18151 // GetUser returns the User field. 18152 func (u *UserEvent) GetUser() *User { 18153 if u == nil { 18154 return nil 18155 } 18156 return u.User 18157 } 18158 18159 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 18160 func (u *UserLDAPMapping) GetAvatarURL() string { 18161 if u == nil || u.AvatarURL == nil { 18162 return "" 18163 } 18164 return *u.AvatarURL 18165 } 18166 18167 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 18168 func (u *UserLDAPMapping) GetEventsURL() string { 18169 if u == nil || u.EventsURL == nil { 18170 return "" 18171 } 18172 return *u.EventsURL 18173 } 18174 18175 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 18176 func (u *UserLDAPMapping) GetFollowersURL() string { 18177 if u == nil || u.FollowersURL == nil { 18178 return "" 18179 } 18180 return *u.FollowersURL 18181 } 18182 18183 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 18184 func (u *UserLDAPMapping) GetFollowingURL() string { 18185 if u == nil || u.FollowingURL == nil { 18186 return "" 18187 } 18188 return *u.FollowingURL 18189 } 18190 18191 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 18192 func (u *UserLDAPMapping) GetGistsURL() string { 18193 if u == nil || u.GistsURL == nil { 18194 return "" 18195 } 18196 return *u.GistsURL 18197 } 18198 18199 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 18200 func (u *UserLDAPMapping) GetGravatarID() string { 18201 if u == nil || u.GravatarID == nil { 18202 return "" 18203 } 18204 return *u.GravatarID 18205 } 18206 18207 // GetID returns the ID field if it's non-nil, zero value otherwise. 18208 func (u *UserLDAPMapping) GetID() int64 { 18209 if u == nil || u.ID == nil { 18210 return 0 18211 } 18212 return *u.ID 18213 } 18214 18215 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 18216 func (u *UserLDAPMapping) GetLDAPDN() string { 18217 if u == nil || u.LDAPDN == nil { 18218 return "" 18219 } 18220 return *u.LDAPDN 18221 } 18222 18223 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 18224 func (u *UserLDAPMapping) GetLogin() string { 18225 if u == nil || u.Login == nil { 18226 return "" 18227 } 18228 return *u.Login 18229 } 18230 18231 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 18232 func (u *UserLDAPMapping) GetOrganizationsURL() string { 18233 if u == nil || u.OrganizationsURL == nil { 18234 return "" 18235 } 18236 return *u.OrganizationsURL 18237 } 18238 18239 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 18240 func (u *UserLDAPMapping) GetReceivedEventsURL() string { 18241 if u == nil || u.ReceivedEventsURL == nil { 18242 return "" 18243 } 18244 return *u.ReceivedEventsURL 18245 } 18246 18247 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 18248 func (u *UserLDAPMapping) GetReposURL() string { 18249 if u == nil || u.ReposURL == nil { 18250 return "" 18251 } 18252 return *u.ReposURL 18253 } 18254 18255 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 18256 func (u *UserLDAPMapping) GetSiteAdmin() bool { 18257 if u == nil || u.SiteAdmin == nil { 18258 return false 18259 } 18260 return *u.SiteAdmin 18261 } 18262 18263 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 18264 func (u *UserLDAPMapping) GetStarredURL() string { 18265 if u == nil || u.StarredURL == nil { 18266 return "" 18267 } 18268 return *u.StarredURL 18269 } 18270 18271 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 18272 func (u *UserLDAPMapping) GetSubscriptionsURL() string { 18273 if u == nil || u.SubscriptionsURL == nil { 18274 return "" 18275 } 18276 return *u.SubscriptionsURL 18277 } 18278 18279 // GetType returns the Type field if it's non-nil, zero value otherwise. 18280 func (u *UserLDAPMapping) GetType() string { 18281 if u == nil || u.Type == nil { 18282 return "" 18283 } 18284 return *u.Type 18285 } 18286 18287 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18288 func (u *UserLDAPMapping) GetURL() string { 18289 if u == nil || u.URL == nil { 18290 return "" 18291 } 18292 return *u.URL 18293 } 18294 18295 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 18296 func (u *UserMigration) GetCreatedAt() string { 18297 if u == nil || u.CreatedAt == nil { 18298 return "" 18299 } 18300 return *u.CreatedAt 18301 } 18302 18303 // GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 18304 func (u *UserMigration) GetExcludeAttachments() bool { 18305 if u == nil || u.ExcludeAttachments == nil { 18306 return false 18307 } 18308 return *u.ExcludeAttachments 18309 } 18310 18311 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 18312 func (u *UserMigration) GetGUID() string { 18313 if u == nil || u.GUID == nil { 18314 return "" 18315 } 18316 return *u.GUID 18317 } 18318 18319 // GetID returns the ID field if it's non-nil, zero value otherwise. 18320 func (u *UserMigration) GetID() int64 { 18321 if u == nil || u.ID == nil { 18322 return 0 18323 } 18324 return *u.ID 18325 } 18326 18327 // GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 18328 func (u *UserMigration) GetLockRepositories() bool { 18329 if u == nil || u.LockRepositories == nil { 18330 return false 18331 } 18332 return *u.LockRepositories 18333 } 18334 18335 // GetState returns the State field if it's non-nil, zero value otherwise. 18336 func (u *UserMigration) GetState() string { 18337 if u == nil || u.State == nil { 18338 return "" 18339 } 18340 return *u.State 18341 } 18342 18343 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 18344 func (u *UserMigration) GetUpdatedAt() string { 18345 if u == nil || u.UpdatedAt == nil { 18346 return "" 18347 } 18348 return *u.UpdatedAt 18349 } 18350 18351 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18352 func (u *UserMigration) GetURL() string { 18353 if u == nil || u.URL == nil { 18354 return "" 18355 } 18356 return *u.URL 18357 } 18358 18359 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 18360 func (u *UsersSearchResult) GetIncompleteResults() bool { 18361 if u == nil || u.IncompleteResults == nil { 18362 return false 18363 } 18364 return *u.IncompleteResults 18365 } 18366 18367 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 18368 func (u *UsersSearchResult) GetTotal() int { 18369 if u == nil || u.Total == nil { 18370 return 0 18371 } 18372 return *u.Total 18373 } 18374 18375 // GetAdminUsers returns the AdminUsers field if it's non-nil, zero value otherwise. 18376 func (u *UserStats) GetAdminUsers() int { 18377 if u == nil || u.AdminUsers == nil { 18378 return 0 18379 } 18380 return *u.AdminUsers 18381 } 18382 18383 // GetSuspendedUsers returns the SuspendedUsers field if it's non-nil, zero value otherwise. 18384 func (u *UserStats) GetSuspendedUsers() int { 18385 if u == nil || u.SuspendedUsers == nil { 18386 return 0 18387 } 18388 return *u.SuspendedUsers 18389 } 18390 18391 // GetTotalUsers returns the TotalUsers field if it's non-nil, zero value otherwise. 18392 func (u *UserStats) GetTotalUsers() int { 18393 if u == nil || u.TotalUsers == nil { 18394 return 0 18395 } 18396 return *u.TotalUsers 18397 } 18398 18399 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 18400 func (u *UserSuspendOptions) GetReason() string { 18401 if u == nil || u.Reason == nil { 18402 return "" 18403 } 18404 return *u.Reason 18405 } 18406 18407 // GetAction returns the Action field if it's non-nil, zero value otherwise. 18408 func (w *WatchEvent) GetAction() string { 18409 if w == nil || w.Action == nil { 18410 return "" 18411 } 18412 return *w.Action 18413 } 18414 18415 // GetInstallation returns the Installation field. 18416 func (w *WatchEvent) GetInstallation() *Installation { 18417 if w == nil { 18418 return nil 18419 } 18420 return w.Installation 18421 } 18422 18423 // GetRepo returns the Repo field. 18424 func (w *WatchEvent) GetRepo() *Repository { 18425 if w == nil { 18426 return nil 18427 } 18428 return w.Repo 18429 } 18430 18431 // GetSender returns the Sender field. 18432 func (w *WatchEvent) GetSender() *User { 18433 if w == nil { 18434 return nil 18435 } 18436 return w.Sender 18437 } 18438 18439 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 18440 func (w *WebHookAuthor) GetEmail() string { 18441 if w == nil || w.Email == nil { 18442 return "" 18443 } 18444 return *w.Email 18445 } 18446 18447 // GetName returns the Name field if it's non-nil, zero value otherwise. 18448 func (w *WebHookAuthor) GetName() string { 18449 if w == nil || w.Name == nil { 18450 return "" 18451 } 18452 return *w.Name 18453 } 18454 18455 // GetUsername returns the Username field if it's non-nil, zero value otherwise. 18456 func (w *WebHookAuthor) GetUsername() string { 18457 if w == nil || w.Username == nil { 18458 return "" 18459 } 18460 return *w.Username 18461 } 18462 18463 // GetAuthor returns the Author field. 18464 func (w *WebHookCommit) GetAuthor() *WebHookAuthor { 18465 if w == nil { 18466 return nil 18467 } 18468 return w.Author 18469 } 18470 18471 // GetCommitter returns the Committer field. 18472 func (w *WebHookCommit) GetCommitter() *WebHookAuthor { 18473 if w == nil { 18474 return nil 18475 } 18476 return w.Committer 18477 } 18478 18479 // GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. 18480 func (w *WebHookCommit) GetDistinct() bool { 18481 if w == nil || w.Distinct == nil { 18482 return false 18483 } 18484 return *w.Distinct 18485 } 18486 18487 // GetID returns the ID field if it's non-nil, zero value otherwise. 18488 func (w *WebHookCommit) GetID() string { 18489 if w == nil || w.ID == nil { 18490 return "" 18491 } 18492 return *w.ID 18493 } 18494 18495 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 18496 func (w *WebHookCommit) GetMessage() string { 18497 if w == nil || w.Message == nil { 18498 return "" 18499 } 18500 return *w.Message 18501 } 18502 18503 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 18504 func (w *WebHookCommit) GetTimestamp() time.Time { 18505 if w == nil || w.Timestamp == nil { 18506 return time.Time{} 18507 } 18508 return *w.Timestamp 18509 } 18510 18511 // GetAction returns the Action field if it's non-nil, zero value otherwise. 18512 func (w *WebHookPayload) GetAction() string { 18513 if w == nil || w.Action == nil { 18514 return "" 18515 } 18516 return *w.Action 18517 } 18518 18519 // GetAfter returns the After field if it's non-nil, zero value otherwise. 18520 func (w *WebHookPayload) GetAfter() string { 18521 if w == nil || w.After == nil { 18522 return "" 18523 } 18524 return *w.After 18525 } 18526 18527 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 18528 func (w *WebHookPayload) GetBefore() string { 18529 if w == nil || w.Before == nil { 18530 return "" 18531 } 18532 return *w.Before 18533 } 18534 18535 // GetCompare returns the Compare field if it's non-nil, zero value otherwise. 18536 func (w *WebHookPayload) GetCompare() string { 18537 if w == nil || w.Compare == nil { 18538 return "" 18539 } 18540 return *w.Compare 18541 } 18542 18543 // GetCreated returns the Created field if it's non-nil, zero value otherwise. 18544 func (w *WebHookPayload) GetCreated() bool { 18545 if w == nil || w.Created == nil { 18546 return false 18547 } 18548 return *w.Created 18549 } 18550 18551 // GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. 18552 func (w *WebHookPayload) GetDeleted() bool { 18553 if w == nil || w.Deleted == nil { 18554 return false 18555 } 18556 return *w.Deleted 18557 } 18558 18559 // GetForced returns the Forced field if it's non-nil, zero value otherwise. 18560 func (w *WebHookPayload) GetForced() bool { 18561 if w == nil || w.Forced == nil { 18562 return false 18563 } 18564 return *w.Forced 18565 } 18566 18567 // GetHeadCommit returns the HeadCommit field. 18568 func (w *WebHookPayload) GetHeadCommit() *WebHookCommit { 18569 if w == nil { 18570 return nil 18571 } 18572 return w.HeadCommit 18573 } 18574 18575 // GetInstallation returns the Installation field. 18576 func (w *WebHookPayload) GetInstallation() *Installation { 18577 if w == nil { 18578 return nil 18579 } 18580 return w.Installation 18581 } 18582 18583 // GetOrganization returns the Organization field. 18584 func (w *WebHookPayload) GetOrganization() *Organization { 18585 if w == nil { 18586 return nil 18587 } 18588 return w.Organization 18589 } 18590 18591 // GetPusher returns the Pusher field. 18592 func (w *WebHookPayload) GetPusher() *User { 18593 if w == nil { 18594 return nil 18595 } 18596 return w.Pusher 18597 } 18598 18599 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 18600 func (w *WebHookPayload) GetRef() string { 18601 if w == nil || w.Ref == nil { 18602 return "" 18603 } 18604 return *w.Ref 18605 } 18606 18607 // GetRepo returns the Repo field. 18608 func (w *WebHookPayload) GetRepo() *Repository { 18609 if w == nil { 18610 return nil 18611 } 18612 return w.Repo 18613 } 18614 18615 // GetSender returns the Sender field. 18616 func (w *WebHookPayload) GetSender() *User { 18617 if w == nil { 18618 return nil 18619 } 18620 return w.Sender 18621 } 18622 18623 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 18624 func (w *WeeklyCommitActivity) GetTotal() int { 18625 if w == nil || w.Total == nil { 18626 return 0 18627 } 18628 return *w.Total 18629 } 18630 18631 // GetWeek returns the Week field if it's non-nil, zero value otherwise. 18632 func (w *WeeklyCommitActivity) GetWeek() Timestamp { 18633 if w == nil || w.Week == nil { 18634 return Timestamp{} 18635 } 18636 return *w.Week 18637 } 18638 18639 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 18640 func (w *WeeklyStats) GetAdditions() int { 18641 if w == nil || w.Additions == nil { 18642 return 0 18643 } 18644 return *w.Additions 18645 } 18646 18647 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 18648 func (w *WeeklyStats) GetCommits() int { 18649 if w == nil || w.Commits == nil { 18650 return 0 18651 } 18652 return *w.Commits 18653 } 18654 18655 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 18656 func (w *WeeklyStats) GetDeletions() int { 18657 if w == nil || w.Deletions == nil { 18658 return 0 18659 } 18660 return *w.Deletions 18661 } 18662 18663 // GetWeek returns the Week field if it's non-nil, zero value otherwise. 18664 func (w *WeeklyStats) GetWeek() Timestamp { 18665 if w == nil || w.Week == nil { 18666 return Timestamp{} 18667 } 18668 return *w.Week 18669 } 18670 18671 // GetBadgeURL returns the BadgeURL field if it's non-nil, zero value otherwise. 18672 func (w *Workflow) GetBadgeURL() string { 18673 if w == nil || w.BadgeURL == nil { 18674 return "" 18675 } 18676 return *w.BadgeURL 18677 } 18678 18679 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 18680 func (w *Workflow) GetCreatedAt() Timestamp { 18681 if w == nil || w.CreatedAt == nil { 18682 return Timestamp{} 18683 } 18684 return *w.CreatedAt 18685 } 18686 18687 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 18688 func (w *Workflow) GetHTMLURL() string { 18689 if w == nil || w.HTMLURL == nil { 18690 return "" 18691 } 18692 return *w.HTMLURL 18693 } 18694 18695 // GetID returns the ID field if it's non-nil, zero value otherwise. 18696 func (w *Workflow) GetID() int64 { 18697 if w == nil || w.ID == nil { 18698 return 0 18699 } 18700 return *w.ID 18701 } 18702 18703 // GetName returns the Name field if it's non-nil, zero value otherwise. 18704 func (w *Workflow) GetName() string { 18705 if w == nil || w.Name == nil { 18706 return "" 18707 } 18708 return *w.Name 18709 } 18710 18711 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 18712 func (w *Workflow) GetNodeID() string { 18713 if w == nil || w.NodeID == nil { 18714 return "" 18715 } 18716 return *w.NodeID 18717 } 18718 18719 // GetPath returns the Path field if it's non-nil, zero value otherwise. 18720 func (w *Workflow) GetPath() string { 18721 if w == nil || w.Path == nil { 18722 return "" 18723 } 18724 return *w.Path 18725 } 18726 18727 // GetState returns the State field if it's non-nil, zero value otherwise. 18728 func (w *Workflow) GetState() string { 18729 if w == nil || w.State == nil { 18730 return "" 18731 } 18732 return *w.State 18733 } 18734 18735 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 18736 func (w *Workflow) GetUpdatedAt() Timestamp { 18737 if w == nil || w.UpdatedAt == nil { 18738 return Timestamp{} 18739 } 18740 return *w.UpdatedAt 18741 } 18742 18743 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18744 func (w *Workflow) GetURL() string { 18745 if w == nil || w.URL == nil { 18746 return "" 18747 } 18748 return *w.URL 18749 } 18750 18751 // GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise. 18752 func (w *WorkflowBill) GetTotalMS() int64 { 18753 if w == nil || w.TotalMS == nil { 18754 return 0 18755 } 18756 return *w.TotalMS 18757 } 18758 18759 // GetInstallation returns the Installation field. 18760 func (w *WorkflowDispatchEvent) GetInstallation() *Installation { 18761 if w == nil { 18762 return nil 18763 } 18764 return w.Installation 18765 } 18766 18767 // GetOrg returns the Org field. 18768 func (w *WorkflowDispatchEvent) GetOrg() *Organization { 18769 if w == nil { 18770 return nil 18771 } 18772 return w.Org 18773 } 18774 18775 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 18776 func (w *WorkflowDispatchEvent) GetRef() string { 18777 if w == nil || w.Ref == nil { 18778 return "" 18779 } 18780 return *w.Ref 18781 } 18782 18783 // GetRepo returns the Repo field. 18784 func (w *WorkflowDispatchEvent) GetRepo() *Repository { 18785 if w == nil { 18786 return nil 18787 } 18788 return w.Repo 18789 } 18790 18791 // GetSender returns the Sender field. 18792 func (w *WorkflowDispatchEvent) GetSender() *User { 18793 if w == nil { 18794 return nil 18795 } 18796 return w.Sender 18797 } 18798 18799 // GetWorkflow returns the Workflow field if it's non-nil, zero value otherwise. 18800 func (w *WorkflowDispatchEvent) GetWorkflow() string { 18801 if w == nil || w.Workflow == nil { 18802 return "" 18803 } 18804 return *w.Workflow 18805 } 18806 18807 // GetMacOS returns the MacOS field. 18808 func (w *WorkflowEnvironment) GetMacOS() *WorkflowBill { 18809 if w == nil { 18810 return nil 18811 } 18812 return w.MacOS 18813 } 18814 18815 // GetUbuntu returns the Ubuntu field. 18816 func (w *WorkflowEnvironment) GetUbuntu() *WorkflowBill { 18817 if w == nil { 18818 return nil 18819 } 18820 return w.Ubuntu 18821 } 18822 18823 // GetWindows returns the Windows field. 18824 func (w *WorkflowEnvironment) GetWindows() *WorkflowBill { 18825 if w == nil { 18826 return nil 18827 } 18828 return w.Windows 18829 } 18830 18831 // GetCheckRunURL returns the CheckRunURL field if it's non-nil, zero value otherwise. 18832 func (w *WorkflowJob) GetCheckRunURL() string { 18833 if w == nil || w.CheckRunURL == nil { 18834 return "" 18835 } 18836 return *w.CheckRunURL 18837 } 18838 18839 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 18840 func (w *WorkflowJob) GetCompletedAt() Timestamp { 18841 if w == nil || w.CompletedAt == nil { 18842 return Timestamp{} 18843 } 18844 return *w.CompletedAt 18845 } 18846 18847 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 18848 func (w *WorkflowJob) GetConclusion() string { 18849 if w == nil || w.Conclusion == nil { 18850 return "" 18851 } 18852 return *w.Conclusion 18853 } 18854 18855 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 18856 func (w *WorkflowJob) GetHeadSHA() string { 18857 if w == nil || w.HeadSHA == nil { 18858 return "" 18859 } 18860 return *w.HeadSHA 18861 } 18862 18863 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 18864 func (w *WorkflowJob) GetHTMLURL() string { 18865 if w == nil || w.HTMLURL == nil { 18866 return "" 18867 } 18868 return *w.HTMLURL 18869 } 18870 18871 // GetID returns the ID field if it's non-nil, zero value otherwise. 18872 func (w *WorkflowJob) GetID() int64 { 18873 if w == nil || w.ID == nil { 18874 return 0 18875 } 18876 return *w.ID 18877 } 18878 18879 // GetName returns the Name field if it's non-nil, zero value otherwise. 18880 func (w *WorkflowJob) GetName() string { 18881 if w == nil || w.Name == nil { 18882 return "" 18883 } 18884 return *w.Name 18885 } 18886 18887 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 18888 func (w *WorkflowJob) GetNodeID() string { 18889 if w == nil || w.NodeID == nil { 18890 return "" 18891 } 18892 return *w.NodeID 18893 } 18894 18895 // GetRunID returns the RunID field if it's non-nil, zero value otherwise. 18896 func (w *WorkflowJob) GetRunID() int64 { 18897 if w == nil || w.RunID == nil { 18898 return 0 18899 } 18900 return *w.RunID 18901 } 18902 18903 // GetRunnerGroupID returns the RunnerGroupID field if it's non-nil, zero value otherwise. 18904 func (w *WorkflowJob) GetRunnerGroupID() int64 { 18905 if w == nil || w.RunnerGroupID == nil { 18906 return 0 18907 } 18908 return *w.RunnerGroupID 18909 } 18910 18911 // GetRunnerGroupName returns the RunnerGroupName field if it's non-nil, zero value otherwise. 18912 func (w *WorkflowJob) GetRunnerGroupName() string { 18913 if w == nil || w.RunnerGroupName == nil { 18914 return "" 18915 } 18916 return *w.RunnerGroupName 18917 } 18918 18919 // GetRunnerID returns the RunnerID field if it's non-nil, zero value otherwise. 18920 func (w *WorkflowJob) GetRunnerID() int64 { 18921 if w == nil || w.RunnerID == nil { 18922 return 0 18923 } 18924 return *w.RunnerID 18925 } 18926 18927 // GetRunnerName returns the RunnerName field if it's non-nil, zero value otherwise. 18928 func (w *WorkflowJob) GetRunnerName() string { 18929 if w == nil || w.RunnerName == nil { 18930 return "" 18931 } 18932 return *w.RunnerName 18933 } 18934 18935 // GetRunURL returns the RunURL field if it's non-nil, zero value otherwise. 18936 func (w *WorkflowJob) GetRunURL() string { 18937 if w == nil || w.RunURL == nil { 18938 return "" 18939 } 18940 return *w.RunURL 18941 } 18942 18943 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 18944 func (w *WorkflowJob) GetStartedAt() Timestamp { 18945 if w == nil || w.StartedAt == nil { 18946 return Timestamp{} 18947 } 18948 return *w.StartedAt 18949 } 18950 18951 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 18952 func (w *WorkflowJob) GetStatus() string { 18953 if w == nil || w.Status == nil { 18954 return "" 18955 } 18956 return *w.Status 18957 } 18958 18959 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18960 func (w *WorkflowJob) GetURL() string { 18961 if w == nil || w.URL == nil { 18962 return "" 18963 } 18964 return *w.URL 18965 } 18966 18967 // GetAction returns the Action field if it's non-nil, zero value otherwise. 18968 func (w *WorkflowJobEvent) GetAction() string { 18969 if w == nil || w.Action == nil { 18970 return "" 18971 } 18972 return *w.Action 18973 } 18974 18975 // GetInstallation returns the Installation field. 18976 func (w *WorkflowJobEvent) GetInstallation() *Installation { 18977 if w == nil { 18978 return nil 18979 } 18980 return w.Installation 18981 } 18982 18983 // GetOrg returns the Org field. 18984 func (w *WorkflowJobEvent) GetOrg() *Organization { 18985 if w == nil { 18986 return nil 18987 } 18988 return w.Org 18989 } 18990 18991 // GetRepo returns the Repo field. 18992 func (w *WorkflowJobEvent) GetRepo() *Repository { 18993 if w == nil { 18994 return nil 18995 } 18996 return w.Repo 18997 } 18998 18999 // GetSender returns the Sender field. 19000 func (w *WorkflowJobEvent) GetSender() *User { 19001 if w == nil { 19002 return nil 19003 } 19004 return w.Sender 19005 } 19006 19007 // GetWorkflowJob returns the WorkflowJob field. 19008 func (w *WorkflowJobEvent) GetWorkflowJob() *WorkflowJob { 19009 if w == nil { 19010 return nil 19011 } 19012 return w.WorkflowJob 19013 } 19014 19015 // GetArtifactsURL returns the ArtifactsURL field if it's non-nil, zero value otherwise. 19016 func (w *WorkflowRun) GetArtifactsURL() string { 19017 if w == nil || w.ArtifactsURL == nil { 19018 return "" 19019 } 19020 return *w.ArtifactsURL 19021 } 19022 19023 // GetCancelURL returns the CancelURL field if it's non-nil, zero value otherwise. 19024 func (w *WorkflowRun) GetCancelURL() string { 19025 if w == nil || w.CancelURL == nil { 19026 return "" 19027 } 19028 return *w.CancelURL 19029 } 19030 19031 // GetCheckSuiteID returns the CheckSuiteID field if it's non-nil, zero value otherwise. 19032 func (w *WorkflowRun) GetCheckSuiteID() int64 { 19033 if w == nil || w.CheckSuiteID == nil { 19034 return 0 19035 } 19036 return *w.CheckSuiteID 19037 } 19038 19039 // GetCheckSuiteNodeID returns the CheckSuiteNodeID field if it's non-nil, zero value otherwise. 19040 func (w *WorkflowRun) GetCheckSuiteNodeID() string { 19041 if w == nil || w.CheckSuiteNodeID == nil { 19042 return "" 19043 } 19044 return *w.CheckSuiteNodeID 19045 } 19046 19047 // GetCheckSuiteURL returns the CheckSuiteURL field if it's non-nil, zero value otherwise. 19048 func (w *WorkflowRun) GetCheckSuiteURL() string { 19049 if w == nil || w.CheckSuiteURL == nil { 19050 return "" 19051 } 19052 return *w.CheckSuiteURL 19053 } 19054 19055 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 19056 func (w *WorkflowRun) GetConclusion() string { 19057 if w == nil || w.Conclusion == nil { 19058 return "" 19059 } 19060 return *w.Conclusion 19061 } 19062 19063 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 19064 func (w *WorkflowRun) GetCreatedAt() Timestamp { 19065 if w == nil || w.CreatedAt == nil { 19066 return Timestamp{} 19067 } 19068 return *w.CreatedAt 19069 } 19070 19071 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 19072 func (w *WorkflowRun) GetEvent() string { 19073 if w == nil || w.Event == nil { 19074 return "" 19075 } 19076 return *w.Event 19077 } 19078 19079 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 19080 func (w *WorkflowRun) GetHeadBranch() string { 19081 if w == nil || w.HeadBranch == nil { 19082 return "" 19083 } 19084 return *w.HeadBranch 19085 } 19086 19087 // GetHeadCommit returns the HeadCommit field. 19088 func (w *WorkflowRun) GetHeadCommit() *HeadCommit { 19089 if w == nil { 19090 return nil 19091 } 19092 return w.HeadCommit 19093 } 19094 19095 // GetHeadRepository returns the HeadRepository field. 19096 func (w *WorkflowRun) GetHeadRepository() *Repository { 19097 if w == nil { 19098 return nil 19099 } 19100 return w.HeadRepository 19101 } 19102 19103 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 19104 func (w *WorkflowRun) GetHeadSHA() string { 19105 if w == nil || w.HeadSHA == nil { 19106 return "" 19107 } 19108 return *w.HeadSHA 19109 } 19110 19111 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 19112 func (w *WorkflowRun) GetHTMLURL() string { 19113 if w == nil || w.HTMLURL == nil { 19114 return "" 19115 } 19116 return *w.HTMLURL 19117 } 19118 19119 // GetID returns the ID field if it's non-nil, zero value otherwise. 19120 func (w *WorkflowRun) GetID() int64 { 19121 if w == nil || w.ID == nil { 19122 return 0 19123 } 19124 return *w.ID 19125 } 19126 19127 // GetJobsURL returns the JobsURL field if it's non-nil, zero value otherwise. 19128 func (w *WorkflowRun) GetJobsURL() string { 19129 if w == nil || w.JobsURL == nil { 19130 return "" 19131 } 19132 return *w.JobsURL 19133 } 19134 19135 // GetLogsURL returns the LogsURL field if it's non-nil, zero value otherwise. 19136 func (w *WorkflowRun) GetLogsURL() string { 19137 if w == nil || w.LogsURL == nil { 19138 return "" 19139 } 19140 return *w.LogsURL 19141 } 19142 19143 // GetName returns the Name field if it's non-nil, zero value otherwise. 19144 func (w *WorkflowRun) GetName() string { 19145 if w == nil || w.Name == nil { 19146 return "" 19147 } 19148 return *w.Name 19149 } 19150 19151 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 19152 func (w *WorkflowRun) GetNodeID() string { 19153 if w == nil || w.NodeID == nil { 19154 return "" 19155 } 19156 return *w.NodeID 19157 } 19158 19159 // GetPreviousAttemptURL returns the PreviousAttemptURL field if it's non-nil, zero value otherwise. 19160 func (w *WorkflowRun) GetPreviousAttemptURL() string { 19161 if w == nil || w.PreviousAttemptURL == nil { 19162 return "" 19163 } 19164 return *w.PreviousAttemptURL 19165 } 19166 19167 // GetRepository returns the Repository field. 19168 func (w *WorkflowRun) GetRepository() *Repository { 19169 if w == nil { 19170 return nil 19171 } 19172 return w.Repository 19173 } 19174 19175 // GetRerunURL returns the RerunURL field if it's non-nil, zero value otherwise. 19176 func (w *WorkflowRun) GetRerunURL() string { 19177 if w == nil || w.RerunURL == nil { 19178 return "" 19179 } 19180 return *w.RerunURL 19181 } 19182 19183 // GetRunAttempt returns the RunAttempt field if it's non-nil, zero value otherwise. 19184 func (w *WorkflowRun) GetRunAttempt() int { 19185 if w == nil || w.RunAttempt == nil { 19186 return 0 19187 } 19188 return *w.RunAttempt 19189 } 19190 19191 // GetRunNumber returns the RunNumber field if it's non-nil, zero value otherwise. 19192 func (w *WorkflowRun) GetRunNumber() int { 19193 if w == nil || w.RunNumber == nil { 19194 return 0 19195 } 19196 return *w.RunNumber 19197 } 19198 19199 // GetRunStartedAt returns the RunStartedAt field if it's non-nil, zero value otherwise. 19200 func (w *WorkflowRun) GetRunStartedAt() Timestamp { 19201 if w == nil || w.RunStartedAt == nil { 19202 return Timestamp{} 19203 } 19204 return *w.RunStartedAt 19205 } 19206 19207 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 19208 func (w *WorkflowRun) GetStatus() string { 19209 if w == nil || w.Status == nil { 19210 return "" 19211 } 19212 return *w.Status 19213 } 19214 19215 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 19216 func (w *WorkflowRun) GetUpdatedAt() Timestamp { 19217 if w == nil || w.UpdatedAt == nil { 19218 return Timestamp{} 19219 } 19220 return *w.UpdatedAt 19221 } 19222 19223 // GetURL returns the URL field if it's non-nil, zero value otherwise. 19224 func (w *WorkflowRun) GetURL() string { 19225 if w == nil || w.URL == nil { 19226 return "" 19227 } 19228 return *w.URL 19229 } 19230 19231 // GetWorkflowID returns the WorkflowID field if it's non-nil, zero value otherwise. 19232 func (w *WorkflowRun) GetWorkflowID() int64 { 19233 if w == nil || w.WorkflowID == nil { 19234 return 0 19235 } 19236 return *w.WorkflowID 19237 } 19238 19239 // GetWorkflowURL returns the WorkflowURL field if it's non-nil, zero value otherwise. 19240 func (w *WorkflowRun) GetWorkflowURL() string { 19241 if w == nil || w.WorkflowURL == nil { 19242 return "" 19243 } 19244 return *w.WorkflowURL 19245 } 19246 19247 // GetJobs returns the Jobs field if it's non-nil, zero value otherwise. 19248 func (w *WorkflowRunBill) GetJobs() int { 19249 if w == nil || w.Jobs == nil { 19250 return 0 19251 } 19252 return *w.Jobs 19253 } 19254 19255 // GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise. 19256 func (w *WorkflowRunBill) GetTotalMS() int64 { 19257 if w == nil || w.TotalMS == nil { 19258 return 0 19259 } 19260 return *w.TotalMS 19261 } 19262 19263 // GetMacOS returns the MacOS field. 19264 func (w *WorkflowRunEnvironment) GetMacOS() *WorkflowRunBill { 19265 if w == nil { 19266 return nil 19267 } 19268 return w.MacOS 19269 } 19270 19271 // GetUbuntu returns the Ubuntu field. 19272 func (w *WorkflowRunEnvironment) GetUbuntu() *WorkflowRunBill { 19273 if w == nil { 19274 return nil 19275 } 19276 return w.Ubuntu 19277 } 19278 19279 // GetWindows returns the Windows field. 19280 func (w *WorkflowRunEnvironment) GetWindows() *WorkflowRunBill { 19281 if w == nil { 19282 return nil 19283 } 19284 return w.Windows 19285 } 19286 19287 // GetAction returns the Action field if it's non-nil, zero value otherwise. 19288 func (w *WorkflowRunEvent) GetAction() string { 19289 if w == nil || w.Action == nil { 19290 return "" 19291 } 19292 return *w.Action 19293 } 19294 19295 // GetInstallation returns the Installation field. 19296 func (w *WorkflowRunEvent) GetInstallation() *Installation { 19297 if w == nil { 19298 return nil 19299 } 19300 return w.Installation 19301 } 19302 19303 // GetOrg returns the Org field. 19304 func (w *WorkflowRunEvent) GetOrg() *Organization { 19305 if w == nil { 19306 return nil 19307 } 19308 return w.Org 19309 } 19310 19311 // GetRepo returns the Repo field. 19312 func (w *WorkflowRunEvent) GetRepo() *Repository { 19313 if w == nil { 19314 return nil 19315 } 19316 return w.Repo 19317 } 19318 19319 // GetSender returns the Sender field. 19320 func (w *WorkflowRunEvent) GetSender() *User { 19321 if w == nil { 19322 return nil 19323 } 19324 return w.Sender 19325 } 19326 19327 // GetWorkflow returns the Workflow field. 19328 func (w *WorkflowRunEvent) GetWorkflow() *Workflow { 19329 if w == nil { 19330 return nil 19331 } 19332 return w.Workflow 19333 } 19334 19335 // GetWorkflowRun returns the WorkflowRun field. 19336 func (w *WorkflowRunEvent) GetWorkflowRun() *WorkflowRun { 19337 if w == nil { 19338 return nil 19339 } 19340 return w.WorkflowRun 19341 } 19342 19343 // GetDurationMS returns the DurationMS field if it's non-nil, zero value otherwise. 19344 func (w *WorkflowRunJobRun) GetDurationMS() int64 { 19345 if w == nil || w.DurationMS == nil { 19346 return 0 19347 } 19348 return *w.DurationMS 19349 } 19350 19351 // GetJobID returns the JobID field if it's non-nil, zero value otherwise. 19352 func (w *WorkflowRunJobRun) GetJobID() int { 19353 if w == nil || w.JobID == nil { 19354 return 0 19355 } 19356 return *w.JobID 19357 } 19358 19359 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 19360 func (w *WorkflowRuns) GetTotalCount() int { 19361 if w == nil || w.TotalCount == nil { 19362 return 0 19363 } 19364 return *w.TotalCount 19365 } 19366 19367 // GetBillable returns the Billable field. 19368 func (w *WorkflowRunUsage) GetBillable() *WorkflowRunEnvironment { 19369 if w == nil { 19370 return nil 19371 } 19372 return w.Billable 19373 } 19374 19375 // GetRunDurationMS returns the RunDurationMS field if it's non-nil, zero value otherwise. 19376 func (w *WorkflowRunUsage) GetRunDurationMS() int64 { 19377 if w == nil || w.RunDurationMS == nil { 19378 return 0 19379 } 19380 return *w.RunDurationMS 19381 } 19382 19383 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 19384 func (w *Workflows) GetTotalCount() int { 19385 if w == nil || w.TotalCount == nil { 19386 return 0 19387 } 19388 return *w.TotalCount 19389 } 19390 19391 // GetBillable returns the Billable field. 19392 func (w *WorkflowUsage) GetBillable() *WorkflowEnvironment { 19393 if w == nil { 19394 return nil 19395 } 19396 return w.Billable 19397 }