github.com/google/go-github/v49@v49.1.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 // Instead, please run "go generate ./..." as described here: 8 // https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch 9 10 package github 11 12 import ( 13 "encoding/json" 14 "time" 15 ) 16 17 // GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise. 18 func (a *AbuseRateLimitError) GetRetryAfter() time.Duration { 19 if a == nil || a.RetryAfter == nil { 20 return 0 21 } 22 return *a.RetryAfter 23 } 24 25 // GetGithubOwnedAllowed returns the GithubOwnedAllowed field if it's non-nil, zero value otherwise. 26 func (a *ActionsAllowed) GetGithubOwnedAllowed() bool { 27 if a == nil || a.GithubOwnedAllowed == nil { 28 return false 29 } 30 return *a.GithubOwnedAllowed 31 } 32 33 // GetVerifiedAllowed returns the VerifiedAllowed field if it's non-nil, zero value otherwise. 34 func (a *ActionsAllowed) GetVerifiedAllowed() bool { 35 if a == nil || a.VerifiedAllowed == nil { 36 return false 37 } 38 return *a.VerifiedAllowed 39 } 40 41 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 42 func (a *ActionsCache) GetCreatedAt() Timestamp { 43 if a == nil || a.CreatedAt == nil { 44 return Timestamp{} 45 } 46 return *a.CreatedAt 47 } 48 49 // GetID returns the ID field if it's non-nil, zero value otherwise. 50 func (a *ActionsCache) GetID() int64 { 51 if a == nil || a.ID == nil { 52 return 0 53 } 54 return *a.ID 55 } 56 57 // GetKey returns the Key field if it's non-nil, zero value otherwise. 58 func (a *ActionsCache) GetKey() string { 59 if a == nil || a.Key == nil { 60 return "" 61 } 62 return *a.Key 63 } 64 65 // GetLastAccessedAt returns the LastAccessedAt field if it's non-nil, zero value otherwise. 66 func (a *ActionsCache) GetLastAccessedAt() Timestamp { 67 if a == nil || a.LastAccessedAt == nil { 68 return Timestamp{} 69 } 70 return *a.LastAccessedAt 71 } 72 73 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 74 func (a *ActionsCache) GetRef() string { 75 if a == nil || a.Ref == nil { 76 return "" 77 } 78 return *a.Ref 79 } 80 81 // GetSizeInBytes returns the SizeInBytes field if it's non-nil, zero value otherwise. 82 func (a *ActionsCache) GetSizeInBytes() int64 { 83 if a == nil || a.SizeInBytes == nil { 84 return 0 85 } 86 return *a.SizeInBytes 87 } 88 89 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 90 func (a *ActionsCache) GetVersion() string { 91 if a == nil || a.Version == nil { 92 return "" 93 } 94 return *a.Version 95 } 96 97 // GetDirection returns the Direction field if it's non-nil, zero value otherwise. 98 func (a *ActionsCacheListOptions) GetDirection() string { 99 if a == nil || a.Direction == nil { 100 return "" 101 } 102 return *a.Direction 103 } 104 105 // GetKey returns the Key field if it's non-nil, zero value otherwise. 106 func (a *ActionsCacheListOptions) GetKey() string { 107 if a == nil || a.Key == nil { 108 return "" 109 } 110 return *a.Key 111 } 112 113 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 114 func (a *ActionsCacheListOptions) GetRef() string { 115 if a == nil || a.Ref == nil { 116 return "" 117 } 118 return *a.Ref 119 } 120 121 // GetSort returns the Sort field if it's non-nil, zero value otherwise. 122 func (a *ActionsCacheListOptions) GetSort() string { 123 if a == nil || a.Sort == nil { 124 return "" 125 } 126 return *a.Sort 127 } 128 129 // GetAllowedActions returns the AllowedActions field if it's non-nil, zero value otherwise. 130 func (a *ActionsPermissions) GetAllowedActions() string { 131 if a == nil || a.AllowedActions == nil { 132 return "" 133 } 134 return *a.AllowedActions 135 } 136 137 // GetEnabledRepositories returns the EnabledRepositories field if it's non-nil, zero value otherwise. 138 func (a *ActionsPermissions) GetEnabledRepositories() string { 139 if a == nil || a.EnabledRepositories == nil { 140 return "" 141 } 142 return *a.EnabledRepositories 143 } 144 145 // GetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise. 146 func (a *ActionsPermissions) GetSelectedActionsURL() string { 147 if a == nil || a.SelectedActionsURL == nil { 148 return "" 149 } 150 return *a.SelectedActionsURL 151 } 152 153 // GetAllowedActions returns the AllowedActions field if it's non-nil, zero value otherwise. 154 func (a *ActionsPermissionsRepository) GetAllowedActions() string { 155 if a == nil || a.AllowedActions == nil { 156 return "" 157 } 158 return *a.AllowedActions 159 } 160 161 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 162 func (a *ActionsPermissionsRepository) GetEnabled() bool { 163 if a == nil || a.Enabled == nil { 164 return false 165 } 166 return *a.Enabled 167 } 168 169 // GetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise. 170 func (a *ActionsPermissionsRepository) GetSelectedActionsURL() string { 171 if a == nil || a.SelectedActionsURL == nil { 172 return "" 173 } 174 return *a.SelectedActionsURL 175 } 176 177 // GetFrom returns the From field if it's non-nil, zero value otherwise. 178 func (a *AdminEnforcedChanges) GetFrom() bool { 179 if a == nil || a.From == nil { 180 return false 181 } 182 return *a.From 183 } 184 185 // GetURL returns the URL field if it's non-nil, zero value otherwise. 186 func (a *AdminEnforcement) GetURL() string { 187 if a == nil || a.URL == nil { 188 return "" 189 } 190 return *a.URL 191 } 192 193 // GetComments returns the Comments field. 194 func (a *AdminStats) GetComments() *CommentStats { 195 if a == nil { 196 return nil 197 } 198 return a.Comments 199 } 200 201 // GetGists returns the Gists field. 202 func (a *AdminStats) GetGists() *GistStats { 203 if a == nil { 204 return nil 205 } 206 return a.Gists 207 } 208 209 // GetHooks returns the Hooks field. 210 func (a *AdminStats) GetHooks() *HookStats { 211 if a == nil { 212 return nil 213 } 214 return a.Hooks 215 } 216 217 // GetIssues returns the Issues field. 218 func (a *AdminStats) GetIssues() *IssueStats { 219 if a == nil { 220 return nil 221 } 222 return a.Issues 223 } 224 225 // GetMilestones returns the Milestones field. 226 func (a *AdminStats) GetMilestones() *MilestoneStats { 227 if a == nil { 228 return nil 229 } 230 return a.Milestones 231 } 232 233 // GetOrgs returns the Orgs field. 234 func (a *AdminStats) GetOrgs() *OrgStats { 235 if a == nil { 236 return nil 237 } 238 return a.Orgs 239 } 240 241 // GetPages returns the Pages field. 242 func (a *AdminStats) GetPages() *PageStats { 243 if a == nil { 244 return nil 245 } 246 return a.Pages 247 } 248 249 // GetPulls returns the Pulls field. 250 func (a *AdminStats) GetPulls() *PullStats { 251 if a == nil { 252 return nil 253 } 254 return a.Pulls 255 } 256 257 // GetRepos returns the Repos field. 258 func (a *AdminStats) GetRepos() *RepoStats { 259 if a == nil { 260 return nil 261 } 262 return a.Repos 263 } 264 265 // GetUsers returns the Users field. 266 func (a *AdminStats) GetUsers() *UserStats { 267 if a == nil { 268 return nil 269 } 270 return a.Users 271 } 272 273 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 274 func (a *AdvancedSecurity) GetStatus() string { 275 if a == nil || a.Status == nil { 276 return "" 277 } 278 return *a.Status 279 } 280 281 // GetLastPushedDate returns the LastPushedDate field if it's non-nil, zero value otherwise. 282 func (a *AdvancedSecurityCommittersBreakdown) GetLastPushedDate() string { 283 if a == nil || a.LastPushedDate == nil { 284 return "" 285 } 286 return *a.LastPushedDate 287 } 288 289 // GetUserLogin returns the UserLogin field if it's non-nil, zero value otherwise. 290 func (a *AdvancedSecurityCommittersBreakdown) GetUserLogin() string { 291 if a == nil || a.UserLogin == nil { 292 return "" 293 } 294 return *a.UserLogin 295 } 296 297 // GetScore returns the Score field. 298 func (a *AdvisoryCVSs) GetScore() *float64 { 299 if a == nil { 300 return nil 301 } 302 return a.Score 303 } 304 305 // GetVectorString returns the VectorString field if it's non-nil, zero value otherwise. 306 func (a *AdvisoryCVSs) GetVectorString() string { 307 if a == nil || a.VectorString == nil { 308 return "" 309 } 310 return *a.VectorString 311 } 312 313 // GetCWEID returns the CWEID field if it's non-nil, zero value otherwise. 314 func (a *AdvisoryCWEs) GetCWEID() string { 315 if a == nil || a.CWEID == nil { 316 return "" 317 } 318 return *a.CWEID 319 } 320 321 // GetName returns the Name field if it's non-nil, zero value otherwise. 322 func (a *AdvisoryCWEs) GetName() string { 323 if a == nil || a.Name == nil { 324 return "" 325 } 326 return *a.Name 327 } 328 329 // GetType returns the Type field if it's non-nil, zero value otherwise. 330 func (a *AdvisoryIdentifier) GetType() string { 331 if a == nil || a.Type == nil { 332 return "" 333 } 334 return *a.Type 335 } 336 337 // GetValue returns the Value field if it's non-nil, zero value otherwise. 338 func (a *AdvisoryIdentifier) GetValue() string { 339 if a == nil || a.Value == nil { 340 return "" 341 } 342 return *a.Value 343 } 344 345 // GetURL returns the URL field if it's non-nil, zero value otherwise. 346 func (a *AdvisoryReference) GetURL() string { 347 if a == nil || a.URL == nil { 348 return "" 349 } 350 return *a.URL 351 } 352 353 // GetFirstPatchedVersion returns the FirstPatchedVersion field. 354 func (a *AdvisoryVulnerability) GetFirstPatchedVersion() *FirstPatchedVersion { 355 if a == nil { 356 return nil 357 } 358 return a.FirstPatchedVersion 359 } 360 361 // GetPackage returns the Package field. 362 func (a *AdvisoryVulnerability) GetPackage() *VulnerabilityPackage { 363 if a == nil { 364 return nil 365 } 366 return a.Package 367 } 368 369 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 370 func (a *AdvisoryVulnerability) GetSeverity() string { 371 if a == nil || a.Severity == nil { 372 return "" 373 } 374 return *a.Severity 375 } 376 377 // GetVulnerableVersionRange returns the VulnerableVersionRange field if it's non-nil, zero value otherwise. 378 func (a *AdvisoryVulnerability) GetVulnerableVersionRange() string { 379 if a == nil || a.VulnerableVersionRange == nil { 380 return "" 381 } 382 return *a.VulnerableVersionRange 383 } 384 385 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 386 func (a *Alert) GetClosedAt() Timestamp { 387 if a == nil || a.ClosedAt == nil { 388 return Timestamp{} 389 } 390 return *a.ClosedAt 391 } 392 393 // GetClosedBy returns the ClosedBy field. 394 func (a *Alert) GetClosedBy() *User { 395 if a == nil { 396 return nil 397 } 398 return a.ClosedBy 399 } 400 401 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 402 func (a *Alert) GetCreatedAt() Timestamp { 403 if a == nil || a.CreatedAt == nil { 404 return Timestamp{} 405 } 406 return *a.CreatedAt 407 } 408 409 // GetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise. 410 func (a *Alert) GetDismissedAt() Timestamp { 411 if a == nil || a.DismissedAt == nil { 412 return Timestamp{} 413 } 414 return *a.DismissedAt 415 } 416 417 // GetDismissedBy returns the DismissedBy field. 418 func (a *Alert) GetDismissedBy() *User { 419 if a == nil { 420 return nil 421 } 422 return a.DismissedBy 423 } 424 425 // GetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise. 426 func (a *Alert) GetDismissedComment() string { 427 if a == nil || a.DismissedComment == nil { 428 return "" 429 } 430 return *a.DismissedComment 431 } 432 433 // GetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise. 434 func (a *Alert) GetDismissedReason() string { 435 if a == nil || a.DismissedReason == nil { 436 return "" 437 } 438 return *a.DismissedReason 439 } 440 441 // GetFixedAt returns the FixedAt field if it's non-nil, zero value otherwise. 442 func (a *Alert) GetFixedAt() Timestamp { 443 if a == nil || a.FixedAt == nil { 444 return Timestamp{} 445 } 446 return *a.FixedAt 447 } 448 449 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 450 func (a *Alert) GetHTMLURL() string { 451 if a == nil || a.HTMLURL == nil { 452 return "" 453 } 454 return *a.HTMLURL 455 } 456 457 // GetInstancesURL returns the InstancesURL field if it's non-nil, zero value otherwise. 458 func (a *Alert) GetInstancesURL() string { 459 if a == nil || a.InstancesURL == nil { 460 return "" 461 } 462 return *a.InstancesURL 463 } 464 465 // GetMostRecentInstance returns the MostRecentInstance field. 466 func (a *Alert) GetMostRecentInstance() *MostRecentInstance { 467 if a == nil { 468 return nil 469 } 470 return a.MostRecentInstance 471 } 472 473 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 474 func (a *Alert) GetNumber() int { 475 if a == nil || a.Number == nil { 476 return 0 477 } 478 return *a.Number 479 } 480 481 // GetRepository returns the Repository field. 482 func (a *Alert) GetRepository() *Repository { 483 if a == nil { 484 return nil 485 } 486 return a.Repository 487 } 488 489 // GetRule returns the Rule field. 490 func (a *Alert) GetRule() *Rule { 491 if a == nil { 492 return nil 493 } 494 return a.Rule 495 } 496 497 // GetRuleDescription returns the RuleDescription field if it's non-nil, zero value otherwise. 498 func (a *Alert) GetRuleDescription() string { 499 if a == nil || a.RuleDescription == nil { 500 return "" 501 } 502 return *a.RuleDescription 503 } 504 505 // GetRuleID returns the RuleID field if it's non-nil, zero value otherwise. 506 func (a *Alert) GetRuleID() string { 507 if a == nil || a.RuleID == nil { 508 return "" 509 } 510 return *a.RuleID 511 } 512 513 // GetRuleSeverity returns the RuleSeverity field if it's non-nil, zero value otherwise. 514 func (a *Alert) GetRuleSeverity() string { 515 if a == nil || a.RuleSeverity == nil { 516 return "" 517 } 518 return *a.RuleSeverity 519 } 520 521 // GetState returns the State field if it's non-nil, zero value otherwise. 522 func (a *Alert) GetState() string { 523 if a == nil || a.State == nil { 524 return "" 525 } 526 return *a.State 527 } 528 529 // GetTool returns the Tool field. 530 func (a *Alert) GetTool() *Tool { 531 if a == nil { 532 return nil 533 } 534 return a.Tool 535 } 536 537 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 538 func (a *Alert) GetUpdatedAt() Timestamp { 539 if a == nil || a.UpdatedAt == nil { 540 return Timestamp{} 541 } 542 return *a.UpdatedAt 543 } 544 545 // GetURL returns the URL field if it's non-nil, zero value otherwise. 546 func (a *Alert) GetURL() string { 547 if a == nil || a.URL == nil { 548 return "" 549 } 550 return *a.URL 551 } 552 553 // GetFrom returns the From field if it's non-nil, zero value otherwise. 554 func (a *AllowDeletionsEnforcementLevelChanges) GetFrom() string { 555 if a == nil || a.From == nil { 556 return "" 557 } 558 return *a.From 559 } 560 561 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 562 func (a *AllowForkSyncing) GetEnabled() bool { 563 if a == nil || a.Enabled == nil { 564 return false 565 } 566 return *a.Enabled 567 } 568 569 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 570 func (a *AnalysesListOptions) GetRef() string { 571 if a == nil || a.Ref == nil { 572 return "" 573 } 574 return *a.Ref 575 } 576 577 // GetSarifID returns the SarifID field if it's non-nil, zero value otherwise. 578 func (a *AnalysesListOptions) GetSarifID() string { 579 if a == nil || a.SarifID == nil { 580 return "" 581 } 582 return *a.SarifID 583 } 584 585 // GetSSHKeyFingerprints returns the SSHKeyFingerprints map if it's non-nil, an empty map otherwise. 586 func (a *APIMeta) GetSSHKeyFingerprints() map[string]string { 587 if a == nil || a.SSHKeyFingerprints == nil { 588 return map[string]string{} 589 } 590 return a.SSHKeyFingerprints 591 } 592 593 // GetVerifiablePasswordAuthentication returns the VerifiablePasswordAuthentication field if it's non-nil, zero value otherwise. 594 func (a *APIMeta) GetVerifiablePasswordAuthentication() bool { 595 if a == nil || a.VerifiablePasswordAuthentication == nil { 596 return false 597 } 598 return *a.VerifiablePasswordAuthentication 599 } 600 601 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 602 func (a *App) GetCreatedAt() Timestamp { 603 if a == nil || a.CreatedAt == nil { 604 return Timestamp{} 605 } 606 return *a.CreatedAt 607 } 608 609 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 610 func (a *App) GetDescription() string { 611 if a == nil || a.Description == nil { 612 return "" 613 } 614 return *a.Description 615 } 616 617 // GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise. 618 func (a *App) GetExternalURL() string { 619 if a == nil || a.ExternalURL == nil { 620 return "" 621 } 622 return *a.ExternalURL 623 } 624 625 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 626 func (a *App) GetHTMLURL() string { 627 if a == nil || a.HTMLURL == nil { 628 return "" 629 } 630 return *a.HTMLURL 631 } 632 633 // GetID returns the ID field if it's non-nil, zero value otherwise. 634 func (a *App) GetID() int64 { 635 if a == nil || a.ID == nil { 636 return 0 637 } 638 return *a.ID 639 } 640 641 // GetName returns the Name field if it's non-nil, zero value otherwise. 642 func (a *App) GetName() string { 643 if a == nil || a.Name == nil { 644 return "" 645 } 646 return *a.Name 647 } 648 649 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 650 func (a *App) GetNodeID() string { 651 if a == nil || a.NodeID == nil { 652 return "" 653 } 654 return *a.NodeID 655 } 656 657 // GetOwner returns the Owner field. 658 func (a *App) GetOwner() *User { 659 if a == nil { 660 return nil 661 } 662 return a.Owner 663 } 664 665 // GetPermissions returns the Permissions field. 666 func (a *App) GetPermissions() *InstallationPermissions { 667 if a == nil { 668 return nil 669 } 670 return a.Permissions 671 } 672 673 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 674 func (a *App) GetSlug() string { 675 if a == nil || a.Slug == nil { 676 return "" 677 } 678 return *a.Slug 679 } 680 681 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 682 func (a *App) GetUpdatedAt() Timestamp { 683 if a == nil || a.UpdatedAt == nil { 684 return Timestamp{} 685 } 686 return *a.UpdatedAt 687 } 688 689 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 690 func (a *AppConfig) GetClientID() string { 691 if a == nil || a.ClientID == nil { 692 return "" 693 } 694 return *a.ClientID 695 } 696 697 // GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. 698 func (a *AppConfig) GetClientSecret() string { 699 if a == nil || a.ClientSecret == nil { 700 return "" 701 } 702 return *a.ClientSecret 703 } 704 705 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 706 func (a *AppConfig) GetCreatedAt() Timestamp { 707 if a == nil || a.CreatedAt == nil { 708 return Timestamp{} 709 } 710 return *a.CreatedAt 711 } 712 713 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 714 func (a *AppConfig) GetDescription() string { 715 if a == nil || a.Description == nil { 716 return "" 717 } 718 return *a.Description 719 } 720 721 // GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise. 722 func (a *AppConfig) GetExternalURL() string { 723 if a == nil || a.ExternalURL == nil { 724 return "" 725 } 726 return *a.ExternalURL 727 } 728 729 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 730 func (a *AppConfig) GetHTMLURL() string { 731 if a == nil || a.HTMLURL == nil { 732 return "" 733 } 734 return *a.HTMLURL 735 } 736 737 // GetID returns the ID field if it's non-nil, zero value otherwise. 738 func (a *AppConfig) GetID() int64 { 739 if a == nil || a.ID == nil { 740 return 0 741 } 742 return *a.ID 743 } 744 745 // GetName returns the Name field if it's non-nil, zero value otherwise. 746 func (a *AppConfig) GetName() string { 747 if a == nil || a.Name == nil { 748 return "" 749 } 750 return *a.Name 751 } 752 753 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 754 func (a *AppConfig) GetNodeID() string { 755 if a == nil || a.NodeID == nil { 756 return "" 757 } 758 return *a.NodeID 759 } 760 761 // GetOwner returns the Owner field. 762 func (a *AppConfig) GetOwner() *User { 763 if a == nil { 764 return nil 765 } 766 return a.Owner 767 } 768 769 // GetPEM returns the PEM field if it's non-nil, zero value otherwise. 770 func (a *AppConfig) GetPEM() string { 771 if a == nil || a.PEM == nil { 772 return "" 773 } 774 return *a.PEM 775 } 776 777 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 778 func (a *AppConfig) GetSlug() string { 779 if a == nil || a.Slug == nil { 780 return "" 781 } 782 return *a.Slug 783 } 784 785 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 786 func (a *AppConfig) GetUpdatedAt() Timestamp { 787 if a == nil || a.UpdatedAt == nil { 788 return Timestamp{} 789 } 790 return *a.UpdatedAt 791 } 792 793 // GetWebhookSecret returns the WebhookSecret field if it's non-nil, zero value otherwise. 794 func (a *AppConfig) GetWebhookSecret() string { 795 if a == nil || a.WebhookSecret == nil { 796 return "" 797 } 798 return *a.WebhookSecret 799 } 800 801 // GetArchiveDownloadURL returns the ArchiveDownloadURL field if it's non-nil, zero value otherwise. 802 func (a *Artifact) GetArchiveDownloadURL() string { 803 if a == nil || a.ArchiveDownloadURL == nil { 804 return "" 805 } 806 return *a.ArchiveDownloadURL 807 } 808 809 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 810 func (a *Artifact) GetCreatedAt() Timestamp { 811 if a == nil || a.CreatedAt == nil { 812 return Timestamp{} 813 } 814 return *a.CreatedAt 815 } 816 817 // GetExpired returns the Expired field if it's non-nil, zero value otherwise. 818 func (a *Artifact) GetExpired() bool { 819 if a == nil || a.Expired == nil { 820 return false 821 } 822 return *a.Expired 823 } 824 825 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 826 func (a *Artifact) GetExpiresAt() Timestamp { 827 if a == nil || a.ExpiresAt == nil { 828 return Timestamp{} 829 } 830 return *a.ExpiresAt 831 } 832 833 // GetID returns the ID field if it's non-nil, zero value otherwise. 834 func (a *Artifact) GetID() int64 { 835 if a == nil || a.ID == nil { 836 return 0 837 } 838 return *a.ID 839 } 840 841 // GetName returns the Name field if it's non-nil, zero value otherwise. 842 func (a *Artifact) GetName() string { 843 if a == nil || a.Name == nil { 844 return "" 845 } 846 return *a.Name 847 } 848 849 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 850 func (a *Artifact) GetNodeID() string { 851 if a == nil || a.NodeID == nil { 852 return "" 853 } 854 return *a.NodeID 855 } 856 857 // GetSizeInBytes returns the SizeInBytes field if it's non-nil, zero value otherwise. 858 func (a *Artifact) GetSizeInBytes() int64 { 859 if a == nil || a.SizeInBytes == nil { 860 return 0 861 } 862 return *a.SizeInBytes 863 } 864 865 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 866 func (a *ArtifactList) GetTotalCount() int64 { 867 if a == nil || a.TotalCount == nil { 868 return 0 869 } 870 return *a.TotalCount 871 } 872 873 // GetBody returns the Body field if it's non-nil, zero value otherwise. 874 func (a *Attachment) GetBody() string { 875 if a == nil || a.Body == nil { 876 return "" 877 } 878 return *a.Body 879 } 880 881 // GetID returns the ID field if it's non-nil, zero value otherwise. 882 func (a *Attachment) GetID() int64 { 883 if a == nil || a.ID == nil { 884 return 0 885 } 886 return *a.ID 887 } 888 889 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 890 func (a *Attachment) GetTitle() string { 891 if a == nil || a.Title == nil { 892 return "" 893 } 894 return *a.Title 895 } 896 897 // GetAction returns the Action field if it's non-nil, zero value otherwise. 898 func (a *AuditEntry) GetAction() string { 899 if a == nil || a.Action == nil { 900 return "" 901 } 902 return *a.Action 903 } 904 905 // GetActive returns the Active field if it's non-nil, zero value otherwise. 906 func (a *AuditEntry) GetActive() bool { 907 if a == nil || a.Active == nil { 908 return false 909 } 910 return *a.Active 911 } 912 913 // GetActiveWas returns the ActiveWas field if it's non-nil, zero value otherwise. 914 func (a *AuditEntry) GetActiveWas() bool { 915 if a == nil || a.ActiveWas == nil { 916 return false 917 } 918 return *a.ActiveWas 919 } 920 921 // GetActor returns the Actor field if it's non-nil, zero value otherwise. 922 func (a *AuditEntry) GetActor() string { 923 if a == nil || a.Actor == nil { 924 return "" 925 } 926 return *a.Actor 927 } 928 929 // GetBlockedUser returns the BlockedUser field if it's non-nil, zero value otherwise. 930 func (a *AuditEntry) GetBlockedUser() string { 931 if a == nil || a.BlockedUser == nil { 932 return "" 933 } 934 return *a.BlockedUser 935 } 936 937 // GetBusiness returns the Business field if it's non-nil, zero value otherwise. 938 func (a *AuditEntry) GetBusiness() string { 939 if a == nil || a.Business == nil { 940 return "" 941 } 942 return *a.Business 943 } 944 945 // GetCancelledAt returns the CancelledAt field if it's non-nil, zero value otherwise. 946 func (a *AuditEntry) GetCancelledAt() Timestamp { 947 if a == nil || a.CancelledAt == nil { 948 return Timestamp{} 949 } 950 return *a.CancelledAt 951 } 952 953 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 954 func (a *AuditEntry) GetCompletedAt() Timestamp { 955 if a == nil || a.CompletedAt == nil { 956 return Timestamp{} 957 } 958 return *a.CompletedAt 959 } 960 961 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 962 func (a *AuditEntry) GetConclusion() string { 963 if a == nil || a.Conclusion == nil { 964 return "" 965 } 966 return *a.Conclusion 967 } 968 969 // GetConfig returns the Config field. 970 func (a *AuditEntry) GetConfig() *HookConfig { 971 if a == nil { 972 return nil 973 } 974 return a.Config 975 } 976 977 // GetConfigWas returns the ConfigWas field. 978 func (a *AuditEntry) GetConfigWas() *HookConfig { 979 if a == nil { 980 return nil 981 } 982 return a.ConfigWas 983 } 984 985 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 986 func (a *AuditEntry) GetContentType() string { 987 if a == nil || a.ContentType == nil { 988 return "" 989 } 990 return *a.ContentType 991 } 992 993 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 994 func (a *AuditEntry) GetCreatedAt() Timestamp { 995 if a == nil || a.CreatedAt == nil { 996 return Timestamp{} 997 } 998 return *a.CreatedAt 999 } 1000 1001 // GetDeployKeyFingerprint returns the DeployKeyFingerprint field if it's non-nil, zero value otherwise. 1002 func (a *AuditEntry) GetDeployKeyFingerprint() string { 1003 if a == nil || a.DeployKeyFingerprint == nil { 1004 return "" 1005 } 1006 return *a.DeployKeyFingerprint 1007 } 1008 1009 // GetDocumentID returns the DocumentID field if it's non-nil, zero value otherwise. 1010 func (a *AuditEntry) GetDocumentID() string { 1011 if a == nil || a.DocumentID == nil { 1012 return "" 1013 } 1014 return *a.DocumentID 1015 } 1016 1017 // GetEmoji returns the Emoji field if it's non-nil, zero value otherwise. 1018 func (a *AuditEntry) GetEmoji() string { 1019 if a == nil || a.Emoji == nil { 1020 return "" 1021 } 1022 return *a.Emoji 1023 } 1024 1025 // GetEnvironmentName returns the EnvironmentName field if it's non-nil, zero value otherwise. 1026 func (a *AuditEntry) GetEnvironmentName() string { 1027 if a == nil || a.EnvironmentName == nil { 1028 return "" 1029 } 1030 return *a.EnvironmentName 1031 } 1032 1033 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 1034 func (a *AuditEntry) GetEvent() string { 1035 if a == nil || a.Event == nil { 1036 return "" 1037 } 1038 return *a.Event 1039 } 1040 1041 // GetExplanation returns the Explanation field if it's non-nil, zero value otherwise. 1042 func (a *AuditEntry) GetExplanation() string { 1043 if a == nil || a.Explanation == nil { 1044 return "" 1045 } 1046 return *a.Explanation 1047 } 1048 1049 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 1050 func (a *AuditEntry) GetFingerprint() string { 1051 if a == nil || a.Fingerprint == nil { 1052 return "" 1053 } 1054 return *a.Fingerprint 1055 } 1056 1057 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 1058 func (a *AuditEntry) GetHeadBranch() string { 1059 if a == nil || a.HeadBranch == nil { 1060 return "" 1061 } 1062 return *a.HeadBranch 1063 } 1064 1065 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 1066 func (a *AuditEntry) GetHeadSHA() string { 1067 if a == nil || a.HeadSHA == nil { 1068 return "" 1069 } 1070 return *a.HeadSHA 1071 } 1072 1073 // GetHookID returns the HookID field if it's non-nil, zero value otherwise. 1074 func (a *AuditEntry) GetHookID() int64 { 1075 if a == nil || a.HookID == nil { 1076 return 0 1077 } 1078 return *a.HookID 1079 } 1080 1081 // GetIsHostedRunner returns the IsHostedRunner field if it's non-nil, zero value otherwise. 1082 func (a *AuditEntry) GetIsHostedRunner() bool { 1083 if a == nil || a.IsHostedRunner == nil { 1084 return false 1085 } 1086 return *a.IsHostedRunner 1087 } 1088 1089 // GetJobName returns the JobName field if it's non-nil, zero value otherwise. 1090 func (a *AuditEntry) GetJobName() string { 1091 if a == nil || a.JobName == nil { 1092 return "" 1093 } 1094 return *a.JobName 1095 } 1096 1097 // GetLimitedAvailability returns the LimitedAvailability field if it's non-nil, zero value otherwise. 1098 func (a *AuditEntry) GetLimitedAvailability() bool { 1099 if a == nil || a.LimitedAvailability == nil { 1100 return false 1101 } 1102 return *a.LimitedAvailability 1103 } 1104 1105 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 1106 func (a *AuditEntry) GetMessage() string { 1107 if a == nil || a.Message == nil { 1108 return "" 1109 } 1110 return *a.Message 1111 } 1112 1113 // GetName returns the Name field if it's non-nil, zero value otherwise. 1114 func (a *AuditEntry) GetName() string { 1115 if a == nil || a.Name == nil { 1116 return "" 1117 } 1118 return *a.Name 1119 } 1120 1121 // GetOldUser returns the OldUser field if it's non-nil, zero value otherwise. 1122 func (a *AuditEntry) GetOldUser() string { 1123 if a == nil || a.OldUser == nil { 1124 return "" 1125 } 1126 return *a.OldUser 1127 } 1128 1129 // GetOpenSSHPublicKey returns the OpenSSHPublicKey field if it's non-nil, zero value otherwise. 1130 func (a *AuditEntry) GetOpenSSHPublicKey() string { 1131 if a == nil || a.OpenSSHPublicKey == nil { 1132 return "" 1133 } 1134 return *a.OpenSSHPublicKey 1135 } 1136 1137 // GetOrg returns the Org field if it's non-nil, zero value otherwise. 1138 func (a *AuditEntry) GetOrg() string { 1139 if a == nil || a.Org == nil { 1140 return "" 1141 } 1142 return *a.Org 1143 } 1144 1145 // GetPreviousVisibility returns the PreviousVisibility field if it's non-nil, zero value otherwise. 1146 func (a *AuditEntry) GetPreviousVisibility() string { 1147 if a == nil || a.PreviousVisibility == nil { 1148 return "" 1149 } 1150 return *a.PreviousVisibility 1151 } 1152 1153 // GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise. 1154 func (a *AuditEntry) GetReadOnly() string { 1155 if a == nil || a.ReadOnly == nil { 1156 return "" 1157 } 1158 return *a.ReadOnly 1159 } 1160 1161 // GetRepo returns the Repo field if it's non-nil, zero value otherwise. 1162 func (a *AuditEntry) GetRepo() string { 1163 if a == nil || a.Repo == nil { 1164 return "" 1165 } 1166 return *a.Repo 1167 } 1168 1169 // GetRepository returns the Repository field if it's non-nil, zero value otherwise. 1170 func (a *AuditEntry) GetRepository() string { 1171 if a == nil || a.Repository == nil { 1172 return "" 1173 } 1174 return *a.Repository 1175 } 1176 1177 // GetRepositoryPublic returns the RepositoryPublic field if it's non-nil, zero value otherwise. 1178 func (a *AuditEntry) GetRepositoryPublic() bool { 1179 if a == nil || a.RepositoryPublic == nil { 1180 return false 1181 } 1182 return *a.RepositoryPublic 1183 } 1184 1185 // GetRunAttempt returns the RunAttempt field if it's non-nil, zero value otherwise. 1186 func (a *AuditEntry) GetRunAttempt() int64 { 1187 if a == nil || a.RunAttempt == nil { 1188 return 0 1189 } 1190 return *a.RunAttempt 1191 } 1192 1193 // GetRunnerGroupID returns the RunnerGroupID field if it's non-nil, zero value otherwise. 1194 func (a *AuditEntry) GetRunnerGroupID() int64 { 1195 if a == nil || a.RunnerGroupID == nil { 1196 return 0 1197 } 1198 return *a.RunnerGroupID 1199 } 1200 1201 // GetRunnerGroupName returns the RunnerGroupName field if it's non-nil, zero value otherwise. 1202 func (a *AuditEntry) GetRunnerGroupName() string { 1203 if a == nil || a.RunnerGroupName == nil { 1204 return "" 1205 } 1206 return *a.RunnerGroupName 1207 } 1208 1209 // GetRunnerID returns the RunnerID field if it's non-nil, zero value otherwise. 1210 func (a *AuditEntry) GetRunnerID() int64 { 1211 if a == nil || a.RunnerID == nil { 1212 return 0 1213 } 1214 return *a.RunnerID 1215 } 1216 1217 // GetRunnerName returns the RunnerName field if it's non-nil, zero value otherwise. 1218 func (a *AuditEntry) GetRunnerName() string { 1219 if a == nil || a.RunnerName == nil { 1220 return "" 1221 } 1222 return *a.RunnerName 1223 } 1224 1225 // GetSourceVersion returns the SourceVersion field if it's non-nil, zero value otherwise. 1226 func (a *AuditEntry) GetSourceVersion() string { 1227 if a == nil || a.SourceVersion == nil { 1228 return "" 1229 } 1230 return *a.SourceVersion 1231 } 1232 1233 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 1234 func (a *AuditEntry) GetStartedAt() Timestamp { 1235 if a == nil || a.StartedAt == nil { 1236 return Timestamp{} 1237 } 1238 return *a.StartedAt 1239 } 1240 1241 // GetTargetLogin returns the TargetLogin field if it's non-nil, zero value otherwise. 1242 func (a *AuditEntry) GetTargetLogin() string { 1243 if a == nil || a.TargetLogin == nil { 1244 return "" 1245 } 1246 return *a.TargetLogin 1247 } 1248 1249 // GetTargetVersion returns the TargetVersion field if it's non-nil, zero value otherwise. 1250 func (a *AuditEntry) GetTargetVersion() string { 1251 if a == nil || a.TargetVersion == nil { 1252 return "" 1253 } 1254 return *a.TargetVersion 1255 } 1256 1257 // GetTeam returns the Team field if it's non-nil, zero value otherwise. 1258 func (a *AuditEntry) GetTeam() string { 1259 if a == nil || a.Team == nil { 1260 return "" 1261 } 1262 return *a.Team 1263 } 1264 1265 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 1266 func (a *AuditEntry) GetTimestamp() Timestamp { 1267 if a == nil || a.Timestamp == nil { 1268 return Timestamp{} 1269 } 1270 return *a.Timestamp 1271 } 1272 1273 // GetTransportProtocol returns the TransportProtocol field if it's non-nil, zero value otherwise. 1274 func (a *AuditEntry) GetTransportProtocol() int { 1275 if a == nil || a.TransportProtocol == nil { 1276 return 0 1277 } 1278 return *a.TransportProtocol 1279 } 1280 1281 // GetTransportProtocolName returns the TransportProtocolName field if it's non-nil, zero value otherwise. 1282 func (a *AuditEntry) GetTransportProtocolName() string { 1283 if a == nil || a.TransportProtocolName == nil { 1284 return "" 1285 } 1286 return *a.TransportProtocolName 1287 } 1288 1289 // GetTriggerID returns the TriggerID field if it's non-nil, zero value otherwise. 1290 func (a *AuditEntry) GetTriggerID() int64 { 1291 if a == nil || a.TriggerID == nil { 1292 return 0 1293 } 1294 return *a.TriggerID 1295 } 1296 1297 // GetUser returns the User field if it's non-nil, zero value otherwise. 1298 func (a *AuditEntry) GetUser() string { 1299 if a == nil || a.User == nil { 1300 return "" 1301 } 1302 return *a.User 1303 } 1304 1305 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 1306 func (a *AuditEntry) GetVisibility() string { 1307 if a == nil || a.Visibility == nil { 1308 return "" 1309 } 1310 return *a.Visibility 1311 } 1312 1313 // GetWorkflowID returns the WorkflowID field if it's non-nil, zero value otherwise. 1314 func (a *AuditEntry) GetWorkflowID() int64 { 1315 if a == nil || a.WorkflowID == nil { 1316 return 0 1317 } 1318 return *a.WorkflowID 1319 } 1320 1321 // GetWorkflowRunID returns the WorkflowRunID field if it's non-nil, zero value otherwise. 1322 func (a *AuditEntry) GetWorkflowRunID() int64 { 1323 if a == nil || a.WorkflowRunID == nil { 1324 return 0 1325 } 1326 return *a.WorkflowRunID 1327 } 1328 1329 // GetApp returns the App field. 1330 func (a *Authorization) GetApp() *AuthorizationApp { 1331 if a == nil { 1332 return nil 1333 } 1334 return a.App 1335 } 1336 1337 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1338 func (a *Authorization) GetCreatedAt() Timestamp { 1339 if a == nil || a.CreatedAt == nil { 1340 return Timestamp{} 1341 } 1342 return *a.CreatedAt 1343 } 1344 1345 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 1346 func (a *Authorization) GetFingerprint() string { 1347 if a == nil || a.Fingerprint == nil { 1348 return "" 1349 } 1350 return *a.Fingerprint 1351 } 1352 1353 // GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. 1354 func (a *Authorization) GetHashedToken() string { 1355 if a == nil || a.HashedToken == nil { 1356 return "" 1357 } 1358 return *a.HashedToken 1359 } 1360 1361 // GetID returns the ID field if it's non-nil, zero value otherwise. 1362 func (a *Authorization) GetID() int64 { 1363 if a == nil || a.ID == nil { 1364 return 0 1365 } 1366 return *a.ID 1367 } 1368 1369 // GetNote returns the Note field if it's non-nil, zero value otherwise. 1370 func (a *Authorization) GetNote() string { 1371 if a == nil || a.Note == nil { 1372 return "" 1373 } 1374 return *a.Note 1375 } 1376 1377 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 1378 func (a *Authorization) GetNoteURL() string { 1379 if a == nil || a.NoteURL == nil { 1380 return "" 1381 } 1382 return *a.NoteURL 1383 } 1384 1385 // GetToken returns the Token field if it's non-nil, zero value otherwise. 1386 func (a *Authorization) GetToken() string { 1387 if a == nil || a.Token == nil { 1388 return "" 1389 } 1390 return *a.Token 1391 } 1392 1393 // GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. 1394 func (a *Authorization) GetTokenLastEight() string { 1395 if a == nil || a.TokenLastEight == nil { 1396 return "" 1397 } 1398 return *a.TokenLastEight 1399 } 1400 1401 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 1402 func (a *Authorization) GetUpdatedAt() Timestamp { 1403 if a == nil || a.UpdatedAt == nil { 1404 return Timestamp{} 1405 } 1406 return *a.UpdatedAt 1407 } 1408 1409 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1410 func (a *Authorization) GetURL() string { 1411 if a == nil || a.URL == nil { 1412 return "" 1413 } 1414 return *a.URL 1415 } 1416 1417 // GetUser returns the User field. 1418 func (a *Authorization) GetUser() *User { 1419 if a == nil { 1420 return nil 1421 } 1422 return a.User 1423 } 1424 1425 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 1426 func (a *AuthorizationApp) GetClientID() string { 1427 if a == nil || a.ClientID == nil { 1428 return "" 1429 } 1430 return *a.ClientID 1431 } 1432 1433 // GetName returns the Name field if it's non-nil, zero value otherwise. 1434 func (a *AuthorizationApp) GetName() string { 1435 if a == nil || a.Name == nil { 1436 return "" 1437 } 1438 return *a.Name 1439 } 1440 1441 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1442 func (a *AuthorizationApp) GetURL() string { 1443 if a == nil || a.URL == nil { 1444 return "" 1445 } 1446 return *a.URL 1447 } 1448 1449 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 1450 func (a *AuthorizationRequest) GetClientID() string { 1451 if a == nil || a.ClientID == nil { 1452 return "" 1453 } 1454 return *a.ClientID 1455 } 1456 1457 // GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. 1458 func (a *AuthorizationRequest) GetClientSecret() string { 1459 if a == nil || a.ClientSecret == nil { 1460 return "" 1461 } 1462 return *a.ClientSecret 1463 } 1464 1465 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 1466 func (a *AuthorizationRequest) GetFingerprint() string { 1467 if a == nil || a.Fingerprint == nil { 1468 return "" 1469 } 1470 return *a.Fingerprint 1471 } 1472 1473 // GetNote returns the Note field if it's non-nil, zero value otherwise. 1474 func (a *AuthorizationRequest) GetNote() string { 1475 if a == nil || a.Note == nil { 1476 return "" 1477 } 1478 return *a.Note 1479 } 1480 1481 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 1482 func (a *AuthorizationRequest) GetNoteURL() string { 1483 if a == nil || a.NoteURL == nil { 1484 return "" 1485 } 1486 return *a.NoteURL 1487 } 1488 1489 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 1490 func (a *AuthorizationUpdateRequest) GetFingerprint() string { 1491 if a == nil || a.Fingerprint == nil { 1492 return "" 1493 } 1494 return *a.Fingerprint 1495 } 1496 1497 // GetNote returns the Note field if it's non-nil, zero value otherwise. 1498 func (a *AuthorizationUpdateRequest) GetNote() string { 1499 if a == nil || a.Note == nil { 1500 return "" 1501 } 1502 return *a.Note 1503 } 1504 1505 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 1506 func (a *AuthorizationUpdateRequest) GetNoteURL() string { 1507 if a == nil || a.NoteURL == nil { 1508 return "" 1509 } 1510 return *a.NoteURL 1511 } 1512 1513 // GetFrom returns the From field if it's non-nil, zero value otherwise. 1514 func (a *AuthorizedActorsOnly) GetFrom() bool { 1515 if a == nil || a.From == nil { 1516 return false 1517 } 1518 return *a.From 1519 } 1520 1521 // GetFrom returns the From field if it's non-nil, zero value otherwise. 1522 func (a *AuthorizedDismissalActorsOnlyChanges) GetFrom() bool { 1523 if a == nil || a.From == nil { 1524 return false 1525 } 1526 return *a.From 1527 } 1528 1529 // GetID returns the ID field if it's non-nil, zero value otherwise. 1530 func (a *Autolink) GetID() int64 { 1531 if a == nil || a.ID == nil { 1532 return 0 1533 } 1534 return *a.ID 1535 } 1536 1537 // GetIsAlphanumeric returns the IsAlphanumeric field if it's non-nil, zero value otherwise. 1538 func (a *Autolink) GetIsAlphanumeric() bool { 1539 if a == nil || a.IsAlphanumeric == nil { 1540 return false 1541 } 1542 return *a.IsAlphanumeric 1543 } 1544 1545 // GetKeyPrefix returns the KeyPrefix field if it's non-nil, zero value otherwise. 1546 func (a *Autolink) GetKeyPrefix() string { 1547 if a == nil || a.KeyPrefix == nil { 1548 return "" 1549 } 1550 return *a.KeyPrefix 1551 } 1552 1553 // GetURLTemplate returns the URLTemplate field if it's non-nil, zero value otherwise. 1554 func (a *Autolink) GetURLTemplate() string { 1555 if a == nil || a.URLTemplate == nil { 1556 return "" 1557 } 1558 return *a.URLTemplate 1559 } 1560 1561 // GetIsAlphanumeric returns the IsAlphanumeric field if it's non-nil, zero value otherwise. 1562 func (a *AutolinkOptions) GetIsAlphanumeric() bool { 1563 if a == nil || a.IsAlphanumeric == nil { 1564 return false 1565 } 1566 return *a.IsAlphanumeric 1567 } 1568 1569 // GetKeyPrefix returns the KeyPrefix field if it's non-nil, zero value otherwise. 1570 func (a *AutolinkOptions) GetKeyPrefix() string { 1571 if a == nil || a.KeyPrefix == nil { 1572 return "" 1573 } 1574 return *a.KeyPrefix 1575 } 1576 1577 // GetURLTemplate returns the URLTemplate field if it's non-nil, zero value otherwise. 1578 func (a *AutolinkOptions) GetURLTemplate() string { 1579 if a == nil || a.URLTemplate == nil { 1580 return "" 1581 } 1582 return *a.URLTemplate 1583 } 1584 1585 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 1586 func (a *AutoTriggerCheck) GetAppID() int64 { 1587 if a == nil || a.AppID == nil { 1588 return 0 1589 } 1590 return *a.AppID 1591 } 1592 1593 // GetSetting returns the Setting field if it's non-nil, zero value otherwise. 1594 func (a *AutoTriggerCheck) GetSetting() bool { 1595 if a == nil || a.Setting == nil { 1596 return false 1597 } 1598 return *a.Setting 1599 } 1600 1601 // GetContent returns the Content field if it's non-nil, zero value otherwise. 1602 func (b *Blob) GetContent() string { 1603 if b == nil || b.Content == nil { 1604 return "" 1605 } 1606 return *b.Content 1607 } 1608 1609 // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 1610 func (b *Blob) GetEncoding() string { 1611 if b == nil || b.Encoding == nil { 1612 return "" 1613 } 1614 return *b.Encoding 1615 } 1616 1617 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 1618 func (b *Blob) GetNodeID() string { 1619 if b == nil || b.NodeID == nil { 1620 return "" 1621 } 1622 return *b.NodeID 1623 } 1624 1625 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1626 func (b *Blob) GetSHA() string { 1627 if b == nil || b.SHA == nil { 1628 return "" 1629 } 1630 return *b.SHA 1631 } 1632 1633 // GetSize returns the Size field if it's non-nil, zero value otherwise. 1634 func (b *Blob) GetSize() int { 1635 if b == nil || b.Size == nil { 1636 return 0 1637 } 1638 return *b.Size 1639 } 1640 1641 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1642 func (b *Blob) GetURL() string { 1643 if b == nil || b.URL == nil { 1644 return "" 1645 } 1646 return *b.URL 1647 } 1648 1649 // GetCommit returns the Commit field. 1650 func (b *Branch) GetCommit() *RepositoryCommit { 1651 if b == nil { 1652 return nil 1653 } 1654 return b.Commit 1655 } 1656 1657 // GetName returns the Name field if it's non-nil, zero value otherwise. 1658 func (b *Branch) GetName() string { 1659 if b == nil || b.Name == nil { 1660 return "" 1661 } 1662 return *b.Name 1663 } 1664 1665 // GetProtected returns the Protected field if it's non-nil, zero value otherwise. 1666 func (b *Branch) GetProtected() bool { 1667 if b == nil || b.Protected == nil { 1668 return false 1669 } 1670 return *b.Protected 1671 } 1672 1673 // GetCommit returns the Commit field. 1674 func (b *BranchCommit) GetCommit() *Commit { 1675 if b == nil { 1676 return nil 1677 } 1678 return b.Commit 1679 } 1680 1681 // GetName returns the Name field if it's non-nil, zero value otherwise. 1682 func (b *BranchCommit) GetName() string { 1683 if b == nil || b.Name == nil { 1684 return "" 1685 } 1686 return *b.Name 1687 } 1688 1689 // GetProtected returns the Protected field if it's non-nil, zero value otherwise. 1690 func (b *BranchCommit) GetProtected() bool { 1691 if b == nil || b.Protected == nil { 1692 return false 1693 } 1694 return *b.Protected 1695 } 1696 1697 // GetProtected returns the Protected field if it's non-nil, zero value otherwise. 1698 func (b *BranchListOptions) GetProtected() bool { 1699 if b == nil || b.Protected == nil { 1700 return false 1701 } 1702 return *b.Protected 1703 } 1704 1705 // GetCustomBranchPolicies returns the CustomBranchPolicies field if it's non-nil, zero value otherwise. 1706 func (b *BranchPolicy) GetCustomBranchPolicies() bool { 1707 if b == nil || b.CustomBranchPolicies == nil { 1708 return false 1709 } 1710 return *b.CustomBranchPolicies 1711 } 1712 1713 // GetProtectedBranches returns the ProtectedBranches field if it's non-nil, zero value otherwise. 1714 func (b *BranchPolicy) GetProtectedBranches() bool { 1715 if b == nil || b.ProtectedBranches == nil { 1716 return false 1717 } 1718 return *b.ProtectedBranches 1719 } 1720 1721 // GetAdminEnforced returns the AdminEnforced field if it's non-nil, zero value otherwise. 1722 func (b *BranchProtectionRule) GetAdminEnforced() bool { 1723 if b == nil || b.AdminEnforced == nil { 1724 return false 1725 } 1726 return *b.AdminEnforced 1727 } 1728 1729 // GetAllowDeletionsEnforcementLevel returns the AllowDeletionsEnforcementLevel field if it's non-nil, zero value otherwise. 1730 func (b *BranchProtectionRule) GetAllowDeletionsEnforcementLevel() string { 1731 if b == nil || b.AllowDeletionsEnforcementLevel == nil { 1732 return "" 1733 } 1734 return *b.AllowDeletionsEnforcementLevel 1735 } 1736 1737 // GetAllowForcePushesEnforcementLevel returns the AllowForcePushesEnforcementLevel field if it's non-nil, zero value otherwise. 1738 func (b *BranchProtectionRule) GetAllowForcePushesEnforcementLevel() string { 1739 if b == nil || b.AllowForcePushesEnforcementLevel == nil { 1740 return "" 1741 } 1742 return *b.AllowForcePushesEnforcementLevel 1743 } 1744 1745 // GetAuthorizedActorsOnly returns the AuthorizedActorsOnly field if it's non-nil, zero value otherwise. 1746 func (b *BranchProtectionRule) GetAuthorizedActorsOnly() bool { 1747 if b == nil || b.AuthorizedActorsOnly == nil { 1748 return false 1749 } 1750 return *b.AuthorizedActorsOnly 1751 } 1752 1753 // GetAuthorizedDismissalActorsOnly returns the AuthorizedDismissalActorsOnly field if it's non-nil, zero value otherwise. 1754 func (b *BranchProtectionRule) GetAuthorizedDismissalActorsOnly() bool { 1755 if b == nil || b.AuthorizedDismissalActorsOnly == nil { 1756 return false 1757 } 1758 return *b.AuthorizedDismissalActorsOnly 1759 } 1760 1761 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1762 func (b *BranchProtectionRule) GetCreatedAt() Timestamp { 1763 if b == nil || b.CreatedAt == nil { 1764 return Timestamp{} 1765 } 1766 return *b.CreatedAt 1767 } 1768 1769 // GetDismissStaleReviewsOnPush returns the DismissStaleReviewsOnPush field if it's non-nil, zero value otherwise. 1770 func (b *BranchProtectionRule) GetDismissStaleReviewsOnPush() bool { 1771 if b == nil || b.DismissStaleReviewsOnPush == nil { 1772 return false 1773 } 1774 return *b.DismissStaleReviewsOnPush 1775 } 1776 1777 // GetID returns the ID field if it's non-nil, zero value otherwise. 1778 func (b *BranchProtectionRule) GetID() int64 { 1779 if b == nil || b.ID == nil { 1780 return 0 1781 } 1782 return *b.ID 1783 } 1784 1785 // GetIgnoreApprovalsFromContributors returns the IgnoreApprovalsFromContributors field if it's non-nil, zero value otherwise. 1786 func (b *BranchProtectionRule) GetIgnoreApprovalsFromContributors() bool { 1787 if b == nil || b.IgnoreApprovalsFromContributors == nil { 1788 return false 1789 } 1790 return *b.IgnoreApprovalsFromContributors 1791 } 1792 1793 // GetLinearHistoryRequirementEnforcementLevel returns the LinearHistoryRequirementEnforcementLevel field if it's non-nil, zero value otherwise. 1794 func (b *BranchProtectionRule) GetLinearHistoryRequirementEnforcementLevel() string { 1795 if b == nil || b.LinearHistoryRequirementEnforcementLevel == nil { 1796 return "" 1797 } 1798 return *b.LinearHistoryRequirementEnforcementLevel 1799 } 1800 1801 // GetMergeQueueEnforcementLevel returns the MergeQueueEnforcementLevel field if it's non-nil, zero value otherwise. 1802 func (b *BranchProtectionRule) GetMergeQueueEnforcementLevel() string { 1803 if b == nil || b.MergeQueueEnforcementLevel == nil { 1804 return "" 1805 } 1806 return *b.MergeQueueEnforcementLevel 1807 } 1808 1809 // GetName returns the Name field if it's non-nil, zero value otherwise. 1810 func (b *BranchProtectionRule) GetName() string { 1811 if b == nil || b.Name == nil { 1812 return "" 1813 } 1814 return *b.Name 1815 } 1816 1817 // GetPullRequestReviewsEnforcementLevel returns the PullRequestReviewsEnforcementLevel field if it's non-nil, zero value otherwise. 1818 func (b *BranchProtectionRule) GetPullRequestReviewsEnforcementLevel() string { 1819 if b == nil || b.PullRequestReviewsEnforcementLevel == nil { 1820 return "" 1821 } 1822 return *b.PullRequestReviewsEnforcementLevel 1823 } 1824 1825 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 1826 func (b *BranchProtectionRule) GetRepositoryID() int64 { 1827 if b == nil || b.RepositoryID == nil { 1828 return 0 1829 } 1830 return *b.RepositoryID 1831 } 1832 1833 // GetRequireCodeOwnerReview returns the RequireCodeOwnerReview field if it's non-nil, zero value otherwise. 1834 func (b *BranchProtectionRule) GetRequireCodeOwnerReview() bool { 1835 if b == nil || b.RequireCodeOwnerReview == nil { 1836 return false 1837 } 1838 return *b.RequireCodeOwnerReview 1839 } 1840 1841 // GetRequiredApprovingReviewCount returns the RequiredApprovingReviewCount field if it's non-nil, zero value otherwise. 1842 func (b *BranchProtectionRule) GetRequiredApprovingReviewCount() int { 1843 if b == nil || b.RequiredApprovingReviewCount == nil { 1844 return 0 1845 } 1846 return *b.RequiredApprovingReviewCount 1847 } 1848 1849 // GetRequiredConversationResolutionLevel returns the RequiredConversationResolutionLevel field if it's non-nil, zero value otherwise. 1850 func (b *BranchProtectionRule) GetRequiredConversationResolutionLevel() string { 1851 if b == nil || b.RequiredConversationResolutionLevel == nil { 1852 return "" 1853 } 1854 return *b.RequiredConversationResolutionLevel 1855 } 1856 1857 // GetRequiredDeploymentsEnforcementLevel returns the RequiredDeploymentsEnforcementLevel field if it's non-nil, zero value otherwise. 1858 func (b *BranchProtectionRule) GetRequiredDeploymentsEnforcementLevel() string { 1859 if b == nil || b.RequiredDeploymentsEnforcementLevel == nil { 1860 return "" 1861 } 1862 return *b.RequiredDeploymentsEnforcementLevel 1863 } 1864 1865 // GetRequiredStatusChecksEnforcementLevel returns the RequiredStatusChecksEnforcementLevel field if it's non-nil, zero value otherwise. 1866 func (b *BranchProtectionRule) GetRequiredStatusChecksEnforcementLevel() string { 1867 if b == nil || b.RequiredStatusChecksEnforcementLevel == nil { 1868 return "" 1869 } 1870 return *b.RequiredStatusChecksEnforcementLevel 1871 } 1872 1873 // GetSignatureRequirementEnforcementLevel returns the SignatureRequirementEnforcementLevel field if it's non-nil, zero value otherwise. 1874 func (b *BranchProtectionRule) GetSignatureRequirementEnforcementLevel() string { 1875 if b == nil || b.SignatureRequirementEnforcementLevel == nil { 1876 return "" 1877 } 1878 return *b.SignatureRequirementEnforcementLevel 1879 } 1880 1881 // GetStrictRequiredStatusChecksPolicy returns the StrictRequiredStatusChecksPolicy field if it's non-nil, zero value otherwise. 1882 func (b *BranchProtectionRule) GetStrictRequiredStatusChecksPolicy() bool { 1883 if b == nil || b.StrictRequiredStatusChecksPolicy == nil { 1884 return false 1885 } 1886 return *b.StrictRequiredStatusChecksPolicy 1887 } 1888 1889 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 1890 func (b *BranchProtectionRule) GetUpdatedAt() Timestamp { 1891 if b == nil || b.UpdatedAt == nil { 1892 return Timestamp{} 1893 } 1894 return *b.UpdatedAt 1895 } 1896 1897 // GetAction returns the Action field if it's non-nil, zero value otherwise. 1898 func (b *BranchProtectionRuleEvent) GetAction() string { 1899 if b == nil || b.Action == nil { 1900 return "" 1901 } 1902 return *b.Action 1903 } 1904 1905 // GetChanges returns the Changes field. 1906 func (b *BranchProtectionRuleEvent) GetChanges() *ProtectionChanges { 1907 if b == nil { 1908 return nil 1909 } 1910 return b.Changes 1911 } 1912 1913 // GetInstallation returns the Installation field. 1914 func (b *BranchProtectionRuleEvent) GetInstallation() *Installation { 1915 if b == nil { 1916 return nil 1917 } 1918 return b.Installation 1919 } 1920 1921 // GetOrg returns the Org field. 1922 func (b *BranchProtectionRuleEvent) GetOrg() *Organization { 1923 if b == nil { 1924 return nil 1925 } 1926 return b.Org 1927 } 1928 1929 // GetRepo returns the Repo field. 1930 func (b *BranchProtectionRuleEvent) GetRepo() *Repository { 1931 if b == nil { 1932 return nil 1933 } 1934 return b.Repo 1935 } 1936 1937 // GetRule returns the Rule field. 1938 func (b *BranchProtectionRuleEvent) GetRule() *BranchProtectionRule { 1939 if b == nil { 1940 return nil 1941 } 1942 return b.Rule 1943 } 1944 1945 // GetSender returns the Sender field. 1946 func (b *BranchProtectionRuleEvent) GetSender() *User { 1947 if b == nil { 1948 return nil 1949 } 1950 return b.Sender 1951 } 1952 1953 // GetApp returns the App field. 1954 func (c *CheckRun) GetApp() *App { 1955 if c == nil { 1956 return nil 1957 } 1958 return c.App 1959 } 1960 1961 // GetCheckSuite returns the CheckSuite field. 1962 func (c *CheckRun) GetCheckSuite() *CheckSuite { 1963 if c == nil { 1964 return nil 1965 } 1966 return c.CheckSuite 1967 } 1968 1969 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 1970 func (c *CheckRun) GetCompletedAt() Timestamp { 1971 if c == nil || c.CompletedAt == nil { 1972 return Timestamp{} 1973 } 1974 return *c.CompletedAt 1975 } 1976 1977 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 1978 func (c *CheckRun) GetConclusion() string { 1979 if c == nil || c.Conclusion == nil { 1980 return "" 1981 } 1982 return *c.Conclusion 1983 } 1984 1985 // GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 1986 func (c *CheckRun) GetDetailsURL() string { 1987 if c == nil || c.DetailsURL == nil { 1988 return "" 1989 } 1990 return *c.DetailsURL 1991 } 1992 1993 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 1994 func (c *CheckRun) GetExternalID() string { 1995 if c == nil || c.ExternalID == nil { 1996 return "" 1997 } 1998 return *c.ExternalID 1999 } 2000 2001 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 2002 func (c *CheckRun) GetHeadSHA() string { 2003 if c == nil || c.HeadSHA == nil { 2004 return "" 2005 } 2006 return *c.HeadSHA 2007 } 2008 2009 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2010 func (c *CheckRun) GetHTMLURL() string { 2011 if c == nil || c.HTMLURL == nil { 2012 return "" 2013 } 2014 return *c.HTMLURL 2015 } 2016 2017 // GetID returns the ID field if it's non-nil, zero value otherwise. 2018 func (c *CheckRun) GetID() int64 { 2019 if c == nil || c.ID == nil { 2020 return 0 2021 } 2022 return *c.ID 2023 } 2024 2025 // GetName returns the Name field if it's non-nil, zero value otherwise. 2026 func (c *CheckRun) GetName() string { 2027 if c == nil || c.Name == nil { 2028 return "" 2029 } 2030 return *c.Name 2031 } 2032 2033 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2034 func (c *CheckRun) GetNodeID() string { 2035 if c == nil || c.NodeID == nil { 2036 return "" 2037 } 2038 return *c.NodeID 2039 } 2040 2041 // GetOutput returns the Output field. 2042 func (c *CheckRun) GetOutput() *CheckRunOutput { 2043 if c == nil { 2044 return nil 2045 } 2046 return c.Output 2047 } 2048 2049 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 2050 func (c *CheckRun) GetStartedAt() Timestamp { 2051 if c == nil || c.StartedAt == nil { 2052 return Timestamp{} 2053 } 2054 return *c.StartedAt 2055 } 2056 2057 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 2058 func (c *CheckRun) GetStatus() string { 2059 if c == nil || c.Status == nil { 2060 return "" 2061 } 2062 return *c.Status 2063 } 2064 2065 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2066 func (c *CheckRun) GetURL() string { 2067 if c == nil || c.URL == nil { 2068 return "" 2069 } 2070 return *c.URL 2071 } 2072 2073 // GetAnnotationLevel returns the AnnotationLevel field if it's non-nil, zero value otherwise. 2074 func (c *CheckRunAnnotation) GetAnnotationLevel() string { 2075 if c == nil || c.AnnotationLevel == nil { 2076 return "" 2077 } 2078 return *c.AnnotationLevel 2079 } 2080 2081 // GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. 2082 func (c *CheckRunAnnotation) GetEndColumn() int { 2083 if c == nil || c.EndColumn == nil { 2084 return 0 2085 } 2086 return *c.EndColumn 2087 } 2088 2089 // GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. 2090 func (c *CheckRunAnnotation) GetEndLine() int { 2091 if c == nil || c.EndLine == nil { 2092 return 0 2093 } 2094 return *c.EndLine 2095 } 2096 2097 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 2098 func (c *CheckRunAnnotation) GetMessage() string { 2099 if c == nil || c.Message == nil { 2100 return "" 2101 } 2102 return *c.Message 2103 } 2104 2105 // GetPath returns the Path field if it's non-nil, zero value otherwise. 2106 func (c *CheckRunAnnotation) GetPath() string { 2107 if c == nil || c.Path == nil { 2108 return "" 2109 } 2110 return *c.Path 2111 } 2112 2113 // GetRawDetails returns the RawDetails field if it's non-nil, zero value otherwise. 2114 func (c *CheckRunAnnotation) GetRawDetails() string { 2115 if c == nil || c.RawDetails == nil { 2116 return "" 2117 } 2118 return *c.RawDetails 2119 } 2120 2121 // GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. 2122 func (c *CheckRunAnnotation) GetStartColumn() int { 2123 if c == nil || c.StartColumn == nil { 2124 return 0 2125 } 2126 return *c.StartColumn 2127 } 2128 2129 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 2130 func (c *CheckRunAnnotation) GetStartLine() int { 2131 if c == nil || c.StartLine == nil { 2132 return 0 2133 } 2134 return *c.StartLine 2135 } 2136 2137 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 2138 func (c *CheckRunAnnotation) GetTitle() string { 2139 if c == nil || c.Title == nil { 2140 return "" 2141 } 2142 return *c.Title 2143 } 2144 2145 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2146 func (c *CheckRunEvent) GetAction() string { 2147 if c == nil || c.Action == nil { 2148 return "" 2149 } 2150 return *c.Action 2151 } 2152 2153 // GetCheckRun returns the CheckRun field. 2154 func (c *CheckRunEvent) GetCheckRun() *CheckRun { 2155 if c == nil { 2156 return nil 2157 } 2158 return c.CheckRun 2159 } 2160 2161 // GetInstallation returns the Installation field. 2162 func (c *CheckRunEvent) GetInstallation() *Installation { 2163 if c == nil { 2164 return nil 2165 } 2166 return c.Installation 2167 } 2168 2169 // GetOrg returns the Org field. 2170 func (c *CheckRunEvent) GetOrg() *Organization { 2171 if c == nil { 2172 return nil 2173 } 2174 return c.Org 2175 } 2176 2177 // GetRepo returns the Repo field. 2178 func (c *CheckRunEvent) GetRepo() *Repository { 2179 if c == nil { 2180 return nil 2181 } 2182 return c.Repo 2183 } 2184 2185 // GetRequestedAction returns the RequestedAction field. 2186 func (c *CheckRunEvent) GetRequestedAction() *RequestedAction { 2187 if c == nil { 2188 return nil 2189 } 2190 return c.RequestedAction 2191 } 2192 2193 // GetSender returns the Sender field. 2194 func (c *CheckRunEvent) GetSender() *User { 2195 if c == nil { 2196 return nil 2197 } 2198 return c.Sender 2199 } 2200 2201 // GetAlt returns the Alt field if it's non-nil, zero value otherwise. 2202 func (c *CheckRunImage) GetAlt() string { 2203 if c == nil || c.Alt == nil { 2204 return "" 2205 } 2206 return *c.Alt 2207 } 2208 2209 // GetCaption returns the Caption field if it's non-nil, zero value otherwise. 2210 func (c *CheckRunImage) GetCaption() string { 2211 if c == nil || c.Caption == nil { 2212 return "" 2213 } 2214 return *c.Caption 2215 } 2216 2217 // GetImageURL returns the ImageURL field if it's non-nil, zero value otherwise. 2218 func (c *CheckRunImage) GetImageURL() string { 2219 if c == nil || c.ImageURL == nil { 2220 return "" 2221 } 2222 return *c.ImageURL 2223 } 2224 2225 // GetAnnotationsCount returns the AnnotationsCount field if it's non-nil, zero value otherwise. 2226 func (c *CheckRunOutput) GetAnnotationsCount() int { 2227 if c == nil || c.AnnotationsCount == nil { 2228 return 0 2229 } 2230 return *c.AnnotationsCount 2231 } 2232 2233 // GetAnnotationsURL returns the AnnotationsURL field if it's non-nil, zero value otherwise. 2234 func (c *CheckRunOutput) GetAnnotationsURL() string { 2235 if c == nil || c.AnnotationsURL == nil { 2236 return "" 2237 } 2238 return *c.AnnotationsURL 2239 } 2240 2241 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 2242 func (c *CheckRunOutput) GetSummary() string { 2243 if c == nil || c.Summary == nil { 2244 return "" 2245 } 2246 return *c.Summary 2247 } 2248 2249 // GetText returns the Text field if it's non-nil, zero value otherwise. 2250 func (c *CheckRunOutput) GetText() string { 2251 if c == nil || c.Text == nil { 2252 return "" 2253 } 2254 return *c.Text 2255 } 2256 2257 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 2258 func (c *CheckRunOutput) GetTitle() string { 2259 if c == nil || c.Title == nil { 2260 return "" 2261 } 2262 return *c.Title 2263 } 2264 2265 // GetAfterSHA returns the AfterSHA field if it's non-nil, zero value otherwise. 2266 func (c *CheckSuite) GetAfterSHA() string { 2267 if c == nil || c.AfterSHA == nil { 2268 return "" 2269 } 2270 return *c.AfterSHA 2271 } 2272 2273 // GetApp returns the App field. 2274 func (c *CheckSuite) GetApp() *App { 2275 if c == nil { 2276 return nil 2277 } 2278 return c.App 2279 } 2280 2281 // GetBeforeSHA returns the BeforeSHA field if it's non-nil, zero value otherwise. 2282 func (c *CheckSuite) GetBeforeSHA() string { 2283 if c == nil || c.BeforeSHA == nil { 2284 return "" 2285 } 2286 return *c.BeforeSHA 2287 } 2288 2289 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 2290 func (c *CheckSuite) GetConclusion() string { 2291 if c == nil || c.Conclusion == nil { 2292 return "" 2293 } 2294 return *c.Conclusion 2295 } 2296 2297 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2298 func (c *CheckSuite) GetCreatedAt() Timestamp { 2299 if c == nil || c.CreatedAt == nil { 2300 return Timestamp{} 2301 } 2302 return *c.CreatedAt 2303 } 2304 2305 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 2306 func (c *CheckSuite) GetHeadBranch() string { 2307 if c == nil || c.HeadBranch == nil { 2308 return "" 2309 } 2310 return *c.HeadBranch 2311 } 2312 2313 // GetHeadCommit returns the HeadCommit field. 2314 func (c *CheckSuite) GetHeadCommit() *Commit { 2315 if c == nil { 2316 return nil 2317 } 2318 return c.HeadCommit 2319 } 2320 2321 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 2322 func (c *CheckSuite) GetHeadSHA() string { 2323 if c == nil || c.HeadSHA == nil { 2324 return "" 2325 } 2326 return *c.HeadSHA 2327 } 2328 2329 // GetID returns the ID field if it's non-nil, zero value otherwise. 2330 func (c *CheckSuite) GetID() int64 { 2331 if c == nil || c.ID == nil { 2332 return 0 2333 } 2334 return *c.ID 2335 } 2336 2337 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2338 func (c *CheckSuite) GetNodeID() string { 2339 if c == nil || c.NodeID == nil { 2340 return "" 2341 } 2342 return *c.NodeID 2343 } 2344 2345 // GetRepository returns the Repository field. 2346 func (c *CheckSuite) GetRepository() *Repository { 2347 if c == nil { 2348 return nil 2349 } 2350 return c.Repository 2351 } 2352 2353 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 2354 func (c *CheckSuite) GetStatus() string { 2355 if c == nil || c.Status == nil { 2356 return "" 2357 } 2358 return *c.Status 2359 } 2360 2361 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2362 func (c *CheckSuite) GetUpdatedAt() Timestamp { 2363 if c == nil || c.UpdatedAt == nil { 2364 return Timestamp{} 2365 } 2366 return *c.UpdatedAt 2367 } 2368 2369 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2370 func (c *CheckSuite) GetURL() string { 2371 if c == nil || c.URL == nil { 2372 return "" 2373 } 2374 return *c.URL 2375 } 2376 2377 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2378 func (c *CheckSuiteEvent) GetAction() string { 2379 if c == nil || c.Action == nil { 2380 return "" 2381 } 2382 return *c.Action 2383 } 2384 2385 // GetCheckSuite returns the CheckSuite field. 2386 func (c *CheckSuiteEvent) GetCheckSuite() *CheckSuite { 2387 if c == nil { 2388 return nil 2389 } 2390 return c.CheckSuite 2391 } 2392 2393 // GetInstallation returns the Installation field. 2394 func (c *CheckSuiteEvent) GetInstallation() *Installation { 2395 if c == nil { 2396 return nil 2397 } 2398 return c.Installation 2399 } 2400 2401 // GetOrg returns the Org field. 2402 func (c *CheckSuiteEvent) GetOrg() *Organization { 2403 if c == nil { 2404 return nil 2405 } 2406 return c.Org 2407 } 2408 2409 // GetRepo returns the Repo field. 2410 func (c *CheckSuiteEvent) GetRepo() *Repository { 2411 if c == nil { 2412 return nil 2413 } 2414 return c.Repo 2415 } 2416 2417 // GetSender returns the Sender field. 2418 func (c *CheckSuiteEvent) GetSender() *User { 2419 if c == nil { 2420 return nil 2421 } 2422 return c.Sender 2423 } 2424 2425 // GetPreferences returns the Preferences field. 2426 func (c *CheckSuitePreferenceResults) GetPreferences() *PreferenceList { 2427 if c == nil { 2428 return nil 2429 } 2430 return c.Preferences 2431 } 2432 2433 // GetRepository returns the Repository field. 2434 func (c *CheckSuitePreferenceResults) GetRepository() *Repository { 2435 if c == nil { 2436 return nil 2437 } 2438 return c.Repository 2439 } 2440 2441 // GetBody returns the Body field if it's non-nil, zero value otherwise. 2442 func (c *CodeOfConduct) GetBody() string { 2443 if c == nil || c.Body == nil { 2444 return "" 2445 } 2446 return *c.Body 2447 } 2448 2449 // GetKey returns the Key field if it's non-nil, zero value otherwise. 2450 func (c *CodeOfConduct) GetKey() string { 2451 if c == nil || c.Key == nil { 2452 return "" 2453 } 2454 return *c.Key 2455 } 2456 2457 // GetName returns the Name field if it's non-nil, zero value otherwise. 2458 func (c *CodeOfConduct) GetName() string { 2459 if c == nil || c.Name == nil { 2460 return "" 2461 } 2462 return *c.Name 2463 } 2464 2465 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2466 func (c *CodeOfConduct) GetURL() string { 2467 if c == nil || c.URL == nil { 2468 return "" 2469 } 2470 return *c.URL 2471 } 2472 2473 // GetSuggestion returns the Suggestion field if it's non-nil, zero value otherwise. 2474 func (c *CodeownersError) GetSuggestion() string { 2475 if c == nil || c.Suggestion == nil { 2476 return "" 2477 } 2478 return *c.Suggestion 2479 } 2480 2481 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2482 func (c *CodeResult) GetHTMLURL() string { 2483 if c == nil || c.HTMLURL == nil { 2484 return "" 2485 } 2486 return *c.HTMLURL 2487 } 2488 2489 // GetName returns the Name field if it's non-nil, zero value otherwise. 2490 func (c *CodeResult) GetName() string { 2491 if c == nil || c.Name == nil { 2492 return "" 2493 } 2494 return *c.Name 2495 } 2496 2497 // GetPath returns the Path field if it's non-nil, zero value otherwise. 2498 func (c *CodeResult) GetPath() string { 2499 if c == nil || c.Path == nil { 2500 return "" 2501 } 2502 return *c.Path 2503 } 2504 2505 // GetRepository returns the Repository field. 2506 func (c *CodeResult) GetRepository() *Repository { 2507 if c == nil { 2508 return nil 2509 } 2510 return c.Repository 2511 } 2512 2513 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2514 func (c *CodeResult) GetSHA() string { 2515 if c == nil || c.SHA == nil { 2516 return "" 2517 } 2518 return *c.SHA 2519 } 2520 2521 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2522 func (c *CodeScanningAlertEvent) GetAction() string { 2523 if c == nil || c.Action == nil { 2524 return "" 2525 } 2526 return *c.Action 2527 } 2528 2529 // GetAlert returns the Alert field. 2530 func (c *CodeScanningAlertEvent) GetAlert() *Alert { 2531 if c == nil { 2532 return nil 2533 } 2534 return c.Alert 2535 } 2536 2537 // GetCommitOID returns the CommitOID field if it's non-nil, zero value otherwise. 2538 func (c *CodeScanningAlertEvent) GetCommitOID() string { 2539 if c == nil || c.CommitOID == nil { 2540 return "" 2541 } 2542 return *c.CommitOID 2543 } 2544 2545 // GetInstallation returns the Installation field. 2546 func (c *CodeScanningAlertEvent) GetInstallation() *Installation { 2547 if c == nil { 2548 return nil 2549 } 2550 return c.Installation 2551 } 2552 2553 // GetOrg returns the Org field. 2554 func (c *CodeScanningAlertEvent) GetOrg() *Organization { 2555 if c == nil { 2556 return nil 2557 } 2558 return c.Org 2559 } 2560 2561 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 2562 func (c *CodeScanningAlertEvent) GetRef() string { 2563 if c == nil || c.Ref == nil { 2564 return "" 2565 } 2566 return *c.Ref 2567 } 2568 2569 // GetRepo returns the Repo field. 2570 func (c *CodeScanningAlertEvent) GetRepo() *Repository { 2571 if c == nil { 2572 return nil 2573 } 2574 return c.Repo 2575 } 2576 2577 // GetSender returns the Sender field. 2578 func (c *CodeScanningAlertEvent) GetSender() *User { 2579 if c == nil { 2580 return nil 2581 } 2582 return c.Sender 2583 } 2584 2585 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 2586 func (c *CodeSearchResult) GetIncompleteResults() bool { 2587 if c == nil || c.IncompleteResults == nil { 2588 return false 2589 } 2590 return *c.IncompleteResults 2591 } 2592 2593 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 2594 func (c *CodeSearchResult) GetTotal() int { 2595 if c == nil || c.Total == nil { 2596 return 0 2597 } 2598 return *c.Total 2599 } 2600 2601 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2602 func (c *CollaboratorInvitation) GetCreatedAt() Timestamp { 2603 if c == nil || c.CreatedAt == nil { 2604 return Timestamp{} 2605 } 2606 return *c.CreatedAt 2607 } 2608 2609 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2610 func (c *CollaboratorInvitation) GetHTMLURL() string { 2611 if c == nil || c.HTMLURL == nil { 2612 return "" 2613 } 2614 return *c.HTMLURL 2615 } 2616 2617 // GetID returns the ID field if it's non-nil, zero value otherwise. 2618 func (c *CollaboratorInvitation) GetID() int64 { 2619 if c == nil || c.ID == nil { 2620 return 0 2621 } 2622 return *c.ID 2623 } 2624 2625 // GetInvitee returns the Invitee field. 2626 func (c *CollaboratorInvitation) GetInvitee() *User { 2627 if c == nil { 2628 return nil 2629 } 2630 return c.Invitee 2631 } 2632 2633 // GetInviter returns the Inviter field. 2634 func (c *CollaboratorInvitation) GetInviter() *User { 2635 if c == nil { 2636 return nil 2637 } 2638 return c.Inviter 2639 } 2640 2641 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 2642 func (c *CollaboratorInvitation) GetPermissions() string { 2643 if c == nil || c.Permissions == nil { 2644 return "" 2645 } 2646 return *c.Permissions 2647 } 2648 2649 // GetRepo returns the Repo field. 2650 func (c *CollaboratorInvitation) GetRepo() *Repository { 2651 if c == nil { 2652 return nil 2653 } 2654 return c.Repo 2655 } 2656 2657 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2658 func (c *CollaboratorInvitation) GetURL() string { 2659 if c == nil || c.URL == nil { 2660 return "" 2661 } 2662 return *c.URL 2663 } 2664 2665 // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 2666 func (c *CombinedStatus) GetCommitURL() string { 2667 if c == nil || c.CommitURL == nil { 2668 return "" 2669 } 2670 return *c.CommitURL 2671 } 2672 2673 // GetName returns the Name field if it's non-nil, zero value otherwise. 2674 func (c *CombinedStatus) GetName() string { 2675 if c == nil || c.Name == nil { 2676 return "" 2677 } 2678 return *c.Name 2679 } 2680 2681 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 2682 func (c *CombinedStatus) GetRepositoryURL() string { 2683 if c == nil || c.RepositoryURL == nil { 2684 return "" 2685 } 2686 return *c.RepositoryURL 2687 } 2688 2689 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2690 func (c *CombinedStatus) GetSHA() string { 2691 if c == nil || c.SHA == nil { 2692 return "" 2693 } 2694 return *c.SHA 2695 } 2696 2697 // GetState returns the State field if it's non-nil, zero value otherwise. 2698 func (c *CombinedStatus) GetState() string { 2699 if c == nil || c.State == nil { 2700 return "" 2701 } 2702 return *c.State 2703 } 2704 2705 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 2706 func (c *CombinedStatus) GetTotalCount() int { 2707 if c == nil || c.TotalCount == nil { 2708 return 0 2709 } 2710 return *c.TotalCount 2711 } 2712 2713 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2714 func (c *Comment) GetCreatedAt() time.Time { 2715 if c == nil || c.CreatedAt == nil { 2716 return time.Time{} 2717 } 2718 return *c.CreatedAt 2719 } 2720 2721 // GetTotalCommitComments returns the TotalCommitComments field if it's non-nil, zero value otherwise. 2722 func (c *CommentStats) GetTotalCommitComments() int { 2723 if c == nil || c.TotalCommitComments == nil { 2724 return 0 2725 } 2726 return *c.TotalCommitComments 2727 } 2728 2729 // GetTotalGistComments returns the TotalGistComments field if it's non-nil, zero value otherwise. 2730 func (c *CommentStats) GetTotalGistComments() int { 2731 if c == nil || c.TotalGistComments == nil { 2732 return 0 2733 } 2734 return *c.TotalGistComments 2735 } 2736 2737 // GetTotalIssueComments returns the TotalIssueComments field if it's non-nil, zero value otherwise. 2738 func (c *CommentStats) GetTotalIssueComments() int { 2739 if c == nil || c.TotalIssueComments == nil { 2740 return 0 2741 } 2742 return *c.TotalIssueComments 2743 } 2744 2745 // GetTotalPullRequestComments returns the TotalPullRequestComments field if it's non-nil, zero value otherwise. 2746 func (c *CommentStats) GetTotalPullRequestComments() int { 2747 if c == nil || c.TotalPullRequestComments == nil { 2748 return 0 2749 } 2750 return *c.TotalPullRequestComments 2751 } 2752 2753 // GetAuthor returns the Author field. 2754 func (c *Commit) GetAuthor() *CommitAuthor { 2755 if c == nil { 2756 return nil 2757 } 2758 return c.Author 2759 } 2760 2761 // GetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise. 2762 func (c *Commit) GetCommentCount() int { 2763 if c == nil || c.CommentCount == nil { 2764 return 0 2765 } 2766 return *c.CommentCount 2767 } 2768 2769 // GetCommitter returns the Committer field. 2770 func (c *Commit) GetCommitter() *CommitAuthor { 2771 if c == nil { 2772 return nil 2773 } 2774 return c.Committer 2775 } 2776 2777 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2778 func (c *Commit) GetHTMLURL() string { 2779 if c == nil || c.HTMLURL == nil { 2780 return "" 2781 } 2782 return *c.HTMLURL 2783 } 2784 2785 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 2786 func (c *Commit) GetMessage() string { 2787 if c == nil || c.Message == nil { 2788 return "" 2789 } 2790 return *c.Message 2791 } 2792 2793 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2794 func (c *Commit) GetNodeID() string { 2795 if c == nil || c.NodeID == nil { 2796 return "" 2797 } 2798 return *c.NodeID 2799 } 2800 2801 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2802 func (c *Commit) GetSHA() string { 2803 if c == nil || c.SHA == nil { 2804 return "" 2805 } 2806 return *c.SHA 2807 } 2808 2809 // GetStats returns the Stats field. 2810 func (c *Commit) GetStats() *CommitStats { 2811 if c == nil { 2812 return nil 2813 } 2814 return c.Stats 2815 } 2816 2817 // GetTree returns the Tree field. 2818 func (c *Commit) GetTree() *Tree { 2819 if c == nil { 2820 return nil 2821 } 2822 return c.Tree 2823 } 2824 2825 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2826 func (c *Commit) GetURL() string { 2827 if c == nil || c.URL == nil { 2828 return "" 2829 } 2830 return *c.URL 2831 } 2832 2833 // GetVerification returns the Verification field. 2834 func (c *Commit) GetVerification() *SignatureVerification { 2835 if c == nil { 2836 return nil 2837 } 2838 return c.Verification 2839 } 2840 2841 // GetDate returns the Date field if it's non-nil, zero value otherwise. 2842 func (c *CommitAuthor) GetDate() time.Time { 2843 if c == nil || c.Date == nil { 2844 return time.Time{} 2845 } 2846 return *c.Date 2847 } 2848 2849 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 2850 func (c *CommitAuthor) GetEmail() string { 2851 if c == nil || c.Email == nil { 2852 return "" 2853 } 2854 return *c.Email 2855 } 2856 2857 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 2858 func (c *CommitAuthor) GetLogin() string { 2859 if c == nil || c.Login == nil { 2860 return "" 2861 } 2862 return *c.Login 2863 } 2864 2865 // GetName returns the Name field if it's non-nil, zero value otherwise. 2866 func (c *CommitAuthor) GetName() string { 2867 if c == nil || c.Name == nil { 2868 return "" 2869 } 2870 return *c.Name 2871 } 2872 2873 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2874 func (c *CommitCommentEvent) GetAction() string { 2875 if c == nil || c.Action == nil { 2876 return "" 2877 } 2878 return *c.Action 2879 } 2880 2881 // GetComment returns the Comment field. 2882 func (c *CommitCommentEvent) GetComment() *RepositoryComment { 2883 if c == nil { 2884 return nil 2885 } 2886 return c.Comment 2887 } 2888 2889 // GetInstallation returns the Installation field. 2890 func (c *CommitCommentEvent) GetInstallation() *Installation { 2891 if c == nil { 2892 return nil 2893 } 2894 return c.Installation 2895 } 2896 2897 // GetRepo returns the Repo field. 2898 func (c *CommitCommentEvent) GetRepo() *Repository { 2899 if c == nil { 2900 return nil 2901 } 2902 return c.Repo 2903 } 2904 2905 // GetSender returns the Sender field. 2906 func (c *CommitCommentEvent) GetSender() *User { 2907 if c == nil { 2908 return nil 2909 } 2910 return c.Sender 2911 } 2912 2913 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 2914 func (c *CommitFile) GetAdditions() int { 2915 if c == nil || c.Additions == nil { 2916 return 0 2917 } 2918 return *c.Additions 2919 } 2920 2921 // GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise. 2922 func (c *CommitFile) GetBlobURL() string { 2923 if c == nil || c.BlobURL == nil { 2924 return "" 2925 } 2926 return *c.BlobURL 2927 } 2928 2929 // GetChanges returns the Changes field if it's non-nil, zero value otherwise. 2930 func (c *CommitFile) GetChanges() int { 2931 if c == nil || c.Changes == nil { 2932 return 0 2933 } 2934 return *c.Changes 2935 } 2936 2937 // GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 2938 func (c *CommitFile) GetContentsURL() string { 2939 if c == nil || c.ContentsURL == nil { 2940 return "" 2941 } 2942 return *c.ContentsURL 2943 } 2944 2945 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 2946 func (c *CommitFile) GetDeletions() int { 2947 if c == nil || c.Deletions == nil { 2948 return 0 2949 } 2950 return *c.Deletions 2951 } 2952 2953 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 2954 func (c *CommitFile) GetFilename() string { 2955 if c == nil || c.Filename == nil { 2956 return "" 2957 } 2958 return *c.Filename 2959 } 2960 2961 // GetPatch returns the Patch field if it's non-nil, zero value otherwise. 2962 func (c *CommitFile) GetPatch() string { 2963 if c == nil || c.Patch == nil { 2964 return "" 2965 } 2966 return *c.Patch 2967 } 2968 2969 // GetPreviousFilename returns the PreviousFilename field if it's non-nil, zero value otherwise. 2970 func (c *CommitFile) GetPreviousFilename() string { 2971 if c == nil || c.PreviousFilename == nil { 2972 return "" 2973 } 2974 return *c.PreviousFilename 2975 } 2976 2977 // GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 2978 func (c *CommitFile) GetRawURL() string { 2979 if c == nil || c.RawURL == nil { 2980 return "" 2981 } 2982 return *c.RawURL 2983 } 2984 2985 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2986 func (c *CommitFile) GetSHA() string { 2987 if c == nil || c.SHA == nil { 2988 return "" 2989 } 2990 return *c.SHA 2991 } 2992 2993 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 2994 func (c *CommitFile) GetStatus() string { 2995 if c == nil || c.Status == nil { 2996 return "" 2997 } 2998 return *c.Status 2999 } 3000 3001 // GetAuthor returns the Author field. 3002 func (c *CommitResult) GetAuthor() *User { 3003 if c == nil { 3004 return nil 3005 } 3006 return c.Author 3007 } 3008 3009 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 3010 func (c *CommitResult) GetCommentsURL() string { 3011 if c == nil || c.CommentsURL == nil { 3012 return "" 3013 } 3014 return *c.CommentsURL 3015 } 3016 3017 // GetCommit returns the Commit field. 3018 func (c *CommitResult) GetCommit() *Commit { 3019 if c == nil { 3020 return nil 3021 } 3022 return c.Commit 3023 } 3024 3025 // GetCommitter returns the Committer field. 3026 func (c *CommitResult) GetCommitter() *User { 3027 if c == nil { 3028 return nil 3029 } 3030 return c.Committer 3031 } 3032 3033 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3034 func (c *CommitResult) GetHTMLURL() string { 3035 if c == nil || c.HTMLURL == nil { 3036 return "" 3037 } 3038 return *c.HTMLURL 3039 } 3040 3041 // GetRepository returns the Repository field. 3042 func (c *CommitResult) GetRepository() *Repository { 3043 if c == nil { 3044 return nil 3045 } 3046 return c.Repository 3047 } 3048 3049 // GetScore returns the Score field. 3050 func (c *CommitResult) GetScore() *float64 { 3051 if c == nil { 3052 return nil 3053 } 3054 return c.Score 3055 } 3056 3057 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3058 func (c *CommitResult) GetSHA() string { 3059 if c == nil || c.SHA == nil { 3060 return "" 3061 } 3062 return *c.SHA 3063 } 3064 3065 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3066 func (c *CommitResult) GetURL() string { 3067 if c == nil || c.URL == nil { 3068 return "" 3069 } 3070 return *c.URL 3071 } 3072 3073 // GetAheadBy returns the AheadBy field if it's non-nil, zero value otherwise. 3074 func (c *CommitsComparison) GetAheadBy() int { 3075 if c == nil || c.AheadBy == nil { 3076 return 0 3077 } 3078 return *c.AheadBy 3079 } 3080 3081 // GetBaseCommit returns the BaseCommit field. 3082 func (c *CommitsComparison) GetBaseCommit() *RepositoryCommit { 3083 if c == nil { 3084 return nil 3085 } 3086 return c.BaseCommit 3087 } 3088 3089 // GetBehindBy returns the BehindBy field if it's non-nil, zero value otherwise. 3090 func (c *CommitsComparison) GetBehindBy() int { 3091 if c == nil || c.BehindBy == nil { 3092 return 0 3093 } 3094 return *c.BehindBy 3095 } 3096 3097 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 3098 func (c *CommitsComparison) GetDiffURL() string { 3099 if c == nil || c.DiffURL == nil { 3100 return "" 3101 } 3102 return *c.DiffURL 3103 } 3104 3105 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3106 func (c *CommitsComparison) GetHTMLURL() string { 3107 if c == nil || c.HTMLURL == nil { 3108 return "" 3109 } 3110 return *c.HTMLURL 3111 } 3112 3113 // GetMergeBaseCommit returns the MergeBaseCommit field. 3114 func (c *CommitsComparison) GetMergeBaseCommit() *RepositoryCommit { 3115 if c == nil { 3116 return nil 3117 } 3118 return c.MergeBaseCommit 3119 } 3120 3121 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 3122 func (c *CommitsComparison) GetPatchURL() string { 3123 if c == nil || c.PatchURL == nil { 3124 return "" 3125 } 3126 return *c.PatchURL 3127 } 3128 3129 // GetPermalinkURL returns the PermalinkURL field if it's non-nil, zero value otherwise. 3130 func (c *CommitsComparison) GetPermalinkURL() string { 3131 if c == nil || c.PermalinkURL == nil { 3132 return "" 3133 } 3134 return *c.PermalinkURL 3135 } 3136 3137 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 3138 func (c *CommitsComparison) GetStatus() string { 3139 if c == nil || c.Status == nil { 3140 return "" 3141 } 3142 return *c.Status 3143 } 3144 3145 // GetTotalCommits returns the TotalCommits field if it's non-nil, zero value otherwise. 3146 func (c *CommitsComparison) GetTotalCommits() int { 3147 if c == nil || c.TotalCommits == nil { 3148 return 0 3149 } 3150 return *c.TotalCommits 3151 } 3152 3153 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3154 func (c *CommitsComparison) GetURL() string { 3155 if c == nil || c.URL == nil { 3156 return "" 3157 } 3158 return *c.URL 3159 } 3160 3161 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 3162 func (c *CommitsSearchResult) GetIncompleteResults() bool { 3163 if c == nil || c.IncompleteResults == nil { 3164 return false 3165 } 3166 return *c.IncompleteResults 3167 } 3168 3169 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 3170 func (c *CommitsSearchResult) GetTotal() int { 3171 if c == nil || c.Total == nil { 3172 return 0 3173 } 3174 return *c.Total 3175 } 3176 3177 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 3178 func (c *CommitStats) GetAdditions() int { 3179 if c == nil || c.Additions == nil { 3180 return 0 3181 } 3182 return *c.Additions 3183 } 3184 3185 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 3186 func (c *CommitStats) GetDeletions() int { 3187 if c == nil || c.Deletions == nil { 3188 return 0 3189 } 3190 return *c.Deletions 3191 } 3192 3193 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 3194 func (c *CommitStats) GetTotal() int { 3195 if c == nil || c.Total == nil { 3196 return 0 3197 } 3198 return *c.Total 3199 } 3200 3201 // GetCodeOfConduct returns the CodeOfConduct field. 3202 func (c *CommunityHealthFiles) GetCodeOfConduct() *Metric { 3203 if c == nil { 3204 return nil 3205 } 3206 return c.CodeOfConduct 3207 } 3208 3209 // GetCodeOfConductFile returns the CodeOfConductFile field. 3210 func (c *CommunityHealthFiles) GetCodeOfConductFile() *Metric { 3211 if c == nil { 3212 return nil 3213 } 3214 return c.CodeOfConductFile 3215 } 3216 3217 // GetContributing returns the Contributing field. 3218 func (c *CommunityHealthFiles) GetContributing() *Metric { 3219 if c == nil { 3220 return nil 3221 } 3222 return c.Contributing 3223 } 3224 3225 // GetIssueTemplate returns the IssueTemplate field. 3226 func (c *CommunityHealthFiles) GetIssueTemplate() *Metric { 3227 if c == nil { 3228 return nil 3229 } 3230 return c.IssueTemplate 3231 } 3232 3233 // GetLicense returns the License field. 3234 func (c *CommunityHealthFiles) GetLicense() *Metric { 3235 if c == nil { 3236 return nil 3237 } 3238 return c.License 3239 } 3240 3241 // GetPullRequestTemplate returns the PullRequestTemplate field. 3242 func (c *CommunityHealthFiles) GetPullRequestTemplate() *Metric { 3243 if c == nil { 3244 return nil 3245 } 3246 return c.PullRequestTemplate 3247 } 3248 3249 // GetReadme returns the Readme field. 3250 func (c *CommunityHealthFiles) GetReadme() *Metric { 3251 if c == nil { 3252 return nil 3253 } 3254 return c.Readme 3255 } 3256 3257 // GetContentReportsEnabled returns the ContentReportsEnabled field if it's non-nil, zero value otherwise. 3258 func (c *CommunityHealthMetrics) GetContentReportsEnabled() bool { 3259 if c == nil || c.ContentReportsEnabled == nil { 3260 return false 3261 } 3262 return *c.ContentReportsEnabled 3263 } 3264 3265 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 3266 func (c *CommunityHealthMetrics) GetDescription() string { 3267 if c == nil || c.Description == nil { 3268 return "" 3269 } 3270 return *c.Description 3271 } 3272 3273 // GetDocumentation returns the Documentation field if it's non-nil, zero value otherwise. 3274 func (c *CommunityHealthMetrics) GetDocumentation() string { 3275 if c == nil || c.Documentation == nil { 3276 return "" 3277 } 3278 return *c.Documentation 3279 } 3280 3281 // GetFiles returns the Files field. 3282 func (c *CommunityHealthMetrics) GetFiles() *CommunityHealthFiles { 3283 if c == nil { 3284 return nil 3285 } 3286 return c.Files 3287 } 3288 3289 // GetHealthPercentage returns the HealthPercentage field if it's non-nil, zero value otherwise. 3290 func (c *CommunityHealthMetrics) GetHealthPercentage() int { 3291 if c == nil || c.HealthPercentage == nil { 3292 return 0 3293 } 3294 return *c.HealthPercentage 3295 } 3296 3297 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3298 func (c *CommunityHealthMetrics) GetUpdatedAt() time.Time { 3299 if c == nil || c.UpdatedAt == nil { 3300 return time.Time{} 3301 } 3302 return *c.UpdatedAt 3303 } 3304 3305 // GetID returns the ID field if it's non-nil, zero value otherwise. 3306 func (c *ContentReference) GetID() int64 { 3307 if c == nil || c.ID == nil { 3308 return 0 3309 } 3310 return *c.ID 3311 } 3312 3313 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3314 func (c *ContentReference) GetNodeID() string { 3315 if c == nil || c.NodeID == nil { 3316 return "" 3317 } 3318 return *c.NodeID 3319 } 3320 3321 // GetReference returns the Reference field if it's non-nil, zero value otherwise. 3322 func (c *ContentReference) GetReference() string { 3323 if c == nil || c.Reference == nil { 3324 return "" 3325 } 3326 return *c.Reference 3327 } 3328 3329 // GetAction returns the Action field if it's non-nil, zero value otherwise. 3330 func (c *ContentReferenceEvent) GetAction() string { 3331 if c == nil || c.Action == nil { 3332 return "" 3333 } 3334 return *c.Action 3335 } 3336 3337 // GetContentReference returns the ContentReference field. 3338 func (c *ContentReferenceEvent) GetContentReference() *ContentReference { 3339 if c == nil { 3340 return nil 3341 } 3342 return c.ContentReference 3343 } 3344 3345 // GetInstallation returns the Installation field. 3346 func (c *ContentReferenceEvent) GetInstallation() *Installation { 3347 if c == nil { 3348 return nil 3349 } 3350 return c.Installation 3351 } 3352 3353 // GetRepo returns the Repo field. 3354 func (c *ContentReferenceEvent) GetRepo() *Repository { 3355 if c == nil { 3356 return nil 3357 } 3358 return c.Repo 3359 } 3360 3361 // GetSender returns the Sender field. 3362 func (c *ContentReferenceEvent) GetSender() *User { 3363 if c == nil { 3364 return nil 3365 } 3366 return c.Sender 3367 } 3368 3369 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 3370 func (c *Contributor) GetAvatarURL() string { 3371 if c == nil || c.AvatarURL == nil { 3372 return "" 3373 } 3374 return *c.AvatarURL 3375 } 3376 3377 // GetContributions returns the Contributions field if it's non-nil, zero value otherwise. 3378 func (c *Contributor) GetContributions() int { 3379 if c == nil || c.Contributions == nil { 3380 return 0 3381 } 3382 return *c.Contributions 3383 } 3384 3385 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 3386 func (c *Contributor) GetEmail() string { 3387 if c == nil || c.Email == nil { 3388 return "" 3389 } 3390 return *c.Email 3391 } 3392 3393 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 3394 func (c *Contributor) GetEventsURL() string { 3395 if c == nil || c.EventsURL == nil { 3396 return "" 3397 } 3398 return *c.EventsURL 3399 } 3400 3401 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 3402 func (c *Contributor) GetFollowersURL() string { 3403 if c == nil || c.FollowersURL == nil { 3404 return "" 3405 } 3406 return *c.FollowersURL 3407 } 3408 3409 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 3410 func (c *Contributor) GetFollowingURL() string { 3411 if c == nil || c.FollowingURL == nil { 3412 return "" 3413 } 3414 return *c.FollowingURL 3415 } 3416 3417 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 3418 func (c *Contributor) GetGistsURL() string { 3419 if c == nil || c.GistsURL == nil { 3420 return "" 3421 } 3422 return *c.GistsURL 3423 } 3424 3425 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 3426 func (c *Contributor) GetGravatarID() string { 3427 if c == nil || c.GravatarID == nil { 3428 return "" 3429 } 3430 return *c.GravatarID 3431 } 3432 3433 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3434 func (c *Contributor) GetHTMLURL() string { 3435 if c == nil || c.HTMLURL == nil { 3436 return "" 3437 } 3438 return *c.HTMLURL 3439 } 3440 3441 // GetID returns the ID field if it's non-nil, zero value otherwise. 3442 func (c *Contributor) GetID() int64 { 3443 if c == nil || c.ID == nil { 3444 return 0 3445 } 3446 return *c.ID 3447 } 3448 3449 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 3450 func (c *Contributor) GetLogin() string { 3451 if c == nil || c.Login == nil { 3452 return "" 3453 } 3454 return *c.Login 3455 } 3456 3457 // GetName returns the Name field if it's non-nil, zero value otherwise. 3458 func (c *Contributor) GetName() string { 3459 if c == nil || c.Name == nil { 3460 return "" 3461 } 3462 return *c.Name 3463 } 3464 3465 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3466 func (c *Contributor) GetNodeID() string { 3467 if c == nil || c.NodeID == nil { 3468 return "" 3469 } 3470 return *c.NodeID 3471 } 3472 3473 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 3474 func (c *Contributor) GetOrganizationsURL() string { 3475 if c == nil || c.OrganizationsURL == nil { 3476 return "" 3477 } 3478 return *c.OrganizationsURL 3479 } 3480 3481 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 3482 func (c *Contributor) GetReceivedEventsURL() string { 3483 if c == nil || c.ReceivedEventsURL == nil { 3484 return "" 3485 } 3486 return *c.ReceivedEventsURL 3487 } 3488 3489 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 3490 func (c *Contributor) GetReposURL() string { 3491 if c == nil || c.ReposURL == nil { 3492 return "" 3493 } 3494 return *c.ReposURL 3495 } 3496 3497 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 3498 func (c *Contributor) GetSiteAdmin() bool { 3499 if c == nil || c.SiteAdmin == nil { 3500 return false 3501 } 3502 return *c.SiteAdmin 3503 } 3504 3505 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 3506 func (c *Contributor) GetStarredURL() string { 3507 if c == nil || c.StarredURL == nil { 3508 return "" 3509 } 3510 return *c.StarredURL 3511 } 3512 3513 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 3514 func (c *Contributor) GetSubscriptionsURL() string { 3515 if c == nil || c.SubscriptionsURL == nil { 3516 return "" 3517 } 3518 return *c.SubscriptionsURL 3519 } 3520 3521 // GetType returns the Type field if it's non-nil, zero value otherwise. 3522 func (c *Contributor) GetType() string { 3523 if c == nil || c.Type == nil { 3524 return "" 3525 } 3526 return *c.Type 3527 } 3528 3529 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3530 func (c *Contributor) GetURL() string { 3531 if c == nil || c.URL == nil { 3532 return "" 3533 } 3534 return *c.URL 3535 } 3536 3537 // GetAuthor returns the Author field. 3538 func (c *ContributorStats) GetAuthor() *Contributor { 3539 if c == nil { 3540 return nil 3541 } 3542 return c.Author 3543 } 3544 3545 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 3546 func (c *ContributorStats) GetTotal() int { 3547 if c == nil || c.Total == nil { 3548 return 0 3549 } 3550 return *c.Total 3551 } 3552 3553 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 3554 func (c *CreateCheckRunOptions) GetCompletedAt() Timestamp { 3555 if c == nil || c.CompletedAt == nil { 3556 return Timestamp{} 3557 } 3558 return *c.CompletedAt 3559 } 3560 3561 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 3562 func (c *CreateCheckRunOptions) GetConclusion() string { 3563 if c == nil || c.Conclusion == nil { 3564 return "" 3565 } 3566 return *c.Conclusion 3567 } 3568 3569 // GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 3570 func (c *CreateCheckRunOptions) GetDetailsURL() string { 3571 if c == nil || c.DetailsURL == nil { 3572 return "" 3573 } 3574 return *c.DetailsURL 3575 } 3576 3577 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 3578 func (c *CreateCheckRunOptions) GetExternalID() string { 3579 if c == nil || c.ExternalID == nil { 3580 return "" 3581 } 3582 return *c.ExternalID 3583 } 3584 3585 // GetOutput returns the Output field. 3586 func (c *CreateCheckRunOptions) GetOutput() *CheckRunOutput { 3587 if c == nil { 3588 return nil 3589 } 3590 return c.Output 3591 } 3592 3593 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 3594 func (c *CreateCheckRunOptions) GetStartedAt() Timestamp { 3595 if c == nil || c.StartedAt == nil { 3596 return Timestamp{} 3597 } 3598 return *c.StartedAt 3599 } 3600 3601 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 3602 func (c *CreateCheckRunOptions) GetStatus() string { 3603 if c == nil || c.Status == nil { 3604 return "" 3605 } 3606 return *c.Status 3607 } 3608 3609 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 3610 func (c *CreateCheckSuiteOptions) GetHeadBranch() string { 3611 if c == nil || c.HeadBranch == nil { 3612 return "" 3613 } 3614 return *c.HeadBranch 3615 } 3616 3617 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 3618 func (c *CreateEvent) GetDescription() string { 3619 if c == nil || c.Description == nil { 3620 return "" 3621 } 3622 return *c.Description 3623 } 3624 3625 // GetInstallation returns the Installation field. 3626 func (c *CreateEvent) GetInstallation() *Installation { 3627 if c == nil { 3628 return nil 3629 } 3630 return c.Installation 3631 } 3632 3633 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 3634 func (c *CreateEvent) GetMasterBranch() string { 3635 if c == nil || c.MasterBranch == nil { 3636 return "" 3637 } 3638 return *c.MasterBranch 3639 } 3640 3641 // GetOrg returns the Org field. 3642 func (c *CreateEvent) GetOrg() *Organization { 3643 if c == nil { 3644 return nil 3645 } 3646 return c.Org 3647 } 3648 3649 // GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 3650 func (c *CreateEvent) GetPusherType() string { 3651 if c == nil || c.PusherType == nil { 3652 return "" 3653 } 3654 return *c.PusherType 3655 } 3656 3657 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 3658 func (c *CreateEvent) GetRef() string { 3659 if c == nil || c.Ref == nil { 3660 return "" 3661 } 3662 return *c.Ref 3663 } 3664 3665 // GetRefType returns the RefType field if it's non-nil, zero value otherwise. 3666 func (c *CreateEvent) GetRefType() string { 3667 if c == nil || c.RefType == nil { 3668 return "" 3669 } 3670 return *c.RefType 3671 } 3672 3673 // GetRepo returns the Repo field. 3674 func (c *CreateEvent) GetRepo() *Repository { 3675 if c == nil { 3676 return nil 3677 } 3678 return c.Repo 3679 } 3680 3681 // GetSender returns the Sender field. 3682 func (c *CreateEvent) GetSender() *User { 3683 if c == nil { 3684 return nil 3685 } 3686 return c.Sender 3687 } 3688 3689 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 3690 func (c *CreateOrgInvitationOptions) GetEmail() string { 3691 if c == nil || c.Email == nil { 3692 return "" 3693 } 3694 return *c.Email 3695 } 3696 3697 // GetInviteeID returns the InviteeID field if it's non-nil, zero value otherwise. 3698 func (c *CreateOrgInvitationOptions) GetInviteeID() int64 { 3699 if c == nil || c.InviteeID == nil { 3700 return 0 3701 } 3702 return *c.InviteeID 3703 } 3704 3705 // GetRole returns the Role field if it's non-nil, zero value otherwise. 3706 func (c *CreateOrgInvitationOptions) GetRole() string { 3707 if c == nil || c.Role == nil { 3708 return "" 3709 } 3710 return *c.Role 3711 } 3712 3713 // GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. 3714 func (c *CreateOrUpdateCustomRoleOptions) GetBaseRole() string { 3715 if c == nil || c.BaseRole == nil { 3716 return "" 3717 } 3718 return *c.BaseRole 3719 } 3720 3721 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 3722 func (c *CreateOrUpdateCustomRoleOptions) GetDescription() string { 3723 if c == nil || c.Description == nil { 3724 return "" 3725 } 3726 return *c.Description 3727 } 3728 3729 // GetName returns the Name field if it's non-nil, zero value otherwise. 3730 func (c *CreateOrUpdateCustomRoleOptions) GetName() string { 3731 if c == nil || c.Name == nil { 3732 return "" 3733 } 3734 return *c.Name 3735 } 3736 3737 // GetFrom returns the From field if it's non-nil, zero value otherwise. 3738 func (c *CreateProtectedChanges) GetFrom() bool { 3739 if c == nil || c.From == nil { 3740 return false 3741 } 3742 return *c.From 3743 } 3744 3745 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 3746 func (c *CreateRunnerGroupRequest) GetAllowsPublicRepositories() bool { 3747 if c == nil || c.AllowsPublicRepositories == nil { 3748 return false 3749 } 3750 return *c.AllowsPublicRepositories 3751 } 3752 3753 // GetName returns the Name field if it's non-nil, zero value otherwise. 3754 func (c *CreateRunnerGroupRequest) GetName() string { 3755 if c == nil || c.Name == nil { 3756 return "" 3757 } 3758 return *c.Name 3759 } 3760 3761 // GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. 3762 func (c *CreateRunnerGroupRequest) GetRestrictedToWorkflows() bool { 3763 if c == nil || c.RestrictedToWorkflows == nil { 3764 return false 3765 } 3766 return *c.RestrictedToWorkflows 3767 } 3768 3769 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 3770 func (c *CreateRunnerGroupRequest) GetVisibility() string { 3771 if c == nil || c.Visibility == nil { 3772 return "" 3773 } 3774 return *c.Visibility 3775 } 3776 3777 // GetDeploymentBranchPolicy returns the DeploymentBranchPolicy field. 3778 func (c *CreateUpdateEnvironment) GetDeploymentBranchPolicy() *BranchPolicy { 3779 if c == nil { 3780 return nil 3781 } 3782 return c.DeploymentBranchPolicy 3783 } 3784 3785 // GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. 3786 func (c *CreateUpdateEnvironment) GetWaitTimer() int { 3787 if c == nil || c.WaitTimer == nil { 3788 return 0 3789 } 3790 return *c.WaitTimer 3791 } 3792 3793 // GetBody returns the Body field if it's non-nil, zero value otherwise. 3794 func (c *CreateUserProjectOptions) GetBody() string { 3795 if c == nil || c.Body == nil { 3796 return "" 3797 } 3798 return *c.Body 3799 } 3800 3801 // GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. 3802 func (c *CustomRepoRoles) GetBaseRole() string { 3803 if c == nil || c.BaseRole == nil { 3804 return "" 3805 } 3806 return *c.BaseRole 3807 } 3808 3809 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 3810 func (c *CustomRepoRoles) GetDescription() string { 3811 if c == nil || c.Description == nil { 3812 return "" 3813 } 3814 return *c.Description 3815 } 3816 3817 // GetID returns the ID field if it's non-nil, zero value otherwise. 3818 func (c *CustomRepoRoles) GetID() int64 { 3819 if c == nil || c.ID == nil { 3820 return 0 3821 } 3822 return *c.ID 3823 } 3824 3825 // GetName returns the Name field if it's non-nil, zero value otherwise. 3826 func (c *CustomRepoRoles) GetName() string { 3827 if c == nil || c.Name == nil { 3828 return "" 3829 } 3830 return *c.Name 3831 } 3832 3833 // GetInstallation returns the Installation field. 3834 func (d *DeleteEvent) GetInstallation() *Installation { 3835 if d == nil { 3836 return nil 3837 } 3838 return d.Installation 3839 } 3840 3841 // GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 3842 func (d *DeleteEvent) GetPusherType() string { 3843 if d == nil || d.PusherType == nil { 3844 return "" 3845 } 3846 return *d.PusherType 3847 } 3848 3849 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 3850 func (d *DeleteEvent) GetRef() string { 3851 if d == nil || d.Ref == nil { 3852 return "" 3853 } 3854 return *d.Ref 3855 } 3856 3857 // GetRefType returns the RefType field if it's non-nil, zero value otherwise. 3858 func (d *DeleteEvent) GetRefType() string { 3859 if d == nil || d.RefType == nil { 3860 return "" 3861 } 3862 return *d.RefType 3863 } 3864 3865 // GetRepo returns the Repo field. 3866 func (d *DeleteEvent) GetRepo() *Repository { 3867 if d == nil { 3868 return nil 3869 } 3870 return d.Repo 3871 } 3872 3873 // GetSender returns the Sender field. 3874 func (d *DeleteEvent) GetSender() *User { 3875 if d == nil { 3876 return nil 3877 } 3878 return d.Sender 3879 } 3880 3881 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3882 func (d *DependabotAlert) GetCreatedAt() Timestamp { 3883 if d == nil || d.CreatedAt == nil { 3884 return Timestamp{} 3885 } 3886 return *d.CreatedAt 3887 } 3888 3889 // GetDependency returns the Dependency field. 3890 func (d *DependabotAlert) GetDependency() *Dependency { 3891 if d == nil { 3892 return nil 3893 } 3894 return d.Dependency 3895 } 3896 3897 // GetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise. 3898 func (d *DependabotAlert) GetDismissedAt() Timestamp { 3899 if d == nil || d.DismissedAt == nil { 3900 return Timestamp{} 3901 } 3902 return *d.DismissedAt 3903 } 3904 3905 // GetDismissedBy returns the DismissedBy field. 3906 func (d *DependabotAlert) GetDismissedBy() *User { 3907 if d == nil { 3908 return nil 3909 } 3910 return d.DismissedBy 3911 } 3912 3913 // GetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise. 3914 func (d *DependabotAlert) GetDismissedComment() string { 3915 if d == nil || d.DismissedComment == nil { 3916 return "" 3917 } 3918 return *d.DismissedComment 3919 } 3920 3921 // GetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise. 3922 func (d *DependabotAlert) GetDismissedReason() string { 3923 if d == nil || d.DismissedReason == nil { 3924 return "" 3925 } 3926 return *d.DismissedReason 3927 } 3928 3929 // GetFixedAt returns the FixedAt field if it's non-nil, zero value otherwise. 3930 func (d *DependabotAlert) GetFixedAt() Timestamp { 3931 if d == nil || d.FixedAt == nil { 3932 return Timestamp{} 3933 } 3934 return *d.FixedAt 3935 } 3936 3937 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3938 func (d *DependabotAlert) GetHTMLURL() string { 3939 if d == nil || d.HTMLURL == nil { 3940 return "" 3941 } 3942 return *d.HTMLURL 3943 } 3944 3945 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 3946 func (d *DependabotAlert) GetNumber() int { 3947 if d == nil || d.Number == nil { 3948 return 0 3949 } 3950 return *d.Number 3951 } 3952 3953 // GetSecurityAdvisory returns the SecurityAdvisory field. 3954 func (d *DependabotAlert) GetSecurityAdvisory() *DependabotSecurityAdvisory { 3955 if d == nil { 3956 return nil 3957 } 3958 return d.SecurityAdvisory 3959 } 3960 3961 // GetSecurityVulnerability returns the SecurityVulnerability field. 3962 func (d *DependabotAlert) GetSecurityVulnerability() *AdvisoryVulnerability { 3963 if d == nil { 3964 return nil 3965 } 3966 return d.SecurityVulnerability 3967 } 3968 3969 // GetState returns the State field if it's non-nil, zero value otherwise. 3970 func (d *DependabotAlert) GetState() string { 3971 if d == nil || d.State == nil { 3972 return "" 3973 } 3974 return *d.State 3975 } 3976 3977 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3978 func (d *DependabotAlert) GetUpdatedAt() Timestamp { 3979 if d == nil || d.UpdatedAt == nil { 3980 return Timestamp{} 3981 } 3982 return *d.UpdatedAt 3983 } 3984 3985 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3986 func (d *DependabotAlert) GetURL() string { 3987 if d == nil || d.URL == nil { 3988 return "" 3989 } 3990 return *d.URL 3991 } 3992 3993 // GetCVEID returns the CVEID field if it's non-nil, zero value otherwise. 3994 func (d *DependabotSecurityAdvisory) GetCVEID() string { 3995 if d == nil || d.CVEID == nil { 3996 return "" 3997 } 3998 return *d.CVEID 3999 } 4000 4001 // GetCVSs returns the CVSs field. 4002 func (d *DependabotSecurityAdvisory) GetCVSs() *AdvisoryCVSs { 4003 if d == nil { 4004 return nil 4005 } 4006 return d.CVSs 4007 } 4008 4009 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4010 func (d *DependabotSecurityAdvisory) GetDescription() string { 4011 if d == nil || d.Description == nil { 4012 return "" 4013 } 4014 return *d.Description 4015 } 4016 4017 // GetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise. 4018 func (d *DependabotSecurityAdvisory) GetGHSAID() string { 4019 if d == nil || d.GHSAID == nil { 4020 return "" 4021 } 4022 return *d.GHSAID 4023 } 4024 4025 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 4026 func (d *DependabotSecurityAdvisory) GetPublishedAt() Timestamp { 4027 if d == nil || d.PublishedAt == nil { 4028 return Timestamp{} 4029 } 4030 return *d.PublishedAt 4031 } 4032 4033 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 4034 func (d *DependabotSecurityAdvisory) GetSeverity() string { 4035 if d == nil || d.Severity == nil { 4036 return "" 4037 } 4038 return *d.Severity 4039 } 4040 4041 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 4042 func (d *DependabotSecurityAdvisory) GetSummary() string { 4043 if d == nil || d.Summary == nil { 4044 return "" 4045 } 4046 return *d.Summary 4047 } 4048 4049 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4050 func (d *DependabotSecurityAdvisory) GetUpdatedAt() Timestamp { 4051 if d == nil || d.UpdatedAt == nil { 4052 return Timestamp{} 4053 } 4054 return *d.UpdatedAt 4055 } 4056 4057 // GetWithdrawnAt returns the WithdrawnAt field if it's non-nil, zero value otherwise. 4058 func (d *DependabotSecurityAdvisory) GetWithdrawnAt() Timestamp { 4059 if d == nil || d.WithdrawnAt == nil { 4060 return Timestamp{} 4061 } 4062 return *d.WithdrawnAt 4063 } 4064 4065 // GetManifestPath returns the ManifestPath field if it's non-nil, zero value otherwise. 4066 func (d *Dependency) GetManifestPath() string { 4067 if d == nil || d.ManifestPath == nil { 4068 return "" 4069 } 4070 return *d.ManifestPath 4071 } 4072 4073 // GetPackage returns the Package field. 4074 func (d *Dependency) GetPackage() *VulnerabilityPackage { 4075 if d == nil { 4076 return nil 4077 } 4078 return d.Package 4079 } 4080 4081 // GetScope returns the Scope field if it's non-nil, zero value otherwise. 4082 func (d *Dependency) GetScope() string { 4083 if d == nil || d.Scope == nil { 4084 return "" 4085 } 4086 return *d.Scope 4087 } 4088 4089 // GetAction returns the Action field if it's non-nil, zero value otherwise. 4090 func (d *DeployKeyEvent) GetAction() string { 4091 if d == nil || d.Action == nil { 4092 return "" 4093 } 4094 return *d.Action 4095 } 4096 4097 // GetInstallation returns the Installation field. 4098 func (d *DeployKeyEvent) GetInstallation() *Installation { 4099 if d == nil { 4100 return nil 4101 } 4102 return d.Installation 4103 } 4104 4105 // GetKey returns the Key field. 4106 func (d *DeployKeyEvent) GetKey() *Key { 4107 if d == nil { 4108 return nil 4109 } 4110 return d.Key 4111 } 4112 4113 // GetOrganization returns the Organization field. 4114 func (d *DeployKeyEvent) GetOrganization() *Organization { 4115 if d == nil { 4116 return nil 4117 } 4118 return d.Organization 4119 } 4120 4121 // GetRepo returns the Repo field. 4122 func (d *DeployKeyEvent) GetRepo() *Repository { 4123 if d == nil { 4124 return nil 4125 } 4126 return d.Repo 4127 } 4128 4129 // GetSender returns the Sender field. 4130 func (d *DeployKeyEvent) GetSender() *User { 4131 if d == nil { 4132 return nil 4133 } 4134 return d.Sender 4135 } 4136 4137 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4138 func (d *Deployment) GetCreatedAt() Timestamp { 4139 if d == nil || d.CreatedAt == nil { 4140 return Timestamp{} 4141 } 4142 return *d.CreatedAt 4143 } 4144 4145 // GetCreator returns the Creator field. 4146 func (d *Deployment) GetCreator() *User { 4147 if d == nil { 4148 return nil 4149 } 4150 return d.Creator 4151 } 4152 4153 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4154 func (d *Deployment) GetDescription() string { 4155 if d == nil || d.Description == nil { 4156 return "" 4157 } 4158 return *d.Description 4159 } 4160 4161 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 4162 func (d *Deployment) GetEnvironment() string { 4163 if d == nil || d.Environment == nil { 4164 return "" 4165 } 4166 return *d.Environment 4167 } 4168 4169 // GetID returns the ID field if it's non-nil, zero value otherwise. 4170 func (d *Deployment) GetID() int64 { 4171 if d == nil || d.ID == nil { 4172 return 0 4173 } 4174 return *d.ID 4175 } 4176 4177 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4178 func (d *Deployment) GetNodeID() string { 4179 if d == nil || d.NodeID == nil { 4180 return "" 4181 } 4182 return *d.NodeID 4183 } 4184 4185 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 4186 func (d *Deployment) GetRef() string { 4187 if d == nil || d.Ref == nil { 4188 return "" 4189 } 4190 return *d.Ref 4191 } 4192 4193 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 4194 func (d *Deployment) GetRepositoryURL() string { 4195 if d == nil || d.RepositoryURL == nil { 4196 return "" 4197 } 4198 return *d.RepositoryURL 4199 } 4200 4201 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 4202 func (d *Deployment) GetSHA() string { 4203 if d == nil || d.SHA == nil { 4204 return "" 4205 } 4206 return *d.SHA 4207 } 4208 4209 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 4210 func (d *Deployment) GetStatusesURL() string { 4211 if d == nil || d.StatusesURL == nil { 4212 return "" 4213 } 4214 return *d.StatusesURL 4215 } 4216 4217 // GetTask returns the Task field if it's non-nil, zero value otherwise. 4218 func (d *Deployment) GetTask() string { 4219 if d == nil || d.Task == nil { 4220 return "" 4221 } 4222 return *d.Task 4223 } 4224 4225 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4226 func (d *Deployment) GetUpdatedAt() Timestamp { 4227 if d == nil || d.UpdatedAt == nil { 4228 return Timestamp{} 4229 } 4230 return *d.UpdatedAt 4231 } 4232 4233 // GetURL returns the URL field if it's non-nil, zero value otherwise. 4234 func (d *Deployment) GetURL() string { 4235 if d == nil || d.URL == nil { 4236 return "" 4237 } 4238 return *d.URL 4239 } 4240 4241 // GetDeployment returns the Deployment field. 4242 func (d *DeploymentEvent) GetDeployment() *Deployment { 4243 if d == nil { 4244 return nil 4245 } 4246 return d.Deployment 4247 } 4248 4249 // GetInstallation returns the Installation field. 4250 func (d *DeploymentEvent) GetInstallation() *Installation { 4251 if d == nil { 4252 return nil 4253 } 4254 return d.Installation 4255 } 4256 4257 // GetRepo returns the Repo field. 4258 func (d *DeploymentEvent) GetRepo() *Repository { 4259 if d == nil { 4260 return nil 4261 } 4262 return d.Repo 4263 } 4264 4265 // GetSender returns the Sender field. 4266 func (d *DeploymentEvent) GetSender() *User { 4267 if d == nil { 4268 return nil 4269 } 4270 return d.Sender 4271 } 4272 4273 // GetAutoMerge returns the AutoMerge field if it's non-nil, zero value otherwise. 4274 func (d *DeploymentRequest) GetAutoMerge() bool { 4275 if d == nil || d.AutoMerge == nil { 4276 return false 4277 } 4278 return *d.AutoMerge 4279 } 4280 4281 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4282 func (d *DeploymentRequest) GetDescription() string { 4283 if d == nil || d.Description == nil { 4284 return "" 4285 } 4286 return *d.Description 4287 } 4288 4289 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 4290 func (d *DeploymentRequest) GetEnvironment() string { 4291 if d == nil || d.Environment == nil { 4292 return "" 4293 } 4294 return *d.Environment 4295 } 4296 4297 // GetProductionEnvironment returns the ProductionEnvironment field if it's non-nil, zero value otherwise. 4298 func (d *DeploymentRequest) GetProductionEnvironment() bool { 4299 if d == nil || d.ProductionEnvironment == nil { 4300 return false 4301 } 4302 return *d.ProductionEnvironment 4303 } 4304 4305 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 4306 func (d *DeploymentRequest) GetRef() string { 4307 if d == nil || d.Ref == nil { 4308 return "" 4309 } 4310 return *d.Ref 4311 } 4312 4313 // GetRequiredContexts returns the RequiredContexts field if it's non-nil, zero value otherwise. 4314 func (d *DeploymentRequest) GetRequiredContexts() []string { 4315 if d == nil || d.RequiredContexts == nil { 4316 return nil 4317 } 4318 return *d.RequiredContexts 4319 } 4320 4321 // GetTask returns the Task field if it's non-nil, zero value otherwise. 4322 func (d *DeploymentRequest) GetTask() string { 4323 if d == nil || d.Task == nil { 4324 return "" 4325 } 4326 return *d.Task 4327 } 4328 4329 // GetTransientEnvironment returns the TransientEnvironment field if it's non-nil, zero value otherwise. 4330 func (d *DeploymentRequest) GetTransientEnvironment() bool { 4331 if d == nil || d.TransientEnvironment == nil { 4332 return false 4333 } 4334 return *d.TransientEnvironment 4335 } 4336 4337 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4338 func (d *DeploymentStatus) GetCreatedAt() Timestamp { 4339 if d == nil || d.CreatedAt == nil { 4340 return Timestamp{} 4341 } 4342 return *d.CreatedAt 4343 } 4344 4345 // GetCreator returns the Creator field. 4346 func (d *DeploymentStatus) GetCreator() *User { 4347 if d == nil { 4348 return nil 4349 } 4350 return d.Creator 4351 } 4352 4353 // GetDeploymentURL returns the DeploymentURL field if it's non-nil, zero value otherwise. 4354 func (d *DeploymentStatus) GetDeploymentURL() string { 4355 if d == nil || d.DeploymentURL == nil { 4356 return "" 4357 } 4358 return *d.DeploymentURL 4359 } 4360 4361 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4362 func (d *DeploymentStatus) GetDescription() string { 4363 if d == nil || d.Description == nil { 4364 return "" 4365 } 4366 return *d.Description 4367 } 4368 4369 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 4370 func (d *DeploymentStatus) GetEnvironment() string { 4371 if d == nil || d.Environment == nil { 4372 return "" 4373 } 4374 return *d.Environment 4375 } 4376 4377 // GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. 4378 func (d *DeploymentStatus) GetEnvironmentURL() string { 4379 if d == nil || d.EnvironmentURL == nil { 4380 return "" 4381 } 4382 return *d.EnvironmentURL 4383 } 4384 4385 // GetID returns the ID field if it's non-nil, zero value otherwise. 4386 func (d *DeploymentStatus) GetID() int64 { 4387 if d == nil || d.ID == nil { 4388 return 0 4389 } 4390 return *d.ID 4391 } 4392 4393 // GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. 4394 func (d *DeploymentStatus) GetLogURL() string { 4395 if d == nil || d.LogURL == nil { 4396 return "" 4397 } 4398 return *d.LogURL 4399 } 4400 4401 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4402 func (d *DeploymentStatus) GetNodeID() string { 4403 if d == nil || d.NodeID == nil { 4404 return "" 4405 } 4406 return *d.NodeID 4407 } 4408 4409 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 4410 func (d *DeploymentStatus) GetRepositoryURL() string { 4411 if d == nil || d.RepositoryURL == nil { 4412 return "" 4413 } 4414 return *d.RepositoryURL 4415 } 4416 4417 // GetState returns the State field if it's non-nil, zero value otherwise. 4418 func (d *DeploymentStatus) GetState() string { 4419 if d == nil || d.State == nil { 4420 return "" 4421 } 4422 return *d.State 4423 } 4424 4425 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 4426 func (d *DeploymentStatus) GetTargetURL() string { 4427 if d == nil || d.TargetURL == nil { 4428 return "" 4429 } 4430 return *d.TargetURL 4431 } 4432 4433 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4434 func (d *DeploymentStatus) GetUpdatedAt() Timestamp { 4435 if d == nil || d.UpdatedAt == nil { 4436 return Timestamp{} 4437 } 4438 return *d.UpdatedAt 4439 } 4440 4441 // GetURL returns the URL field if it's non-nil, zero value otherwise. 4442 func (d *DeploymentStatus) GetURL() string { 4443 if d == nil || d.URL == nil { 4444 return "" 4445 } 4446 return *d.URL 4447 } 4448 4449 // GetDeployment returns the Deployment field. 4450 func (d *DeploymentStatusEvent) GetDeployment() *Deployment { 4451 if d == nil { 4452 return nil 4453 } 4454 return d.Deployment 4455 } 4456 4457 // GetDeploymentStatus returns the DeploymentStatus field. 4458 func (d *DeploymentStatusEvent) GetDeploymentStatus() *DeploymentStatus { 4459 if d == nil { 4460 return nil 4461 } 4462 return d.DeploymentStatus 4463 } 4464 4465 // GetInstallation returns the Installation field. 4466 func (d *DeploymentStatusEvent) GetInstallation() *Installation { 4467 if d == nil { 4468 return nil 4469 } 4470 return d.Installation 4471 } 4472 4473 // GetRepo returns the Repo field. 4474 func (d *DeploymentStatusEvent) GetRepo() *Repository { 4475 if d == nil { 4476 return nil 4477 } 4478 return d.Repo 4479 } 4480 4481 // GetSender returns the Sender field. 4482 func (d *DeploymentStatusEvent) GetSender() *User { 4483 if d == nil { 4484 return nil 4485 } 4486 return d.Sender 4487 } 4488 4489 // GetAutoInactive returns the AutoInactive field if it's non-nil, zero value otherwise. 4490 func (d *DeploymentStatusRequest) GetAutoInactive() bool { 4491 if d == nil || d.AutoInactive == nil { 4492 return false 4493 } 4494 return *d.AutoInactive 4495 } 4496 4497 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4498 func (d *DeploymentStatusRequest) GetDescription() string { 4499 if d == nil || d.Description == nil { 4500 return "" 4501 } 4502 return *d.Description 4503 } 4504 4505 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 4506 func (d *DeploymentStatusRequest) GetEnvironment() string { 4507 if d == nil || d.Environment == nil { 4508 return "" 4509 } 4510 return *d.Environment 4511 } 4512 4513 // GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. 4514 func (d *DeploymentStatusRequest) GetEnvironmentURL() string { 4515 if d == nil || d.EnvironmentURL == nil { 4516 return "" 4517 } 4518 return *d.EnvironmentURL 4519 } 4520 4521 // GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. 4522 func (d *DeploymentStatusRequest) GetLogURL() string { 4523 if d == nil || d.LogURL == nil { 4524 return "" 4525 } 4526 return *d.LogURL 4527 } 4528 4529 // GetState returns the State field if it's non-nil, zero value otherwise. 4530 func (d *DeploymentStatusRequest) GetState() string { 4531 if d == nil || d.State == nil { 4532 return "" 4533 } 4534 return *d.State 4535 } 4536 4537 // GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 4538 func (d *Discussion) GetActiveLockReason() string { 4539 if d == nil || d.ActiveLockReason == nil { 4540 return "" 4541 } 4542 return *d.ActiveLockReason 4543 } 4544 4545 // GetAnswerChosenAt returns the AnswerChosenAt field if it's non-nil, zero value otherwise. 4546 func (d *Discussion) GetAnswerChosenAt() Timestamp { 4547 if d == nil || d.AnswerChosenAt == nil { 4548 return Timestamp{} 4549 } 4550 return *d.AnswerChosenAt 4551 } 4552 4553 // GetAnswerChosenBy returns the AnswerChosenBy field if it's non-nil, zero value otherwise. 4554 func (d *Discussion) GetAnswerChosenBy() string { 4555 if d == nil || d.AnswerChosenBy == nil { 4556 return "" 4557 } 4558 return *d.AnswerChosenBy 4559 } 4560 4561 // GetAnswerHTMLURL returns the AnswerHTMLURL field if it's non-nil, zero value otherwise. 4562 func (d *Discussion) GetAnswerHTMLURL() string { 4563 if d == nil || d.AnswerHTMLURL == nil { 4564 return "" 4565 } 4566 return *d.AnswerHTMLURL 4567 } 4568 4569 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 4570 func (d *Discussion) GetAuthorAssociation() string { 4571 if d == nil || d.AuthorAssociation == nil { 4572 return "" 4573 } 4574 return *d.AuthorAssociation 4575 } 4576 4577 // GetBody returns the Body field if it's non-nil, zero value otherwise. 4578 func (d *Discussion) GetBody() string { 4579 if d == nil || d.Body == nil { 4580 return "" 4581 } 4582 return *d.Body 4583 } 4584 4585 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 4586 func (d *Discussion) GetComments() int { 4587 if d == nil || d.Comments == nil { 4588 return 0 4589 } 4590 return *d.Comments 4591 } 4592 4593 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4594 func (d *Discussion) GetCreatedAt() Timestamp { 4595 if d == nil || d.CreatedAt == nil { 4596 return Timestamp{} 4597 } 4598 return *d.CreatedAt 4599 } 4600 4601 // GetDiscussionCategory returns the DiscussionCategory field. 4602 func (d *Discussion) GetDiscussionCategory() *DiscussionCategory { 4603 if d == nil { 4604 return nil 4605 } 4606 return d.DiscussionCategory 4607 } 4608 4609 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4610 func (d *Discussion) GetHTMLURL() string { 4611 if d == nil || d.HTMLURL == nil { 4612 return "" 4613 } 4614 return *d.HTMLURL 4615 } 4616 4617 // GetID returns the ID field if it's non-nil, zero value otherwise. 4618 func (d *Discussion) GetID() int64 { 4619 if d == nil || d.ID == nil { 4620 return 0 4621 } 4622 return *d.ID 4623 } 4624 4625 // GetLocked returns the Locked field if it's non-nil, zero value otherwise. 4626 func (d *Discussion) GetLocked() bool { 4627 if d == nil || d.Locked == nil { 4628 return false 4629 } 4630 return *d.Locked 4631 } 4632 4633 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4634 func (d *Discussion) GetNodeID() string { 4635 if d == nil || d.NodeID == nil { 4636 return "" 4637 } 4638 return *d.NodeID 4639 } 4640 4641 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 4642 func (d *Discussion) GetNumber() int { 4643 if d == nil || d.Number == nil { 4644 return 0 4645 } 4646 return *d.Number 4647 } 4648 4649 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 4650 func (d *Discussion) GetRepositoryURL() string { 4651 if d == nil || d.RepositoryURL == nil { 4652 return "" 4653 } 4654 return *d.RepositoryURL 4655 } 4656 4657 // GetState returns the State field if it's non-nil, zero value otherwise. 4658 func (d *Discussion) GetState() string { 4659 if d == nil || d.State == nil { 4660 return "" 4661 } 4662 return *d.State 4663 } 4664 4665 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 4666 func (d *Discussion) GetTitle() string { 4667 if d == nil || d.Title == nil { 4668 return "" 4669 } 4670 return *d.Title 4671 } 4672 4673 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4674 func (d *Discussion) GetUpdatedAt() Timestamp { 4675 if d == nil || d.UpdatedAt == nil { 4676 return Timestamp{} 4677 } 4678 return *d.UpdatedAt 4679 } 4680 4681 // GetUser returns the User field. 4682 func (d *Discussion) GetUser() *User { 4683 if d == nil { 4684 return nil 4685 } 4686 return d.User 4687 } 4688 4689 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4690 func (d *DiscussionCategory) GetCreatedAt() Timestamp { 4691 if d == nil || d.CreatedAt == nil { 4692 return Timestamp{} 4693 } 4694 return *d.CreatedAt 4695 } 4696 4697 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4698 func (d *DiscussionCategory) GetDescription() string { 4699 if d == nil || d.Description == nil { 4700 return "" 4701 } 4702 return *d.Description 4703 } 4704 4705 // GetEmoji returns the Emoji field if it's non-nil, zero value otherwise. 4706 func (d *DiscussionCategory) GetEmoji() string { 4707 if d == nil || d.Emoji == nil { 4708 return "" 4709 } 4710 return *d.Emoji 4711 } 4712 4713 // GetID returns the ID field if it's non-nil, zero value otherwise. 4714 func (d *DiscussionCategory) GetID() int64 { 4715 if d == nil || d.ID == nil { 4716 return 0 4717 } 4718 return *d.ID 4719 } 4720 4721 // GetIsAnswerable returns the IsAnswerable field if it's non-nil, zero value otherwise. 4722 func (d *DiscussionCategory) GetIsAnswerable() bool { 4723 if d == nil || d.IsAnswerable == nil { 4724 return false 4725 } 4726 return *d.IsAnswerable 4727 } 4728 4729 // GetName returns the Name field if it's non-nil, zero value otherwise. 4730 func (d *DiscussionCategory) GetName() string { 4731 if d == nil || d.Name == nil { 4732 return "" 4733 } 4734 return *d.Name 4735 } 4736 4737 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4738 func (d *DiscussionCategory) GetNodeID() string { 4739 if d == nil || d.NodeID == nil { 4740 return "" 4741 } 4742 return *d.NodeID 4743 } 4744 4745 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 4746 func (d *DiscussionCategory) GetRepositoryID() int64 { 4747 if d == nil || d.RepositoryID == nil { 4748 return 0 4749 } 4750 return *d.RepositoryID 4751 } 4752 4753 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 4754 func (d *DiscussionCategory) GetSlug() string { 4755 if d == nil || d.Slug == nil { 4756 return "" 4757 } 4758 return *d.Slug 4759 } 4760 4761 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4762 func (d *DiscussionCategory) GetUpdatedAt() Timestamp { 4763 if d == nil || d.UpdatedAt == nil { 4764 return Timestamp{} 4765 } 4766 return *d.UpdatedAt 4767 } 4768 4769 // GetAuthor returns the Author field. 4770 func (d *DiscussionComment) GetAuthor() *User { 4771 if d == nil { 4772 return nil 4773 } 4774 return d.Author 4775 } 4776 4777 // GetBody returns the Body field if it's non-nil, zero value otherwise. 4778 func (d *DiscussionComment) GetBody() string { 4779 if d == nil || d.Body == nil { 4780 return "" 4781 } 4782 return *d.Body 4783 } 4784 4785 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 4786 func (d *DiscussionComment) GetBodyHTML() string { 4787 if d == nil || d.BodyHTML == nil { 4788 return "" 4789 } 4790 return *d.BodyHTML 4791 } 4792 4793 // GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. 4794 func (d *DiscussionComment) GetBodyVersion() string { 4795 if d == nil || d.BodyVersion == nil { 4796 return "" 4797 } 4798 return *d.BodyVersion 4799 } 4800 4801 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 4802 func (d *DiscussionComment) GetCreatedAt() Timestamp { 4803 if d == nil || d.CreatedAt == nil { 4804 return Timestamp{} 4805 } 4806 return *d.CreatedAt 4807 } 4808 4809 // GetDiscussionURL returns the DiscussionURL field if it's non-nil, zero value otherwise. 4810 func (d *DiscussionComment) GetDiscussionURL() string { 4811 if d == nil || d.DiscussionURL == nil { 4812 return "" 4813 } 4814 return *d.DiscussionURL 4815 } 4816 4817 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4818 func (d *DiscussionComment) GetHTMLURL() string { 4819 if d == nil || d.HTMLURL == nil { 4820 return "" 4821 } 4822 return *d.HTMLURL 4823 } 4824 4825 // GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. 4826 func (d *DiscussionComment) GetLastEditedAt() Timestamp { 4827 if d == nil || d.LastEditedAt == nil { 4828 return Timestamp{} 4829 } 4830 return *d.LastEditedAt 4831 } 4832 4833 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4834 func (d *DiscussionComment) GetNodeID() string { 4835 if d == nil || d.NodeID == nil { 4836 return "" 4837 } 4838 return *d.NodeID 4839 } 4840 4841 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 4842 func (d *DiscussionComment) GetNumber() int { 4843 if d == nil || d.Number == nil { 4844 return 0 4845 } 4846 return *d.Number 4847 } 4848 4849 // GetReactions returns the Reactions field. 4850 func (d *DiscussionComment) GetReactions() *Reactions { 4851 if d == nil { 4852 return nil 4853 } 4854 return d.Reactions 4855 } 4856 4857 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4858 func (d *DiscussionComment) GetUpdatedAt() Timestamp { 4859 if d == nil || d.UpdatedAt == nil { 4860 return Timestamp{} 4861 } 4862 return *d.UpdatedAt 4863 } 4864 4865 // GetURL returns the URL field if it's non-nil, zero value otherwise. 4866 func (d *DiscussionComment) GetURL() string { 4867 if d == nil || d.URL == nil { 4868 return "" 4869 } 4870 return *d.URL 4871 } 4872 4873 // GetAction returns the Action field if it's non-nil, zero value otherwise. 4874 func (d *DiscussionEvent) GetAction() string { 4875 if d == nil || d.Action == nil { 4876 return "" 4877 } 4878 return *d.Action 4879 } 4880 4881 // GetDiscussion returns the Discussion field. 4882 func (d *DiscussionEvent) GetDiscussion() *Discussion { 4883 if d == nil { 4884 return nil 4885 } 4886 return d.Discussion 4887 } 4888 4889 // GetInstallation returns the Installation field. 4890 func (d *DiscussionEvent) GetInstallation() *Installation { 4891 if d == nil { 4892 return nil 4893 } 4894 return d.Installation 4895 } 4896 4897 // GetOrg returns the Org field. 4898 func (d *DiscussionEvent) GetOrg() *Organization { 4899 if d == nil { 4900 return nil 4901 } 4902 return d.Org 4903 } 4904 4905 // GetRepo returns the Repo field. 4906 func (d *DiscussionEvent) GetRepo() *Repository { 4907 if d == nil { 4908 return nil 4909 } 4910 return d.Repo 4911 } 4912 4913 // GetSender returns the Sender field. 4914 func (d *DiscussionEvent) GetSender() *User { 4915 if d == nil { 4916 return nil 4917 } 4918 return d.Sender 4919 } 4920 4921 // GetApps returns the Apps field if it's non-nil, zero value otherwise. 4922 func (d *DismissalRestrictionsRequest) GetApps() []string { 4923 if d == nil || d.Apps == nil { 4924 return nil 4925 } 4926 return *d.Apps 4927 } 4928 4929 // GetTeams returns the Teams field if it's non-nil, zero value otherwise. 4930 func (d *DismissalRestrictionsRequest) GetTeams() []string { 4931 if d == nil || d.Teams == nil { 4932 return nil 4933 } 4934 return *d.Teams 4935 } 4936 4937 // GetUsers returns the Users field if it's non-nil, zero value otherwise. 4938 func (d *DismissalRestrictionsRequest) GetUsers() []string { 4939 if d == nil || d.Users == nil { 4940 return nil 4941 } 4942 return *d.Users 4943 } 4944 4945 // GetDismissalCommitID returns the DismissalCommitID field if it's non-nil, zero value otherwise. 4946 func (d *DismissedReview) GetDismissalCommitID() string { 4947 if d == nil || d.DismissalCommitID == nil { 4948 return "" 4949 } 4950 return *d.DismissalCommitID 4951 } 4952 4953 // GetDismissalMessage returns the DismissalMessage field if it's non-nil, zero value otherwise. 4954 func (d *DismissedReview) GetDismissalMessage() string { 4955 if d == nil || d.DismissalMessage == nil { 4956 return "" 4957 } 4958 return *d.DismissalMessage 4959 } 4960 4961 // GetReviewID returns the ReviewID field if it's non-nil, zero value otherwise. 4962 func (d *DismissedReview) GetReviewID() int64 { 4963 if d == nil || d.ReviewID == nil { 4964 return 0 4965 } 4966 return *d.ReviewID 4967 } 4968 4969 // GetState returns the State field if it's non-nil, zero value otherwise. 4970 func (d *DismissedReview) GetState() string { 4971 if d == nil || d.State == nil { 4972 return "" 4973 } 4974 return *d.State 4975 } 4976 4977 // GetFrom returns the From field if it's non-nil, zero value otherwise. 4978 func (d *DismissStaleReviewsOnPushChanges) GetFrom() bool { 4979 if d == nil || d.From == nil { 4980 return false 4981 } 4982 return *d.From 4983 } 4984 4985 // GetClientPayload returns the ClientPayload field if it's non-nil, zero value otherwise. 4986 func (d *DispatchRequestOptions) GetClientPayload() json.RawMessage { 4987 if d == nil || d.ClientPayload == nil { 4988 return json.RawMessage{} 4989 } 4990 return *d.ClientPayload 4991 } 4992 4993 // GetBody returns the Body field if it's non-nil, zero value otherwise. 4994 func (d *DraftReviewComment) GetBody() string { 4995 if d == nil || d.Body == nil { 4996 return "" 4997 } 4998 return *d.Body 4999 } 5000 5001 // GetLine returns the Line field if it's non-nil, zero value otherwise. 5002 func (d *DraftReviewComment) GetLine() int { 5003 if d == nil || d.Line == nil { 5004 return 0 5005 } 5006 return *d.Line 5007 } 5008 5009 // GetPath returns the Path field if it's non-nil, zero value otherwise. 5010 func (d *DraftReviewComment) GetPath() string { 5011 if d == nil || d.Path == nil { 5012 return "" 5013 } 5014 return *d.Path 5015 } 5016 5017 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 5018 func (d *DraftReviewComment) GetPosition() int { 5019 if d == nil || d.Position == nil { 5020 return 0 5021 } 5022 return *d.Position 5023 } 5024 5025 // GetSide returns the Side field if it's non-nil, zero value otherwise. 5026 func (d *DraftReviewComment) GetSide() string { 5027 if d == nil || d.Side == nil { 5028 return "" 5029 } 5030 return *d.Side 5031 } 5032 5033 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 5034 func (d *DraftReviewComment) GetStartLine() int { 5035 if d == nil || d.StartLine == nil { 5036 return 0 5037 } 5038 return *d.StartLine 5039 } 5040 5041 // GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. 5042 func (d *DraftReviewComment) GetStartSide() string { 5043 if d == nil || d.StartSide == nil { 5044 return "" 5045 } 5046 return *d.StartSide 5047 } 5048 5049 // GetRef returns the Ref field. 5050 func (e *EditBase) GetRef() *EditRef { 5051 if e == nil { 5052 return nil 5053 } 5054 return e.Ref 5055 } 5056 5057 // GetSHA returns the SHA field. 5058 func (e *EditBase) GetSHA() *EditSHA { 5059 if e == nil { 5060 return nil 5061 } 5062 return e.SHA 5063 } 5064 5065 // GetFrom returns the From field if it's non-nil, zero value otherwise. 5066 func (e *EditBody) GetFrom() string { 5067 if e == nil || e.From == nil { 5068 return "" 5069 } 5070 return *e.From 5071 } 5072 5073 // GetBase returns the Base field. 5074 func (e *EditChange) GetBase() *EditBase { 5075 if e == nil { 5076 return nil 5077 } 5078 return e.Base 5079 } 5080 5081 // GetBody returns the Body field. 5082 func (e *EditChange) GetBody() *EditBody { 5083 if e == nil { 5084 return nil 5085 } 5086 return e.Body 5087 } 5088 5089 // GetRepo returns the Repo field. 5090 func (e *EditChange) GetRepo() *EditRepo { 5091 if e == nil { 5092 return nil 5093 } 5094 return e.Repo 5095 } 5096 5097 // GetTitle returns the Title field. 5098 func (e *EditChange) GetTitle() *EditTitle { 5099 if e == nil { 5100 return nil 5101 } 5102 return e.Title 5103 } 5104 5105 // GetFrom returns the From field if it's non-nil, zero value otherwise. 5106 func (e *EditRef) GetFrom() string { 5107 if e == nil || e.From == nil { 5108 return "" 5109 } 5110 return *e.From 5111 } 5112 5113 // GetName returns the Name field. 5114 func (e *EditRepo) GetName() *RepoName { 5115 if e == nil { 5116 return nil 5117 } 5118 return e.Name 5119 } 5120 5121 // GetFrom returns the From field if it's non-nil, zero value otherwise. 5122 func (e *EditSHA) GetFrom() string { 5123 if e == nil || e.From == nil { 5124 return "" 5125 } 5126 return *e.From 5127 } 5128 5129 // GetFrom returns the From field if it's non-nil, zero value otherwise. 5130 func (e *EditTitle) GetFrom() string { 5131 if e == nil || e.From == nil { 5132 return "" 5133 } 5134 return *e.From 5135 } 5136 5137 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 5138 func (e *Enterprise) GetAvatarURL() string { 5139 if e == nil || e.AvatarURL == nil { 5140 return "" 5141 } 5142 return *e.AvatarURL 5143 } 5144 5145 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5146 func (e *Enterprise) GetCreatedAt() Timestamp { 5147 if e == nil || e.CreatedAt == nil { 5148 return Timestamp{} 5149 } 5150 return *e.CreatedAt 5151 } 5152 5153 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5154 func (e *Enterprise) GetDescription() string { 5155 if e == nil || e.Description == nil { 5156 return "" 5157 } 5158 return *e.Description 5159 } 5160 5161 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5162 func (e *Enterprise) GetHTMLURL() string { 5163 if e == nil || e.HTMLURL == nil { 5164 return "" 5165 } 5166 return *e.HTMLURL 5167 } 5168 5169 // GetID returns the ID field if it's non-nil, zero value otherwise. 5170 func (e *Enterprise) GetID() int { 5171 if e == nil || e.ID == nil { 5172 return 0 5173 } 5174 return *e.ID 5175 } 5176 5177 // GetName returns the Name field if it's non-nil, zero value otherwise. 5178 func (e *Enterprise) GetName() string { 5179 if e == nil || e.Name == nil { 5180 return "" 5181 } 5182 return *e.Name 5183 } 5184 5185 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5186 func (e *Enterprise) GetNodeID() string { 5187 if e == nil || e.NodeID == nil { 5188 return "" 5189 } 5190 return *e.NodeID 5191 } 5192 5193 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 5194 func (e *Enterprise) GetSlug() string { 5195 if e == nil || e.Slug == nil { 5196 return "" 5197 } 5198 return *e.Slug 5199 } 5200 5201 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5202 func (e *Enterprise) GetUpdatedAt() Timestamp { 5203 if e == nil || e.UpdatedAt == nil { 5204 return Timestamp{} 5205 } 5206 return *e.UpdatedAt 5207 } 5208 5209 // GetWebsiteURL returns the WebsiteURL field if it's non-nil, zero value otherwise. 5210 func (e *Enterprise) GetWebsiteURL() string { 5211 if e == nil || e.WebsiteURL == nil { 5212 return "" 5213 } 5214 return *e.WebsiteURL 5215 } 5216 5217 // GetAdvancedSecurityEnabledForNewRepositories returns the AdvancedSecurityEnabledForNewRepositories field if it's non-nil, zero value otherwise. 5218 func (e *EnterpriseSecurityAnalysisSettings) GetAdvancedSecurityEnabledForNewRepositories() bool { 5219 if e == nil || e.AdvancedSecurityEnabledForNewRepositories == nil { 5220 return false 5221 } 5222 return *e.AdvancedSecurityEnabledForNewRepositories 5223 } 5224 5225 // GetSecretScanningEnabledForNewRepositories returns the SecretScanningEnabledForNewRepositories field if it's non-nil, zero value otherwise. 5226 func (e *EnterpriseSecurityAnalysisSettings) GetSecretScanningEnabledForNewRepositories() bool { 5227 if e == nil || e.SecretScanningEnabledForNewRepositories == nil { 5228 return false 5229 } 5230 return *e.SecretScanningEnabledForNewRepositories 5231 } 5232 5233 // GetSecretScanningPushProtectionCustomLink returns the SecretScanningPushProtectionCustomLink field if it's non-nil, zero value otherwise. 5234 func (e *EnterpriseSecurityAnalysisSettings) GetSecretScanningPushProtectionCustomLink() string { 5235 if e == nil || e.SecretScanningPushProtectionCustomLink == nil { 5236 return "" 5237 } 5238 return *e.SecretScanningPushProtectionCustomLink 5239 } 5240 5241 // GetSecretScanningPushProtectionEnabledForNewRepositories returns the SecretScanningPushProtectionEnabledForNewRepositories field if it's non-nil, zero value otherwise. 5242 func (e *EnterpriseSecurityAnalysisSettings) GetSecretScanningPushProtectionEnabledForNewRepositories() bool { 5243 if e == nil || e.SecretScanningPushProtectionEnabledForNewRepositories == nil { 5244 return false 5245 } 5246 return *e.SecretScanningPushProtectionEnabledForNewRepositories 5247 } 5248 5249 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5250 func (e *Environment) GetCreatedAt() Timestamp { 5251 if e == nil || e.CreatedAt == nil { 5252 return Timestamp{} 5253 } 5254 return *e.CreatedAt 5255 } 5256 5257 // GetDeploymentBranchPolicy returns the DeploymentBranchPolicy field. 5258 func (e *Environment) GetDeploymentBranchPolicy() *BranchPolicy { 5259 if e == nil { 5260 return nil 5261 } 5262 return e.DeploymentBranchPolicy 5263 } 5264 5265 // GetEnvironmentName returns the EnvironmentName field if it's non-nil, zero value otherwise. 5266 func (e *Environment) GetEnvironmentName() string { 5267 if e == nil || e.EnvironmentName == nil { 5268 return "" 5269 } 5270 return *e.EnvironmentName 5271 } 5272 5273 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5274 func (e *Environment) GetHTMLURL() string { 5275 if e == nil || e.HTMLURL == nil { 5276 return "" 5277 } 5278 return *e.HTMLURL 5279 } 5280 5281 // GetID returns the ID field if it's non-nil, zero value otherwise. 5282 func (e *Environment) GetID() int64 { 5283 if e == nil || e.ID == nil { 5284 return 0 5285 } 5286 return *e.ID 5287 } 5288 5289 // GetName returns the Name field if it's non-nil, zero value otherwise. 5290 func (e *Environment) GetName() string { 5291 if e == nil || e.Name == nil { 5292 return "" 5293 } 5294 return *e.Name 5295 } 5296 5297 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5298 func (e *Environment) GetNodeID() string { 5299 if e == nil || e.NodeID == nil { 5300 return "" 5301 } 5302 return *e.NodeID 5303 } 5304 5305 // GetOwner returns the Owner field if it's non-nil, zero value otherwise. 5306 func (e *Environment) GetOwner() string { 5307 if e == nil || e.Owner == nil { 5308 return "" 5309 } 5310 return *e.Owner 5311 } 5312 5313 // GetRepo returns the Repo field if it's non-nil, zero value otherwise. 5314 func (e *Environment) GetRepo() string { 5315 if e == nil || e.Repo == nil { 5316 return "" 5317 } 5318 return *e.Repo 5319 } 5320 5321 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5322 func (e *Environment) GetUpdatedAt() Timestamp { 5323 if e == nil || e.UpdatedAt == nil { 5324 return Timestamp{} 5325 } 5326 return *e.UpdatedAt 5327 } 5328 5329 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5330 func (e *Environment) GetURL() string { 5331 if e == nil || e.URL == nil { 5332 return "" 5333 } 5334 return *e.URL 5335 } 5336 5337 // GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. 5338 func (e *Environment) GetWaitTimer() int { 5339 if e == nil || e.WaitTimer == nil { 5340 return 0 5341 } 5342 return *e.WaitTimer 5343 } 5344 5345 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 5346 func (e *EnvResponse) GetTotalCount() int { 5347 if e == nil || e.TotalCount == nil { 5348 return 0 5349 } 5350 return *e.TotalCount 5351 } 5352 5353 // GetID returns the ID field if it's non-nil, zero value otherwise. 5354 func (e *EnvReviewers) GetID() int64 { 5355 if e == nil || e.ID == nil { 5356 return 0 5357 } 5358 return *e.ID 5359 } 5360 5361 // GetType returns the Type field if it's non-nil, zero value otherwise. 5362 func (e *EnvReviewers) GetType() string { 5363 if e == nil || e.Type == nil { 5364 return "" 5365 } 5366 return *e.Type 5367 } 5368 5369 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5370 func (e *ErrorBlock) GetCreatedAt() Timestamp { 5371 if e == nil || e.CreatedAt == nil { 5372 return Timestamp{} 5373 } 5374 return *e.CreatedAt 5375 } 5376 5377 // GetBlock returns the Block field. 5378 func (e *ErrorResponse) GetBlock() *ErrorBlock { 5379 if e == nil { 5380 return nil 5381 } 5382 return e.Block 5383 } 5384 5385 // GetActor returns the Actor field. 5386 func (e *Event) GetActor() *User { 5387 if e == nil { 5388 return nil 5389 } 5390 return e.Actor 5391 } 5392 5393 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5394 func (e *Event) GetCreatedAt() time.Time { 5395 if e == nil || e.CreatedAt == nil { 5396 return time.Time{} 5397 } 5398 return *e.CreatedAt 5399 } 5400 5401 // GetID returns the ID field if it's non-nil, zero value otherwise. 5402 func (e *Event) GetID() string { 5403 if e == nil || e.ID == nil { 5404 return "" 5405 } 5406 return *e.ID 5407 } 5408 5409 // GetOrg returns the Org field. 5410 func (e *Event) GetOrg() *Organization { 5411 if e == nil { 5412 return nil 5413 } 5414 return e.Org 5415 } 5416 5417 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 5418 func (e *Event) GetPublic() bool { 5419 if e == nil || e.Public == nil { 5420 return false 5421 } 5422 return *e.Public 5423 } 5424 5425 // GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 5426 func (e *Event) GetRawPayload() json.RawMessage { 5427 if e == nil || e.RawPayload == nil { 5428 return json.RawMessage{} 5429 } 5430 return *e.RawPayload 5431 } 5432 5433 // GetRepo returns the Repo field. 5434 func (e *Event) GetRepo() *Repository { 5435 if e == nil { 5436 return nil 5437 } 5438 return e.Repo 5439 } 5440 5441 // GetType returns the Type field if it's non-nil, zero value otherwise. 5442 func (e *Event) GetType() string { 5443 if e == nil || e.Type == nil { 5444 return "" 5445 } 5446 return *e.Type 5447 } 5448 5449 // GetGroupID returns the GroupID field if it's non-nil, zero value otherwise. 5450 func (e *ExternalGroup) GetGroupID() int64 { 5451 if e == nil || e.GroupID == nil { 5452 return 0 5453 } 5454 return *e.GroupID 5455 } 5456 5457 // GetGroupName returns the GroupName field if it's non-nil, zero value otherwise. 5458 func (e *ExternalGroup) GetGroupName() string { 5459 if e == nil || e.GroupName == nil { 5460 return "" 5461 } 5462 return *e.GroupName 5463 } 5464 5465 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5466 func (e *ExternalGroup) GetUpdatedAt() Timestamp { 5467 if e == nil || e.UpdatedAt == nil { 5468 return Timestamp{} 5469 } 5470 return *e.UpdatedAt 5471 } 5472 5473 // GetMemberEmail returns the MemberEmail field if it's non-nil, zero value otherwise. 5474 func (e *ExternalGroupMember) GetMemberEmail() string { 5475 if e == nil || e.MemberEmail == nil { 5476 return "" 5477 } 5478 return *e.MemberEmail 5479 } 5480 5481 // GetMemberID returns the MemberID field if it's non-nil, zero value otherwise. 5482 func (e *ExternalGroupMember) GetMemberID() int64 { 5483 if e == nil || e.MemberID == nil { 5484 return 0 5485 } 5486 return *e.MemberID 5487 } 5488 5489 // GetMemberLogin returns the MemberLogin field if it's non-nil, zero value otherwise. 5490 func (e *ExternalGroupMember) GetMemberLogin() string { 5491 if e == nil || e.MemberLogin == nil { 5492 return "" 5493 } 5494 return *e.MemberLogin 5495 } 5496 5497 // GetMemberName returns the MemberName field if it's non-nil, zero value otherwise. 5498 func (e *ExternalGroupMember) GetMemberName() string { 5499 if e == nil || e.MemberName == nil { 5500 return "" 5501 } 5502 return *e.MemberName 5503 } 5504 5505 // GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. 5506 func (e *ExternalGroupTeam) GetTeamID() int64 { 5507 if e == nil || e.TeamID == nil { 5508 return 0 5509 } 5510 return *e.TeamID 5511 } 5512 5513 // GetTeamName returns the TeamName field if it's non-nil, zero value otherwise. 5514 func (e *ExternalGroupTeam) GetTeamName() string { 5515 if e == nil || e.TeamName == nil { 5516 return "" 5517 } 5518 return *e.TeamName 5519 } 5520 5521 // GetHRef returns the HRef field if it's non-nil, zero value otherwise. 5522 func (f *FeedLink) GetHRef() string { 5523 if f == nil || f.HRef == nil { 5524 return "" 5525 } 5526 return *f.HRef 5527 } 5528 5529 // GetType returns the Type field if it's non-nil, zero value otherwise. 5530 func (f *FeedLink) GetType() string { 5531 if f == nil || f.Type == nil { 5532 return "" 5533 } 5534 return *f.Type 5535 } 5536 5537 // GetCurrentUser returns the CurrentUser field. 5538 func (f *FeedLinks) GetCurrentUser() *FeedLink { 5539 if f == nil { 5540 return nil 5541 } 5542 return f.CurrentUser 5543 } 5544 5545 // GetCurrentUserActor returns the CurrentUserActor field. 5546 func (f *FeedLinks) GetCurrentUserActor() *FeedLink { 5547 if f == nil { 5548 return nil 5549 } 5550 return f.CurrentUserActor 5551 } 5552 5553 // GetCurrentUserOrganization returns the CurrentUserOrganization field. 5554 func (f *FeedLinks) GetCurrentUserOrganization() *FeedLink { 5555 if f == nil { 5556 return nil 5557 } 5558 return f.CurrentUserOrganization 5559 } 5560 5561 // GetCurrentUserPublic returns the CurrentUserPublic field. 5562 func (f *FeedLinks) GetCurrentUserPublic() *FeedLink { 5563 if f == nil { 5564 return nil 5565 } 5566 return f.CurrentUserPublic 5567 } 5568 5569 // GetTimeline returns the Timeline field. 5570 func (f *FeedLinks) GetTimeline() *FeedLink { 5571 if f == nil { 5572 return nil 5573 } 5574 return f.Timeline 5575 } 5576 5577 // GetUser returns the User field. 5578 func (f *FeedLinks) GetUser() *FeedLink { 5579 if f == nil { 5580 return nil 5581 } 5582 return f.User 5583 } 5584 5585 // GetCurrentUserActorURL returns the CurrentUserActorURL field if it's non-nil, zero value otherwise. 5586 func (f *Feeds) GetCurrentUserActorURL() string { 5587 if f == nil || f.CurrentUserActorURL == nil { 5588 return "" 5589 } 5590 return *f.CurrentUserActorURL 5591 } 5592 5593 // GetCurrentUserOrganizationURL returns the CurrentUserOrganizationURL field if it's non-nil, zero value otherwise. 5594 func (f *Feeds) GetCurrentUserOrganizationURL() string { 5595 if f == nil || f.CurrentUserOrganizationURL == nil { 5596 return "" 5597 } 5598 return *f.CurrentUserOrganizationURL 5599 } 5600 5601 // GetCurrentUserPublicURL returns the CurrentUserPublicURL field if it's non-nil, zero value otherwise. 5602 func (f *Feeds) GetCurrentUserPublicURL() string { 5603 if f == nil || f.CurrentUserPublicURL == nil { 5604 return "" 5605 } 5606 return *f.CurrentUserPublicURL 5607 } 5608 5609 // GetCurrentUserURL returns the CurrentUserURL field if it's non-nil, zero value otherwise. 5610 func (f *Feeds) GetCurrentUserURL() string { 5611 if f == nil || f.CurrentUserURL == nil { 5612 return "" 5613 } 5614 return *f.CurrentUserURL 5615 } 5616 5617 // GetLinks returns the Links field. 5618 func (f *Feeds) GetLinks() *FeedLinks { 5619 if f == nil { 5620 return nil 5621 } 5622 return f.Links 5623 } 5624 5625 // GetTimelineURL returns the TimelineURL field if it's non-nil, zero value otherwise. 5626 func (f *Feeds) GetTimelineURL() string { 5627 if f == nil || f.TimelineURL == nil { 5628 return "" 5629 } 5630 return *f.TimelineURL 5631 } 5632 5633 // GetUserURL returns the UserURL field if it's non-nil, zero value otherwise. 5634 func (f *Feeds) GetUserURL() string { 5635 if f == nil || f.UserURL == nil { 5636 return "" 5637 } 5638 return *f.UserURL 5639 } 5640 5641 // GetIdentifier returns the Identifier field if it's non-nil, zero value otherwise. 5642 func (f *FirstPatchedVersion) GetIdentifier() string { 5643 if f == nil || f.Identifier == nil { 5644 return "" 5645 } 5646 return *f.Identifier 5647 } 5648 5649 // GetForkee returns the Forkee field. 5650 func (f *ForkEvent) GetForkee() *Repository { 5651 if f == nil { 5652 return nil 5653 } 5654 return f.Forkee 5655 } 5656 5657 // GetInstallation returns the Installation field. 5658 func (f *ForkEvent) GetInstallation() *Installation { 5659 if f == nil { 5660 return nil 5661 } 5662 return f.Installation 5663 } 5664 5665 // GetRepo returns the Repo field. 5666 func (f *ForkEvent) GetRepo() *Repository { 5667 if f == nil { 5668 return nil 5669 } 5670 return f.Repo 5671 } 5672 5673 // GetSender returns the Sender field. 5674 func (f *ForkEvent) GetSender() *User { 5675 if f == nil { 5676 return nil 5677 } 5678 return f.Sender 5679 } 5680 5681 // GetPreviousTagName returns the PreviousTagName field if it's non-nil, zero value otherwise. 5682 func (g *GenerateNotesOptions) GetPreviousTagName() string { 5683 if g == nil || g.PreviousTagName == nil { 5684 return "" 5685 } 5686 return *g.PreviousTagName 5687 } 5688 5689 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 5690 func (g *GenerateNotesOptions) GetTargetCommitish() string { 5691 if g == nil || g.TargetCommitish == nil { 5692 return "" 5693 } 5694 return *g.TargetCommitish 5695 } 5696 5697 // GetInclude returns the Include field if it's non-nil, zero value otherwise. 5698 func (g *GetAuditLogOptions) GetInclude() string { 5699 if g == nil || g.Include == nil { 5700 return "" 5701 } 5702 return *g.Include 5703 } 5704 5705 // GetOrder returns the Order field if it's non-nil, zero value otherwise. 5706 func (g *GetAuditLogOptions) GetOrder() string { 5707 if g == nil || g.Order == nil { 5708 return "" 5709 } 5710 return *g.Order 5711 } 5712 5713 // GetPhrase returns the Phrase field if it's non-nil, zero value otherwise. 5714 func (g *GetAuditLogOptions) GetPhrase() string { 5715 if g == nil || g.Phrase == nil { 5716 return "" 5717 } 5718 return *g.Phrase 5719 } 5720 5721 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 5722 func (g *Gist) GetComments() int { 5723 if g == nil || g.Comments == nil { 5724 return 0 5725 } 5726 return *g.Comments 5727 } 5728 5729 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5730 func (g *Gist) GetCreatedAt() time.Time { 5731 if g == nil || g.CreatedAt == nil { 5732 return time.Time{} 5733 } 5734 return *g.CreatedAt 5735 } 5736 5737 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5738 func (g *Gist) GetDescription() string { 5739 if g == nil || g.Description == nil { 5740 return "" 5741 } 5742 return *g.Description 5743 } 5744 5745 // GetFiles returns the Files map if it's non-nil, an empty map otherwise. 5746 func (g *Gist) GetFiles() map[GistFilename]GistFile { 5747 if g == nil || g.Files == nil { 5748 return map[GistFilename]GistFile{} 5749 } 5750 return g.Files 5751 } 5752 5753 // GetGitPullURL returns the GitPullURL field if it's non-nil, zero value otherwise. 5754 func (g *Gist) GetGitPullURL() string { 5755 if g == nil || g.GitPullURL == nil { 5756 return "" 5757 } 5758 return *g.GitPullURL 5759 } 5760 5761 // GetGitPushURL returns the GitPushURL field if it's non-nil, zero value otherwise. 5762 func (g *Gist) GetGitPushURL() string { 5763 if g == nil || g.GitPushURL == nil { 5764 return "" 5765 } 5766 return *g.GitPushURL 5767 } 5768 5769 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5770 func (g *Gist) GetHTMLURL() string { 5771 if g == nil || g.HTMLURL == nil { 5772 return "" 5773 } 5774 return *g.HTMLURL 5775 } 5776 5777 // GetID returns the ID field if it's non-nil, zero value otherwise. 5778 func (g *Gist) GetID() string { 5779 if g == nil || g.ID == nil { 5780 return "" 5781 } 5782 return *g.ID 5783 } 5784 5785 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5786 func (g *Gist) GetNodeID() string { 5787 if g == nil || g.NodeID == nil { 5788 return "" 5789 } 5790 return *g.NodeID 5791 } 5792 5793 // GetOwner returns the Owner field. 5794 func (g *Gist) GetOwner() *User { 5795 if g == nil { 5796 return nil 5797 } 5798 return g.Owner 5799 } 5800 5801 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 5802 func (g *Gist) GetPublic() bool { 5803 if g == nil || g.Public == nil { 5804 return false 5805 } 5806 return *g.Public 5807 } 5808 5809 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5810 func (g *Gist) GetUpdatedAt() time.Time { 5811 if g == nil || g.UpdatedAt == nil { 5812 return time.Time{} 5813 } 5814 return *g.UpdatedAt 5815 } 5816 5817 // GetBody returns the Body field if it's non-nil, zero value otherwise. 5818 func (g *GistComment) GetBody() string { 5819 if g == nil || g.Body == nil { 5820 return "" 5821 } 5822 return *g.Body 5823 } 5824 5825 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5826 func (g *GistComment) GetCreatedAt() time.Time { 5827 if g == nil || g.CreatedAt == nil { 5828 return time.Time{} 5829 } 5830 return *g.CreatedAt 5831 } 5832 5833 // GetID returns the ID field if it's non-nil, zero value otherwise. 5834 func (g *GistComment) GetID() int64 { 5835 if g == nil || g.ID == nil { 5836 return 0 5837 } 5838 return *g.ID 5839 } 5840 5841 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5842 func (g *GistComment) GetURL() string { 5843 if g == nil || g.URL == nil { 5844 return "" 5845 } 5846 return *g.URL 5847 } 5848 5849 // GetUser returns the User field. 5850 func (g *GistComment) GetUser() *User { 5851 if g == nil { 5852 return nil 5853 } 5854 return g.User 5855 } 5856 5857 // GetChangeStatus returns the ChangeStatus field. 5858 func (g *GistCommit) GetChangeStatus() *CommitStats { 5859 if g == nil { 5860 return nil 5861 } 5862 return g.ChangeStatus 5863 } 5864 5865 // GetCommittedAt returns the CommittedAt field if it's non-nil, zero value otherwise. 5866 func (g *GistCommit) GetCommittedAt() Timestamp { 5867 if g == nil || g.CommittedAt == nil { 5868 return Timestamp{} 5869 } 5870 return *g.CommittedAt 5871 } 5872 5873 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5874 func (g *GistCommit) GetNodeID() string { 5875 if g == nil || g.NodeID == nil { 5876 return "" 5877 } 5878 return *g.NodeID 5879 } 5880 5881 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5882 func (g *GistCommit) GetURL() string { 5883 if g == nil || g.URL == nil { 5884 return "" 5885 } 5886 return *g.URL 5887 } 5888 5889 // GetUser returns the User field. 5890 func (g *GistCommit) GetUser() *User { 5891 if g == nil { 5892 return nil 5893 } 5894 return g.User 5895 } 5896 5897 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 5898 func (g *GistCommit) GetVersion() string { 5899 if g == nil || g.Version == nil { 5900 return "" 5901 } 5902 return *g.Version 5903 } 5904 5905 // GetContent returns the Content field if it's non-nil, zero value otherwise. 5906 func (g *GistFile) GetContent() string { 5907 if g == nil || g.Content == nil { 5908 return "" 5909 } 5910 return *g.Content 5911 } 5912 5913 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 5914 func (g *GistFile) GetFilename() string { 5915 if g == nil || g.Filename == nil { 5916 return "" 5917 } 5918 return *g.Filename 5919 } 5920 5921 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 5922 func (g *GistFile) GetLanguage() string { 5923 if g == nil || g.Language == nil { 5924 return "" 5925 } 5926 return *g.Language 5927 } 5928 5929 // GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 5930 func (g *GistFile) GetRawURL() string { 5931 if g == nil || g.RawURL == nil { 5932 return "" 5933 } 5934 return *g.RawURL 5935 } 5936 5937 // GetSize returns the Size field if it's non-nil, zero value otherwise. 5938 func (g *GistFile) GetSize() int { 5939 if g == nil || g.Size == nil { 5940 return 0 5941 } 5942 return *g.Size 5943 } 5944 5945 // GetType returns the Type field if it's non-nil, zero value otherwise. 5946 func (g *GistFile) GetType() string { 5947 if g == nil || g.Type == nil { 5948 return "" 5949 } 5950 return *g.Type 5951 } 5952 5953 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5954 func (g *GistFork) GetCreatedAt() Timestamp { 5955 if g == nil || g.CreatedAt == nil { 5956 return Timestamp{} 5957 } 5958 return *g.CreatedAt 5959 } 5960 5961 // GetID returns the ID field if it's non-nil, zero value otherwise. 5962 func (g *GistFork) GetID() string { 5963 if g == nil || g.ID == nil { 5964 return "" 5965 } 5966 return *g.ID 5967 } 5968 5969 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5970 func (g *GistFork) GetNodeID() string { 5971 if g == nil || g.NodeID == nil { 5972 return "" 5973 } 5974 return *g.NodeID 5975 } 5976 5977 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5978 func (g *GistFork) GetUpdatedAt() Timestamp { 5979 if g == nil || g.UpdatedAt == nil { 5980 return Timestamp{} 5981 } 5982 return *g.UpdatedAt 5983 } 5984 5985 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5986 func (g *GistFork) GetURL() string { 5987 if g == nil || g.URL == nil { 5988 return "" 5989 } 5990 return *g.URL 5991 } 5992 5993 // GetUser returns the User field. 5994 func (g *GistFork) GetUser() *User { 5995 if g == nil { 5996 return nil 5997 } 5998 return g.User 5999 } 6000 6001 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 6002 func (g *GistStats) GetPrivateGists() int { 6003 if g == nil || g.PrivateGists == nil { 6004 return 0 6005 } 6006 return *g.PrivateGists 6007 } 6008 6009 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 6010 func (g *GistStats) GetPublicGists() int { 6011 if g == nil || g.PublicGists == nil { 6012 return 0 6013 } 6014 return *g.PublicGists 6015 } 6016 6017 // GetTotalGists returns the TotalGists field if it's non-nil, zero value otherwise. 6018 func (g *GistStats) GetTotalGists() int { 6019 if g == nil || g.TotalGists == nil { 6020 return 0 6021 } 6022 return *g.TotalGists 6023 } 6024 6025 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6026 func (g *GitHubAppAuthorizationEvent) GetAction() string { 6027 if g == nil || g.Action == nil { 6028 return "" 6029 } 6030 return *g.Action 6031 } 6032 6033 // GetInstallation returns the Installation field. 6034 func (g *GitHubAppAuthorizationEvent) GetInstallation() *Installation { 6035 if g == nil { 6036 return nil 6037 } 6038 return g.Installation 6039 } 6040 6041 // GetSender returns the Sender field. 6042 func (g *GitHubAppAuthorizationEvent) GetSender() *User { 6043 if g == nil { 6044 return nil 6045 } 6046 return g.Sender 6047 } 6048 6049 // GetName returns the Name field if it's non-nil, zero value otherwise. 6050 func (g *Gitignore) GetName() string { 6051 if g == nil || g.Name == nil { 6052 return "" 6053 } 6054 return *g.Name 6055 } 6056 6057 // GetSource returns the Source field if it's non-nil, zero value otherwise. 6058 func (g *Gitignore) GetSource() string { 6059 if g == nil || g.Source == nil { 6060 return "" 6061 } 6062 return *g.Source 6063 } 6064 6065 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 6066 func (g *GitObject) GetSHA() string { 6067 if g == nil || g.SHA == nil { 6068 return "" 6069 } 6070 return *g.SHA 6071 } 6072 6073 // GetType returns the Type field if it's non-nil, zero value otherwise. 6074 func (g *GitObject) GetType() string { 6075 if g == nil || g.Type == nil { 6076 return "" 6077 } 6078 return *g.Type 6079 } 6080 6081 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6082 func (g *GitObject) GetURL() string { 6083 if g == nil || g.URL == nil { 6084 return "" 6085 } 6086 return *g.URL 6087 } 6088 6089 // GetInstallation returns the Installation field. 6090 func (g *GollumEvent) GetInstallation() *Installation { 6091 if g == nil { 6092 return nil 6093 } 6094 return g.Installation 6095 } 6096 6097 // GetRepo returns the Repo field. 6098 func (g *GollumEvent) GetRepo() *Repository { 6099 if g == nil { 6100 return nil 6101 } 6102 return g.Repo 6103 } 6104 6105 // GetSender returns the Sender field. 6106 func (g *GollumEvent) GetSender() *User { 6107 if g == nil { 6108 return nil 6109 } 6110 return g.Sender 6111 } 6112 6113 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 6114 func (g *GPGEmail) GetEmail() string { 6115 if g == nil || g.Email == nil { 6116 return "" 6117 } 6118 return *g.Email 6119 } 6120 6121 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 6122 func (g *GPGEmail) GetVerified() bool { 6123 if g == nil || g.Verified == nil { 6124 return false 6125 } 6126 return *g.Verified 6127 } 6128 6129 // GetCanCertify returns the CanCertify field if it's non-nil, zero value otherwise. 6130 func (g *GPGKey) GetCanCertify() bool { 6131 if g == nil || g.CanCertify == nil { 6132 return false 6133 } 6134 return *g.CanCertify 6135 } 6136 6137 // GetCanEncryptComms returns the CanEncryptComms field if it's non-nil, zero value otherwise. 6138 func (g *GPGKey) GetCanEncryptComms() bool { 6139 if g == nil || g.CanEncryptComms == nil { 6140 return false 6141 } 6142 return *g.CanEncryptComms 6143 } 6144 6145 // GetCanEncryptStorage returns the CanEncryptStorage field if it's non-nil, zero value otherwise. 6146 func (g *GPGKey) GetCanEncryptStorage() bool { 6147 if g == nil || g.CanEncryptStorage == nil { 6148 return false 6149 } 6150 return *g.CanEncryptStorage 6151 } 6152 6153 // GetCanSign returns the CanSign field if it's non-nil, zero value otherwise. 6154 func (g *GPGKey) GetCanSign() bool { 6155 if g == nil || g.CanSign == nil { 6156 return false 6157 } 6158 return *g.CanSign 6159 } 6160 6161 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6162 func (g *GPGKey) GetCreatedAt() time.Time { 6163 if g == nil || g.CreatedAt == nil { 6164 return time.Time{} 6165 } 6166 return *g.CreatedAt 6167 } 6168 6169 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 6170 func (g *GPGKey) GetExpiresAt() time.Time { 6171 if g == nil || g.ExpiresAt == nil { 6172 return time.Time{} 6173 } 6174 return *g.ExpiresAt 6175 } 6176 6177 // GetID returns the ID field if it's non-nil, zero value otherwise. 6178 func (g *GPGKey) GetID() int64 { 6179 if g == nil || g.ID == nil { 6180 return 0 6181 } 6182 return *g.ID 6183 } 6184 6185 // GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. 6186 func (g *GPGKey) GetKeyID() string { 6187 if g == nil || g.KeyID == nil { 6188 return "" 6189 } 6190 return *g.KeyID 6191 } 6192 6193 // GetPrimaryKeyID returns the PrimaryKeyID field if it's non-nil, zero value otherwise. 6194 func (g *GPGKey) GetPrimaryKeyID() int64 { 6195 if g == nil || g.PrimaryKeyID == nil { 6196 return 0 6197 } 6198 return *g.PrimaryKeyID 6199 } 6200 6201 // GetPublicKey returns the PublicKey field if it's non-nil, zero value otherwise. 6202 func (g *GPGKey) GetPublicKey() string { 6203 if g == nil || g.PublicKey == nil { 6204 return "" 6205 } 6206 return *g.PublicKey 6207 } 6208 6209 // GetRawKey returns the RawKey field if it's non-nil, zero value otherwise. 6210 func (g *GPGKey) GetRawKey() string { 6211 if g == nil || g.RawKey == nil { 6212 return "" 6213 } 6214 return *g.RawKey 6215 } 6216 6217 // GetApp returns the App field. 6218 func (g *Grant) GetApp() *AuthorizationApp { 6219 if g == nil { 6220 return nil 6221 } 6222 return g.App 6223 } 6224 6225 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6226 func (g *Grant) GetCreatedAt() Timestamp { 6227 if g == nil || g.CreatedAt == nil { 6228 return Timestamp{} 6229 } 6230 return *g.CreatedAt 6231 } 6232 6233 // GetID returns the ID field if it's non-nil, zero value otherwise. 6234 func (g *Grant) GetID() int64 { 6235 if g == nil || g.ID == nil { 6236 return 0 6237 } 6238 return *g.ID 6239 } 6240 6241 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6242 func (g *Grant) GetUpdatedAt() Timestamp { 6243 if g == nil || g.UpdatedAt == nil { 6244 return Timestamp{} 6245 } 6246 return *g.UpdatedAt 6247 } 6248 6249 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6250 func (g *Grant) GetURL() string { 6251 if g == nil || g.URL == nil { 6252 return "" 6253 } 6254 return *g.URL 6255 } 6256 6257 // GetAuthor returns the Author field. 6258 func (h *HeadCommit) GetAuthor() *CommitAuthor { 6259 if h == nil { 6260 return nil 6261 } 6262 return h.Author 6263 } 6264 6265 // GetCommitter returns the Committer field. 6266 func (h *HeadCommit) GetCommitter() *CommitAuthor { 6267 if h == nil { 6268 return nil 6269 } 6270 return h.Committer 6271 } 6272 6273 // GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. 6274 func (h *HeadCommit) GetDistinct() bool { 6275 if h == nil || h.Distinct == nil { 6276 return false 6277 } 6278 return *h.Distinct 6279 } 6280 6281 // GetID returns the ID field if it's non-nil, zero value otherwise. 6282 func (h *HeadCommit) GetID() string { 6283 if h == nil || h.ID == nil { 6284 return "" 6285 } 6286 return *h.ID 6287 } 6288 6289 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 6290 func (h *HeadCommit) GetMessage() string { 6291 if h == nil || h.Message == nil { 6292 return "" 6293 } 6294 return *h.Message 6295 } 6296 6297 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 6298 func (h *HeadCommit) GetSHA() string { 6299 if h == nil || h.SHA == nil { 6300 return "" 6301 } 6302 return *h.SHA 6303 } 6304 6305 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 6306 func (h *HeadCommit) GetTimestamp() Timestamp { 6307 if h == nil || h.Timestamp == nil { 6308 return Timestamp{} 6309 } 6310 return *h.Timestamp 6311 } 6312 6313 // GetTreeID returns the TreeID field if it's non-nil, zero value otherwise. 6314 func (h *HeadCommit) GetTreeID() string { 6315 if h == nil || h.TreeID == nil { 6316 return "" 6317 } 6318 return *h.TreeID 6319 } 6320 6321 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6322 func (h *HeadCommit) GetURL() string { 6323 if h == nil || h.URL == nil { 6324 return "" 6325 } 6326 return *h.URL 6327 } 6328 6329 // GetActive returns the Active field if it's non-nil, zero value otherwise. 6330 func (h *Hook) GetActive() bool { 6331 if h == nil || h.Active == nil { 6332 return false 6333 } 6334 return *h.Active 6335 } 6336 6337 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6338 func (h *Hook) GetCreatedAt() time.Time { 6339 if h == nil || h.CreatedAt == nil { 6340 return time.Time{} 6341 } 6342 return *h.CreatedAt 6343 } 6344 6345 // GetID returns the ID field if it's non-nil, zero value otherwise. 6346 func (h *Hook) GetID() int64 { 6347 if h == nil || h.ID == nil { 6348 return 0 6349 } 6350 return *h.ID 6351 } 6352 6353 // GetName returns the Name field if it's non-nil, zero value otherwise. 6354 func (h *Hook) GetName() string { 6355 if h == nil || h.Name == nil { 6356 return "" 6357 } 6358 return *h.Name 6359 } 6360 6361 // GetPingURL returns the PingURL field if it's non-nil, zero value otherwise. 6362 func (h *Hook) GetPingURL() string { 6363 if h == nil || h.PingURL == nil { 6364 return "" 6365 } 6366 return *h.PingURL 6367 } 6368 6369 // GetTestURL returns the TestURL field if it's non-nil, zero value otherwise. 6370 func (h *Hook) GetTestURL() string { 6371 if h == nil || h.TestURL == nil { 6372 return "" 6373 } 6374 return *h.TestURL 6375 } 6376 6377 // GetType returns the Type field if it's non-nil, zero value otherwise. 6378 func (h *Hook) GetType() string { 6379 if h == nil || h.Type == nil { 6380 return "" 6381 } 6382 return *h.Type 6383 } 6384 6385 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6386 func (h *Hook) GetUpdatedAt() time.Time { 6387 if h == nil || h.UpdatedAt == nil { 6388 return time.Time{} 6389 } 6390 return *h.UpdatedAt 6391 } 6392 6393 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6394 func (h *Hook) GetURL() string { 6395 if h == nil || h.URL == nil { 6396 return "" 6397 } 6398 return *h.URL 6399 } 6400 6401 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 6402 func (h *HookConfig) GetContentType() string { 6403 if h == nil || h.ContentType == nil { 6404 return "" 6405 } 6406 return *h.ContentType 6407 } 6408 6409 // GetInsecureSSL returns the InsecureSSL field if it's non-nil, zero value otherwise. 6410 func (h *HookConfig) GetInsecureSSL() string { 6411 if h == nil || h.InsecureSSL == nil { 6412 return "" 6413 } 6414 return *h.InsecureSSL 6415 } 6416 6417 // GetSecret returns the Secret field if it's non-nil, zero value otherwise. 6418 func (h *HookConfig) GetSecret() string { 6419 if h == nil || h.Secret == nil { 6420 return "" 6421 } 6422 return *h.Secret 6423 } 6424 6425 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6426 func (h *HookConfig) GetURL() string { 6427 if h == nil || h.URL == nil { 6428 return "" 6429 } 6430 return *h.URL 6431 } 6432 6433 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6434 func (h *HookDelivery) GetAction() string { 6435 if h == nil || h.Action == nil { 6436 return "" 6437 } 6438 return *h.Action 6439 } 6440 6441 // GetDeliveredAt returns the DeliveredAt field if it's non-nil, zero value otherwise. 6442 func (h *HookDelivery) GetDeliveredAt() Timestamp { 6443 if h == nil || h.DeliveredAt == nil { 6444 return Timestamp{} 6445 } 6446 return *h.DeliveredAt 6447 } 6448 6449 // GetDuration returns the Duration field. 6450 func (h *HookDelivery) GetDuration() *float64 { 6451 if h == nil { 6452 return nil 6453 } 6454 return h.Duration 6455 } 6456 6457 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 6458 func (h *HookDelivery) GetEvent() string { 6459 if h == nil || h.Event == nil { 6460 return "" 6461 } 6462 return *h.Event 6463 } 6464 6465 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 6466 func (h *HookDelivery) GetGUID() string { 6467 if h == nil || h.GUID == nil { 6468 return "" 6469 } 6470 return *h.GUID 6471 } 6472 6473 // GetID returns the ID field if it's non-nil, zero value otherwise. 6474 func (h *HookDelivery) GetID() int64 { 6475 if h == nil || h.ID == nil { 6476 return 0 6477 } 6478 return *h.ID 6479 } 6480 6481 // GetInstallationID returns the InstallationID field if it's non-nil, zero value otherwise. 6482 func (h *HookDelivery) GetInstallationID() int64 { 6483 if h == nil || h.InstallationID == nil { 6484 return 0 6485 } 6486 return *h.InstallationID 6487 } 6488 6489 // GetRedelivery returns the Redelivery field if it's non-nil, zero value otherwise. 6490 func (h *HookDelivery) GetRedelivery() bool { 6491 if h == nil || h.Redelivery == nil { 6492 return false 6493 } 6494 return *h.Redelivery 6495 } 6496 6497 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 6498 func (h *HookDelivery) GetRepositoryID() int64 { 6499 if h == nil || h.RepositoryID == nil { 6500 return 0 6501 } 6502 return *h.RepositoryID 6503 } 6504 6505 // GetRequest returns the Request field. 6506 func (h *HookDelivery) GetRequest() *HookRequest { 6507 if h == nil { 6508 return nil 6509 } 6510 return h.Request 6511 } 6512 6513 // GetResponse returns the Response field. 6514 func (h *HookDelivery) GetResponse() *HookResponse { 6515 if h == nil { 6516 return nil 6517 } 6518 return h.Response 6519 } 6520 6521 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 6522 func (h *HookDelivery) GetStatus() string { 6523 if h == nil || h.Status == nil { 6524 return "" 6525 } 6526 return *h.Status 6527 } 6528 6529 // GetStatusCode returns the StatusCode field if it's non-nil, zero value otherwise. 6530 func (h *HookDelivery) GetStatusCode() int { 6531 if h == nil || h.StatusCode == nil { 6532 return 0 6533 } 6534 return *h.StatusCode 6535 } 6536 6537 // GetHeaders returns the Headers map if it's non-nil, an empty map otherwise. 6538 func (h *HookRequest) GetHeaders() map[string]string { 6539 if h == nil || h.Headers == nil { 6540 return map[string]string{} 6541 } 6542 return h.Headers 6543 } 6544 6545 // GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 6546 func (h *HookRequest) GetRawPayload() json.RawMessage { 6547 if h == nil || h.RawPayload == nil { 6548 return json.RawMessage{} 6549 } 6550 return *h.RawPayload 6551 } 6552 6553 // GetHeaders returns the Headers map if it's non-nil, an empty map otherwise. 6554 func (h *HookResponse) GetHeaders() map[string]string { 6555 if h == nil || h.Headers == nil { 6556 return map[string]string{} 6557 } 6558 return h.Headers 6559 } 6560 6561 // GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 6562 func (h *HookResponse) GetRawPayload() json.RawMessage { 6563 if h == nil || h.RawPayload == nil { 6564 return json.RawMessage{} 6565 } 6566 return *h.RawPayload 6567 } 6568 6569 // GetActiveHooks returns the ActiveHooks field if it's non-nil, zero value otherwise. 6570 func (h *HookStats) GetActiveHooks() int { 6571 if h == nil || h.ActiveHooks == nil { 6572 return 0 6573 } 6574 return *h.ActiveHooks 6575 } 6576 6577 // GetInactiveHooks returns the InactiveHooks field if it's non-nil, zero value otherwise. 6578 func (h *HookStats) GetInactiveHooks() int { 6579 if h == nil || h.InactiveHooks == nil { 6580 return 0 6581 } 6582 return *h.InactiveHooks 6583 } 6584 6585 // GetTotalHooks returns the TotalHooks field if it's non-nil, zero value otherwise. 6586 func (h *HookStats) GetTotalHooks() int { 6587 if h == nil || h.TotalHooks == nil { 6588 return 0 6589 } 6590 return *h.TotalHooks 6591 } 6592 6593 // GetGroupDescription returns the GroupDescription field if it's non-nil, zero value otherwise. 6594 func (i *IDPGroup) GetGroupDescription() string { 6595 if i == nil || i.GroupDescription == nil { 6596 return "" 6597 } 6598 return *i.GroupDescription 6599 } 6600 6601 // GetGroupID returns the GroupID field if it's non-nil, zero value otherwise. 6602 func (i *IDPGroup) GetGroupID() string { 6603 if i == nil || i.GroupID == nil { 6604 return "" 6605 } 6606 return *i.GroupID 6607 } 6608 6609 // GetGroupName returns the GroupName field if it's non-nil, zero value otherwise. 6610 func (i *IDPGroup) GetGroupName() string { 6611 if i == nil || i.GroupName == nil { 6612 return "" 6613 } 6614 return *i.GroupName 6615 } 6616 6617 // GetAuthorsCount returns the AuthorsCount field if it's non-nil, zero value otherwise. 6618 func (i *Import) GetAuthorsCount() int { 6619 if i == nil || i.AuthorsCount == nil { 6620 return 0 6621 } 6622 return *i.AuthorsCount 6623 } 6624 6625 // GetAuthorsURL returns the AuthorsURL field if it's non-nil, zero value otherwise. 6626 func (i *Import) GetAuthorsURL() string { 6627 if i == nil || i.AuthorsURL == nil { 6628 return "" 6629 } 6630 return *i.AuthorsURL 6631 } 6632 6633 // GetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise. 6634 func (i *Import) GetCommitCount() int { 6635 if i == nil || i.CommitCount == nil { 6636 return 0 6637 } 6638 return *i.CommitCount 6639 } 6640 6641 // GetFailedStep returns the FailedStep field if it's non-nil, zero value otherwise. 6642 func (i *Import) GetFailedStep() string { 6643 if i == nil || i.FailedStep == nil { 6644 return "" 6645 } 6646 return *i.FailedStep 6647 } 6648 6649 // GetHasLargeFiles returns the HasLargeFiles field if it's non-nil, zero value otherwise. 6650 func (i *Import) GetHasLargeFiles() bool { 6651 if i == nil || i.HasLargeFiles == nil { 6652 return false 6653 } 6654 return *i.HasLargeFiles 6655 } 6656 6657 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6658 func (i *Import) GetHTMLURL() string { 6659 if i == nil || i.HTMLURL == nil { 6660 return "" 6661 } 6662 return *i.HTMLURL 6663 } 6664 6665 // GetHumanName returns the HumanName field if it's non-nil, zero value otherwise. 6666 func (i *Import) GetHumanName() string { 6667 if i == nil || i.HumanName == nil { 6668 return "" 6669 } 6670 return *i.HumanName 6671 } 6672 6673 // GetLargeFilesCount returns the LargeFilesCount field if it's non-nil, zero value otherwise. 6674 func (i *Import) GetLargeFilesCount() int { 6675 if i == nil || i.LargeFilesCount == nil { 6676 return 0 6677 } 6678 return *i.LargeFilesCount 6679 } 6680 6681 // GetLargeFilesSize returns the LargeFilesSize field if it's non-nil, zero value otherwise. 6682 func (i *Import) GetLargeFilesSize() int { 6683 if i == nil || i.LargeFilesSize == nil { 6684 return 0 6685 } 6686 return *i.LargeFilesSize 6687 } 6688 6689 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 6690 func (i *Import) GetMessage() string { 6691 if i == nil || i.Message == nil { 6692 return "" 6693 } 6694 return *i.Message 6695 } 6696 6697 // GetPercent returns the Percent field if it's non-nil, zero value otherwise. 6698 func (i *Import) GetPercent() int { 6699 if i == nil || i.Percent == nil { 6700 return 0 6701 } 6702 return *i.Percent 6703 } 6704 6705 // GetPushPercent returns the PushPercent field if it's non-nil, zero value otherwise. 6706 func (i *Import) GetPushPercent() int { 6707 if i == nil || i.PushPercent == nil { 6708 return 0 6709 } 6710 return *i.PushPercent 6711 } 6712 6713 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 6714 func (i *Import) GetRepositoryURL() string { 6715 if i == nil || i.RepositoryURL == nil { 6716 return "" 6717 } 6718 return *i.RepositoryURL 6719 } 6720 6721 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 6722 func (i *Import) GetStatus() string { 6723 if i == nil || i.Status == nil { 6724 return "" 6725 } 6726 return *i.Status 6727 } 6728 6729 // GetStatusText returns the StatusText field if it's non-nil, zero value otherwise. 6730 func (i *Import) GetStatusText() string { 6731 if i == nil || i.StatusText == nil { 6732 return "" 6733 } 6734 return *i.StatusText 6735 } 6736 6737 // GetTFVCProject returns the TFVCProject field if it's non-nil, zero value otherwise. 6738 func (i *Import) GetTFVCProject() string { 6739 if i == nil || i.TFVCProject == nil { 6740 return "" 6741 } 6742 return *i.TFVCProject 6743 } 6744 6745 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6746 func (i *Import) GetURL() string { 6747 if i == nil || i.URL == nil { 6748 return "" 6749 } 6750 return *i.URL 6751 } 6752 6753 // GetUseLFS returns the UseLFS field if it's non-nil, zero value otherwise. 6754 func (i *Import) GetUseLFS() string { 6755 if i == nil || i.UseLFS == nil { 6756 return "" 6757 } 6758 return *i.UseLFS 6759 } 6760 6761 // GetVCS returns the VCS field if it's non-nil, zero value otherwise. 6762 func (i *Import) GetVCS() string { 6763 if i == nil || i.VCS == nil { 6764 return "" 6765 } 6766 return *i.VCS 6767 } 6768 6769 // GetVCSPassword returns the VCSPassword field if it's non-nil, zero value otherwise. 6770 func (i *Import) GetVCSPassword() string { 6771 if i == nil || i.VCSPassword == nil { 6772 return "" 6773 } 6774 return *i.VCSPassword 6775 } 6776 6777 // GetVCSURL returns the VCSURL field if it's non-nil, zero value otherwise. 6778 func (i *Import) GetVCSURL() string { 6779 if i == nil || i.VCSURL == nil { 6780 return "" 6781 } 6782 return *i.VCSURL 6783 } 6784 6785 // GetVCSUsername returns the VCSUsername field if it's non-nil, zero value otherwise. 6786 func (i *Import) GetVCSUsername() string { 6787 if i == nil || i.VCSUsername == nil { 6788 return "" 6789 } 6790 return *i.VCSUsername 6791 } 6792 6793 // GetAccessTokensURL returns the AccessTokensURL field if it's non-nil, zero value otherwise. 6794 func (i *Installation) GetAccessTokensURL() string { 6795 if i == nil || i.AccessTokensURL == nil { 6796 return "" 6797 } 6798 return *i.AccessTokensURL 6799 } 6800 6801 // GetAccount returns the Account field. 6802 func (i *Installation) GetAccount() *User { 6803 if i == nil { 6804 return nil 6805 } 6806 return i.Account 6807 } 6808 6809 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 6810 func (i *Installation) GetAppID() int64 { 6811 if i == nil || i.AppID == nil { 6812 return 0 6813 } 6814 return *i.AppID 6815 } 6816 6817 // GetAppSlug returns the AppSlug field if it's non-nil, zero value otherwise. 6818 func (i *Installation) GetAppSlug() string { 6819 if i == nil || i.AppSlug == nil { 6820 return "" 6821 } 6822 return *i.AppSlug 6823 } 6824 6825 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6826 func (i *Installation) GetCreatedAt() Timestamp { 6827 if i == nil || i.CreatedAt == nil { 6828 return Timestamp{} 6829 } 6830 return *i.CreatedAt 6831 } 6832 6833 // GetHasMultipleSingleFiles returns the HasMultipleSingleFiles field if it's non-nil, zero value otherwise. 6834 func (i *Installation) GetHasMultipleSingleFiles() bool { 6835 if i == nil || i.HasMultipleSingleFiles == nil { 6836 return false 6837 } 6838 return *i.HasMultipleSingleFiles 6839 } 6840 6841 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6842 func (i *Installation) GetHTMLURL() string { 6843 if i == nil || i.HTMLURL == nil { 6844 return "" 6845 } 6846 return *i.HTMLURL 6847 } 6848 6849 // GetID returns the ID field if it's non-nil, zero value otherwise. 6850 func (i *Installation) GetID() int64 { 6851 if i == nil || i.ID == nil { 6852 return 0 6853 } 6854 return *i.ID 6855 } 6856 6857 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6858 func (i *Installation) GetNodeID() string { 6859 if i == nil || i.NodeID == nil { 6860 return "" 6861 } 6862 return *i.NodeID 6863 } 6864 6865 // GetPermissions returns the Permissions field. 6866 func (i *Installation) GetPermissions() *InstallationPermissions { 6867 if i == nil { 6868 return nil 6869 } 6870 return i.Permissions 6871 } 6872 6873 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 6874 func (i *Installation) GetRepositoriesURL() string { 6875 if i == nil || i.RepositoriesURL == nil { 6876 return "" 6877 } 6878 return *i.RepositoriesURL 6879 } 6880 6881 // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 6882 func (i *Installation) GetRepositorySelection() string { 6883 if i == nil || i.RepositorySelection == nil { 6884 return "" 6885 } 6886 return *i.RepositorySelection 6887 } 6888 6889 // GetSingleFileName returns the SingleFileName field if it's non-nil, zero value otherwise. 6890 func (i *Installation) GetSingleFileName() string { 6891 if i == nil || i.SingleFileName == nil { 6892 return "" 6893 } 6894 return *i.SingleFileName 6895 } 6896 6897 // GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise. 6898 func (i *Installation) GetSuspendedAt() Timestamp { 6899 if i == nil || i.SuspendedAt == nil { 6900 return Timestamp{} 6901 } 6902 return *i.SuspendedAt 6903 } 6904 6905 // GetSuspendedBy returns the SuspendedBy field. 6906 func (i *Installation) GetSuspendedBy() *User { 6907 if i == nil { 6908 return nil 6909 } 6910 return i.SuspendedBy 6911 } 6912 6913 // GetTargetID returns the TargetID field if it's non-nil, zero value otherwise. 6914 func (i *Installation) GetTargetID() int64 { 6915 if i == nil || i.TargetID == nil { 6916 return 0 6917 } 6918 return *i.TargetID 6919 } 6920 6921 // GetTargetType returns the TargetType field if it's non-nil, zero value otherwise. 6922 func (i *Installation) GetTargetType() string { 6923 if i == nil || i.TargetType == nil { 6924 return "" 6925 } 6926 return *i.TargetType 6927 } 6928 6929 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6930 func (i *Installation) GetUpdatedAt() Timestamp { 6931 if i == nil || i.UpdatedAt == nil { 6932 return Timestamp{} 6933 } 6934 return *i.UpdatedAt 6935 } 6936 6937 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6938 func (i *InstallationEvent) GetAction() string { 6939 if i == nil || i.Action == nil { 6940 return "" 6941 } 6942 return *i.Action 6943 } 6944 6945 // GetInstallation returns the Installation field. 6946 func (i *InstallationEvent) GetInstallation() *Installation { 6947 if i == nil { 6948 return nil 6949 } 6950 return i.Installation 6951 } 6952 6953 // GetSender returns the Sender field. 6954 func (i *InstallationEvent) GetSender() *User { 6955 if i == nil { 6956 return nil 6957 } 6958 return i.Sender 6959 } 6960 6961 // GetActions returns the Actions field if it's non-nil, zero value otherwise. 6962 func (i *InstallationPermissions) GetActions() string { 6963 if i == nil || i.Actions == nil { 6964 return "" 6965 } 6966 return *i.Actions 6967 } 6968 6969 // GetAdministration returns the Administration field if it's non-nil, zero value otherwise. 6970 func (i *InstallationPermissions) GetAdministration() string { 6971 if i == nil || i.Administration == nil { 6972 return "" 6973 } 6974 return *i.Administration 6975 } 6976 6977 // GetBlocking returns the Blocking field if it's non-nil, zero value otherwise. 6978 func (i *InstallationPermissions) GetBlocking() string { 6979 if i == nil || i.Blocking == nil { 6980 return "" 6981 } 6982 return *i.Blocking 6983 } 6984 6985 // GetChecks returns the Checks field if it's non-nil, zero value otherwise. 6986 func (i *InstallationPermissions) GetChecks() string { 6987 if i == nil || i.Checks == nil { 6988 return "" 6989 } 6990 return *i.Checks 6991 } 6992 6993 // GetContentReferences returns the ContentReferences field if it's non-nil, zero value otherwise. 6994 func (i *InstallationPermissions) GetContentReferences() string { 6995 if i == nil || i.ContentReferences == nil { 6996 return "" 6997 } 6998 return *i.ContentReferences 6999 } 7000 7001 // GetContents returns the Contents field if it's non-nil, zero value otherwise. 7002 func (i *InstallationPermissions) GetContents() string { 7003 if i == nil || i.Contents == nil { 7004 return "" 7005 } 7006 return *i.Contents 7007 } 7008 7009 // GetDeployments returns the Deployments field if it's non-nil, zero value otherwise. 7010 func (i *InstallationPermissions) GetDeployments() string { 7011 if i == nil || i.Deployments == nil { 7012 return "" 7013 } 7014 return *i.Deployments 7015 } 7016 7017 // GetEmails returns the Emails field if it's non-nil, zero value otherwise. 7018 func (i *InstallationPermissions) GetEmails() string { 7019 if i == nil || i.Emails == nil { 7020 return "" 7021 } 7022 return *i.Emails 7023 } 7024 7025 // GetEnvironments returns the Environments field if it's non-nil, zero value otherwise. 7026 func (i *InstallationPermissions) GetEnvironments() string { 7027 if i == nil || i.Environments == nil { 7028 return "" 7029 } 7030 return *i.Environments 7031 } 7032 7033 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 7034 func (i *InstallationPermissions) GetFollowers() string { 7035 if i == nil || i.Followers == nil { 7036 return "" 7037 } 7038 return *i.Followers 7039 } 7040 7041 // GetIssues returns the Issues field if it's non-nil, zero value otherwise. 7042 func (i *InstallationPermissions) GetIssues() string { 7043 if i == nil || i.Issues == nil { 7044 return "" 7045 } 7046 return *i.Issues 7047 } 7048 7049 // GetMembers returns the Members field if it's non-nil, zero value otherwise. 7050 func (i *InstallationPermissions) GetMembers() string { 7051 if i == nil || i.Members == nil { 7052 return "" 7053 } 7054 return *i.Members 7055 } 7056 7057 // GetMetadata returns the Metadata field if it's non-nil, zero value otherwise. 7058 func (i *InstallationPermissions) GetMetadata() string { 7059 if i == nil || i.Metadata == nil { 7060 return "" 7061 } 7062 return *i.Metadata 7063 } 7064 7065 // GetOrganizationAdministration returns the OrganizationAdministration field if it's non-nil, zero value otherwise. 7066 func (i *InstallationPermissions) GetOrganizationAdministration() string { 7067 if i == nil || i.OrganizationAdministration == nil { 7068 return "" 7069 } 7070 return *i.OrganizationAdministration 7071 } 7072 7073 // GetOrganizationCustomRoles returns the OrganizationCustomRoles field if it's non-nil, zero value otherwise. 7074 func (i *InstallationPermissions) GetOrganizationCustomRoles() string { 7075 if i == nil || i.OrganizationCustomRoles == nil { 7076 return "" 7077 } 7078 return *i.OrganizationCustomRoles 7079 } 7080 7081 // GetOrganizationHooks returns the OrganizationHooks field if it's non-nil, zero value otherwise. 7082 func (i *InstallationPermissions) GetOrganizationHooks() string { 7083 if i == nil || i.OrganizationHooks == nil { 7084 return "" 7085 } 7086 return *i.OrganizationHooks 7087 } 7088 7089 // GetOrganizationPackages returns the OrganizationPackages field if it's non-nil, zero value otherwise. 7090 func (i *InstallationPermissions) GetOrganizationPackages() string { 7091 if i == nil || i.OrganizationPackages == nil { 7092 return "" 7093 } 7094 return *i.OrganizationPackages 7095 } 7096 7097 // GetOrganizationPlan returns the OrganizationPlan field if it's non-nil, zero value otherwise. 7098 func (i *InstallationPermissions) GetOrganizationPlan() string { 7099 if i == nil || i.OrganizationPlan == nil { 7100 return "" 7101 } 7102 return *i.OrganizationPlan 7103 } 7104 7105 // GetOrganizationPreReceiveHooks returns the OrganizationPreReceiveHooks field if it's non-nil, zero value otherwise. 7106 func (i *InstallationPermissions) GetOrganizationPreReceiveHooks() string { 7107 if i == nil || i.OrganizationPreReceiveHooks == nil { 7108 return "" 7109 } 7110 return *i.OrganizationPreReceiveHooks 7111 } 7112 7113 // GetOrganizationProjects returns the OrganizationProjects field if it's non-nil, zero value otherwise. 7114 func (i *InstallationPermissions) GetOrganizationProjects() string { 7115 if i == nil || i.OrganizationProjects == nil { 7116 return "" 7117 } 7118 return *i.OrganizationProjects 7119 } 7120 7121 // GetOrganizationSecrets returns the OrganizationSecrets field if it's non-nil, zero value otherwise. 7122 func (i *InstallationPermissions) GetOrganizationSecrets() string { 7123 if i == nil || i.OrganizationSecrets == nil { 7124 return "" 7125 } 7126 return *i.OrganizationSecrets 7127 } 7128 7129 // GetOrganizationSelfHostedRunners returns the OrganizationSelfHostedRunners field if it's non-nil, zero value otherwise. 7130 func (i *InstallationPermissions) GetOrganizationSelfHostedRunners() string { 7131 if i == nil || i.OrganizationSelfHostedRunners == nil { 7132 return "" 7133 } 7134 return *i.OrganizationSelfHostedRunners 7135 } 7136 7137 // GetOrganizationUserBlocking returns the OrganizationUserBlocking field if it's non-nil, zero value otherwise. 7138 func (i *InstallationPermissions) GetOrganizationUserBlocking() string { 7139 if i == nil || i.OrganizationUserBlocking == nil { 7140 return "" 7141 } 7142 return *i.OrganizationUserBlocking 7143 } 7144 7145 // GetPackages returns the Packages field if it's non-nil, zero value otherwise. 7146 func (i *InstallationPermissions) GetPackages() string { 7147 if i == nil || i.Packages == nil { 7148 return "" 7149 } 7150 return *i.Packages 7151 } 7152 7153 // GetPages returns the Pages field if it's non-nil, zero value otherwise. 7154 func (i *InstallationPermissions) GetPages() string { 7155 if i == nil || i.Pages == nil { 7156 return "" 7157 } 7158 return *i.Pages 7159 } 7160 7161 // GetPullRequests returns the PullRequests field if it's non-nil, zero value otherwise. 7162 func (i *InstallationPermissions) GetPullRequests() string { 7163 if i == nil || i.PullRequests == nil { 7164 return "" 7165 } 7166 return *i.PullRequests 7167 } 7168 7169 // GetRepositoryHooks returns the RepositoryHooks field if it's non-nil, zero value otherwise. 7170 func (i *InstallationPermissions) GetRepositoryHooks() string { 7171 if i == nil || i.RepositoryHooks == nil { 7172 return "" 7173 } 7174 return *i.RepositoryHooks 7175 } 7176 7177 // GetRepositoryPreReceiveHooks returns the RepositoryPreReceiveHooks field if it's non-nil, zero value otherwise. 7178 func (i *InstallationPermissions) GetRepositoryPreReceiveHooks() string { 7179 if i == nil || i.RepositoryPreReceiveHooks == nil { 7180 return "" 7181 } 7182 return *i.RepositoryPreReceiveHooks 7183 } 7184 7185 // GetRepositoryProjects returns the RepositoryProjects field if it's non-nil, zero value otherwise. 7186 func (i *InstallationPermissions) GetRepositoryProjects() string { 7187 if i == nil || i.RepositoryProjects == nil { 7188 return "" 7189 } 7190 return *i.RepositoryProjects 7191 } 7192 7193 // GetSecrets returns the Secrets field if it's non-nil, zero value otherwise. 7194 func (i *InstallationPermissions) GetSecrets() string { 7195 if i == nil || i.Secrets == nil { 7196 return "" 7197 } 7198 return *i.Secrets 7199 } 7200 7201 // GetSecretScanningAlerts returns the SecretScanningAlerts field if it's non-nil, zero value otherwise. 7202 func (i *InstallationPermissions) GetSecretScanningAlerts() string { 7203 if i == nil || i.SecretScanningAlerts == nil { 7204 return "" 7205 } 7206 return *i.SecretScanningAlerts 7207 } 7208 7209 // GetSecurityEvents returns the SecurityEvents field if it's non-nil, zero value otherwise. 7210 func (i *InstallationPermissions) GetSecurityEvents() string { 7211 if i == nil || i.SecurityEvents == nil { 7212 return "" 7213 } 7214 return *i.SecurityEvents 7215 } 7216 7217 // GetSingleFile returns the SingleFile field if it's non-nil, zero value otherwise. 7218 func (i *InstallationPermissions) GetSingleFile() string { 7219 if i == nil || i.SingleFile == nil { 7220 return "" 7221 } 7222 return *i.SingleFile 7223 } 7224 7225 // GetStatuses returns the Statuses field if it's non-nil, zero value otherwise. 7226 func (i *InstallationPermissions) GetStatuses() string { 7227 if i == nil || i.Statuses == nil { 7228 return "" 7229 } 7230 return *i.Statuses 7231 } 7232 7233 // GetTeamDiscussions returns the TeamDiscussions field if it's non-nil, zero value otherwise. 7234 func (i *InstallationPermissions) GetTeamDiscussions() string { 7235 if i == nil || i.TeamDiscussions == nil { 7236 return "" 7237 } 7238 return *i.TeamDiscussions 7239 } 7240 7241 // GetVulnerabilityAlerts returns the VulnerabilityAlerts field if it's non-nil, zero value otherwise. 7242 func (i *InstallationPermissions) GetVulnerabilityAlerts() string { 7243 if i == nil || i.VulnerabilityAlerts == nil { 7244 return "" 7245 } 7246 return *i.VulnerabilityAlerts 7247 } 7248 7249 // GetWorkflows returns the Workflows field if it's non-nil, zero value otherwise. 7250 func (i *InstallationPermissions) GetWorkflows() string { 7251 if i == nil || i.Workflows == nil { 7252 return "" 7253 } 7254 return *i.Workflows 7255 } 7256 7257 // GetAction returns the Action field if it's non-nil, zero value otherwise. 7258 func (i *InstallationRepositoriesEvent) GetAction() string { 7259 if i == nil || i.Action == nil { 7260 return "" 7261 } 7262 return *i.Action 7263 } 7264 7265 // GetInstallation returns the Installation field. 7266 func (i *InstallationRepositoriesEvent) GetInstallation() *Installation { 7267 if i == nil { 7268 return nil 7269 } 7270 return i.Installation 7271 } 7272 7273 // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 7274 func (i *InstallationRepositoriesEvent) GetRepositorySelection() string { 7275 if i == nil || i.RepositorySelection == nil { 7276 return "" 7277 } 7278 return *i.RepositorySelection 7279 } 7280 7281 // GetSender returns the Sender field. 7282 func (i *InstallationRepositoriesEvent) GetSender() *User { 7283 if i == nil { 7284 return nil 7285 } 7286 return i.Sender 7287 } 7288 7289 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 7290 func (i *InstallationToken) GetExpiresAt() time.Time { 7291 if i == nil || i.ExpiresAt == nil { 7292 return time.Time{} 7293 } 7294 return *i.ExpiresAt 7295 } 7296 7297 // GetPermissions returns the Permissions field. 7298 func (i *InstallationToken) GetPermissions() *InstallationPermissions { 7299 if i == nil { 7300 return nil 7301 } 7302 return i.Permissions 7303 } 7304 7305 // GetToken returns the Token field if it's non-nil, zero value otherwise. 7306 func (i *InstallationToken) GetToken() string { 7307 if i == nil || i.Token == nil { 7308 return "" 7309 } 7310 return *i.Token 7311 } 7312 7313 // GetPermissions returns the Permissions field. 7314 func (i *InstallationTokenOptions) GetPermissions() *InstallationPermissions { 7315 if i == nil { 7316 return nil 7317 } 7318 return i.Permissions 7319 } 7320 7321 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 7322 func (i *InteractionRestriction) GetExpiresAt() Timestamp { 7323 if i == nil || i.ExpiresAt == nil { 7324 return Timestamp{} 7325 } 7326 return *i.ExpiresAt 7327 } 7328 7329 // GetLimit returns the Limit field if it's non-nil, zero value otherwise. 7330 func (i *InteractionRestriction) GetLimit() string { 7331 if i == nil || i.Limit == nil { 7332 return "" 7333 } 7334 return *i.Limit 7335 } 7336 7337 // GetOrigin returns the Origin field if it's non-nil, zero value otherwise. 7338 func (i *InteractionRestriction) GetOrigin() string { 7339 if i == nil || i.Origin == nil { 7340 return "" 7341 } 7342 return *i.Origin 7343 } 7344 7345 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7346 func (i *Invitation) GetCreatedAt() time.Time { 7347 if i == nil || i.CreatedAt == nil { 7348 return time.Time{} 7349 } 7350 return *i.CreatedAt 7351 } 7352 7353 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 7354 func (i *Invitation) GetEmail() string { 7355 if i == nil || i.Email == nil { 7356 return "" 7357 } 7358 return *i.Email 7359 } 7360 7361 // GetFailedAt returns the FailedAt field if it's non-nil, zero value otherwise. 7362 func (i *Invitation) GetFailedAt() Timestamp { 7363 if i == nil || i.FailedAt == nil { 7364 return Timestamp{} 7365 } 7366 return *i.FailedAt 7367 } 7368 7369 // GetFailedReason returns the FailedReason field if it's non-nil, zero value otherwise. 7370 func (i *Invitation) GetFailedReason() string { 7371 if i == nil || i.FailedReason == nil { 7372 return "" 7373 } 7374 return *i.FailedReason 7375 } 7376 7377 // GetID returns the ID field if it's non-nil, zero value otherwise. 7378 func (i *Invitation) GetID() int64 { 7379 if i == nil || i.ID == nil { 7380 return 0 7381 } 7382 return *i.ID 7383 } 7384 7385 // GetInvitationTeamURL returns the InvitationTeamURL field if it's non-nil, zero value otherwise. 7386 func (i *Invitation) GetInvitationTeamURL() string { 7387 if i == nil || i.InvitationTeamURL == nil { 7388 return "" 7389 } 7390 return *i.InvitationTeamURL 7391 } 7392 7393 // GetInviter returns the Inviter field. 7394 func (i *Invitation) GetInviter() *User { 7395 if i == nil { 7396 return nil 7397 } 7398 return i.Inviter 7399 } 7400 7401 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 7402 func (i *Invitation) GetLogin() string { 7403 if i == nil || i.Login == nil { 7404 return "" 7405 } 7406 return *i.Login 7407 } 7408 7409 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 7410 func (i *Invitation) GetNodeID() string { 7411 if i == nil || i.NodeID == nil { 7412 return "" 7413 } 7414 return *i.NodeID 7415 } 7416 7417 // GetRole returns the Role field if it's non-nil, zero value otherwise. 7418 func (i *Invitation) GetRole() string { 7419 if i == nil || i.Role == nil { 7420 return "" 7421 } 7422 return *i.Role 7423 } 7424 7425 // GetTeamCount returns the TeamCount field if it's non-nil, zero value otherwise. 7426 func (i *Invitation) GetTeamCount() int { 7427 if i == nil || i.TeamCount == nil { 7428 return 0 7429 } 7430 return *i.TeamCount 7431 } 7432 7433 // GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 7434 func (i *Issue) GetActiveLockReason() string { 7435 if i == nil || i.ActiveLockReason == nil { 7436 return "" 7437 } 7438 return *i.ActiveLockReason 7439 } 7440 7441 // GetAssignee returns the Assignee field. 7442 func (i *Issue) GetAssignee() *User { 7443 if i == nil { 7444 return nil 7445 } 7446 return i.Assignee 7447 } 7448 7449 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 7450 func (i *Issue) GetAuthorAssociation() string { 7451 if i == nil || i.AuthorAssociation == nil { 7452 return "" 7453 } 7454 return *i.AuthorAssociation 7455 } 7456 7457 // GetBody returns the Body field if it's non-nil, zero value otherwise. 7458 func (i *Issue) GetBody() string { 7459 if i == nil || i.Body == nil { 7460 return "" 7461 } 7462 return *i.Body 7463 } 7464 7465 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 7466 func (i *Issue) GetClosedAt() time.Time { 7467 if i == nil || i.ClosedAt == nil { 7468 return time.Time{} 7469 } 7470 return *i.ClosedAt 7471 } 7472 7473 // GetClosedBy returns the ClosedBy field. 7474 func (i *Issue) GetClosedBy() *User { 7475 if i == nil { 7476 return nil 7477 } 7478 return i.ClosedBy 7479 } 7480 7481 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 7482 func (i *Issue) GetComments() int { 7483 if i == nil || i.Comments == nil { 7484 return 0 7485 } 7486 return *i.Comments 7487 } 7488 7489 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 7490 func (i *Issue) GetCommentsURL() string { 7491 if i == nil || i.CommentsURL == nil { 7492 return "" 7493 } 7494 return *i.CommentsURL 7495 } 7496 7497 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7498 func (i *Issue) GetCreatedAt() time.Time { 7499 if i == nil || i.CreatedAt == nil { 7500 return time.Time{} 7501 } 7502 return *i.CreatedAt 7503 } 7504 7505 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 7506 func (i *Issue) GetEventsURL() string { 7507 if i == nil || i.EventsURL == nil { 7508 return "" 7509 } 7510 return *i.EventsURL 7511 } 7512 7513 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7514 func (i *Issue) GetHTMLURL() string { 7515 if i == nil || i.HTMLURL == nil { 7516 return "" 7517 } 7518 return *i.HTMLURL 7519 } 7520 7521 // GetID returns the ID field if it's non-nil, zero value otherwise. 7522 func (i *Issue) GetID() int64 { 7523 if i == nil || i.ID == nil { 7524 return 0 7525 } 7526 return *i.ID 7527 } 7528 7529 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 7530 func (i *Issue) GetLabelsURL() string { 7531 if i == nil || i.LabelsURL == nil { 7532 return "" 7533 } 7534 return *i.LabelsURL 7535 } 7536 7537 // GetLocked returns the Locked field if it's non-nil, zero value otherwise. 7538 func (i *Issue) GetLocked() bool { 7539 if i == nil || i.Locked == nil { 7540 return false 7541 } 7542 return *i.Locked 7543 } 7544 7545 // GetMilestone returns the Milestone field. 7546 func (i *Issue) GetMilestone() *Milestone { 7547 if i == nil { 7548 return nil 7549 } 7550 return i.Milestone 7551 } 7552 7553 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 7554 func (i *Issue) GetNodeID() string { 7555 if i == nil || i.NodeID == nil { 7556 return "" 7557 } 7558 return *i.NodeID 7559 } 7560 7561 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 7562 func (i *Issue) GetNumber() int { 7563 if i == nil || i.Number == nil { 7564 return 0 7565 } 7566 return *i.Number 7567 } 7568 7569 // GetPullRequestLinks returns the PullRequestLinks field. 7570 func (i *Issue) GetPullRequestLinks() *PullRequestLinks { 7571 if i == nil { 7572 return nil 7573 } 7574 return i.PullRequestLinks 7575 } 7576 7577 // GetReactions returns the Reactions field. 7578 func (i *Issue) GetReactions() *Reactions { 7579 if i == nil { 7580 return nil 7581 } 7582 return i.Reactions 7583 } 7584 7585 // GetRepository returns the Repository field. 7586 func (i *Issue) GetRepository() *Repository { 7587 if i == nil { 7588 return nil 7589 } 7590 return i.Repository 7591 } 7592 7593 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 7594 func (i *Issue) GetRepositoryURL() string { 7595 if i == nil || i.RepositoryURL == nil { 7596 return "" 7597 } 7598 return *i.RepositoryURL 7599 } 7600 7601 // GetState returns the State field if it's non-nil, zero value otherwise. 7602 func (i *Issue) GetState() string { 7603 if i == nil || i.State == nil { 7604 return "" 7605 } 7606 return *i.State 7607 } 7608 7609 // GetStateReason returns the StateReason field if it's non-nil, zero value otherwise. 7610 func (i *Issue) GetStateReason() string { 7611 if i == nil || i.StateReason == nil { 7612 return "" 7613 } 7614 return *i.StateReason 7615 } 7616 7617 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 7618 func (i *Issue) GetTitle() string { 7619 if i == nil || i.Title == nil { 7620 return "" 7621 } 7622 return *i.Title 7623 } 7624 7625 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7626 func (i *Issue) GetUpdatedAt() time.Time { 7627 if i == nil || i.UpdatedAt == nil { 7628 return time.Time{} 7629 } 7630 return *i.UpdatedAt 7631 } 7632 7633 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7634 func (i *Issue) GetURL() string { 7635 if i == nil || i.URL == nil { 7636 return "" 7637 } 7638 return *i.URL 7639 } 7640 7641 // GetUser returns the User field. 7642 func (i *Issue) GetUser() *User { 7643 if i == nil { 7644 return nil 7645 } 7646 return i.User 7647 } 7648 7649 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 7650 func (i *IssueComment) GetAuthorAssociation() string { 7651 if i == nil || i.AuthorAssociation == nil { 7652 return "" 7653 } 7654 return *i.AuthorAssociation 7655 } 7656 7657 // GetBody returns the Body field if it's non-nil, zero value otherwise. 7658 func (i *IssueComment) GetBody() string { 7659 if i == nil || i.Body == nil { 7660 return "" 7661 } 7662 return *i.Body 7663 } 7664 7665 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7666 func (i *IssueComment) GetCreatedAt() time.Time { 7667 if i == nil || i.CreatedAt == nil { 7668 return time.Time{} 7669 } 7670 return *i.CreatedAt 7671 } 7672 7673 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7674 func (i *IssueComment) GetHTMLURL() string { 7675 if i == nil || i.HTMLURL == nil { 7676 return "" 7677 } 7678 return *i.HTMLURL 7679 } 7680 7681 // GetID returns the ID field if it's non-nil, zero value otherwise. 7682 func (i *IssueComment) GetID() int64 { 7683 if i == nil || i.ID == nil { 7684 return 0 7685 } 7686 return *i.ID 7687 } 7688 7689 // GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 7690 func (i *IssueComment) GetIssueURL() string { 7691 if i == nil || i.IssueURL == nil { 7692 return "" 7693 } 7694 return *i.IssueURL 7695 } 7696 7697 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 7698 func (i *IssueComment) GetNodeID() string { 7699 if i == nil || i.NodeID == nil { 7700 return "" 7701 } 7702 return *i.NodeID 7703 } 7704 7705 // GetReactions returns the Reactions field. 7706 func (i *IssueComment) GetReactions() *Reactions { 7707 if i == nil { 7708 return nil 7709 } 7710 return i.Reactions 7711 } 7712 7713 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7714 func (i *IssueComment) GetUpdatedAt() time.Time { 7715 if i == nil || i.UpdatedAt == nil { 7716 return time.Time{} 7717 } 7718 return *i.UpdatedAt 7719 } 7720 7721 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7722 func (i *IssueComment) GetURL() string { 7723 if i == nil || i.URL == nil { 7724 return "" 7725 } 7726 return *i.URL 7727 } 7728 7729 // GetUser returns the User field. 7730 func (i *IssueComment) GetUser() *User { 7731 if i == nil { 7732 return nil 7733 } 7734 return i.User 7735 } 7736 7737 // GetAction returns the Action field if it's non-nil, zero value otherwise. 7738 func (i *IssueCommentEvent) GetAction() string { 7739 if i == nil || i.Action == nil { 7740 return "" 7741 } 7742 return *i.Action 7743 } 7744 7745 // GetChanges returns the Changes field. 7746 func (i *IssueCommentEvent) GetChanges() *EditChange { 7747 if i == nil { 7748 return nil 7749 } 7750 return i.Changes 7751 } 7752 7753 // GetComment returns the Comment field. 7754 func (i *IssueCommentEvent) GetComment() *IssueComment { 7755 if i == nil { 7756 return nil 7757 } 7758 return i.Comment 7759 } 7760 7761 // GetInstallation returns the Installation field. 7762 func (i *IssueCommentEvent) GetInstallation() *Installation { 7763 if i == nil { 7764 return nil 7765 } 7766 return i.Installation 7767 } 7768 7769 // GetIssue returns the Issue field. 7770 func (i *IssueCommentEvent) GetIssue() *Issue { 7771 if i == nil { 7772 return nil 7773 } 7774 return i.Issue 7775 } 7776 7777 // GetOrganization returns the Organization field. 7778 func (i *IssueCommentEvent) GetOrganization() *Organization { 7779 if i == nil { 7780 return nil 7781 } 7782 return i.Organization 7783 } 7784 7785 // GetRepo returns the Repo field. 7786 func (i *IssueCommentEvent) GetRepo() *Repository { 7787 if i == nil { 7788 return nil 7789 } 7790 return i.Repo 7791 } 7792 7793 // GetSender returns the Sender field. 7794 func (i *IssueCommentEvent) GetSender() *User { 7795 if i == nil { 7796 return nil 7797 } 7798 return i.Sender 7799 } 7800 7801 // GetActor returns the Actor field. 7802 func (i *IssueEvent) GetActor() *User { 7803 if i == nil { 7804 return nil 7805 } 7806 return i.Actor 7807 } 7808 7809 // GetAssignee returns the Assignee field. 7810 func (i *IssueEvent) GetAssignee() *User { 7811 if i == nil { 7812 return nil 7813 } 7814 return i.Assignee 7815 } 7816 7817 // GetAssigner returns the Assigner field. 7818 func (i *IssueEvent) GetAssigner() *User { 7819 if i == nil { 7820 return nil 7821 } 7822 return i.Assigner 7823 } 7824 7825 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 7826 func (i *IssueEvent) GetCommitID() string { 7827 if i == nil || i.CommitID == nil { 7828 return "" 7829 } 7830 return *i.CommitID 7831 } 7832 7833 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7834 func (i *IssueEvent) GetCreatedAt() time.Time { 7835 if i == nil || i.CreatedAt == nil { 7836 return time.Time{} 7837 } 7838 return *i.CreatedAt 7839 } 7840 7841 // GetDismissedReview returns the DismissedReview field. 7842 func (i *IssueEvent) GetDismissedReview() *DismissedReview { 7843 if i == nil { 7844 return nil 7845 } 7846 return i.DismissedReview 7847 } 7848 7849 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 7850 func (i *IssueEvent) GetEvent() string { 7851 if i == nil || i.Event == nil { 7852 return "" 7853 } 7854 return *i.Event 7855 } 7856 7857 // GetID returns the ID field if it's non-nil, zero value otherwise. 7858 func (i *IssueEvent) GetID() int64 { 7859 if i == nil || i.ID == nil { 7860 return 0 7861 } 7862 return *i.ID 7863 } 7864 7865 // GetIssue returns the Issue field. 7866 func (i *IssueEvent) GetIssue() *Issue { 7867 if i == nil { 7868 return nil 7869 } 7870 return i.Issue 7871 } 7872 7873 // GetLabel returns the Label field. 7874 func (i *IssueEvent) GetLabel() *Label { 7875 if i == nil { 7876 return nil 7877 } 7878 return i.Label 7879 } 7880 7881 // GetLockReason returns the LockReason field if it's non-nil, zero value otherwise. 7882 func (i *IssueEvent) GetLockReason() string { 7883 if i == nil || i.LockReason == nil { 7884 return "" 7885 } 7886 return *i.LockReason 7887 } 7888 7889 // GetMilestone returns the Milestone field. 7890 func (i *IssueEvent) GetMilestone() *Milestone { 7891 if i == nil { 7892 return nil 7893 } 7894 return i.Milestone 7895 } 7896 7897 // GetProjectCard returns the ProjectCard field. 7898 func (i *IssueEvent) GetProjectCard() *ProjectCard { 7899 if i == nil { 7900 return nil 7901 } 7902 return i.ProjectCard 7903 } 7904 7905 // GetRename returns the Rename field. 7906 func (i *IssueEvent) GetRename() *Rename { 7907 if i == nil { 7908 return nil 7909 } 7910 return i.Rename 7911 } 7912 7913 // GetRequestedReviewer returns the RequestedReviewer field. 7914 func (i *IssueEvent) GetRequestedReviewer() *User { 7915 if i == nil { 7916 return nil 7917 } 7918 return i.RequestedReviewer 7919 } 7920 7921 // GetReviewRequester returns the ReviewRequester field. 7922 func (i *IssueEvent) GetReviewRequester() *User { 7923 if i == nil { 7924 return nil 7925 } 7926 return i.ReviewRequester 7927 } 7928 7929 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7930 func (i *IssueEvent) GetURL() string { 7931 if i == nil || i.URL == nil { 7932 return "" 7933 } 7934 return *i.URL 7935 } 7936 7937 // GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. 7938 func (i *IssueImport) GetAssignee() string { 7939 if i == nil || i.Assignee == nil { 7940 return "" 7941 } 7942 return *i.Assignee 7943 } 7944 7945 // GetClosed returns the Closed field if it's non-nil, zero value otherwise. 7946 func (i *IssueImport) GetClosed() bool { 7947 if i == nil || i.Closed == nil { 7948 return false 7949 } 7950 return *i.Closed 7951 } 7952 7953 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 7954 func (i *IssueImport) GetClosedAt() time.Time { 7955 if i == nil || i.ClosedAt == nil { 7956 return time.Time{} 7957 } 7958 return *i.ClosedAt 7959 } 7960 7961 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7962 func (i *IssueImport) GetCreatedAt() time.Time { 7963 if i == nil || i.CreatedAt == nil { 7964 return time.Time{} 7965 } 7966 return *i.CreatedAt 7967 } 7968 7969 // GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. 7970 func (i *IssueImport) GetMilestone() int { 7971 if i == nil || i.Milestone == nil { 7972 return 0 7973 } 7974 return *i.Milestone 7975 } 7976 7977 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7978 func (i *IssueImport) GetUpdatedAt() time.Time { 7979 if i == nil || i.UpdatedAt == nil { 7980 return time.Time{} 7981 } 7982 return *i.UpdatedAt 7983 } 7984 7985 // GetCode returns the Code field if it's non-nil, zero value otherwise. 7986 func (i *IssueImportError) GetCode() string { 7987 if i == nil || i.Code == nil { 7988 return "" 7989 } 7990 return *i.Code 7991 } 7992 7993 // GetField returns the Field field if it's non-nil, zero value otherwise. 7994 func (i *IssueImportError) GetField() string { 7995 if i == nil || i.Field == nil { 7996 return "" 7997 } 7998 return *i.Field 7999 } 8000 8001 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 8002 func (i *IssueImportError) GetLocation() string { 8003 if i == nil || i.Location == nil { 8004 return "" 8005 } 8006 return *i.Location 8007 } 8008 8009 // GetResource returns the Resource field if it's non-nil, zero value otherwise. 8010 func (i *IssueImportError) GetResource() string { 8011 if i == nil || i.Resource == nil { 8012 return "" 8013 } 8014 return *i.Resource 8015 } 8016 8017 // GetValue returns the Value field if it's non-nil, zero value otherwise. 8018 func (i *IssueImportError) GetValue() string { 8019 if i == nil || i.Value == nil { 8020 return "" 8021 } 8022 return *i.Value 8023 } 8024 8025 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8026 func (i *IssueImportResponse) GetCreatedAt() time.Time { 8027 if i == nil || i.CreatedAt == nil { 8028 return time.Time{} 8029 } 8030 return *i.CreatedAt 8031 } 8032 8033 // GetDocumentationURL returns the DocumentationURL field if it's non-nil, zero value otherwise. 8034 func (i *IssueImportResponse) GetDocumentationURL() string { 8035 if i == nil || i.DocumentationURL == nil { 8036 return "" 8037 } 8038 return *i.DocumentationURL 8039 } 8040 8041 // GetID returns the ID field if it's non-nil, zero value otherwise. 8042 func (i *IssueImportResponse) GetID() int { 8043 if i == nil || i.ID == nil { 8044 return 0 8045 } 8046 return *i.ID 8047 } 8048 8049 // GetImportIssuesURL returns the ImportIssuesURL field if it's non-nil, zero value otherwise. 8050 func (i *IssueImportResponse) GetImportIssuesURL() string { 8051 if i == nil || i.ImportIssuesURL == nil { 8052 return "" 8053 } 8054 return *i.ImportIssuesURL 8055 } 8056 8057 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 8058 func (i *IssueImportResponse) GetMessage() string { 8059 if i == nil || i.Message == nil { 8060 return "" 8061 } 8062 return *i.Message 8063 } 8064 8065 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 8066 func (i *IssueImportResponse) GetRepositoryURL() string { 8067 if i == nil || i.RepositoryURL == nil { 8068 return "" 8069 } 8070 return *i.RepositoryURL 8071 } 8072 8073 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 8074 func (i *IssueImportResponse) GetStatus() string { 8075 if i == nil || i.Status == nil { 8076 return "" 8077 } 8078 return *i.Status 8079 } 8080 8081 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8082 func (i *IssueImportResponse) GetUpdatedAt() time.Time { 8083 if i == nil || i.UpdatedAt == nil { 8084 return time.Time{} 8085 } 8086 return *i.UpdatedAt 8087 } 8088 8089 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8090 func (i *IssueImportResponse) GetURL() string { 8091 if i == nil || i.URL == nil { 8092 return "" 8093 } 8094 return *i.URL 8095 } 8096 8097 // GetDirection returns the Direction field if it's non-nil, zero value otherwise. 8098 func (i *IssueListCommentsOptions) GetDirection() string { 8099 if i == nil || i.Direction == nil { 8100 return "" 8101 } 8102 return *i.Direction 8103 } 8104 8105 // GetSince returns the Since field if it's non-nil, zero value otherwise. 8106 func (i *IssueListCommentsOptions) GetSince() time.Time { 8107 if i == nil || i.Since == nil { 8108 return time.Time{} 8109 } 8110 return *i.Since 8111 } 8112 8113 // GetSort returns the Sort field if it's non-nil, zero value otherwise. 8114 func (i *IssueListCommentsOptions) GetSort() string { 8115 if i == nil || i.Sort == nil { 8116 return "" 8117 } 8118 return *i.Sort 8119 } 8120 8121 // GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. 8122 func (i *IssueRequest) GetAssignee() string { 8123 if i == nil || i.Assignee == nil { 8124 return "" 8125 } 8126 return *i.Assignee 8127 } 8128 8129 // GetAssignees returns the Assignees field if it's non-nil, zero value otherwise. 8130 func (i *IssueRequest) GetAssignees() []string { 8131 if i == nil || i.Assignees == nil { 8132 return nil 8133 } 8134 return *i.Assignees 8135 } 8136 8137 // GetBody returns the Body field if it's non-nil, zero value otherwise. 8138 func (i *IssueRequest) GetBody() string { 8139 if i == nil || i.Body == nil { 8140 return "" 8141 } 8142 return *i.Body 8143 } 8144 8145 // GetLabels returns the Labels field if it's non-nil, zero value otherwise. 8146 func (i *IssueRequest) GetLabels() []string { 8147 if i == nil || i.Labels == nil { 8148 return nil 8149 } 8150 return *i.Labels 8151 } 8152 8153 // GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. 8154 func (i *IssueRequest) GetMilestone() int { 8155 if i == nil || i.Milestone == nil { 8156 return 0 8157 } 8158 return *i.Milestone 8159 } 8160 8161 // GetState returns the State field if it's non-nil, zero value otherwise. 8162 func (i *IssueRequest) GetState() string { 8163 if i == nil || i.State == nil { 8164 return "" 8165 } 8166 return *i.State 8167 } 8168 8169 // GetStateReason returns the StateReason field if it's non-nil, zero value otherwise. 8170 func (i *IssueRequest) GetStateReason() string { 8171 if i == nil || i.StateReason == nil { 8172 return "" 8173 } 8174 return *i.StateReason 8175 } 8176 8177 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 8178 func (i *IssueRequest) GetTitle() string { 8179 if i == nil || i.Title == nil { 8180 return "" 8181 } 8182 return *i.Title 8183 } 8184 8185 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8186 func (i *IssuesEvent) GetAction() string { 8187 if i == nil || i.Action == nil { 8188 return "" 8189 } 8190 return *i.Action 8191 } 8192 8193 // GetAssignee returns the Assignee field. 8194 func (i *IssuesEvent) GetAssignee() *User { 8195 if i == nil { 8196 return nil 8197 } 8198 return i.Assignee 8199 } 8200 8201 // GetChanges returns the Changes field. 8202 func (i *IssuesEvent) GetChanges() *EditChange { 8203 if i == nil { 8204 return nil 8205 } 8206 return i.Changes 8207 } 8208 8209 // GetInstallation returns the Installation field. 8210 func (i *IssuesEvent) GetInstallation() *Installation { 8211 if i == nil { 8212 return nil 8213 } 8214 return i.Installation 8215 } 8216 8217 // GetIssue returns the Issue field. 8218 func (i *IssuesEvent) GetIssue() *Issue { 8219 if i == nil { 8220 return nil 8221 } 8222 return i.Issue 8223 } 8224 8225 // GetLabel returns the Label field. 8226 func (i *IssuesEvent) GetLabel() *Label { 8227 if i == nil { 8228 return nil 8229 } 8230 return i.Label 8231 } 8232 8233 // GetRepo returns the Repo field. 8234 func (i *IssuesEvent) GetRepo() *Repository { 8235 if i == nil { 8236 return nil 8237 } 8238 return i.Repo 8239 } 8240 8241 // GetSender returns the Sender field. 8242 func (i *IssuesEvent) GetSender() *User { 8243 if i == nil { 8244 return nil 8245 } 8246 return i.Sender 8247 } 8248 8249 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 8250 func (i *IssuesSearchResult) GetIncompleteResults() bool { 8251 if i == nil || i.IncompleteResults == nil { 8252 return false 8253 } 8254 return *i.IncompleteResults 8255 } 8256 8257 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 8258 func (i *IssuesSearchResult) GetTotal() int { 8259 if i == nil || i.Total == nil { 8260 return 0 8261 } 8262 return *i.Total 8263 } 8264 8265 // GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. 8266 func (i *IssueStats) GetClosedIssues() int { 8267 if i == nil || i.ClosedIssues == nil { 8268 return 0 8269 } 8270 return *i.ClosedIssues 8271 } 8272 8273 // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 8274 func (i *IssueStats) GetOpenIssues() int { 8275 if i == nil || i.OpenIssues == nil { 8276 return 0 8277 } 8278 return *i.OpenIssues 8279 } 8280 8281 // GetTotalIssues returns the TotalIssues field if it's non-nil, zero value otherwise. 8282 func (i *IssueStats) GetTotalIssues() int { 8283 if i == nil || i.TotalIssues == nil { 8284 return 0 8285 } 8286 return *i.TotalIssues 8287 } 8288 8289 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 8290 func (j *Jobs) GetTotalCount() int { 8291 if j == nil || j.TotalCount == nil { 8292 return 0 8293 } 8294 return *j.TotalCount 8295 } 8296 8297 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8298 func (k *Key) GetCreatedAt() Timestamp { 8299 if k == nil || k.CreatedAt == nil { 8300 return Timestamp{} 8301 } 8302 return *k.CreatedAt 8303 } 8304 8305 // GetID returns the ID field if it's non-nil, zero value otherwise. 8306 func (k *Key) GetID() int64 { 8307 if k == nil || k.ID == nil { 8308 return 0 8309 } 8310 return *k.ID 8311 } 8312 8313 // GetKey returns the Key field if it's non-nil, zero value otherwise. 8314 func (k *Key) GetKey() string { 8315 if k == nil || k.Key == nil { 8316 return "" 8317 } 8318 return *k.Key 8319 } 8320 8321 // GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise. 8322 func (k *Key) GetReadOnly() bool { 8323 if k == nil || k.ReadOnly == nil { 8324 return false 8325 } 8326 return *k.ReadOnly 8327 } 8328 8329 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 8330 func (k *Key) GetTitle() string { 8331 if k == nil || k.Title == nil { 8332 return "" 8333 } 8334 return *k.Title 8335 } 8336 8337 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8338 func (k *Key) GetURL() string { 8339 if k == nil || k.URL == nil { 8340 return "" 8341 } 8342 return *k.URL 8343 } 8344 8345 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 8346 func (k *Key) GetVerified() bool { 8347 if k == nil || k.Verified == nil { 8348 return false 8349 } 8350 return *k.Verified 8351 } 8352 8353 // GetColor returns the Color field if it's non-nil, zero value otherwise. 8354 func (l *Label) GetColor() string { 8355 if l == nil || l.Color == nil { 8356 return "" 8357 } 8358 return *l.Color 8359 } 8360 8361 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 8362 func (l *Label) GetDefault() bool { 8363 if l == nil || l.Default == nil { 8364 return false 8365 } 8366 return *l.Default 8367 } 8368 8369 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 8370 func (l *Label) GetDescription() string { 8371 if l == nil || l.Description == nil { 8372 return "" 8373 } 8374 return *l.Description 8375 } 8376 8377 // GetID returns the ID field if it's non-nil, zero value otherwise. 8378 func (l *Label) GetID() int64 { 8379 if l == nil || l.ID == nil { 8380 return 0 8381 } 8382 return *l.ID 8383 } 8384 8385 // GetName returns the Name field if it's non-nil, zero value otherwise. 8386 func (l *Label) GetName() string { 8387 if l == nil || l.Name == nil { 8388 return "" 8389 } 8390 return *l.Name 8391 } 8392 8393 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 8394 func (l *Label) GetNodeID() string { 8395 if l == nil || l.NodeID == nil { 8396 return "" 8397 } 8398 return *l.NodeID 8399 } 8400 8401 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8402 func (l *Label) GetURL() string { 8403 if l == nil || l.URL == nil { 8404 return "" 8405 } 8406 return *l.URL 8407 } 8408 8409 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8410 func (l *LabelEvent) GetAction() string { 8411 if l == nil || l.Action == nil { 8412 return "" 8413 } 8414 return *l.Action 8415 } 8416 8417 // GetChanges returns the Changes field. 8418 func (l *LabelEvent) GetChanges() *EditChange { 8419 if l == nil { 8420 return nil 8421 } 8422 return l.Changes 8423 } 8424 8425 // GetInstallation returns the Installation field. 8426 func (l *LabelEvent) GetInstallation() *Installation { 8427 if l == nil { 8428 return nil 8429 } 8430 return l.Installation 8431 } 8432 8433 // GetLabel returns the Label field. 8434 func (l *LabelEvent) GetLabel() *Label { 8435 if l == nil { 8436 return nil 8437 } 8438 return l.Label 8439 } 8440 8441 // GetOrg returns the Org field. 8442 func (l *LabelEvent) GetOrg() *Organization { 8443 if l == nil { 8444 return nil 8445 } 8446 return l.Org 8447 } 8448 8449 // GetRepo returns the Repo field. 8450 func (l *LabelEvent) GetRepo() *Repository { 8451 if l == nil { 8452 return nil 8453 } 8454 return l.Repo 8455 } 8456 8457 // GetSender returns the Sender field. 8458 func (l *LabelEvent) GetSender() *User { 8459 if l == nil { 8460 return nil 8461 } 8462 return l.Sender 8463 } 8464 8465 // GetColor returns the Color field if it's non-nil, zero value otherwise. 8466 func (l *LabelResult) GetColor() string { 8467 if l == nil || l.Color == nil { 8468 return "" 8469 } 8470 return *l.Color 8471 } 8472 8473 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 8474 func (l *LabelResult) GetDefault() bool { 8475 if l == nil || l.Default == nil { 8476 return false 8477 } 8478 return *l.Default 8479 } 8480 8481 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 8482 func (l *LabelResult) GetDescription() string { 8483 if l == nil || l.Description == nil { 8484 return "" 8485 } 8486 return *l.Description 8487 } 8488 8489 // GetID returns the ID field if it's non-nil, zero value otherwise. 8490 func (l *LabelResult) GetID() int64 { 8491 if l == nil || l.ID == nil { 8492 return 0 8493 } 8494 return *l.ID 8495 } 8496 8497 // GetName returns the Name field if it's non-nil, zero value otherwise. 8498 func (l *LabelResult) GetName() string { 8499 if l == nil || l.Name == nil { 8500 return "" 8501 } 8502 return *l.Name 8503 } 8504 8505 // GetScore returns the Score field. 8506 func (l *LabelResult) GetScore() *float64 { 8507 if l == nil { 8508 return nil 8509 } 8510 return l.Score 8511 } 8512 8513 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8514 func (l *LabelResult) GetURL() string { 8515 if l == nil || l.URL == nil { 8516 return "" 8517 } 8518 return *l.URL 8519 } 8520 8521 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 8522 func (l *LabelsSearchResult) GetIncompleteResults() bool { 8523 if l == nil || l.IncompleteResults == nil { 8524 return false 8525 } 8526 return *l.IncompleteResults 8527 } 8528 8529 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 8530 func (l *LabelsSearchResult) GetTotal() int { 8531 if l == nil || l.Total == nil { 8532 return 0 8533 } 8534 return *l.Total 8535 } 8536 8537 // GetOID returns the OID field if it's non-nil, zero value otherwise. 8538 func (l *LargeFile) GetOID() string { 8539 if l == nil || l.OID == nil { 8540 return "" 8541 } 8542 return *l.OID 8543 } 8544 8545 // GetPath returns the Path field if it's non-nil, zero value otherwise. 8546 func (l *LargeFile) GetPath() string { 8547 if l == nil || l.Path == nil { 8548 return "" 8549 } 8550 return *l.Path 8551 } 8552 8553 // GetRefName returns the RefName field if it's non-nil, zero value otherwise. 8554 func (l *LargeFile) GetRefName() string { 8555 if l == nil || l.RefName == nil { 8556 return "" 8557 } 8558 return *l.RefName 8559 } 8560 8561 // GetSize returns the Size field if it's non-nil, zero value otherwise. 8562 func (l *LargeFile) GetSize() int { 8563 if l == nil || l.Size == nil { 8564 return 0 8565 } 8566 return *l.Size 8567 } 8568 8569 // GetBody returns the Body field if it's non-nil, zero value otherwise. 8570 func (l *License) GetBody() string { 8571 if l == nil || l.Body == nil { 8572 return "" 8573 } 8574 return *l.Body 8575 } 8576 8577 // GetConditions returns the Conditions field if it's non-nil, zero value otherwise. 8578 func (l *License) GetConditions() []string { 8579 if l == nil || l.Conditions == nil { 8580 return nil 8581 } 8582 return *l.Conditions 8583 } 8584 8585 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 8586 func (l *License) GetDescription() string { 8587 if l == nil || l.Description == nil { 8588 return "" 8589 } 8590 return *l.Description 8591 } 8592 8593 // GetFeatured returns the Featured field if it's non-nil, zero value otherwise. 8594 func (l *License) GetFeatured() bool { 8595 if l == nil || l.Featured == nil { 8596 return false 8597 } 8598 return *l.Featured 8599 } 8600 8601 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 8602 func (l *License) GetHTMLURL() string { 8603 if l == nil || l.HTMLURL == nil { 8604 return "" 8605 } 8606 return *l.HTMLURL 8607 } 8608 8609 // GetImplementation returns the Implementation field if it's non-nil, zero value otherwise. 8610 func (l *License) GetImplementation() string { 8611 if l == nil || l.Implementation == nil { 8612 return "" 8613 } 8614 return *l.Implementation 8615 } 8616 8617 // GetKey returns the Key field if it's non-nil, zero value otherwise. 8618 func (l *License) GetKey() string { 8619 if l == nil || l.Key == nil { 8620 return "" 8621 } 8622 return *l.Key 8623 } 8624 8625 // GetLimitations returns the Limitations field if it's non-nil, zero value otherwise. 8626 func (l *License) GetLimitations() []string { 8627 if l == nil || l.Limitations == nil { 8628 return nil 8629 } 8630 return *l.Limitations 8631 } 8632 8633 // GetName returns the Name field if it's non-nil, zero value otherwise. 8634 func (l *License) GetName() string { 8635 if l == nil || l.Name == nil { 8636 return "" 8637 } 8638 return *l.Name 8639 } 8640 8641 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 8642 func (l *License) GetPermissions() []string { 8643 if l == nil || l.Permissions == nil { 8644 return nil 8645 } 8646 return *l.Permissions 8647 } 8648 8649 // GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. 8650 func (l *License) GetSPDXID() string { 8651 if l == nil || l.SPDXID == nil { 8652 return "" 8653 } 8654 return *l.SPDXID 8655 } 8656 8657 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8658 func (l *License) GetURL() string { 8659 if l == nil || l.URL == nil { 8660 return "" 8661 } 8662 return *l.URL 8663 } 8664 8665 // GetFrom returns the From field if it's non-nil, zero value otherwise. 8666 func (l *LinearHistoryRequirementEnforcementLevelChanges) GetFrom() string { 8667 if l == nil || l.From == nil { 8668 return "" 8669 } 8670 return *l.From 8671 } 8672 8673 // GetDirection returns the Direction field if it's non-nil, zero value otherwise. 8674 func (l *ListAlertsOptions) GetDirection() string { 8675 if l == nil || l.Direction == nil { 8676 return "" 8677 } 8678 return *l.Direction 8679 } 8680 8681 // GetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise. 8682 func (l *ListAlertsOptions) GetEcosystem() string { 8683 if l == nil || l.Ecosystem == nil { 8684 return "" 8685 } 8686 return *l.Ecosystem 8687 } 8688 8689 // GetPackage returns the Package field if it's non-nil, zero value otherwise. 8690 func (l *ListAlertsOptions) GetPackage() string { 8691 if l == nil || l.Package == nil { 8692 return "" 8693 } 8694 return *l.Package 8695 } 8696 8697 // GetScope returns the Scope field if it's non-nil, zero value otherwise. 8698 func (l *ListAlertsOptions) GetScope() string { 8699 if l == nil || l.Scope == nil { 8700 return "" 8701 } 8702 return *l.Scope 8703 } 8704 8705 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 8706 func (l *ListAlertsOptions) GetSeverity() string { 8707 if l == nil || l.Severity == nil { 8708 return "" 8709 } 8710 return *l.Severity 8711 } 8712 8713 // GetSort returns the Sort field if it's non-nil, zero value otherwise. 8714 func (l *ListAlertsOptions) GetSort() string { 8715 if l == nil || l.Sort == nil { 8716 return "" 8717 } 8718 return *l.Sort 8719 } 8720 8721 // GetState returns the State field if it's non-nil, zero value otherwise. 8722 func (l *ListAlertsOptions) GetState() string { 8723 if l == nil || l.State == nil { 8724 return "" 8725 } 8726 return *l.State 8727 } 8728 8729 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 8730 func (l *ListCheckRunsOptions) GetAppID() int64 { 8731 if l == nil || l.AppID == nil { 8732 return 0 8733 } 8734 return *l.AppID 8735 } 8736 8737 // GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. 8738 func (l *ListCheckRunsOptions) GetCheckName() string { 8739 if l == nil || l.CheckName == nil { 8740 return "" 8741 } 8742 return *l.CheckName 8743 } 8744 8745 // GetFilter returns the Filter field if it's non-nil, zero value otherwise. 8746 func (l *ListCheckRunsOptions) GetFilter() string { 8747 if l == nil || l.Filter == nil { 8748 return "" 8749 } 8750 return *l.Filter 8751 } 8752 8753 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 8754 func (l *ListCheckRunsOptions) GetStatus() string { 8755 if l == nil || l.Status == nil { 8756 return "" 8757 } 8758 return *l.Status 8759 } 8760 8761 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 8762 func (l *ListCheckRunsResults) GetTotal() int { 8763 if l == nil || l.Total == nil { 8764 return 0 8765 } 8766 return *l.Total 8767 } 8768 8769 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 8770 func (l *ListCheckSuiteOptions) GetAppID() int { 8771 if l == nil || l.AppID == nil { 8772 return 0 8773 } 8774 return *l.AppID 8775 } 8776 8777 // GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. 8778 func (l *ListCheckSuiteOptions) GetCheckName() string { 8779 if l == nil || l.CheckName == nil { 8780 return "" 8781 } 8782 return *l.CheckName 8783 } 8784 8785 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 8786 func (l *ListCheckSuiteResults) GetTotal() int { 8787 if l == nil || l.Total == nil { 8788 return 0 8789 } 8790 return *l.Total 8791 } 8792 8793 // GetAffiliation returns the Affiliation field if it's non-nil, zero value otherwise. 8794 func (l *ListCollaboratorOptions) GetAffiliation() string { 8795 if l == nil || l.Affiliation == nil { 8796 return "" 8797 } 8798 return *l.Affiliation 8799 } 8800 8801 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 8802 func (l *ListExternalGroupsOptions) GetDisplayName() string { 8803 if l == nil || l.DisplayName == nil { 8804 return "" 8805 } 8806 return *l.DisplayName 8807 } 8808 8809 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 8810 func (l *ListRepositories) GetTotalCount() int { 8811 if l == nil || l.TotalCount == nil { 8812 return 0 8813 } 8814 return *l.TotalCount 8815 } 8816 8817 // GetCount returns the Count field if it's non-nil, zero value otherwise. 8818 func (l *ListSCIMProvisionedIdentitiesOptions) GetCount() int { 8819 if l == nil || l.Count == nil { 8820 return 0 8821 } 8822 return *l.Count 8823 } 8824 8825 // GetFilter returns the Filter field if it's non-nil, zero value otherwise. 8826 func (l *ListSCIMProvisionedIdentitiesOptions) GetFilter() string { 8827 if l == nil || l.Filter == nil { 8828 return "" 8829 } 8830 return *l.Filter 8831 } 8832 8833 // GetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise. 8834 func (l *ListSCIMProvisionedIdentitiesOptions) GetStartIndex() int { 8835 if l == nil || l.StartIndex == nil { 8836 return 0 8837 } 8838 return *l.StartIndex 8839 } 8840 8841 // GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. 8842 func (l *Location) GetEndColumn() int { 8843 if l == nil || l.EndColumn == nil { 8844 return 0 8845 } 8846 return *l.EndColumn 8847 } 8848 8849 // GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. 8850 func (l *Location) GetEndLine() int { 8851 if l == nil || l.EndLine == nil { 8852 return 0 8853 } 8854 return *l.EndLine 8855 } 8856 8857 // GetPath returns the Path field if it's non-nil, zero value otherwise. 8858 func (l *Location) GetPath() string { 8859 if l == nil || l.Path == nil { 8860 return "" 8861 } 8862 return *l.Path 8863 } 8864 8865 // GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. 8866 func (l *Location) GetStartColumn() int { 8867 if l == nil || l.StartColumn == nil { 8868 return 0 8869 } 8870 return *l.StartColumn 8871 } 8872 8873 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 8874 func (l *Location) GetStartLine() int { 8875 if l == nil || l.StartLine == nil { 8876 return 0 8877 } 8878 return *l.StartLine 8879 } 8880 8881 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 8882 func (l *LockBranch) GetEnabled() bool { 8883 if l == nil || l.Enabled == nil { 8884 return false 8885 } 8886 return *l.Enabled 8887 } 8888 8889 // GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. 8890 func (m *MarketplacePendingChange) GetEffectiveDate() Timestamp { 8891 if m == nil || m.EffectiveDate == nil { 8892 return Timestamp{} 8893 } 8894 return *m.EffectiveDate 8895 } 8896 8897 // GetID returns the ID field if it's non-nil, zero value otherwise. 8898 func (m *MarketplacePendingChange) GetID() int64 { 8899 if m == nil || m.ID == nil { 8900 return 0 8901 } 8902 return *m.ID 8903 } 8904 8905 // GetPlan returns the Plan field. 8906 func (m *MarketplacePendingChange) GetPlan() *MarketplacePlan { 8907 if m == nil { 8908 return nil 8909 } 8910 return m.Plan 8911 } 8912 8913 // GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. 8914 func (m *MarketplacePendingChange) GetUnitCount() int { 8915 if m == nil || m.UnitCount == nil { 8916 return 0 8917 } 8918 return *m.UnitCount 8919 } 8920 8921 // GetAccountsURL returns the AccountsURL field if it's non-nil, zero value otherwise. 8922 func (m *MarketplacePlan) GetAccountsURL() string { 8923 if m == nil || m.AccountsURL == nil { 8924 return "" 8925 } 8926 return *m.AccountsURL 8927 } 8928 8929 // GetBullets returns the Bullets field if it's non-nil, zero value otherwise. 8930 func (m *MarketplacePlan) GetBullets() []string { 8931 if m == nil || m.Bullets == nil { 8932 return nil 8933 } 8934 return *m.Bullets 8935 } 8936 8937 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 8938 func (m *MarketplacePlan) GetDescription() string { 8939 if m == nil || m.Description == nil { 8940 return "" 8941 } 8942 return *m.Description 8943 } 8944 8945 // GetHasFreeTrial returns the HasFreeTrial field if it's non-nil, zero value otherwise. 8946 func (m *MarketplacePlan) GetHasFreeTrial() bool { 8947 if m == nil || m.HasFreeTrial == nil { 8948 return false 8949 } 8950 return *m.HasFreeTrial 8951 } 8952 8953 // GetID returns the ID field if it's non-nil, zero value otherwise. 8954 func (m *MarketplacePlan) GetID() int64 { 8955 if m == nil || m.ID == nil { 8956 return 0 8957 } 8958 return *m.ID 8959 } 8960 8961 // GetMonthlyPriceInCents returns the MonthlyPriceInCents field if it's non-nil, zero value otherwise. 8962 func (m *MarketplacePlan) GetMonthlyPriceInCents() int { 8963 if m == nil || m.MonthlyPriceInCents == nil { 8964 return 0 8965 } 8966 return *m.MonthlyPriceInCents 8967 } 8968 8969 // GetName returns the Name field if it's non-nil, zero value otherwise. 8970 func (m *MarketplacePlan) GetName() string { 8971 if m == nil || m.Name == nil { 8972 return "" 8973 } 8974 return *m.Name 8975 } 8976 8977 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 8978 func (m *MarketplacePlan) GetNumber() int { 8979 if m == nil || m.Number == nil { 8980 return 0 8981 } 8982 return *m.Number 8983 } 8984 8985 // GetPriceModel returns the PriceModel field if it's non-nil, zero value otherwise. 8986 func (m *MarketplacePlan) GetPriceModel() string { 8987 if m == nil || m.PriceModel == nil { 8988 return "" 8989 } 8990 return *m.PriceModel 8991 } 8992 8993 // GetState returns the State field if it's non-nil, zero value otherwise. 8994 func (m *MarketplacePlan) GetState() string { 8995 if m == nil || m.State == nil { 8996 return "" 8997 } 8998 return *m.State 8999 } 9000 9001 // GetUnitName returns the UnitName field if it's non-nil, zero value otherwise. 9002 func (m *MarketplacePlan) GetUnitName() string { 9003 if m == nil || m.UnitName == nil { 9004 return "" 9005 } 9006 return *m.UnitName 9007 } 9008 9009 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9010 func (m *MarketplacePlan) GetURL() string { 9011 if m == nil || m.URL == nil { 9012 return "" 9013 } 9014 return *m.URL 9015 } 9016 9017 // GetYearlyPriceInCents returns the YearlyPriceInCents field if it's non-nil, zero value otherwise. 9018 func (m *MarketplacePlan) GetYearlyPriceInCents() int { 9019 if m == nil || m.YearlyPriceInCents == nil { 9020 return 0 9021 } 9022 return *m.YearlyPriceInCents 9023 } 9024 9025 // GetID returns the ID field if it's non-nil, zero value otherwise. 9026 func (m *MarketplacePlanAccount) GetID() int64 { 9027 if m == nil || m.ID == nil { 9028 return 0 9029 } 9030 return *m.ID 9031 } 9032 9033 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 9034 func (m *MarketplacePlanAccount) GetLogin() string { 9035 if m == nil || m.Login == nil { 9036 return "" 9037 } 9038 return *m.Login 9039 } 9040 9041 // GetMarketplacePendingChange returns the MarketplacePendingChange field. 9042 func (m *MarketplacePlanAccount) GetMarketplacePendingChange() *MarketplacePendingChange { 9043 if m == nil { 9044 return nil 9045 } 9046 return m.MarketplacePendingChange 9047 } 9048 9049 // GetMarketplacePurchase returns the MarketplacePurchase field. 9050 func (m *MarketplacePlanAccount) GetMarketplacePurchase() *MarketplacePurchase { 9051 if m == nil { 9052 return nil 9053 } 9054 return m.MarketplacePurchase 9055 } 9056 9057 // GetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise. 9058 func (m *MarketplacePlanAccount) GetOrganizationBillingEmail() string { 9059 if m == nil || m.OrganizationBillingEmail == nil { 9060 return "" 9061 } 9062 return *m.OrganizationBillingEmail 9063 } 9064 9065 // GetType returns the Type field if it's non-nil, zero value otherwise. 9066 func (m *MarketplacePlanAccount) GetType() string { 9067 if m == nil || m.Type == nil { 9068 return "" 9069 } 9070 return *m.Type 9071 } 9072 9073 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9074 func (m *MarketplacePlanAccount) GetURL() string { 9075 if m == nil || m.URL == nil { 9076 return "" 9077 } 9078 return *m.URL 9079 } 9080 9081 // GetBillingCycle returns the BillingCycle field if it's non-nil, zero value otherwise. 9082 func (m *MarketplacePurchase) GetBillingCycle() string { 9083 if m == nil || m.BillingCycle == nil { 9084 return "" 9085 } 9086 return *m.BillingCycle 9087 } 9088 9089 // GetFreeTrialEndsOn returns the FreeTrialEndsOn field if it's non-nil, zero value otherwise. 9090 func (m *MarketplacePurchase) GetFreeTrialEndsOn() Timestamp { 9091 if m == nil || m.FreeTrialEndsOn == nil { 9092 return Timestamp{} 9093 } 9094 return *m.FreeTrialEndsOn 9095 } 9096 9097 // GetNextBillingDate returns the NextBillingDate field if it's non-nil, zero value otherwise. 9098 func (m *MarketplacePurchase) GetNextBillingDate() Timestamp { 9099 if m == nil || m.NextBillingDate == nil { 9100 return Timestamp{} 9101 } 9102 return *m.NextBillingDate 9103 } 9104 9105 // GetOnFreeTrial returns the OnFreeTrial field if it's non-nil, zero value otherwise. 9106 func (m *MarketplacePurchase) GetOnFreeTrial() bool { 9107 if m == nil || m.OnFreeTrial == nil { 9108 return false 9109 } 9110 return *m.OnFreeTrial 9111 } 9112 9113 // GetPlan returns the Plan field. 9114 func (m *MarketplacePurchase) GetPlan() *MarketplacePlan { 9115 if m == nil { 9116 return nil 9117 } 9118 return m.Plan 9119 } 9120 9121 // GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. 9122 func (m *MarketplacePurchase) GetUnitCount() int { 9123 if m == nil || m.UnitCount == nil { 9124 return 0 9125 } 9126 return *m.UnitCount 9127 } 9128 9129 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9130 func (m *MarketplacePurchase) GetUpdatedAt() Timestamp { 9131 if m == nil || m.UpdatedAt == nil { 9132 return Timestamp{} 9133 } 9134 return *m.UpdatedAt 9135 } 9136 9137 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9138 func (m *MarketplacePurchaseEvent) GetAction() string { 9139 if m == nil || m.Action == nil { 9140 return "" 9141 } 9142 return *m.Action 9143 } 9144 9145 // GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. 9146 func (m *MarketplacePurchaseEvent) GetEffectiveDate() Timestamp { 9147 if m == nil || m.EffectiveDate == nil { 9148 return Timestamp{} 9149 } 9150 return *m.EffectiveDate 9151 } 9152 9153 // GetInstallation returns the Installation field. 9154 func (m *MarketplacePurchaseEvent) GetInstallation() *Installation { 9155 if m == nil { 9156 return nil 9157 } 9158 return m.Installation 9159 } 9160 9161 // GetMarketplacePurchase returns the MarketplacePurchase field. 9162 func (m *MarketplacePurchaseEvent) GetMarketplacePurchase() *MarketplacePurchase { 9163 if m == nil { 9164 return nil 9165 } 9166 return m.MarketplacePurchase 9167 } 9168 9169 // GetPreviousMarketplacePurchase returns the PreviousMarketplacePurchase field. 9170 func (m *MarketplacePurchaseEvent) GetPreviousMarketplacePurchase() *MarketplacePurchase { 9171 if m == nil { 9172 return nil 9173 } 9174 return m.PreviousMarketplacePurchase 9175 } 9176 9177 // GetSender returns the Sender field. 9178 func (m *MarketplacePurchaseEvent) GetSender() *User { 9179 if m == nil { 9180 return nil 9181 } 9182 return m.Sender 9183 } 9184 9185 // GetText returns the Text field if it's non-nil, zero value otherwise. 9186 func (m *Match) GetText() string { 9187 if m == nil || m.Text == nil { 9188 return "" 9189 } 9190 return *m.Text 9191 } 9192 9193 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9194 func (m *MemberEvent) GetAction() string { 9195 if m == nil || m.Action == nil { 9196 return "" 9197 } 9198 return *m.Action 9199 } 9200 9201 // GetInstallation returns the Installation field. 9202 func (m *MemberEvent) GetInstallation() *Installation { 9203 if m == nil { 9204 return nil 9205 } 9206 return m.Installation 9207 } 9208 9209 // GetMember returns the Member field. 9210 func (m *MemberEvent) GetMember() *User { 9211 if m == nil { 9212 return nil 9213 } 9214 return m.Member 9215 } 9216 9217 // GetRepo returns the Repo field. 9218 func (m *MemberEvent) GetRepo() *Repository { 9219 if m == nil { 9220 return nil 9221 } 9222 return m.Repo 9223 } 9224 9225 // GetSender returns the Sender field. 9226 func (m *MemberEvent) GetSender() *User { 9227 if m == nil { 9228 return nil 9229 } 9230 return m.Sender 9231 } 9232 9233 // GetOrganization returns the Organization field. 9234 func (m *Membership) GetOrganization() *Organization { 9235 if m == nil { 9236 return nil 9237 } 9238 return m.Organization 9239 } 9240 9241 // GetOrganizationURL returns the OrganizationURL field if it's non-nil, zero value otherwise. 9242 func (m *Membership) GetOrganizationURL() string { 9243 if m == nil || m.OrganizationURL == nil { 9244 return "" 9245 } 9246 return *m.OrganizationURL 9247 } 9248 9249 // GetRole returns the Role field if it's non-nil, zero value otherwise. 9250 func (m *Membership) GetRole() string { 9251 if m == nil || m.Role == nil { 9252 return "" 9253 } 9254 return *m.Role 9255 } 9256 9257 // GetState returns the State field if it's non-nil, zero value otherwise. 9258 func (m *Membership) GetState() string { 9259 if m == nil || m.State == nil { 9260 return "" 9261 } 9262 return *m.State 9263 } 9264 9265 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9266 func (m *Membership) GetURL() string { 9267 if m == nil || m.URL == nil { 9268 return "" 9269 } 9270 return *m.URL 9271 } 9272 9273 // GetUser returns the User field. 9274 func (m *Membership) GetUser() *User { 9275 if m == nil { 9276 return nil 9277 } 9278 return m.User 9279 } 9280 9281 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9282 func (m *MembershipEvent) GetAction() string { 9283 if m == nil || m.Action == nil { 9284 return "" 9285 } 9286 return *m.Action 9287 } 9288 9289 // GetInstallation returns the Installation field. 9290 func (m *MembershipEvent) GetInstallation() *Installation { 9291 if m == nil { 9292 return nil 9293 } 9294 return m.Installation 9295 } 9296 9297 // GetMember returns the Member field. 9298 func (m *MembershipEvent) GetMember() *User { 9299 if m == nil { 9300 return nil 9301 } 9302 return m.Member 9303 } 9304 9305 // GetOrg returns the Org field. 9306 func (m *MembershipEvent) GetOrg() *Organization { 9307 if m == nil { 9308 return nil 9309 } 9310 return m.Org 9311 } 9312 9313 // GetScope returns the Scope field if it's non-nil, zero value otherwise. 9314 func (m *MembershipEvent) GetScope() string { 9315 if m == nil || m.Scope == nil { 9316 return "" 9317 } 9318 return *m.Scope 9319 } 9320 9321 // GetSender returns the Sender field. 9322 func (m *MembershipEvent) GetSender() *User { 9323 if m == nil { 9324 return nil 9325 } 9326 return m.Sender 9327 } 9328 9329 // GetTeam returns the Team field. 9330 func (m *MembershipEvent) GetTeam() *Team { 9331 if m == nil { 9332 return nil 9333 } 9334 return m.Team 9335 } 9336 9337 // GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise. 9338 func (m *MergeGroup) GetBaseRef() string { 9339 if m == nil || m.BaseRef == nil { 9340 return "" 9341 } 9342 return *m.BaseRef 9343 } 9344 9345 // GetBaseSHA returns the BaseSHA field if it's non-nil, zero value otherwise. 9346 func (m *MergeGroup) GetBaseSHA() string { 9347 if m == nil || m.BaseSHA == nil { 9348 return "" 9349 } 9350 return *m.BaseSHA 9351 } 9352 9353 // GetHeadCommit returns the HeadCommit field. 9354 func (m *MergeGroup) GetHeadCommit() *Commit { 9355 if m == nil { 9356 return nil 9357 } 9358 return m.HeadCommit 9359 } 9360 9361 // GetHeadRef returns the HeadRef field if it's non-nil, zero value otherwise. 9362 func (m *MergeGroup) GetHeadRef() string { 9363 if m == nil || m.HeadRef == nil { 9364 return "" 9365 } 9366 return *m.HeadRef 9367 } 9368 9369 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 9370 func (m *MergeGroup) GetHeadSHA() string { 9371 if m == nil || m.HeadSHA == nil { 9372 return "" 9373 } 9374 return *m.HeadSHA 9375 } 9376 9377 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9378 func (m *MergeGroupEvent) GetAction() string { 9379 if m == nil || m.Action == nil { 9380 return "" 9381 } 9382 return *m.Action 9383 } 9384 9385 // GetInstallation returns the Installation field. 9386 func (m *MergeGroupEvent) GetInstallation() *Installation { 9387 if m == nil { 9388 return nil 9389 } 9390 return m.Installation 9391 } 9392 9393 // GetMergeGroup returns the MergeGroup field. 9394 func (m *MergeGroupEvent) GetMergeGroup() *MergeGroup { 9395 if m == nil { 9396 return nil 9397 } 9398 return m.MergeGroup 9399 } 9400 9401 // GetOrg returns the Org field. 9402 func (m *MergeGroupEvent) GetOrg() *Organization { 9403 if m == nil { 9404 return nil 9405 } 9406 return m.Org 9407 } 9408 9409 // GetRepo returns the Repo field. 9410 func (m *MergeGroupEvent) GetRepo() *Repository { 9411 if m == nil { 9412 return nil 9413 } 9414 return m.Repo 9415 } 9416 9417 // GetSender returns the Sender field. 9418 func (m *MergeGroupEvent) GetSender() *User { 9419 if m == nil { 9420 return nil 9421 } 9422 return m.Sender 9423 } 9424 9425 // GetText returns the Text field if it's non-nil, zero value otherwise. 9426 func (m *Message) GetText() string { 9427 if m == nil || m.Text == nil { 9428 return "" 9429 } 9430 return *m.Text 9431 } 9432 9433 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9434 func (m *MetaEvent) GetAction() string { 9435 if m == nil || m.Action == nil { 9436 return "" 9437 } 9438 return *m.Action 9439 } 9440 9441 // GetHook returns the Hook field. 9442 func (m *MetaEvent) GetHook() *Hook { 9443 if m == nil { 9444 return nil 9445 } 9446 return m.Hook 9447 } 9448 9449 // GetHookID returns the HookID field if it's non-nil, zero value otherwise. 9450 func (m *MetaEvent) GetHookID() int64 { 9451 if m == nil || m.HookID == nil { 9452 return 0 9453 } 9454 return *m.HookID 9455 } 9456 9457 // GetInstallation returns the Installation field. 9458 func (m *MetaEvent) GetInstallation() *Installation { 9459 if m == nil { 9460 return nil 9461 } 9462 return m.Installation 9463 } 9464 9465 // GetOrg returns the Org field. 9466 func (m *MetaEvent) GetOrg() *Organization { 9467 if m == nil { 9468 return nil 9469 } 9470 return m.Org 9471 } 9472 9473 // GetRepo returns the Repo field. 9474 func (m *MetaEvent) GetRepo() *Repository { 9475 if m == nil { 9476 return nil 9477 } 9478 return m.Repo 9479 } 9480 9481 // GetSender returns the Sender field. 9482 func (m *MetaEvent) GetSender() *User { 9483 if m == nil { 9484 return nil 9485 } 9486 return m.Sender 9487 } 9488 9489 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9490 func (m *Metric) GetHTMLURL() string { 9491 if m == nil || m.HTMLURL == nil { 9492 return "" 9493 } 9494 return *m.HTMLURL 9495 } 9496 9497 // GetKey returns the Key field if it's non-nil, zero value otherwise. 9498 func (m *Metric) GetKey() string { 9499 if m == nil || m.Key == nil { 9500 return "" 9501 } 9502 return *m.Key 9503 } 9504 9505 // GetName returns the Name field if it's non-nil, zero value otherwise. 9506 func (m *Metric) GetName() string { 9507 if m == nil || m.Name == nil { 9508 return "" 9509 } 9510 return *m.Name 9511 } 9512 9513 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9514 func (m *Metric) GetNodeID() string { 9515 if m == nil || m.NodeID == nil { 9516 return "" 9517 } 9518 return *m.NodeID 9519 } 9520 9521 // GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. 9522 func (m *Metric) GetSPDXID() string { 9523 if m == nil || m.SPDXID == nil { 9524 return "" 9525 } 9526 return *m.SPDXID 9527 } 9528 9529 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9530 func (m *Metric) GetURL() string { 9531 if m == nil || m.URL == nil { 9532 return "" 9533 } 9534 return *m.URL 9535 } 9536 9537 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9538 func (m *Migration) GetCreatedAt() string { 9539 if m == nil || m.CreatedAt == nil { 9540 return "" 9541 } 9542 return *m.CreatedAt 9543 } 9544 9545 // GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 9546 func (m *Migration) GetExcludeAttachments() bool { 9547 if m == nil || m.ExcludeAttachments == nil { 9548 return false 9549 } 9550 return *m.ExcludeAttachments 9551 } 9552 9553 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 9554 func (m *Migration) GetGUID() string { 9555 if m == nil || m.GUID == nil { 9556 return "" 9557 } 9558 return *m.GUID 9559 } 9560 9561 // GetID returns the ID field if it's non-nil, zero value otherwise. 9562 func (m *Migration) GetID() int64 { 9563 if m == nil || m.ID == nil { 9564 return 0 9565 } 9566 return *m.ID 9567 } 9568 9569 // GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 9570 func (m *Migration) GetLockRepositories() bool { 9571 if m == nil || m.LockRepositories == nil { 9572 return false 9573 } 9574 return *m.LockRepositories 9575 } 9576 9577 // GetState returns the State field if it's non-nil, zero value otherwise. 9578 func (m *Migration) GetState() string { 9579 if m == nil || m.State == nil { 9580 return "" 9581 } 9582 return *m.State 9583 } 9584 9585 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9586 func (m *Migration) GetUpdatedAt() string { 9587 if m == nil || m.UpdatedAt == nil { 9588 return "" 9589 } 9590 return *m.UpdatedAt 9591 } 9592 9593 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9594 func (m *Migration) GetURL() string { 9595 if m == nil || m.URL == nil { 9596 return "" 9597 } 9598 return *m.URL 9599 } 9600 9601 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 9602 func (m *Milestone) GetClosedAt() time.Time { 9603 if m == nil || m.ClosedAt == nil { 9604 return time.Time{} 9605 } 9606 return *m.ClosedAt 9607 } 9608 9609 // GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. 9610 func (m *Milestone) GetClosedIssues() int { 9611 if m == nil || m.ClosedIssues == nil { 9612 return 0 9613 } 9614 return *m.ClosedIssues 9615 } 9616 9617 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9618 func (m *Milestone) GetCreatedAt() time.Time { 9619 if m == nil || m.CreatedAt == nil { 9620 return time.Time{} 9621 } 9622 return *m.CreatedAt 9623 } 9624 9625 // GetCreator returns the Creator field. 9626 func (m *Milestone) GetCreator() *User { 9627 if m == nil { 9628 return nil 9629 } 9630 return m.Creator 9631 } 9632 9633 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 9634 func (m *Milestone) GetDescription() string { 9635 if m == nil || m.Description == nil { 9636 return "" 9637 } 9638 return *m.Description 9639 } 9640 9641 // GetDueOn returns the DueOn field if it's non-nil, zero value otherwise. 9642 func (m *Milestone) GetDueOn() time.Time { 9643 if m == nil || m.DueOn == nil { 9644 return time.Time{} 9645 } 9646 return *m.DueOn 9647 } 9648 9649 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9650 func (m *Milestone) GetHTMLURL() string { 9651 if m == nil || m.HTMLURL == nil { 9652 return "" 9653 } 9654 return *m.HTMLURL 9655 } 9656 9657 // GetID returns the ID field if it's non-nil, zero value otherwise. 9658 func (m *Milestone) GetID() int64 { 9659 if m == nil || m.ID == nil { 9660 return 0 9661 } 9662 return *m.ID 9663 } 9664 9665 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 9666 func (m *Milestone) GetLabelsURL() string { 9667 if m == nil || m.LabelsURL == nil { 9668 return "" 9669 } 9670 return *m.LabelsURL 9671 } 9672 9673 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9674 func (m *Milestone) GetNodeID() string { 9675 if m == nil || m.NodeID == nil { 9676 return "" 9677 } 9678 return *m.NodeID 9679 } 9680 9681 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 9682 func (m *Milestone) GetNumber() int { 9683 if m == nil || m.Number == nil { 9684 return 0 9685 } 9686 return *m.Number 9687 } 9688 9689 // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 9690 func (m *Milestone) GetOpenIssues() int { 9691 if m == nil || m.OpenIssues == nil { 9692 return 0 9693 } 9694 return *m.OpenIssues 9695 } 9696 9697 // GetState returns the State field if it's non-nil, zero value otherwise. 9698 func (m *Milestone) GetState() string { 9699 if m == nil || m.State == nil { 9700 return "" 9701 } 9702 return *m.State 9703 } 9704 9705 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 9706 func (m *Milestone) GetTitle() string { 9707 if m == nil || m.Title == nil { 9708 return "" 9709 } 9710 return *m.Title 9711 } 9712 9713 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9714 func (m *Milestone) GetUpdatedAt() time.Time { 9715 if m == nil || m.UpdatedAt == nil { 9716 return time.Time{} 9717 } 9718 return *m.UpdatedAt 9719 } 9720 9721 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9722 func (m *Milestone) GetURL() string { 9723 if m == nil || m.URL == nil { 9724 return "" 9725 } 9726 return *m.URL 9727 } 9728 9729 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9730 func (m *MilestoneEvent) GetAction() string { 9731 if m == nil || m.Action == nil { 9732 return "" 9733 } 9734 return *m.Action 9735 } 9736 9737 // GetChanges returns the Changes field. 9738 func (m *MilestoneEvent) GetChanges() *EditChange { 9739 if m == nil { 9740 return nil 9741 } 9742 return m.Changes 9743 } 9744 9745 // GetInstallation returns the Installation field. 9746 func (m *MilestoneEvent) GetInstallation() *Installation { 9747 if m == nil { 9748 return nil 9749 } 9750 return m.Installation 9751 } 9752 9753 // GetMilestone returns the Milestone field. 9754 func (m *MilestoneEvent) GetMilestone() *Milestone { 9755 if m == nil { 9756 return nil 9757 } 9758 return m.Milestone 9759 } 9760 9761 // GetOrg returns the Org field. 9762 func (m *MilestoneEvent) GetOrg() *Organization { 9763 if m == nil { 9764 return nil 9765 } 9766 return m.Org 9767 } 9768 9769 // GetRepo returns the Repo field. 9770 func (m *MilestoneEvent) GetRepo() *Repository { 9771 if m == nil { 9772 return nil 9773 } 9774 return m.Repo 9775 } 9776 9777 // GetSender returns the Sender field. 9778 func (m *MilestoneEvent) GetSender() *User { 9779 if m == nil { 9780 return nil 9781 } 9782 return m.Sender 9783 } 9784 9785 // GetClosedMilestones returns the ClosedMilestones field if it's non-nil, zero value otherwise. 9786 func (m *MilestoneStats) GetClosedMilestones() int { 9787 if m == nil || m.ClosedMilestones == nil { 9788 return 0 9789 } 9790 return *m.ClosedMilestones 9791 } 9792 9793 // GetOpenMilestones returns the OpenMilestones field if it's non-nil, zero value otherwise. 9794 func (m *MilestoneStats) GetOpenMilestones() int { 9795 if m == nil || m.OpenMilestones == nil { 9796 return 0 9797 } 9798 return *m.OpenMilestones 9799 } 9800 9801 // GetTotalMilestones returns the TotalMilestones field if it's non-nil, zero value otherwise. 9802 func (m *MilestoneStats) GetTotalMilestones() int { 9803 if m == nil || m.TotalMilestones == nil { 9804 return 0 9805 } 9806 return *m.TotalMilestones 9807 } 9808 9809 // GetAnalysisKey returns the AnalysisKey field if it's non-nil, zero value otherwise. 9810 func (m *MostRecentInstance) GetAnalysisKey() string { 9811 if m == nil || m.AnalysisKey == nil { 9812 return "" 9813 } 9814 return *m.AnalysisKey 9815 } 9816 9817 // GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. 9818 func (m *MostRecentInstance) GetCommitSHA() string { 9819 if m == nil || m.CommitSHA == nil { 9820 return "" 9821 } 9822 return *m.CommitSHA 9823 } 9824 9825 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 9826 func (m *MostRecentInstance) GetEnvironment() string { 9827 if m == nil || m.Environment == nil { 9828 return "" 9829 } 9830 return *m.Environment 9831 } 9832 9833 // GetLocation returns the Location field. 9834 func (m *MostRecentInstance) GetLocation() *Location { 9835 if m == nil { 9836 return nil 9837 } 9838 return m.Location 9839 } 9840 9841 // GetMessage returns the Message field. 9842 func (m *MostRecentInstance) GetMessage() *Message { 9843 if m == nil { 9844 return nil 9845 } 9846 return m.Message 9847 } 9848 9849 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 9850 func (m *MostRecentInstance) GetRef() string { 9851 if m == nil || m.Ref == nil { 9852 return "" 9853 } 9854 return *m.Ref 9855 } 9856 9857 // GetState returns the State field if it's non-nil, zero value otherwise. 9858 func (m *MostRecentInstance) GetState() string { 9859 if m == nil || m.State == nil { 9860 return "" 9861 } 9862 return *m.State 9863 } 9864 9865 // GetBase returns the Base field if it's non-nil, zero value otherwise. 9866 func (n *NewPullRequest) GetBase() string { 9867 if n == nil || n.Base == nil { 9868 return "" 9869 } 9870 return *n.Base 9871 } 9872 9873 // GetBody returns the Body field if it's non-nil, zero value otherwise. 9874 func (n *NewPullRequest) GetBody() string { 9875 if n == nil || n.Body == nil { 9876 return "" 9877 } 9878 return *n.Body 9879 } 9880 9881 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 9882 func (n *NewPullRequest) GetDraft() bool { 9883 if n == nil || n.Draft == nil { 9884 return false 9885 } 9886 return *n.Draft 9887 } 9888 9889 // GetHead returns the Head field if it's non-nil, zero value otherwise. 9890 func (n *NewPullRequest) GetHead() string { 9891 if n == nil || n.Head == nil { 9892 return "" 9893 } 9894 return *n.Head 9895 } 9896 9897 // GetIssue returns the Issue field if it's non-nil, zero value otherwise. 9898 func (n *NewPullRequest) GetIssue() int { 9899 if n == nil || n.Issue == nil { 9900 return 0 9901 } 9902 return *n.Issue 9903 } 9904 9905 // GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 9906 func (n *NewPullRequest) GetMaintainerCanModify() bool { 9907 if n == nil || n.MaintainerCanModify == nil { 9908 return false 9909 } 9910 return *n.MaintainerCanModify 9911 } 9912 9913 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 9914 func (n *NewPullRequest) GetTitle() string { 9915 if n == nil || n.Title == nil { 9916 return "" 9917 } 9918 return *n.Title 9919 } 9920 9921 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 9922 func (n *NewTeam) GetDescription() string { 9923 if n == nil || n.Description == nil { 9924 return "" 9925 } 9926 return *n.Description 9927 } 9928 9929 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 9930 func (n *NewTeam) GetLDAPDN() string { 9931 if n == nil || n.LDAPDN == nil { 9932 return "" 9933 } 9934 return *n.LDAPDN 9935 } 9936 9937 // GetParentTeamID returns the ParentTeamID field if it's non-nil, zero value otherwise. 9938 func (n *NewTeam) GetParentTeamID() int64 { 9939 if n == nil || n.ParentTeamID == nil { 9940 return 0 9941 } 9942 return *n.ParentTeamID 9943 } 9944 9945 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 9946 func (n *NewTeam) GetPermission() string { 9947 if n == nil || n.Permission == nil { 9948 return "" 9949 } 9950 return *n.Permission 9951 } 9952 9953 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 9954 func (n *NewTeam) GetPrivacy() string { 9955 if n == nil || n.Privacy == nil { 9956 return "" 9957 } 9958 return *n.Privacy 9959 } 9960 9961 // GetID returns the ID field if it's non-nil, zero value otherwise. 9962 func (n *Notification) GetID() string { 9963 if n == nil || n.ID == nil { 9964 return "" 9965 } 9966 return *n.ID 9967 } 9968 9969 // GetLastReadAt returns the LastReadAt field if it's non-nil, zero value otherwise. 9970 func (n *Notification) GetLastReadAt() time.Time { 9971 if n == nil || n.LastReadAt == nil { 9972 return time.Time{} 9973 } 9974 return *n.LastReadAt 9975 } 9976 9977 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 9978 func (n *Notification) GetReason() string { 9979 if n == nil || n.Reason == nil { 9980 return "" 9981 } 9982 return *n.Reason 9983 } 9984 9985 // GetRepository returns the Repository field. 9986 func (n *Notification) GetRepository() *Repository { 9987 if n == nil { 9988 return nil 9989 } 9990 return n.Repository 9991 } 9992 9993 // GetSubject returns the Subject field. 9994 func (n *Notification) GetSubject() *NotificationSubject { 9995 if n == nil { 9996 return nil 9997 } 9998 return n.Subject 9999 } 10000 10001 // GetUnread returns the Unread field if it's non-nil, zero value otherwise. 10002 func (n *Notification) GetUnread() bool { 10003 if n == nil || n.Unread == nil { 10004 return false 10005 } 10006 return *n.Unread 10007 } 10008 10009 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10010 func (n *Notification) GetUpdatedAt() time.Time { 10011 if n == nil || n.UpdatedAt == nil { 10012 return time.Time{} 10013 } 10014 return *n.UpdatedAt 10015 } 10016 10017 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10018 func (n *Notification) GetURL() string { 10019 if n == nil || n.URL == nil { 10020 return "" 10021 } 10022 return *n.URL 10023 } 10024 10025 // GetLatestCommentURL returns the LatestCommentURL field if it's non-nil, zero value otherwise. 10026 func (n *NotificationSubject) GetLatestCommentURL() string { 10027 if n == nil || n.LatestCommentURL == nil { 10028 return "" 10029 } 10030 return *n.LatestCommentURL 10031 } 10032 10033 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 10034 func (n *NotificationSubject) GetTitle() string { 10035 if n == nil || n.Title == nil { 10036 return "" 10037 } 10038 return *n.Title 10039 } 10040 10041 // GetType returns the Type field if it's non-nil, zero value otherwise. 10042 func (n *NotificationSubject) GetType() string { 10043 if n == nil || n.Type == nil { 10044 return "" 10045 } 10046 return *n.Type 10047 } 10048 10049 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10050 func (n *NotificationSubject) GetURL() string { 10051 if n == nil || n.URL == nil { 10052 return "" 10053 } 10054 return *n.URL 10055 } 10056 10057 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 10058 func (o *OAuthAPP) GetClientID() string { 10059 if o == nil || o.ClientID == nil { 10060 return "" 10061 } 10062 return *o.ClientID 10063 } 10064 10065 // GetName returns the Name field if it's non-nil, zero value otherwise. 10066 func (o *OAuthAPP) GetName() string { 10067 if o == nil || o.Name == nil { 10068 return "" 10069 } 10070 return *o.Name 10071 } 10072 10073 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10074 func (o *OAuthAPP) GetURL() string { 10075 if o == nil || o.URL == nil { 10076 return "" 10077 } 10078 return *o.URL 10079 } 10080 10081 // GetUseDefault returns the UseDefault field if it's non-nil, zero value otherwise. 10082 func (o *OIDCSubjectClaimCustomTemplate) GetUseDefault() bool { 10083 if o == nil || o.UseDefault == nil { 10084 return false 10085 } 10086 return *o.UseDefault 10087 } 10088 10089 // GetAdvancedSecurityEnabledForNewRepos returns the AdvancedSecurityEnabledForNewRepos field if it's non-nil, zero value otherwise. 10090 func (o *Organization) GetAdvancedSecurityEnabledForNewRepos() bool { 10091 if o == nil || o.AdvancedSecurityEnabledForNewRepos == nil { 10092 return false 10093 } 10094 return *o.AdvancedSecurityEnabledForNewRepos 10095 } 10096 10097 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 10098 func (o *Organization) GetAvatarURL() string { 10099 if o == nil || o.AvatarURL == nil { 10100 return "" 10101 } 10102 return *o.AvatarURL 10103 } 10104 10105 // GetBillingEmail returns the BillingEmail field if it's non-nil, zero value otherwise. 10106 func (o *Organization) GetBillingEmail() string { 10107 if o == nil || o.BillingEmail == nil { 10108 return "" 10109 } 10110 return *o.BillingEmail 10111 } 10112 10113 // GetBlog returns the Blog field if it's non-nil, zero value otherwise. 10114 func (o *Organization) GetBlog() string { 10115 if o == nil || o.Blog == nil { 10116 return "" 10117 } 10118 return *o.Blog 10119 } 10120 10121 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 10122 func (o *Organization) GetCollaborators() int { 10123 if o == nil || o.Collaborators == nil { 10124 return 0 10125 } 10126 return *o.Collaborators 10127 } 10128 10129 // GetCompany returns the Company field if it's non-nil, zero value otherwise. 10130 func (o *Organization) GetCompany() string { 10131 if o == nil || o.Company == nil { 10132 return "" 10133 } 10134 return *o.Company 10135 } 10136 10137 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10138 func (o *Organization) GetCreatedAt() time.Time { 10139 if o == nil || o.CreatedAt == nil { 10140 return time.Time{} 10141 } 10142 return *o.CreatedAt 10143 } 10144 10145 // GetDefaultRepoPermission returns the DefaultRepoPermission field if it's non-nil, zero value otherwise. 10146 func (o *Organization) GetDefaultRepoPermission() string { 10147 if o == nil || o.DefaultRepoPermission == nil { 10148 return "" 10149 } 10150 return *o.DefaultRepoPermission 10151 } 10152 10153 // GetDefaultRepoSettings returns the DefaultRepoSettings field if it's non-nil, zero value otherwise. 10154 func (o *Organization) GetDefaultRepoSettings() string { 10155 if o == nil || o.DefaultRepoSettings == nil { 10156 return "" 10157 } 10158 return *o.DefaultRepoSettings 10159 } 10160 10161 // GetDependabotAlertsEnabledForNewRepos returns the DependabotAlertsEnabledForNewRepos field if it's non-nil, zero value otherwise. 10162 func (o *Organization) GetDependabotAlertsEnabledForNewRepos() bool { 10163 if o == nil || o.DependabotAlertsEnabledForNewRepos == nil { 10164 return false 10165 } 10166 return *o.DependabotAlertsEnabledForNewRepos 10167 } 10168 10169 // GetDependabotSecurityUpdatesEnabledForNewRepos returns the DependabotSecurityUpdatesEnabledForNewRepos field if it's non-nil, zero value otherwise. 10170 func (o *Organization) GetDependabotSecurityUpdatesEnabledForNewRepos() bool { 10171 if o == nil || o.DependabotSecurityUpdatesEnabledForNewRepos == nil { 10172 return false 10173 } 10174 return *o.DependabotSecurityUpdatesEnabledForNewRepos 10175 } 10176 10177 // GetDependencyGraphEnabledForNewRepos returns the DependencyGraphEnabledForNewRepos field if it's non-nil, zero value otherwise. 10178 func (o *Organization) GetDependencyGraphEnabledForNewRepos() bool { 10179 if o == nil || o.DependencyGraphEnabledForNewRepos == nil { 10180 return false 10181 } 10182 return *o.DependencyGraphEnabledForNewRepos 10183 } 10184 10185 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 10186 func (o *Organization) GetDescription() string { 10187 if o == nil || o.Description == nil { 10188 return "" 10189 } 10190 return *o.Description 10191 } 10192 10193 // GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 10194 func (o *Organization) GetDiskUsage() int { 10195 if o == nil || o.DiskUsage == nil { 10196 return 0 10197 } 10198 return *o.DiskUsage 10199 } 10200 10201 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 10202 func (o *Organization) GetEmail() string { 10203 if o == nil || o.Email == nil { 10204 return "" 10205 } 10206 return *o.Email 10207 } 10208 10209 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 10210 func (o *Organization) GetEventsURL() string { 10211 if o == nil || o.EventsURL == nil { 10212 return "" 10213 } 10214 return *o.EventsURL 10215 } 10216 10217 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 10218 func (o *Organization) GetFollowers() int { 10219 if o == nil || o.Followers == nil { 10220 return 0 10221 } 10222 return *o.Followers 10223 } 10224 10225 // GetFollowing returns the Following field if it's non-nil, zero value otherwise. 10226 func (o *Organization) GetFollowing() int { 10227 if o == nil || o.Following == nil { 10228 return 0 10229 } 10230 return *o.Following 10231 } 10232 10233 // GetHasOrganizationProjects returns the HasOrganizationProjects field if it's non-nil, zero value otherwise. 10234 func (o *Organization) GetHasOrganizationProjects() bool { 10235 if o == nil || o.HasOrganizationProjects == nil { 10236 return false 10237 } 10238 return *o.HasOrganizationProjects 10239 } 10240 10241 // GetHasRepositoryProjects returns the HasRepositoryProjects field if it's non-nil, zero value otherwise. 10242 func (o *Organization) GetHasRepositoryProjects() bool { 10243 if o == nil || o.HasRepositoryProjects == nil { 10244 return false 10245 } 10246 return *o.HasRepositoryProjects 10247 } 10248 10249 // GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 10250 func (o *Organization) GetHooksURL() string { 10251 if o == nil || o.HooksURL == nil { 10252 return "" 10253 } 10254 return *o.HooksURL 10255 } 10256 10257 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 10258 func (o *Organization) GetHTMLURL() string { 10259 if o == nil || o.HTMLURL == nil { 10260 return "" 10261 } 10262 return *o.HTMLURL 10263 } 10264 10265 // GetID returns the ID field if it's non-nil, zero value otherwise. 10266 func (o *Organization) GetID() int64 { 10267 if o == nil || o.ID == nil { 10268 return 0 10269 } 10270 return *o.ID 10271 } 10272 10273 // GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 10274 func (o *Organization) GetIssuesURL() string { 10275 if o == nil || o.IssuesURL == nil { 10276 return "" 10277 } 10278 return *o.IssuesURL 10279 } 10280 10281 // GetIsVerified returns the IsVerified field if it's non-nil, zero value otherwise. 10282 func (o *Organization) GetIsVerified() bool { 10283 if o == nil || o.IsVerified == nil { 10284 return false 10285 } 10286 return *o.IsVerified 10287 } 10288 10289 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 10290 func (o *Organization) GetLocation() string { 10291 if o == nil || o.Location == nil { 10292 return "" 10293 } 10294 return *o.Location 10295 } 10296 10297 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 10298 func (o *Organization) GetLogin() string { 10299 if o == nil || o.Login == nil { 10300 return "" 10301 } 10302 return *o.Login 10303 } 10304 10305 // GetMembersAllowedRepositoryCreationType returns the MembersAllowedRepositoryCreationType field if it's non-nil, zero value otherwise. 10306 func (o *Organization) GetMembersAllowedRepositoryCreationType() string { 10307 if o == nil || o.MembersAllowedRepositoryCreationType == nil { 10308 return "" 10309 } 10310 return *o.MembersAllowedRepositoryCreationType 10311 } 10312 10313 // GetMembersCanCreateInternalRepos returns the MembersCanCreateInternalRepos field if it's non-nil, zero value otherwise. 10314 func (o *Organization) GetMembersCanCreateInternalRepos() bool { 10315 if o == nil || o.MembersCanCreateInternalRepos == nil { 10316 return false 10317 } 10318 return *o.MembersCanCreateInternalRepos 10319 } 10320 10321 // GetMembersCanCreatePages returns the MembersCanCreatePages field if it's non-nil, zero value otherwise. 10322 func (o *Organization) GetMembersCanCreatePages() bool { 10323 if o == nil || o.MembersCanCreatePages == nil { 10324 return false 10325 } 10326 return *o.MembersCanCreatePages 10327 } 10328 10329 // GetMembersCanCreatePrivatePages returns the MembersCanCreatePrivatePages field if it's non-nil, zero value otherwise. 10330 func (o *Organization) GetMembersCanCreatePrivatePages() bool { 10331 if o == nil || o.MembersCanCreatePrivatePages == nil { 10332 return false 10333 } 10334 return *o.MembersCanCreatePrivatePages 10335 } 10336 10337 // GetMembersCanCreatePrivateRepos returns the MembersCanCreatePrivateRepos field if it's non-nil, zero value otherwise. 10338 func (o *Organization) GetMembersCanCreatePrivateRepos() bool { 10339 if o == nil || o.MembersCanCreatePrivateRepos == nil { 10340 return false 10341 } 10342 return *o.MembersCanCreatePrivateRepos 10343 } 10344 10345 // GetMembersCanCreatePublicPages returns the MembersCanCreatePublicPages field if it's non-nil, zero value otherwise. 10346 func (o *Organization) GetMembersCanCreatePublicPages() bool { 10347 if o == nil || o.MembersCanCreatePublicPages == nil { 10348 return false 10349 } 10350 return *o.MembersCanCreatePublicPages 10351 } 10352 10353 // GetMembersCanCreatePublicRepos returns the MembersCanCreatePublicRepos field if it's non-nil, zero value otherwise. 10354 func (o *Organization) GetMembersCanCreatePublicRepos() bool { 10355 if o == nil || o.MembersCanCreatePublicRepos == nil { 10356 return false 10357 } 10358 return *o.MembersCanCreatePublicRepos 10359 } 10360 10361 // GetMembersCanCreateRepos returns the MembersCanCreateRepos field if it's non-nil, zero value otherwise. 10362 func (o *Organization) GetMembersCanCreateRepos() bool { 10363 if o == nil || o.MembersCanCreateRepos == nil { 10364 return false 10365 } 10366 return *o.MembersCanCreateRepos 10367 } 10368 10369 // GetMembersCanForkPrivateRepos returns the MembersCanForkPrivateRepos field if it's non-nil, zero value otherwise. 10370 func (o *Organization) GetMembersCanForkPrivateRepos() bool { 10371 if o == nil || o.MembersCanForkPrivateRepos == nil { 10372 return false 10373 } 10374 return *o.MembersCanForkPrivateRepos 10375 } 10376 10377 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 10378 func (o *Organization) GetMembersURL() string { 10379 if o == nil || o.MembersURL == nil { 10380 return "" 10381 } 10382 return *o.MembersURL 10383 } 10384 10385 // GetName returns the Name field if it's non-nil, zero value otherwise. 10386 func (o *Organization) GetName() string { 10387 if o == nil || o.Name == nil { 10388 return "" 10389 } 10390 return *o.Name 10391 } 10392 10393 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10394 func (o *Organization) GetNodeID() string { 10395 if o == nil || o.NodeID == nil { 10396 return "" 10397 } 10398 return *o.NodeID 10399 } 10400 10401 // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 10402 func (o *Organization) GetOwnedPrivateRepos() int { 10403 if o == nil || o.OwnedPrivateRepos == nil { 10404 return 0 10405 } 10406 return *o.OwnedPrivateRepos 10407 } 10408 10409 // GetPlan returns the Plan field. 10410 func (o *Organization) GetPlan() *Plan { 10411 if o == nil { 10412 return nil 10413 } 10414 return o.Plan 10415 } 10416 10417 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 10418 func (o *Organization) GetPrivateGists() int { 10419 if o == nil || o.PrivateGists == nil { 10420 return 0 10421 } 10422 return *o.PrivateGists 10423 } 10424 10425 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 10426 func (o *Organization) GetPublicGists() int { 10427 if o == nil || o.PublicGists == nil { 10428 return 0 10429 } 10430 return *o.PublicGists 10431 } 10432 10433 // GetPublicMembersURL returns the PublicMembersURL field if it's non-nil, zero value otherwise. 10434 func (o *Organization) GetPublicMembersURL() string { 10435 if o == nil || o.PublicMembersURL == nil { 10436 return "" 10437 } 10438 return *o.PublicMembersURL 10439 } 10440 10441 // GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 10442 func (o *Organization) GetPublicRepos() int { 10443 if o == nil || o.PublicRepos == nil { 10444 return 0 10445 } 10446 return *o.PublicRepos 10447 } 10448 10449 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 10450 func (o *Organization) GetReposURL() string { 10451 if o == nil || o.ReposURL == nil { 10452 return "" 10453 } 10454 return *o.ReposURL 10455 } 10456 10457 // GetSecretScanningEnabledForNewRepos returns the SecretScanningEnabledForNewRepos field if it's non-nil, zero value otherwise. 10458 func (o *Organization) GetSecretScanningEnabledForNewRepos() bool { 10459 if o == nil || o.SecretScanningEnabledForNewRepos == nil { 10460 return false 10461 } 10462 return *o.SecretScanningEnabledForNewRepos 10463 } 10464 10465 // GetSecretScanningPushProtectionEnabledForNewRepos returns the SecretScanningPushProtectionEnabledForNewRepos field if it's non-nil, zero value otherwise. 10466 func (o *Organization) GetSecretScanningPushProtectionEnabledForNewRepos() bool { 10467 if o == nil || o.SecretScanningPushProtectionEnabledForNewRepos == nil { 10468 return false 10469 } 10470 return *o.SecretScanningPushProtectionEnabledForNewRepos 10471 } 10472 10473 // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 10474 func (o *Organization) GetTotalPrivateRepos() int { 10475 if o == nil || o.TotalPrivateRepos == nil { 10476 return 0 10477 } 10478 return *o.TotalPrivateRepos 10479 } 10480 10481 // GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. 10482 func (o *Organization) GetTwitterUsername() string { 10483 if o == nil || o.TwitterUsername == nil { 10484 return "" 10485 } 10486 return *o.TwitterUsername 10487 } 10488 10489 // GetTwoFactorRequirementEnabled returns the TwoFactorRequirementEnabled field if it's non-nil, zero value otherwise. 10490 func (o *Organization) GetTwoFactorRequirementEnabled() bool { 10491 if o == nil || o.TwoFactorRequirementEnabled == nil { 10492 return false 10493 } 10494 return *o.TwoFactorRequirementEnabled 10495 } 10496 10497 // GetType returns the Type field if it's non-nil, zero value otherwise. 10498 func (o *Organization) GetType() string { 10499 if o == nil || o.Type == nil { 10500 return "" 10501 } 10502 return *o.Type 10503 } 10504 10505 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10506 func (o *Organization) GetUpdatedAt() time.Time { 10507 if o == nil || o.UpdatedAt == nil { 10508 return time.Time{} 10509 } 10510 return *o.UpdatedAt 10511 } 10512 10513 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10514 func (o *Organization) GetURL() string { 10515 if o == nil || o.URL == nil { 10516 return "" 10517 } 10518 return *o.URL 10519 } 10520 10521 // GetWebCommitSignoffRequired returns the WebCommitSignoffRequired field if it's non-nil, zero value otherwise. 10522 func (o *Organization) GetWebCommitSignoffRequired() bool { 10523 if o == nil || o.WebCommitSignoffRequired == nil { 10524 return false 10525 } 10526 return *o.WebCommitSignoffRequired 10527 } 10528 10529 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 10530 func (o *OrganizationCustomRepoRoles) GetTotalCount() int { 10531 if o == nil || o.TotalCount == nil { 10532 return 0 10533 } 10534 return *o.TotalCount 10535 } 10536 10537 // GetAction returns the Action field if it's non-nil, zero value otherwise. 10538 func (o *OrganizationEvent) GetAction() string { 10539 if o == nil || o.Action == nil { 10540 return "" 10541 } 10542 return *o.Action 10543 } 10544 10545 // GetInstallation returns the Installation field. 10546 func (o *OrganizationEvent) GetInstallation() *Installation { 10547 if o == nil { 10548 return nil 10549 } 10550 return o.Installation 10551 } 10552 10553 // GetInvitation returns the Invitation field. 10554 func (o *OrganizationEvent) GetInvitation() *Invitation { 10555 if o == nil { 10556 return nil 10557 } 10558 return o.Invitation 10559 } 10560 10561 // GetMembership returns the Membership field. 10562 func (o *OrganizationEvent) GetMembership() *Membership { 10563 if o == nil { 10564 return nil 10565 } 10566 return o.Membership 10567 } 10568 10569 // GetOrganization returns the Organization field. 10570 func (o *OrganizationEvent) GetOrganization() *Organization { 10571 if o == nil { 10572 return nil 10573 } 10574 return o.Organization 10575 } 10576 10577 // GetSender returns the Sender field. 10578 func (o *OrganizationEvent) GetSender() *User { 10579 if o == nil { 10580 return nil 10581 } 10582 return o.Sender 10583 } 10584 10585 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 10586 func (o *OrganizationInstallations) GetTotalCount() int { 10587 if o == nil || o.TotalCount == nil { 10588 return 0 10589 } 10590 return *o.TotalCount 10591 } 10592 10593 // GetAction returns the Action field if it's non-nil, zero value otherwise. 10594 func (o *OrgBlockEvent) GetAction() string { 10595 if o == nil || o.Action == nil { 10596 return "" 10597 } 10598 return *o.Action 10599 } 10600 10601 // GetBlockedUser returns the BlockedUser field. 10602 func (o *OrgBlockEvent) GetBlockedUser() *User { 10603 if o == nil { 10604 return nil 10605 } 10606 return o.BlockedUser 10607 } 10608 10609 // GetInstallation returns the Installation field. 10610 func (o *OrgBlockEvent) GetInstallation() *Installation { 10611 if o == nil { 10612 return nil 10613 } 10614 return o.Installation 10615 } 10616 10617 // GetOrganization returns the Organization field. 10618 func (o *OrgBlockEvent) GetOrganization() *Organization { 10619 if o == nil { 10620 return nil 10621 } 10622 return o.Organization 10623 } 10624 10625 // GetSender returns the Sender field. 10626 func (o *OrgBlockEvent) GetSender() *User { 10627 if o == nil { 10628 return nil 10629 } 10630 return o.Sender 10631 } 10632 10633 // GetDisabledOrgs returns the DisabledOrgs field if it's non-nil, zero value otherwise. 10634 func (o *OrgStats) GetDisabledOrgs() int { 10635 if o == nil || o.DisabledOrgs == nil { 10636 return 0 10637 } 10638 return *o.DisabledOrgs 10639 } 10640 10641 // GetTotalOrgs returns the TotalOrgs field if it's non-nil, zero value otherwise. 10642 func (o *OrgStats) GetTotalOrgs() int { 10643 if o == nil || o.TotalOrgs == nil { 10644 return 0 10645 } 10646 return *o.TotalOrgs 10647 } 10648 10649 // GetTotalTeamMembers returns the TotalTeamMembers field if it's non-nil, zero value otherwise. 10650 func (o *OrgStats) GetTotalTeamMembers() int { 10651 if o == nil || o.TotalTeamMembers == nil { 10652 return 0 10653 } 10654 return *o.TotalTeamMembers 10655 } 10656 10657 // GetTotalTeams returns the TotalTeams field if it's non-nil, zero value otherwise. 10658 func (o *OrgStats) GetTotalTeams() int { 10659 if o == nil || o.TotalTeams == nil { 10660 return 0 10661 } 10662 return *o.TotalTeams 10663 } 10664 10665 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10666 func (p *Package) GetCreatedAt() Timestamp { 10667 if p == nil || p.CreatedAt == nil { 10668 return Timestamp{} 10669 } 10670 return *p.CreatedAt 10671 } 10672 10673 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 10674 func (p *Package) GetHTMLURL() string { 10675 if p == nil || p.HTMLURL == nil { 10676 return "" 10677 } 10678 return *p.HTMLURL 10679 } 10680 10681 // GetID returns the ID field if it's non-nil, zero value otherwise. 10682 func (p *Package) GetID() int64 { 10683 if p == nil || p.ID == nil { 10684 return 0 10685 } 10686 return *p.ID 10687 } 10688 10689 // GetName returns the Name field if it's non-nil, zero value otherwise. 10690 func (p *Package) GetName() string { 10691 if p == nil || p.Name == nil { 10692 return "" 10693 } 10694 return *p.Name 10695 } 10696 10697 // GetOwner returns the Owner field. 10698 func (p *Package) GetOwner() *User { 10699 if p == nil { 10700 return nil 10701 } 10702 return p.Owner 10703 } 10704 10705 // GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. 10706 func (p *Package) GetPackageType() string { 10707 if p == nil || p.PackageType == nil { 10708 return "" 10709 } 10710 return *p.PackageType 10711 } 10712 10713 // GetPackageVersion returns the PackageVersion field. 10714 func (p *Package) GetPackageVersion() *PackageVersion { 10715 if p == nil { 10716 return nil 10717 } 10718 return p.PackageVersion 10719 } 10720 10721 // GetRegistry returns the Registry field. 10722 func (p *Package) GetRegistry() *PackageRegistry { 10723 if p == nil { 10724 return nil 10725 } 10726 return p.Registry 10727 } 10728 10729 // GetRepository returns the Repository field. 10730 func (p *Package) GetRepository() *Repository { 10731 if p == nil { 10732 return nil 10733 } 10734 return p.Repository 10735 } 10736 10737 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10738 func (p *Package) GetUpdatedAt() Timestamp { 10739 if p == nil || p.UpdatedAt == nil { 10740 return Timestamp{} 10741 } 10742 return *p.UpdatedAt 10743 } 10744 10745 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10746 func (p *Package) GetURL() string { 10747 if p == nil || p.URL == nil { 10748 return "" 10749 } 10750 return *p.URL 10751 } 10752 10753 // GetVersionCount returns the VersionCount field if it's non-nil, zero value otherwise. 10754 func (p *Package) GetVersionCount() int64 { 10755 if p == nil || p.VersionCount == nil { 10756 return 0 10757 } 10758 return *p.VersionCount 10759 } 10760 10761 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 10762 func (p *Package) GetVisibility() string { 10763 if p == nil || p.Visibility == nil { 10764 return "" 10765 } 10766 return *p.Visibility 10767 } 10768 10769 // GetAction returns the Action field if it's non-nil, zero value otherwise. 10770 func (p *PackageEvent) GetAction() string { 10771 if p == nil || p.Action == nil { 10772 return "" 10773 } 10774 return *p.Action 10775 } 10776 10777 // GetInstallation returns the Installation field. 10778 func (p *PackageEvent) GetInstallation() *Installation { 10779 if p == nil { 10780 return nil 10781 } 10782 return p.Installation 10783 } 10784 10785 // GetOrg returns the Org field. 10786 func (p *PackageEvent) GetOrg() *Organization { 10787 if p == nil { 10788 return nil 10789 } 10790 return p.Org 10791 } 10792 10793 // GetPackage returns the Package field. 10794 func (p *PackageEvent) GetPackage() *Package { 10795 if p == nil { 10796 return nil 10797 } 10798 return p.Package 10799 } 10800 10801 // GetRepo returns the Repo field. 10802 func (p *PackageEvent) GetRepo() *Repository { 10803 if p == nil { 10804 return nil 10805 } 10806 return p.Repo 10807 } 10808 10809 // GetSender returns the Sender field. 10810 func (p *PackageEvent) GetSender() *User { 10811 if p == nil { 10812 return nil 10813 } 10814 return p.Sender 10815 } 10816 10817 // GetAuthor returns the Author field. 10818 func (p *PackageFile) GetAuthor() *User { 10819 if p == nil { 10820 return nil 10821 } 10822 return p.Author 10823 } 10824 10825 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 10826 func (p *PackageFile) GetContentType() string { 10827 if p == nil || p.ContentType == nil { 10828 return "" 10829 } 10830 return *p.ContentType 10831 } 10832 10833 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10834 func (p *PackageFile) GetCreatedAt() Timestamp { 10835 if p == nil || p.CreatedAt == nil { 10836 return Timestamp{} 10837 } 10838 return *p.CreatedAt 10839 } 10840 10841 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 10842 func (p *PackageFile) GetDownloadURL() string { 10843 if p == nil || p.DownloadURL == nil { 10844 return "" 10845 } 10846 return *p.DownloadURL 10847 } 10848 10849 // GetID returns the ID field if it's non-nil, zero value otherwise. 10850 func (p *PackageFile) GetID() int64 { 10851 if p == nil || p.ID == nil { 10852 return 0 10853 } 10854 return *p.ID 10855 } 10856 10857 // GetMD5 returns the MD5 field if it's non-nil, zero value otherwise. 10858 func (p *PackageFile) GetMD5() string { 10859 if p == nil || p.MD5 == nil { 10860 return "" 10861 } 10862 return *p.MD5 10863 } 10864 10865 // GetName returns the Name field if it's non-nil, zero value otherwise. 10866 func (p *PackageFile) GetName() string { 10867 if p == nil || p.Name == nil { 10868 return "" 10869 } 10870 return *p.Name 10871 } 10872 10873 // GetSHA1 returns the SHA1 field if it's non-nil, zero value otherwise. 10874 func (p *PackageFile) GetSHA1() string { 10875 if p == nil || p.SHA1 == nil { 10876 return "" 10877 } 10878 return *p.SHA1 10879 } 10880 10881 // GetSHA256 returns the SHA256 field if it's non-nil, zero value otherwise. 10882 func (p *PackageFile) GetSHA256() string { 10883 if p == nil || p.SHA256 == nil { 10884 return "" 10885 } 10886 return *p.SHA256 10887 } 10888 10889 // GetSize returns the Size field if it's non-nil, zero value otherwise. 10890 func (p *PackageFile) GetSize() int64 { 10891 if p == nil || p.Size == nil { 10892 return 0 10893 } 10894 return *p.Size 10895 } 10896 10897 // GetState returns the State field if it's non-nil, zero value otherwise. 10898 func (p *PackageFile) GetState() string { 10899 if p == nil || p.State == nil { 10900 return "" 10901 } 10902 return *p.State 10903 } 10904 10905 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10906 func (p *PackageFile) GetUpdatedAt() Timestamp { 10907 if p == nil || p.UpdatedAt == nil { 10908 return Timestamp{} 10909 } 10910 return *p.UpdatedAt 10911 } 10912 10913 // GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. 10914 func (p *PackageListOptions) GetPackageType() string { 10915 if p == nil || p.PackageType == nil { 10916 return "" 10917 } 10918 return *p.PackageType 10919 } 10920 10921 // GetState returns the State field if it's non-nil, zero value otherwise. 10922 func (p *PackageListOptions) GetState() string { 10923 if p == nil || p.State == nil { 10924 return "" 10925 } 10926 return *p.State 10927 } 10928 10929 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 10930 func (p *PackageListOptions) GetVisibility() string { 10931 if p == nil || p.Visibility == nil { 10932 return "" 10933 } 10934 return *p.Visibility 10935 } 10936 10937 // GetContainer returns the Container field. 10938 func (p *PackageMetadata) GetContainer() *PackageContainerMetadata { 10939 if p == nil { 10940 return nil 10941 } 10942 return p.Container 10943 } 10944 10945 // GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. 10946 func (p *PackageMetadata) GetPackageType() string { 10947 if p == nil || p.PackageType == nil { 10948 return "" 10949 } 10950 return *p.PackageType 10951 } 10952 10953 // GetAboutURL returns the AboutURL field if it's non-nil, zero value otherwise. 10954 func (p *PackageRegistry) GetAboutURL() string { 10955 if p == nil || p.AboutURL == nil { 10956 return "" 10957 } 10958 return *p.AboutURL 10959 } 10960 10961 // GetName returns the Name field if it's non-nil, zero value otherwise. 10962 func (p *PackageRegistry) GetName() string { 10963 if p == nil || p.Name == nil { 10964 return "" 10965 } 10966 return *p.Name 10967 } 10968 10969 // GetType returns the Type field if it's non-nil, zero value otherwise. 10970 func (p *PackageRegistry) GetType() string { 10971 if p == nil || p.Type == nil { 10972 return "" 10973 } 10974 return *p.Type 10975 } 10976 10977 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10978 func (p *PackageRegistry) GetURL() string { 10979 if p == nil || p.URL == nil { 10980 return "" 10981 } 10982 return *p.URL 10983 } 10984 10985 // GetVendor returns the Vendor field if it's non-nil, zero value otherwise. 10986 func (p *PackageRegistry) GetVendor() string { 10987 if p == nil || p.Vendor == nil { 10988 return "" 10989 } 10990 return *p.Vendor 10991 } 10992 10993 // GetAuthor returns the Author field. 10994 func (p *PackageRelease) GetAuthor() *User { 10995 if p == nil { 10996 return nil 10997 } 10998 return p.Author 10999 } 11000 11001 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11002 func (p *PackageRelease) GetCreatedAt() Timestamp { 11003 if p == nil || p.CreatedAt == nil { 11004 return Timestamp{} 11005 } 11006 return *p.CreatedAt 11007 } 11008 11009 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 11010 func (p *PackageRelease) GetDraft() bool { 11011 if p == nil || p.Draft == nil { 11012 return false 11013 } 11014 return *p.Draft 11015 } 11016 11017 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11018 func (p *PackageRelease) GetHTMLURL() string { 11019 if p == nil || p.HTMLURL == nil { 11020 return "" 11021 } 11022 return *p.HTMLURL 11023 } 11024 11025 // GetID returns the ID field if it's non-nil, zero value otherwise. 11026 func (p *PackageRelease) GetID() int64 { 11027 if p == nil || p.ID == nil { 11028 return 0 11029 } 11030 return *p.ID 11031 } 11032 11033 // GetName returns the Name field if it's non-nil, zero value otherwise. 11034 func (p *PackageRelease) GetName() string { 11035 if p == nil || p.Name == nil { 11036 return "" 11037 } 11038 return *p.Name 11039 } 11040 11041 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 11042 func (p *PackageRelease) GetPrerelease() bool { 11043 if p == nil || p.Prerelease == nil { 11044 return false 11045 } 11046 return *p.Prerelease 11047 } 11048 11049 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 11050 func (p *PackageRelease) GetPublishedAt() Timestamp { 11051 if p == nil || p.PublishedAt == nil { 11052 return Timestamp{} 11053 } 11054 return *p.PublishedAt 11055 } 11056 11057 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 11058 func (p *PackageRelease) GetTagName() string { 11059 if p == nil || p.TagName == nil { 11060 return "" 11061 } 11062 return *p.TagName 11063 } 11064 11065 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 11066 func (p *PackageRelease) GetTargetCommitish() string { 11067 if p == nil || p.TargetCommitish == nil { 11068 return "" 11069 } 11070 return *p.TargetCommitish 11071 } 11072 11073 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11074 func (p *PackageRelease) GetURL() string { 11075 if p == nil || p.URL == nil { 11076 return "" 11077 } 11078 return *p.URL 11079 } 11080 11081 // GetAuthor returns the Author field. 11082 func (p *PackageVersion) GetAuthor() *User { 11083 if p == nil { 11084 return nil 11085 } 11086 return p.Author 11087 } 11088 11089 // GetBody returns the Body field if it's non-nil, zero value otherwise. 11090 func (p *PackageVersion) GetBody() string { 11091 if p == nil || p.Body == nil { 11092 return "" 11093 } 11094 return *p.Body 11095 } 11096 11097 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 11098 func (p *PackageVersion) GetBodyHTML() string { 11099 if p == nil || p.BodyHTML == nil { 11100 return "" 11101 } 11102 return *p.BodyHTML 11103 } 11104 11105 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11106 func (p *PackageVersion) GetCreatedAt() Timestamp { 11107 if p == nil || p.CreatedAt == nil { 11108 return Timestamp{} 11109 } 11110 return *p.CreatedAt 11111 } 11112 11113 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 11114 func (p *PackageVersion) GetDraft() bool { 11115 if p == nil || p.Draft == nil { 11116 return false 11117 } 11118 return *p.Draft 11119 } 11120 11121 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11122 func (p *PackageVersion) GetHTMLURL() string { 11123 if p == nil || p.HTMLURL == nil { 11124 return "" 11125 } 11126 return *p.HTMLURL 11127 } 11128 11129 // GetID returns the ID field if it's non-nil, zero value otherwise. 11130 func (p *PackageVersion) GetID() int64 { 11131 if p == nil || p.ID == nil { 11132 return 0 11133 } 11134 return *p.ID 11135 } 11136 11137 // GetInstallationCommand returns the InstallationCommand field if it's non-nil, zero value otherwise. 11138 func (p *PackageVersion) GetInstallationCommand() string { 11139 if p == nil || p.InstallationCommand == nil { 11140 return "" 11141 } 11142 return *p.InstallationCommand 11143 } 11144 11145 // GetManifest returns the Manifest field if it's non-nil, zero value otherwise. 11146 func (p *PackageVersion) GetManifest() string { 11147 if p == nil || p.Manifest == nil { 11148 return "" 11149 } 11150 return *p.Manifest 11151 } 11152 11153 // GetMetadata returns the Metadata field. 11154 func (p *PackageVersion) GetMetadata() *PackageMetadata { 11155 if p == nil { 11156 return nil 11157 } 11158 return p.Metadata 11159 } 11160 11161 // GetName returns the Name field if it's non-nil, zero value otherwise. 11162 func (p *PackageVersion) GetName() string { 11163 if p == nil || p.Name == nil { 11164 return "" 11165 } 11166 return *p.Name 11167 } 11168 11169 // GetPackageHTMLURL returns the PackageHTMLURL field if it's non-nil, zero value otherwise. 11170 func (p *PackageVersion) GetPackageHTMLURL() string { 11171 if p == nil || p.PackageHTMLURL == nil { 11172 return "" 11173 } 11174 return *p.PackageHTMLURL 11175 } 11176 11177 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 11178 func (p *PackageVersion) GetPrerelease() bool { 11179 if p == nil || p.Prerelease == nil { 11180 return false 11181 } 11182 return *p.Prerelease 11183 } 11184 11185 // GetRelease returns the Release field. 11186 func (p *PackageVersion) GetRelease() *PackageRelease { 11187 if p == nil { 11188 return nil 11189 } 11190 return p.Release 11191 } 11192 11193 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 11194 func (p *PackageVersion) GetSummary() string { 11195 if p == nil || p.Summary == nil { 11196 return "" 11197 } 11198 return *p.Summary 11199 } 11200 11201 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 11202 func (p *PackageVersion) GetTagName() string { 11203 if p == nil || p.TagName == nil { 11204 return "" 11205 } 11206 return *p.TagName 11207 } 11208 11209 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 11210 func (p *PackageVersion) GetTargetCommitish() string { 11211 if p == nil || p.TargetCommitish == nil { 11212 return "" 11213 } 11214 return *p.TargetCommitish 11215 } 11216 11217 // GetTargetOID returns the TargetOID field if it's non-nil, zero value otherwise. 11218 func (p *PackageVersion) GetTargetOID() string { 11219 if p == nil || p.TargetOID == nil { 11220 return "" 11221 } 11222 return *p.TargetOID 11223 } 11224 11225 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11226 func (p *PackageVersion) GetUpdatedAt() Timestamp { 11227 if p == nil || p.UpdatedAt == nil { 11228 return Timestamp{} 11229 } 11230 return *p.UpdatedAt 11231 } 11232 11233 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11234 func (p *PackageVersion) GetURL() string { 11235 if p == nil || p.URL == nil { 11236 return "" 11237 } 11238 return *p.URL 11239 } 11240 11241 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 11242 func (p *PackageVersion) GetVersion() string { 11243 if p == nil || p.Version == nil { 11244 return "" 11245 } 11246 return *p.Version 11247 } 11248 11249 // GetAction returns the Action field if it's non-nil, zero value otherwise. 11250 func (p *Page) GetAction() string { 11251 if p == nil || p.Action == nil { 11252 return "" 11253 } 11254 return *p.Action 11255 } 11256 11257 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11258 func (p *Page) GetHTMLURL() string { 11259 if p == nil || p.HTMLURL == nil { 11260 return "" 11261 } 11262 return *p.HTMLURL 11263 } 11264 11265 // GetPageName returns the PageName field if it's non-nil, zero value otherwise. 11266 func (p *Page) GetPageName() string { 11267 if p == nil || p.PageName == nil { 11268 return "" 11269 } 11270 return *p.PageName 11271 } 11272 11273 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 11274 func (p *Page) GetSHA() string { 11275 if p == nil || p.SHA == nil { 11276 return "" 11277 } 11278 return *p.SHA 11279 } 11280 11281 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 11282 func (p *Page) GetSummary() string { 11283 if p == nil || p.Summary == nil { 11284 return "" 11285 } 11286 return *p.Summary 11287 } 11288 11289 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 11290 func (p *Page) GetTitle() string { 11291 if p == nil || p.Title == nil { 11292 return "" 11293 } 11294 return *p.Title 11295 } 11296 11297 // GetBuild returns the Build field. 11298 func (p *PageBuildEvent) GetBuild() *PagesBuild { 11299 if p == nil { 11300 return nil 11301 } 11302 return p.Build 11303 } 11304 11305 // GetID returns the ID field if it's non-nil, zero value otherwise. 11306 func (p *PageBuildEvent) GetID() int64 { 11307 if p == nil || p.ID == nil { 11308 return 0 11309 } 11310 return *p.ID 11311 } 11312 11313 // GetInstallation returns the Installation field. 11314 func (p *PageBuildEvent) GetInstallation() *Installation { 11315 if p == nil { 11316 return nil 11317 } 11318 return p.Installation 11319 } 11320 11321 // GetRepo returns the Repo field. 11322 func (p *PageBuildEvent) GetRepo() *Repository { 11323 if p == nil { 11324 return nil 11325 } 11326 return p.Repo 11327 } 11328 11329 // GetSender returns the Sender field. 11330 func (p *PageBuildEvent) GetSender() *User { 11331 if p == nil { 11332 return nil 11333 } 11334 return p.Sender 11335 } 11336 11337 // GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. 11338 func (p *Pages) GetCNAME() string { 11339 if p == nil || p.CNAME == nil { 11340 return "" 11341 } 11342 return *p.CNAME 11343 } 11344 11345 // GetCustom404 returns the Custom404 field if it's non-nil, zero value otherwise. 11346 func (p *Pages) GetCustom404() bool { 11347 if p == nil || p.Custom404 == nil { 11348 return false 11349 } 11350 return *p.Custom404 11351 } 11352 11353 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11354 func (p *Pages) GetHTMLURL() string { 11355 if p == nil || p.HTMLURL == nil { 11356 return "" 11357 } 11358 return *p.HTMLURL 11359 } 11360 11361 // GetHTTPSCertificate returns the HTTPSCertificate field. 11362 func (p *Pages) GetHTTPSCertificate() *PagesHTTPSCertificate { 11363 if p == nil { 11364 return nil 11365 } 11366 return p.HTTPSCertificate 11367 } 11368 11369 // GetHTTPSEnforced returns the HTTPSEnforced field if it's non-nil, zero value otherwise. 11370 func (p *Pages) GetHTTPSEnforced() bool { 11371 if p == nil || p.HTTPSEnforced == nil { 11372 return false 11373 } 11374 return *p.HTTPSEnforced 11375 } 11376 11377 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 11378 func (p *Pages) GetPublic() bool { 11379 if p == nil || p.Public == nil { 11380 return false 11381 } 11382 return *p.Public 11383 } 11384 11385 // GetSource returns the Source field. 11386 func (p *Pages) GetSource() *PagesSource { 11387 if p == nil { 11388 return nil 11389 } 11390 return p.Source 11391 } 11392 11393 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 11394 func (p *Pages) GetStatus() string { 11395 if p == nil || p.Status == nil { 11396 return "" 11397 } 11398 return *p.Status 11399 } 11400 11401 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11402 func (p *Pages) GetURL() string { 11403 if p == nil || p.URL == nil { 11404 return "" 11405 } 11406 return *p.URL 11407 } 11408 11409 // GetCommit returns the Commit field if it's non-nil, zero value otherwise. 11410 func (p *PagesBuild) GetCommit() string { 11411 if p == nil || p.Commit == nil { 11412 return "" 11413 } 11414 return *p.Commit 11415 } 11416 11417 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11418 func (p *PagesBuild) GetCreatedAt() Timestamp { 11419 if p == nil || p.CreatedAt == nil { 11420 return Timestamp{} 11421 } 11422 return *p.CreatedAt 11423 } 11424 11425 // GetDuration returns the Duration field if it's non-nil, zero value otherwise. 11426 func (p *PagesBuild) GetDuration() int { 11427 if p == nil || p.Duration == nil { 11428 return 0 11429 } 11430 return *p.Duration 11431 } 11432 11433 // GetError returns the Error field. 11434 func (p *PagesBuild) GetError() *PagesError { 11435 if p == nil { 11436 return nil 11437 } 11438 return p.Error 11439 } 11440 11441 // GetPusher returns the Pusher field. 11442 func (p *PagesBuild) GetPusher() *User { 11443 if p == nil { 11444 return nil 11445 } 11446 return p.Pusher 11447 } 11448 11449 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 11450 func (p *PagesBuild) GetStatus() string { 11451 if p == nil || p.Status == nil { 11452 return "" 11453 } 11454 return *p.Status 11455 } 11456 11457 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11458 func (p *PagesBuild) GetUpdatedAt() Timestamp { 11459 if p == nil || p.UpdatedAt == nil { 11460 return Timestamp{} 11461 } 11462 return *p.UpdatedAt 11463 } 11464 11465 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11466 func (p *PagesBuild) GetURL() string { 11467 if p == nil || p.URL == nil { 11468 return "" 11469 } 11470 return *p.URL 11471 } 11472 11473 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 11474 func (p *PagesError) GetMessage() string { 11475 if p == nil || p.Message == nil { 11476 return "" 11477 } 11478 return *p.Message 11479 } 11480 11481 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 11482 func (p *PagesHTTPSCertificate) GetDescription() string { 11483 if p == nil || p.Description == nil { 11484 return "" 11485 } 11486 return *p.Description 11487 } 11488 11489 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 11490 func (p *PagesHTTPSCertificate) GetExpiresAt() string { 11491 if p == nil || p.ExpiresAt == nil { 11492 return "" 11493 } 11494 return *p.ExpiresAt 11495 } 11496 11497 // GetState returns the State field if it's non-nil, zero value otherwise. 11498 func (p *PagesHTTPSCertificate) GetState() string { 11499 if p == nil || p.State == nil { 11500 return "" 11501 } 11502 return *p.State 11503 } 11504 11505 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 11506 func (p *PagesSource) GetBranch() string { 11507 if p == nil || p.Branch == nil { 11508 return "" 11509 } 11510 return *p.Branch 11511 } 11512 11513 // GetPath returns the Path field if it's non-nil, zero value otherwise. 11514 func (p *PagesSource) GetPath() string { 11515 if p == nil || p.Path == nil { 11516 return "" 11517 } 11518 return *p.Path 11519 } 11520 11521 // GetTotalPages returns the TotalPages field if it's non-nil, zero value otherwise. 11522 func (p *PageStats) GetTotalPages() int { 11523 if p == nil || p.TotalPages == nil { 11524 return 0 11525 } 11526 return *p.TotalPages 11527 } 11528 11529 // GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. 11530 func (p *PagesUpdate) GetCNAME() string { 11531 if p == nil || p.CNAME == nil { 11532 return "" 11533 } 11534 return *p.CNAME 11535 } 11536 11537 // GetHTTPSEnforced returns the HTTPSEnforced field if it's non-nil, zero value otherwise. 11538 func (p *PagesUpdate) GetHTTPSEnforced() bool { 11539 if p == nil || p.HTTPSEnforced == nil { 11540 return false 11541 } 11542 return *p.HTTPSEnforced 11543 } 11544 11545 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 11546 func (p *PagesUpdate) GetPublic() bool { 11547 if p == nil || p.Public == nil { 11548 return false 11549 } 11550 return *p.Public 11551 } 11552 11553 // GetSource returns the Source field. 11554 func (p *PagesUpdate) GetSource() *PagesSource { 11555 if p == nil { 11556 return nil 11557 } 11558 return p.Source 11559 } 11560 11561 // GetHook returns the Hook field. 11562 func (p *PingEvent) GetHook() *Hook { 11563 if p == nil { 11564 return nil 11565 } 11566 return p.Hook 11567 } 11568 11569 // GetHookID returns the HookID field if it's non-nil, zero value otherwise. 11570 func (p *PingEvent) GetHookID() int64 { 11571 if p == nil || p.HookID == nil { 11572 return 0 11573 } 11574 return *p.HookID 11575 } 11576 11577 // GetInstallation returns the Installation field. 11578 func (p *PingEvent) GetInstallation() *Installation { 11579 if p == nil { 11580 return nil 11581 } 11582 return p.Installation 11583 } 11584 11585 // GetOrg returns the Org field. 11586 func (p *PingEvent) GetOrg() *Organization { 11587 if p == nil { 11588 return nil 11589 } 11590 return p.Org 11591 } 11592 11593 // GetRepo returns the Repo field. 11594 func (p *PingEvent) GetRepo() *Repository { 11595 if p == nil { 11596 return nil 11597 } 11598 return p.Repo 11599 } 11600 11601 // GetSender returns the Sender field. 11602 func (p *PingEvent) GetSender() *User { 11603 if p == nil { 11604 return nil 11605 } 11606 return p.Sender 11607 } 11608 11609 // GetZen returns the Zen field if it's non-nil, zero value otherwise. 11610 func (p *PingEvent) GetZen() string { 11611 if p == nil || p.Zen == nil { 11612 return "" 11613 } 11614 return *p.Zen 11615 } 11616 11617 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 11618 func (p *Plan) GetCollaborators() int { 11619 if p == nil || p.Collaborators == nil { 11620 return 0 11621 } 11622 return *p.Collaborators 11623 } 11624 11625 // GetFilledSeats returns the FilledSeats field if it's non-nil, zero value otherwise. 11626 func (p *Plan) GetFilledSeats() int { 11627 if p == nil || p.FilledSeats == nil { 11628 return 0 11629 } 11630 return *p.FilledSeats 11631 } 11632 11633 // GetName returns the Name field if it's non-nil, zero value otherwise. 11634 func (p *Plan) GetName() string { 11635 if p == nil || p.Name == nil { 11636 return "" 11637 } 11638 return *p.Name 11639 } 11640 11641 // GetPrivateRepos returns the PrivateRepos field if it's non-nil, zero value otherwise. 11642 func (p *Plan) GetPrivateRepos() int { 11643 if p == nil || p.PrivateRepos == nil { 11644 return 0 11645 } 11646 return *p.PrivateRepos 11647 } 11648 11649 // GetSeats returns the Seats field if it's non-nil, zero value otherwise. 11650 func (p *Plan) GetSeats() int { 11651 if p == nil || p.Seats == nil { 11652 return 0 11653 } 11654 return *p.Seats 11655 } 11656 11657 // GetSpace returns the Space field if it's non-nil, zero value otherwise. 11658 func (p *Plan) GetSpace() int { 11659 if p == nil || p.Space == nil { 11660 return 0 11661 } 11662 return *p.Space 11663 } 11664 11665 // GetConfigURL returns the ConfigURL field if it's non-nil, zero value otherwise. 11666 func (p *PreReceiveHook) GetConfigURL() string { 11667 if p == nil || p.ConfigURL == nil { 11668 return "" 11669 } 11670 return *p.ConfigURL 11671 } 11672 11673 // GetEnforcement returns the Enforcement field if it's non-nil, zero value otherwise. 11674 func (p *PreReceiveHook) GetEnforcement() string { 11675 if p == nil || p.Enforcement == nil { 11676 return "" 11677 } 11678 return *p.Enforcement 11679 } 11680 11681 // GetID returns the ID field if it's non-nil, zero value otherwise. 11682 func (p *PreReceiveHook) GetID() int64 { 11683 if p == nil || p.ID == nil { 11684 return 0 11685 } 11686 return *p.ID 11687 } 11688 11689 // GetName returns the Name field if it's non-nil, zero value otherwise. 11690 func (p *PreReceiveHook) GetName() string { 11691 if p == nil || p.Name == nil { 11692 return "" 11693 } 11694 return *p.Name 11695 } 11696 11697 // GetHRef returns the HRef field if it's non-nil, zero value otherwise. 11698 func (p *PRLink) GetHRef() string { 11699 if p == nil || p.HRef == nil { 11700 return "" 11701 } 11702 return *p.HRef 11703 } 11704 11705 // GetComments returns the Comments field. 11706 func (p *PRLinks) GetComments() *PRLink { 11707 if p == nil { 11708 return nil 11709 } 11710 return p.Comments 11711 } 11712 11713 // GetCommits returns the Commits field. 11714 func (p *PRLinks) GetCommits() *PRLink { 11715 if p == nil { 11716 return nil 11717 } 11718 return p.Commits 11719 } 11720 11721 // GetHTML returns the HTML field. 11722 func (p *PRLinks) GetHTML() *PRLink { 11723 if p == nil { 11724 return nil 11725 } 11726 return p.HTML 11727 } 11728 11729 // GetIssue returns the Issue field. 11730 func (p *PRLinks) GetIssue() *PRLink { 11731 if p == nil { 11732 return nil 11733 } 11734 return p.Issue 11735 } 11736 11737 // GetReviewComment returns the ReviewComment field. 11738 func (p *PRLinks) GetReviewComment() *PRLink { 11739 if p == nil { 11740 return nil 11741 } 11742 return p.ReviewComment 11743 } 11744 11745 // GetReviewComments returns the ReviewComments field. 11746 func (p *PRLinks) GetReviewComments() *PRLink { 11747 if p == nil { 11748 return nil 11749 } 11750 return p.ReviewComments 11751 } 11752 11753 // GetSelf returns the Self field. 11754 func (p *PRLinks) GetSelf() *PRLink { 11755 if p == nil { 11756 return nil 11757 } 11758 return p.Self 11759 } 11760 11761 // GetStatuses returns the Statuses field. 11762 func (p *PRLinks) GetStatuses() *PRLink { 11763 if p == nil { 11764 return nil 11765 } 11766 return p.Statuses 11767 } 11768 11769 // GetBody returns the Body field if it's non-nil, zero value otherwise. 11770 func (p *Project) GetBody() string { 11771 if p == nil || p.Body == nil { 11772 return "" 11773 } 11774 return *p.Body 11775 } 11776 11777 // GetColumnsURL returns the ColumnsURL field if it's non-nil, zero value otherwise. 11778 func (p *Project) GetColumnsURL() string { 11779 if p == nil || p.ColumnsURL == nil { 11780 return "" 11781 } 11782 return *p.ColumnsURL 11783 } 11784 11785 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11786 func (p *Project) GetCreatedAt() Timestamp { 11787 if p == nil || p.CreatedAt == nil { 11788 return Timestamp{} 11789 } 11790 return *p.CreatedAt 11791 } 11792 11793 // GetCreator returns the Creator field. 11794 func (p *Project) GetCreator() *User { 11795 if p == nil { 11796 return nil 11797 } 11798 return p.Creator 11799 } 11800 11801 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11802 func (p *Project) GetHTMLURL() string { 11803 if p == nil || p.HTMLURL == nil { 11804 return "" 11805 } 11806 return *p.HTMLURL 11807 } 11808 11809 // GetID returns the ID field if it's non-nil, zero value otherwise. 11810 func (p *Project) GetID() int64 { 11811 if p == nil || p.ID == nil { 11812 return 0 11813 } 11814 return *p.ID 11815 } 11816 11817 // GetName returns the Name field if it's non-nil, zero value otherwise. 11818 func (p *Project) GetName() string { 11819 if p == nil || p.Name == nil { 11820 return "" 11821 } 11822 return *p.Name 11823 } 11824 11825 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11826 func (p *Project) GetNodeID() string { 11827 if p == nil || p.NodeID == nil { 11828 return "" 11829 } 11830 return *p.NodeID 11831 } 11832 11833 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 11834 func (p *Project) GetNumber() int { 11835 if p == nil || p.Number == nil { 11836 return 0 11837 } 11838 return *p.Number 11839 } 11840 11841 // GetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise. 11842 func (p *Project) GetOrganizationPermission() string { 11843 if p == nil || p.OrganizationPermission == nil { 11844 return "" 11845 } 11846 return *p.OrganizationPermission 11847 } 11848 11849 // GetOwnerURL returns the OwnerURL field if it's non-nil, zero value otherwise. 11850 func (p *Project) GetOwnerURL() string { 11851 if p == nil || p.OwnerURL == nil { 11852 return "" 11853 } 11854 return *p.OwnerURL 11855 } 11856 11857 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 11858 func (p *Project) GetPrivate() bool { 11859 if p == nil || p.Private == nil { 11860 return false 11861 } 11862 return *p.Private 11863 } 11864 11865 // GetState returns the State field if it's non-nil, zero value otherwise. 11866 func (p *Project) GetState() string { 11867 if p == nil || p.State == nil { 11868 return "" 11869 } 11870 return *p.State 11871 } 11872 11873 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11874 func (p *Project) GetUpdatedAt() Timestamp { 11875 if p == nil || p.UpdatedAt == nil { 11876 return Timestamp{} 11877 } 11878 return *p.UpdatedAt 11879 } 11880 11881 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11882 func (p *Project) GetURL() string { 11883 if p == nil || p.URL == nil { 11884 return "" 11885 } 11886 return *p.URL 11887 } 11888 11889 // GetFrom returns the From field if it's non-nil, zero value otherwise. 11890 func (p *ProjectBody) GetFrom() string { 11891 if p == nil || p.From == nil { 11892 return "" 11893 } 11894 return *p.From 11895 } 11896 11897 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 11898 func (p *ProjectCard) GetArchived() bool { 11899 if p == nil || p.Archived == nil { 11900 return false 11901 } 11902 return *p.Archived 11903 } 11904 11905 // GetColumnID returns the ColumnID field if it's non-nil, zero value otherwise. 11906 func (p *ProjectCard) GetColumnID() int64 { 11907 if p == nil || p.ColumnID == nil { 11908 return 0 11909 } 11910 return *p.ColumnID 11911 } 11912 11913 // GetColumnName returns the ColumnName field if it's non-nil, zero value otherwise. 11914 func (p *ProjectCard) GetColumnName() string { 11915 if p == nil || p.ColumnName == nil { 11916 return "" 11917 } 11918 return *p.ColumnName 11919 } 11920 11921 // GetColumnURL returns the ColumnURL field if it's non-nil, zero value otherwise. 11922 func (p *ProjectCard) GetColumnURL() string { 11923 if p == nil || p.ColumnURL == nil { 11924 return "" 11925 } 11926 return *p.ColumnURL 11927 } 11928 11929 // GetContentURL returns the ContentURL field if it's non-nil, zero value otherwise. 11930 func (p *ProjectCard) GetContentURL() string { 11931 if p == nil || p.ContentURL == nil { 11932 return "" 11933 } 11934 return *p.ContentURL 11935 } 11936 11937 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11938 func (p *ProjectCard) GetCreatedAt() Timestamp { 11939 if p == nil || p.CreatedAt == nil { 11940 return Timestamp{} 11941 } 11942 return *p.CreatedAt 11943 } 11944 11945 // GetCreator returns the Creator field. 11946 func (p *ProjectCard) GetCreator() *User { 11947 if p == nil { 11948 return nil 11949 } 11950 return p.Creator 11951 } 11952 11953 // GetID returns the ID field if it's non-nil, zero value otherwise. 11954 func (p *ProjectCard) GetID() int64 { 11955 if p == nil || p.ID == nil { 11956 return 0 11957 } 11958 return *p.ID 11959 } 11960 11961 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11962 func (p *ProjectCard) GetNodeID() string { 11963 if p == nil || p.NodeID == nil { 11964 return "" 11965 } 11966 return *p.NodeID 11967 } 11968 11969 // GetNote returns the Note field if it's non-nil, zero value otherwise. 11970 func (p *ProjectCard) GetNote() string { 11971 if p == nil || p.Note == nil { 11972 return "" 11973 } 11974 return *p.Note 11975 } 11976 11977 // GetPreviousColumnName returns the PreviousColumnName field if it's non-nil, zero value otherwise. 11978 func (p *ProjectCard) GetPreviousColumnName() string { 11979 if p == nil || p.PreviousColumnName == nil { 11980 return "" 11981 } 11982 return *p.PreviousColumnName 11983 } 11984 11985 // GetProjectID returns the ProjectID field if it's non-nil, zero value otherwise. 11986 func (p *ProjectCard) GetProjectID() int64 { 11987 if p == nil || p.ProjectID == nil { 11988 return 0 11989 } 11990 return *p.ProjectID 11991 } 11992 11993 // GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. 11994 func (p *ProjectCard) GetProjectURL() string { 11995 if p == nil || p.ProjectURL == nil { 11996 return "" 11997 } 11998 return *p.ProjectURL 11999 } 12000 12001 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 12002 func (p *ProjectCard) GetUpdatedAt() Timestamp { 12003 if p == nil || p.UpdatedAt == nil { 12004 return Timestamp{} 12005 } 12006 return *p.UpdatedAt 12007 } 12008 12009 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12010 func (p *ProjectCard) GetURL() string { 12011 if p == nil || p.URL == nil { 12012 return "" 12013 } 12014 return *p.URL 12015 } 12016 12017 // GetNote returns the Note field. 12018 func (p *ProjectCardChange) GetNote() *ProjectCardNote { 12019 if p == nil { 12020 return nil 12021 } 12022 return p.Note 12023 } 12024 12025 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12026 func (p *ProjectCardEvent) GetAction() string { 12027 if p == nil || p.Action == nil { 12028 return "" 12029 } 12030 return *p.Action 12031 } 12032 12033 // GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 12034 func (p *ProjectCardEvent) GetAfterID() int64 { 12035 if p == nil || p.AfterID == nil { 12036 return 0 12037 } 12038 return *p.AfterID 12039 } 12040 12041 // GetChanges returns the Changes field. 12042 func (p *ProjectCardEvent) GetChanges() *ProjectCardChange { 12043 if p == nil { 12044 return nil 12045 } 12046 return p.Changes 12047 } 12048 12049 // GetInstallation returns the Installation field. 12050 func (p *ProjectCardEvent) GetInstallation() *Installation { 12051 if p == nil { 12052 return nil 12053 } 12054 return p.Installation 12055 } 12056 12057 // GetOrg returns the Org field. 12058 func (p *ProjectCardEvent) GetOrg() *Organization { 12059 if p == nil { 12060 return nil 12061 } 12062 return p.Org 12063 } 12064 12065 // GetProjectCard returns the ProjectCard field. 12066 func (p *ProjectCardEvent) GetProjectCard() *ProjectCard { 12067 if p == nil { 12068 return nil 12069 } 12070 return p.ProjectCard 12071 } 12072 12073 // GetRepo returns the Repo field. 12074 func (p *ProjectCardEvent) GetRepo() *Repository { 12075 if p == nil { 12076 return nil 12077 } 12078 return p.Repo 12079 } 12080 12081 // GetSender returns the Sender field. 12082 func (p *ProjectCardEvent) GetSender() *User { 12083 if p == nil { 12084 return nil 12085 } 12086 return p.Sender 12087 } 12088 12089 // GetArchivedState returns the ArchivedState field if it's non-nil, zero value otherwise. 12090 func (p *ProjectCardListOptions) GetArchivedState() string { 12091 if p == nil || p.ArchivedState == nil { 12092 return "" 12093 } 12094 return *p.ArchivedState 12095 } 12096 12097 // GetFrom returns the From field if it's non-nil, zero value otherwise. 12098 func (p *ProjectCardNote) GetFrom() string { 12099 if p == nil || p.From == nil { 12100 return "" 12101 } 12102 return *p.From 12103 } 12104 12105 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 12106 func (p *ProjectCardOptions) GetArchived() bool { 12107 if p == nil || p.Archived == nil { 12108 return false 12109 } 12110 return *p.Archived 12111 } 12112 12113 // GetBody returns the Body field. 12114 func (p *ProjectChange) GetBody() *ProjectBody { 12115 if p == nil { 12116 return nil 12117 } 12118 return p.Body 12119 } 12120 12121 // GetName returns the Name field. 12122 func (p *ProjectChange) GetName() *ProjectName { 12123 if p == nil { 12124 return nil 12125 } 12126 return p.Name 12127 } 12128 12129 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 12130 func (p *ProjectCollaboratorOptions) GetPermission() string { 12131 if p == nil || p.Permission == nil { 12132 return "" 12133 } 12134 return *p.Permission 12135 } 12136 12137 // GetCardsURL returns the CardsURL field if it's non-nil, zero value otherwise. 12138 func (p *ProjectColumn) GetCardsURL() string { 12139 if p == nil || p.CardsURL == nil { 12140 return "" 12141 } 12142 return *p.CardsURL 12143 } 12144 12145 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12146 func (p *ProjectColumn) GetCreatedAt() Timestamp { 12147 if p == nil || p.CreatedAt == nil { 12148 return Timestamp{} 12149 } 12150 return *p.CreatedAt 12151 } 12152 12153 // GetID returns the ID field if it's non-nil, zero value otherwise. 12154 func (p *ProjectColumn) GetID() int64 { 12155 if p == nil || p.ID == nil { 12156 return 0 12157 } 12158 return *p.ID 12159 } 12160 12161 // GetName returns the Name field if it's non-nil, zero value otherwise. 12162 func (p *ProjectColumn) GetName() string { 12163 if p == nil || p.Name == nil { 12164 return "" 12165 } 12166 return *p.Name 12167 } 12168 12169 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12170 func (p *ProjectColumn) GetNodeID() string { 12171 if p == nil || p.NodeID == nil { 12172 return "" 12173 } 12174 return *p.NodeID 12175 } 12176 12177 // GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. 12178 func (p *ProjectColumn) GetProjectURL() string { 12179 if p == nil || p.ProjectURL == nil { 12180 return "" 12181 } 12182 return *p.ProjectURL 12183 } 12184 12185 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 12186 func (p *ProjectColumn) GetUpdatedAt() Timestamp { 12187 if p == nil || p.UpdatedAt == nil { 12188 return Timestamp{} 12189 } 12190 return *p.UpdatedAt 12191 } 12192 12193 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12194 func (p *ProjectColumn) GetURL() string { 12195 if p == nil || p.URL == nil { 12196 return "" 12197 } 12198 return *p.URL 12199 } 12200 12201 // GetName returns the Name field. 12202 func (p *ProjectColumnChange) GetName() *ProjectColumnName { 12203 if p == nil { 12204 return nil 12205 } 12206 return p.Name 12207 } 12208 12209 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12210 func (p *ProjectColumnEvent) GetAction() string { 12211 if p == nil || p.Action == nil { 12212 return "" 12213 } 12214 return *p.Action 12215 } 12216 12217 // GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 12218 func (p *ProjectColumnEvent) GetAfterID() int64 { 12219 if p == nil || p.AfterID == nil { 12220 return 0 12221 } 12222 return *p.AfterID 12223 } 12224 12225 // GetChanges returns the Changes field. 12226 func (p *ProjectColumnEvent) GetChanges() *ProjectColumnChange { 12227 if p == nil { 12228 return nil 12229 } 12230 return p.Changes 12231 } 12232 12233 // GetInstallation returns the Installation field. 12234 func (p *ProjectColumnEvent) GetInstallation() *Installation { 12235 if p == nil { 12236 return nil 12237 } 12238 return p.Installation 12239 } 12240 12241 // GetOrg returns the Org field. 12242 func (p *ProjectColumnEvent) GetOrg() *Organization { 12243 if p == nil { 12244 return nil 12245 } 12246 return p.Org 12247 } 12248 12249 // GetProjectColumn returns the ProjectColumn field. 12250 func (p *ProjectColumnEvent) GetProjectColumn() *ProjectColumn { 12251 if p == nil { 12252 return nil 12253 } 12254 return p.ProjectColumn 12255 } 12256 12257 // GetRepo returns the Repo field. 12258 func (p *ProjectColumnEvent) GetRepo() *Repository { 12259 if p == nil { 12260 return nil 12261 } 12262 return p.Repo 12263 } 12264 12265 // GetSender returns the Sender field. 12266 func (p *ProjectColumnEvent) GetSender() *User { 12267 if p == nil { 12268 return nil 12269 } 12270 return p.Sender 12271 } 12272 12273 // GetFrom returns the From field if it's non-nil, zero value otherwise. 12274 func (p *ProjectColumnName) GetFrom() string { 12275 if p == nil || p.From == nil { 12276 return "" 12277 } 12278 return *p.From 12279 } 12280 12281 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12282 func (p *ProjectEvent) GetAction() string { 12283 if p == nil || p.Action == nil { 12284 return "" 12285 } 12286 return *p.Action 12287 } 12288 12289 // GetChanges returns the Changes field. 12290 func (p *ProjectEvent) GetChanges() *ProjectChange { 12291 if p == nil { 12292 return nil 12293 } 12294 return p.Changes 12295 } 12296 12297 // GetInstallation returns the Installation field. 12298 func (p *ProjectEvent) GetInstallation() *Installation { 12299 if p == nil { 12300 return nil 12301 } 12302 return p.Installation 12303 } 12304 12305 // GetOrg returns the Org field. 12306 func (p *ProjectEvent) GetOrg() *Organization { 12307 if p == nil { 12308 return nil 12309 } 12310 return p.Org 12311 } 12312 12313 // GetProject returns the Project field. 12314 func (p *ProjectEvent) GetProject() *Project { 12315 if p == nil { 12316 return nil 12317 } 12318 return p.Project 12319 } 12320 12321 // GetRepo returns the Repo field. 12322 func (p *ProjectEvent) GetRepo() *Repository { 12323 if p == nil { 12324 return nil 12325 } 12326 return p.Repo 12327 } 12328 12329 // GetSender returns the Sender field. 12330 func (p *ProjectEvent) GetSender() *User { 12331 if p == nil { 12332 return nil 12333 } 12334 return p.Sender 12335 } 12336 12337 // GetFrom returns the From field if it's non-nil, zero value otherwise. 12338 func (p *ProjectName) GetFrom() string { 12339 if p == nil || p.From == nil { 12340 return "" 12341 } 12342 return *p.From 12343 } 12344 12345 // GetBody returns the Body field if it's non-nil, zero value otherwise. 12346 func (p *ProjectOptions) GetBody() string { 12347 if p == nil || p.Body == nil { 12348 return "" 12349 } 12350 return *p.Body 12351 } 12352 12353 // GetName returns the Name field if it's non-nil, zero value otherwise. 12354 func (p *ProjectOptions) GetName() string { 12355 if p == nil || p.Name == nil { 12356 return "" 12357 } 12358 return *p.Name 12359 } 12360 12361 // GetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise. 12362 func (p *ProjectOptions) GetOrganizationPermission() string { 12363 if p == nil || p.OrganizationPermission == nil { 12364 return "" 12365 } 12366 return *p.OrganizationPermission 12367 } 12368 12369 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 12370 func (p *ProjectOptions) GetPrivate() bool { 12371 if p == nil || p.Private == nil { 12372 return false 12373 } 12374 return *p.Private 12375 } 12376 12377 // GetState returns the State field if it's non-nil, zero value otherwise. 12378 func (p *ProjectOptions) GetState() string { 12379 if p == nil || p.State == nil { 12380 return "" 12381 } 12382 return *p.State 12383 } 12384 12385 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 12386 func (p *ProjectPermissionLevel) GetPermission() string { 12387 if p == nil || p.Permission == nil { 12388 return "" 12389 } 12390 return *p.Permission 12391 } 12392 12393 // GetUser returns the User field. 12394 func (p *ProjectPermissionLevel) GetUser() *User { 12395 if p == nil { 12396 return nil 12397 } 12398 return p.User 12399 } 12400 12401 // GetAllowDeletions returns the AllowDeletions field. 12402 func (p *Protection) GetAllowDeletions() *AllowDeletions { 12403 if p == nil { 12404 return nil 12405 } 12406 return p.AllowDeletions 12407 } 12408 12409 // GetAllowForcePushes returns the AllowForcePushes field. 12410 func (p *Protection) GetAllowForcePushes() *AllowForcePushes { 12411 if p == nil { 12412 return nil 12413 } 12414 return p.AllowForcePushes 12415 } 12416 12417 // GetAllowForkSyncing returns the AllowForkSyncing field. 12418 func (p *Protection) GetAllowForkSyncing() *AllowForkSyncing { 12419 if p == nil { 12420 return nil 12421 } 12422 return p.AllowForkSyncing 12423 } 12424 12425 // GetEnforceAdmins returns the EnforceAdmins field. 12426 func (p *Protection) GetEnforceAdmins() *AdminEnforcement { 12427 if p == nil { 12428 return nil 12429 } 12430 return p.EnforceAdmins 12431 } 12432 12433 // GetLockBranch returns the LockBranch field. 12434 func (p *Protection) GetLockBranch() *LockBranch { 12435 if p == nil { 12436 return nil 12437 } 12438 return p.LockBranch 12439 } 12440 12441 // GetRequiredConversationResolution returns the RequiredConversationResolution field. 12442 func (p *Protection) GetRequiredConversationResolution() *RequiredConversationResolution { 12443 if p == nil { 12444 return nil 12445 } 12446 return p.RequiredConversationResolution 12447 } 12448 12449 // GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. 12450 func (p *Protection) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcement { 12451 if p == nil { 12452 return nil 12453 } 12454 return p.RequiredPullRequestReviews 12455 } 12456 12457 // GetRequiredStatusChecks returns the RequiredStatusChecks field. 12458 func (p *Protection) GetRequiredStatusChecks() *RequiredStatusChecks { 12459 if p == nil { 12460 return nil 12461 } 12462 return p.RequiredStatusChecks 12463 } 12464 12465 // GetRequireLinearHistory returns the RequireLinearHistory field. 12466 func (p *Protection) GetRequireLinearHistory() *RequireLinearHistory { 12467 if p == nil { 12468 return nil 12469 } 12470 return p.RequireLinearHistory 12471 } 12472 12473 // GetRestrictions returns the Restrictions field. 12474 func (p *Protection) GetRestrictions() *BranchRestrictions { 12475 if p == nil { 12476 return nil 12477 } 12478 return p.Restrictions 12479 } 12480 12481 // GetAdminEnforced returns the AdminEnforced field. 12482 func (p *ProtectionChanges) GetAdminEnforced() *AdminEnforcedChanges { 12483 if p == nil { 12484 return nil 12485 } 12486 return p.AdminEnforced 12487 } 12488 12489 // GetAllowDeletionsEnforcementLevel returns the AllowDeletionsEnforcementLevel field. 12490 func (p *ProtectionChanges) GetAllowDeletionsEnforcementLevel() *AllowDeletionsEnforcementLevelChanges { 12491 if p == nil { 12492 return nil 12493 } 12494 return p.AllowDeletionsEnforcementLevel 12495 } 12496 12497 // GetAuthorizedActorNames returns the AuthorizedActorNames field. 12498 func (p *ProtectionChanges) GetAuthorizedActorNames() *AuthorizedActorNames { 12499 if p == nil { 12500 return nil 12501 } 12502 return p.AuthorizedActorNames 12503 } 12504 12505 // GetAuthorizedActorsOnly returns the AuthorizedActorsOnly field. 12506 func (p *ProtectionChanges) GetAuthorizedActorsOnly() *AuthorizedActorsOnly { 12507 if p == nil { 12508 return nil 12509 } 12510 return p.AuthorizedActorsOnly 12511 } 12512 12513 // GetAuthorizedDismissalActorsOnly returns the AuthorizedDismissalActorsOnly field. 12514 func (p *ProtectionChanges) GetAuthorizedDismissalActorsOnly() *AuthorizedDismissalActorsOnlyChanges { 12515 if p == nil { 12516 return nil 12517 } 12518 return p.AuthorizedDismissalActorsOnly 12519 } 12520 12521 // GetCreateProtected returns the CreateProtected field. 12522 func (p *ProtectionChanges) GetCreateProtected() *CreateProtectedChanges { 12523 if p == nil { 12524 return nil 12525 } 12526 return p.CreateProtected 12527 } 12528 12529 // GetDismissStaleReviewsOnPush returns the DismissStaleReviewsOnPush field. 12530 func (p *ProtectionChanges) GetDismissStaleReviewsOnPush() *DismissStaleReviewsOnPushChanges { 12531 if p == nil { 12532 return nil 12533 } 12534 return p.DismissStaleReviewsOnPush 12535 } 12536 12537 // GetLinearHistoryRequirementEnforcementLevel returns the LinearHistoryRequirementEnforcementLevel field. 12538 func (p *ProtectionChanges) GetLinearHistoryRequirementEnforcementLevel() *LinearHistoryRequirementEnforcementLevelChanges { 12539 if p == nil { 12540 return nil 12541 } 12542 return p.LinearHistoryRequirementEnforcementLevel 12543 } 12544 12545 // GetPullRequestReviewsEnforcementLevel returns the PullRequestReviewsEnforcementLevel field. 12546 func (p *ProtectionChanges) GetPullRequestReviewsEnforcementLevel() *PullRequestReviewsEnforcementLevelChanges { 12547 if p == nil { 12548 return nil 12549 } 12550 return p.PullRequestReviewsEnforcementLevel 12551 } 12552 12553 // GetRequireCodeOwnerReview returns the RequireCodeOwnerReview field. 12554 func (p *ProtectionChanges) GetRequireCodeOwnerReview() *RequireCodeOwnerReviewChanges { 12555 if p == nil { 12556 return nil 12557 } 12558 return p.RequireCodeOwnerReview 12559 } 12560 12561 // GetRequiredConversationResolutionLevel returns the RequiredConversationResolutionLevel field. 12562 func (p *ProtectionChanges) GetRequiredConversationResolutionLevel() *RequiredConversationResolutionLevelChanges { 12563 if p == nil { 12564 return nil 12565 } 12566 return p.RequiredConversationResolutionLevel 12567 } 12568 12569 // GetRequiredDeploymentsEnforcementLevel returns the RequiredDeploymentsEnforcementLevel field. 12570 func (p *ProtectionChanges) GetRequiredDeploymentsEnforcementLevel() *RequiredDeploymentsEnforcementLevelChanges { 12571 if p == nil { 12572 return nil 12573 } 12574 return p.RequiredDeploymentsEnforcementLevel 12575 } 12576 12577 // GetRequiredStatusChecks returns the RequiredStatusChecks field. 12578 func (p *ProtectionChanges) GetRequiredStatusChecks() *RequiredStatusChecksChanges { 12579 if p == nil { 12580 return nil 12581 } 12582 return p.RequiredStatusChecks 12583 } 12584 12585 // GetRequiredStatusChecksEnforcementLevel returns the RequiredStatusChecksEnforcementLevel field. 12586 func (p *ProtectionChanges) GetRequiredStatusChecksEnforcementLevel() *RequiredStatusChecksEnforcementLevelChanges { 12587 if p == nil { 12588 return nil 12589 } 12590 return p.RequiredStatusChecksEnforcementLevel 12591 } 12592 12593 // GetSignatureRequirementEnforcementLevel returns the SignatureRequirementEnforcementLevel field. 12594 func (p *ProtectionChanges) GetSignatureRequirementEnforcementLevel() *SignatureRequirementEnforcementLevelChanges { 12595 if p == nil { 12596 return nil 12597 } 12598 return p.SignatureRequirementEnforcementLevel 12599 } 12600 12601 // GetAllowDeletions returns the AllowDeletions field if it's non-nil, zero value otherwise. 12602 func (p *ProtectionRequest) GetAllowDeletions() bool { 12603 if p == nil || p.AllowDeletions == nil { 12604 return false 12605 } 12606 return *p.AllowDeletions 12607 } 12608 12609 // GetAllowForcePushes returns the AllowForcePushes field if it's non-nil, zero value otherwise. 12610 func (p *ProtectionRequest) GetAllowForcePushes() bool { 12611 if p == nil || p.AllowForcePushes == nil { 12612 return false 12613 } 12614 return *p.AllowForcePushes 12615 } 12616 12617 // GetRequiredConversationResolution returns the RequiredConversationResolution field if it's non-nil, zero value otherwise. 12618 func (p *ProtectionRequest) GetRequiredConversationResolution() bool { 12619 if p == nil || p.RequiredConversationResolution == nil { 12620 return false 12621 } 12622 return *p.RequiredConversationResolution 12623 } 12624 12625 // GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. 12626 func (p *ProtectionRequest) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcementRequest { 12627 if p == nil { 12628 return nil 12629 } 12630 return p.RequiredPullRequestReviews 12631 } 12632 12633 // GetRequiredStatusChecks returns the RequiredStatusChecks field. 12634 func (p *ProtectionRequest) GetRequiredStatusChecks() *RequiredStatusChecks { 12635 if p == nil { 12636 return nil 12637 } 12638 return p.RequiredStatusChecks 12639 } 12640 12641 // GetRequireLinearHistory returns the RequireLinearHistory field if it's non-nil, zero value otherwise. 12642 func (p *ProtectionRequest) GetRequireLinearHistory() bool { 12643 if p == nil || p.RequireLinearHistory == nil { 12644 return false 12645 } 12646 return *p.RequireLinearHistory 12647 } 12648 12649 // GetRestrictions returns the Restrictions field. 12650 func (p *ProtectionRequest) GetRestrictions() *BranchRestrictionsRequest { 12651 if p == nil { 12652 return nil 12653 } 12654 return p.Restrictions 12655 } 12656 12657 // GetID returns the ID field if it's non-nil, zero value otherwise. 12658 func (p *ProtectionRule) GetID() int64 { 12659 if p == nil || p.ID == nil { 12660 return 0 12661 } 12662 return *p.ID 12663 } 12664 12665 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12666 func (p *ProtectionRule) GetNodeID() string { 12667 if p == nil || p.NodeID == nil { 12668 return "" 12669 } 12670 return *p.NodeID 12671 } 12672 12673 // GetType returns the Type field if it's non-nil, zero value otherwise. 12674 func (p *ProtectionRule) GetType() string { 12675 if p == nil || p.Type == nil { 12676 return "" 12677 } 12678 return *p.Type 12679 } 12680 12681 // GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. 12682 func (p *ProtectionRule) GetWaitTimer() int { 12683 if p == nil || p.WaitTimer == nil { 12684 return 0 12685 } 12686 return *p.WaitTimer 12687 } 12688 12689 // GetInstallation returns the Installation field. 12690 func (p *PublicEvent) GetInstallation() *Installation { 12691 if p == nil { 12692 return nil 12693 } 12694 return p.Installation 12695 } 12696 12697 // GetRepo returns the Repo field. 12698 func (p *PublicEvent) GetRepo() *Repository { 12699 if p == nil { 12700 return nil 12701 } 12702 return p.Repo 12703 } 12704 12705 // GetSender returns the Sender field. 12706 func (p *PublicEvent) GetSender() *User { 12707 if p == nil { 12708 return nil 12709 } 12710 return p.Sender 12711 } 12712 12713 // GetKey returns the Key field if it's non-nil, zero value otherwise. 12714 func (p *PublicKey) GetKey() string { 12715 if p == nil || p.Key == nil { 12716 return "" 12717 } 12718 return *p.Key 12719 } 12720 12721 // GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. 12722 func (p *PublicKey) GetKeyID() string { 12723 if p == nil || p.KeyID == nil { 12724 return "" 12725 } 12726 return *p.KeyID 12727 } 12728 12729 // GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 12730 func (p *PullRequest) GetActiveLockReason() string { 12731 if p == nil || p.ActiveLockReason == nil { 12732 return "" 12733 } 12734 return *p.ActiveLockReason 12735 } 12736 12737 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 12738 func (p *PullRequest) GetAdditions() int { 12739 if p == nil || p.Additions == nil { 12740 return 0 12741 } 12742 return *p.Additions 12743 } 12744 12745 // GetAssignee returns the Assignee field. 12746 func (p *PullRequest) GetAssignee() *User { 12747 if p == nil { 12748 return nil 12749 } 12750 return p.Assignee 12751 } 12752 12753 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 12754 func (p *PullRequest) GetAuthorAssociation() string { 12755 if p == nil || p.AuthorAssociation == nil { 12756 return "" 12757 } 12758 return *p.AuthorAssociation 12759 } 12760 12761 // GetAutoMerge returns the AutoMerge field. 12762 func (p *PullRequest) GetAutoMerge() *PullRequestAutoMerge { 12763 if p == nil { 12764 return nil 12765 } 12766 return p.AutoMerge 12767 } 12768 12769 // GetBase returns the Base field. 12770 func (p *PullRequest) GetBase() *PullRequestBranch { 12771 if p == nil { 12772 return nil 12773 } 12774 return p.Base 12775 } 12776 12777 // GetBody returns the Body field if it's non-nil, zero value otherwise. 12778 func (p *PullRequest) GetBody() string { 12779 if p == nil || p.Body == nil { 12780 return "" 12781 } 12782 return *p.Body 12783 } 12784 12785 // GetChangedFiles returns the ChangedFiles field if it's non-nil, zero value otherwise. 12786 func (p *PullRequest) GetChangedFiles() int { 12787 if p == nil || p.ChangedFiles == nil { 12788 return 0 12789 } 12790 return *p.ChangedFiles 12791 } 12792 12793 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 12794 func (p *PullRequest) GetClosedAt() time.Time { 12795 if p == nil || p.ClosedAt == nil { 12796 return time.Time{} 12797 } 12798 return *p.ClosedAt 12799 } 12800 12801 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 12802 func (p *PullRequest) GetComments() int { 12803 if p == nil || p.Comments == nil { 12804 return 0 12805 } 12806 return *p.Comments 12807 } 12808 12809 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 12810 func (p *PullRequest) GetCommentsURL() string { 12811 if p == nil || p.CommentsURL == nil { 12812 return "" 12813 } 12814 return *p.CommentsURL 12815 } 12816 12817 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 12818 func (p *PullRequest) GetCommits() int { 12819 if p == nil || p.Commits == nil { 12820 return 0 12821 } 12822 return *p.Commits 12823 } 12824 12825 // GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. 12826 func (p *PullRequest) GetCommitsURL() string { 12827 if p == nil || p.CommitsURL == nil { 12828 return "" 12829 } 12830 return *p.CommitsURL 12831 } 12832 12833 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12834 func (p *PullRequest) GetCreatedAt() time.Time { 12835 if p == nil || p.CreatedAt == nil { 12836 return time.Time{} 12837 } 12838 return *p.CreatedAt 12839 } 12840 12841 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 12842 func (p *PullRequest) GetDeletions() int { 12843 if p == nil || p.Deletions == nil { 12844 return 0 12845 } 12846 return *p.Deletions 12847 } 12848 12849 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 12850 func (p *PullRequest) GetDiffURL() string { 12851 if p == nil || p.DiffURL == nil { 12852 return "" 12853 } 12854 return *p.DiffURL 12855 } 12856 12857 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 12858 func (p *PullRequest) GetDraft() bool { 12859 if p == nil || p.Draft == nil { 12860 return false 12861 } 12862 return *p.Draft 12863 } 12864 12865 // GetHead returns the Head field. 12866 func (p *PullRequest) GetHead() *PullRequestBranch { 12867 if p == nil { 12868 return nil 12869 } 12870 return p.Head 12871 } 12872 12873 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 12874 func (p *PullRequest) GetHTMLURL() string { 12875 if p == nil || p.HTMLURL == nil { 12876 return "" 12877 } 12878 return *p.HTMLURL 12879 } 12880 12881 // GetID returns the ID field if it's non-nil, zero value otherwise. 12882 func (p *PullRequest) GetID() int64 { 12883 if p == nil || p.ID == nil { 12884 return 0 12885 } 12886 return *p.ID 12887 } 12888 12889 // GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 12890 func (p *PullRequest) GetIssueURL() string { 12891 if p == nil || p.IssueURL == nil { 12892 return "" 12893 } 12894 return *p.IssueURL 12895 } 12896 12897 // GetLinks returns the Links field. 12898 func (p *PullRequest) GetLinks() *PRLinks { 12899 if p == nil { 12900 return nil 12901 } 12902 return p.Links 12903 } 12904 12905 // GetLocked returns the Locked field if it's non-nil, zero value otherwise. 12906 func (p *PullRequest) GetLocked() bool { 12907 if p == nil || p.Locked == nil { 12908 return false 12909 } 12910 return *p.Locked 12911 } 12912 12913 // GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 12914 func (p *PullRequest) GetMaintainerCanModify() bool { 12915 if p == nil || p.MaintainerCanModify == nil { 12916 return false 12917 } 12918 return *p.MaintainerCanModify 12919 } 12920 12921 // GetMergeable returns the Mergeable field if it's non-nil, zero value otherwise. 12922 func (p *PullRequest) GetMergeable() bool { 12923 if p == nil || p.Mergeable == nil { 12924 return false 12925 } 12926 return *p.Mergeable 12927 } 12928 12929 // GetMergeableState returns the MergeableState field if it's non-nil, zero value otherwise. 12930 func (p *PullRequest) GetMergeableState() string { 12931 if p == nil || p.MergeableState == nil { 12932 return "" 12933 } 12934 return *p.MergeableState 12935 } 12936 12937 // GetMergeCommitSHA returns the MergeCommitSHA field if it's non-nil, zero value otherwise. 12938 func (p *PullRequest) GetMergeCommitSHA() string { 12939 if p == nil || p.MergeCommitSHA == nil { 12940 return "" 12941 } 12942 return *p.MergeCommitSHA 12943 } 12944 12945 // GetMerged returns the Merged field if it's non-nil, zero value otherwise. 12946 func (p *PullRequest) GetMerged() bool { 12947 if p == nil || p.Merged == nil { 12948 return false 12949 } 12950 return *p.Merged 12951 } 12952 12953 // GetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise. 12954 func (p *PullRequest) GetMergedAt() time.Time { 12955 if p == nil || p.MergedAt == nil { 12956 return time.Time{} 12957 } 12958 return *p.MergedAt 12959 } 12960 12961 // GetMergedBy returns the MergedBy field. 12962 func (p *PullRequest) GetMergedBy() *User { 12963 if p == nil { 12964 return nil 12965 } 12966 return p.MergedBy 12967 } 12968 12969 // GetMilestone returns the Milestone field. 12970 func (p *PullRequest) GetMilestone() *Milestone { 12971 if p == nil { 12972 return nil 12973 } 12974 return p.Milestone 12975 } 12976 12977 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12978 func (p *PullRequest) GetNodeID() string { 12979 if p == nil || p.NodeID == nil { 12980 return "" 12981 } 12982 return *p.NodeID 12983 } 12984 12985 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 12986 func (p *PullRequest) GetNumber() int { 12987 if p == nil || p.Number == nil { 12988 return 0 12989 } 12990 return *p.Number 12991 } 12992 12993 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 12994 func (p *PullRequest) GetPatchURL() string { 12995 if p == nil || p.PatchURL == nil { 12996 return "" 12997 } 12998 return *p.PatchURL 12999 } 13000 13001 // GetRebaseable returns the Rebaseable field if it's non-nil, zero value otherwise. 13002 func (p *PullRequest) GetRebaseable() bool { 13003 if p == nil || p.Rebaseable == nil { 13004 return false 13005 } 13006 return *p.Rebaseable 13007 } 13008 13009 // GetReviewComments returns the ReviewComments field if it's non-nil, zero value otherwise. 13010 func (p *PullRequest) GetReviewComments() int { 13011 if p == nil || p.ReviewComments == nil { 13012 return 0 13013 } 13014 return *p.ReviewComments 13015 } 13016 13017 // GetReviewCommentsURL returns the ReviewCommentsURL field if it's non-nil, zero value otherwise. 13018 func (p *PullRequest) GetReviewCommentsURL() string { 13019 if p == nil || p.ReviewCommentsURL == nil { 13020 return "" 13021 } 13022 return *p.ReviewCommentsURL 13023 } 13024 13025 // GetReviewCommentURL returns the ReviewCommentURL field if it's non-nil, zero value otherwise. 13026 func (p *PullRequest) GetReviewCommentURL() string { 13027 if p == nil || p.ReviewCommentURL == nil { 13028 return "" 13029 } 13030 return *p.ReviewCommentURL 13031 } 13032 13033 // GetState returns the State field if it's non-nil, zero value otherwise. 13034 func (p *PullRequest) GetState() string { 13035 if p == nil || p.State == nil { 13036 return "" 13037 } 13038 return *p.State 13039 } 13040 13041 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 13042 func (p *PullRequest) GetStatusesURL() string { 13043 if p == nil || p.StatusesURL == nil { 13044 return "" 13045 } 13046 return *p.StatusesURL 13047 } 13048 13049 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 13050 func (p *PullRequest) GetTitle() string { 13051 if p == nil || p.Title == nil { 13052 return "" 13053 } 13054 return *p.Title 13055 } 13056 13057 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13058 func (p *PullRequest) GetUpdatedAt() time.Time { 13059 if p == nil || p.UpdatedAt == nil { 13060 return time.Time{} 13061 } 13062 return *p.UpdatedAt 13063 } 13064 13065 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13066 func (p *PullRequest) GetURL() string { 13067 if p == nil || p.URL == nil { 13068 return "" 13069 } 13070 return *p.URL 13071 } 13072 13073 // GetUser returns the User field. 13074 func (p *PullRequest) GetUser() *User { 13075 if p == nil { 13076 return nil 13077 } 13078 return p.User 13079 } 13080 13081 // GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. 13082 func (p *PullRequestAutoMerge) GetCommitMessage() string { 13083 if p == nil || p.CommitMessage == nil { 13084 return "" 13085 } 13086 return *p.CommitMessage 13087 } 13088 13089 // GetCommitTitle returns the CommitTitle field if it's non-nil, zero value otherwise. 13090 func (p *PullRequestAutoMerge) GetCommitTitle() string { 13091 if p == nil || p.CommitTitle == nil { 13092 return "" 13093 } 13094 return *p.CommitTitle 13095 } 13096 13097 // GetEnabledBy returns the EnabledBy field. 13098 func (p *PullRequestAutoMerge) GetEnabledBy() *User { 13099 if p == nil { 13100 return nil 13101 } 13102 return p.EnabledBy 13103 } 13104 13105 // GetMergeMethod returns the MergeMethod field if it's non-nil, zero value otherwise. 13106 func (p *PullRequestAutoMerge) GetMergeMethod() string { 13107 if p == nil || p.MergeMethod == nil { 13108 return "" 13109 } 13110 return *p.MergeMethod 13111 } 13112 13113 // GetLabel returns the Label field if it's non-nil, zero value otherwise. 13114 func (p *PullRequestBranch) GetLabel() string { 13115 if p == nil || p.Label == nil { 13116 return "" 13117 } 13118 return *p.Label 13119 } 13120 13121 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 13122 func (p *PullRequestBranch) GetRef() string { 13123 if p == nil || p.Ref == nil { 13124 return "" 13125 } 13126 return *p.Ref 13127 } 13128 13129 // GetRepo returns the Repo field. 13130 func (p *PullRequestBranch) GetRepo() *Repository { 13131 if p == nil { 13132 return nil 13133 } 13134 return p.Repo 13135 } 13136 13137 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 13138 func (p *PullRequestBranch) GetSHA() string { 13139 if p == nil || p.SHA == nil { 13140 return "" 13141 } 13142 return *p.SHA 13143 } 13144 13145 // GetUser returns the User field. 13146 func (p *PullRequestBranch) GetUser() *User { 13147 if p == nil { 13148 return nil 13149 } 13150 return p.User 13151 } 13152 13153 // GetExpectedHeadSHA returns the ExpectedHeadSHA field if it's non-nil, zero value otherwise. 13154 func (p *PullRequestBranchUpdateOptions) GetExpectedHeadSHA() string { 13155 if p == nil || p.ExpectedHeadSHA == nil { 13156 return "" 13157 } 13158 return *p.ExpectedHeadSHA 13159 } 13160 13161 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 13162 func (p *PullRequestBranchUpdateResponse) GetMessage() string { 13163 if p == nil || p.Message == nil { 13164 return "" 13165 } 13166 return *p.Message 13167 } 13168 13169 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13170 func (p *PullRequestBranchUpdateResponse) GetURL() string { 13171 if p == nil || p.URL == nil { 13172 return "" 13173 } 13174 return *p.URL 13175 } 13176 13177 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 13178 func (p *PullRequestComment) GetAuthorAssociation() string { 13179 if p == nil || p.AuthorAssociation == nil { 13180 return "" 13181 } 13182 return *p.AuthorAssociation 13183 } 13184 13185 // GetBody returns the Body field if it's non-nil, zero value otherwise. 13186 func (p *PullRequestComment) GetBody() string { 13187 if p == nil || p.Body == nil { 13188 return "" 13189 } 13190 return *p.Body 13191 } 13192 13193 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 13194 func (p *PullRequestComment) GetCommitID() string { 13195 if p == nil || p.CommitID == nil { 13196 return "" 13197 } 13198 return *p.CommitID 13199 } 13200 13201 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13202 func (p *PullRequestComment) GetCreatedAt() time.Time { 13203 if p == nil || p.CreatedAt == nil { 13204 return time.Time{} 13205 } 13206 return *p.CreatedAt 13207 } 13208 13209 // GetDiffHunk returns the DiffHunk field if it's non-nil, zero value otherwise. 13210 func (p *PullRequestComment) GetDiffHunk() string { 13211 if p == nil || p.DiffHunk == nil { 13212 return "" 13213 } 13214 return *p.DiffHunk 13215 } 13216 13217 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13218 func (p *PullRequestComment) GetHTMLURL() string { 13219 if p == nil || p.HTMLURL == nil { 13220 return "" 13221 } 13222 return *p.HTMLURL 13223 } 13224 13225 // GetID returns the ID field if it's non-nil, zero value otherwise. 13226 func (p *PullRequestComment) GetID() int64 { 13227 if p == nil || p.ID == nil { 13228 return 0 13229 } 13230 return *p.ID 13231 } 13232 13233 // GetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise. 13234 func (p *PullRequestComment) GetInReplyTo() int64 { 13235 if p == nil || p.InReplyTo == nil { 13236 return 0 13237 } 13238 return *p.InReplyTo 13239 } 13240 13241 // GetLine returns the Line field if it's non-nil, zero value otherwise. 13242 func (p *PullRequestComment) GetLine() int { 13243 if p == nil || p.Line == nil { 13244 return 0 13245 } 13246 return *p.Line 13247 } 13248 13249 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13250 func (p *PullRequestComment) GetNodeID() string { 13251 if p == nil || p.NodeID == nil { 13252 return "" 13253 } 13254 return *p.NodeID 13255 } 13256 13257 // GetOriginalCommitID returns the OriginalCommitID field if it's non-nil, zero value otherwise. 13258 func (p *PullRequestComment) GetOriginalCommitID() string { 13259 if p == nil || p.OriginalCommitID == nil { 13260 return "" 13261 } 13262 return *p.OriginalCommitID 13263 } 13264 13265 // GetOriginalLine returns the OriginalLine field if it's non-nil, zero value otherwise. 13266 func (p *PullRequestComment) GetOriginalLine() int { 13267 if p == nil || p.OriginalLine == nil { 13268 return 0 13269 } 13270 return *p.OriginalLine 13271 } 13272 13273 // GetOriginalPosition returns the OriginalPosition field if it's non-nil, zero value otherwise. 13274 func (p *PullRequestComment) GetOriginalPosition() int { 13275 if p == nil || p.OriginalPosition == nil { 13276 return 0 13277 } 13278 return *p.OriginalPosition 13279 } 13280 13281 // GetOriginalStartLine returns the OriginalStartLine field if it's non-nil, zero value otherwise. 13282 func (p *PullRequestComment) GetOriginalStartLine() int { 13283 if p == nil || p.OriginalStartLine == nil { 13284 return 0 13285 } 13286 return *p.OriginalStartLine 13287 } 13288 13289 // GetPath returns the Path field if it's non-nil, zero value otherwise. 13290 func (p *PullRequestComment) GetPath() string { 13291 if p == nil || p.Path == nil { 13292 return "" 13293 } 13294 return *p.Path 13295 } 13296 13297 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 13298 func (p *PullRequestComment) GetPosition() int { 13299 if p == nil || p.Position == nil { 13300 return 0 13301 } 13302 return *p.Position 13303 } 13304 13305 // GetPullRequestReviewID returns the PullRequestReviewID field if it's non-nil, zero value otherwise. 13306 func (p *PullRequestComment) GetPullRequestReviewID() int64 { 13307 if p == nil || p.PullRequestReviewID == nil { 13308 return 0 13309 } 13310 return *p.PullRequestReviewID 13311 } 13312 13313 // GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 13314 func (p *PullRequestComment) GetPullRequestURL() string { 13315 if p == nil || p.PullRequestURL == nil { 13316 return "" 13317 } 13318 return *p.PullRequestURL 13319 } 13320 13321 // GetReactions returns the Reactions field. 13322 func (p *PullRequestComment) GetReactions() *Reactions { 13323 if p == nil { 13324 return nil 13325 } 13326 return p.Reactions 13327 } 13328 13329 // GetSide returns the Side field if it's non-nil, zero value otherwise. 13330 func (p *PullRequestComment) GetSide() string { 13331 if p == nil || p.Side == nil { 13332 return "" 13333 } 13334 return *p.Side 13335 } 13336 13337 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 13338 func (p *PullRequestComment) GetStartLine() int { 13339 if p == nil || p.StartLine == nil { 13340 return 0 13341 } 13342 return *p.StartLine 13343 } 13344 13345 // GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. 13346 func (p *PullRequestComment) GetStartSide() string { 13347 if p == nil || p.StartSide == nil { 13348 return "" 13349 } 13350 return *p.StartSide 13351 } 13352 13353 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13354 func (p *PullRequestComment) GetUpdatedAt() time.Time { 13355 if p == nil || p.UpdatedAt == nil { 13356 return time.Time{} 13357 } 13358 return *p.UpdatedAt 13359 } 13360 13361 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13362 func (p *PullRequestComment) GetURL() string { 13363 if p == nil || p.URL == nil { 13364 return "" 13365 } 13366 return *p.URL 13367 } 13368 13369 // GetUser returns the User field. 13370 func (p *PullRequestComment) GetUser() *User { 13371 if p == nil { 13372 return nil 13373 } 13374 return p.User 13375 } 13376 13377 // GetAction returns the Action field if it's non-nil, zero value otherwise. 13378 func (p *PullRequestEvent) GetAction() string { 13379 if p == nil || p.Action == nil { 13380 return "" 13381 } 13382 return *p.Action 13383 } 13384 13385 // GetAfter returns the After field if it's non-nil, zero value otherwise. 13386 func (p *PullRequestEvent) GetAfter() string { 13387 if p == nil || p.After == nil { 13388 return "" 13389 } 13390 return *p.After 13391 } 13392 13393 // GetAssignee returns the Assignee field. 13394 func (p *PullRequestEvent) GetAssignee() *User { 13395 if p == nil { 13396 return nil 13397 } 13398 return p.Assignee 13399 } 13400 13401 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 13402 func (p *PullRequestEvent) GetBefore() string { 13403 if p == nil || p.Before == nil { 13404 return "" 13405 } 13406 return *p.Before 13407 } 13408 13409 // GetChanges returns the Changes field. 13410 func (p *PullRequestEvent) GetChanges() *EditChange { 13411 if p == nil { 13412 return nil 13413 } 13414 return p.Changes 13415 } 13416 13417 // GetInstallation returns the Installation field. 13418 func (p *PullRequestEvent) GetInstallation() *Installation { 13419 if p == nil { 13420 return nil 13421 } 13422 return p.Installation 13423 } 13424 13425 // GetLabel returns the Label field. 13426 func (p *PullRequestEvent) GetLabel() *Label { 13427 if p == nil { 13428 return nil 13429 } 13430 return p.Label 13431 } 13432 13433 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 13434 func (p *PullRequestEvent) GetNumber() int { 13435 if p == nil || p.Number == nil { 13436 return 0 13437 } 13438 return *p.Number 13439 } 13440 13441 // GetOrganization returns the Organization field. 13442 func (p *PullRequestEvent) GetOrganization() *Organization { 13443 if p == nil { 13444 return nil 13445 } 13446 return p.Organization 13447 } 13448 13449 // GetPullRequest returns the PullRequest field. 13450 func (p *PullRequestEvent) GetPullRequest() *PullRequest { 13451 if p == nil { 13452 return nil 13453 } 13454 return p.PullRequest 13455 } 13456 13457 // GetRepo returns the Repo field. 13458 func (p *PullRequestEvent) GetRepo() *Repository { 13459 if p == nil { 13460 return nil 13461 } 13462 return p.Repo 13463 } 13464 13465 // GetRequestedReviewer returns the RequestedReviewer field. 13466 func (p *PullRequestEvent) GetRequestedReviewer() *User { 13467 if p == nil { 13468 return nil 13469 } 13470 return p.RequestedReviewer 13471 } 13472 13473 // GetRequestedTeam returns the RequestedTeam field. 13474 func (p *PullRequestEvent) GetRequestedTeam() *Team { 13475 if p == nil { 13476 return nil 13477 } 13478 return p.RequestedTeam 13479 } 13480 13481 // GetSender returns the Sender field. 13482 func (p *PullRequestEvent) GetSender() *User { 13483 if p == nil { 13484 return nil 13485 } 13486 return p.Sender 13487 } 13488 13489 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 13490 func (p *PullRequestLinks) GetDiffURL() string { 13491 if p == nil || p.DiffURL == nil { 13492 return "" 13493 } 13494 return *p.DiffURL 13495 } 13496 13497 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13498 func (p *PullRequestLinks) GetHTMLURL() string { 13499 if p == nil || p.HTMLURL == nil { 13500 return "" 13501 } 13502 return *p.HTMLURL 13503 } 13504 13505 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 13506 func (p *PullRequestLinks) GetPatchURL() string { 13507 if p == nil || p.PatchURL == nil { 13508 return "" 13509 } 13510 return *p.PatchURL 13511 } 13512 13513 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13514 func (p *PullRequestLinks) GetURL() string { 13515 if p == nil || p.URL == nil { 13516 return "" 13517 } 13518 return *p.URL 13519 } 13520 13521 // GetMerged returns the Merged field if it's non-nil, zero value otherwise. 13522 func (p *PullRequestMergeResult) GetMerged() bool { 13523 if p == nil || p.Merged == nil { 13524 return false 13525 } 13526 return *p.Merged 13527 } 13528 13529 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 13530 func (p *PullRequestMergeResult) GetMessage() string { 13531 if p == nil || p.Message == nil { 13532 return "" 13533 } 13534 return *p.Message 13535 } 13536 13537 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 13538 func (p *PullRequestMergeResult) GetSHA() string { 13539 if p == nil || p.SHA == nil { 13540 return "" 13541 } 13542 return *p.SHA 13543 } 13544 13545 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 13546 func (p *PullRequestReview) GetAuthorAssociation() string { 13547 if p == nil || p.AuthorAssociation == nil { 13548 return "" 13549 } 13550 return *p.AuthorAssociation 13551 } 13552 13553 // GetBody returns the Body field if it's non-nil, zero value otherwise. 13554 func (p *PullRequestReview) GetBody() string { 13555 if p == nil || p.Body == nil { 13556 return "" 13557 } 13558 return *p.Body 13559 } 13560 13561 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 13562 func (p *PullRequestReview) GetCommitID() string { 13563 if p == nil || p.CommitID == nil { 13564 return "" 13565 } 13566 return *p.CommitID 13567 } 13568 13569 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13570 func (p *PullRequestReview) GetHTMLURL() string { 13571 if p == nil || p.HTMLURL == nil { 13572 return "" 13573 } 13574 return *p.HTMLURL 13575 } 13576 13577 // GetID returns the ID field if it's non-nil, zero value otherwise. 13578 func (p *PullRequestReview) GetID() int64 { 13579 if p == nil || p.ID == nil { 13580 return 0 13581 } 13582 return *p.ID 13583 } 13584 13585 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13586 func (p *PullRequestReview) GetNodeID() string { 13587 if p == nil || p.NodeID == nil { 13588 return "" 13589 } 13590 return *p.NodeID 13591 } 13592 13593 // GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 13594 func (p *PullRequestReview) GetPullRequestURL() string { 13595 if p == nil || p.PullRequestURL == nil { 13596 return "" 13597 } 13598 return *p.PullRequestURL 13599 } 13600 13601 // GetState returns the State field if it's non-nil, zero value otherwise. 13602 func (p *PullRequestReview) GetState() string { 13603 if p == nil || p.State == nil { 13604 return "" 13605 } 13606 return *p.State 13607 } 13608 13609 // GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. 13610 func (p *PullRequestReview) GetSubmittedAt() time.Time { 13611 if p == nil || p.SubmittedAt == nil { 13612 return time.Time{} 13613 } 13614 return *p.SubmittedAt 13615 } 13616 13617 // GetUser returns the User field. 13618 func (p *PullRequestReview) GetUser() *User { 13619 if p == nil { 13620 return nil 13621 } 13622 return p.User 13623 } 13624 13625 // GetAction returns the Action field if it's non-nil, zero value otherwise. 13626 func (p *PullRequestReviewCommentEvent) GetAction() string { 13627 if p == nil || p.Action == nil { 13628 return "" 13629 } 13630 return *p.Action 13631 } 13632 13633 // GetChanges returns the Changes field. 13634 func (p *PullRequestReviewCommentEvent) GetChanges() *EditChange { 13635 if p == nil { 13636 return nil 13637 } 13638 return p.Changes 13639 } 13640 13641 // GetComment returns the Comment field. 13642 func (p *PullRequestReviewCommentEvent) GetComment() *PullRequestComment { 13643 if p == nil { 13644 return nil 13645 } 13646 return p.Comment 13647 } 13648 13649 // GetInstallation returns the Installation field. 13650 func (p *PullRequestReviewCommentEvent) GetInstallation() *Installation { 13651 if p == nil { 13652 return nil 13653 } 13654 return p.Installation 13655 } 13656 13657 // GetPullRequest returns the PullRequest field. 13658 func (p *PullRequestReviewCommentEvent) GetPullRequest() *PullRequest { 13659 if p == nil { 13660 return nil 13661 } 13662 return p.PullRequest 13663 } 13664 13665 // GetRepo returns the Repo field. 13666 func (p *PullRequestReviewCommentEvent) GetRepo() *Repository { 13667 if p == nil { 13668 return nil 13669 } 13670 return p.Repo 13671 } 13672 13673 // GetSender returns the Sender field. 13674 func (p *PullRequestReviewCommentEvent) GetSender() *User { 13675 if p == nil { 13676 return nil 13677 } 13678 return p.Sender 13679 } 13680 13681 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 13682 func (p *PullRequestReviewDismissalRequest) GetMessage() string { 13683 if p == nil || p.Message == nil { 13684 return "" 13685 } 13686 return *p.Message 13687 } 13688 13689 // GetAction returns the Action field if it's non-nil, zero value otherwise. 13690 func (p *PullRequestReviewEvent) GetAction() string { 13691 if p == nil || p.Action == nil { 13692 return "" 13693 } 13694 return *p.Action 13695 } 13696 13697 // GetInstallation returns the Installation field. 13698 func (p *PullRequestReviewEvent) GetInstallation() *Installation { 13699 if p == nil { 13700 return nil 13701 } 13702 return p.Installation 13703 } 13704 13705 // GetOrganization returns the Organization field. 13706 func (p *PullRequestReviewEvent) GetOrganization() *Organization { 13707 if p == nil { 13708 return nil 13709 } 13710 return p.Organization 13711 } 13712 13713 // GetPullRequest returns the PullRequest field. 13714 func (p *PullRequestReviewEvent) GetPullRequest() *PullRequest { 13715 if p == nil { 13716 return nil 13717 } 13718 return p.PullRequest 13719 } 13720 13721 // GetRepo returns the Repo field. 13722 func (p *PullRequestReviewEvent) GetRepo() *Repository { 13723 if p == nil { 13724 return nil 13725 } 13726 return p.Repo 13727 } 13728 13729 // GetReview returns the Review field. 13730 func (p *PullRequestReviewEvent) GetReview() *PullRequestReview { 13731 if p == nil { 13732 return nil 13733 } 13734 return p.Review 13735 } 13736 13737 // GetSender returns the Sender field. 13738 func (p *PullRequestReviewEvent) GetSender() *User { 13739 if p == nil { 13740 return nil 13741 } 13742 return p.Sender 13743 } 13744 13745 // GetBody returns the Body field if it's non-nil, zero value otherwise. 13746 func (p *PullRequestReviewRequest) GetBody() string { 13747 if p == nil || p.Body == nil { 13748 return "" 13749 } 13750 return *p.Body 13751 } 13752 13753 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 13754 func (p *PullRequestReviewRequest) GetCommitID() string { 13755 if p == nil || p.CommitID == nil { 13756 return "" 13757 } 13758 return *p.CommitID 13759 } 13760 13761 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 13762 func (p *PullRequestReviewRequest) GetEvent() string { 13763 if p == nil || p.Event == nil { 13764 return "" 13765 } 13766 return *p.Event 13767 } 13768 13769 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 13770 func (p *PullRequestReviewRequest) GetNodeID() string { 13771 if p == nil || p.NodeID == nil { 13772 return "" 13773 } 13774 return *p.NodeID 13775 } 13776 13777 // GetBypassPullRequestAllowances returns the BypassPullRequestAllowances field. 13778 func (p *PullRequestReviewsEnforcement) GetBypassPullRequestAllowances() *BypassPullRequestAllowances { 13779 if p == nil { 13780 return nil 13781 } 13782 return p.BypassPullRequestAllowances 13783 } 13784 13785 // GetDismissalRestrictions returns the DismissalRestrictions field. 13786 func (p *PullRequestReviewsEnforcement) GetDismissalRestrictions() *DismissalRestrictions { 13787 if p == nil { 13788 return nil 13789 } 13790 return p.DismissalRestrictions 13791 } 13792 13793 // GetFrom returns the From field if it's non-nil, zero value otherwise. 13794 func (p *PullRequestReviewsEnforcementLevelChanges) GetFrom() string { 13795 if p == nil || p.From == nil { 13796 return "" 13797 } 13798 return *p.From 13799 } 13800 13801 // GetBypassPullRequestAllowancesRequest returns the BypassPullRequestAllowancesRequest field. 13802 func (p *PullRequestReviewsEnforcementRequest) GetBypassPullRequestAllowancesRequest() *BypassPullRequestAllowancesRequest { 13803 if p == nil { 13804 return nil 13805 } 13806 return p.BypassPullRequestAllowancesRequest 13807 } 13808 13809 // GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. 13810 func (p *PullRequestReviewsEnforcementRequest) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest { 13811 if p == nil { 13812 return nil 13813 } 13814 return p.DismissalRestrictionsRequest 13815 } 13816 13817 // GetBypassPullRequestAllowancesRequest returns the BypassPullRequestAllowancesRequest field. 13818 func (p *PullRequestReviewsEnforcementUpdate) GetBypassPullRequestAllowancesRequest() *BypassPullRequestAllowancesRequest { 13819 if p == nil { 13820 return nil 13821 } 13822 return p.BypassPullRequestAllowancesRequest 13823 } 13824 13825 // GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. 13826 func (p *PullRequestReviewsEnforcementUpdate) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest { 13827 if p == nil { 13828 return nil 13829 } 13830 return p.DismissalRestrictionsRequest 13831 } 13832 13833 // GetDismissStaleReviews returns the DismissStaleReviews field if it's non-nil, zero value otherwise. 13834 func (p *PullRequestReviewsEnforcementUpdate) GetDismissStaleReviews() bool { 13835 if p == nil || p.DismissStaleReviews == nil { 13836 return false 13837 } 13838 return *p.DismissStaleReviews 13839 } 13840 13841 // GetRequireCodeOwnerReviews returns the RequireCodeOwnerReviews field if it's non-nil, zero value otherwise. 13842 func (p *PullRequestReviewsEnforcementUpdate) GetRequireCodeOwnerReviews() bool { 13843 if p == nil || p.RequireCodeOwnerReviews == nil { 13844 return false 13845 } 13846 return *p.RequireCodeOwnerReviews 13847 } 13848 13849 // GetRequireLastPushApproval returns the RequireLastPushApproval field if it's non-nil, zero value otherwise. 13850 func (p *PullRequestReviewsEnforcementUpdate) GetRequireLastPushApproval() bool { 13851 if p == nil || p.RequireLastPushApproval == nil { 13852 return false 13853 } 13854 return *p.RequireLastPushApproval 13855 } 13856 13857 // GetAction returns the Action field if it's non-nil, zero value otherwise. 13858 func (p *PullRequestReviewThreadEvent) GetAction() string { 13859 if p == nil || p.Action == nil { 13860 return "" 13861 } 13862 return *p.Action 13863 } 13864 13865 // GetInstallation returns the Installation field. 13866 func (p *PullRequestReviewThreadEvent) GetInstallation() *Installation { 13867 if p == nil { 13868 return nil 13869 } 13870 return p.Installation 13871 } 13872 13873 // GetPullRequest returns the PullRequest field. 13874 func (p *PullRequestReviewThreadEvent) GetPullRequest() *PullRequest { 13875 if p == nil { 13876 return nil 13877 } 13878 return p.PullRequest 13879 } 13880 13881 // GetRepo returns the Repo field. 13882 func (p *PullRequestReviewThreadEvent) GetRepo() *Repository { 13883 if p == nil { 13884 return nil 13885 } 13886 return p.Repo 13887 } 13888 13889 // GetSender returns the Sender field. 13890 func (p *PullRequestReviewThreadEvent) GetSender() *User { 13891 if p == nil { 13892 return nil 13893 } 13894 return p.Sender 13895 } 13896 13897 // GetThread returns the Thread field. 13898 func (p *PullRequestReviewThreadEvent) GetThread() *PullRequestThread { 13899 if p == nil { 13900 return nil 13901 } 13902 return p.Thread 13903 } 13904 13905 // GetAction returns the Action field if it's non-nil, zero value otherwise. 13906 func (p *PullRequestTargetEvent) GetAction() string { 13907 if p == nil || p.Action == nil { 13908 return "" 13909 } 13910 return *p.Action 13911 } 13912 13913 // GetAfter returns the After field if it's non-nil, zero value otherwise. 13914 func (p *PullRequestTargetEvent) GetAfter() string { 13915 if p == nil || p.After == nil { 13916 return "" 13917 } 13918 return *p.After 13919 } 13920 13921 // GetAssignee returns the Assignee field. 13922 func (p *PullRequestTargetEvent) GetAssignee() *User { 13923 if p == nil { 13924 return nil 13925 } 13926 return p.Assignee 13927 } 13928 13929 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 13930 func (p *PullRequestTargetEvent) GetBefore() string { 13931 if p == nil || p.Before == nil { 13932 return "" 13933 } 13934 return *p.Before 13935 } 13936 13937 // GetChanges returns the Changes field. 13938 func (p *PullRequestTargetEvent) GetChanges() *EditChange { 13939 if p == nil { 13940 return nil 13941 } 13942 return p.Changes 13943 } 13944 13945 // GetInstallation returns the Installation field. 13946 func (p *PullRequestTargetEvent) GetInstallation() *Installation { 13947 if p == nil { 13948 return nil 13949 } 13950 return p.Installation 13951 } 13952 13953 // GetLabel returns the Label field. 13954 func (p *PullRequestTargetEvent) GetLabel() *Label { 13955 if p == nil { 13956 return nil 13957 } 13958 return p.Label 13959 } 13960 13961 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 13962 func (p *PullRequestTargetEvent) GetNumber() int { 13963 if p == nil || p.Number == nil { 13964 return 0 13965 } 13966 return *p.Number 13967 } 13968 13969 // GetOrganization returns the Organization field. 13970 func (p *PullRequestTargetEvent) GetOrganization() *Organization { 13971 if p == nil { 13972 return nil 13973 } 13974 return p.Organization 13975 } 13976 13977 // GetPullRequest returns the PullRequest field. 13978 func (p *PullRequestTargetEvent) GetPullRequest() *PullRequest { 13979 if p == nil { 13980 return nil 13981 } 13982 return p.PullRequest 13983 } 13984 13985 // GetRepo returns the Repo field. 13986 func (p *PullRequestTargetEvent) GetRepo() *Repository { 13987 if p == nil { 13988 return nil 13989 } 13990 return p.Repo 13991 } 13992 13993 // GetRequestedReviewer returns the RequestedReviewer field. 13994 func (p *PullRequestTargetEvent) GetRequestedReviewer() *User { 13995 if p == nil { 13996 return nil 13997 } 13998 return p.RequestedReviewer 13999 } 14000 14001 // GetRequestedTeam returns the RequestedTeam field. 14002 func (p *PullRequestTargetEvent) GetRequestedTeam() *Team { 14003 if p == nil { 14004 return nil 14005 } 14006 return p.RequestedTeam 14007 } 14008 14009 // GetSender returns the Sender field. 14010 func (p *PullRequestTargetEvent) GetSender() *User { 14011 if p == nil { 14012 return nil 14013 } 14014 return p.Sender 14015 } 14016 14017 // GetID returns the ID field if it's non-nil, zero value otherwise. 14018 func (p *PullRequestThread) GetID() int64 { 14019 if p == nil || p.ID == nil { 14020 return 0 14021 } 14022 return *p.ID 14023 } 14024 14025 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14026 func (p *PullRequestThread) GetNodeID() string { 14027 if p == nil || p.NodeID == nil { 14028 return "" 14029 } 14030 return *p.NodeID 14031 } 14032 14033 // GetMergablePulls returns the MergablePulls field if it's non-nil, zero value otherwise. 14034 func (p *PullStats) GetMergablePulls() int { 14035 if p == nil || p.MergablePulls == nil { 14036 return 0 14037 } 14038 return *p.MergablePulls 14039 } 14040 14041 // GetMergedPulls returns the MergedPulls field if it's non-nil, zero value otherwise. 14042 func (p *PullStats) GetMergedPulls() int { 14043 if p == nil || p.MergedPulls == nil { 14044 return 0 14045 } 14046 return *p.MergedPulls 14047 } 14048 14049 // GetTotalPulls returns the TotalPulls field if it's non-nil, zero value otherwise. 14050 func (p *PullStats) GetTotalPulls() int { 14051 if p == nil || p.TotalPulls == nil { 14052 return 0 14053 } 14054 return *p.TotalPulls 14055 } 14056 14057 // GetUnmergablePulls returns the UnmergablePulls field if it's non-nil, zero value otherwise. 14058 func (p *PullStats) GetUnmergablePulls() int { 14059 if p == nil || p.UnmergablePulls == nil { 14060 return 0 14061 } 14062 return *p.UnmergablePulls 14063 } 14064 14065 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 14066 func (p *PunchCard) GetCommits() int { 14067 if p == nil || p.Commits == nil { 14068 return 0 14069 } 14070 return *p.Commits 14071 } 14072 14073 // GetDay returns the Day field if it's non-nil, zero value otherwise. 14074 func (p *PunchCard) GetDay() int { 14075 if p == nil || p.Day == nil { 14076 return 0 14077 } 14078 return *p.Day 14079 } 14080 14081 // GetHour returns the Hour field if it's non-nil, zero value otherwise. 14082 func (p *PunchCard) GetHour() int { 14083 if p == nil || p.Hour == nil { 14084 return 0 14085 } 14086 return *p.Hour 14087 } 14088 14089 // GetAction returns the Action field if it's non-nil, zero value otherwise. 14090 func (p *PushEvent) GetAction() string { 14091 if p == nil || p.Action == nil { 14092 return "" 14093 } 14094 return *p.Action 14095 } 14096 14097 // GetAfter returns the After field if it's non-nil, zero value otherwise. 14098 func (p *PushEvent) GetAfter() string { 14099 if p == nil || p.After == nil { 14100 return "" 14101 } 14102 return *p.After 14103 } 14104 14105 // GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise. 14106 func (p *PushEvent) GetBaseRef() string { 14107 if p == nil || p.BaseRef == nil { 14108 return "" 14109 } 14110 return *p.BaseRef 14111 } 14112 14113 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 14114 func (p *PushEvent) GetBefore() string { 14115 if p == nil || p.Before == nil { 14116 return "" 14117 } 14118 return *p.Before 14119 } 14120 14121 // GetCompare returns the Compare field if it's non-nil, zero value otherwise. 14122 func (p *PushEvent) GetCompare() string { 14123 if p == nil || p.Compare == nil { 14124 return "" 14125 } 14126 return *p.Compare 14127 } 14128 14129 // GetCreated returns the Created field if it's non-nil, zero value otherwise. 14130 func (p *PushEvent) GetCreated() bool { 14131 if p == nil || p.Created == nil { 14132 return false 14133 } 14134 return *p.Created 14135 } 14136 14137 // GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. 14138 func (p *PushEvent) GetDeleted() bool { 14139 if p == nil || p.Deleted == nil { 14140 return false 14141 } 14142 return *p.Deleted 14143 } 14144 14145 // GetDistinctSize returns the DistinctSize field if it's non-nil, zero value otherwise. 14146 func (p *PushEvent) GetDistinctSize() int { 14147 if p == nil || p.DistinctSize == nil { 14148 return 0 14149 } 14150 return *p.DistinctSize 14151 } 14152 14153 // GetForced returns the Forced field if it's non-nil, zero value otherwise. 14154 func (p *PushEvent) GetForced() bool { 14155 if p == nil || p.Forced == nil { 14156 return false 14157 } 14158 return *p.Forced 14159 } 14160 14161 // GetHead returns the Head field if it's non-nil, zero value otherwise. 14162 func (p *PushEvent) GetHead() string { 14163 if p == nil || p.Head == nil { 14164 return "" 14165 } 14166 return *p.Head 14167 } 14168 14169 // GetHeadCommit returns the HeadCommit field. 14170 func (p *PushEvent) GetHeadCommit() *HeadCommit { 14171 if p == nil { 14172 return nil 14173 } 14174 return p.HeadCommit 14175 } 14176 14177 // GetInstallation returns the Installation field. 14178 func (p *PushEvent) GetInstallation() *Installation { 14179 if p == nil { 14180 return nil 14181 } 14182 return p.Installation 14183 } 14184 14185 // GetOrganization returns the Organization field. 14186 func (p *PushEvent) GetOrganization() *Organization { 14187 if p == nil { 14188 return nil 14189 } 14190 return p.Organization 14191 } 14192 14193 // GetPusher returns the Pusher field. 14194 func (p *PushEvent) GetPusher() *User { 14195 if p == nil { 14196 return nil 14197 } 14198 return p.Pusher 14199 } 14200 14201 // GetPushID returns the PushID field if it's non-nil, zero value otherwise. 14202 func (p *PushEvent) GetPushID() int64 { 14203 if p == nil || p.PushID == nil { 14204 return 0 14205 } 14206 return *p.PushID 14207 } 14208 14209 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 14210 func (p *PushEvent) GetRef() string { 14211 if p == nil || p.Ref == nil { 14212 return "" 14213 } 14214 return *p.Ref 14215 } 14216 14217 // GetRepo returns the Repo field. 14218 func (p *PushEvent) GetRepo() *PushEventRepository { 14219 if p == nil { 14220 return nil 14221 } 14222 return p.Repo 14223 } 14224 14225 // GetSender returns the Sender field. 14226 func (p *PushEvent) GetSender() *User { 14227 if p == nil { 14228 return nil 14229 } 14230 return p.Sender 14231 } 14232 14233 // GetSize returns the Size field if it's non-nil, zero value otherwise. 14234 func (p *PushEvent) GetSize() int { 14235 if p == nil || p.Size == nil { 14236 return 0 14237 } 14238 return *p.Size 14239 } 14240 14241 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 14242 func (p *PushEventRepoOwner) GetEmail() string { 14243 if p == nil || p.Email == nil { 14244 return "" 14245 } 14246 return *p.Email 14247 } 14248 14249 // GetName returns the Name field if it's non-nil, zero value otherwise. 14250 func (p *PushEventRepoOwner) GetName() string { 14251 if p == nil || p.Name == nil { 14252 return "" 14253 } 14254 return *p.Name 14255 } 14256 14257 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 14258 func (p *PushEventRepository) GetArchived() bool { 14259 if p == nil || p.Archived == nil { 14260 return false 14261 } 14262 return *p.Archived 14263 } 14264 14265 // GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 14266 func (p *PushEventRepository) GetArchiveURL() string { 14267 if p == nil || p.ArchiveURL == nil { 14268 return "" 14269 } 14270 return *p.ArchiveURL 14271 } 14272 14273 // GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 14274 func (p *PushEventRepository) GetCloneURL() string { 14275 if p == nil || p.CloneURL == nil { 14276 return "" 14277 } 14278 return *p.CloneURL 14279 } 14280 14281 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14282 func (p *PushEventRepository) GetCreatedAt() Timestamp { 14283 if p == nil || p.CreatedAt == nil { 14284 return Timestamp{} 14285 } 14286 return *p.CreatedAt 14287 } 14288 14289 // GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 14290 func (p *PushEventRepository) GetDefaultBranch() string { 14291 if p == nil || p.DefaultBranch == nil { 14292 return "" 14293 } 14294 return *p.DefaultBranch 14295 } 14296 14297 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 14298 func (p *PushEventRepository) GetDescription() string { 14299 if p == nil || p.Description == nil { 14300 return "" 14301 } 14302 return *p.Description 14303 } 14304 14305 // GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. 14306 func (p *PushEventRepository) GetDisabled() bool { 14307 if p == nil || p.Disabled == nil { 14308 return false 14309 } 14310 return *p.Disabled 14311 } 14312 14313 // GetFork returns the Fork field if it's non-nil, zero value otherwise. 14314 func (p *PushEventRepository) GetFork() bool { 14315 if p == nil || p.Fork == nil { 14316 return false 14317 } 14318 return *p.Fork 14319 } 14320 14321 // GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 14322 func (p *PushEventRepository) GetForksCount() int { 14323 if p == nil || p.ForksCount == nil { 14324 return 0 14325 } 14326 return *p.ForksCount 14327 } 14328 14329 // GetFullName returns the FullName field if it's non-nil, zero value otherwise. 14330 func (p *PushEventRepository) GetFullName() string { 14331 if p == nil || p.FullName == nil { 14332 return "" 14333 } 14334 return *p.FullName 14335 } 14336 14337 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 14338 func (p *PushEventRepository) GetGitURL() string { 14339 if p == nil || p.GitURL == nil { 14340 return "" 14341 } 14342 return *p.GitURL 14343 } 14344 14345 // GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 14346 func (p *PushEventRepository) GetHasDownloads() bool { 14347 if p == nil || p.HasDownloads == nil { 14348 return false 14349 } 14350 return *p.HasDownloads 14351 } 14352 14353 // GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 14354 func (p *PushEventRepository) GetHasIssues() bool { 14355 if p == nil || p.HasIssues == nil { 14356 return false 14357 } 14358 return *p.HasIssues 14359 } 14360 14361 // GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 14362 func (p *PushEventRepository) GetHasPages() bool { 14363 if p == nil || p.HasPages == nil { 14364 return false 14365 } 14366 return *p.HasPages 14367 } 14368 14369 // GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 14370 func (p *PushEventRepository) GetHasWiki() bool { 14371 if p == nil || p.HasWiki == nil { 14372 return false 14373 } 14374 return *p.HasWiki 14375 } 14376 14377 // GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 14378 func (p *PushEventRepository) GetHomepage() string { 14379 if p == nil || p.Homepage == nil { 14380 return "" 14381 } 14382 return *p.Homepage 14383 } 14384 14385 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 14386 func (p *PushEventRepository) GetHTMLURL() string { 14387 if p == nil || p.HTMLURL == nil { 14388 return "" 14389 } 14390 return *p.HTMLURL 14391 } 14392 14393 // GetID returns the ID field if it's non-nil, zero value otherwise. 14394 func (p *PushEventRepository) GetID() int64 { 14395 if p == nil || p.ID == nil { 14396 return 0 14397 } 14398 return *p.ID 14399 } 14400 14401 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 14402 func (p *PushEventRepository) GetLanguage() string { 14403 if p == nil || p.Language == nil { 14404 return "" 14405 } 14406 return *p.Language 14407 } 14408 14409 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 14410 func (p *PushEventRepository) GetMasterBranch() string { 14411 if p == nil || p.MasterBranch == nil { 14412 return "" 14413 } 14414 return *p.MasterBranch 14415 } 14416 14417 // GetName returns the Name field if it's non-nil, zero value otherwise. 14418 func (p *PushEventRepository) GetName() string { 14419 if p == nil || p.Name == nil { 14420 return "" 14421 } 14422 return *p.Name 14423 } 14424 14425 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14426 func (p *PushEventRepository) GetNodeID() string { 14427 if p == nil || p.NodeID == nil { 14428 return "" 14429 } 14430 return *p.NodeID 14431 } 14432 14433 // GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 14434 func (p *PushEventRepository) GetOpenIssuesCount() int { 14435 if p == nil || p.OpenIssuesCount == nil { 14436 return 0 14437 } 14438 return *p.OpenIssuesCount 14439 } 14440 14441 // GetOrganization returns the Organization field if it's non-nil, zero value otherwise. 14442 func (p *PushEventRepository) GetOrganization() string { 14443 if p == nil || p.Organization == nil { 14444 return "" 14445 } 14446 return *p.Organization 14447 } 14448 14449 // GetOwner returns the Owner field. 14450 func (p *PushEventRepository) GetOwner() *User { 14451 if p == nil { 14452 return nil 14453 } 14454 return p.Owner 14455 } 14456 14457 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 14458 func (p *PushEventRepository) GetPrivate() bool { 14459 if p == nil || p.Private == nil { 14460 return false 14461 } 14462 return *p.Private 14463 } 14464 14465 // GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 14466 func (p *PushEventRepository) GetPullsURL() string { 14467 if p == nil || p.PullsURL == nil { 14468 return "" 14469 } 14470 return *p.PullsURL 14471 } 14472 14473 // GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 14474 func (p *PushEventRepository) GetPushedAt() Timestamp { 14475 if p == nil || p.PushedAt == nil { 14476 return Timestamp{} 14477 } 14478 return *p.PushedAt 14479 } 14480 14481 // GetSize returns the Size field if it's non-nil, zero value otherwise. 14482 func (p *PushEventRepository) GetSize() int { 14483 if p == nil || p.Size == nil { 14484 return 0 14485 } 14486 return *p.Size 14487 } 14488 14489 // GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 14490 func (p *PushEventRepository) GetSSHURL() string { 14491 if p == nil || p.SSHURL == nil { 14492 return "" 14493 } 14494 return *p.SSHURL 14495 } 14496 14497 // GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 14498 func (p *PushEventRepository) GetStargazersCount() int { 14499 if p == nil || p.StargazersCount == nil { 14500 return 0 14501 } 14502 return *p.StargazersCount 14503 } 14504 14505 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 14506 func (p *PushEventRepository) GetStatusesURL() string { 14507 if p == nil || p.StatusesURL == nil { 14508 return "" 14509 } 14510 return *p.StatusesURL 14511 } 14512 14513 // GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 14514 func (p *PushEventRepository) GetSVNURL() string { 14515 if p == nil || p.SVNURL == nil { 14516 return "" 14517 } 14518 return *p.SVNURL 14519 } 14520 14521 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14522 func (p *PushEventRepository) GetUpdatedAt() Timestamp { 14523 if p == nil || p.UpdatedAt == nil { 14524 return Timestamp{} 14525 } 14526 return *p.UpdatedAt 14527 } 14528 14529 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14530 func (p *PushEventRepository) GetURL() string { 14531 if p == nil || p.URL == nil { 14532 return "" 14533 } 14534 return *p.URL 14535 } 14536 14537 // GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 14538 func (p *PushEventRepository) GetWatchersCount() int { 14539 if p == nil || p.WatchersCount == nil { 14540 return 0 14541 } 14542 return *p.WatchersCount 14543 } 14544 14545 // GetActionsRunnerRegistration returns the ActionsRunnerRegistration field. 14546 func (r *RateLimits) GetActionsRunnerRegistration() *Rate { 14547 if r == nil { 14548 return nil 14549 } 14550 return r.ActionsRunnerRegistration 14551 } 14552 14553 // GetCodeScanningUpload returns the CodeScanningUpload field. 14554 func (r *RateLimits) GetCodeScanningUpload() *Rate { 14555 if r == nil { 14556 return nil 14557 } 14558 return r.CodeScanningUpload 14559 } 14560 14561 // GetCore returns the Core field. 14562 func (r *RateLimits) GetCore() *Rate { 14563 if r == nil { 14564 return nil 14565 } 14566 return r.Core 14567 } 14568 14569 // GetGraphQL returns the GraphQL field. 14570 func (r *RateLimits) GetGraphQL() *Rate { 14571 if r == nil { 14572 return nil 14573 } 14574 return r.GraphQL 14575 } 14576 14577 // GetIntegrationManifest returns the IntegrationManifest field. 14578 func (r *RateLimits) GetIntegrationManifest() *Rate { 14579 if r == nil { 14580 return nil 14581 } 14582 return r.IntegrationManifest 14583 } 14584 14585 // GetSCIM returns the SCIM field. 14586 func (r *RateLimits) GetSCIM() *Rate { 14587 if r == nil { 14588 return nil 14589 } 14590 return r.SCIM 14591 } 14592 14593 // GetSearch returns the Search field. 14594 func (r *RateLimits) GetSearch() *Rate { 14595 if r == nil { 14596 return nil 14597 } 14598 return r.Search 14599 } 14600 14601 // GetSourceImport returns the SourceImport field. 14602 func (r *RateLimits) GetSourceImport() *Rate { 14603 if r == nil { 14604 return nil 14605 } 14606 return r.SourceImport 14607 } 14608 14609 // GetContent returns the Content field if it's non-nil, zero value otherwise. 14610 func (r *Reaction) GetContent() string { 14611 if r == nil || r.Content == nil { 14612 return "" 14613 } 14614 return *r.Content 14615 } 14616 14617 // GetID returns the ID field if it's non-nil, zero value otherwise. 14618 func (r *Reaction) GetID() int64 { 14619 if r == nil || r.ID == nil { 14620 return 0 14621 } 14622 return *r.ID 14623 } 14624 14625 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14626 func (r *Reaction) GetNodeID() string { 14627 if r == nil || r.NodeID == nil { 14628 return "" 14629 } 14630 return *r.NodeID 14631 } 14632 14633 // GetUser returns the User field. 14634 func (r *Reaction) GetUser() *User { 14635 if r == nil { 14636 return nil 14637 } 14638 return r.User 14639 } 14640 14641 // GetConfused returns the Confused field if it's non-nil, zero value otherwise. 14642 func (r *Reactions) GetConfused() int { 14643 if r == nil || r.Confused == nil { 14644 return 0 14645 } 14646 return *r.Confused 14647 } 14648 14649 // GetEyes returns the Eyes field if it's non-nil, zero value otherwise. 14650 func (r *Reactions) GetEyes() int { 14651 if r == nil || r.Eyes == nil { 14652 return 0 14653 } 14654 return *r.Eyes 14655 } 14656 14657 // GetHeart returns the Heart field if it's non-nil, zero value otherwise. 14658 func (r *Reactions) GetHeart() int { 14659 if r == nil || r.Heart == nil { 14660 return 0 14661 } 14662 return *r.Heart 14663 } 14664 14665 // GetHooray returns the Hooray field if it's non-nil, zero value otherwise. 14666 func (r *Reactions) GetHooray() int { 14667 if r == nil || r.Hooray == nil { 14668 return 0 14669 } 14670 return *r.Hooray 14671 } 14672 14673 // GetLaugh returns the Laugh field if it's non-nil, zero value otherwise. 14674 func (r *Reactions) GetLaugh() int { 14675 if r == nil || r.Laugh == nil { 14676 return 0 14677 } 14678 return *r.Laugh 14679 } 14680 14681 // GetMinusOne returns the MinusOne field if it's non-nil, zero value otherwise. 14682 func (r *Reactions) GetMinusOne() int { 14683 if r == nil || r.MinusOne == nil { 14684 return 0 14685 } 14686 return *r.MinusOne 14687 } 14688 14689 // GetPlusOne returns the PlusOne field if it's non-nil, zero value otherwise. 14690 func (r *Reactions) GetPlusOne() int { 14691 if r == nil || r.PlusOne == nil { 14692 return 0 14693 } 14694 return *r.PlusOne 14695 } 14696 14697 // GetRocket returns the Rocket field if it's non-nil, zero value otherwise. 14698 func (r *Reactions) GetRocket() int { 14699 if r == nil || r.Rocket == nil { 14700 return 0 14701 } 14702 return *r.Rocket 14703 } 14704 14705 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 14706 func (r *Reactions) GetTotalCount() int { 14707 if r == nil || r.TotalCount == nil { 14708 return 0 14709 } 14710 return *r.TotalCount 14711 } 14712 14713 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14714 func (r *Reactions) GetURL() string { 14715 if r == nil || r.URL == nil { 14716 return "" 14717 } 14718 return *r.URL 14719 } 14720 14721 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14722 func (r *Reference) GetNodeID() string { 14723 if r == nil || r.NodeID == nil { 14724 return "" 14725 } 14726 return *r.NodeID 14727 } 14728 14729 // GetObject returns the Object field. 14730 func (r *Reference) GetObject() *GitObject { 14731 if r == nil { 14732 return nil 14733 } 14734 return r.Object 14735 } 14736 14737 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 14738 func (r *Reference) GetRef() string { 14739 if r == nil || r.Ref == nil { 14740 return "" 14741 } 14742 return *r.Ref 14743 } 14744 14745 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14746 func (r *Reference) GetURL() string { 14747 if r == nil || r.URL == nil { 14748 return "" 14749 } 14750 return *r.URL 14751 } 14752 14753 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 14754 func (r *RegistrationToken) GetExpiresAt() Timestamp { 14755 if r == nil || r.ExpiresAt == nil { 14756 return Timestamp{} 14757 } 14758 return *r.ExpiresAt 14759 } 14760 14761 // GetToken returns the Token field if it's non-nil, zero value otherwise. 14762 func (r *RegistrationToken) GetToken() string { 14763 if r == nil || r.Token == nil { 14764 return "" 14765 } 14766 return *r.Token 14767 } 14768 14769 // GetBrowserDownloadURL returns the BrowserDownloadURL field if it's non-nil, zero value otherwise. 14770 func (r *ReleaseAsset) GetBrowserDownloadURL() string { 14771 if r == nil || r.BrowserDownloadURL == nil { 14772 return "" 14773 } 14774 return *r.BrowserDownloadURL 14775 } 14776 14777 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 14778 func (r *ReleaseAsset) GetContentType() string { 14779 if r == nil || r.ContentType == nil { 14780 return "" 14781 } 14782 return *r.ContentType 14783 } 14784 14785 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14786 func (r *ReleaseAsset) GetCreatedAt() Timestamp { 14787 if r == nil || r.CreatedAt == nil { 14788 return Timestamp{} 14789 } 14790 return *r.CreatedAt 14791 } 14792 14793 // GetDownloadCount returns the DownloadCount field if it's non-nil, zero value otherwise. 14794 func (r *ReleaseAsset) GetDownloadCount() int { 14795 if r == nil || r.DownloadCount == nil { 14796 return 0 14797 } 14798 return *r.DownloadCount 14799 } 14800 14801 // GetID returns the ID field if it's non-nil, zero value otherwise. 14802 func (r *ReleaseAsset) GetID() int64 { 14803 if r == nil || r.ID == nil { 14804 return 0 14805 } 14806 return *r.ID 14807 } 14808 14809 // GetLabel returns the Label field if it's non-nil, zero value otherwise. 14810 func (r *ReleaseAsset) GetLabel() string { 14811 if r == nil || r.Label == nil { 14812 return "" 14813 } 14814 return *r.Label 14815 } 14816 14817 // GetName returns the Name field if it's non-nil, zero value otherwise. 14818 func (r *ReleaseAsset) GetName() string { 14819 if r == nil || r.Name == nil { 14820 return "" 14821 } 14822 return *r.Name 14823 } 14824 14825 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14826 func (r *ReleaseAsset) GetNodeID() string { 14827 if r == nil || r.NodeID == nil { 14828 return "" 14829 } 14830 return *r.NodeID 14831 } 14832 14833 // GetSize returns the Size field if it's non-nil, zero value otherwise. 14834 func (r *ReleaseAsset) GetSize() int { 14835 if r == nil || r.Size == nil { 14836 return 0 14837 } 14838 return *r.Size 14839 } 14840 14841 // GetState returns the State field if it's non-nil, zero value otherwise. 14842 func (r *ReleaseAsset) GetState() string { 14843 if r == nil || r.State == nil { 14844 return "" 14845 } 14846 return *r.State 14847 } 14848 14849 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14850 func (r *ReleaseAsset) GetUpdatedAt() Timestamp { 14851 if r == nil || r.UpdatedAt == nil { 14852 return Timestamp{} 14853 } 14854 return *r.UpdatedAt 14855 } 14856 14857 // GetUploader returns the Uploader field. 14858 func (r *ReleaseAsset) GetUploader() *User { 14859 if r == nil { 14860 return nil 14861 } 14862 return r.Uploader 14863 } 14864 14865 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14866 func (r *ReleaseAsset) GetURL() string { 14867 if r == nil || r.URL == nil { 14868 return "" 14869 } 14870 return *r.URL 14871 } 14872 14873 // GetAction returns the Action field if it's non-nil, zero value otherwise. 14874 func (r *ReleaseEvent) GetAction() string { 14875 if r == nil || r.Action == nil { 14876 return "" 14877 } 14878 return *r.Action 14879 } 14880 14881 // GetInstallation returns the Installation field. 14882 func (r *ReleaseEvent) GetInstallation() *Installation { 14883 if r == nil { 14884 return nil 14885 } 14886 return r.Installation 14887 } 14888 14889 // GetRelease returns the Release field. 14890 func (r *ReleaseEvent) GetRelease() *RepositoryRelease { 14891 if r == nil { 14892 return nil 14893 } 14894 return r.Release 14895 } 14896 14897 // GetRepo returns the Repo field. 14898 func (r *ReleaseEvent) GetRepo() *Repository { 14899 if r == nil { 14900 return nil 14901 } 14902 return r.Repo 14903 } 14904 14905 // GetSender returns the Sender field. 14906 func (r *ReleaseEvent) GetSender() *User { 14907 if r == nil { 14908 return nil 14909 } 14910 return r.Sender 14911 } 14912 14913 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 14914 func (r *RemoveToken) GetExpiresAt() Timestamp { 14915 if r == nil || r.ExpiresAt == nil { 14916 return Timestamp{} 14917 } 14918 return *r.ExpiresAt 14919 } 14920 14921 // GetToken returns the Token field if it's non-nil, zero value otherwise. 14922 func (r *RemoveToken) GetToken() string { 14923 if r == nil || r.Token == nil { 14924 return "" 14925 } 14926 return *r.Token 14927 } 14928 14929 // GetFrom returns the From field if it's non-nil, zero value otherwise. 14930 func (r *Rename) GetFrom() string { 14931 if r == nil || r.From == nil { 14932 return "" 14933 } 14934 return *r.From 14935 } 14936 14937 // GetTo returns the To field if it's non-nil, zero value otherwise. 14938 func (r *Rename) GetTo() string { 14939 if r == nil || r.To == nil { 14940 return "" 14941 } 14942 return *r.To 14943 } 14944 14945 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 14946 func (r *RenameOrgResponse) GetMessage() string { 14947 if r == nil || r.Message == nil { 14948 return "" 14949 } 14950 return *r.Message 14951 } 14952 14953 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14954 func (r *RenameOrgResponse) GetURL() string { 14955 if r == nil || r.URL == nil { 14956 return "" 14957 } 14958 return *r.URL 14959 } 14960 14961 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 14962 func (r *RepoMergeUpstreamRequest) GetBranch() string { 14963 if r == nil || r.Branch == nil { 14964 return "" 14965 } 14966 return *r.Branch 14967 } 14968 14969 // GetBaseBranch returns the BaseBranch field if it's non-nil, zero value otherwise. 14970 func (r *RepoMergeUpstreamResult) GetBaseBranch() string { 14971 if r == nil || r.BaseBranch == nil { 14972 return "" 14973 } 14974 return *r.BaseBranch 14975 } 14976 14977 // GetMergeType returns the MergeType field if it's non-nil, zero value otherwise. 14978 func (r *RepoMergeUpstreamResult) GetMergeType() string { 14979 if r == nil || r.MergeType == nil { 14980 return "" 14981 } 14982 return *r.MergeType 14983 } 14984 14985 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 14986 func (r *RepoMergeUpstreamResult) GetMessage() string { 14987 if r == nil || r.Message == nil { 14988 return "" 14989 } 14990 return *r.Message 14991 } 14992 14993 // GetFrom returns the From field if it's non-nil, zero value otherwise. 14994 func (r *RepoName) GetFrom() string { 14995 if r == nil || r.From == nil { 14996 return "" 14997 } 14998 return *r.From 14999 } 15000 15001 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 15002 func (r *RepositoriesSearchResult) GetIncompleteResults() bool { 15003 if r == nil || r.IncompleteResults == nil { 15004 return false 15005 } 15006 return *r.IncompleteResults 15007 } 15008 15009 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 15010 func (r *RepositoriesSearchResult) GetTotal() int { 15011 if r == nil || r.Total == nil { 15012 return 0 15013 } 15014 return *r.Total 15015 } 15016 15017 // GetAllowAutoMerge returns the AllowAutoMerge field if it's non-nil, zero value otherwise. 15018 func (r *Repository) GetAllowAutoMerge() bool { 15019 if r == nil || r.AllowAutoMerge == nil { 15020 return false 15021 } 15022 return *r.AllowAutoMerge 15023 } 15024 15025 // GetAllowForking returns the AllowForking field if it's non-nil, zero value otherwise. 15026 func (r *Repository) GetAllowForking() bool { 15027 if r == nil || r.AllowForking == nil { 15028 return false 15029 } 15030 return *r.AllowForking 15031 } 15032 15033 // GetAllowMergeCommit returns the AllowMergeCommit field if it's non-nil, zero value otherwise. 15034 func (r *Repository) GetAllowMergeCommit() bool { 15035 if r == nil || r.AllowMergeCommit == nil { 15036 return false 15037 } 15038 return *r.AllowMergeCommit 15039 } 15040 15041 // GetAllowRebaseMerge returns the AllowRebaseMerge field if it's non-nil, zero value otherwise. 15042 func (r *Repository) GetAllowRebaseMerge() bool { 15043 if r == nil || r.AllowRebaseMerge == nil { 15044 return false 15045 } 15046 return *r.AllowRebaseMerge 15047 } 15048 15049 // GetAllowSquashMerge returns the AllowSquashMerge field if it's non-nil, zero value otherwise. 15050 func (r *Repository) GetAllowSquashMerge() bool { 15051 if r == nil || r.AllowSquashMerge == nil { 15052 return false 15053 } 15054 return *r.AllowSquashMerge 15055 } 15056 15057 // GetAllowUpdateBranch returns the AllowUpdateBranch field if it's non-nil, zero value otherwise. 15058 func (r *Repository) GetAllowUpdateBranch() bool { 15059 if r == nil || r.AllowUpdateBranch == nil { 15060 return false 15061 } 15062 return *r.AllowUpdateBranch 15063 } 15064 15065 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 15066 func (r *Repository) GetArchived() bool { 15067 if r == nil || r.Archived == nil { 15068 return false 15069 } 15070 return *r.Archived 15071 } 15072 15073 // GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 15074 func (r *Repository) GetArchiveURL() string { 15075 if r == nil || r.ArchiveURL == nil { 15076 return "" 15077 } 15078 return *r.ArchiveURL 15079 } 15080 15081 // GetAssigneesURL returns the AssigneesURL field if it's non-nil, zero value otherwise. 15082 func (r *Repository) GetAssigneesURL() string { 15083 if r == nil || r.AssigneesURL == nil { 15084 return "" 15085 } 15086 return *r.AssigneesURL 15087 } 15088 15089 // GetAutoInit returns the AutoInit field if it's non-nil, zero value otherwise. 15090 func (r *Repository) GetAutoInit() bool { 15091 if r == nil || r.AutoInit == nil { 15092 return false 15093 } 15094 return *r.AutoInit 15095 } 15096 15097 // GetBlobsURL returns the BlobsURL field if it's non-nil, zero value otherwise. 15098 func (r *Repository) GetBlobsURL() string { 15099 if r == nil || r.BlobsURL == nil { 15100 return "" 15101 } 15102 return *r.BlobsURL 15103 } 15104 15105 // GetBranchesURL returns the BranchesURL field if it's non-nil, zero value otherwise. 15106 func (r *Repository) GetBranchesURL() string { 15107 if r == nil || r.BranchesURL == nil { 15108 return "" 15109 } 15110 return *r.BranchesURL 15111 } 15112 15113 // GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 15114 func (r *Repository) GetCloneURL() string { 15115 if r == nil || r.CloneURL == nil { 15116 return "" 15117 } 15118 return *r.CloneURL 15119 } 15120 15121 // GetCodeOfConduct returns the CodeOfConduct field. 15122 func (r *Repository) GetCodeOfConduct() *CodeOfConduct { 15123 if r == nil { 15124 return nil 15125 } 15126 return r.CodeOfConduct 15127 } 15128 15129 // GetCollaboratorsURL returns the CollaboratorsURL field if it's non-nil, zero value otherwise. 15130 func (r *Repository) GetCollaboratorsURL() string { 15131 if r == nil || r.CollaboratorsURL == nil { 15132 return "" 15133 } 15134 return *r.CollaboratorsURL 15135 } 15136 15137 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 15138 func (r *Repository) GetCommentsURL() string { 15139 if r == nil || r.CommentsURL == nil { 15140 return "" 15141 } 15142 return *r.CommentsURL 15143 } 15144 15145 // GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. 15146 func (r *Repository) GetCommitsURL() string { 15147 if r == nil || r.CommitsURL == nil { 15148 return "" 15149 } 15150 return *r.CommitsURL 15151 } 15152 15153 // GetCompareURL returns the CompareURL field if it's non-nil, zero value otherwise. 15154 func (r *Repository) GetCompareURL() string { 15155 if r == nil || r.CompareURL == nil { 15156 return "" 15157 } 15158 return *r.CompareURL 15159 } 15160 15161 // GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 15162 func (r *Repository) GetContentsURL() string { 15163 if r == nil || r.ContentsURL == nil { 15164 return "" 15165 } 15166 return *r.ContentsURL 15167 } 15168 15169 // GetContributorsURL returns the ContributorsURL field if it's non-nil, zero value otherwise. 15170 func (r *Repository) GetContributorsURL() string { 15171 if r == nil || r.ContributorsURL == nil { 15172 return "" 15173 } 15174 return *r.ContributorsURL 15175 } 15176 15177 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 15178 func (r *Repository) GetCreatedAt() Timestamp { 15179 if r == nil || r.CreatedAt == nil { 15180 return Timestamp{} 15181 } 15182 return *r.CreatedAt 15183 } 15184 15185 // GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 15186 func (r *Repository) GetDefaultBranch() string { 15187 if r == nil || r.DefaultBranch == nil { 15188 return "" 15189 } 15190 return *r.DefaultBranch 15191 } 15192 15193 // GetDeleteBranchOnMerge returns the DeleteBranchOnMerge field if it's non-nil, zero value otherwise. 15194 func (r *Repository) GetDeleteBranchOnMerge() bool { 15195 if r == nil || r.DeleteBranchOnMerge == nil { 15196 return false 15197 } 15198 return *r.DeleteBranchOnMerge 15199 } 15200 15201 // GetDeploymentsURL returns the DeploymentsURL field if it's non-nil, zero value otherwise. 15202 func (r *Repository) GetDeploymentsURL() string { 15203 if r == nil || r.DeploymentsURL == nil { 15204 return "" 15205 } 15206 return *r.DeploymentsURL 15207 } 15208 15209 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 15210 func (r *Repository) GetDescription() string { 15211 if r == nil || r.Description == nil { 15212 return "" 15213 } 15214 return *r.Description 15215 } 15216 15217 // GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. 15218 func (r *Repository) GetDisabled() bool { 15219 if r == nil || r.Disabled == nil { 15220 return false 15221 } 15222 return *r.Disabled 15223 } 15224 15225 // GetDownloadsURL returns the DownloadsURL field if it's non-nil, zero value otherwise. 15226 func (r *Repository) GetDownloadsURL() string { 15227 if r == nil || r.DownloadsURL == nil { 15228 return "" 15229 } 15230 return *r.DownloadsURL 15231 } 15232 15233 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 15234 func (r *Repository) GetEventsURL() string { 15235 if r == nil || r.EventsURL == nil { 15236 return "" 15237 } 15238 return *r.EventsURL 15239 } 15240 15241 // GetFork returns the Fork field if it's non-nil, zero value otherwise. 15242 func (r *Repository) GetFork() bool { 15243 if r == nil || r.Fork == nil { 15244 return false 15245 } 15246 return *r.Fork 15247 } 15248 15249 // GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 15250 func (r *Repository) GetForksCount() int { 15251 if r == nil || r.ForksCount == nil { 15252 return 0 15253 } 15254 return *r.ForksCount 15255 } 15256 15257 // GetForksURL returns the ForksURL field if it's non-nil, zero value otherwise. 15258 func (r *Repository) GetForksURL() string { 15259 if r == nil || r.ForksURL == nil { 15260 return "" 15261 } 15262 return *r.ForksURL 15263 } 15264 15265 // GetFullName returns the FullName field if it's non-nil, zero value otherwise. 15266 func (r *Repository) GetFullName() string { 15267 if r == nil || r.FullName == nil { 15268 return "" 15269 } 15270 return *r.FullName 15271 } 15272 15273 // GetGitCommitsURL returns the GitCommitsURL field if it's non-nil, zero value otherwise. 15274 func (r *Repository) GetGitCommitsURL() string { 15275 if r == nil || r.GitCommitsURL == nil { 15276 return "" 15277 } 15278 return *r.GitCommitsURL 15279 } 15280 15281 // GetGitignoreTemplate returns the GitignoreTemplate field if it's non-nil, zero value otherwise. 15282 func (r *Repository) GetGitignoreTemplate() string { 15283 if r == nil || r.GitignoreTemplate == nil { 15284 return "" 15285 } 15286 return *r.GitignoreTemplate 15287 } 15288 15289 // GetGitRefsURL returns the GitRefsURL field if it's non-nil, zero value otherwise. 15290 func (r *Repository) GetGitRefsURL() string { 15291 if r == nil || r.GitRefsURL == nil { 15292 return "" 15293 } 15294 return *r.GitRefsURL 15295 } 15296 15297 // GetGitTagsURL returns the GitTagsURL field if it's non-nil, zero value otherwise. 15298 func (r *Repository) GetGitTagsURL() string { 15299 if r == nil || r.GitTagsURL == nil { 15300 return "" 15301 } 15302 return *r.GitTagsURL 15303 } 15304 15305 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 15306 func (r *Repository) GetGitURL() string { 15307 if r == nil || r.GitURL == nil { 15308 return "" 15309 } 15310 return *r.GitURL 15311 } 15312 15313 // GetHasDiscussions returns the HasDiscussions field if it's non-nil, zero value otherwise. 15314 func (r *Repository) GetHasDiscussions() bool { 15315 if r == nil || r.HasDiscussions == nil { 15316 return false 15317 } 15318 return *r.HasDiscussions 15319 } 15320 15321 // GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 15322 func (r *Repository) GetHasDownloads() bool { 15323 if r == nil || r.HasDownloads == nil { 15324 return false 15325 } 15326 return *r.HasDownloads 15327 } 15328 15329 // GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 15330 func (r *Repository) GetHasIssues() bool { 15331 if r == nil || r.HasIssues == nil { 15332 return false 15333 } 15334 return *r.HasIssues 15335 } 15336 15337 // GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 15338 func (r *Repository) GetHasPages() bool { 15339 if r == nil || r.HasPages == nil { 15340 return false 15341 } 15342 return *r.HasPages 15343 } 15344 15345 // GetHasProjects returns the HasProjects field if it's non-nil, zero value otherwise. 15346 func (r *Repository) GetHasProjects() bool { 15347 if r == nil || r.HasProjects == nil { 15348 return false 15349 } 15350 return *r.HasProjects 15351 } 15352 15353 // GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 15354 func (r *Repository) GetHasWiki() bool { 15355 if r == nil || r.HasWiki == nil { 15356 return false 15357 } 15358 return *r.HasWiki 15359 } 15360 15361 // GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 15362 func (r *Repository) GetHomepage() string { 15363 if r == nil || r.Homepage == nil { 15364 return "" 15365 } 15366 return *r.Homepage 15367 } 15368 15369 // GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 15370 func (r *Repository) GetHooksURL() string { 15371 if r == nil || r.HooksURL == nil { 15372 return "" 15373 } 15374 return *r.HooksURL 15375 } 15376 15377 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 15378 func (r *Repository) GetHTMLURL() string { 15379 if r == nil || r.HTMLURL == nil { 15380 return "" 15381 } 15382 return *r.HTMLURL 15383 } 15384 15385 // GetID returns the ID field if it's non-nil, zero value otherwise. 15386 func (r *Repository) GetID() int64 { 15387 if r == nil || r.ID == nil { 15388 return 0 15389 } 15390 return *r.ID 15391 } 15392 15393 // GetIssueCommentURL returns the IssueCommentURL field if it's non-nil, zero value otherwise. 15394 func (r *Repository) GetIssueCommentURL() string { 15395 if r == nil || r.IssueCommentURL == nil { 15396 return "" 15397 } 15398 return *r.IssueCommentURL 15399 } 15400 15401 // GetIssueEventsURL returns the IssueEventsURL field if it's non-nil, zero value otherwise. 15402 func (r *Repository) GetIssueEventsURL() string { 15403 if r == nil || r.IssueEventsURL == nil { 15404 return "" 15405 } 15406 return *r.IssueEventsURL 15407 } 15408 15409 // GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 15410 func (r *Repository) GetIssuesURL() string { 15411 if r == nil || r.IssuesURL == nil { 15412 return "" 15413 } 15414 return *r.IssuesURL 15415 } 15416 15417 // GetIsTemplate returns the IsTemplate field if it's non-nil, zero value otherwise. 15418 func (r *Repository) GetIsTemplate() bool { 15419 if r == nil || r.IsTemplate == nil { 15420 return false 15421 } 15422 return *r.IsTemplate 15423 } 15424 15425 // GetKeysURL returns the KeysURL field if it's non-nil, zero value otherwise. 15426 func (r *Repository) GetKeysURL() string { 15427 if r == nil || r.KeysURL == nil { 15428 return "" 15429 } 15430 return *r.KeysURL 15431 } 15432 15433 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 15434 func (r *Repository) GetLabelsURL() string { 15435 if r == nil || r.LabelsURL == nil { 15436 return "" 15437 } 15438 return *r.LabelsURL 15439 } 15440 15441 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 15442 func (r *Repository) GetLanguage() string { 15443 if r == nil || r.Language == nil { 15444 return "" 15445 } 15446 return *r.Language 15447 } 15448 15449 // GetLanguagesURL returns the LanguagesURL field if it's non-nil, zero value otherwise. 15450 func (r *Repository) GetLanguagesURL() string { 15451 if r == nil || r.LanguagesURL == nil { 15452 return "" 15453 } 15454 return *r.LanguagesURL 15455 } 15456 15457 // GetLicense returns the License field. 15458 func (r *Repository) GetLicense() *License { 15459 if r == nil { 15460 return nil 15461 } 15462 return r.License 15463 } 15464 15465 // GetLicenseTemplate returns the LicenseTemplate field if it's non-nil, zero value otherwise. 15466 func (r *Repository) GetLicenseTemplate() string { 15467 if r == nil || r.LicenseTemplate == nil { 15468 return "" 15469 } 15470 return *r.LicenseTemplate 15471 } 15472 15473 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 15474 func (r *Repository) GetMasterBranch() string { 15475 if r == nil || r.MasterBranch == nil { 15476 return "" 15477 } 15478 return *r.MasterBranch 15479 } 15480 15481 // GetMergeCommitMessage returns the MergeCommitMessage field if it's non-nil, zero value otherwise. 15482 func (r *Repository) GetMergeCommitMessage() string { 15483 if r == nil || r.MergeCommitMessage == nil { 15484 return "" 15485 } 15486 return *r.MergeCommitMessage 15487 } 15488 15489 // GetMergeCommitTitle returns the MergeCommitTitle field if it's non-nil, zero value otherwise. 15490 func (r *Repository) GetMergeCommitTitle() string { 15491 if r == nil || r.MergeCommitTitle == nil { 15492 return "" 15493 } 15494 return *r.MergeCommitTitle 15495 } 15496 15497 // GetMergesURL returns the MergesURL field if it's non-nil, zero value otherwise. 15498 func (r *Repository) GetMergesURL() string { 15499 if r == nil || r.MergesURL == nil { 15500 return "" 15501 } 15502 return *r.MergesURL 15503 } 15504 15505 // GetMilestonesURL returns the MilestonesURL field if it's non-nil, zero value otherwise. 15506 func (r *Repository) GetMilestonesURL() string { 15507 if r == nil || r.MilestonesURL == nil { 15508 return "" 15509 } 15510 return *r.MilestonesURL 15511 } 15512 15513 // GetMirrorURL returns the MirrorURL field if it's non-nil, zero value otherwise. 15514 func (r *Repository) GetMirrorURL() string { 15515 if r == nil || r.MirrorURL == nil { 15516 return "" 15517 } 15518 return *r.MirrorURL 15519 } 15520 15521 // GetName returns the Name field if it's non-nil, zero value otherwise. 15522 func (r *Repository) GetName() string { 15523 if r == nil || r.Name == nil { 15524 return "" 15525 } 15526 return *r.Name 15527 } 15528 15529 // GetNetworkCount returns the NetworkCount field if it's non-nil, zero value otherwise. 15530 func (r *Repository) GetNetworkCount() int { 15531 if r == nil || r.NetworkCount == nil { 15532 return 0 15533 } 15534 return *r.NetworkCount 15535 } 15536 15537 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15538 func (r *Repository) GetNodeID() string { 15539 if r == nil || r.NodeID == nil { 15540 return "" 15541 } 15542 return *r.NodeID 15543 } 15544 15545 // GetNotificationsURL returns the NotificationsURL field if it's non-nil, zero value otherwise. 15546 func (r *Repository) GetNotificationsURL() string { 15547 if r == nil || r.NotificationsURL == nil { 15548 return "" 15549 } 15550 return *r.NotificationsURL 15551 } 15552 15553 // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 15554 func (r *Repository) GetOpenIssues() int { 15555 if r == nil || r.OpenIssues == nil { 15556 return 0 15557 } 15558 return *r.OpenIssues 15559 } 15560 15561 // GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 15562 func (r *Repository) GetOpenIssuesCount() int { 15563 if r == nil || r.OpenIssuesCount == nil { 15564 return 0 15565 } 15566 return *r.OpenIssuesCount 15567 } 15568 15569 // GetOrganization returns the Organization field. 15570 func (r *Repository) GetOrganization() *Organization { 15571 if r == nil { 15572 return nil 15573 } 15574 return r.Organization 15575 } 15576 15577 // GetOwner returns the Owner field. 15578 func (r *Repository) GetOwner() *User { 15579 if r == nil { 15580 return nil 15581 } 15582 return r.Owner 15583 } 15584 15585 // GetParent returns the Parent field. 15586 func (r *Repository) GetParent() *Repository { 15587 if r == nil { 15588 return nil 15589 } 15590 return r.Parent 15591 } 15592 15593 // GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. 15594 func (r *Repository) GetPermissions() map[string]bool { 15595 if r == nil || r.Permissions == nil { 15596 return map[string]bool{} 15597 } 15598 return r.Permissions 15599 } 15600 15601 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 15602 func (r *Repository) GetPrivate() bool { 15603 if r == nil || r.Private == nil { 15604 return false 15605 } 15606 return *r.Private 15607 } 15608 15609 // GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 15610 func (r *Repository) GetPullsURL() string { 15611 if r == nil || r.PullsURL == nil { 15612 return "" 15613 } 15614 return *r.PullsURL 15615 } 15616 15617 // GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 15618 func (r *Repository) GetPushedAt() Timestamp { 15619 if r == nil || r.PushedAt == nil { 15620 return Timestamp{} 15621 } 15622 return *r.PushedAt 15623 } 15624 15625 // GetReleasesURL returns the ReleasesURL field if it's non-nil, zero value otherwise. 15626 func (r *Repository) GetReleasesURL() string { 15627 if r == nil || r.ReleasesURL == nil { 15628 return "" 15629 } 15630 return *r.ReleasesURL 15631 } 15632 15633 // GetRoleName returns the RoleName field if it's non-nil, zero value otherwise. 15634 func (r *Repository) GetRoleName() string { 15635 if r == nil || r.RoleName == nil { 15636 return "" 15637 } 15638 return *r.RoleName 15639 } 15640 15641 // GetSecurityAndAnalysis returns the SecurityAndAnalysis field. 15642 func (r *Repository) GetSecurityAndAnalysis() *SecurityAndAnalysis { 15643 if r == nil { 15644 return nil 15645 } 15646 return r.SecurityAndAnalysis 15647 } 15648 15649 // GetSize returns the Size field if it's non-nil, zero value otherwise. 15650 func (r *Repository) GetSize() int { 15651 if r == nil || r.Size == nil { 15652 return 0 15653 } 15654 return *r.Size 15655 } 15656 15657 // GetSource returns the Source field. 15658 func (r *Repository) GetSource() *Repository { 15659 if r == nil { 15660 return nil 15661 } 15662 return r.Source 15663 } 15664 15665 // GetSquashMergeCommitMessage returns the SquashMergeCommitMessage field if it's non-nil, zero value otherwise. 15666 func (r *Repository) GetSquashMergeCommitMessage() string { 15667 if r == nil || r.SquashMergeCommitMessage == nil { 15668 return "" 15669 } 15670 return *r.SquashMergeCommitMessage 15671 } 15672 15673 // GetSquashMergeCommitTitle returns the SquashMergeCommitTitle field if it's non-nil, zero value otherwise. 15674 func (r *Repository) GetSquashMergeCommitTitle() string { 15675 if r == nil || r.SquashMergeCommitTitle == nil { 15676 return "" 15677 } 15678 return *r.SquashMergeCommitTitle 15679 } 15680 15681 // GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 15682 func (r *Repository) GetSSHURL() string { 15683 if r == nil || r.SSHURL == nil { 15684 return "" 15685 } 15686 return *r.SSHURL 15687 } 15688 15689 // GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 15690 func (r *Repository) GetStargazersCount() int { 15691 if r == nil || r.StargazersCount == nil { 15692 return 0 15693 } 15694 return *r.StargazersCount 15695 } 15696 15697 // GetStargazersURL returns the StargazersURL field if it's non-nil, zero value otherwise. 15698 func (r *Repository) GetStargazersURL() string { 15699 if r == nil || r.StargazersURL == nil { 15700 return "" 15701 } 15702 return *r.StargazersURL 15703 } 15704 15705 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 15706 func (r *Repository) GetStatusesURL() string { 15707 if r == nil || r.StatusesURL == nil { 15708 return "" 15709 } 15710 return *r.StatusesURL 15711 } 15712 15713 // GetSubscribersCount returns the SubscribersCount field if it's non-nil, zero value otherwise. 15714 func (r *Repository) GetSubscribersCount() int { 15715 if r == nil || r.SubscribersCount == nil { 15716 return 0 15717 } 15718 return *r.SubscribersCount 15719 } 15720 15721 // GetSubscribersURL returns the SubscribersURL field if it's non-nil, zero value otherwise. 15722 func (r *Repository) GetSubscribersURL() string { 15723 if r == nil || r.SubscribersURL == nil { 15724 return "" 15725 } 15726 return *r.SubscribersURL 15727 } 15728 15729 // GetSubscriptionURL returns the SubscriptionURL field if it's non-nil, zero value otherwise. 15730 func (r *Repository) GetSubscriptionURL() string { 15731 if r == nil || r.SubscriptionURL == nil { 15732 return "" 15733 } 15734 return *r.SubscriptionURL 15735 } 15736 15737 // GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 15738 func (r *Repository) GetSVNURL() string { 15739 if r == nil || r.SVNURL == nil { 15740 return "" 15741 } 15742 return *r.SVNURL 15743 } 15744 15745 // GetTagsURL returns the TagsURL field if it's non-nil, zero value otherwise. 15746 func (r *Repository) GetTagsURL() string { 15747 if r == nil || r.TagsURL == nil { 15748 return "" 15749 } 15750 return *r.TagsURL 15751 } 15752 15753 // GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. 15754 func (r *Repository) GetTeamID() int64 { 15755 if r == nil || r.TeamID == nil { 15756 return 0 15757 } 15758 return *r.TeamID 15759 } 15760 15761 // GetTeamsURL returns the TeamsURL field if it's non-nil, zero value otherwise. 15762 func (r *Repository) GetTeamsURL() string { 15763 if r == nil || r.TeamsURL == nil { 15764 return "" 15765 } 15766 return *r.TeamsURL 15767 } 15768 15769 // GetTemplateRepository returns the TemplateRepository field. 15770 func (r *Repository) GetTemplateRepository() *Repository { 15771 if r == nil { 15772 return nil 15773 } 15774 return r.TemplateRepository 15775 } 15776 15777 // GetTreesURL returns the TreesURL field if it's non-nil, zero value otherwise. 15778 func (r *Repository) GetTreesURL() string { 15779 if r == nil || r.TreesURL == nil { 15780 return "" 15781 } 15782 return *r.TreesURL 15783 } 15784 15785 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 15786 func (r *Repository) GetUpdatedAt() Timestamp { 15787 if r == nil || r.UpdatedAt == nil { 15788 return Timestamp{} 15789 } 15790 return *r.UpdatedAt 15791 } 15792 15793 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15794 func (r *Repository) GetURL() string { 15795 if r == nil || r.URL == nil { 15796 return "" 15797 } 15798 return *r.URL 15799 } 15800 15801 // GetUseSquashPRTitleAsDefault returns the UseSquashPRTitleAsDefault field if it's non-nil, zero value otherwise. 15802 func (r *Repository) GetUseSquashPRTitleAsDefault() bool { 15803 if r == nil || r.UseSquashPRTitleAsDefault == nil { 15804 return false 15805 } 15806 return *r.UseSquashPRTitleAsDefault 15807 } 15808 15809 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 15810 func (r *Repository) GetVisibility() string { 15811 if r == nil || r.Visibility == nil { 15812 return "" 15813 } 15814 return *r.Visibility 15815 } 15816 15817 // GetWatchers returns the Watchers field if it's non-nil, zero value otherwise. 15818 func (r *Repository) GetWatchers() int { 15819 if r == nil || r.Watchers == nil { 15820 return 0 15821 } 15822 return *r.Watchers 15823 } 15824 15825 // GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 15826 func (r *Repository) GetWatchersCount() int { 15827 if r == nil || r.WatchersCount == nil { 15828 return 0 15829 } 15830 return *r.WatchersCount 15831 } 15832 15833 // GetAccessLevel returns the AccessLevel field if it's non-nil, zero value otherwise. 15834 func (r *RepositoryActionsAccessLevel) GetAccessLevel() string { 15835 if r == nil || r.AccessLevel == nil { 15836 return "" 15837 } 15838 return *r.AccessLevel 15839 } 15840 15841 // GetAdvancedSecurityCommitters returns the AdvancedSecurityCommitters field if it's non-nil, zero value otherwise. 15842 func (r *RepositoryActiveCommitters) GetAdvancedSecurityCommitters() int { 15843 if r == nil || r.AdvancedSecurityCommitters == nil { 15844 return 0 15845 } 15846 return *r.AdvancedSecurityCommitters 15847 } 15848 15849 // GetName returns the Name field if it's non-nil, zero value otherwise. 15850 func (r *RepositoryActiveCommitters) GetName() string { 15851 if r == nil || r.Name == nil { 15852 return "" 15853 } 15854 return *r.Name 15855 } 15856 15857 // GetBody returns the Body field if it's non-nil, zero value otherwise. 15858 func (r *RepositoryComment) GetBody() string { 15859 if r == nil || r.Body == nil { 15860 return "" 15861 } 15862 return *r.Body 15863 } 15864 15865 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 15866 func (r *RepositoryComment) GetCommitID() string { 15867 if r == nil || r.CommitID == nil { 15868 return "" 15869 } 15870 return *r.CommitID 15871 } 15872 15873 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 15874 func (r *RepositoryComment) GetCreatedAt() time.Time { 15875 if r == nil || r.CreatedAt == nil { 15876 return time.Time{} 15877 } 15878 return *r.CreatedAt 15879 } 15880 15881 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 15882 func (r *RepositoryComment) GetHTMLURL() string { 15883 if r == nil || r.HTMLURL == nil { 15884 return "" 15885 } 15886 return *r.HTMLURL 15887 } 15888 15889 // GetID returns the ID field if it's non-nil, zero value otherwise. 15890 func (r *RepositoryComment) GetID() int64 { 15891 if r == nil || r.ID == nil { 15892 return 0 15893 } 15894 return *r.ID 15895 } 15896 15897 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15898 func (r *RepositoryComment) GetNodeID() string { 15899 if r == nil || r.NodeID == nil { 15900 return "" 15901 } 15902 return *r.NodeID 15903 } 15904 15905 // GetPath returns the Path field if it's non-nil, zero value otherwise. 15906 func (r *RepositoryComment) GetPath() string { 15907 if r == nil || r.Path == nil { 15908 return "" 15909 } 15910 return *r.Path 15911 } 15912 15913 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 15914 func (r *RepositoryComment) GetPosition() int { 15915 if r == nil || r.Position == nil { 15916 return 0 15917 } 15918 return *r.Position 15919 } 15920 15921 // GetReactions returns the Reactions field. 15922 func (r *RepositoryComment) GetReactions() *Reactions { 15923 if r == nil { 15924 return nil 15925 } 15926 return r.Reactions 15927 } 15928 15929 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 15930 func (r *RepositoryComment) GetUpdatedAt() time.Time { 15931 if r == nil || r.UpdatedAt == nil { 15932 return time.Time{} 15933 } 15934 return *r.UpdatedAt 15935 } 15936 15937 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15938 func (r *RepositoryComment) GetURL() string { 15939 if r == nil || r.URL == nil { 15940 return "" 15941 } 15942 return *r.URL 15943 } 15944 15945 // GetUser returns the User field. 15946 func (r *RepositoryComment) GetUser() *User { 15947 if r == nil { 15948 return nil 15949 } 15950 return r.User 15951 } 15952 15953 // GetAuthor returns the Author field. 15954 func (r *RepositoryCommit) GetAuthor() *User { 15955 if r == nil { 15956 return nil 15957 } 15958 return r.Author 15959 } 15960 15961 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 15962 func (r *RepositoryCommit) GetCommentsURL() string { 15963 if r == nil || r.CommentsURL == nil { 15964 return "" 15965 } 15966 return *r.CommentsURL 15967 } 15968 15969 // GetCommit returns the Commit field. 15970 func (r *RepositoryCommit) GetCommit() *Commit { 15971 if r == nil { 15972 return nil 15973 } 15974 return r.Commit 15975 } 15976 15977 // GetCommitter returns the Committer field. 15978 func (r *RepositoryCommit) GetCommitter() *User { 15979 if r == nil { 15980 return nil 15981 } 15982 return r.Committer 15983 } 15984 15985 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 15986 func (r *RepositoryCommit) GetHTMLURL() string { 15987 if r == nil || r.HTMLURL == nil { 15988 return "" 15989 } 15990 return *r.HTMLURL 15991 } 15992 15993 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15994 func (r *RepositoryCommit) GetNodeID() string { 15995 if r == nil || r.NodeID == nil { 15996 return "" 15997 } 15998 return *r.NodeID 15999 } 16000 16001 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 16002 func (r *RepositoryCommit) GetSHA() string { 16003 if r == nil || r.SHA == nil { 16004 return "" 16005 } 16006 return *r.SHA 16007 } 16008 16009 // GetStats returns the Stats field. 16010 func (r *RepositoryCommit) GetStats() *CommitStats { 16011 if r == nil { 16012 return nil 16013 } 16014 return r.Stats 16015 } 16016 16017 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16018 func (r *RepositoryCommit) GetURL() string { 16019 if r == nil || r.URL == nil { 16020 return "" 16021 } 16022 return *r.URL 16023 } 16024 16025 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 16026 func (r *RepositoryContent) GetDownloadURL() string { 16027 if r == nil || r.DownloadURL == nil { 16028 return "" 16029 } 16030 return *r.DownloadURL 16031 } 16032 16033 // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 16034 func (r *RepositoryContent) GetEncoding() string { 16035 if r == nil || r.Encoding == nil { 16036 return "" 16037 } 16038 return *r.Encoding 16039 } 16040 16041 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 16042 func (r *RepositoryContent) GetGitURL() string { 16043 if r == nil || r.GitURL == nil { 16044 return "" 16045 } 16046 return *r.GitURL 16047 } 16048 16049 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 16050 func (r *RepositoryContent) GetHTMLURL() string { 16051 if r == nil || r.HTMLURL == nil { 16052 return "" 16053 } 16054 return *r.HTMLURL 16055 } 16056 16057 // GetName returns the Name field if it's non-nil, zero value otherwise. 16058 func (r *RepositoryContent) GetName() string { 16059 if r == nil || r.Name == nil { 16060 return "" 16061 } 16062 return *r.Name 16063 } 16064 16065 // GetPath returns the Path field if it's non-nil, zero value otherwise. 16066 func (r *RepositoryContent) GetPath() string { 16067 if r == nil || r.Path == nil { 16068 return "" 16069 } 16070 return *r.Path 16071 } 16072 16073 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 16074 func (r *RepositoryContent) GetSHA() string { 16075 if r == nil || r.SHA == nil { 16076 return "" 16077 } 16078 return *r.SHA 16079 } 16080 16081 // GetSize returns the Size field if it's non-nil, zero value otherwise. 16082 func (r *RepositoryContent) GetSize() int { 16083 if r == nil || r.Size == nil { 16084 return 0 16085 } 16086 return *r.Size 16087 } 16088 16089 // GetTarget returns the Target field if it's non-nil, zero value otherwise. 16090 func (r *RepositoryContent) GetTarget() string { 16091 if r == nil || r.Target == nil { 16092 return "" 16093 } 16094 return *r.Target 16095 } 16096 16097 // GetType returns the Type field if it's non-nil, zero value otherwise. 16098 func (r *RepositoryContent) GetType() string { 16099 if r == nil || r.Type == nil { 16100 return "" 16101 } 16102 return *r.Type 16103 } 16104 16105 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16106 func (r *RepositoryContent) GetURL() string { 16107 if r == nil || r.URL == nil { 16108 return "" 16109 } 16110 return *r.URL 16111 } 16112 16113 // GetAuthor returns the Author field. 16114 func (r *RepositoryContentFileOptions) GetAuthor() *CommitAuthor { 16115 if r == nil { 16116 return nil 16117 } 16118 return r.Author 16119 } 16120 16121 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 16122 func (r *RepositoryContentFileOptions) GetBranch() string { 16123 if r == nil || r.Branch == nil { 16124 return "" 16125 } 16126 return *r.Branch 16127 } 16128 16129 // GetCommitter returns the Committer field. 16130 func (r *RepositoryContentFileOptions) GetCommitter() *CommitAuthor { 16131 if r == nil { 16132 return nil 16133 } 16134 return r.Committer 16135 } 16136 16137 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 16138 func (r *RepositoryContentFileOptions) GetMessage() string { 16139 if r == nil || r.Message == nil { 16140 return "" 16141 } 16142 return *r.Message 16143 } 16144 16145 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 16146 func (r *RepositoryContentFileOptions) GetSHA() string { 16147 if r == nil || r.SHA == nil { 16148 return "" 16149 } 16150 return *r.SHA 16151 } 16152 16153 // GetContent returns the Content field. 16154 func (r *RepositoryContentResponse) GetContent() *RepositoryContent { 16155 if r == nil { 16156 return nil 16157 } 16158 return r.Content 16159 } 16160 16161 // GetAction returns the Action field if it's non-nil, zero value otherwise. 16162 func (r *RepositoryDispatchEvent) GetAction() string { 16163 if r == nil || r.Action == nil { 16164 return "" 16165 } 16166 return *r.Action 16167 } 16168 16169 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 16170 func (r *RepositoryDispatchEvent) GetBranch() string { 16171 if r == nil || r.Branch == nil { 16172 return "" 16173 } 16174 return *r.Branch 16175 } 16176 16177 // GetInstallation returns the Installation field. 16178 func (r *RepositoryDispatchEvent) GetInstallation() *Installation { 16179 if r == nil { 16180 return nil 16181 } 16182 return r.Installation 16183 } 16184 16185 // GetOrg returns the Org field. 16186 func (r *RepositoryDispatchEvent) GetOrg() *Organization { 16187 if r == nil { 16188 return nil 16189 } 16190 return r.Org 16191 } 16192 16193 // GetRepo returns the Repo field. 16194 func (r *RepositoryDispatchEvent) GetRepo() *Repository { 16195 if r == nil { 16196 return nil 16197 } 16198 return r.Repo 16199 } 16200 16201 // GetSender returns the Sender field. 16202 func (r *RepositoryDispatchEvent) GetSender() *User { 16203 if r == nil { 16204 return nil 16205 } 16206 return r.Sender 16207 } 16208 16209 // GetAction returns the Action field if it's non-nil, zero value otherwise. 16210 func (r *RepositoryEvent) GetAction() string { 16211 if r == nil || r.Action == nil { 16212 return "" 16213 } 16214 return *r.Action 16215 } 16216 16217 // GetChanges returns the Changes field. 16218 func (r *RepositoryEvent) GetChanges() *EditChange { 16219 if r == nil { 16220 return nil 16221 } 16222 return r.Changes 16223 } 16224 16225 // GetInstallation returns the Installation field. 16226 func (r *RepositoryEvent) GetInstallation() *Installation { 16227 if r == nil { 16228 return nil 16229 } 16230 return r.Installation 16231 } 16232 16233 // GetOrg returns the Org field. 16234 func (r *RepositoryEvent) GetOrg() *Organization { 16235 if r == nil { 16236 return nil 16237 } 16238 return r.Org 16239 } 16240 16241 // GetRepo returns the Repo field. 16242 func (r *RepositoryEvent) GetRepo() *Repository { 16243 if r == nil { 16244 return nil 16245 } 16246 return r.Repo 16247 } 16248 16249 // GetSender returns the Sender field. 16250 func (r *RepositoryEvent) GetSender() *User { 16251 if r == nil { 16252 return nil 16253 } 16254 return r.Sender 16255 } 16256 16257 // GetOrg returns the Org field. 16258 func (r *RepositoryImportEvent) GetOrg() *Organization { 16259 if r == nil { 16260 return nil 16261 } 16262 return r.Org 16263 } 16264 16265 // GetRepo returns the Repo field. 16266 func (r *RepositoryImportEvent) GetRepo() *Repository { 16267 if r == nil { 16268 return nil 16269 } 16270 return r.Repo 16271 } 16272 16273 // GetSender returns the Sender field. 16274 func (r *RepositoryImportEvent) GetSender() *User { 16275 if r == nil { 16276 return nil 16277 } 16278 return r.Sender 16279 } 16280 16281 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 16282 func (r *RepositoryImportEvent) GetStatus() string { 16283 if r == nil || r.Status == nil { 16284 return "" 16285 } 16286 return *r.Status 16287 } 16288 16289 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 16290 func (r *RepositoryInvitation) GetCreatedAt() Timestamp { 16291 if r == nil || r.CreatedAt == nil { 16292 return Timestamp{} 16293 } 16294 return *r.CreatedAt 16295 } 16296 16297 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 16298 func (r *RepositoryInvitation) GetHTMLURL() string { 16299 if r == nil || r.HTMLURL == nil { 16300 return "" 16301 } 16302 return *r.HTMLURL 16303 } 16304 16305 // GetID returns the ID field if it's non-nil, zero value otherwise. 16306 func (r *RepositoryInvitation) GetID() int64 { 16307 if r == nil || r.ID == nil { 16308 return 0 16309 } 16310 return *r.ID 16311 } 16312 16313 // GetInvitee returns the Invitee field. 16314 func (r *RepositoryInvitation) GetInvitee() *User { 16315 if r == nil { 16316 return nil 16317 } 16318 return r.Invitee 16319 } 16320 16321 // GetInviter returns the Inviter field. 16322 func (r *RepositoryInvitation) GetInviter() *User { 16323 if r == nil { 16324 return nil 16325 } 16326 return r.Inviter 16327 } 16328 16329 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 16330 func (r *RepositoryInvitation) GetPermissions() string { 16331 if r == nil || r.Permissions == nil { 16332 return "" 16333 } 16334 return *r.Permissions 16335 } 16336 16337 // GetRepo returns the Repo field. 16338 func (r *RepositoryInvitation) GetRepo() *Repository { 16339 if r == nil { 16340 return nil 16341 } 16342 return r.Repo 16343 } 16344 16345 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16346 func (r *RepositoryInvitation) GetURL() string { 16347 if r == nil || r.URL == nil { 16348 return "" 16349 } 16350 return *r.URL 16351 } 16352 16353 // GetContent returns the Content field if it's non-nil, zero value otherwise. 16354 func (r *RepositoryLicense) GetContent() string { 16355 if r == nil || r.Content == nil { 16356 return "" 16357 } 16358 return *r.Content 16359 } 16360 16361 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 16362 func (r *RepositoryLicense) GetDownloadURL() string { 16363 if r == nil || r.DownloadURL == nil { 16364 return "" 16365 } 16366 return *r.DownloadURL 16367 } 16368 16369 // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 16370 func (r *RepositoryLicense) GetEncoding() string { 16371 if r == nil || r.Encoding == nil { 16372 return "" 16373 } 16374 return *r.Encoding 16375 } 16376 16377 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 16378 func (r *RepositoryLicense) GetGitURL() string { 16379 if r == nil || r.GitURL == nil { 16380 return "" 16381 } 16382 return *r.GitURL 16383 } 16384 16385 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 16386 func (r *RepositoryLicense) GetHTMLURL() string { 16387 if r == nil || r.HTMLURL == nil { 16388 return "" 16389 } 16390 return *r.HTMLURL 16391 } 16392 16393 // GetLicense returns the License field. 16394 func (r *RepositoryLicense) GetLicense() *License { 16395 if r == nil { 16396 return nil 16397 } 16398 return r.License 16399 } 16400 16401 // GetName returns the Name field if it's non-nil, zero value otherwise. 16402 func (r *RepositoryLicense) GetName() string { 16403 if r == nil || r.Name == nil { 16404 return "" 16405 } 16406 return *r.Name 16407 } 16408 16409 // GetPath returns the Path field if it's non-nil, zero value otherwise. 16410 func (r *RepositoryLicense) GetPath() string { 16411 if r == nil || r.Path == nil { 16412 return "" 16413 } 16414 return *r.Path 16415 } 16416 16417 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 16418 func (r *RepositoryLicense) GetSHA() string { 16419 if r == nil || r.SHA == nil { 16420 return "" 16421 } 16422 return *r.SHA 16423 } 16424 16425 // GetSize returns the Size field if it's non-nil, zero value otherwise. 16426 func (r *RepositoryLicense) GetSize() int { 16427 if r == nil || r.Size == nil { 16428 return 0 16429 } 16430 return *r.Size 16431 } 16432 16433 // GetType returns the Type field if it's non-nil, zero value otherwise. 16434 func (r *RepositoryLicense) GetType() string { 16435 if r == nil || r.Type == nil { 16436 return "" 16437 } 16438 return *r.Type 16439 } 16440 16441 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16442 func (r *RepositoryLicense) GetURL() string { 16443 if r == nil || r.URL == nil { 16444 return "" 16445 } 16446 return *r.URL 16447 } 16448 16449 // GetBase returns the Base field if it's non-nil, zero value otherwise. 16450 func (r *RepositoryMergeRequest) GetBase() string { 16451 if r == nil || r.Base == nil { 16452 return "" 16453 } 16454 return *r.Base 16455 } 16456 16457 // GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. 16458 func (r *RepositoryMergeRequest) GetCommitMessage() string { 16459 if r == nil || r.CommitMessage == nil { 16460 return "" 16461 } 16462 return *r.CommitMessage 16463 } 16464 16465 // GetHead returns the Head field if it's non-nil, zero value otherwise. 16466 func (r *RepositoryMergeRequest) GetHead() string { 16467 if r == nil || r.Head == nil { 16468 return "" 16469 } 16470 return *r.Head 16471 } 16472 16473 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 16474 func (r *RepositoryPermissionLevel) GetPermission() string { 16475 if r == nil || r.Permission == nil { 16476 return "" 16477 } 16478 return *r.Permission 16479 } 16480 16481 // GetUser returns the User field. 16482 func (r *RepositoryPermissionLevel) GetUser() *User { 16483 if r == nil { 16484 return nil 16485 } 16486 return r.User 16487 } 16488 16489 // GetAssetsURL returns the AssetsURL field if it's non-nil, zero value otherwise. 16490 func (r *RepositoryRelease) GetAssetsURL() string { 16491 if r == nil || r.AssetsURL == nil { 16492 return "" 16493 } 16494 return *r.AssetsURL 16495 } 16496 16497 // GetAuthor returns the Author field. 16498 func (r *RepositoryRelease) GetAuthor() *User { 16499 if r == nil { 16500 return nil 16501 } 16502 return r.Author 16503 } 16504 16505 // GetBody returns the Body field if it's non-nil, zero value otherwise. 16506 func (r *RepositoryRelease) GetBody() string { 16507 if r == nil || r.Body == nil { 16508 return "" 16509 } 16510 return *r.Body 16511 } 16512 16513 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 16514 func (r *RepositoryRelease) GetCreatedAt() Timestamp { 16515 if r == nil || r.CreatedAt == nil { 16516 return Timestamp{} 16517 } 16518 return *r.CreatedAt 16519 } 16520 16521 // GetDiscussionCategoryName returns the DiscussionCategoryName field if it's non-nil, zero value otherwise. 16522 func (r *RepositoryRelease) GetDiscussionCategoryName() string { 16523 if r == nil || r.DiscussionCategoryName == nil { 16524 return "" 16525 } 16526 return *r.DiscussionCategoryName 16527 } 16528 16529 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 16530 func (r *RepositoryRelease) GetDraft() bool { 16531 if r == nil || r.Draft == nil { 16532 return false 16533 } 16534 return *r.Draft 16535 } 16536 16537 // GetGenerateReleaseNotes returns the GenerateReleaseNotes field if it's non-nil, zero value otherwise. 16538 func (r *RepositoryRelease) GetGenerateReleaseNotes() bool { 16539 if r == nil || r.GenerateReleaseNotes == nil { 16540 return false 16541 } 16542 return *r.GenerateReleaseNotes 16543 } 16544 16545 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 16546 func (r *RepositoryRelease) GetHTMLURL() string { 16547 if r == nil || r.HTMLURL == nil { 16548 return "" 16549 } 16550 return *r.HTMLURL 16551 } 16552 16553 // GetID returns the ID field if it's non-nil, zero value otherwise. 16554 func (r *RepositoryRelease) GetID() int64 { 16555 if r == nil || r.ID == nil { 16556 return 0 16557 } 16558 return *r.ID 16559 } 16560 16561 // GetMakeLatest returns the MakeLatest field if it's non-nil, zero value otherwise. 16562 func (r *RepositoryRelease) GetMakeLatest() string { 16563 if r == nil || r.MakeLatest == nil { 16564 return "" 16565 } 16566 return *r.MakeLatest 16567 } 16568 16569 // GetName returns the Name field if it's non-nil, zero value otherwise. 16570 func (r *RepositoryRelease) GetName() string { 16571 if r == nil || r.Name == nil { 16572 return "" 16573 } 16574 return *r.Name 16575 } 16576 16577 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 16578 func (r *RepositoryRelease) GetNodeID() string { 16579 if r == nil || r.NodeID == nil { 16580 return "" 16581 } 16582 return *r.NodeID 16583 } 16584 16585 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 16586 func (r *RepositoryRelease) GetPrerelease() bool { 16587 if r == nil || r.Prerelease == nil { 16588 return false 16589 } 16590 return *r.Prerelease 16591 } 16592 16593 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 16594 func (r *RepositoryRelease) GetPublishedAt() Timestamp { 16595 if r == nil || r.PublishedAt == nil { 16596 return Timestamp{} 16597 } 16598 return *r.PublishedAt 16599 } 16600 16601 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 16602 func (r *RepositoryRelease) GetTagName() string { 16603 if r == nil || r.TagName == nil { 16604 return "" 16605 } 16606 return *r.TagName 16607 } 16608 16609 // GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 16610 func (r *RepositoryRelease) GetTarballURL() string { 16611 if r == nil || r.TarballURL == nil { 16612 return "" 16613 } 16614 return *r.TarballURL 16615 } 16616 16617 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 16618 func (r *RepositoryRelease) GetTargetCommitish() string { 16619 if r == nil || r.TargetCommitish == nil { 16620 return "" 16621 } 16622 return *r.TargetCommitish 16623 } 16624 16625 // GetUploadURL returns the UploadURL field if it's non-nil, zero value otherwise. 16626 func (r *RepositoryRelease) GetUploadURL() string { 16627 if r == nil || r.UploadURL == nil { 16628 return "" 16629 } 16630 return *r.UploadURL 16631 } 16632 16633 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16634 func (r *RepositoryRelease) GetURL() string { 16635 if r == nil || r.URL == nil { 16636 return "" 16637 } 16638 return *r.URL 16639 } 16640 16641 // GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 16642 func (r *RepositoryRelease) GetZipballURL() string { 16643 if r == nil || r.ZipballURL == nil { 16644 return "" 16645 } 16646 return *r.ZipballURL 16647 } 16648 16649 // GetCommit returns the Commit field. 16650 func (r *RepositoryTag) GetCommit() *Commit { 16651 if r == nil { 16652 return nil 16653 } 16654 return r.Commit 16655 } 16656 16657 // GetName returns the Name field if it's non-nil, zero value otherwise. 16658 func (r *RepositoryTag) GetName() string { 16659 if r == nil || r.Name == nil { 16660 return "" 16661 } 16662 return *r.Name 16663 } 16664 16665 // GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 16666 func (r *RepositoryTag) GetTarballURL() string { 16667 if r == nil || r.TarballURL == nil { 16668 return "" 16669 } 16670 return *r.TarballURL 16671 } 16672 16673 // GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 16674 func (r *RepositoryTag) GetZipballURL() string { 16675 if r == nil || r.ZipballURL == nil { 16676 return "" 16677 } 16678 return *r.ZipballURL 16679 } 16680 16681 // GetAffectedPackageName returns the AffectedPackageName field if it's non-nil, zero value otherwise. 16682 func (r *RepositoryVulnerabilityAlert) GetAffectedPackageName() string { 16683 if r == nil || r.AffectedPackageName == nil { 16684 return "" 16685 } 16686 return *r.AffectedPackageName 16687 } 16688 16689 // GetAffectedRange returns the AffectedRange field if it's non-nil, zero value otherwise. 16690 func (r *RepositoryVulnerabilityAlert) GetAffectedRange() string { 16691 if r == nil || r.AffectedRange == nil { 16692 return "" 16693 } 16694 return *r.AffectedRange 16695 } 16696 16697 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 16698 func (r *RepositoryVulnerabilityAlert) GetCreatedAt() Timestamp { 16699 if r == nil || r.CreatedAt == nil { 16700 return Timestamp{} 16701 } 16702 return *r.CreatedAt 16703 } 16704 16705 // GetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise. 16706 func (r *RepositoryVulnerabilityAlert) GetDismissedAt() Timestamp { 16707 if r == nil || r.DismissedAt == nil { 16708 return Timestamp{} 16709 } 16710 return *r.DismissedAt 16711 } 16712 16713 // GetDismisser returns the Dismisser field. 16714 func (r *RepositoryVulnerabilityAlert) GetDismisser() *User { 16715 if r == nil { 16716 return nil 16717 } 16718 return r.Dismisser 16719 } 16720 16721 // GetDismissReason returns the DismissReason field if it's non-nil, zero value otherwise. 16722 func (r *RepositoryVulnerabilityAlert) GetDismissReason() string { 16723 if r == nil || r.DismissReason == nil { 16724 return "" 16725 } 16726 return *r.DismissReason 16727 } 16728 16729 // GetExternalIdentifier returns the ExternalIdentifier field if it's non-nil, zero value otherwise. 16730 func (r *RepositoryVulnerabilityAlert) GetExternalIdentifier() string { 16731 if r == nil || r.ExternalIdentifier == nil { 16732 return "" 16733 } 16734 return *r.ExternalIdentifier 16735 } 16736 16737 // GetExternalReference returns the ExternalReference field if it's non-nil, zero value otherwise. 16738 func (r *RepositoryVulnerabilityAlert) GetExternalReference() string { 16739 if r == nil || r.ExternalReference == nil { 16740 return "" 16741 } 16742 return *r.ExternalReference 16743 } 16744 16745 // GetFixedIn returns the FixedIn field if it's non-nil, zero value otherwise. 16746 func (r *RepositoryVulnerabilityAlert) GetFixedIn() string { 16747 if r == nil || r.FixedIn == nil { 16748 return "" 16749 } 16750 return *r.FixedIn 16751 } 16752 16753 // GetGitHubSecurityAdvisoryID returns the GitHubSecurityAdvisoryID field if it's non-nil, zero value otherwise. 16754 func (r *RepositoryVulnerabilityAlert) GetGitHubSecurityAdvisoryID() string { 16755 if r == nil || r.GitHubSecurityAdvisoryID == nil { 16756 return "" 16757 } 16758 return *r.GitHubSecurityAdvisoryID 16759 } 16760 16761 // GetID returns the ID field if it's non-nil, zero value otherwise. 16762 func (r *RepositoryVulnerabilityAlert) GetID() int64 { 16763 if r == nil || r.ID == nil { 16764 return 0 16765 } 16766 return *r.ID 16767 } 16768 16769 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 16770 func (r *RepositoryVulnerabilityAlert) GetSeverity() string { 16771 if r == nil || r.Severity == nil { 16772 return "" 16773 } 16774 return *r.Severity 16775 } 16776 16777 // GetAction returns the Action field if it's non-nil, zero value otherwise. 16778 func (r *RepositoryVulnerabilityAlertEvent) GetAction() string { 16779 if r == nil || r.Action == nil { 16780 return "" 16781 } 16782 return *r.Action 16783 } 16784 16785 // GetAlert returns the Alert field. 16786 func (r *RepositoryVulnerabilityAlertEvent) GetAlert() *RepositoryVulnerabilityAlert { 16787 if r == nil { 16788 return nil 16789 } 16790 return r.Alert 16791 } 16792 16793 // GetInstallation returns the Installation field. 16794 func (r *RepositoryVulnerabilityAlertEvent) GetInstallation() *Installation { 16795 if r == nil { 16796 return nil 16797 } 16798 return r.Installation 16799 } 16800 16801 // GetRepository returns the Repository field. 16802 func (r *RepositoryVulnerabilityAlertEvent) GetRepository() *Repository { 16803 if r == nil { 16804 return nil 16805 } 16806 return r.Repository 16807 } 16808 16809 // GetSender returns the Sender field. 16810 func (r *RepositoryVulnerabilityAlertEvent) GetSender() *User { 16811 if r == nil { 16812 return nil 16813 } 16814 return r.Sender 16815 } 16816 16817 // GetForkRepos returns the ForkRepos field if it's non-nil, zero value otherwise. 16818 func (r *RepoStats) GetForkRepos() int { 16819 if r == nil || r.ForkRepos == nil { 16820 return 0 16821 } 16822 return *r.ForkRepos 16823 } 16824 16825 // GetOrgRepos returns the OrgRepos field if it's non-nil, zero value otherwise. 16826 func (r *RepoStats) GetOrgRepos() int { 16827 if r == nil || r.OrgRepos == nil { 16828 return 0 16829 } 16830 return *r.OrgRepos 16831 } 16832 16833 // GetRootRepos returns the RootRepos field if it's non-nil, zero value otherwise. 16834 func (r *RepoStats) GetRootRepos() int { 16835 if r == nil || r.RootRepos == nil { 16836 return 0 16837 } 16838 return *r.RootRepos 16839 } 16840 16841 // GetTotalPushes returns the TotalPushes field if it's non-nil, zero value otherwise. 16842 func (r *RepoStats) GetTotalPushes() int { 16843 if r == nil || r.TotalPushes == nil { 16844 return 0 16845 } 16846 return *r.TotalPushes 16847 } 16848 16849 // GetTotalRepos returns the TotalRepos field if it's non-nil, zero value otherwise. 16850 func (r *RepoStats) GetTotalRepos() int { 16851 if r == nil || r.TotalRepos == nil { 16852 return 0 16853 } 16854 return *r.TotalRepos 16855 } 16856 16857 // GetTotalWikis returns the TotalWikis field if it's non-nil, zero value otherwise. 16858 func (r *RepoStats) GetTotalWikis() int { 16859 if r == nil || r.TotalWikis == nil { 16860 return 0 16861 } 16862 return *r.TotalWikis 16863 } 16864 16865 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 16866 func (r *RepoStatus) GetAvatarURL() string { 16867 if r == nil || r.AvatarURL == nil { 16868 return "" 16869 } 16870 return *r.AvatarURL 16871 } 16872 16873 // GetContext returns the Context field if it's non-nil, zero value otherwise. 16874 func (r *RepoStatus) GetContext() string { 16875 if r == nil || r.Context == nil { 16876 return "" 16877 } 16878 return *r.Context 16879 } 16880 16881 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 16882 func (r *RepoStatus) GetCreatedAt() time.Time { 16883 if r == nil || r.CreatedAt == nil { 16884 return time.Time{} 16885 } 16886 return *r.CreatedAt 16887 } 16888 16889 // GetCreator returns the Creator field. 16890 func (r *RepoStatus) GetCreator() *User { 16891 if r == nil { 16892 return nil 16893 } 16894 return r.Creator 16895 } 16896 16897 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 16898 func (r *RepoStatus) GetDescription() string { 16899 if r == nil || r.Description == nil { 16900 return "" 16901 } 16902 return *r.Description 16903 } 16904 16905 // GetID returns the ID field if it's non-nil, zero value otherwise. 16906 func (r *RepoStatus) GetID() int64 { 16907 if r == nil || r.ID == nil { 16908 return 0 16909 } 16910 return *r.ID 16911 } 16912 16913 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 16914 func (r *RepoStatus) GetNodeID() string { 16915 if r == nil || r.NodeID == nil { 16916 return "" 16917 } 16918 return *r.NodeID 16919 } 16920 16921 // GetState returns the State field if it's non-nil, zero value otherwise. 16922 func (r *RepoStatus) GetState() string { 16923 if r == nil || r.State == nil { 16924 return "" 16925 } 16926 return *r.State 16927 } 16928 16929 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 16930 func (r *RepoStatus) GetTargetURL() string { 16931 if r == nil || r.TargetURL == nil { 16932 return "" 16933 } 16934 return *r.TargetURL 16935 } 16936 16937 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 16938 func (r *RepoStatus) GetUpdatedAt() time.Time { 16939 if r == nil || r.UpdatedAt == nil { 16940 return time.Time{} 16941 } 16942 return *r.UpdatedAt 16943 } 16944 16945 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16946 func (r *RepoStatus) GetURL() string { 16947 if r == nil || r.URL == nil { 16948 return "" 16949 } 16950 return *r.URL 16951 } 16952 16953 // GetFrom returns the From field if it's non-nil, zero value otherwise. 16954 func (r *RequireCodeOwnerReviewChanges) GetFrom() bool { 16955 if r == nil || r.From == nil { 16956 return false 16957 } 16958 return *r.From 16959 } 16960 16961 // GetFrom returns the From field if it's non-nil, zero value otherwise. 16962 func (r *RequiredConversationResolutionLevelChanges) GetFrom() string { 16963 if r == nil || r.From == nil { 16964 return "" 16965 } 16966 return *r.From 16967 } 16968 16969 // GetFrom returns the From field if it's non-nil, zero value otherwise. 16970 func (r *RequiredDeploymentsEnforcementLevelChanges) GetFrom() string { 16971 if r == nil || r.From == nil { 16972 return "" 16973 } 16974 return *r.From 16975 } 16976 16977 // GetType returns the Type field if it's non-nil, zero value otherwise. 16978 func (r *RequiredReviewer) GetType() string { 16979 if r == nil || r.Type == nil { 16980 return "" 16981 } 16982 return *r.Type 16983 } 16984 16985 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 16986 func (r *RequiredStatusCheck) GetAppID() int64 { 16987 if r == nil || r.AppID == nil { 16988 return 0 16989 } 16990 return *r.AppID 16991 } 16992 16993 // GetFrom returns the From field if it's non-nil, zero value otherwise. 16994 func (r *RequiredStatusChecksEnforcementLevelChanges) GetFrom() string { 16995 if r == nil || r.From == nil { 16996 return "" 16997 } 16998 return *r.From 16999 } 17000 17001 // GetStrict returns the Strict field if it's non-nil, zero value otherwise. 17002 func (r *RequiredStatusChecksRequest) GetStrict() bool { 17003 if r == nil || r.Strict == nil { 17004 return false 17005 } 17006 return *r.Strict 17007 } 17008 17009 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 17010 func (r *ReviewersRequest) GetNodeID() string { 17011 if r == nil || r.NodeID == nil { 17012 return "" 17013 } 17014 return *r.NodeID 17015 } 17016 17017 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 17018 func (r *Rule) GetDescription() string { 17019 if r == nil || r.Description == nil { 17020 return "" 17021 } 17022 return *r.Description 17023 } 17024 17025 // GetFullDescription returns the FullDescription field if it's non-nil, zero value otherwise. 17026 func (r *Rule) GetFullDescription() string { 17027 if r == nil || r.FullDescription == nil { 17028 return "" 17029 } 17030 return *r.FullDescription 17031 } 17032 17033 // GetHelp returns the Help field if it's non-nil, zero value otherwise. 17034 func (r *Rule) GetHelp() string { 17035 if r == nil || r.Help == nil { 17036 return "" 17037 } 17038 return *r.Help 17039 } 17040 17041 // GetID returns the ID field if it's non-nil, zero value otherwise. 17042 func (r *Rule) GetID() string { 17043 if r == nil || r.ID == nil { 17044 return "" 17045 } 17046 return *r.ID 17047 } 17048 17049 // GetName returns the Name field if it's non-nil, zero value otherwise. 17050 func (r *Rule) GetName() string { 17051 if r == nil || r.Name == nil { 17052 return "" 17053 } 17054 return *r.Name 17055 } 17056 17057 // GetSecuritySeverityLevel returns the SecuritySeverityLevel field if it's non-nil, zero value otherwise. 17058 func (r *Rule) GetSecuritySeverityLevel() string { 17059 if r == nil || r.SecuritySeverityLevel == nil { 17060 return "" 17061 } 17062 return *r.SecuritySeverityLevel 17063 } 17064 17065 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 17066 func (r *Rule) GetSeverity() string { 17067 if r == nil || r.Severity == nil { 17068 return "" 17069 } 17070 return *r.Severity 17071 } 17072 17073 // GetBusy returns the Busy field if it's non-nil, zero value otherwise. 17074 func (r *Runner) GetBusy() bool { 17075 if r == nil || r.Busy == nil { 17076 return false 17077 } 17078 return *r.Busy 17079 } 17080 17081 // GetID returns the ID field if it's non-nil, zero value otherwise. 17082 func (r *Runner) GetID() int64 { 17083 if r == nil || r.ID == nil { 17084 return 0 17085 } 17086 return *r.ID 17087 } 17088 17089 // GetName returns the Name field if it's non-nil, zero value otherwise. 17090 func (r *Runner) GetName() string { 17091 if r == nil || r.Name == nil { 17092 return "" 17093 } 17094 return *r.Name 17095 } 17096 17097 // GetOS returns the OS field if it's non-nil, zero value otherwise. 17098 func (r *Runner) GetOS() string { 17099 if r == nil || r.OS == nil { 17100 return "" 17101 } 17102 return *r.OS 17103 } 17104 17105 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 17106 func (r *Runner) GetStatus() string { 17107 if r == nil || r.Status == nil { 17108 return "" 17109 } 17110 return *r.Status 17111 } 17112 17113 // GetArchitecture returns the Architecture field if it's non-nil, zero value otherwise. 17114 func (r *RunnerApplicationDownload) GetArchitecture() string { 17115 if r == nil || r.Architecture == nil { 17116 return "" 17117 } 17118 return *r.Architecture 17119 } 17120 17121 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 17122 func (r *RunnerApplicationDownload) GetDownloadURL() string { 17123 if r == nil || r.DownloadURL == nil { 17124 return "" 17125 } 17126 return *r.DownloadURL 17127 } 17128 17129 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 17130 func (r *RunnerApplicationDownload) GetFilename() string { 17131 if r == nil || r.Filename == nil { 17132 return "" 17133 } 17134 return *r.Filename 17135 } 17136 17137 // GetOS returns the OS field if it's non-nil, zero value otherwise. 17138 func (r *RunnerApplicationDownload) GetOS() string { 17139 if r == nil || r.OS == nil { 17140 return "" 17141 } 17142 return *r.OS 17143 } 17144 17145 // GetSHA256Checksum returns the SHA256Checksum field if it's non-nil, zero value otherwise. 17146 func (r *RunnerApplicationDownload) GetSHA256Checksum() string { 17147 if r == nil || r.SHA256Checksum == nil { 17148 return "" 17149 } 17150 return *r.SHA256Checksum 17151 } 17152 17153 // GetTempDownloadToken returns the TempDownloadToken field if it's non-nil, zero value otherwise. 17154 func (r *RunnerApplicationDownload) GetTempDownloadToken() string { 17155 if r == nil || r.TempDownloadToken == nil { 17156 return "" 17157 } 17158 return *r.TempDownloadToken 17159 } 17160 17161 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 17162 func (r *RunnerGroup) GetAllowsPublicRepositories() bool { 17163 if r == nil || r.AllowsPublicRepositories == nil { 17164 return false 17165 } 17166 return *r.AllowsPublicRepositories 17167 } 17168 17169 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 17170 func (r *RunnerGroup) GetDefault() bool { 17171 if r == nil || r.Default == nil { 17172 return false 17173 } 17174 return *r.Default 17175 } 17176 17177 // GetID returns the ID field if it's non-nil, zero value otherwise. 17178 func (r *RunnerGroup) GetID() int64 { 17179 if r == nil || r.ID == nil { 17180 return 0 17181 } 17182 return *r.ID 17183 } 17184 17185 // GetInherited returns the Inherited field if it's non-nil, zero value otherwise. 17186 func (r *RunnerGroup) GetInherited() bool { 17187 if r == nil || r.Inherited == nil { 17188 return false 17189 } 17190 return *r.Inherited 17191 } 17192 17193 // GetName returns the Name field if it's non-nil, zero value otherwise. 17194 func (r *RunnerGroup) GetName() string { 17195 if r == nil || r.Name == nil { 17196 return "" 17197 } 17198 return *r.Name 17199 } 17200 17201 // GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. 17202 func (r *RunnerGroup) GetRestrictedToWorkflows() bool { 17203 if r == nil || r.RestrictedToWorkflows == nil { 17204 return false 17205 } 17206 return *r.RestrictedToWorkflows 17207 } 17208 17209 // GetRunnersURL returns the RunnersURL field if it's non-nil, zero value otherwise. 17210 func (r *RunnerGroup) GetRunnersURL() string { 17211 if r == nil || r.RunnersURL == nil { 17212 return "" 17213 } 17214 return *r.RunnersURL 17215 } 17216 17217 // GetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise. 17218 func (r *RunnerGroup) GetSelectedRepositoriesURL() string { 17219 if r == nil || r.SelectedRepositoriesURL == nil { 17220 return "" 17221 } 17222 return *r.SelectedRepositoriesURL 17223 } 17224 17225 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 17226 func (r *RunnerGroup) GetVisibility() string { 17227 if r == nil || r.Visibility == nil { 17228 return "" 17229 } 17230 return *r.Visibility 17231 } 17232 17233 // GetWorkflowRestrictionsReadOnly returns the WorkflowRestrictionsReadOnly field if it's non-nil, zero value otherwise. 17234 func (r *RunnerGroup) GetWorkflowRestrictionsReadOnly() bool { 17235 if r == nil || r.WorkflowRestrictionsReadOnly == nil { 17236 return false 17237 } 17238 return *r.WorkflowRestrictionsReadOnly 17239 } 17240 17241 // GetID returns the ID field if it's non-nil, zero value otherwise. 17242 func (r *RunnerLabels) GetID() int64 { 17243 if r == nil || r.ID == nil { 17244 return 0 17245 } 17246 return *r.ID 17247 } 17248 17249 // GetName returns the Name field if it's non-nil, zero value otherwise. 17250 func (r *RunnerLabels) GetName() string { 17251 if r == nil || r.Name == nil { 17252 return "" 17253 } 17254 return *r.Name 17255 } 17256 17257 // GetType returns the Type field if it's non-nil, zero value otherwise. 17258 func (r *RunnerLabels) GetType() string { 17259 if r == nil || r.Type == nil { 17260 return "" 17261 } 17262 return *r.Type 17263 } 17264 17265 // GetCheckoutURI returns the CheckoutURI field if it's non-nil, zero value otherwise. 17266 func (s *SarifAnalysis) GetCheckoutURI() string { 17267 if s == nil || s.CheckoutURI == nil { 17268 return "" 17269 } 17270 return *s.CheckoutURI 17271 } 17272 17273 // GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. 17274 func (s *SarifAnalysis) GetCommitSHA() string { 17275 if s == nil || s.CommitSHA == nil { 17276 return "" 17277 } 17278 return *s.CommitSHA 17279 } 17280 17281 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 17282 func (s *SarifAnalysis) GetRef() string { 17283 if s == nil || s.Ref == nil { 17284 return "" 17285 } 17286 return *s.Ref 17287 } 17288 17289 // GetSarif returns the Sarif field if it's non-nil, zero value otherwise. 17290 func (s *SarifAnalysis) GetSarif() string { 17291 if s == nil || s.Sarif == nil { 17292 return "" 17293 } 17294 return *s.Sarif 17295 } 17296 17297 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 17298 func (s *SarifAnalysis) GetStartedAt() Timestamp { 17299 if s == nil || s.StartedAt == nil { 17300 return Timestamp{} 17301 } 17302 return *s.StartedAt 17303 } 17304 17305 // GetToolName returns the ToolName field if it's non-nil, zero value otherwise. 17306 func (s *SarifAnalysis) GetToolName() string { 17307 if s == nil || s.ToolName == nil { 17308 return "" 17309 } 17310 return *s.ToolName 17311 } 17312 17313 // GetID returns the ID field if it's non-nil, zero value otherwise. 17314 func (s *SarifID) GetID() string { 17315 if s == nil || s.ID == nil { 17316 return "" 17317 } 17318 return *s.ID 17319 } 17320 17321 // GetURL returns the URL field if it's non-nil, zero value otherwise. 17322 func (s *SarifID) GetURL() string { 17323 if s == nil || s.URL == nil { 17324 return "" 17325 } 17326 return *s.URL 17327 } 17328 17329 // GetAnalysisKey returns the AnalysisKey field if it's non-nil, zero value otherwise. 17330 func (s *ScanningAnalysis) GetAnalysisKey() string { 17331 if s == nil || s.AnalysisKey == nil { 17332 return "" 17333 } 17334 return *s.AnalysisKey 17335 } 17336 17337 // GetCategory returns the Category field if it's non-nil, zero value otherwise. 17338 func (s *ScanningAnalysis) GetCategory() string { 17339 if s == nil || s.Category == nil { 17340 return "" 17341 } 17342 return *s.Category 17343 } 17344 17345 // GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. 17346 func (s *ScanningAnalysis) GetCommitSHA() string { 17347 if s == nil || s.CommitSHA == nil { 17348 return "" 17349 } 17350 return *s.CommitSHA 17351 } 17352 17353 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 17354 func (s *ScanningAnalysis) GetCreatedAt() Timestamp { 17355 if s == nil || s.CreatedAt == nil { 17356 return Timestamp{} 17357 } 17358 return *s.CreatedAt 17359 } 17360 17361 // GetDeletable returns the Deletable field if it's non-nil, zero value otherwise. 17362 func (s *ScanningAnalysis) GetDeletable() bool { 17363 if s == nil || s.Deletable == nil { 17364 return false 17365 } 17366 return *s.Deletable 17367 } 17368 17369 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 17370 func (s *ScanningAnalysis) GetEnvironment() string { 17371 if s == nil || s.Environment == nil { 17372 return "" 17373 } 17374 return *s.Environment 17375 } 17376 17377 // GetError returns the Error field if it's non-nil, zero value otherwise. 17378 func (s *ScanningAnalysis) GetError() string { 17379 if s == nil || s.Error == nil { 17380 return "" 17381 } 17382 return *s.Error 17383 } 17384 17385 // GetID returns the ID field if it's non-nil, zero value otherwise. 17386 func (s *ScanningAnalysis) GetID() int64 { 17387 if s == nil || s.ID == nil { 17388 return 0 17389 } 17390 return *s.ID 17391 } 17392 17393 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 17394 func (s *ScanningAnalysis) GetRef() string { 17395 if s == nil || s.Ref == nil { 17396 return "" 17397 } 17398 return *s.Ref 17399 } 17400 17401 // GetResultsCount returns the ResultsCount field if it's non-nil, zero value otherwise. 17402 func (s *ScanningAnalysis) GetResultsCount() int { 17403 if s == nil || s.ResultsCount == nil { 17404 return 0 17405 } 17406 return *s.ResultsCount 17407 } 17408 17409 // GetRulesCount returns the RulesCount field if it's non-nil, zero value otherwise. 17410 func (s *ScanningAnalysis) GetRulesCount() int { 17411 if s == nil || s.RulesCount == nil { 17412 return 0 17413 } 17414 return *s.RulesCount 17415 } 17416 17417 // GetSarifID returns the SarifID field if it's non-nil, zero value otherwise. 17418 func (s *ScanningAnalysis) GetSarifID() string { 17419 if s == nil || s.SarifID == nil { 17420 return "" 17421 } 17422 return *s.SarifID 17423 } 17424 17425 // GetTool returns the Tool field. 17426 func (s *ScanningAnalysis) GetTool() *Tool { 17427 if s == nil { 17428 return nil 17429 } 17430 return s.Tool 17431 } 17432 17433 // GetURL returns the URL field if it's non-nil, zero value otherwise. 17434 func (s *ScanningAnalysis) GetURL() string { 17435 if s == nil || s.URL == nil { 17436 return "" 17437 } 17438 return *s.URL 17439 } 17440 17441 // GetWarning returns the Warning field if it's non-nil, zero value otherwise. 17442 func (s *ScanningAnalysis) GetWarning() string { 17443 if s == nil || s.Warning == nil { 17444 return "" 17445 } 17446 return *s.Warning 17447 } 17448 17449 // GetCreated returns the Created field if it's non-nil, zero value otherwise. 17450 func (s *SCIMMeta) GetCreated() Timestamp { 17451 if s == nil || s.Created == nil { 17452 return Timestamp{} 17453 } 17454 return *s.Created 17455 } 17456 17457 // GetLastModified returns the LastModified field if it's non-nil, zero value otherwise. 17458 func (s *SCIMMeta) GetLastModified() Timestamp { 17459 if s == nil || s.LastModified == nil { 17460 return Timestamp{} 17461 } 17462 return *s.LastModified 17463 } 17464 17465 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 17466 func (s *SCIMMeta) GetLocation() string { 17467 if s == nil || s.Location == nil { 17468 return "" 17469 } 17470 return *s.Location 17471 } 17472 17473 // GetResourceType returns the ResourceType field if it's non-nil, zero value otherwise. 17474 func (s *SCIMMeta) GetResourceType() string { 17475 if s == nil || s.ResourceType == nil { 17476 return "" 17477 } 17478 return *s.ResourceType 17479 } 17480 17481 // GetItemsPerPage returns the ItemsPerPage field if it's non-nil, zero value otherwise. 17482 func (s *SCIMProvisionedIdentities) GetItemsPerPage() int { 17483 if s == nil || s.ItemsPerPage == nil { 17484 return 0 17485 } 17486 return *s.ItemsPerPage 17487 } 17488 17489 // GetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise. 17490 func (s *SCIMProvisionedIdentities) GetStartIndex() int { 17491 if s == nil || s.StartIndex == nil { 17492 return 0 17493 } 17494 return *s.StartIndex 17495 } 17496 17497 // GetTotalResults returns the TotalResults field if it's non-nil, zero value otherwise. 17498 func (s *SCIMProvisionedIdentities) GetTotalResults() int { 17499 if s == nil || s.TotalResults == nil { 17500 return 0 17501 } 17502 return *s.TotalResults 17503 } 17504 17505 // GetActive returns the Active field if it's non-nil, zero value otherwise. 17506 func (s *SCIMUserAttributes) GetActive() bool { 17507 if s == nil || s.Active == nil { 17508 return false 17509 } 17510 return *s.Active 17511 } 17512 17513 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 17514 func (s *SCIMUserAttributes) GetDisplayName() string { 17515 if s == nil || s.DisplayName == nil { 17516 return "" 17517 } 17518 return *s.DisplayName 17519 } 17520 17521 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 17522 func (s *SCIMUserAttributes) GetExternalID() string { 17523 if s == nil || s.ExternalID == nil { 17524 return "" 17525 } 17526 return *s.ExternalID 17527 } 17528 17529 // GetID returns the ID field if it's non-nil, zero value otherwise. 17530 func (s *SCIMUserAttributes) GetID() string { 17531 if s == nil || s.ID == nil { 17532 return "" 17533 } 17534 return *s.ID 17535 } 17536 17537 // GetMeta returns the Meta field. 17538 func (s *SCIMUserAttributes) GetMeta() *SCIMMeta { 17539 if s == nil { 17540 return nil 17541 } 17542 return s.Meta 17543 } 17544 17545 // GetPrimary returns the Primary field if it's non-nil, zero value otherwise. 17546 func (s *SCIMUserEmail) GetPrimary() bool { 17547 if s == nil || s.Primary == nil { 17548 return false 17549 } 17550 return *s.Primary 17551 } 17552 17553 // GetType returns the Type field if it's non-nil, zero value otherwise. 17554 func (s *SCIMUserEmail) GetType() string { 17555 if s == nil || s.Type == nil { 17556 return "" 17557 } 17558 return *s.Type 17559 } 17560 17561 // GetFormatted returns the Formatted field if it's non-nil, zero value otherwise. 17562 func (s *SCIMUserName) GetFormatted() string { 17563 if s == nil || s.Formatted == nil { 17564 return "" 17565 } 17566 return *s.Formatted 17567 } 17568 17569 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 17570 func (s *SecretScanning) GetStatus() string { 17571 if s == nil || s.Status == nil { 17572 return "" 17573 } 17574 return *s.Status 17575 } 17576 17577 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 17578 func (s *SecretScanningAlert) GetCreatedAt() Timestamp { 17579 if s == nil || s.CreatedAt == nil { 17580 return Timestamp{} 17581 } 17582 return *s.CreatedAt 17583 } 17584 17585 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 17586 func (s *SecretScanningAlert) GetHTMLURL() string { 17587 if s == nil || s.HTMLURL == nil { 17588 return "" 17589 } 17590 return *s.HTMLURL 17591 } 17592 17593 // GetLocationsURL returns the LocationsURL field if it's non-nil, zero value otherwise. 17594 func (s *SecretScanningAlert) GetLocationsURL() string { 17595 if s == nil || s.LocationsURL == nil { 17596 return "" 17597 } 17598 return *s.LocationsURL 17599 } 17600 17601 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 17602 func (s *SecretScanningAlert) GetNumber() int { 17603 if s == nil || s.Number == nil { 17604 return 0 17605 } 17606 return *s.Number 17607 } 17608 17609 // GetResolution returns the Resolution field if it's non-nil, zero value otherwise. 17610 func (s *SecretScanningAlert) GetResolution() string { 17611 if s == nil || s.Resolution == nil { 17612 return "" 17613 } 17614 return *s.Resolution 17615 } 17616 17617 // GetResolvedAt returns the ResolvedAt field if it's non-nil, zero value otherwise. 17618 func (s *SecretScanningAlert) GetResolvedAt() Timestamp { 17619 if s == nil || s.ResolvedAt == nil { 17620 return Timestamp{} 17621 } 17622 return *s.ResolvedAt 17623 } 17624 17625 // GetResolvedBy returns the ResolvedBy field. 17626 func (s *SecretScanningAlert) GetResolvedBy() *User { 17627 if s == nil { 17628 return nil 17629 } 17630 return s.ResolvedBy 17631 } 17632 17633 // GetSecret returns the Secret field if it's non-nil, zero value otherwise. 17634 func (s *SecretScanningAlert) GetSecret() string { 17635 if s == nil || s.Secret == nil { 17636 return "" 17637 } 17638 return *s.Secret 17639 } 17640 17641 // GetSecretType returns the SecretType field if it's non-nil, zero value otherwise. 17642 func (s *SecretScanningAlert) GetSecretType() string { 17643 if s == nil || s.SecretType == nil { 17644 return "" 17645 } 17646 return *s.SecretType 17647 } 17648 17649 // GetState returns the State field if it's non-nil, zero value otherwise. 17650 func (s *SecretScanningAlert) GetState() string { 17651 if s == nil || s.State == nil { 17652 return "" 17653 } 17654 return *s.State 17655 } 17656 17657 // GetURL returns the URL field if it's non-nil, zero value otherwise. 17658 func (s *SecretScanningAlert) GetURL() string { 17659 if s == nil || s.URL == nil { 17660 return "" 17661 } 17662 return *s.URL 17663 } 17664 17665 // GetAction returns the Action field if it's non-nil, zero value otherwise. 17666 func (s *SecretScanningAlertEvent) GetAction() string { 17667 if s == nil || s.Action == nil { 17668 return "" 17669 } 17670 return *s.Action 17671 } 17672 17673 // GetAlert returns the Alert field. 17674 func (s *SecretScanningAlertEvent) GetAlert() *SecretScanningAlert { 17675 if s == nil { 17676 return nil 17677 } 17678 return s.Alert 17679 } 17680 17681 // GetEnterprise returns the Enterprise field. 17682 func (s *SecretScanningAlertEvent) GetEnterprise() *Enterprise { 17683 if s == nil { 17684 return nil 17685 } 17686 return s.Enterprise 17687 } 17688 17689 // GetInstallation returns the Installation field. 17690 func (s *SecretScanningAlertEvent) GetInstallation() *Installation { 17691 if s == nil { 17692 return nil 17693 } 17694 return s.Installation 17695 } 17696 17697 // GetOrganization returns the Organization field. 17698 func (s *SecretScanningAlertEvent) GetOrganization() *Organization { 17699 if s == nil { 17700 return nil 17701 } 17702 return s.Organization 17703 } 17704 17705 // GetRepo returns the Repo field. 17706 func (s *SecretScanningAlertEvent) GetRepo() *Repository { 17707 if s == nil { 17708 return nil 17709 } 17710 return s.Repo 17711 } 17712 17713 // GetSender returns the Sender field. 17714 func (s *SecretScanningAlertEvent) GetSender() *User { 17715 if s == nil { 17716 return nil 17717 } 17718 return s.Sender 17719 } 17720 17721 // GetDetails returns the Details field. 17722 func (s *SecretScanningAlertLocation) GetDetails() *SecretScanningAlertLocationDetails { 17723 if s == nil { 17724 return nil 17725 } 17726 return s.Details 17727 } 17728 17729 // GetType returns the Type field if it's non-nil, zero value otherwise. 17730 func (s *SecretScanningAlertLocation) GetType() string { 17731 if s == nil || s.Type == nil { 17732 return "" 17733 } 17734 return *s.Type 17735 } 17736 17737 // GetBlobSHA returns the BlobSHA field if it's non-nil, zero value otherwise. 17738 func (s *SecretScanningAlertLocationDetails) GetBlobSHA() string { 17739 if s == nil || s.BlobSHA == nil { 17740 return "" 17741 } 17742 return *s.BlobSHA 17743 } 17744 17745 // GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise. 17746 func (s *SecretScanningAlertLocationDetails) GetBlobURL() string { 17747 if s == nil || s.BlobURL == nil { 17748 return "" 17749 } 17750 return *s.BlobURL 17751 } 17752 17753 // GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. 17754 func (s *SecretScanningAlertLocationDetails) GetCommitSHA() string { 17755 if s == nil || s.CommitSHA == nil { 17756 return "" 17757 } 17758 return *s.CommitSHA 17759 } 17760 17761 // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 17762 func (s *SecretScanningAlertLocationDetails) GetCommitURL() string { 17763 if s == nil || s.CommitURL == nil { 17764 return "" 17765 } 17766 return *s.CommitURL 17767 } 17768 17769 // GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. 17770 func (s *SecretScanningAlertLocationDetails) GetEndColumn() int { 17771 if s == nil || s.EndColumn == nil { 17772 return 0 17773 } 17774 return *s.EndColumn 17775 } 17776 17777 // GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. 17778 func (s *SecretScanningAlertLocationDetails) GetEndLine() int { 17779 if s == nil || s.EndLine == nil { 17780 return 0 17781 } 17782 return *s.EndLine 17783 } 17784 17785 // GetPath returns the Path field if it's non-nil, zero value otherwise. 17786 func (s *SecretScanningAlertLocationDetails) GetPath() string { 17787 if s == nil || s.Path == nil { 17788 return "" 17789 } 17790 return *s.Path 17791 } 17792 17793 // GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. 17794 func (s *SecretScanningAlertLocationDetails) GetStartColumn() int { 17795 if s == nil || s.StartColumn == nil { 17796 return 0 17797 } 17798 return *s.StartColumn 17799 } 17800 17801 // GetStartline returns the Startline field if it's non-nil, zero value otherwise. 17802 func (s *SecretScanningAlertLocationDetails) GetStartline() int { 17803 if s == nil || s.Startline == nil { 17804 return 0 17805 } 17806 return *s.Startline 17807 } 17808 17809 // GetResolution returns the Resolution field if it's non-nil, zero value otherwise. 17810 func (s *SecretScanningAlertUpdateOptions) GetResolution() string { 17811 if s == nil || s.Resolution == nil { 17812 return "" 17813 } 17814 return *s.Resolution 17815 } 17816 17817 // GetSecretType returns the SecretType field if it's non-nil, zero value otherwise. 17818 func (s *SecretScanningAlertUpdateOptions) GetSecretType() string { 17819 if s == nil || s.SecretType == nil { 17820 return "" 17821 } 17822 return *s.SecretType 17823 } 17824 17825 // GetState returns the State field if it's non-nil, zero value otherwise. 17826 func (s *SecretScanningAlertUpdateOptions) GetState() string { 17827 if s == nil || s.State == nil { 17828 return "" 17829 } 17830 return *s.State 17831 } 17832 17833 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 17834 func (s *SecretScanningPushProtection) GetStatus() string { 17835 if s == nil || s.Status == nil { 17836 return "" 17837 } 17838 return *s.Status 17839 } 17840 17841 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 17842 func (s *SecurityAdvisory) GetDescription() string { 17843 if s == nil || s.Description == nil { 17844 return "" 17845 } 17846 return *s.Description 17847 } 17848 17849 // GetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise. 17850 func (s *SecurityAdvisory) GetGHSAID() string { 17851 if s == nil || s.GHSAID == nil { 17852 return "" 17853 } 17854 return *s.GHSAID 17855 } 17856 17857 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 17858 func (s *SecurityAdvisory) GetPublishedAt() Timestamp { 17859 if s == nil || s.PublishedAt == nil { 17860 return Timestamp{} 17861 } 17862 return *s.PublishedAt 17863 } 17864 17865 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 17866 func (s *SecurityAdvisory) GetSeverity() string { 17867 if s == nil || s.Severity == nil { 17868 return "" 17869 } 17870 return *s.Severity 17871 } 17872 17873 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 17874 func (s *SecurityAdvisory) GetSummary() string { 17875 if s == nil || s.Summary == nil { 17876 return "" 17877 } 17878 return *s.Summary 17879 } 17880 17881 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 17882 func (s *SecurityAdvisory) GetUpdatedAt() Timestamp { 17883 if s == nil || s.UpdatedAt == nil { 17884 return Timestamp{} 17885 } 17886 return *s.UpdatedAt 17887 } 17888 17889 // GetWithdrawnAt returns the WithdrawnAt field if it's non-nil, zero value otherwise. 17890 func (s *SecurityAdvisory) GetWithdrawnAt() Timestamp { 17891 if s == nil || s.WithdrawnAt == nil { 17892 return Timestamp{} 17893 } 17894 return *s.WithdrawnAt 17895 } 17896 17897 // GetAction returns the Action field if it's non-nil, zero value otherwise. 17898 func (s *SecurityAdvisoryEvent) GetAction() string { 17899 if s == nil || s.Action == nil { 17900 return "" 17901 } 17902 return *s.Action 17903 } 17904 17905 // GetSecurityAdvisory returns the SecurityAdvisory field. 17906 func (s *SecurityAdvisoryEvent) GetSecurityAdvisory() *SecurityAdvisory { 17907 if s == nil { 17908 return nil 17909 } 17910 return s.SecurityAdvisory 17911 } 17912 17913 // GetAdvancedSecurity returns the AdvancedSecurity field. 17914 func (s *SecurityAndAnalysis) GetAdvancedSecurity() *AdvancedSecurity { 17915 if s == nil { 17916 return nil 17917 } 17918 return s.AdvancedSecurity 17919 } 17920 17921 // GetSecretScanning returns the SecretScanning field. 17922 func (s *SecurityAndAnalysis) GetSecretScanning() *SecretScanning { 17923 if s == nil { 17924 return nil 17925 } 17926 return s.SecretScanning 17927 } 17928 17929 // GetSecretScanningPushProtection returns the SecretScanningPushProtection field. 17930 func (s *SecurityAndAnalysis) GetSecretScanningPushProtection() *SecretScanningPushProtection { 17931 if s == nil { 17932 return nil 17933 } 17934 return s.SecretScanningPushProtection 17935 } 17936 17937 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 17938 func (s *SelectedReposList) GetTotalCount() int { 17939 if s == nil || s.TotalCount == nil { 17940 return 0 17941 } 17942 return *s.TotalCount 17943 } 17944 17945 // GetName returns the Name field if it's non-nil, zero value otherwise. 17946 func (s *ServiceHook) GetName() string { 17947 if s == nil || s.Name == nil { 17948 return "" 17949 } 17950 return *s.Name 17951 } 17952 17953 // GetFrom returns the From field if it's non-nil, zero value otherwise. 17954 func (s *SignatureRequirementEnforcementLevelChanges) GetFrom() string { 17955 if s == nil || s.From == nil { 17956 return "" 17957 } 17958 return *s.From 17959 } 17960 17961 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 17962 func (s *SignaturesProtectedBranch) GetEnabled() bool { 17963 if s == nil || s.Enabled == nil { 17964 return false 17965 } 17966 return *s.Enabled 17967 } 17968 17969 // GetURL returns the URL field if it's non-nil, zero value otherwise. 17970 func (s *SignaturesProtectedBranch) GetURL() string { 17971 if s == nil || s.URL == nil { 17972 return "" 17973 } 17974 return *s.URL 17975 } 17976 17977 // GetPayload returns the Payload field if it's non-nil, zero value otherwise. 17978 func (s *SignatureVerification) GetPayload() string { 17979 if s == nil || s.Payload == nil { 17980 return "" 17981 } 17982 return *s.Payload 17983 } 17984 17985 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 17986 func (s *SignatureVerification) GetReason() string { 17987 if s == nil || s.Reason == nil { 17988 return "" 17989 } 17990 return *s.Reason 17991 } 17992 17993 // GetSignature returns the Signature field if it's non-nil, zero value otherwise. 17994 func (s *SignatureVerification) GetSignature() string { 17995 if s == nil || s.Signature == nil { 17996 return "" 17997 } 17998 return *s.Signature 17999 } 18000 18001 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 18002 func (s *SignatureVerification) GetVerified() bool { 18003 if s == nil || s.Verified == nil { 18004 return false 18005 } 18006 return *s.Verified 18007 } 18008 18009 // GetActor returns the Actor field. 18010 func (s *Source) GetActor() *User { 18011 if s == nil { 18012 return nil 18013 } 18014 return s.Actor 18015 } 18016 18017 // GetID returns the ID field if it's non-nil, zero value otherwise. 18018 func (s *Source) GetID() int64 { 18019 if s == nil || s.ID == nil { 18020 return 0 18021 } 18022 return *s.ID 18023 } 18024 18025 // GetIssue returns the Issue field. 18026 func (s *Source) GetIssue() *Issue { 18027 if s == nil { 18028 return nil 18029 } 18030 return s.Issue 18031 } 18032 18033 // GetType returns the Type field if it's non-nil, zero value otherwise. 18034 func (s *Source) GetType() string { 18035 if s == nil || s.Type == nil { 18036 return "" 18037 } 18038 return *s.Type 18039 } 18040 18041 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18042 func (s *Source) GetURL() string { 18043 if s == nil || s.URL == nil { 18044 return "" 18045 } 18046 return *s.URL 18047 } 18048 18049 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 18050 func (s *SourceImportAuthor) GetEmail() string { 18051 if s == nil || s.Email == nil { 18052 return "" 18053 } 18054 return *s.Email 18055 } 18056 18057 // GetID returns the ID field if it's non-nil, zero value otherwise. 18058 func (s *SourceImportAuthor) GetID() int64 { 18059 if s == nil || s.ID == nil { 18060 return 0 18061 } 18062 return *s.ID 18063 } 18064 18065 // GetImportURL returns the ImportURL field if it's non-nil, zero value otherwise. 18066 func (s *SourceImportAuthor) GetImportURL() string { 18067 if s == nil || s.ImportURL == nil { 18068 return "" 18069 } 18070 return *s.ImportURL 18071 } 18072 18073 // GetName returns the Name field if it's non-nil, zero value otherwise. 18074 func (s *SourceImportAuthor) GetName() string { 18075 if s == nil || s.Name == nil { 18076 return "" 18077 } 18078 return *s.Name 18079 } 18080 18081 // GetRemoteID returns the RemoteID field if it's non-nil, zero value otherwise. 18082 func (s *SourceImportAuthor) GetRemoteID() string { 18083 if s == nil || s.RemoteID == nil { 18084 return "" 18085 } 18086 return *s.RemoteID 18087 } 18088 18089 // GetRemoteName returns the RemoteName field if it's non-nil, zero value otherwise. 18090 func (s *SourceImportAuthor) GetRemoteName() string { 18091 if s == nil || s.RemoteName == nil { 18092 return "" 18093 } 18094 return *s.RemoteName 18095 } 18096 18097 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18098 func (s *SourceImportAuthor) GetURL() string { 18099 if s == nil || s.URL == nil { 18100 return "" 18101 } 18102 return *s.URL 18103 } 18104 18105 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 18106 func (s *SSHSigningKey) GetCreatedAt() Timestamp { 18107 if s == nil || s.CreatedAt == nil { 18108 return Timestamp{} 18109 } 18110 return *s.CreatedAt 18111 } 18112 18113 // GetID returns the ID field if it's non-nil, zero value otherwise. 18114 func (s *SSHSigningKey) GetID() int64 { 18115 if s == nil || s.ID == nil { 18116 return 0 18117 } 18118 return *s.ID 18119 } 18120 18121 // GetKey returns the Key field if it's non-nil, zero value otherwise. 18122 func (s *SSHSigningKey) GetKey() string { 18123 if s == nil || s.Key == nil { 18124 return "" 18125 } 18126 return *s.Key 18127 } 18128 18129 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 18130 func (s *SSHSigningKey) GetTitle() string { 18131 if s == nil || s.Title == nil { 18132 return "" 18133 } 18134 return *s.Title 18135 } 18136 18137 // GetAction returns the Action field if it's non-nil, zero value otherwise. 18138 func (s *StarEvent) GetAction() string { 18139 if s == nil || s.Action == nil { 18140 return "" 18141 } 18142 return *s.Action 18143 } 18144 18145 // GetInstallation returns the Installation field. 18146 func (s *StarEvent) GetInstallation() *Installation { 18147 if s == nil { 18148 return nil 18149 } 18150 return s.Installation 18151 } 18152 18153 // GetOrg returns the Org field. 18154 func (s *StarEvent) GetOrg() *Organization { 18155 if s == nil { 18156 return nil 18157 } 18158 return s.Org 18159 } 18160 18161 // GetRepo returns the Repo field. 18162 func (s *StarEvent) GetRepo() *Repository { 18163 if s == nil { 18164 return nil 18165 } 18166 return s.Repo 18167 } 18168 18169 // GetSender returns the Sender field. 18170 func (s *StarEvent) GetSender() *User { 18171 if s == nil { 18172 return nil 18173 } 18174 return s.Sender 18175 } 18176 18177 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 18178 func (s *StarEvent) GetStarredAt() Timestamp { 18179 if s == nil || s.StarredAt == nil { 18180 return Timestamp{} 18181 } 18182 return *s.StarredAt 18183 } 18184 18185 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 18186 func (s *Stargazer) GetStarredAt() Timestamp { 18187 if s == nil || s.StarredAt == nil { 18188 return Timestamp{} 18189 } 18190 return *s.StarredAt 18191 } 18192 18193 // GetUser returns the User field. 18194 func (s *Stargazer) GetUser() *User { 18195 if s == nil { 18196 return nil 18197 } 18198 return s.User 18199 } 18200 18201 // GetRepository returns the Repository field. 18202 func (s *StarredRepository) GetRepository() *Repository { 18203 if s == nil { 18204 return nil 18205 } 18206 return s.Repository 18207 } 18208 18209 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 18210 func (s *StarredRepository) GetStarredAt() Timestamp { 18211 if s == nil || s.StarredAt == nil { 18212 return Timestamp{} 18213 } 18214 return *s.StarredAt 18215 } 18216 18217 // GetCommit returns the Commit field. 18218 func (s *StatusEvent) GetCommit() *RepositoryCommit { 18219 if s == nil { 18220 return nil 18221 } 18222 return s.Commit 18223 } 18224 18225 // GetContext returns the Context field if it's non-nil, zero value otherwise. 18226 func (s *StatusEvent) GetContext() string { 18227 if s == nil || s.Context == nil { 18228 return "" 18229 } 18230 return *s.Context 18231 } 18232 18233 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 18234 func (s *StatusEvent) GetCreatedAt() Timestamp { 18235 if s == nil || s.CreatedAt == nil { 18236 return Timestamp{} 18237 } 18238 return *s.CreatedAt 18239 } 18240 18241 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 18242 func (s *StatusEvent) GetDescription() string { 18243 if s == nil || s.Description == nil { 18244 return "" 18245 } 18246 return *s.Description 18247 } 18248 18249 // GetID returns the ID field if it's non-nil, zero value otherwise. 18250 func (s *StatusEvent) GetID() int64 { 18251 if s == nil || s.ID == nil { 18252 return 0 18253 } 18254 return *s.ID 18255 } 18256 18257 // GetInstallation returns the Installation field. 18258 func (s *StatusEvent) GetInstallation() *Installation { 18259 if s == nil { 18260 return nil 18261 } 18262 return s.Installation 18263 } 18264 18265 // GetName returns the Name field if it's non-nil, zero value otherwise. 18266 func (s *StatusEvent) GetName() string { 18267 if s == nil || s.Name == nil { 18268 return "" 18269 } 18270 return *s.Name 18271 } 18272 18273 // GetRepo returns the Repo field. 18274 func (s *StatusEvent) GetRepo() *Repository { 18275 if s == nil { 18276 return nil 18277 } 18278 return s.Repo 18279 } 18280 18281 // GetSender returns the Sender field. 18282 func (s *StatusEvent) GetSender() *User { 18283 if s == nil { 18284 return nil 18285 } 18286 return s.Sender 18287 } 18288 18289 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 18290 func (s *StatusEvent) GetSHA() string { 18291 if s == nil || s.SHA == nil { 18292 return "" 18293 } 18294 return *s.SHA 18295 } 18296 18297 // GetState returns the State field if it's non-nil, zero value otherwise. 18298 func (s *StatusEvent) GetState() string { 18299 if s == nil || s.State == nil { 18300 return "" 18301 } 18302 return *s.State 18303 } 18304 18305 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 18306 func (s *StatusEvent) GetTargetURL() string { 18307 if s == nil || s.TargetURL == nil { 18308 return "" 18309 } 18310 return *s.TargetURL 18311 } 18312 18313 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 18314 func (s *StatusEvent) GetUpdatedAt() Timestamp { 18315 if s == nil || s.UpdatedAt == nil { 18316 return Timestamp{} 18317 } 18318 return *s.UpdatedAt 18319 } 18320 18321 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 18322 func (s *Subscription) GetCreatedAt() Timestamp { 18323 if s == nil || s.CreatedAt == nil { 18324 return Timestamp{} 18325 } 18326 return *s.CreatedAt 18327 } 18328 18329 // GetIgnored returns the Ignored field if it's non-nil, zero value otherwise. 18330 func (s *Subscription) GetIgnored() bool { 18331 if s == nil || s.Ignored == nil { 18332 return false 18333 } 18334 return *s.Ignored 18335 } 18336 18337 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 18338 func (s *Subscription) GetReason() string { 18339 if s == nil || s.Reason == nil { 18340 return "" 18341 } 18342 return *s.Reason 18343 } 18344 18345 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 18346 func (s *Subscription) GetRepositoryURL() string { 18347 if s == nil || s.RepositoryURL == nil { 18348 return "" 18349 } 18350 return *s.RepositoryURL 18351 } 18352 18353 // GetSubscribed returns the Subscribed field if it's non-nil, zero value otherwise. 18354 func (s *Subscription) GetSubscribed() bool { 18355 if s == nil || s.Subscribed == nil { 18356 return false 18357 } 18358 return *s.Subscribed 18359 } 18360 18361 // GetThreadURL returns the ThreadURL field if it's non-nil, zero value otherwise. 18362 func (s *Subscription) GetThreadURL() string { 18363 if s == nil || s.ThreadURL == nil { 18364 return "" 18365 } 18366 return *s.ThreadURL 18367 } 18368 18369 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18370 func (s *Subscription) GetURL() string { 18371 if s == nil || s.URL == nil { 18372 return "" 18373 } 18374 return *s.URL 18375 } 18376 18377 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 18378 func (t *Tag) GetMessage() string { 18379 if t == nil || t.Message == nil { 18380 return "" 18381 } 18382 return *t.Message 18383 } 18384 18385 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 18386 func (t *Tag) GetNodeID() string { 18387 if t == nil || t.NodeID == nil { 18388 return "" 18389 } 18390 return *t.NodeID 18391 } 18392 18393 // GetObject returns the Object field. 18394 func (t *Tag) GetObject() *GitObject { 18395 if t == nil { 18396 return nil 18397 } 18398 return t.Object 18399 } 18400 18401 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 18402 func (t *Tag) GetSHA() string { 18403 if t == nil || t.SHA == nil { 18404 return "" 18405 } 18406 return *t.SHA 18407 } 18408 18409 // GetTag returns the Tag field if it's non-nil, zero value otherwise. 18410 func (t *Tag) GetTag() string { 18411 if t == nil || t.Tag == nil { 18412 return "" 18413 } 18414 return *t.Tag 18415 } 18416 18417 // GetTagger returns the Tagger field. 18418 func (t *Tag) GetTagger() *CommitAuthor { 18419 if t == nil { 18420 return nil 18421 } 18422 return t.Tagger 18423 } 18424 18425 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18426 func (t *Tag) GetURL() string { 18427 if t == nil || t.URL == nil { 18428 return "" 18429 } 18430 return *t.URL 18431 } 18432 18433 // GetVerification returns the Verification field. 18434 func (t *Tag) GetVerification() *SignatureVerification { 18435 if t == nil { 18436 return nil 18437 } 18438 return t.Verification 18439 } 18440 18441 // GetID returns the ID field if it's non-nil, zero value otherwise. 18442 func (t *TagProtection) GetID() int64 { 18443 if t == nil || t.ID == nil { 18444 return 0 18445 } 18446 return *t.ID 18447 } 18448 18449 // GetPattern returns the Pattern field if it's non-nil, zero value otherwise. 18450 func (t *TagProtection) GetPattern() string { 18451 if t == nil || t.Pattern == nil { 18452 return "" 18453 } 18454 return *t.Pattern 18455 } 18456 18457 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 18458 func (t *TaskStep) GetCompletedAt() Timestamp { 18459 if t == nil || t.CompletedAt == nil { 18460 return Timestamp{} 18461 } 18462 return *t.CompletedAt 18463 } 18464 18465 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 18466 func (t *TaskStep) GetConclusion() string { 18467 if t == nil || t.Conclusion == nil { 18468 return "" 18469 } 18470 return *t.Conclusion 18471 } 18472 18473 // GetName returns the Name field if it's non-nil, zero value otherwise. 18474 func (t *TaskStep) GetName() string { 18475 if t == nil || t.Name == nil { 18476 return "" 18477 } 18478 return *t.Name 18479 } 18480 18481 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 18482 func (t *TaskStep) GetNumber() int64 { 18483 if t == nil || t.Number == nil { 18484 return 0 18485 } 18486 return *t.Number 18487 } 18488 18489 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 18490 func (t *TaskStep) GetStartedAt() Timestamp { 18491 if t == nil || t.StartedAt == nil { 18492 return Timestamp{} 18493 } 18494 return *t.StartedAt 18495 } 18496 18497 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 18498 func (t *TaskStep) GetStatus() string { 18499 if t == nil || t.Status == nil { 18500 return "" 18501 } 18502 return *t.Status 18503 } 18504 18505 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 18506 func (t *Team) GetDescription() string { 18507 if t == nil || t.Description == nil { 18508 return "" 18509 } 18510 return *t.Description 18511 } 18512 18513 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 18514 func (t *Team) GetHTMLURL() string { 18515 if t == nil || t.HTMLURL == nil { 18516 return "" 18517 } 18518 return *t.HTMLURL 18519 } 18520 18521 // GetID returns the ID field if it's non-nil, zero value otherwise. 18522 func (t *Team) GetID() int64 { 18523 if t == nil || t.ID == nil { 18524 return 0 18525 } 18526 return *t.ID 18527 } 18528 18529 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 18530 func (t *Team) GetLDAPDN() string { 18531 if t == nil || t.LDAPDN == nil { 18532 return "" 18533 } 18534 return *t.LDAPDN 18535 } 18536 18537 // GetMembersCount returns the MembersCount field if it's non-nil, zero value otherwise. 18538 func (t *Team) GetMembersCount() int { 18539 if t == nil || t.MembersCount == nil { 18540 return 0 18541 } 18542 return *t.MembersCount 18543 } 18544 18545 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 18546 func (t *Team) GetMembersURL() string { 18547 if t == nil || t.MembersURL == nil { 18548 return "" 18549 } 18550 return *t.MembersURL 18551 } 18552 18553 // GetName returns the Name field if it's non-nil, zero value otherwise. 18554 func (t *Team) GetName() string { 18555 if t == nil || t.Name == nil { 18556 return "" 18557 } 18558 return *t.Name 18559 } 18560 18561 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 18562 func (t *Team) GetNodeID() string { 18563 if t == nil || t.NodeID == nil { 18564 return "" 18565 } 18566 return *t.NodeID 18567 } 18568 18569 // GetOrganization returns the Organization field. 18570 func (t *Team) GetOrganization() *Organization { 18571 if t == nil { 18572 return nil 18573 } 18574 return t.Organization 18575 } 18576 18577 // GetParent returns the Parent field. 18578 func (t *Team) GetParent() *Team { 18579 if t == nil { 18580 return nil 18581 } 18582 return t.Parent 18583 } 18584 18585 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 18586 func (t *Team) GetPermission() string { 18587 if t == nil || t.Permission == nil { 18588 return "" 18589 } 18590 return *t.Permission 18591 } 18592 18593 // GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. 18594 func (t *Team) GetPermissions() map[string]bool { 18595 if t == nil || t.Permissions == nil { 18596 return map[string]bool{} 18597 } 18598 return t.Permissions 18599 } 18600 18601 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 18602 func (t *Team) GetPrivacy() string { 18603 if t == nil || t.Privacy == nil { 18604 return "" 18605 } 18606 return *t.Privacy 18607 } 18608 18609 // GetReposCount returns the ReposCount field if it's non-nil, zero value otherwise. 18610 func (t *Team) GetReposCount() int { 18611 if t == nil || t.ReposCount == nil { 18612 return 0 18613 } 18614 return *t.ReposCount 18615 } 18616 18617 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 18618 func (t *Team) GetRepositoriesURL() string { 18619 if t == nil || t.RepositoriesURL == nil { 18620 return "" 18621 } 18622 return *t.RepositoriesURL 18623 } 18624 18625 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 18626 func (t *Team) GetSlug() string { 18627 if t == nil || t.Slug == nil { 18628 return "" 18629 } 18630 return *t.Slug 18631 } 18632 18633 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18634 func (t *Team) GetURL() string { 18635 if t == nil || t.URL == nil { 18636 return "" 18637 } 18638 return *t.URL 18639 } 18640 18641 // GetInstallation returns the Installation field. 18642 func (t *TeamAddEvent) GetInstallation() *Installation { 18643 if t == nil { 18644 return nil 18645 } 18646 return t.Installation 18647 } 18648 18649 // GetOrg returns the Org field. 18650 func (t *TeamAddEvent) GetOrg() *Organization { 18651 if t == nil { 18652 return nil 18653 } 18654 return t.Org 18655 } 18656 18657 // GetRepo returns the Repo field. 18658 func (t *TeamAddEvent) GetRepo() *Repository { 18659 if t == nil { 18660 return nil 18661 } 18662 return t.Repo 18663 } 18664 18665 // GetSender returns the Sender field. 18666 func (t *TeamAddEvent) GetSender() *User { 18667 if t == nil { 18668 return nil 18669 } 18670 return t.Sender 18671 } 18672 18673 // GetTeam returns the Team field. 18674 func (t *TeamAddEvent) GetTeam() *Team { 18675 if t == nil { 18676 return nil 18677 } 18678 return t.Team 18679 } 18680 18681 // GetDescription returns the Description field. 18682 func (t *TeamChange) GetDescription() *TeamDescription { 18683 if t == nil { 18684 return nil 18685 } 18686 return t.Description 18687 } 18688 18689 // GetName returns the Name field. 18690 func (t *TeamChange) GetName() *TeamName { 18691 if t == nil { 18692 return nil 18693 } 18694 return t.Name 18695 } 18696 18697 // GetPrivacy returns the Privacy field. 18698 func (t *TeamChange) GetPrivacy() *TeamPrivacy { 18699 if t == nil { 18700 return nil 18701 } 18702 return t.Privacy 18703 } 18704 18705 // GetRepository returns the Repository field. 18706 func (t *TeamChange) GetRepository() *TeamRepository { 18707 if t == nil { 18708 return nil 18709 } 18710 return t.Repository 18711 } 18712 18713 // GetFrom returns the From field if it's non-nil, zero value otherwise. 18714 func (t *TeamDescription) GetFrom() string { 18715 if t == nil || t.From == nil { 18716 return "" 18717 } 18718 return *t.From 18719 } 18720 18721 // GetAuthor returns the Author field. 18722 func (t *TeamDiscussion) GetAuthor() *User { 18723 if t == nil { 18724 return nil 18725 } 18726 return t.Author 18727 } 18728 18729 // GetBody returns the Body field if it's non-nil, zero value otherwise. 18730 func (t *TeamDiscussion) GetBody() string { 18731 if t == nil || t.Body == nil { 18732 return "" 18733 } 18734 return *t.Body 18735 } 18736 18737 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 18738 func (t *TeamDiscussion) GetBodyHTML() string { 18739 if t == nil || t.BodyHTML == nil { 18740 return "" 18741 } 18742 return *t.BodyHTML 18743 } 18744 18745 // GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. 18746 func (t *TeamDiscussion) GetBodyVersion() string { 18747 if t == nil || t.BodyVersion == nil { 18748 return "" 18749 } 18750 return *t.BodyVersion 18751 } 18752 18753 // GetCommentsCount returns the CommentsCount field if it's non-nil, zero value otherwise. 18754 func (t *TeamDiscussion) GetCommentsCount() int { 18755 if t == nil || t.CommentsCount == nil { 18756 return 0 18757 } 18758 return *t.CommentsCount 18759 } 18760 18761 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 18762 func (t *TeamDiscussion) GetCommentsURL() string { 18763 if t == nil || t.CommentsURL == nil { 18764 return "" 18765 } 18766 return *t.CommentsURL 18767 } 18768 18769 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 18770 func (t *TeamDiscussion) GetCreatedAt() Timestamp { 18771 if t == nil || t.CreatedAt == nil { 18772 return Timestamp{} 18773 } 18774 return *t.CreatedAt 18775 } 18776 18777 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 18778 func (t *TeamDiscussion) GetHTMLURL() string { 18779 if t == nil || t.HTMLURL == nil { 18780 return "" 18781 } 18782 return *t.HTMLURL 18783 } 18784 18785 // GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. 18786 func (t *TeamDiscussion) GetLastEditedAt() Timestamp { 18787 if t == nil || t.LastEditedAt == nil { 18788 return Timestamp{} 18789 } 18790 return *t.LastEditedAt 18791 } 18792 18793 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 18794 func (t *TeamDiscussion) GetNodeID() string { 18795 if t == nil || t.NodeID == nil { 18796 return "" 18797 } 18798 return *t.NodeID 18799 } 18800 18801 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 18802 func (t *TeamDiscussion) GetNumber() int { 18803 if t == nil || t.Number == nil { 18804 return 0 18805 } 18806 return *t.Number 18807 } 18808 18809 // GetPinned returns the Pinned field if it's non-nil, zero value otherwise. 18810 func (t *TeamDiscussion) GetPinned() bool { 18811 if t == nil || t.Pinned == nil { 18812 return false 18813 } 18814 return *t.Pinned 18815 } 18816 18817 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 18818 func (t *TeamDiscussion) GetPrivate() bool { 18819 if t == nil || t.Private == nil { 18820 return false 18821 } 18822 return *t.Private 18823 } 18824 18825 // GetReactions returns the Reactions field. 18826 func (t *TeamDiscussion) GetReactions() *Reactions { 18827 if t == nil { 18828 return nil 18829 } 18830 return t.Reactions 18831 } 18832 18833 // GetTeamURL returns the TeamURL field if it's non-nil, zero value otherwise. 18834 func (t *TeamDiscussion) GetTeamURL() string { 18835 if t == nil || t.TeamURL == nil { 18836 return "" 18837 } 18838 return *t.TeamURL 18839 } 18840 18841 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 18842 func (t *TeamDiscussion) GetTitle() string { 18843 if t == nil || t.Title == nil { 18844 return "" 18845 } 18846 return *t.Title 18847 } 18848 18849 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 18850 func (t *TeamDiscussion) GetUpdatedAt() Timestamp { 18851 if t == nil || t.UpdatedAt == nil { 18852 return Timestamp{} 18853 } 18854 return *t.UpdatedAt 18855 } 18856 18857 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18858 func (t *TeamDiscussion) GetURL() string { 18859 if t == nil || t.URL == nil { 18860 return "" 18861 } 18862 return *t.URL 18863 } 18864 18865 // GetAction returns the Action field if it's non-nil, zero value otherwise. 18866 func (t *TeamEvent) GetAction() string { 18867 if t == nil || t.Action == nil { 18868 return "" 18869 } 18870 return *t.Action 18871 } 18872 18873 // GetChanges returns the Changes field. 18874 func (t *TeamEvent) GetChanges() *TeamChange { 18875 if t == nil { 18876 return nil 18877 } 18878 return t.Changes 18879 } 18880 18881 // GetInstallation returns the Installation field. 18882 func (t *TeamEvent) GetInstallation() *Installation { 18883 if t == nil { 18884 return nil 18885 } 18886 return t.Installation 18887 } 18888 18889 // GetOrg returns the Org field. 18890 func (t *TeamEvent) GetOrg() *Organization { 18891 if t == nil { 18892 return nil 18893 } 18894 return t.Org 18895 } 18896 18897 // GetRepo returns the Repo field. 18898 func (t *TeamEvent) GetRepo() *Repository { 18899 if t == nil { 18900 return nil 18901 } 18902 return t.Repo 18903 } 18904 18905 // GetSender returns the Sender field. 18906 func (t *TeamEvent) GetSender() *User { 18907 if t == nil { 18908 return nil 18909 } 18910 return t.Sender 18911 } 18912 18913 // GetTeam returns the Team field. 18914 func (t *TeamEvent) GetTeam() *Team { 18915 if t == nil { 18916 return nil 18917 } 18918 return t.Team 18919 } 18920 18921 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 18922 func (t *TeamLDAPMapping) GetDescription() string { 18923 if t == nil || t.Description == nil { 18924 return "" 18925 } 18926 return *t.Description 18927 } 18928 18929 // GetID returns the ID field if it's non-nil, zero value otherwise. 18930 func (t *TeamLDAPMapping) GetID() int64 { 18931 if t == nil || t.ID == nil { 18932 return 0 18933 } 18934 return *t.ID 18935 } 18936 18937 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 18938 func (t *TeamLDAPMapping) GetLDAPDN() string { 18939 if t == nil || t.LDAPDN == nil { 18940 return "" 18941 } 18942 return *t.LDAPDN 18943 } 18944 18945 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 18946 func (t *TeamLDAPMapping) GetMembersURL() string { 18947 if t == nil || t.MembersURL == nil { 18948 return "" 18949 } 18950 return *t.MembersURL 18951 } 18952 18953 // GetName returns the Name field if it's non-nil, zero value otherwise. 18954 func (t *TeamLDAPMapping) GetName() string { 18955 if t == nil || t.Name == nil { 18956 return "" 18957 } 18958 return *t.Name 18959 } 18960 18961 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 18962 func (t *TeamLDAPMapping) GetPermission() string { 18963 if t == nil || t.Permission == nil { 18964 return "" 18965 } 18966 return *t.Permission 18967 } 18968 18969 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 18970 func (t *TeamLDAPMapping) GetPrivacy() string { 18971 if t == nil || t.Privacy == nil { 18972 return "" 18973 } 18974 return *t.Privacy 18975 } 18976 18977 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 18978 func (t *TeamLDAPMapping) GetRepositoriesURL() string { 18979 if t == nil || t.RepositoriesURL == nil { 18980 return "" 18981 } 18982 return *t.RepositoriesURL 18983 } 18984 18985 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 18986 func (t *TeamLDAPMapping) GetSlug() string { 18987 if t == nil || t.Slug == nil { 18988 return "" 18989 } 18990 return *t.Slug 18991 } 18992 18993 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18994 func (t *TeamLDAPMapping) GetURL() string { 18995 if t == nil || t.URL == nil { 18996 return "" 18997 } 18998 return *t.URL 18999 } 19000 19001 // GetFrom returns the From field if it's non-nil, zero value otherwise. 19002 func (t *TeamName) GetFrom() string { 19003 if t == nil || t.From == nil { 19004 return "" 19005 } 19006 return *t.From 19007 } 19008 19009 // GetFrom returns the From field. 19010 func (t *TeamPermissions) GetFrom() *TeamPermissionsFrom { 19011 if t == nil { 19012 return nil 19013 } 19014 return t.From 19015 } 19016 19017 // GetAdmin returns the Admin field if it's non-nil, zero value otherwise. 19018 func (t *TeamPermissionsFrom) GetAdmin() bool { 19019 if t == nil || t.Admin == nil { 19020 return false 19021 } 19022 return *t.Admin 19023 } 19024 19025 // GetPull returns the Pull field if it's non-nil, zero value otherwise. 19026 func (t *TeamPermissionsFrom) GetPull() bool { 19027 if t == nil || t.Pull == nil { 19028 return false 19029 } 19030 return *t.Pull 19031 } 19032 19033 // GetPush returns the Push field if it's non-nil, zero value otherwise. 19034 func (t *TeamPermissionsFrom) GetPush() bool { 19035 if t == nil || t.Push == nil { 19036 return false 19037 } 19038 return *t.Push 19039 } 19040 19041 // GetFrom returns the From field if it's non-nil, zero value otherwise. 19042 func (t *TeamPrivacy) GetFrom() string { 19043 if t == nil || t.From == nil { 19044 return "" 19045 } 19046 return *t.From 19047 } 19048 19049 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 19050 func (t *TeamProjectOptions) GetPermission() string { 19051 if t == nil || t.Permission == nil { 19052 return "" 19053 } 19054 return *t.Permission 19055 } 19056 19057 // GetPermissions returns the Permissions field. 19058 func (t *TeamRepository) GetPermissions() *TeamPermissions { 19059 if t == nil { 19060 return nil 19061 } 19062 return t.Permissions 19063 } 19064 19065 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 19066 func (t *TemplateRepoRequest) GetDescription() string { 19067 if t == nil || t.Description == nil { 19068 return "" 19069 } 19070 return *t.Description 19071 } 19072 19073 // GetIncludeAllBranches returns the IncludeAllBranches field if it's non-nil, zero value otherwise. 19074 func (t *TemplateRepoRequest) GetIncludeAllBranches() bool { 19075 if t == nil || t.IncludeAllBranches == nil { 19076 return false 19077 } 19078 return *t.IncludeAllBranches 19079 } 19080 19081 // GetName returns the Name field if it's non-nil, zero value otherwise. 19082 func (t *TemplateRepoRequest) GetName() string { 19083 if t == nil || t.Name == nil { 19084 return "" 19085 } 19086 return *t.Name 19087 } 19088 19089 // GetOwner returns the Owner field if it's non-nil, zero value otherwise. 19090 func (t *TemplateRepoRequest) GetOwner() string { 19091 if t == nil || t.Owner == nil { 19092 return "" 19093 } 19094 return *t.Owner 19095 } 19096 19097 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 19098 func (t *TemplateRepoRequest) GetPrivate() bool { 19099 if t == nil || t.Private == nil { 19100 return false 19101 } 19102 return *t.Private 19103 } 19104 19105 // GetFragment returns the Fragment field if it's non-nil, zero value otherwise. 19106 func (t *TextMatch) GetFragment() string { 19107 if t == nil || t.Fragment == nil { 19108 return "" 19109 } 19110 return *t.Fragment 19111 } 19112 19113 // GetObjectType returns the ObjectType field if it's non-nil, zero value otherwise. 19114 func (t *TextMatch) GetObjectType() string { 19115 if t == nil || t.ObjectType == nil { 19116 return "" 19117 } 19118 return *t.ObjectType 19119 } 19120 19121 // GetObjectURL returns the ObjectURL field if it's non-nil, zero value otherwise. 19122 func (t *TextMatch) GetObjectURL() string { 19123 if t == nil || t.ObjectURL == nil { 19124 return "" 19125 } 19126 return *t.ObjectURL 19127 } 19128 19129 // GetProperty returns the Property field if it's non-nil, zero value otherwise. 19130 func (t *TextMatch) GetProperty() string { 19131 if t == nil || t.Property == nil { 19132 return "" 19133 } 19134 return *t.Property 19135 } 19136 19137 // GetActor returns the Actor field. 19138 func (t *Timeline) GetActor() *User { 19139 if t == nil { 19140 return nil 19141 } 19142 return t.Actor 19143 } 19144 19145 // GetAssignee returns the Assignee field. 19146 func (t *Timeline) GetAssignee() *User { 19147 if t == nil { 19148 return nil 19149 } 19150 return t.Assignee 19151 } 19152 19153 // GetAssigner returns the Assigner field. 19154 func (t *Timeline) GetAssigner() *User { 19155 if t == nil { 19156 return nil 19157 } 19158 return t.Assigner 19159 } 19160 19161 // GetAuthor returns the Author field. 19162 func (t *Timeline) GetAuthor() *CommitAuthor { 19163 if t == nil { 19164 return nil 19165 } 19166 return t.Author 19167 } 19168 19169 // GetBody returns the Body field if it's non-nil, zero value otherwise. 19170 func (t *Timeline) GetBody() string { 19171 if t == nil || t.Body == nil { 19172 return "" 19173 } 19174 return *t.Body 19175 } 19176 19177 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 19178 func (t *Timeline) GetCommitID() string { 19179 if t == nil || t.CommitID == nil { 19180 return "" 19181 } 19182 return *t.CommitID 19183 } 19184 19185 // GetCommitter returns the Committer field. 19186 func (t *Timeline) GetCommitter() *CommitAuthor { 19187 if t == nil { 19188 return nil 19189 } 19190 return t.Committer 19191 } 19192 19193 // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 19194 func (t *Timeline) GetCommitURL() string { 19195 if t == nil || t.CommitURL == nil { 19196 return "" 19197 } 19198 return *t.CommitURL 19199 } 19200 19201 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 19202 func (t *Timeline) GetCreatedAt() time.Time { 19203 if t == nil || t.CreatedAt == nil { 19204 return time.Time{} 19205 } 19206 return *t.CreatedAt 19207 } 19208 19209 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 19210 func (t *Timeline) GetEvent() string { 19211 if t == nil || t.Event == nil { 19212 return "" 19213 } 19214 return *t.Event 19215 } 19216 19217 // GetID returns the ID field if it's non-nil, zero value otherwise. 19218 func (t *Timeline) GetID() int64 { 19219 if t == nil || t.ID == nil { 19220 return 0 19221 } 19222 return *t.ID 19223 } 19224 19225 // GetLabel returns the Label field. 19226 func (t *Timeline) GetLabel() *Label { 19227 if t == nil { 19228 return nil 19229 } 19230 return t.Label 19231 } 19232 19233 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 19234 func (t *Timeline) GetMessage() string { 19235 if t == nil || t.Message == nil { 19236 return "" 19237 } 19238 return *t.Message 19239 } 19240 19241 // GetMilestone returns the Milestone field. 19242 func (t *Timeline) GetMilestone() *Milestone { 19243 if t == nil { 19244 return nil 19245 } 19246 return t.Milestone 19247 } 19248 19249 // GetProjectCard returns the ProjectCard field. 19250 func (t *Timeline) GetProjectCard() *ProjectCard { 19251 if t == nil { 19252 return nil 19253 } 19254 return t.ProjectCard 19255 } 19256 19257 // GetRename returns the Rename field. 19258 func (t *Timeline) GetRename() *Rename { 19259 if t == nil { 19260 return nil 19261 } 19262 return t.Rename 19263 } 19264 19265 // GetRequester returns the Requester field. 19266 func (t *Timeline) GetRequester() *User { 19267 if t == nil { 19268 return nil 19269 } 19270 return t.Requester 19271 } 19272 19273 // GetReviewer returns the Reviewer field. 19274 func (t *Timeline) GetReviewer() *User { 19275 if t == nil { 19276 return nil 19277 } 19278 return t.Reviewer 19279 } 19280 19281 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 19282 func (t *Timeline) GetSHA() string { 19283 if t == nil || t.SHA == nil { 19284 return "" 19285 } 19286 return *t.SHA 19287 } 19288 19289 // GetSource returns the Source field. 19290 func (t *Timeline) GetSource() *Source { 19291 if t == nil { 19292 return nil 19293 } 19294 return t.Source 19295 } 19296 19297 // GetState returns the State field if it's non-nil, zero value otherwise. 19298 func (t *Timeline) GetState() string { 19299 if t == nil || t.State == nil { 19300 return "" 19301 } 19302 return *t.State 19303 } 19304 19305 // GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. 19306 func (t *Timeline) GetSubmittedAt() time.Time { 19307 if t == nil || t.SubmittedAt == nil { 19308 return time.Time{} 19309 } 19310 return *t.SubmittedAt 19311 } 19312 19313 // GetURL returns the URL field if it's non-nil, zero value otherwise. 19314 func (t *Timeline) GetURL() string { 19315 if t == nil || t.URL == nil { 19316 return "" 19317 } 19318 return *t.URL 19319 } 19320 19321 // GetUser returns the User field. 19322 func (t *Timeline) GetUser() *User { 19323 if t == nil { 19324 return nil 19325 } 19326 return t.User 19327 } 19328 19329 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 19330 func (t *Tool) GetGUID() string { 19331 if t == nil || t.GUID == nil { 19332 return "" 19333 } 19334 return *t.GUID 19335 } 19336 19337 // GetName returns the Name field if it's non-nil, zero value otherwise. 19338 func (t *Tool) GetName() string { 19339 if t == nil || t.Name == nil { 19340 return "" 19341 } 19342 return *t.Name 19343 } 19344 19345 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 19346 func (t *Tool) GetVersion() string { 19347 if t == nil || t.Version == nil { 19348 return "" 19349 } 19350 return *t.Version 19351 } 19352 19353 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 19354 func (t *TopicResult) GetCreatedAt() Timestamp { 19355 if t == nil || t.CreatedAt == nil { 19356 return Timestamp{} 19357 } 19358 return *t.CreatedAt 19359 } 19360 19361 // GetCreatedBy returns the CreatedBy field if it's non-nil, zero value otherwise. 19362 func (t *TopicResult) GetCreatedBy() string { 19363 if t == nil || t.CreatedBy == nil { 19364 return "" 19365 } 19366 return *t.CreatedBy 19367 } 19368 19369 // GetCurated returns the Curated field if it's non-nil, zero value otherwise. 19370 func (t *TopicResult) GetCurated() bool { 19371 if t == nil || t.Curated == nil { 19372 return false 19373 } 19374 return *t.Curated 19375 } 19376 19377 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 19378 func (t *TopicResult) GetDescription() string { 19379 if t == nil || t.Description == nil { 19380 return "" 19381 } 19382 return *t.Description 19383 } 19384 19385 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 19386 func (t *TopicResult) GetDisplayName() string { 19387 if t == nil || t.DisplayName == nil { 19388 return "" 19389 } 19390 return *t.DisplayName 19391 } 19392 19393 // GetFeatured returns the Featured field if it's non-nil, zero value otherwise. 19394 func (t *TopicResult) GetFeatured() bool { 19395 if t == nil || t.Featured == nil { 19396 return false 19397 } 19398 return *t.Featured 19399 } 19400 19401 // GetName returns the Name field if it's non-nil, zero value otherwise. 19402 func (t *TopicResult) GetName() string { 19403 if t == nil || t.Name == nil { 19404 return "" 19405 } 19406 return *t.Name 19407 } 19408 19409 // GetScore returns the Score field. 19410 func (t *TopicResult) GetScore() *float64 { 19411 if t == nil { 19412 return nil 19413 } 19414 return t.Score 19415 } 19416 19417 // GetShortDescription returns the ShortDescription field if it's non-nil, zero value otherwise. 19418 func (t *TopicResult) GetShortDescription() string { 19419 if t == nil || t.ShortDescription == nil { 19420 return "" 19421 } 19422 return *t.ShortDescription 19423 } 19424 19425 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 19426 func (t *TopicResult) GetUpdatedAt() string { 19427 if t == nil || t.UpdatedAt == nil { 19428 return "" 19429 } 19430 return *t.UpdatedAt 19431 } 19432 19433 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 19434 func (t *TopicsSearchResult) GetIncompleteResults() bool { 19435 if t == nil || t.IncompleteResults == nil { 19436 return false 19437 } 19438 return *t.IncompleteResults 19439 } 19440 19441 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 19442 func (t *TopicsSearchResult) GetTotal() int { 19443 if t == nil || t.Total == nil { 19444 return 0 19445 } 19446 return *t.Total 19447 } 19448 19449 // GetCount returns the Count field if it's non-nil, zero value otherwise. 19450 func (t *TrafficClones) GetCount() int { 19451 if t == nil || t.Count == nil { 19452 return 0 19453 } 19454 return *t.Count 19455 } 19456 19457 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 19458 func (t *TrafficClones) GetUniques() int { 19459 if t == nil || t.Uniques == nil { 19460 return 0 19461 } 19462 return *t.Uniques 19463 } 19464 19465 // GetCount returns the Count field if it's non-nil, zero value otherwise. 19466 func (t *TrafficData) GetCount() int { 19467 if t == nil || t.Count == nil { 19468 return 0 19469 } 19470 return *t.Count 19471 } 19472 19473 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 19474 func (t *TrafficData) GetTimestamp() Timestamp { 19475 if t == nil || t.Timestamp == nil { 19476 return Timestamp{} 19477 } 19478 return *t.Timestamp 19479 } 19480 19481 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 19482 func (t *TrafficData) GetUniques() int { 19483 if t == nil || t.Uniques == nil { 19484 return 0 19485 } 19486 return *t.Uniques 19487 } 19488 19489 // GetCount returns the Count field if it's non-nil, zero value otherwise. 19490 func (t *TrafficPath) GetCount() int { 19491 if t == nil || t.Count == nil { 19492 return 0 19493 } 19494 return *t.Count 19495 } 19496 19497 // GetPath returns the Path field if it's non-nil, zero value otherwise. 19498 func (t *TrafficPath) GetPath() string { 19499 if t == nil || t.Path == nil { 19500 return "" 19501 } 19502 return *t.Path 19503 } 19504 19505 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 19506 func (t *TrafficPath) GetTitle() string { 19507 if t == nil || t.Title == nil { 19508 return "" 19509 } 19510 return *t.Title 19511 } 19512 19513 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 19514 func (t *TrafficPath) GetUniques() int { 19515 if t == nil || t.Uniques == nil { 19516 return 0 19517 } 19518 return *t.Uniques 19519 } 19520 19521 // GetCount returns the Count field if it's non-nil, zero value otherwise. 19522 func (t *TrafficReferrer) GetCount() int { 19523 if t == nil || t.Count == nil { 19524 return 0 19525 } 19526 return *t.Count 19527 } 19528 19529 // GetReferrer returns the Referrer field if it's non-nil, zero value otherwise. 19530 func (t *TrafficReferrer) GetReferrer() string { 19531 if t == nil || t.Referrer == nil { 19532 return "" 19533 } 19534 return *t.Referrer 19535 } 19536 19537 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 19538 func (t *TrafficReferrer) GetUniques() int { 19539 if t == nil || t.Uniques == nil { 19540 return 0 19541 } 19542 return *t.Uniques 19543 } 19544 19545 // GetCount returns the Count field if it's non-nil, zero value otherwise. 19546 func (t *TrafficViews) GetCount() int { 19547 if t == nil || t.Count == nil { 19548 return 0 19549 } 19550 return *t.Count 19551 } 19552 19553 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 19554 func (t *TrafficViews) GetUniques() int { 19555 if t == nil || t.Uniques == nil { 19556 return 0 19557 } 19558 return *t.Uniques 19559 } 19560 19561 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 19562 func (t *Tree) GetSHA() string { 19563 if t == nil || t.SHA == nil { 19564 return "" 19565 } 19566 return *t.SHA 19567 } 19568 19569 // GetTruncated returns the Truncated field if it's non-nil, zero value otherwise. 19570 func (t *Tree) GetTruncated() bool { 19571 if t == nil || t.Truncated == nil { 19572 return false 19573 } 19574 return *t.Truncated 19575 } 19576 19577 // GetContent returns the Content field if it's non-nil, zero value otherwise. 19578 func (t *TreeEntry) GetContent() string { 19579 if t == nil || t.Content == nil { 19580 return "" 19581 } 19582 return *t.Content 19583 } 19584 19585 // GetMode returns the Mode field if it's non-nil, zero value otherwise. 19586 func (t *TreeEntry) GetMode() string { 19587 if t == nil || t.Mode == nil { 19588 return "" 19589 } 19590 return *t.Mode 19591 } 19592 19593 // GetPath returns the Path field if it's non-nil, zero value otherwise. 19594 func (t *TreeEntry) GetPath() string { 19595 if t == nil || t.Path == nil { 19596 return "" 19597 } 19598 return *t.Path 19599 } 19600 19601 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 19602 func (t *TreeEntry) GetSHA() string { 19603 if t == nil || t.SHA == nil { 19604 return "" 19605 } 19606 return *t.SHA 19607 } 19608 19609 // GetSize returns the Size field if it's non-nil, zero value otherwise. 19610 func (t *TreeEntry) GetSize() int { 19611 if t == nil || t.Size == nil { 19612 return 0 19613 } 19614 return *t.Size 19615 } 19616 19617 // GetType returns the Type field if it's non-nil, zero value otherwise. 19618 func (t *TreeEntry) GetType() string { 19619 if t == nil || t.Type == nil { 19620 return "" 19621 } 19622 return *t.Type 19623 } 19624 19625 // GetURL returns the URL field if it's non-nil, zero value otherwise. 19626 func (t *TreeEntry) GetURL() string { 19627 if t == nil || t.URL == nil { 19628 return "" 19629 } 19630 return *t.URL 19631 } 19632 19633 // GetPath returns the Path field if it's non-nil, zero value otherwise. 19634 func (u *UpdateAttributeForSCIMUserOperations) GetPath() string { 19635 if u == nil || u.Path == nil { 19636 return "" 19637 } 19638 return *u.Path 19639 } 19640 19641 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 19642 func (u *UpdateCheckRunOptions) GetCompletedAt() Timestamp { 19643 if u == nil || u.CompletedAt == nil { 19644 return Timestamp{} 19645 } 19646 return *u.CompletedAt 19647 } 19648 19649 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 19650 func (u *UpdateCheckRunOptions) GetConclusion() string { 19651 if u == nil || u.Conclusion == nil { 19652 return "" 19653 } 19654 return *u.Conclusion 19655 } 19656 19657 // GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 19658 func (u *UpdateCheckRunOptions) GetDetailsURL() string { 19659 if u == nil || u.DetailsURL == nil { 19660 return "" 19661 } 19662 return *u.DetailsURL 19663 } 19664 19665 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 19666 func (u *UpdateCheckRunOptions) GetExternalID() string { 19667 if u == nil || u.ExternalID == nil { 19668 return "" 19669 } 19670 return *u.ExternalID 19671 } 19672 19673 // GetOutput returns the Output field. 19674 func (u *UpdateCheckRunOptions) GetOutput() *CheckRunOutput { 19675 if u == nil { 19676 return nil 19677 } 19678 return u.Output 19679 } 19680 19681 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 19682 func (u *UpdateCheckRunOptions) GetStatus() string { 19683 if u == nil || u.Status == nil { 19684 return "" 19685 } 19686 return *u.Status 19687 } 19688 19689 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 19690 func (u *UpdateRunnerGroupRequest) GetAllowsPublicRepositories() bool { 19691 if u == nil || u.AllowsPublicRepositories == nil { 19692 return false 19693 } 19694 return *u.AllowsPublicRepositories 19695 } 19696 19697 // GetName returns the Name field if it's non-nil, zero value otherwise. 19698 func (u *UpdateRunnerGroupRequest) GetName() string { 19699 if u == nil || u.Name == nil { 19700 return "" 19701 } 19702 return *u.Name 19703 } 19704 19705 // GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. 19706 func (u *UpdateRunnerGroupRequest) GetRestrictedToWorkflows() bool { 19707 if u == nil || u.RestrictedToWorkflows == nil { 19708 return false 19709 } 19710 return *u.RestrictedToWorkflows 19711 } 19712 19713 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 19714 func (u *UpdateRunnerGroupRequest) GetVisibility() string { 19715 if u == nil || u.Visibility == nil { 19716 return "" 19717 } 19718 return *u.Visibility 19719 } 19720 19721 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 19722 func (u *User) GetAvatarURL() string { 19723 if u == nil || u.AvatarURL == nil { 19724 return "" 19725 } 19726 return *u.AvatarURL 19727 } 19728 19729 // GetBio returns the Bio field if it's non-nil, zero value otherwise. 19730 func (u *User) GetBio() string { 19731 if u == nil || u.Bio == nil { 19732 return "" 19733 } 19734 return *u.Bio 19735 } 19736 19737 // GetBlog returns the Blog field if it's non-nil, zero value otherwise. 19738 func (u *User) GetBlog() string { 19739 if u == nil || u.Blog == nil { 19740 return "" 19741 } 19742 return *u.Blog 19743 } 19744 19745 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 19746 func (u *User) GetCollaborators() int { 19747 if u == nil || u.Collaborators == nil { 19748 return 0 19749 } 19750 return *u.Collaborators 19751 } 19752 19753 // GetCompany returns the Company field if it's non-nil, zero value otherwise. 19754 func (u *User) GetCompany() string { 19755 if u == nil || u.Company == nil { 19756 return "" 19757 } 19758 return *u.Company 19759 } 19760 19761 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 19762 func (u *User) GetCreatedAt() Timestamp { 19763 if u == nil || u.CreatedAt == nil { 19764 return Timestamp{} 19765 } 19766 return *u.CreatedAt 19767 } 19768 19769 // GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 19770 func (u *User) GetDiskUsage() int { 19771 if u == nil || u.DiskUsage == nil { 19772 return 0 19773 } 19774 return *u.DiskUsage 19775 } 19776 19777 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 19778 func (u *User) GetEmail() string { 19779 if u == nil || u.Email == nil { 19780 return "" 19781 } 19782 return *u.Email 19783 } 19784 19785 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 19786 func (u *User) GetEventsURL() string { 19787 if u == nil || u.EventsURL == nil { 19788 return "" 19789 } 19790 return *u.EventsURL 19791 } 19792 19793 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 19794 func (u *User) GetFollowers() int { 19795 if u == nil || u.Followers == nil { 19796 return 0 19797 } 19798 return *u.Followers 19799 } 19800 19801 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 19802 func (u *User) GetFollowersURL() string { 19803 if u == nil || u.FollowersURL == nil { 19804 return "" 19805 } 19806 return *u.FollowersURL 19807 } 19808 19809 // GetFollowing returns the Following field if it's non-nil, zero value otherwise. 19810 func (u *User) GetFollowing() int { 19811 if u == nil || u.Following == nil { 19812 return 0 19813 } 19814 return *u.Following 19815 } 19816 19817 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 19818 func (u *User) GetFollowingURL() string { 19819 if u == nil || u.FollowingURL == nil { 19820 return "" 19821 } 19822 return *u.FollowingURL 19823 } 19824 19825 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 19826 func (u *User) GetGistsURL() string { 19827 if u == nil || u.GistsURL == nil { 19828 return "" 19829 } 19830 return *u.GistsURL 19831 } 19832 19833 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 19834 func (u *User) GetGravatarID() string { 19835 if u == nil || u.GravatarID == nil { 19836 return "" 19837 } 19838 return *u.GravatarID 19839 } 19840 19841 // GetHireable returns the Hireable field if it's non-nil, zero value otherwise. 19842 func (u *User) GetHireable() bool { 19843 if u == nil || u.Hireable == nil { 19844 return false 19845 } 19846 return *u.Hireable 19847 } 19848 19849 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 19850 func (u *User) GetHTMLURL() string { 19851 if u == nil || u.HTMLURL == nil { 19852 return "" 19853 } 19854 return *u.HTMLURL 19855 } 19856 19857 // GetID returns the ID field if it's non-nil, zero value otherwise. 19858 func (u *User) GetID() int64 { 19859 if u == nil || u.ID == nil { 19860 return 0 19861 } 19862 return *u.ID 19863 } 19864 19865 // GetLdapDn returns the LdapDn field if it's non-nil, zero value otherwise. 19866 func (u *User) GetLdapDn() string { 19867 if u == nil || u.LdapDn == nil { 19868 return "" 19869 } 19870 return *u.LdapDn 19871 } 19872 19873 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 19874 func (u *User) GetLocation() string { 19875 if u == nil || u.Location == nil { 19876 return "" 19877 } 19878 return *u.Location 19879 } 19880 19881 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 19882 func (u *User) GetLogin() string { 19883 if u == nil || u.Login == nil { 19884 return "" 19885 } 19886 return *u.Login 19887 } 19888 19889 // GetName returns the Name field if it's non-nil, zero value otherwise. 19890 func (u *User) GetName() string { 19891 if u == nil || u.Name == nil { 19892 return "" 19893 } 19894 return *u.Name 19895 } 19896 19897 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 19898 func (u *User) GetNodeID() string { 19899 if u == nil || u.NodeID == nil { 19900 return "" 19901 } 19902 return *u.NodeID 19903 } 19904 19905 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 19906 func (u *User) GetOrganizationsURL() string { 19907 if u == nil || u.OrganizationsURL == nil { 19908 return "" 19909 } 19910 return *u.OrganizationsURL 19911 } 19912 19913 // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 19914 func (u *User) GetOwnedPrivateRepos() int { 19915 if u == nil || u.OwnedPrivateRepos == nil { 19916 return 0 19917 } 19918 return *u.OwnedPrivateRepos 19919 } 19920 19921 // GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. 19922 func (u *User) GetPermissions() map[string]bool { 19923 if u == nil || u.Permissions == nil { 19924 return map[string]bool{} 19925 } 19926 return u.Permissions 19927 } 19928 19929 // GetPlan returns the Plan field. 19930 func (u *User) GetPlan() *Plan { 19931 if u == nil { 19932 return nil 19933 } 19934 return u.Plan 19935 } 19936 19937 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 19938 func (u *User) GetPrivateGists() int { 19939 if u == nil || u.PrivateGists == nil { 19940 return 0 19941 } 19942 return *u.PrivateGists 19943 } 19944 19945 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 19946 func (u *User) GetPublicGists() int { 19947 if u == nil || u.PublicGists == nil { 19948 return 0 19949 } 19950 return *u.PublicGists 19951 } 19952 19953 // GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 19954 func (u *User) GetPublicRepos() int { 19955 if u == nil || u.PublicRepos == nil { 19956 return 0 19957 } 19958 return *u.PublicRepos 19959 } 19960 19961 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 19962 func (u *User) GetReceivedEventsURL() string { 19963 if u == nil || u.ReceivedEventsURL == nil { 19964 return "" 19965 } 19966 return *u.ReceivedEventsURL 19967 } 19968 19969 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 19970 func (u *User) GetReposURL() string { 19971 if u == nil || u.ReposURL == nil { 19972 return "" 19973 } 19974 return *u.ReposURL 19975 } 19976 19977 // GetRoleName returns the RoleName field if it's non-nil, zero value otherwise. 19978 func (u *User) GetRoleName() string { 19979 if u == nil || u.RoleName == nil { 19980 return "" 19981 } 19982 return *u.RoleName 19983 } 19984 19985 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 19986 func (u *User) GetSiteAdmin() bool { 19987 if u == nil || u.SiteAdmin == nil { 19988 return false 19989 } 19990 return *u.SiteAdmin 19991 } 19992 19993 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 19994 func (u *User) GetStarredURL() string { 19995 if u == nil || u.StarredURL == nil { 19996 return "" 19997 } 19998 return *u.StarredURL 19999 } 20000 20001 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 20002 func (u *User) GetSubscriptionsURL() string { 20003 if u == nil || u.SubscriptionsURL == nil { 20004 return "" 20005 } 20006 return *u.SubscriptionsURL 20007 } 20008 20009 // GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise. 20010 func (u *User) GetSuspendedAt() Timestamp { 20011 if u == nil || u.SuspendedAt == nil { 20012 return Timestamp{} 20013 } 20014 return *u.SuspendedAt 20015 } 20016 20017 // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 20018 func (u *User) GetTotalPrivateRepos() int { 20019 if u == nil || u.TotalPrivateRepos == nil { 20020 return 0 20021 } 20022 return *u.TotalPrivateRepos 20023 } 20024 20025 // GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. 20026 func (u *User) GetTwitterUsername() string { 20027 if u == nil || u.TwitterUsername == nil { 20028 return "" 20029 } 20030 return *u.TwitterUsername 20031 } 20032 20033 // GetTwoFactorAuthentication returns the TwoFactorAuthentication field if it's non-nil, zero value otherwise. 20034 func (u *User) GetTwoFactorAuthentication() bool { 20035 if u == nil || u.TwoFactorAuthentication == nil { 20036 return false 20037 } 20038 return *u.TwoFactorAuthentication 20039 } 20040 20041 // GetType returns the Type field if it's non-nil, zero value otherwise. 20042 func (u *User) GetType() string { 20043 if u == nil || u.Type == nil { 20044 return "" 20045 } 20046 return *u.Type 20047 } 20048 20049 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 20050 func (u *User) GetUpdatedAt() Timestamp { 20051 if u == nil || u.UpdatedAt == nil { 20052 return Timestamp{} 20053 } 20054 return *u.UpdatedAt 20055 } 20056 20057 // GetURL returns the URL field if it's non-nil, zero value otherwise. 20058 func (u *User) GetURL() string { 20059 if u == nil || u.URL == nil { 20060 return "" 20061 } 20062 return *u.URL 20063 } 20064 20065 // GetApp returns the App field. 20066 func (u *UserAuthorization) GetApp() *OAuthAPP { 20067 if u == nil { 20068 return nil 20069 } 20070 return u.App 20071 } 20072 20073 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 20074 func (u *UserAuthorization) GetCreatedAt() Timestamp { 20075 if u == nil || u.CreatedAt == nil { 20076 return Timestamp{} 20077 } 20078 return *u.CreatedAt 20079 } 20080 20081 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 20082 func (u *UserAuthorization) GetFingerprint() string { 20083 if u == nil || u.Fingerprint == nil { 20084 return "" 20085 } 20086 return *u.Fingerprint 20087 } 20088 20089 // GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. 20090 func (u *UserAuthorization) GetHashedToken() string { 20091 if u == nil || u.HashedToken == nil { 20092 return "" 20093 } 20094 return *u.HashedToken 20095 } 20096 20097 // GetID returns the ID field if it's non-nil, zero value otherwise. 20098 func (u *UserAuthorization) GetID() int64 { 20099 if u == nil || u.ID == nil { 20100 return 0 20101 } 20102 return *u.ID 20103 } 20104 20105 // GetNote returns the Note field if it's non-nil, zero value otherwise. 20106 func (u *UserAuthorization) GetNote() string { 20107 if u == nil || u.Note == nil { 20108 return "" 20109 } 20110 return *u.Note 20111 } 20112 20113 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 20114 func (u *UserAuthorization) GetNoteURL() string { 20115 if u == nil || u.NoteURL == nil { 20116 return "" 20117 } 20118 return *u.NoteURL 20119 } 20120 20121 // GetToken returns the Token field if it's non-nil, zero value otherwise. 20122 func (u *UserAuthorization) GetToken() string { 20123 if u == nil || u.Token == nil { 20124 return "" 20125 } 20126 return *u.Token 20127 } 20128 20129 // GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. 20130 func (u *UserAuthorization) GetTokenLastEight() string { 20131 if u == nil || u.TokenLastEight == nil { 20132 return "" 20133 } 20134 return *u.TokenLastEight 20135 } 20136 20137 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 20138 func (u *UserAuthorization) GetUpdatedAt() Timestamp { 20139 if u == nil || u.UpdatedAt == nil { 20140 return Timestamp{} 20141 } 20142 return *u.UpdatedAt 20143 } 20144 20145 // GetURL returns the URL field if it's non-nil, zero value otherwise. 20146 func (u *UserAuthorization) GetURL() string { 20147 if u == nil || u.URL == nil { 20148 return "" 20149 } 20150 return *u.URL 20151 } 20152 20153 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 20154 func (u *UserContext) GetMessage() string { 20155 if u == nil || u.Message == nil { 20156 return "" 20157 } 20158 return *u.Message 20159 } 20160 20161 // GetOcticon returns the Octicon field if it's non-nil, zero value otherwise. 20162 func (u *UserContext) GetOcticon() string { 20163 if u == nil || u.Octicon == nil { 20164 return "" 20165 } 20166 return *u.Octicon 20167 } 20168 20169 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 20170 func (u *UserEmail) GetEmail() string { 20171 if u == nil || u.Email == nil { 20172 return "" 20173 } 20174 return *u.Email 20175 } 20176 20177 // GetPrimary returns the Primary field if it's non-nil, zero value otherwise. 20178 func (u *UserEmail) GetPrimary() bool { 20179 if u == nil || u.Primary == nil { 20180 return false 20181 } 20182 return *u.Primary 20183 } 20184 20185 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 20186 func (u *UserEmail) GetVerified() bool { 20187 if u == nil || u.Verified == nil { 20188 return false 20189 } 20190 return *u.Verified 20191 } 20192 20193 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 20194 func (u *UserEmail) GetVisibility() string { 20195 if u == nil || u.Visibility == nil { 20196 return "" 20197 } 20198 return *u.Visibility 20199 } 20200 20201 // GetAction returns the Action field if it's non-nil, zero value otherwise. 20202 func (u *UserEvent) GetAction() string { 20203 if u == nil || u.Action == nil { 20204 return "" 20205 } 20206 return *u.Action 20207 } 20208 20209 // GetEnterprise returns the Enterprise field. 20210 func (u *UserEvent) GetEnterprise() *Enterprise { 20211 if u == nil { 20212 return nil 20213 } 20214 return u.Enterprise 20215 } 20216 20217 // GetInstallation returns the Installation field. 20218 func (u *UserEvent) GetInstallation() *Installation { 20219 if u == nil { 20220 return nil 20221 } 20222 return u.Installation 20223 } 20224 20225 // GetSender returns the Sender field. 20226 func (u *UserEvent) GetSender() *User { 20227 if u == nil { 20228 return nil 20229 } 20230 return u.Sender 20231 } 20232 20233 // GetUser returns the User field. 20234 func (u *UserEvent) GetUser() *User { 20235 if u == nil { 20236 return nil 20237 } 20238 return u.User 20239 } 20240 20241 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 20242 func (u *UserLDAPMapping) GetAvatarURL() string { 20243 if u == nil || u.AvatarURL == nil { 20244 return "" 20245 } 20246 return *u.AvatarURL 20247 } 20248 20249 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 20250 func (u *UserLDAPMapping) GetEventsURL() string { 20251 if u == nil || u.EventsURL == nil { 20252 return "" 20253 } 20254 return *u.EventsURL 20255 } 20256 20257 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 20258 func (u *UserLDAPMapping) GetFollowersURL() string { 20259 if u == nil || u.FollowersURL == nil { 20260 return "" 20261 } 20262 return *u.FollowersURL 20263 } 20264 20265 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 20266 func (u *UserLDAPMapping) GetFollowingURL() string { 20267 if u == nil || u.FollowingURL == nil { 20268 return "" 20269 } 20270 return *u.FollowingURL 20271 } 20272 20273 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 20274 func (u *UserLDAPMapping) GetGistsURL() string { 20275 if u == nil || u.GistsURL == nil { 20276 return "" 20277 } 20278 return *u.GistsURL 20279 } 20280 20281 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 20282 func (u *UserLDAPMapping) GetGravatarID() string { 20283 if u == nil || u.GravatarID == nil { 20284 return "" 20285 } 20286 return *u.GravatarID 20287 } 20288 20289 // GetID returns the ID field if it's non-nil, zero value otherwise. 20290 func (u *UserLDAPMapping) GetID() int64 { 20291 if u == nil || u.ID == nil { 20292 return 0 20293 } 20294 return *u.ID 20295 } 20296 20297 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 20298 func (u *UserLDAPMapping) GetLDAPDN() string { 20299 if u == nil || u.LDAPDN == nil { 20300 return "" 20301 } 20302 return *u.LDAPDN 20303 } 20304 20305 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 20306 func (u *UserLDAPMapping) GetLogin() string { 20307 if u == nil || u.Login == nil { 20308 return "" 20309 } 20310 return *u.Login 20311 } 20312 20313 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 20314 func (u *UserLDAPMapping) GetOrganizationsURL() string { 20315 if u == nil || u.OrganizationsURL == nil { 20316 return "" 20317 } 20318 return *u.OrganizationsURL 20319 } 20320 20321 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 20322 func (u *UserLDAPMapping) GetReceivedEventsURL() string { 20323 if u == nil || u.ReceivedEventsURL == nil { 20324 return "" 20325 } 20326 return *u.ReceivedEventsURL 20327 } 20328 20329 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 20330 func (u *UserLDAPMapping) GetReposURL() string { 20331 if u == nil || u.ReposURL == nil { 20332 return "" 20333 } 20334 return *u.ReposURL 20335 } 20336 20337 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 20338 func (u *UserLDAPMapping) GetSiteAdmin() bool { 20339 if u == nil || u.SiteAdmin == nil { 20340 return false 20341 } 20342 return *u.SiteAdmin 20343 } 20344 20345 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 20346 func (u *UserLDAPMapping) GetStarredURL() string { 20347 if u == nil || u.StarredURL == nil { 20348 return "" 20349 } 20350 return *u.StarredURL 20351 } 20352 20353 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 20354 func (u *UserLDAPMapping) GetSubscriptionsURL() string { 20355 if u == nil || u.SubscriptionsURL == nil { 20356 return "" 20357 } 20358 return *u.SubscriptionsURL 20359 } 20360 20361 // GetType returns the Type field if it's non-nil, zero value otherwise. 20362 func (u *UserLDAPMapping) GetType() string { 20363 if u == nil || u.Type == nil { 20364 return "" 20365 } 20366 return *u.Type 20367 } 20368 20369 // GetURL returns the URL field if it's non-nil, zero value otherwise. 20370 func (u *UserLDAPMapping) GetURL() string { 20371 if u == nil || u.URL == nil { 20372 return "" 20373 } 20374 return *u.URL 20375 } 20376 20377 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 20378 func (u *UserMigration) GetCreatedAt() string { 20379 if u == nil || u.CreatedAt == nil { 20380 return "" 20381 } 20382 return *u.CreatedAt 20383 } 20384 20385 // GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 20386 func (u *UserMigration) GetExcludeAttachments() bool { 20387 if u == nil || u.ExcludeAttachments == nil { 20388 return false 20389 } 20390 return *u.ExcludeAttachments 20391 } 20392 20393 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 20394 func (u *UserMigration) GetGUID() string { 20395 if u == nil || u.GUID == nil { 20396 return "" 20397 } 20398 return *u.GUID 20399 } 20400 20401 // GetID returns the ID field if it's non-nil, zero value otherwise. 20402 func (u *UserMigration) GetID() int64 { 20403 if u == nil || u.ID == nil { 20404 return 0 20405 } 20406 return *u.ID 20407 } 20408 20409 // GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 20410 func (u *UserMigration) GetLockRepositories() bool { 20411 if u == nil || u.LockRepositories == nil { 20412 return false 20413 } 20414 return *u.LockRepositories 20415 } 20416 20417 // GetState returns the State field if it's non-nil, zero value otherwise. 20418 func (u *UserMigration) GetState() string { 20419 if u == nil || u.State == nil { 20420 return "" 20421 } 20422 return *u.State 20423 } 20424 20425 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 20426 func (u *UserMigration) GetUpdatedAt() string { 20427 if u == nil || u.UpdatedAt == nil { 20428 return "" 20429 } 20430 return *u.UpdatedAt 20431 } 20432 20433 // GetURL returns the URL field if it's non-nil, zero value otherwise. 20434 func (u *UserMigration) GetURL() string { 20435 if u == nil || u.URL == nil { 20436 return "" 20437 } 20438 return *u.URL 20439 } 20440 20441 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 20442 func (u *UsersSearchResult) GetIncompleteResults() bool { 20443 if u == nil || u.IncompleteResults == nil { 20444 return false 20445 } 20446 return *u.IncompleteResults 20447 } 20448 20449 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 20450 func (u *UsersSearchResult) GetTotal() int { 20451 if u == nil || u.Total == nil { 20452 return 0 20453 } 20454 return *u.Total 20455 } 20456 20457 // GetAdminUsers returns the AdminUsers field if it's non-nil, zero value otherwise. 20458 func (u *UserStats) GetAdminUsers() int { 20459 if u == nil || u.AdminUsers == nil { 20460 return 0 20461 } 20462 return *u.AdminUsers 20463 } 20464 20465 // GetSuspendedUsers returns the SuspendedUsers field if it's non-nil, zero value otherwise. 20466 func (u *UserStats) GetSuspendedUsers() int { 20467 if u == nil || u.SuspendedUsers == nil { 20468 return 0 20469 } 20470 return *u.SuspendedUsers 20471 } 20472 20473 // GetTotalUsers returns the TotalUsers field if it's non-nil, zero value otherwise. 20474 func (u *UserStats) GetTotalUsers() int { 20475 if u == nil || u.TotalUsers == nil { 20476 return 0 20477 } 20478 return *u.TotalUsers 20479 } 20480 20481 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 20482 func (u *UserSuspendOptions) GetReason() string { 20483 if u == nil || u.Reason == nil { 20484 return "" 20485 } 20486 return *u.Reason 20487 } 20488 20489 // GetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise. 20490 func (v *VulnerabilityPackage) GetEcosystem() string { 20491 if v == nil || v.Ecosystem == nil { 20492 return "" 20493 } 20494 return *v.Ecosystem 20495 } 20496 20497 // GetName returns the Name field if it's non-nil, zero value otherwise. 20498 func (v *VulnerabilityPackage) GetName() string { 20499 if v == nil || v.Name == nil { 20500 return "" 20501 } 20502 return *v.Name 20503 } 20504 20505 // GetAction returns the Action field if it's non-nil, zero value otherwise. 20506 func (w *WatchEvent) GetAction() string { 20507 if w == nil || w.Action == nil { 20508 return "" 20509 } 20510 return *w.Action 20511 } 20512 20513 // GetInstallation returns the Installation field. 20514 func (w *WatchEvent) GetInstallation() *Installation { 20515 if w == nil { 20516 return nil 20517 } 20518 return w.Installation 20519 } 20520 20521 // GetRepo returns the Repo field. 20522 func (w *WatchEvent) GetRepo() *Repository { 20523 if w == nil { 20524 return nil 20525 } 20526 return w.Repo 20527 } 20528 20529 // GetSender returns the Sender field. 20530 func (w *WatchEvent) GetSender() *User { 20531 if w == nil { 20532 return nil 20533 } 20534 return w.Sender 20535 } 20536 20537 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 20538 func (w *WeeklyCommitActivity) GetTotal() int { 20539 if w == nil || w.Total == nil { 20540 return 0 20541 } 20542 return *w.Total 20543 } 20544 20545 // GetWeek returns the Week field if it's non-nil, zero value otherwise. 20546 func (w *WeeklyCommitActivity) GetWeek() Timestamp { 20547 if w == nil || w.Week == nil { 20548 return Timestamp{} 20549 } 20550 return *w.Week 20551 } 20552 20553 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 20554 func (w *WeeklyStats) GetAdditions() int { 20555 if w == nil || w.Additions == nil { 20556 return 0 20557 } 20558 return *w.Additions 20559 } 20560 20561 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 20562 func (w *WeeklyStats) GetCommits() int { 20563 if w == nil || w.Commits == nil { 20564 return 0 20565 } 20566 return *w.Commits 20567 } 20568 20569 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 20570 func (w *WeeklyStats) GetDeletions() int { 20571 if w == nil || w.Deletions == nil { 20572 return 0 20573 } 20574 return *w.Deletions 20575 } 20576 20577 // GetWeek returns the Week field if it's non-nil, zero value otherwise. 20578 func (w *WeeklyStats) GetWeek() Timestamp { 20579 if w == nil || w.Week == nil { 20580 return Timestamp{} 20581 } 20582 return *w.Week 20583 } 20584 20585 // GetBadgeURL returns the BadgeURL field if it's non-nil, zero value otherwise. 20586 func (w *Workflow) GetBadgeURL() string { 20587 if w == nil || w.BadgeURL == nil { 20588 return "" 20589 } 20590 return *w.BadgeURL 20591 } 20592 20593 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 20594 func (w *Workflow) GetCreatedAt() Timestamp { 20595 if w == nil || w.CreatedAt == nil { 20596 return Timestamp{} 20597 } 20598 return *w.CreatedAt 20599 } 20600 20601 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 20602 func (w *Workflow) GetHTMLURL() string { 20603 if w == nil || w.HTMLURL == nil { 20604 return "" 20605 } 20606 return *w.HTMLURL 20607 } 20608 20609 // GetID returns the ID field if it's non-nil, zero value otherwise. 20610 func (w *Workflow) GetID() int64 { 20611 if w == nil || w.ID == nil { 20612 return 0 20613 } 20614 return *w.ID 20615 } 20616 20617 // GetName returns the Name field if it's non-nil, zero value otherwise. 20618 func (w *Workflow) GetName() string { 20619 if w == nil || w.Name == nil { 20620 return "" 20621 } 20622 return *w.Name 20623 } 20624 20625 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 20626 func (w *Workflow) GetNodeID() string { 20627 if w == nil || w.NodeID == nil { 20628 return "" 20629 } 20630 return *w.NodeID 20631 } 20632 20633 // GetPath returns the Path field if it's non-nil, zero value otherwise. 20634 func (w *Workflow) GetPath() string { 20635 if w == nil || w.Path == nil { 20636 return "" 20637 } 20638 return *w.Path 20639 } 20640 20641 // GetState returns the State field if it's non-nil, zero value otherwise. 20642 func (w *Workflow) GetState() string { 20643 if w == nil || w.State == nil { 20644 return "" 20645 } 20646 return *w.State 20647 } 20648 20649 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 20650 func (w *Workflow) GetUpdatedAt() Timestamp { 20651 if w == nil || w.UpdatedAt == nil { 20652 return Timestamp{} 20653 } 20654 return *w.UpdatedAt 20655 } 20656 20657 // GetURL returns the URL field if it's non-nil, zero value otherwise. 20658 func (w *Workflow) GetURL() string { 20659 if w == nil || w.URL == nil { 20660 return "" 20661 } 20662 return *w.URL 20663 } 20664 20665 // GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise. 20666 func (w *WorkflowBill) GetTotalMS() int64 { 20667 if w == nil || w.TotalMS == nil { 20668 return 0 20669 } 20670 return *w.TotalMS 20671 } 20672 20673 // GetInstallation returns the Installation field. 20674 func (w *WorkflowDispatchEvent) GetInstallation() *Installation { 20675 if w == nil { 20676 return nil 20677 } 20678 return w.Installation 20679 } 20680 20681 // GetOrg returns the Org field. 20682 func (w *WorkflowDispatchEvent) GetOrg() *Organization { 20683 if w == nil { 20684 return nil 20685 } 20686 return w.Org 20687 } 20688 20689 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 20690 func (w *WorkflowDispatchEvent) GetRef() string { 20691 if w == nil || w.Ref == nil { 20692 return "" 20693 } 20694 return *w.Ref 20695 } 20696 20697 // GetRepo returns the Repo field. 20698 func (w *WorkflowDispatchEvent) GetRepo() *Repository { 20699 if w == nil { 20700 return nil 20701 } 20702 return w.Repo 20703 } 20704 20705 // GetSender returns the Sender field. 20706 func (w *WorkflowDispatchEvent) GetSender() *User { 20707 if w == nil { 20708 return nil 20709 } 20710 return w.Sender 20711 } 20712 20713 // GetWorkflow returns the Workflow field if it's non-nil, zero value otherwise. 20714 func (w *WorkflowDispatchEvent) GetWorkflow() string { 20715 if w == nil || w.Workflow == nil { 20716 return "" 20717 } 20718 return *w.Workflow 20719 } 20720 20721 // GetCheckRunURL returns the CheckRunURL field if it's non-nil, zero value otherwise. 20722 func (w *WorkflowJob) GetCheckRunURL() string { 20723 if w == nil || w.CheckRunURL == nil { 20724 return "" 20725 } 20726 return *w.CheckRunURL 20727 } 20728 20729 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 20730 func (w *WorkflowJob) GetCompletedAt() Timestamp { 20731 if w == nil || w.CompletedAt == nil { 20732 return Timestamp{} 20733 } 20734 return *w.CompletedAt 20735 } 20736 20737 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 20738 func (w *WorkflowJob) GetConclusion() string { 20739 if w == nil || w.Conclusion == nil { 20740 return "" 20741 } 20742 return *w.Conclusion 20743 } 20744 20745 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 20746 func (w *WorkflowJob) GetHeadSHA() string { 20747 if w == nil || w.HeadSHA == nil { 20748 return "" 20749 } 20750 return *w.HeadSHA 20751 } 20752 20753 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 20754 func (w *WorkflowJob) GetHTMLURL() string { 20755 if w == nil || w.HTMLURL == nil { 20756 return "" 20757 } 20758 return *w.HTMLURL 20759 } 20760 20761 // GetID returns the ID field if it's non-nil, zero value otherwise. 20762 func (w *WorkflowJob) GetID() int64 { 20763 if w == nil || w.ID == nil { 20764 return 0 20765 } 20766 return *w.ID 20767 } 20768 20769 // GetName returns the Name field if it's non-nil, zero value otherwise. 20770 func (w *WorkflowJob) GetName() string { 20771 if w == nil || w.Name == nil { 20772 return "" 20773 } 20774 return *w.Name 20775 } 20776 20777 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 20778 func (w *WorkflowJob) GetNodeID() string { 20779 if w == nil || w.NodeID == nil { 20780 return "" 20781 } 20782 return *w.NodeID 20783 } 20784 20785 // GetRunAttempt returns the RunAttempt field if it's non-nil, zero value otherwise. 20786 func (w *WorkflowJob) GetRunAttempt() int64 { 20787 if w == nil || w.RunAttempt == nil { 20788 return 0 20789 } 20790 return *w.RunAttempt 20791 } 20792 20793 // GetRunID returns the RunID field if it's non-nil, zero value otherwise. 20794 func (w *WorkflowJob) GetRunID() int64 { 20795 if w == nil || w.RunID == nil { 20796 return 0 20797 } 20798 return *w.RunID 20799 } 20800 20801 // GetRunnerGroupID returns the RunnerGroupID field if it's non-nil, zero value otherwise. 20802 func (w *WorkflowJob) GetRunnerGroupID() int64 { 20803 if w == nil || w.RunnerGroupID == nil { 20804 return 0 20805 } 20806 return *w.RunnerGroupID 20807 } 20808 20809 // GetRunnerGroupName returns the RunnerGroupName field if it's non-nil, zero value otherwise. 20810 func (w *WorkflowJob) GetRunnerGroupName() string { 20811 if w == nil || w.RunnerGroupName == nil { 20812 return "" 20813 } 20814 return *w.RunnerGroupName 20815 } 20816 20817 // GetRunnerID returns the RunnerID field if it's non-nil, zero value otherwise. 20818 func (w *WorkflowJob) GetRunnerID() int64 { 20819 if w == nil || w.RunnerID == nil { 20820 return 0 20821 } 20822 return *w.RunnerID 20823 } 20824 20825 // GetRunnerName returns the RunnerName field if it's non-nil, zero value otherwise. 20826 func (w *WorkflowJob) GetRunnerName() string { 20827 if w == nil || w.RunnerName == nil { 20828 return "" 20829 } 20830 return *w.RunnerName 20831 } 20832 20833 // GetRunURL returns the RunURL field if it's non-nil, zero value otherwise. 20834 func (w *WorkflowJob) GetRunURL() string { 20835 if w == nil || w.RunURL == nil { 20836 return "" 20837 } 20838 return *w.RunURL 20839 } 20840 20841 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 20842 func (w *WorkflowJob) GetStartedAt() Timestamp { 20843 if w == nil || w.StartedAt == nil { 20844 return Timestamp{} 20845 } 20846 return *w.StartedAt 20847 } 20848 20849 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 20850 func (w *WorkflowJob) GetStatus() string { 20851 if w == nil || w.Status == nil { 20852 return "" 20853 } 20854 return *w.Status 20855 } 20856 20857 // GetURL returns the URL field if it's non-nil, zero value otherwise. 20858 func (w *WorkflowJob) GetURL() string { 20859 if w == nil || w.URL == nil { 20860 return "" 20861 } 20862 return *w.URL 20863 } 20864 20865 // GetAction returns the Action field if it's non-nil, zero value otherwise. 20866 func (w *WorkflowJobEvent) GetAction() string { 20867 if w == nil || w.Action == nil { 20868 return "" 20869 } 20870 return *w.Action 20871 } 20872 20873 // GetInstallation returns the Installation field. 20874 func (w *WorkflowJobEvent) GetInstallation() *Installation { 20875 if w == nil { 20876 return nil 20877 } 20878 return w.Installation 20879 } 20880 20881 // GetOrg returns the Org field. 20882 func (w *WorkflowJobEvent) GetOrg() *Organization { 20883 if w == nil { 20884 return nil 20885 } 20886 return w.Org 20887 } 20888 20889 // GetRepo returns the Repo field. 20890 func (w *WorkflowJobEvent) GetRepo() *Repository { 20891 if w == nil { 20892 return nil 20893 } 20894 return w.Repo 20895 } 20896 20897 // GetSender returns the Sender field. 20898 func (w *WorkflowJobEvent) GetSender() *User { 20899 if w == nil { 20900 return nil 20901 } 20902 return w.Sender 20903 } 20904 20905 // GetWorkflowJob returns the WorkflowJob field. 20906 func (w *WorkflowJobEvent) GetWorkflowJob() *WorkflowJob { 20907 if w == nil { 20908 return nil 20909 } 20910 return w.WorkflowJob 20911 } 20912 20913 // GetActor returns the Actor field. 20914 func (w *WorkflowRun) GetActor() *User { 20915 if w == nil { 20916 return nil 20917 } 20918 return w.Actor 20919 } 20920 20921 // GetArtifactsURL returns the ArtifactsURL field if it's non-nil, zero value otherwise. 20922 func (w *WorkflowRun) GetArtifactsURL() string { 20923 if w == nil || w.ArtifactsURL == nil { 20924 return "" 20925 } 20926 return *w.ArtifactsURL 20927 } 20928 20929 // GetCancelURL returns the CancelURL field if it's non-nil, zero value otherwise. 20930 func (w *WorkflowRun) GetCancelURL() string { 20931 if w == nil || w.CancelURL == nil { 20932 return "" 20933 } 20934 return *w.CancelURL 20935 } 20936 20937 // GetCheckSuiteID returns the CheckSuiteID field if it's non-nil, zero value otherwise. 20938 func (w *WorkflowRun) GetCheckSuiteID() int64 { 20939 if w == nil || w.CheckSuiteID == nil { 20940 return 0 20941 } 20942 return *w.CheckSuiteID 20943 } 20944 20945 // GetCheckSuiteNodeID returns the CheckSuiteNodeID field if it's non-nil, zero value otherwise. 20946 func (w *WorkflowRun) GetCheckSuiteNodeID() string { 20947 if w == nil || w.CheckSuiteNodeID == nil { 20948 return "" 20949 } 20950 return *w.CheckSuiteNodeID 20951 } 20952 20953 // GetCheckSuiteURL returns the CheckSuiteURL field if it's non-nil, zero value otherwise. 20954 func (w *WorkflowRun) GetCheckSuiteURL() string { 20955 if w == nil || w.CheckSuiteURL == nil { 20956 return "" 20957 } 20958 return *w.CheckSuiteURL 20959 } 20960 20961 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 20962 func (w *WorkflowRun) GetConclusion() string { 20963 if w == nil || w.Conclusion == nil { 20964 return "" 20965 } 20966 return *w.Conclusion 20967 } 20968 20969 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 20970 func (w *WorkflowRun) GetCreatedAt() Timestamp { 20971 if w == nil || w.CreatedAt == nil { 20972 return Timestamp{} 20973 } 20974 return *w.CreatedAt 20975 } 20976 20977 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 20978 func (w *WorkflowRun) GetEvent() string { 20979 if w == nil || w.Event == nil { 20980 return "" 20981 } 20982 return *w.Event 20983 } 20984 20985 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 20986 func (w *WorkflowRun) GetHeadBranch() string { 20987 if w == nil || w.HeadBranch == nil { 20988 return "" 20989 } 20990 return *w.HeadBranch 20991 } 20992 20993 // GetHeadCommit returns the HeadCommit field. 20994 func (w *WorkflowRun) GetHeadCommit() *HeadCommit { 20995 if w == nil { 20996 return nil 20997 } 20998 return w.HeadCommit 20999 } 21000 21001 // GetHeadRepository returns the HeadRepository field. 21002 func (w *WorkflowRun) GetHeadRepository() *Repository { 21003 if w == nil { 21004 return nil 21005 } 21006 return w.HeadRepository 21007 } 21008 21009 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 21010 func (w *WorkflowRun) GetHeadSHA() string { 21011 if w == nil || w.HeadSHA == nil { 21012 return "" 21013 } 21014 return *w.HeadSHA 21015 } 21016 21017 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 21018 func (w *WorkflowRun) GetHTMLURL() string { 21019 if w == nil || w.HTMLURL == nil { 21020 return "" 21021 } 21022 return *w.HTMLURL 21023 } 21024 21025 // GetID returns the ID field if it's non-nil, zero value otherwise. 21026 func (w *WorkflowRun) GetID() int64 { 21027 if w == nil || w.ID == nil { 21028 return 0 21029 } 21030 return *w.ID 21031 } 21032 21033 // GetJobsURL returns the JobsURL field if it's non-nil, zero value otherwise. 21034 func (w *WorkflowRun) GetJobsURL() string { 21035 if w == nil || w.JobsURL == nil { 21036 return "" 21037 } 21038 return *w.JobsURL 21039 } 21040 21041 // GetLogsURL returns the LogsURL field if it's non-nil, zero value otherwise. 21042 func (w *WorkflowRun) GetLogsURL() string { 21043 if w == nil || w.LogsURL == nil { 21044 return "" 21045 } 21046 return *w.LogsURL 21047 } 21048 21049 // GetName returns the Name field if it's non-nil, zero value otherwise. 21050 func (w *WorkflowRun) GetName() string { 21051 if w == nil || w.Name == nil { 21052 return "" 21053 } 21054 return *w.Name 21055 } 21056 21057 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 21058 func (w *WorkflowRun) GetNodeID() string { 21059 if w == nil || w.NodeID == nil { 21060 return "" 21061 } 21062 return *w.NodeID 21063 } 21064 21065 // GetPreviousAttemptURL returns the PreviousAttemptURL field if it's non-nil, zero value otherwise. 21066 func (w *WorkflowRun) GetPreviousAttemptURL() string { 21067 if w == nil || w.PreviousAttemptURL == nil { 21068 return "" 21069 } 21070 return *w.PreviousAttemptURL 21071 } 21072 21073 // GetRepository returns the Repository field. 21074 func (w *WorkflowRun) GetRepository() *Repository { 21075 if w == nil { 21076 return nil 21077 } 21078 return w.Repository 21079 } 21080 21081 // GetRerunURL returns the RerunURL field if it's non-nil, zero value otherwise. 21082 func (w *WorkflowRun) GetRerunURL() string { 21083 if w == nil || w.RerunURL == nil { 21084 return "" 21085 } 21086 return *w.RerunURL 21087 } 21088 21089 // GetRunAttempt returns the RunAttempt field if it's non-nil, zero value otherwise. 21090 func (w *WorkflowRun) GetRunAttempt() int { 21091 if w == nil || w.RunAttempt == nil { 21092 return 0 21093 } 21094 return *w.RunAttempt 21095 } 21096 21097 // GetRunNumber returns the RunNumber field if it's non-nil, zero value otherwise. 21098 func (w *WorkflowRun) GetRunNumber() int { 21099 if w == nil || w.RunNumber == nil { 21100 return 0 21101 } 21102 return *w.RunNumber 21103 } 21104 21105 // GetRunStartedAt returns the RunStartedAt field if it's non-nil, zero value otherwise. 21106 func (w *WorkflowRun) GetRunStartedAt() Timestamp { 21107 if w == nil || w.RunStartedAt == nil { 21108 return Timestamp{} 21109 } 21110 return *w.RunStartedAt 21111 } 21112 21113 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 21114 func (w *WorkflowRun) GetStatus() string { 21115 if w == nil || w.Status == nil { 21116 return "" 21117 } 21118 return *w.Status 21119 } 21120 21121 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 21122 func (w *WorkflowRun) GetUpdatedAt() Timestamp { 21123 if w == nil || w.UpdatedAt == nil { 21124 return Timestamp{} 21125 } 21126 return *w.UpdatedAt 21127 } 21128 21129 // GetURL returns the URL field if it's non-nil, zero value otherwise. 21130 func (w *WorkflowRun) GetURL() string { 21131 if w == nil || w.URL == nil { 21132 return "" 21133 } 21134 return *w.URL 21135 } 21136 21137 // GetWorkflowID returns the WorkflowID field if it's non-nil, zero value otherwise. 21138 func (w *WorkflowRun) GetWorkflowID() int64 { 21139 if w == nil || w.WorkflowID == nil { 21140 return 0 21141 } 21142 return *w.WorkflowID 21143 } 21144 21145 // GetWorkflowURL returns the WorkflowURL field if it's non-nil, zero value otherwise. 21146 func (w *WorkflowRun) GetWorkflowURL() string { 21147 if w == nil || w.WorkflowURL == nil { 21148 return "" 21149 } 21150 return *w.WorkflowURL 21151 } 21152 21153 // GetExcludePullRequests returns the ExcludePullRequests field if it's non-nil, zero value otherwise. 21154 func (w *WorkflowRunAttemptOptions) GetExcludePullRequests() bool { 21155 if w == nil || w.ExcludePullRequests == nil { 21156 return false 21157 } 21158 return *w.ExcludePullRequests 21159 } 21160 21161 // GetJobs returns the Jobs field if it's non-nil, zero value otherwise. 21162 func (w *WorkflowRunBill) GetJobs() int { 21163 if w == nil || w.Jobs == nil { 21164 return 0 21165 } 21166 return *w.Jobs 21167 } 21168 21169 // GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise. 21170 func (w *WorkflowRunBill) GetTotalMS() int64 { 21171 if w == nil || w.TotalMS == nil { 21172 return 0 21173 } 21174 return *w.TotalMS 21175 } 21176 21177 // GetAction returns the Action field if it's non-nil, zero value otherwise. 21178 func (w *WorkflowRunEvent) GetAction() string { 21179 if w == nil || w.Action == nil { 21180 return "" 21181 } 21182 return *w.Action 21183 } 21184 21185 // GetInstallation returns the Installation field. 21186 func (w *WorkflowRunEvent) GetInstallation() *Installation { 21187 if w == nil { 21188 return nil 21189 } 21190 return w.Installation 21191 } 21192 21193 // GetOrg returns the Org field. 21194 func (w *WorkflowRunEvent) GetOrg() *Organization { 21195 if w == nil { 21196 return nil 21197 } 21198 return w.Org 21199 } 21200 21201 // GetRepo returns the Repo field. 21202 func (w *WorkflowRunEvent) GetRepo() *Repository { 21203 if w == nil { 21204 return nil 21205 } 21206 return w.Repo 21207 } 21208 21209 // GetSender returns the Sender field. 21210 func (w *WorkflowRunEvent) GetSender() *User { 21211 if w == nil { 21212 return nil 21213 } 21214 return w.Sender 21215 } 21216 21217 // GetWorkflow returns the Workflow field. 21218 func (w *WorkflowRunEvent) GetWorkflow() *Workflow { 21219 if w == nil { 21220 return nil 21221 } 21222 return w.Workflow 21223 } 21224 21225 // GetWorkflowRun returns the WorkflowRun field. 21226 func (w *WorkflowRunEvent) GetWorkflowRun() *WorkflowRun { 21227 if w == nil { 21228 return nil 21229 } 21230 return w.WorkflowRun 21231 } 21232 21233 // GetDurationMS returns the DurationMS field if it's non-nil, zero value otherwise. 21234 func (w *WorkflowRunJobRun) GetDurationMS() int64 { 21235 if w == nil || w.DurationMS == nil { 21236 return 0 21237 } 21238 return *w.DurationMS 21239 } 21240 21241 // GetJobID returns the JobID field if it's non-nil, zero value otherwise. 21242 func (w *WorkflowRunJobRun) GetJobID() int { 21243 if w == nil || w.JobID == nil { 21244 return 0 21245 } 21246 return *w.JobID 21247 } 21248 21249 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 21250 func (w *WorkflowRuns) GetTotalCount() int { 21251 if w == nil || w.TotalCount == nil { 21252 return 0 21253 } 21254 return *w.TotalCount 21255 } 21256 21257 // GetBillable returns the Billable field. 21258 func (w *WorkflowRunUsage) GetBillable() *WorkflowRunBillMap { 21259 if w == nil { 21260 return nil 21261 } 21262 return w.Billable 21263 } 21264 21265 // GetRunDurationMS returns the RunDurationMS field if it's non-nil, zero value otherwise. 21266 func (w *WorkflowRunUsage) GetRunDurationMS() int64 { 21267 if w == nil || w.RunDurationMS == nil { 21268 return 0 21269 } 21270 return *w.RunDurationMS 21271 } 21272 21273 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 21274 func (w *Workflows) GetTotalCount() int { 21275 if w == nil || w.TotalCount == nil { 21276 return 0 21277 } 21278 return *w.TotalCount 21279 } 21280 21281 // GetBillable returns the Billable field. 21282 func (w *WorkflowUsage) GetBillable() *WorkflowBillMap { 21283 if w == nil { 21284 return nil 21285 } 21286 return w.Billable 21287 }