github.com/google/go-github/v57@v57.0.0/github/github-accessors.go (about) 1 // Copyright 2017 The go-github AUTHORS. All rights reserved. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 // Code generated by gen-accessors; DO NOT EDIT. 7 // 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 *ActionsPermissionsEnterprise) GetAllowedActions() string { 155 if a == nil || a.AllowedActions == nil { 156 return "" 157 } 158 return *a.AllowedActions 159 } 160 161 // GetEnabledOrganizations returns the EnabledOrganizations field if it's non-nil, zero value otherwise. 162 func (a *ActionsPermissionsEnterprise) GetEnabledOrganizations() string { 163 if a == nil || a.EnabledOrganizations == nil { 164 return "" 165 } 166 return *a.EnabledOrganizations 167 } 168 169 // GetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise. 170 func (a *ActionsPermissionsEnterprise) GetSelectedActionsURL() string { 171 if a == nil || a.SelectedActionsURL == nil { 172 return "" 173 } 174 return *a.SelectedActionsURL 175 } 176 177 // GetAllowedActions returns the AllowedActions field if it's non-nil, zero value otherwise. 178 func (a *ActionsPermissionsRepository) GetAllowedActions() string { 179 if a == nil || a.AllowedActions == nil { 180 return "" 181 } 182 return *a.AllowedActions 183 } 184 185 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 186 func (a *ActionsPermissionsRepository) GetEnabled() bool { 187 if a == nil || a.Enabled == nil { 188 return false 189 } 190 return *a.Enabled 191 } 192 193 // GetSelectedActionsURL returns the SelectedActionsURL field if it's non-nil, zero value otherwise. 194 func (a *ActionsPermissionsRepository) GetSelectedActionsURL() string { 195 if a == nil || a.SelectedActionsURL == nil { 196 return "" 197 } 198 return *a.SelectedActionsURL 199 } 200 201 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 202 func (a *ActionsVariable) GetCreatedAt() Timestamp { 203 if a == nil || a.CreatedAt == nil { 204 return Timestamp{} 205 } 206 return *a.CreatedAt 207 } 208 209 // GetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise. 210 func (a *ActionsVariable) GetSelectedRepositoriesURL() string { 211 if a == nil || a.SelectedRepositoriesURL == nil { 212 return "" 213 } 214 return *a.SelectedRepositoriesURL 215 } 216 217 // GetSelectedRepositoryIDs returns the SelectedRepositoryIDs field. 218 func (a *ActionsVariable) GetSelectedRepositoryIDs() *SelectedRepoIDs { 219 if a == nil { 220 return nil 221 } 222 return a.SelectedRepositoryIDs 223 } 224 225 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 226 func (a *ActionsVariable) GetUpdatedAt() Timestamp { 227 if a == nil || a.UpdatedAt == nil { 228 return Timestamp{} 229 } 230 return *a.UpdatedAt 231 } 232 233 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 234 func (a *ActionsVariable) GetVisibility() string { 235 if a == nil || a.Visibility == nil { 236 return "" 237 } 238 return *a.Visibility 239 } 240 241 // GetCountryCode returns the CountryCode field if it's non-nil, zero value otherwise. 242 func (a *ActorLocation) GetCountryCode() string { 243 if a == nil || a.CountryCode == nil { 244 return "" 245 } 246 return *a.CountryCode 247 } 248 249 // GetFrom returns the From field if it's non-nil, zero value otherwise. 250 func (a *AdminEnforcedChanges) GetFrom() bool { 251 if a == nil || a.From == nil { 252 return false 253 } 254 return *a.From 255 } 256 257 // GetURL returns the URL field if it's non-nil, zero value otherwise. 258 func (a *AdminEnforcement) GetURL() string { 259 if a == nil || a.URL == nil { 260 return "" 261 } 262 return *a.URL 263 } 264 265 // GetComments returns the Comments field. 266 func (a *AdminStats) GetComments() *CommentStats { 267 if a == nil { 268 return nil 269 } 270 return a.Comments 271 } 272 273 // GetGists returns the Gists field. 274 func (a *AdminStats) GetGists() *GistStats { 275 if a == nil { 276 return nil 277 } 278 return a.Gists 279 } 280 281 // GetHooks returns the Hooks field. 282 func (a *AdminStats) GetHooks() *HookStats { 283 if a == nil { 284 return nil 285 } 286 return a.Hooks 287 } 288 289 // GetIssues returns the Issues field. 290 func (a *AdminStats) GetIssues() *IssueStats { 291 if a == nil { 292 return nil 293 } 294 return a.Issues 295 } 296 297 // GetMilestones returns the Milestones field. 298 func (a *AdminStats) GetMilestones() *MilestoneStats { 299 if a == nil { 300 return nil 301 } 302 return a.Milestones 303 } 304 305 // GetOrgs returns the Orgs field. 306 func (a *AdminStats) GetOrgs() *OrgStats { 307 if a == nil { 308 return nil 309 } 310 return a.Orgs 311 } 312 313 // GetPages returns the Pages field. 314 func (a *AdminStats) GetPages() *PageStats { 315 if a == nil { 316 return nil 317 } 318 return a.Pages 319 } 320 321 // GetPulls returns the Pulls field. 322 func (a *AdminStats) GetPulls() *PullStats { 323 if a == nil { 324 return nil 325 } 326 return a.Pulls 327 } 328 329 // GetRepos returns the Repos field. 330 func (a *AdminStats) GetRepos() *RepoStats { 331 if a == nil { 332 return nil 333 } 334 return a.Repos 335 } 336 337 // GetUsers returns the Users field. 338 func (a *AdminStats) GetUsers() *UserStats { 339 if a == nil { 340 return nil 341 } 342 return a.Users 343 } 344 345 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 346 func (a *AdvancedSecurity) GetStatus() string { 347 if a == nil || a.Status == nil { 348 return "" 349 } 350 return *a.Status 351 } 352 353 // GetLastPushedDate returns the LastPushedDate field if it's non-nil, zero value otherwise. 354 func (a *AdvancedSecurityCommittersBreakdown) GetLastPushedDate() string { 355 if a == nil || a.LastPushedDate == nil { 356 return "" 357 } 358 return *a.LastPushedDate 359 } 360 361 // GetUserLogin returns the UserLogin field if it's non-nil, zero value otherwise. 362 func (a *AdvancedSecurityCommittersBreakdown) GetUserLogin() string { 363 if a == nil || a.UserLogin == nil { 364 return "" 365 } 366 return *a.UserLogin 367 } 368 369 // GetScore returns the Score field. 370 func (a *AdvisoryCVSS) GetScore() *float64 { 371 if a == nil { 372 return nil 373 } 374 return a.Score 375 } 376 377 // GetVectorString returns the VectorString field if it's non-nil, zero value otherwise. 378 func (a *AdvisoryCVSS) GetVectorString() string { 379 if a == nil || a.VectorString == nil { 380 return "" 381 } 382 return *a.VectorString 383 } 384 385 // GetCWEID returns the CWEID field if it's non-nil, zero value otherwise. 386 func (a *AdvisoryCWEs) GetCWEID() string { 387 if a == nil || a.CWEID == nil { 388 return "" 389 } 390 return *a.CWEID 391 } 392 393 // GetName returns the Name field if it's non-nil, zero value otherwise. 394 func (a *AdvisoryCWEs) GetName() string { 395 if a == nil || a.Name == nil { 396 return "" 397 } 398 return *a.Name 399 } 400 401 // GetType returns the Type field if it's non-nil, zero value otherwise. 402 func (a *AdvisoryIdentifier) GetType() string { 403 if a == nil || a.Type == nil { 404 return "" 405 } 406 return *a.Type 407 } 408 409 // GetValue returns the Value field if it's non-nil, zero value otherwise. 410 func (a *AdvisoryIdentifier) GetValue() string { 411 if a == nil || a.Value == nil { 412 return "" 413 } 414 return *a.Value 415 } 416 417 // GetURL returns the URL field if it's non-nil, zero value otherwise. 418 func (a *AdvisoryReference) GetURL() string { 419 if a == nil || a.URL == nil { 420 return "" 421 } 422 return *a.URL 423 } 424 425 // GetFirstPatchedVersion returns the FirstPatchedVersion field. 426 func (a *AdvisoryVulnerability) GetFirstPatchedVersion() *FirstPatchedVersion { 427 if a == nil { 428 return nil 429 } 430 return a.FirstPatchedVersion 431 } 432 433 // GetPackage returns the Package field. 434 func (a *AdvisoryVulnerability) GetPackage() *VulnerabilityPackage { 435 if a == nil { 436 return nil 437 } 438 return a.Package 439 } 440 441 // GetPatchedVersions returns the PatchedVersions field if it's non-nil, zero value otherwise. 442 func (a *AdvisoryVulnerability) GetPatchedVersions() string { 443 if a == nil || a.PatchedVersions == nil { 444 return "" 445 } 446 return *a.PatchedVersions 447 } 448 449 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 450 func (a *AdvisoryVulnerability) GetSeverity() string { 451 if a == nil || a.Severity == nil { 452 return "" 453 } 454 return *a.Severity 455 } 456 457 // GetVulnerableVersionRange returns the VulnerableVersionRange field if it's non-nil, zero value otherwise. 458 func (a *AdvisoryVulnerability) GetVulnerableVersionRange() string { 459 if a == nil || a.VulnerableVersionRange == nil { 460 return "" 461 } 462 return *a.VulnerableVersionRange 463 } 464 465 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 466 func (a *Alert) GetClosedAt() Timestamp { 467 if a == nil || a.ClosedAt == nil { 468 return Timestamp{} 469 } 470 return *a.ClosedAt 471 } 472 473 // GetClosedBy returns the ClosedBy field. 474 func (a *Alert) GetClosedBy() *User { 475 if a == nil { 476 return nil 477 } 478 return a.ClosedBy 479 } 480 481 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 482 func (a *Alert) GetCreatedAt() Timestamp { 483 if a == nil || a.CreatedAt == nil { 484 return Timestamp{} 485 } 486 return *a.CreatedAt 487 } 488 489 // GetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise. 490 func (a *Alert) GetDismissedAt() Timestamp { 491 if a == nil || a.DismissedAt == nil { 492 return Timestamp{} 493 } 494 return *a.DismissedAt 495 } 496 497 // GetDismissedBy returns the DismissedBy field. 498 func (a *Alert) GetDismissedBy() *User { 499 if a == nil { 500 return nil 501 } 502 return a.DismissedBy 503 } 504 505 // GetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise. 506 func (a *Alert) GetDismissedComment() string { 507 if a == nil || a.DismissedComment == nil { 508 return "" 509 } 510 return *a.DismissedComment 511 } 512 513 // GetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise. 514 func (a *Alert) GetDismissedReason() string { 515 if a == nil || a.DismissedReason == nil { 516 return "" 517 } 518 return *a.DismissedReason 519 } 520 521 // GetFixedAt returns the FixedAt field if it's non-nil, zero value otherwise. 522 func (a *Alert) GetFixedAt() Timestamp { 523 if a == nil || a.FixedAt == nil { 524 return Timestamp{} 525 } 526 return *a.FixedAt 527 } 528 529 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 530 func (a *Alert) GetHTMLURL() string { 531 if a == nil || a.HTMLURL == nil { 532 return "" 533 } 534 return *a.HTMLURL 535 } 536 537 // GetInstancesURL returns the InstancesURL field if it's non-nil, zero value otherwise. 538 func (a *Alert) GetInstancesURL() string { 539 if a == nil || a.InstancesURL == nil { 540 return "" 541 } 542 return *a.InstancesURL 543 } 544 545 // GetMostRecentInstance returns the MostRecentInstance field. 546 func (a *Alert) GetMostRecentInstance() *MostRecentInstance { 547 if a == nil { 548 return nil 549 } 550 return a.MostRecentInstance 551 } 552 553 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 554 func (a *Alert) GetNumber() int { 555 if a == nil || a.Number == nil { 556 return 0 557 } 558 return *a.Number 559 } 560 561 // GetRepository returns the Repository field. 562 func (a *Alert) GetRepository() *Repository { 563 if a == nil { 564 return nil 565 } 566 return a.Repository 567 } 568 569 // GetRule returns the Rule field. 570 func (a *Alert) GetRule() *Rule { 571 if a == nil { 572 return nil 573 } 574 return a.Rule 575 } 576 577 // GetRuleDescription returns the RuleDescription field if it's non-nil, zero value otherwise. 578 func (a *Alert) GetRuleDescription() string { 579 if a == nil || a.RuleDescription == nil { 580 return "" 581 } 582 return *a.RuleDescription 583 } 584 585 // GetRuleID returns the RuleID field if it's non-nil, zero value otherwise. 586 func (a *Alert) GetRuleID() string { 587 if a == nil || a.RuleID == nil { 588 return "" 589 } 590 return *a.RuleID 591 } 592 593 // GetRuleSeverity returns the RuleSeverity field if it's non-nil, zero value otherwise. 594 func (a *Alert) GetRuleSeverity() string { 595 if a == nil || a.RuleSeverity == nil { 596 return "" 597 } 598 return *a.RuleSeverity 599 } 600 601 // GetState returns the State field if it's non-nil, zero value otherwise. 602 func (a *Alert) GetState() string { 603 if a == nil || a.State == nil { 604 return "" 605 } 606 return *a.State 607 } 608 609 // GetTool returns the Tool field. 610 func (a *Alert) GetTool() *Tool { 611 if a == nil { 612 return nil 613 } 614 return a.Tool 615 } 616 617 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 618 func (a *Alert) GetUpdatedAt() Timestamp { 619 if a == nil || a.UpdatedAt == nil { 620 return Timestamp{} 621 } 622 return *a.UpdatedAt 623 } 624 625 // GetURL returns the URL field if it's non-nil, zero value otherwise. 626 func (a *Alert) GetURL() string { 627 if a == nil || a.URL == nil { 628 return "" 629 } 630 return *a.URL 631 } 632 633 // GetFrom returns the From field if it's non-nil, zero value otherwise. 634 func (a *AllowDeletionsEnforcementLevelChanges) GetFrom() string { 635 if a == nil || a.From == nil { 636 return "" 637 } 638 return *a.From 639 } 640 641 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 642 func (a *AllowForkSyncing) GetEnabled() bool { 643 if a == nil || a.Enabled == nil { 644 return false 645 } 646 return *a.Enabled 647 } 648 649 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 650 func (a *AnalysesListOptions) GetRef() string { 651 if a == nil || a.Ref == nil { 652 return "" 653 } 654 return *a.Ref 655 } 656 657 // GetSarifID returns the SarifID field if it's non-nil, zero value otherwise. 658 func (a *AnalysesListOptions) GetSarifID() string { 659 if a == nil || a.SarifID == nil { 660 return "" 661 } 662 return *a.SarifID 663 } 664 665 // GetSSHKeyFingerprints returns the SSHKeyFingerprints map if it's non-nil, an empty map otherwise. 666 func (a *APIMeta) GetSSHKeyFingerprints() map[string]string { 667 if a == nil || a.SSHKeyFingerprints == nil { 668 return map[string]string{} 669 } 670 return a.SSHKeyFingerprints 671 } 672 673 // GetVerifiablePasswordAuthentication returns the VerifiablePasswordAuthentication field if it's non-nil, zero value otherwise. 674 func (a *APIMeta) GetVerifiablePasswordAuthentication() bool { 675 if a == nil || a.VerifiablePasswordAuthentication == nil { 676 return false 677 } 678 return *a.VerifiablePasswordAuthentication 679 } 680 681 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 682 func (a *App) GetCreatedAt() Timestamp { 683 if a == nil || a.CreatedAt == nil { 684 return Timestamp{} 685 } 686 return *a.CreatedAt 687 } 688 689 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 690 func (a *App) GetDescription() string { 691 if a == nil || a.Description == nil { 692 return "" 693 } 694 return *a.Description 695 } 696 697 // GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise. 698 func (a *App) GetExternalURL() string { 699 if a == nil || a.ExternalURL == nil { 700 return "" 701 } 702 return *a.ExternalURL 703 } 704 705 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 706 func (a *App) GetHTMLURL() string { 707 if a == nil || a.HTMLURL == nil { 708 return "" 709 } 710 return *a.HTMLURL 711 } 712 713 // GetID returns the ID field if it's non-nil, zero value otherwise. 714 func (a *App) GetID() int64 { 715 if a == nil || a.ID == nil { 716 return 0 717 } 718 return *a.ID 719 } 720 721 // GetInstallationsCount returns the InstallationsCount field if it's non-nil, zero value otherwise. 722 func (a *App) GetInstallationsCount() int { 723 if a == nil || a.InstallationsCount == nil { 724 return 0 725 } 726 return *a.InstallationsCount 727 } 728 729 // GetName returns the Name field if it's non-nil, zero value otherwise. 730 func (a *App) GetName() string { 731 if a == nil || a.Name == nil { 732 return "" 733 } 734 return *a.Name 735 } 736 737 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 738 func (a *App) GetNodeID() string { 739 if a == nil || a.NodeID == nil { 740 return "" 741 } 742 return *a.NodeID 743 } 744 745 // GetOwner returns the Owner field. 746 func (a *App) GetOwner() *User { 747 if a == nil { 748 return nil 749 } 750 return a.Owner 751 } 752 753 // GetPermissions returns the Permissions field. 754 func (a *App) GetPermissions() *InstallationPermissions { 755 if a == nil { 756 return nil 757 } 758 return a.Permissions 759 } 760 761 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 762 func (a *App) GetSlug() string { 763 if a == nil || a.Slug == nil { 764 return "" 765 } 766 return *a.Slug 767 } 768 769 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 770 func (a *App) GetUpdatedAt() Timestamp { 771 if a == nil || a.UpdatedAt == nil { 772 return Timestamp{} 773 } 774 return *a.UpdatedAt 775 } 776 777 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 778 func (a *AppConfig) GetClientID() string { 779 if a == nil || a.ClientID == nil { 780 return "" 781 } 782 return *a.ClientID 783 } 784 785 // GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. 786 func (a *AppConfig) GetClientSecret() string { 787 if a == nil || a.ClientSecret == nil { 788 return "" 789 } 790 return *a.ClientSecret 791 } 792 793 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 794 func (a *AppConfig) GetCreatedAt() Timestamp { 795 if a == nil || a.CreatedAt == nil { 796 return Timestamp{} 797 } 798 return *a.CreatedAt 799 } 800 801 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 802 func (a *AppConfig) GetDescription() string { 803 if a == nil || a.Description == nil { 804 return "" 805 } 806 return *a.Description 807 } 808 809 // GetExternalURL returns the ExternalURL field if it's non-nil, zero value otherwise. 810 func (a *AppConfig) GetExternalURL() string { 811 if a == nil || a.ExternalURL == nil { 812 return "" 813 } 814 return *a.ExternalURL 815 } 816 817 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 818 func (a *AppConfig) GetHTMLURL() string { 819 if a == nil || a.HTMLURL == nil { 820 return "" 821 } 822 return *a.HTMLURL 823 } 824 825 // GetID returns the ID field if it's non-nil, zero value otherwise. 826 func (a *AppConfig) GetID() int64 { 827 if a == nil || a.ID == nil { 828 return 0 829 } 830 return *a.ID 831 } 832 833 // GetName returns the Name field if it's non-nil, zero value otherwise. 834 func (a *AppConfig) GetName() string { 835 if a == nil || a.Name == nil { 836 return "" 837 } 838 return *a.Name 839 } 840 841 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 842 func (a *AppConfig) GetNodeID() string { 843 if a == nil || a.NodeID == nil { 844 return "" 845 } 846 return *a.NodeID 847 } 848 849 // GetOwner returns the Owner field. 850 func (a *AppConfig) GetOwner() *User { 851 if a == nil { 852 return nil 853 } 854 return a.Owner 855 } 856 857 // GetPEM returns the PEM field if it's non-nil, zero value otherwise. 858 func (a *AppConfig) GetPEM() string { 859 if a == nil || a.PEM == nil { 860 return "" 861 } 862 return *a.PEM 863 } 864 865 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 866 func (a *AppConfig) GetSlug() string { 867 if a == nil || a.Slug == nil { 868 return "" 869 } 870 return *a.Slug 871 } 872 873 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 874 func (a *AppConfig) GetUpdatedAt() Timestamp { 875 if a == nil || a.UpdatedAt == nil { 876 return Timestamp{} 877 } 878 return *a.UpdatedAt 879 } 880 881 // GetWebhookSecret returns the WebhookSecret field if it's non-nil, zero value otherwise. 882 func (a *AppConfig) GetWebhookSecret() string { 883 if a == nil || a.WebhookSecret == nil { 884 return "" 885 } 886 return *a.WebhookSecret 887 } 888 889 // GetFrom returns the From field if it's non-nil, zero value otherwise. 890 func (a *ArchivedAt) GetFrom() Timestamp { 891 if a == nil || a.From == nil { 892 return Timestamp{} 893 } 894 return *a.From 895 } 896 897 // GetTo returns the To field if it's non-nil, zero value otherwise. 898 func (a *ArchivedAt) GetTo() Timestamp { 899 if a == nil || a.To == nil { 900 return Timestamp{} 901 } 902 return *a.To 903 } 904 905 // GetArchiveDownloadURL returns the ArchiveDownloadURL field if it's non-nil, zero value otherwise. 906 func (a *Artifact) GetArchiveDownloadURL() string { 907 if a == nil || a.ArchiveDownloadURL == nil { 908 return "" 909 } 910 return *a.ArchiveDownloadURL 911 } 912 913 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 914 func (a *Artifact) GetCreatedAt() Timestamp { 915 if a == nil || a.CreatedAt == nil { 916 return Timestamp{} 917 } 918 return *a.CreatedAt 919 } 920 921 // GetExpired returns the Expired field if it's non-nil, zero value otherwise. 922 func (a *Artifact) GetExpired() bool { 923 if a == nil || a.Expired == nil { 924 return false 925 } 926 return *a.Expired 927 } 928 929 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 930 func (a *Artifact) GetExpiresAt() Timestamp { 931 if a == nil || a.ExpiresAt == nil { 932 return Timestamp{} 933 } 934 return *a.ExpiresAt 935 } 936 937 // GetID returns the ID field if it's non-nil, zero value otherwise. 938 func (a *Artifact) GetID() int64 { 939 if a == nil || a.ID == nil { 940 return 0 941 } 942 return *a.ID 943 } 944 945 // GetName returns the Name field if it's non-nil, zero value otherwise. 946 func (a *Artifact) GetName() string { 947 if a == nil || a.Name == nil { 948 return "" 949 } 950 return *a.Name 951 } 952 953 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 954 func (a *Artifact) GetNodeID() string { 955 if a == nil || a.NodeID == nil { 956 return "" 957 } 958 return *a.NodeID 959 } 960 961 // GetSizeInBytes returns the SizeInBytes field if it's non-nil, zero value otherwise. 962 func (a *Artifact) GetSizeInBytes() int64 { 963 if a == nil || a.SizeInBytes == nil { 964 return 0 965 } 966 return *a.SizeInBytes 967 } 968 969 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 970 func (a *Artifact) GetUpdatedAt() Timestamp { 971 if a == nil || a.UpdatedAt == nil { 972 return Timestamp{} 973 } 974 return *a.UpdatedAt 975 } 976 977 // GetURL returns the URL field if it's non-nil, zero value otherwise. 978 func (a *Artifact) GetURL() string { 979 if a == nil || a.URL == nil { 980 return "" 981 } 982 return *a.URL 983 } 984 985 // GetWorkflowRun returns the WorkflowRun field. 986 func (a *Artifact) GetWorkflowRun() *ArtifactWorkflowRun { 987 if a == nil { 988 return nil 989 } 990 return a.WorkflowRun 991 } 992 993 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 994 func (a *ArtifactList) GetTotalCount() int64 { 995 if a == nil || a.TotalCount == nil { 996 return 0 997 } 998 return *a.TotalCount 999 } 1000 1001 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 1002 func (a *ArtifactWorkflowRun) GetHeadBranch() string { 1003 if a == nil || a.HeadBranch == nil { 1004 return "" 1005 } 1006 return *a.HeadBranch 1007 } 1008 1009 // GetHeadRepositoryID returns the HeadRepositoryID field if it's non-nil, zero value otherwise. 1010 func (a *ArtifactWorkflowRun) GetHeadRepositoryID() int64 { 1011 if a == nil || a.HeadRepositoryID == nil { 1012 return 0 1013 } 1014 return *a.HeadRepositoryID 1015 } 1016 1017 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 1018 func (a *ArtifactWorkflowRun) GetHeadSHA() string { 1019 if a == nil || a.HeadSHA == nil { 1020 return "" 1021 } 1022 return *a.HeadSHA 1023 } 1024 1025 // GetID returns the ID field if it's non-nil, zero value otherwise. 1026 func (a *ArtifactWorkflowRun) GetID() int64 { 1027 if a == nil || a.ID == nil { 1028 return 0 1029 } 1030 return *a.ID 1031 } 1032 1033 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 1034 func (a *ArtifactWorkflowRun) GetRepositoryID() int64 { 1035 if a == nil || a.RepositoryID == nil { 1036 return 0 1037 } 1038 return *a.RepositoryID 1039 } 1040 1041 // GetBody returns the Body field if it's non-nil, zero value otherwise. 1042 func (a *Attachment) GetBody() string { 1043 if a == nil || a.Body == nil { 1044 return "" 1045 } 1046 return *a.Body 1047 } 1048 1049 // GetID returns the ID field if it's non-nil, zero value otherwise. 1050 func (a *Attachment) GetID() int64 { 1051 if a == nil || a.ID == nil { 1052 return 0 1053 } 1054 return *a.ID 1055 } 1056 1057 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 1058 func (a *Attachment) GetTitle() string { 1059 if a == nil || a.Title == nil { 1060 return "" 1061 } 1062 return *a.Title 1063 } 1064 1065 // GetAction returns the Action field if it's non-nil, zero value otherwise. 1066 func (a *AuditEntry) GetAction() string { 1067 if a == nil || a.Action == nil { 1068 return "" 1069 } 1070 return *a.Action 1071 } 1072 1073 // GetActive returns the Active field if it's non-nil, zero value otherwise. 1074 func (a *AuditEntry) GetActive() bool { 1075 if a == nil || a.Active == nil { 1076 return false 1077 } 1078 return *a.Active 1079 } 1080 1081 // GetActiveWas returns the ActiveWas field if it's non-nil, zero value otherwise. 1082 func (a *AuditEntry) GetActiveWas() bool { 1083 if a == nil || a.ActiveWas == nil { 1084 return false 1085 } 1086 return *a.ActiveWas 1087 } 1088 1089 // GetActor returns the Actor field if it's non-nil, zero value otherwise. 1090 func (a *AuditEntry) GetActor() string { 1091 if a == nil || a.Actor == nil { 1092 return "" 1093 } 1094 return *a.Actor 1095 } 1096 1097 // GetActorIP returns the ActorIP field if it's non-nil, zero value otherwise. 1098 func (a *AuditEntry) GetActorIP() string { 1099 if a == nil || a.ActorIP == nil { 1100 return "" 1101 } 1102 return *a.ActorIP 1103 } 1104 1105 // GetActorLocation returns the ActorLocation field. 1106 func (a *AuditEntry) GetActorLocation() *ActorLocation { 1107 if a == nil { 1108 return nil 1109 } 1110 return a.ActorLocation 1111 } 1112 1113 // GetBlockedUser returns the BlockedUser field if it's non-nil, zero value otherwise. 1114 func (a *AuditEntry) GetBlockedUser() string { 1115 if a == nil || a.BlockedUser == nil { 1116 return "" 1117 } 1118 return *a.BlockedUser 1119 } 1120 1121 // GetBusiness returns the Business field if it's non-nil, zero value otherwise. 1122 func (a *AuditEntry) GetBusiness() string { 1123 if a == nil || a.Business == nil { 1124 return "" 1125 } 1126 return *a.Business 1127 } 1128 1129 // GetCancelledAt returns the CancelledAt field if it's non-nil, zero value otherwise. 1130 func (a *AuditEntry) GetCancelledAt() Timestamp { 1131 if a == nil || a.CancelledAt == nil { 1132 return Timestamp{} 1133 } 1134 return *a.CancelledAt 1135 } 1136 1137 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 1138 func (a *AuditEntry) GetCompletedAt() Timestamp { 1139 if a == nil || a.CompletedAt == nil { 1140 return Timestamp{} 1141 } 1142 return *a.CompletedAt 1143 } 1144 1145 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 1146 func (a *AuditEntry) GetConclusion() string { 1147 if a == nil || a.Conclusion == nil { 1148 return "" 1149 } 1150 return *a.Conclusion 1151 } 1152 1153 // GetConfig returns the Config field. 1154 func (a *AuditEntry) GetConfig() *HookConfig { 1155 if a == nil { 1156 return nil 1157 } 1158 return a.Config 1159 } 1160 1161 // GetConfigWas returns the ConfigWas field. 1162 func (a *AuditEntry) GetConfigWas() *HookConfig { 1163 if a == nil { 1164 return nil 1165 } 1166 return a.ConfigWas 1167 } 1168 1169 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 1170 func (a *AuditEntry) GetContentType() string { 1171 if a == nil || a.ContentType == nil { 1172 return "" 1173 } 1174 return *a.ContentType 1175 } 1176 1177 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1178 func (a *AuditEntry) GetCreatedAt() Timestamp { 1179 if a == nil || a.CreatedAt == nil { 1180 return Timestamp{} 1181 } 1182 return *a.CreatedAt 1183 } 1184 1185 // GetData returns the Data field. 1186 func (a *AuditEntry) GetData() *AuditEntryData { 1187 if a == nil { 1188 return nil 1189 } 1190 return a.Data 1191 } 1192 1193 // GetDeployKeyFingerprint returns the DeployKeyFingerprint field if it's non-nil, zero value otherwise. 1194 func (a *AuditEntry) GetDeployKeyFingerprint() string { 1195 if a == nil || a.DeployKeyFingerprint == nil { 1196 return "" 1197 } 1198 return *a.DeployKeyFingerprint 1199 } 1200 1201 // GetDocumentID returns the DocumentID field if it's non-nil, zero value otherwise. 1202 func (a *AuditEntry) GetDocumentID() string { 1203 if a == nil || a.DocumentID == nil { 1204 return "" 1205 } 1206 return *a.DocumentID 1207 } 1208 1209 // GetEmoji returns the Emoji field if it's non-nil, zero value otherwise. 1210 func (a *AuditEntry) GetEmoji() string { 1211 if a == nil || a.Emoji == nil { 1212 return "" 1213 } 1214 return *a.Emoji 1215 } 1216 1217 // GetEnvironmentName returns the EnvironmentName field if it's non-nil, zero value otherwise. 1218 func (a *AuditEntry) GetEnvironmentName() string { 1219 if a == nil || a.EnvironmentName == nil { 1220 return "" 1221 } 1222 return *a.EnvironmentName 1223 } 1224 1225 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 1226 func (a *AuditEntry) GetEvent() string { 1227 if a == nil || a.Event == nil { 1228 return "" 1229 } 1230 return *a.Event 1231 } 1232 1233 // GetExplanation returns the Explanation field if it's non-nil, zero value otherwise. 1234 func (a *AuditEntry) GetExplanation() string { 1235 if a == nil || a.Explanation == nil { 1236 return "" 1237 } 1238 return *a.Explanation 1239 } 1240 1241 // GetExternalIdentityNameID returns the ExternalIdentityNameID field if it's non-nil, zero value otherwise. 1242 func (a *AuditEntry) GetExternalIdentityNameID() string { 1243 if a == nil || a.ExternalIdentityNameID == nil { 1244 return "" 1245 } 1246 return *a.ExternalIdentityNameID 1247 } 1248 1249 // GetExternalIdentityUsername returns the ExternalIdentityUsername field if it's non-nil, zero value otherwise. 1250 func (a *AuditEntry) GetExternalIdentityUsername() string { 1251 if a == nil || a.ExternalIdentityUsername == nil { 1252 return "" 1253 } 1254 return *a.ExternalIdentityUsername 1255 } 1256 1257 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 1258 func (a *AuditEntry) GetFingerprint() string { 1259 if a == nil || a.Fingerprint == nil { 1260 return "" 1261 } 1262 return *a.Fingerprint 1263 } 1264 1265 // GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. 1266 func (a *AuditEntry) GetHashedToken() string { 1267 if a == nil || a.HashedToken == nil { 1268 return "" 1269 } 1270 return *a.HashedToken 1271 } 1272 1273 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 1274 func (a *AuditEntry) GetHeadBranch() string { 1275 if a == nil || a.HeadBranch == nil { 1276 return "" 1277 } 1278 return *a.HeadBranch 1279 } 1280 1281 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 1282 func (a *AuditEntry) GetHeadSHA() string { 1283 if a == nil || a.HeadSHA == nil { 1284 return "" 1285 } 1286 return *a.HeadSHA 1287 } 1288 1289 // GetHookID returns the HookID field if it's non-nil, zero value otherwise. 1290 func (a *AuditEntry) GetHookID() int64 { 1291 if a == nil || a.HookID == nil { 1292 return 0 1293 } 1294 return *a.HookID 1295 } 1296 1297 // GetIsHostedRunner returns the IsHostedRunner field if it's non-nil, zero value otherwise. 1298 func (a *AuditEntry) GetIsHostedRunner() bool { 1299 if a == nil || a.IsHostedRunner == nil { 1300 return false 1301 } 1302 return *a.IsHostedRunner 1303 } 1304 1305 // GetJobName returns the JobName field if it's non-nil, zero value otherwise. 1306 func (a *AuditEntry) GetJobName() string { 1307 if a == nil || a.JobName == nil { 1308 return "" 1309 } 1310 return *a.JobName 1311 } 1312 1313 // GetJobWorkflowRef returns the JobWorkflowRef field if it's non-nil, zero value otherwise. 1314 func (a *AuditEntry) GetJobWorkflowRef() string { 1315 if a == nil || a.JobWorkflowRef == nil { 1316 return "" 1317 } 1318 return *a.JobWorkflowRef 1319 } 1320 1321 // GetLimitedAvailability returns the LimitedAvailability field if it's non-nil, zero value otherwise. 1322 func (a *AuditEntry) GetLimitedAvailability() bool { 1323 if a == nil || a.LimitedAvailability == nil { 1324 return false 1325 } 1326 return *a.LimitedAvailability 1327 } 1328 1329 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 1330 func (a *AuditEntry) GetMessage() string { 1331 if a == nil || a.Message == nil { 1332 return "" 1333 } 1334 return *a.Message 1335 } 1336 1337 // GetName returns the Name field if it's non-nil, zero value otherwise. 1338 func (a *AuditEntry) GetName() string { 1339 if a == nil || a.Name == nil { 1340 return "" 1341 } 1342 return *a.Name 1343 } 1344 1345 // GetOAuthApplicationID returns the OAuthApplicationID field if it's non-nil, zero value otherwise. 1346 func (a *AuditEntry) GetOAuthApplicationID() int64 { 1347 if a == nil || a.OAuthApplicationID == nil { 1348 return 0 1349 } 1350 return *a.OAuthApplicationID 1351 } 1352 1353 // GetOldPermission returns the OldPermission field if it's non-nil, zero value otherwise. 1354 func (a *AuditEntry) GetOldPermission() string { 1355 if a == nil || a.OldPermission == nil { 1356 return "" 1357 } 1358 return *a.OldPermission 1359 } 1360 1361 // GetOldUser returns the OldUser field if it's non-nil, zero value otherwise. 1362 func (a *AuditEntry) GetOldUser() string { 1363 if a == nil || a.OldUser == nil { 1364 return "" 1365 } 1366 return *a.OldUser 1367 } 1368 1369 // GetOpenSSHPublicKey returns the OpenSSHPublicKey field if it's non-nil, zero value otherwise. 1370 func (a *AuditEntry) GetOpenSSHPublicKey() string { 1371 if a == nil || a.OpenSSHPublicKey == nil { 1372 return "" 1373 } 1374 return *a.OpenSSHPublicKey 1375 } 1376 1377 // GetOperationType returns the OperationType field if it's non-nil, zero value otherwise. 1378 func (a *AuditEntry) GetOperationType() string { 1379 if a == nil || a.OperationType == nil { 1380 return "" 1381 } 1382 return *a.OperationType 1383 } 1384 1385 // GetOrg returns the Org field if it's non-nil, zero value otherwise. 1386 func (a *AuditEntry) GetOrg() string { 1387 if a == nil || a.Org == nil { 1388 return "" 1389 } 1390 return *a.Org 1391 } 1392 1393 // GetOrgID returns the OrgID field if it's non-nil, zero value otherwise. 1394 func (a *AuditEntry) GetOrgID() int64 { 1395 if a == nil || a.OrgID == nil { 1396 return 0 1397 } 1398 return *a.OrgID 1399 } 1400 1401 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 1402 func (a *AuditEntry) GetPermission() string { 1403 if a == nil || a.Permission == nil { 1404 return "" 1405 } 1406 return *a.Permission 1407 } 1408 1409 // GetPreviousVisibility returns the PreviousVisibility field if it's non-nil, zero value otherwise. 1410 func (a *AuditEntry) GetPreviousVisibility() string { 1411 if a == nil || a.PreviousVisibility == nil { 1412 return "" 1413 } 1414 return *a.PreviousVisibility 1415 } 1416 1417 // GetProgrammaticAccessType returns the ProgrammaticAccessType field if it's non-nil, zero value otherwise. 1418 func (a *AuditEntry) GetProgrammaticAccessType() string { 1419 if a == nil || a.ProgrammaticAccessType == nil { 1420 return "" 1421 } 1422 return *a.ProgrammaticAccessType 1423 } 1424 1425 // GetPullRequestID returns the PullRequestID field if it's non-nil, zero value otherwise. 1426 func (a *AuditEntry) GetPullRequestID() int64 { 1427 if a == nil || a.PullRequestID == nil { 1428 return 0 1429 } 1430 return *a.PullRequestID 1431 } 1432 1433 // GetPullRequestTitle returns the PullRequestTitle field if it's non-nil, zero value otherwise. 1434 func (a *AuditEntry) GetPullRequestTitle() string { 1435 if a == nil || a.PullRequestTitle == nil { 1436 return "" 1437 } 1438 return *a.PullRequestTitle 1439 } 1440 1441 // GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 1442 func (a *AuditEntry) GetPullRequestURL() string { 1443 if a == nil || a.PullRequestURL == nil { 1444 return "" 1445 } 1446 return *a.PullRequestURL 1447 } 1448 1449 // GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise. 1450 func (a *AuditEntry) GetReadOnly() string { 1451 if a == nil || a.ReadOnly == nil { 1452 return "" 1453 } 1454 return *a.ReadOnly 1455 } 1456 1457 // GetRepo returns the Repo field if it's non-nil, zero value otherwise. 1458 func (a *AuditEntry) GetRepo() string { 1459 if a == nil || a.Repo == nil { 1460 return "" 1461 } 1462 return *a.Repo 1463 } 1464 1465 // GetRepository returns the Repository field if it's non-nil, zero value otherwise. 1466 func (a *AuditEntry) GetRepository() string { 1467 if a == nil || a.Repository == nil { 1468 return "" 1469 } 1470 return *a.Repository 1471 } 1472 1473 // GetRepositoryPublic returns the RepositoryPublic field if it's non-nil, zero value otherwise. 1474 func (a *AuditEntry) GetRepositoryPublic() bool { 1475 if a == nil || a.RepositoryPublic == nil { 1476 return false 1477 } 1478 return *a.RepositoryPublic 1479 } 1480 1481 // GetRunAttempt returns the RunAttempt field if it's non-nil, zero value otherwise. 1482 func (a *AuditEntry) GetRunAttempt() int64 { 1483 if a == nil || a.RunAttempt == nil { 1484 return 0 1485 } 1486 return *a.RunAttempt 1487 } 1488 1489 // GetRunnerGroupID returns the RunnerGroupID field if it's non-nil, zero value otherwise. 1490 func (a *AuditEntry) GetRunnerGroupID() int64 { 1491 if a == nil || a.RunnerGroupID == nil { 1492 return 0 1493 } 1494 return *a.RunnerGroupID 1495 } 1496 1497 // GetRunnerGroupName returns the RunnerGroupName field if it's non-nil, zero value otherwise. 1498 func (a *AuditEntry) GetRunnerGroupName() string { 1499 if a == nil || a.RunnerGroupName == nil { 1500 return "" 1501 } 1502 return *a.RunnerGroupName 1503 } 1504 1505 // GetRunnerID returns the RunnerID field if it's non-nil, zero value otherwise. 1506 func (a *AuditEntry) GetRunnerID() int64 { 1507 if a == nil || a.RunnerID == nil { 1508 return 0 1509 } 1510 return *a.RunnerID 1511 } 1512 1513 // GetRunnerName returns the RunnerName field if it's non-nil, zero value otherwise. 1514 func (a *AuditEntry) GetRunnerName() string { 1515 if a == nil || a.RunnerName == nil { 1516 return "" 1517 } 1518 return *a.RunnerName 1519 } 1520 1521 // GetRunNumber returns the RunNumber field if it's non-nil, zero value otherwise. 1522 func (a *AuditEntry) GetRunNumber() int64 { 1523 if a == nil || a.RunNumber == nil { 1524 return 0 1525 } 1526 return *a.RunNumber 1527 } 1528 1529 // GetSourceVersion returns the SourceVersion field if it's non-nil, zero value otherwise. 1530 func (a *AuditEntry) GetSourceVersion() string { 1531 if a == nil || a.SourceVersion == nil { 1532 return "" 1533 } 1534 return *a.SourceVersion 1535 } 1536 1537 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 1538 func (a *AuditEntry) GetStartedAt() Timestamp { 1539 if a == nil || a.StartedAt == nil { 1540 return Timestamp{} 1541 } 1542 return *a.StartedAt 1543 } 1544 1545 // GetTargetLogin returns the TargetLogin field if it's non-nil, zero value otherwise. 1546 func (a *AuditEntry) GetTargetLogin() string { 1547 if a == nil || a.TargetLogin == nil { 1548 return "" 1549 } 1550 return *a.TargetLogin 1551 } 1552 1553 // GetTargetVersion returns the TargetVersion field if it's non-nil, zero value otherwise. 1554 func (a *AuditEntry) GetTargetVersion() string { 1555 if a == nil || a.TargetVersion == nil { 1556 return "" 1557 } 1558 return *a.TargetVersion 1559 } 1560 1561 // GetTeam returns the Team field if it's non-nil, zero value otherwise. 1562 func (a *AuditEntry) GetTeam() string { 1563 if a == nil || a.Team == nil { 1564 return "" 1565 } 1566 return *a.Team 1567 } 1568 1569 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 1570 func (a *AuditEntry) GetTimestamp() Timestamp { 1571 if a == nil || a.Timestamp == nil { 1572 return Timestamp{} 1573 } 1574 return *a.Timestamp 1575 } 1576 1577 // GetTokenID returns the TokenID field if it's non-nil, zero value otherwise. 1578 func (a *AuditEntry) GetTokenID() int64 { 1579 if a == nil || a.TokenID == nil { 1580 return 0 1581 } 1582 return *a.TokenID 1583 } 1584 1585 // GetTokenScopes returns the TokenScopes field if it's non-nil, zero value otherwise. 1586 func (a *AuditEntry) GetTokenScopes() string { 1587 if a == nil || a.TokenScopes == nil { 1588 return "" 1589 } 1590 return *a.TokenScopes 1591 } 1592 1593 // GetTopic returns the Topic field if it's non-nil, zero value otherwise. 1594 func (a *AuditEntry) GetTopic() string { 1595 if a == nil || a.Topic == nil { 1596 return "" 1597 } 1598 return *a.Topic 1599 } 1600 1601 // GetTransportProtocol returns the TransportProtocol field if it's non-nil, zero value otherwise. 1602 func (a *AuditEntry) GetTransportProtocol() int { 1603 if a == nil || a.TransportProtocol == nil { 1604 return 0 1605 } 1606 return *a.TransportProtocol 1607 } 1608 1609 // GetTransportProtocolName returns the TransportProtocolName field if it's non-nil, zero value otherwise. 1610 func (a *AuditEntry) GetTransportProtocolName() string { 1611 if a == nil || a.TransportProtocolName == nil { 1612 return "" 1613 } 1614 return *a.TransportProtocolName 1615 } 1616 1617 // GetTriggerID returns the TriggerID field if it's non-nil, zero value otherwise. 1618 func (a *AuditEntry) GetTriggerID() int64 { 1619 if a == nil || a.TriggerID == nil { 1620 return 0 1621 } 1622 return *a.TriggerID 1623 } 1624 1625 // GetUser returns the User field if it's non-nil, zero value otherwise. 1626 func (a *AuditEntry) GetUser() string { 1627 if a == nil || a.User == nil { 1628 return "" 1629 } 1630 return *a.User 1631 } 1632 1633 // GetUserAgent returns the UserAgent field if it's non-nil, zero value otherwise. 1634 func (a *AuditEntry) GetUserAgent() string { 1635 if a == nil || a.UserAgent == nil { 1636 return "" 1637 } 1638 return *a.UserAgent 1639 } 1640 1641 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 1642 func (a *AuditEntry) GetVisibility() string { 1643 if a == nil || a.Visibility == nil { 1644 return "" 1645 } 1646 return *a.Visibility 1647 } 1648 1649 // GetWorkflowID returns the WorkflowID field if it's non-nil, zero value otherwise. 1650 func (a *AuditEntry) GetWorkflowID() int64 { 1651 if a == nil || a.WorkflowID == nil { 1652 return 0 1653 } 1654 return *a.WorkflowID 1655 } 1656 1657 // GetWorkflowRunID returns the WorkflowRunID field if it's non-nil, zero value otherwise. 1658 func (a *AuditEntry) GetWorkflowRunID() int64 { 1659 if a == nil || a.WorkflowRunID == nil { 1660 return 0 1661 } 1662 return *a.WorkflowRunID 1663 } 1664 1665 // GetOldLogin returns the OldLogin field if it's non-nil, zero value otherwise. 1666 func (a *AuditEntryData) GetOldLogin() string { 1667 if a == nil || a.OldLogin == nil { 1668 return "" 1669 } 1670 return *a.OldLogin 1671 } 1672 1673 // GetOldName returns the OldName field if it's non-nil, zero value otherwise. 1674 func (a *AuditEntryData) GetOldName() string { 1675 if a == nil || a.OldName == nil { 1676 return "" 1677 } 1678 return *a.OldName 1679 } 1680 1681 // GetApp returns the App field. 1682 func (a *Authorization) GetApp() *AuthorizationApp { 1683 if a == nil { 1684 return nil 1685 } 1686 return a.App 1687 } 1688 1689 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 1690 func (a *Authorization) GetCreatedAt() Timestamp { 1691 if a == nil || a.CreatedAt == nil { 1692 return Timestamp{} 1693 } 1694 return *a.CreatedAt 1695 } 1696 1697 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 1698 func (a *Authorization) GetFingerprint() string { 1699 if a == nil || a.Fingerprint == nil { 1700 return "" 1701 } 1702 return *a.Fingerprint 1703 } 1704 1705 // GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. 1706 func (a *Authorization) GetHashedToken() string { 1707 if a == nil || a.HashedToken == nil { 1708 return "" 1709 } 1710 return *a.HashedToken 1711 } 1712 1713 // GetID returns the ID field if it's non-nil, zero value otherwise. 1714 func (a *Authorization) GetID() int64 { 1715 if a == nil || a.ID == nil { 1716 return 0 1717 } 1718 return *a.ID 1719 } 1720 1721 // GetNote returns the Note field if it's non-nil, zero value otherwise. 1722 func (a *Authorization) GetNote() string { 1723 if a == nil || a.Note == nil { 1724 return "" 1725 } 1726 return *a.Note 1727 } 1728 1729 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 1730 func (a *Authorization) GetNoteURL() string { 1731 if a == nil || a.NoteURL == nil { 1732 return "" 1733 } 1734 return *a.NoteURL 1735 } 1736 1737 // GetToken returns the Token field if it's non-nil, zero value otherwise. 1738 func (a *Authorization) GetToken() string { 1739 if a == nil || a.Token == nil { 1740 return "" 1741 } 1742 return *a.Token 1743 } 1744 1745 // GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. 1746 func (a *Authorization) GetTokenLastEight() string { 1747 if a == nil || a.TokenLastEight == nil { 1748 return "" 1749 } 1750 return *a.TokenLastEight 1751 } 1752 1753 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 1754 func (a *Authorization) GetUpdatedAt() Timestamp { 1755 if a == nil || a.UpdatedAt == nil { 1756 return Timestamp{} 1757 } 1758 return *a.UpdatedAt 1759 } 1760 1761 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1762 func (a *Authorization) GetURL() string { 1763 if a == nil || a.URL == nil { 1764 return "" 1765 } 1766 return *a.URL 1767 } 1768 1769 // GetUser returns the User field. 1770 func (a *Authorization) GetUser() *User { 1771 if a == nil { 1772 return nil 1773 } 1774 return a.User 1775 } 1776 1777 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 1778 func (a *AuthorizationApp) GetClientID() string { 1779 if a == nil || a.ClientID == nil { 1780 return "" 1781 } 1782 return *a.ClientID 1783 } 1784 1785 // GetName returns the Name field if it's non-nil, zero value otherwise. 1786 func (a *AuthorizationApp) GetName() string { 1787 if a == nil || a.Name == nil { 1788 return "" 1789 } 1790 return *a.Name 1791 } 1792 1793 // GetURL returns the URL field if it's non-nil, zero value otherwise. 1794 func (a *AuthorizationApp) GetURL() string { 1795 if a == nil || a.URL == nil { 1796 return "" 1797 } 1798 return *a.URL 1799 } 1800 1801 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 1802 func (a *AuthorizationRequest) GetClientID() string { 1803 if a == nil || a.ClientID == nil { 1804 return "" 1805 } 1806 return *a.ClientID 1807 } 1808 1809 // GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise. 1810 func (a *AuthorizationRequest) GetClientSecret() string { 1811 if a == nil || a.ClientSecret == nil { 1812 return "" 1813 } 1814 return *a.ClientSecret 1815 } 1816 1817 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 1818 func (a *AuthorizationRequest) GetFingerprint() string { 1819 if a == nil || a.Fingerprint == nil { 1820 return "" 1821 } 1822 return *a.Fingerprint 1823 } 1824 1825 // GetNote returns the Note field if it's non-nil, zero value otherwise. 1826 func (a *AuthorizationRequest) GetNote() string { 1827 if a == nil || a.Note == nil { 1828 return "" 1829 } 1830 return *a.Note 1831 } 1832 1833 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 1834 func (a *AuthorizationRequest) GetNoteURL() string { 1835 if a == nil || a.NoteURL == nil { 1836 return "" 1837 } 1838 return *a.NoteURL 1839 } 1840 1841 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 1842 func (a *AuthorizationUpdateRequest) GetFingerprint() string { 1843 if a == nil || a.Fingerprint == nil { 1844 return "" 1845 } 1846 return *a.Fingerprint 1847 } 1848 1849 // GetNote returns the Note field if it's non-nil, zero value otherwise. 1850 func (a *AuthorizationUpdateRequest) GetNote() string { 1851 if a == nil || a.Note == nil { 1852 return "" 1853 } 1854 return *a.Note 1855 } 1856 1857 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 1858 func (a *AuthorizationUpdateRequest) GetNoteURL() string { 1859 if a == nil || a.NoteURL == nil { 1860 return "" 1861 } 1862 return *a.NoteURL 1863 } 1864 1865 // GetFrom returns the From field if it's non-nil, zero value otherwise. 1866 func (a *AuthorizedActorsOnly) GetFrom() bool { 1867 if a == nil || a.From == nil { 1868 return false 1869 } 1870 return *a.From 1871 } 1872 1873 // GetFrom returns the From field if it's non-nil, zero value otherwise. 1874 func (a *AuthorizedDismissalActorsOnlyChanges) GetFrom() bool { 1875 if a == nil || a.From == nil { 1876 return false 1877 } 1878 return *a.From 1879 } 1880 1881 // GetID returns the ID field if it's non-nil, zero value otherwise. 1882 func (a *Autolink) GetID() int64 { 1883 if a == nil || a.ID == nil { 1884 return 0 1885 } 1886 return *a.ID 1887 } 1888 1889 // GetIsAlphanumeric returns the IsAlphanumeric field if it's non-nil, zero value otherwise. 1890 func (a *Autolink) GetIsAlphanumeric() bool { 1891 if a == nil || a.IsAlphanumeric == nil { 1892 return false 1893 } 1894 return *a.IsAlphanumeric 1895 } 1896 1897 // GetKeyPrefix returns the KeyPrefix field if it's non-nil, zero value otherwise. 1898 func (a *Autolink) GetKeyPrefix() string { 1899 if a == nil || a.KeyPrefix == nil { 1900 return "" 1901 } 1902 return *a.KeyPrefix 1903 } 1904 1905 // GetURLTemplate returns the URLTemplate field if it's non-nil, zero value otherwise. 1906 func (a *Autolink) GetURLTemplate() string { 1907 if a == nil || a.URLTemplate == nil { 1908 return "" 1909 } 1910 return *a.URLTemplate 1911 } 1912 1913 // GetIsAlphanumeric returns the IsAlphanumeric field if it's non-nil, zero value otherwise. 1914 func (a *AutolinkOptions) GetIsAlphanumeric() bool { 1915 if a == nil || a.IsAlphanumeric == nil { 1916 return false 1917 } 1918 return *a.IsAlphanumeric 1919 } 1920 1921 // GetKeyPrefix returns the KeyPrefix field if it's non-nil, zero value otherwise. 1922 func (a *AutolinkOptions) GetKeyPrefix() string { 1923 if a == nil || a.KeyPrefix == nil { 1924 return "" 1925 } 1926 return *a.KeyPrefix 1927 } 1928 1929 // GetURLTemplate returns the URLTemplate field if it's non-nil, zero value otherwise. 1930 func (a *AutolinkOptions) GetURLTemplate() string { 1931 if a == nil || a.URLTemplate == nil { 1932 return "" 1933 } 1934 return *a.URLTemplate 1935 } 1936 1937 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 1938 func (a *AutomatedSecurityFixes) GetEnabled() bool { 1939 if a == nil || a.Enabled == nil { 1940 return false 1941 } 1942 return *a.Enabled 1943 } 1944 1945 // GetPaused returns the Paused field if it's non-nil, zero value otherwise. 1946 func (a *AutomatedSecurityFixes) GetPaused() bool { 1947 if a == nil || a.Paused == nil { 1948 return false 1949 } 1950 return *a.Paused 1951 } 1952 1953 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 1954 func (a *AutoTriggerCheck) GetAppID() int64 { 1955 if a == nil || a.AppID == nil { 1956 return 0 1957 } 1958 return *a.AppID 1959 } 1960 1961 // GetSetting returns the Setting field if it's non-nil, zero value otherwise. 1962 func (a *AutoTriggerCheck) GetSetting() bool { 1963 if a == nil || a.Setting == nil { 1964 return false 1965 } 1966 return *a.Setting 1967 } 1968 1969 // GetContent returns the Content field if it's non-nil, zero value otherwise. 1970 func (b *Blob) GetContent() string { 1971 if b == nil || b.Content == nil { 1972 return "" 1973 } 1974 return *b.Content 1975 } 1976 1977 // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 1978 func (b *Blob) GetEncoding() string { 1979 if b == nil || b.Encoding == nil { 1980 return "" 1981 } 1982 return *b.Encoding 1983 } 1984 1985 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 1986 func (b *Blob) GetNodeID() string { 1987 if b == nil || b.NodeID == nil { 1988 return "" 1989 } 1990 return *b.NodeID 1991 } 1992 1993 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 1994 func (b *Blob) GetSHA() string { 1995 if b == nil || b.SHA == nil { 1996 return "" 1997 } 1998 return *b.SHA 1999 } 2000 2001 // GetSize returns the Size field if it's non-nil, zero value otherwise. 2002 func (b *Blob) GetSize() int { 2003 if b == nil || b.Size == nil { 2004 return 0 2005 } 2006 return *b.Size 2007 } 2008 2009 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2010 func (b *Blob) GetURL() string { 2011 if b == nil || b.URL == nil { 2012 return "" 2013 } 2014 return *b.URL 2015 } 2016 2017 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 2018 func (b *BlockCreations) GetEnabled() bool { 2019 if b == nil || b.Enabled == nil { 2020 return false 2021 } 2022 return *b.Enabled 2023 } 2024 2025 // GetCommit returns the Commit field. 2026 func (b *Branch) GetCommit() *RepositoryCommit { 2027 if b == nil { 2028 return nil 2029 } 2030 return b.Commit 2031 } 2032 2033 // GetName returns the Name field if it's non-nil, zero value otherwise. 2034 func (b *Branch) GetName() string { 2035 if b == nil || b.Name == nil { 2036 return "" 2037 } 2038 return *b.Name 2039 } 2040 2041 // GetProtected returns the Protected field if it's non-nil, zero value otherwise. 2042 func (b *Branch) GetProtected() bool { 2043 if b == nil || b.Protected == nil { 2044 return false 2045 } 2046 return *b.Protected 2047 } 2048 2049 // GetCommit returns the Commit field. 2050 func (b *BranchCommit) GetCommit() *Commit { 2051 if b == nil { 2052 return nil 2053 } 2054 return b.Commit 2055 } 2056 2057 // GetName returns the Name field if it's non-nil, zero value otherwise. 2058 func (b *BranchCommit) GetName() string { 2059 if b == nil || b.Name == nil { 2060 return "" 2061 } 2062 return *b.Name 2063 } 2064 2065 // GetProtected returns the Protected field if it's non-nil, zero value otherwise. 2066 func (b *BranchCommit) GetProtected() bool { 2067 if b == nil || b.Protected == nil { 2068 return false 2069 } 2070 return *b.Protected 2071 } 2072 2073 // GetProtected returns the Protected field if it's non-nil, zero value otherwise. 2074 func (b *BranchListOptions) GetProtected() bool { 2075 if b == nil || b.Protected == nil { 2076 return false 2077 } 2078 return *b.Protected 2079 } 2080 2081 // GetCustomBranchPolicies returns the CustomBranchPolicies field if it's non-nil, zero value otherwise. 2082 func (b *BranchPolicy) GetCustomBranchPolicies() bool { 2083 if b == nil || b.CustomBranchPolicies == nil { 2084 return false 2085 } 2086 return *b.CustomBranchPolicies 2087 } 2088 2089 // GetProtectedBranches returns the ProtectedBranches field if it's non-nil, zero value otherwise. 2090 func (b *BranchPolicy) GetProtectedBranches() bool { 2091 if b == nil || b.ProtectedBranches == nil { 2092 return false 2093 } 2094 return *b.ProtectedBranches 2095 } 2096 2097 // GetAdminEnforced returns the AdminEnforced field if it's non-nil, zero value otherwise. 2098 func (b *BranchProtectionRule) GetAdminEnforced() bool { 2099 if b == nil || b.AdminEnforced == nil { 2100 return false 2101 } 2102 return *b.AdminEnforced 2103 } 2104 2105 // GetAllowDeletionsEnforcementLevel returns the AllowDeletionsEnforcementLevel field if it's non-nil, zero value otherwise. 2106 func (b *BranchProtectionRule) GetAllowDeletionsEnforcementLevel() string { 2107 if b == nil || b.AllowDeletionsEnforcementLevel == nil { 2108 return "" 2109 } 2110 return *b.AllowDeletionsEnforcementLevel 2111 } 2112 2113 // GetAllowForcePushesEnforcementLevel returns the AllowForcePushesEnforcementLevel field if it's non-nil, zero value otherwise. 2114 func (b *BranchProtectionRule) GetAllowForcePushesEnforcementLevel() string { 2115 if b == nil || b.AllowForcePushesEnforcementLevel == nil { 2116 return "" 2117 } 2118 return *b.AllowForcePushesEnforcementLevel 2119 } 2120 2121 // GetAuthorizedActorsOnly returns the AuthorizedActorsOnly field if it's non-nil, zero value otherwise. 2122 func (b *BranchProtectionRule) GetAuthorizedActorsOnly() bool { 2123 if b == nil || b.AuthorizedActorsOnly == nil { 2124 return false 2125 } 2126 return *b.AuthorizedActorsOnly 2127 } 2128 2129 // GetAuthorizedDismissalActorsOnly returns the AuthorizedDismissalActorsOnly field if it's non-nil, zero value otherwise. 2130 func (b *BranchProtectionRule) GetAuthorizedDismissalActorsOnly() bool { 2131 if b == nil || b.AuthorizedDismissalActorsOnly == nil { 2132 return false 2133 } 2134 return *b.AuthorizedDismissalActorsOnly 2135 } 2136 2137 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2138 func (b *BranchProtectionRule) GetCreatedAt() Timestamp { 2139 if b == nil || b.CreatedAt == nil { 2140 return Timestamp{} 2141 } 2142 return *b.CreatedAt 2143 } 2144 2145 // GetDismissStaleReviewsOnPush returns the DismissStaleReviewsOnPush field if it's non-nil, zero value otherwise. 2146 func (b *BranchProtectionRule) GetDismissStaleReviewsOnPush() bool { 2147 if b == nil || b.DismissStaleReviewsOnPush == nil { 2148 return false 2149 } 2150 return *b.DismissStaleReviewsOnPush 2151 } 2152 2153 // GetID returns the ID field if it's non-nil, zero value otherwise. 2154 func (b *BranchProtectionRule) GetID() int64 { 2155 if b == nil || b.ID == nil { 2156 return 0 2157 } 2158 return *b.ID 2159 } 2160 2161 // GetIgnoreApprovalsFromContributors returns the IgnoreApprovalsFromContributors field if it's non-nil, zero value otherwise. 2162 func (b *BranchProtectionRule) GetIgnoreApprovalsFromContributors() bool { 2163 if b == nil || b.IgnoreApprovalsFromContributors == nil { 2164 return false 2165 } 2166 return *b.IgnoreApprovalsFromContributors 2167 } 2168 2169 // GetLinearHistoryRequirementEnforcementLevel returns the LinearHistoryRequirementEnforcementLevel field if it's non-nil, zero value otherwise. 2170 func (b *BranchProtectionRule) GetLinearHistoryRequirementEnforcementLevel() string { 2171 if b == nil || b.LinearHistoryRequirementEnforcementLevel == nil { 2172 return "" 2173 } 2174 return *b.LinearHistoryRequirementEnforcementLevel 2175 } 2176 2177 // GetMergeQueueEnforcementLevel returns the MergeQueueEnforcementLevel field if it's non-nil, zero value otherwise. 2178 func (b *BranchProtectionRule) GetMergeQueueEnforcementLevel() string { 2179 if b == nil || b.MergeQueueEnforcementLevel == nil { 2180 return "" 2181 } 2182 return *b.MergeQueueEnforcementLevel 2183 } 2184 2185 // GetName returns the Name field if it's non-nil, zero value otherwise. 2186 func (b *BranchProtectionRule) GetName() string { 2187 if b == nil || b.Name == nil { 2188 return "" 2189 } 2190 return *b.Name 2191 } 2192 2193 // GetPullRequestReviewsEnforcementLevel returns the PullRequestReviewsEnforcementLevel field if it's non-nil, zero value otherwise. 2194 func (b *BranchProtectionRule) GetPullRequestReviewsEnforcementLevel() string { 2195 if b == nil || b.PullRequestReviewsEnforcementLevel == nil { 2196 return "" 2197 } 2198 return *b.PullRequestReviewsEnforcementLevel 2199 } 2200 2201 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 2202 func (b *BranchProtectionRule) GetRepositoryID() int64 { 2203 if b == nil || b.RepositoryID == nil { 2204 return 0 2205 } 2206 return *b.RepositoryID 2207 } 2208 2209 // GetRequireCodeOwnerReview returns the RequireCodeOwnerReview field if it's non-nil, zero value otherwise. 2210 func (b *BranchProtectionRule) GetRequireCodeOwnerReview() bool { 2211 if b == nil || b.RequireCodeOwnerReview == nil { 2212 return false 2213 } 2214 return *b.RequireCodeOwnerReview 2215 } 2216 2217 // GetRequiredApprovingReviewCount returns the RequiredApprovingReviewCount field if it's non-nil, zero value otherwise. 2218 func (b *BranchProtectionRule) GetRequiredApprovingReviewCount() int { 2219 if b == nil || b.RequiredApprovingReviewCount == nil { 2220 return 0 2221 } 2222 return *b.RequiredApprovingReviewCount 2223 } 2224 2225 // GetRequiredConversationResolutionLevel returns the RequiredConversationResolutionLevel field if it's non-nil, zero value otherwise. 2226 func (b *BranchProtectionRule) GetRequiredConversationResolutionLevel() string { 2227 if b == nil || b.RequiredConversationResolutionLevel == nil { 2228 return "" 2229 } 2230 return *b.RequiredConversationResolutionLevel 2231 } 2232 2233 // GetRequiredDeploymentsEnforcementLevel returns the RequiredDeploymentsEnforcementLevel field if it's non-nil, zero value otherwise. 2234 func (b *BranchProtectionRule) GetRequiredDeploymentsEnforcementLevel() string { 2235 if b == nil || b.RequiredDeploymentsEnforcementLevel == nil { 2236 return "" 2237 } 2238 return *b.RequiredDeploymentsEnforcementLevel 2239 } 2240 2241 // GetRequiredStatusChecksEnforcementLevel returns the RequiredStatusChecksEnforcementLevel field if it's non-nil, zero value otherwise. 2242 func (b *BranchProtectionRule) GetRequiredStatusChecksEnforcementLevel() string { 2243 if b == nil || b.RequiredStatusChecksEnforcementLevel == nil { 2244 return "" 2245 } 2246 return *b.RequiredStatusChecksEnforcementLevel 2247 } 2248 2249 // GetSignatureRequirementEnforcementLevel returns the SignatureRequirementEnforcementLevel field if it's non-nil, zero value otherwise. 2250 func (b *BranchProtectionRule) GetSignatureRequirementEnforcementLevel() string { 2251 if b == nil || b.SignatureRequirementEnforcementLevel == nil { 2252 return "" 2253 } 2254 return *b.SignatureRequirementEnforcementLevel 2255 } 2256 2257 // GetStrictRequiredStatusChecksPolicy returns the StrictRequiredStatusChecksPolicy field if it's non-nil, zero value otherwise. 2258 func (b *BranchProtectionRule) GetStrictRequiredStatusChecksPolicy() bool { 2259 if b == nil || b.StrictRequiredStatusChecksPolicy == nil { 2260 return false 2261 } 2262 return *b.StrictRequiredStatusChecksPolicy 2263 } 2264 2265 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2266 func (b *BranchProtectionRule) GetUpdatedAt() Timestamp { 2267 if b == nil || b.UpdatedAt == nil { 2268 return Timestamp{} 2269 } 2270 return *b.UpdatedAt 2271 } 2272 2273 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2274 func (b *BranchProtectionRuleEvent) GetAction() string { 2275 if b == nil || b.Action == nil { 2276 return "" 2277 } 2278 return *b.Action 2279 } 2280 2281 // GetChanges returns the Changes field. 2282 func (b *BranchProtectionRuleEvent) GetChanges() *ProtectionChanges { 2283 if b == nil { 2284 return nil 2285 } 2286 return b.Changes 2287 } 2288 2289 // GetInstallation returns the Installation field. 2290 func (b *BranchProtectionRuleEvent) GetInstallation() *Installation { 2291 if b == nil { 2292 return nil 2293 } 2294 return b.Installation 2295 } 2296 2297 // GetOrg returns the Org field. 2298 func (b *BranchProtectionRuleEvent) GetOrg() *Organization { 2299 if b == nil { 2300 return nil 2301 } 2302 return b.Org 2303 } 2304 2305 // GetRepo returns the Repo field. 2306 func (b *BranchProtectionRuleEvent) GetRepo() *Repository { 2307 if b == nil { 2308 return nil 2309 } 2310 return b.Repo 2311 } 2312 2313 // GetRule returns the Rule field. 2314 func (b *BranchProtectionRuleEvent) GetRule() *BranchProtectionRule { 2315 if b == nil { 2316 return nil 2317 } 2318 return b.Rule 2319 } 2320 2321 // GetSender returns the Sender field. 2322 func (b *BranchProtectionRuleEvent) GetSender() *User { 2323 if b == nil { 2324 return nil 2325 } 2326 return b.Sender 2327 } 2328 2329 // GetActorID returns the ActorID field if it's non-nil, zero value otherwise. 2330 func (b *BypassActor) GetActorID() int64 { 2331 if b == nil || b.ActorID == nil { 2332 return 0 2333 } 2334 return *b.ActorID 2335 } 2336 2337 // GetActorType returns the ActorType field if it's non-nil, zero value otherwise. 2338 func (b *BypassActor) GetActorType() string { 2339 if b == nil || b.ActorType == nil { 2340 return "" 2341 } 2342 return *b.ActorType 2343 } 2344 2345 // GetBypassMode returns the BypassMode field if it's non-nil, zero value otherwise. 2346 func (b *BypassActor) GetBypassMode() string { 2347 if b == nil || b.BypassMode == nil { 2348 return "" 2349 } 2350 return *b.BypassMode 2351 } 2352 2353 // GetApp returns the App field. 2354 func (c *CheckRun) GetApp() *App { 2355 if c == nil { 2356 return nil 2357 } 2358 return c.App 2359 } 2360 2361 // GetCheckSuite returns the CheckSuite field. 2362 func (c *CheckRun) GetCheckSuite() *CheckSuite { 2363 if c == nil { 2364 return nil 2365 } 2366 return c.CheckSuite 2367 } 2368 2369 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 2370 func (c *CheckRun) GetCompletedAt() Timestamp { 2371 if c == nil || c.CompletedAt == nil { 2372 return Timestamp{} 2373 } 2374 return *c.CompletedAt 2375 } 2376 2377 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 2378 func (c *CheckRun) GetConclusion() string { 2379 if c == nil || c.Conclusion == nil { 2380 return "" 2381 } 2382 return *c.Conclusion 2383 } 2384 2385 // GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 2386 func (c *CheckRun) GetDetailsURL() string { 2387 if c == nil || c.DetailsURL == nil { 2388 return "" 2389 } 2390 return *c.DetailsURL 2391 } 2392 2393 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 2394 func (c *CheckRun) GetExternalID() string { 2395 if c == nil || c.ExternalID == nil { 2396 return "" 2397 } 2398 return *c.ExternalID 2399 } 2400 2401 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 2402 func (c *CheckRun) GetHeadSHA() string { 2403 if c == nil || c.HeadSHA == nil { 2404 return "" 2405 } 2406 return *c.HeadSHA 2407 } 2408 2409 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2410 func (c *CheckRun) GetHTMLURL() string { 2411 if c == nil || c.HTMLURL == nil { 2412 return "" 2413 } 2414 return *c.HTMLURL 2415 } 2416 2417 // GetID returns the ID field if it's non-nil, zero value otherwise. 2418 func (c *CheckRun) GetID() int64 { 2419 if c == nil || c.ID == nil { 2420 return 0 2421 } 2422 return *c.ID 2423 } 2424 2425 // GetName returns the Name field if it's non-nil, zero value otherwise. 2426 func (c *CheckRun) GetName() string { 2427 if c == nil || c.Name == nil { 2428 return "" 2429 } 2430 return *c.Name 2431 } 2432 2433 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2434 func (c *CheckRun) GetNodeID() string { 2435 if c == nil || c.NodeID == nil { 2436 return "" 2437 } 2438 return *c.NodeID 2439 } 2440 2441 // GetOutput returns the Output field. 2442 func (c *CheckRun) GetOutput() *CheckRunOutput { 2443 if c == nil { 2444 return nil 2445 } 2446 return c.Output 2447 } 2448 2449 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 2450 func (c *CheckRun) GetStartedAt() Timestamp { 2451 if c == nil || c.StartedAt == nil { 2452 return Timestamp{} 2453 } 2454 return *c.StartedAt 2455 } 2456 2457 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 2458 func (c *CheckRun) GetStatus() string { 2459 if c == nil || c.Status == nil { 2460 return "" 2461 } 2462 return *c.Status 2463 } 2464 2465 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2466 func (c *CheckRun) GetURL() string { 2467 if c == nil || c.URL == nil { 2468 return "" 2469 } 2470 return *c.URL 2471 } 2472 2473 // GetAnnotationLevel returns the AnnotationLevel field if it's non-nil, zero value otherwise. 2474 func (c *CheckRunAnnotation) GetAnnotationLevel() string { 2475 if c == nil || c.AnnotationLevel == nil { 2476 return "" 2477 } 2478 return *c.AnnotationLevel 2479 } 2480 2481 // GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. 2482 func (c *CheckRunAnnotation) GetEndColumn() int { 2483 if c == nil || c.EndColumn == nil { 2484 return 0 2485 } 2486 return *c.EndColumn 2487 } 2488 2489 // GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. 2490 func (c *CheckRunAnnotation) GetEndLine() int { 2491 if c == nil || c.EndLine == nil { 2492 return 0 2493 } 2494 return *c.EndLine 2495 } 2496 2497 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 2498 func (c *CheckRunAnnotation) GetMessage() string { 2499 if c == nil || c.Message == nil { 2500 return "" 2501 } 2502 return *c.Message 2503 } 2504 2505 // GetPath returns the Path field if it's non-nil, zero value otherwise. 2506 func (c *CheckRunAnnotation) GetPath() string { 2507 if c == nil || c.Path == nil { 2508 return "" 2509 } 2510 return *c.Path 2511 } 2512 2513 // GetRawDetails returns the RawDetails field if it's non-nil, zero value otherwise. 2514 func (c *CheckRunAnnotation) GetRawDetails() string { 2515 if c == nil || c.RawDetails == nil { 2516 return "" 2517 } 2518 return *c.RawDetails 2519 } 2520 2521 // GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. 2522 func (c *CheckRunAnnotation) GetStartColumn() int { 2523 if c == nil || c.StartColumn == nil { 2524 return 0 2525 } 2526 return *c.StartColumn 2527 } 2528 2529 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 2530 func (c *CheckRunAnnotation) GetStartLine() int { 2531 if c == nil || c.StartLine == nil { 2532 return 0 2533 } 2534 return *c.StartLine 2535 } 2536 2537 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 2538 func (c *CheckRunAnnotation) GetTitle() string { 2539 if c == nil || c.Title == nil { 2540 return "" 2541 } 2542 return *c.Title 2543 } 2544 2545 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2546 func (c *CheckRunEvent) GetAction() string { 2547 if c == nil || c.Action == nil { 2548 return "" 2549 } 2550 return *c.Action 2551 } 2552 2553 // GetCheckRun returns the CheckRun field. 2554 func (c *CheckRunEvent) GetCheckRun() *CheckRun { 2555 if c == nil { 2556 return nil 2557 } 2558 return c.CheckRun 2559 } 2560 2561 // GetInstallation returns the Installation field. 2562 func (c *CheckRunEvent) GetInstallation() *Installation { 2563 if c == nil { 2564 return nil 2565 } 2566 return c.Installation 2567 } 2568 2569 // GetOrg returns the Org field. 2570 func (c *CheckRunEvent) GetOrg() *Organization { 2571 if c == nil { 2572 return nil 2573 } 2574 return c.Org 2575 } 2576 2577 // GetRepo returns the Repo field. 2578 func (c *CheckRunEvent) GetRepo() *Repository { 2579 if c == nil { 2580 return nil 2581 } 2582 return c.Repo 2583 } 2584 2585 // GetRequestedAction returns the RequestedAction field. 2586 func (c *CheckRunEvent) GetRequestedAction() *RequestedAction { 2587 if c == nil { 2588 return nil 2589 } 2590 return c.RequestedAction 2591 } 2592 2593 // GetSender returns the Sender field. 2594 func (c *CheckRunEvent) GetSender() *User { 2595 if c == nil { 2596 return nil 2597 } 2598 return c.Sender 2599 } 2600 2601 // GetAlt returns the Alt field if it's non-nil, zero value otherwise. 2602 func (c *CheckRunImage) GetAlt() string { 2603 if c == nil || c.Alt == nil { 2604 return "" 2605 } 2606 return *c.Alt 2607 } 2608 2609 // GetCaption returns the Caption field if it's non-nil, zero value otherwise. 2610 func (c *CheckRunImage) GetCaption() string { 2611 if c == nil || c.Caption == nil { 2612 return "" 2613 } 2614 return *c.Caption 2615 } 2616 2617 // GetImageURL returns the ImageURL field if it's non-nil, zero value otherwise. 2618 func (c *CheckRunImage) GetImageURL() string { 2619 if c == nil || c.ImageURL == nil { 2620 return "" 2621 } 2622 return *c.ImageURL 2623 } 2624 2625 // GetAnnotationsCount returns the AnnotationsCount field if it's non-nil, zero value otherwise. 2626 func (c *CheckRunOutput) GetAnnotationsCount() int { 2627 if c == nil || c.AnnotationsCount == nil { 2628 return 0 2629 } 2630 return *c.AnnotationsCount 2631 } 2632 2633 // GetAnnotationsURL returns the AnnotationsURL field if it's non-nil, zero value otherwise. 2634 func (c *CheckRunOutput) GetAnnotationsURL() string { 2635 if c == nil || c.AnnotationsURL == nil { 2636 return "" 2637 } 2638 return *c.AnnotationsURL 2639 } 2640 2641 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 2642 func (c *CheckRunOutput) GetSummary() string { 2643 if c == nil || c.Summary == nil { 2644 return "" 2645 } 2646 return *c.Summary 2647 } 2648 2649 // GetText returns the Text field if it's non-nil, zero value otherwise. 2650 func (c *CheckRunOutput) GetText() string { 2651 if c == nil || c.Text == nil { 2652 return "" 2653 } 2654 return *c.Text 2655 } 2656 2657 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 2658 func (c *CheckRunOutput) GetTitle() string { 2659 if c == nil || c.Title == nil { 2660 return "" 2661 } 2662 return *c.Title 2663 } 2664 2665 // GetAfterSHA returns the AfterSHA field if it's non-nil, zero value otherwise. 2666 func (c *CheckSuite) GetAfterSHA() string { 2667 if c == nil || c.AfterSHA == nil { 2668 return "" 2669 } 2670 return *c.AfterSHA 2671 } 2672 2673 // GetApp returns the App field. 2674 func (c *CheckSuite) GetApp() *App { 2675 if c == nil { 2676 return nil 2677 } 2678 return c.App 2679 } 2680 2681 // GetBeforeSHA returns the BeforeSHA field if it's non-nil, zero value otherwise. 2682 func (c *CheckSuite) GetBeforeSHA() string { 2683 if c == nil || c.BeforeSHA == nil { 2684 return "" 2685 } 2686 return *c.BeforeSHA 2687 } 2688 2689 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 2690 func (c *CheckSuite) GetConclusion() string { 2691 if c == nil || c.Conclusion == nil { 2692 return "" 2693 } 2694 return *c.Conclusion 2695 } 2696 2697 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2698 func (c *CheckSuite) GetCreatedAt() Timestamp { 2699 if c == nil || c.CreatedAt == nil { 2700 return Timestamp{} 2701 } 2702 return *c.CreatedAt 2703 } 2704 2705 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 2706 func (c *CheckSuite) GetHeadBranch() string { 2707 if c == nil || c.HeadBranch == nil { 2708 return "" 2709 } 2710 return *c.HeadBranch 2711 } 2712 2713 // GetHeadCommit returns the HeadCommit field. 2714 func (c *CheckSuite) GetHeadCommit() *Commit { 2715 if c == nil { 2716 return nil 2717 } 2718 return c.HeadCommit 2719 } 2720 2721 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 2722 func (c *CheckSuite) GetHeadSHA() string { 2723 if c == nil || c.HeadSHA == nil { 2724 return "" 2725 } 2726 return *c.HeadSHA 2727 } 2728 2729 // GetID returns the ID field if it's non-nil, zero value otherwise. 2730 func (c *CheckSuite) GetID() int64 { 2731 if c == nil || c.ID == nil { 2732 return 0 2733 } 2734 return *c.ID 2735 } 2736 2737 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 2738 func (c *CheckSuite) GetNodeID() string { 2739 if c == nil || c.NodeID == nil { 2740 return "" 2741 } 2742 return *c.NodeID 2743 } 2744 2745 // GetRepository returns the Repository field. 2746 func (c *CheckSuite) GetRepository() *Repository { 2747 if c == nil { 2748 return nil 2749 } 2750 return c.Repository 2751 } 2752 2753 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 2754 func (c *CheckSuite) GetStatus() string { 2755 if c == nil || c.Status == nil { 2756 return "" 2757 } 2758 return *c.Status 2759 } 2760 2761 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2762 func (c *CheckSuite) GetUpdatedAt() Timestamp { 2763 if c == nil || c.UpdatedAt == nil { 2764 return Timestamp{} 2765 } 2766 return *c.UpdatedAt 2767 } 2768 2769 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2770 func (c *CheckSuite) GetURL() string { 2771 if c == nil || c.URL == nil { 2772 return "" 2773 } 2774 return *c.URL 2775 } 2776 2777 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2778 func (c *CheckSuiteEvent) GetAction() string { 2779 if c == nil || c.Action == nil { 2780 return "" 2781 } 2782 return *c.Action 2783 } 2784 2785 // GetCheckSuite returns the CheckSuite field. 2786 func (c *CheckSuiteEvent) GetCheckSuite() *CheckSuite { 2787 if c == nil { 2788 return nil 2789 } 2790 return c.CheckSuite 2791 } 2792 2793 // GetInstallation returns the Installation field. 2794 func (c *CheckSuiteEvent) GetInstallation() *Installation { 2795 if c == nil { 2796 return nil 2797 } 2798 return c.Installation 2799 } 2800 2801 // GetOrg returns the Org field. 2802 func (c *CheckSuiteEvent) GetOrg() *Organization { 2803 if c == nil { 2804 return nil 2805 } 2806 return c.Org 2807 } 2808 2809 // GetRepo returns the Repo field. 2810 func (c *CheckSuiteEvent) GetRepo() *Repository { 2811 if c == nil { 2812 return nil 2813 } 2814 return c.Repo 2815 } 2816 2817 // GetSender returns the Sender field. 2818 func (c *CheckSuiteEvent) GetSender() *User { 2819 if c == nil { 2820 return nil 2821 } 2822 return c.Sender 2823 } 2824 2825 // GetPreferences returns the Preferences field. 2826 func (c *CheckSuitePreferenceResults) GetPreferences() *PreferenceList { 2827 if c == nil { 2828 return nil 2829 } 2830 return c.Preferences 2831 } 2832 2833 // GetRepository returns the Repository field. 2834 func (c *CheckSuitePreferenceResults) GetRepository() *Repository { 2835 if c == nil { 2836 return nil 2837 } 2838 return c.Repository 2839 } 2840 2841 // GetBody returns the Body field if it's non-nil, zero value otherwise. 2842 func (c *CodeOfConduct) GetBody() string { 2843 if c == nil || c.Body == nil { 2844 return "" 2845 } 2846 return *c.Body 2847 } 2848 2849 // GetKey returns the Key field if it's non-nil, zero value otherwise. 2850 func (c *CodeOfConduct) GetKey() string { 2851 if c == nil || c.Key == nil { 2852 return "" 2853 } 2854 return *c.Key 2855 } 2856 2857 // GetName returns the Name field if it's non-nil, zero value otherwise. 2858 func (c *CodeOfConduct) GetName() string { 2859 if c == nil || c.Name == nil { 2860 return "" 2861 } 2862 return *c.Name 2863 } 2864 2865 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2866 func (c *CodeOfConduct) GetURL() string { 2867 if c == nil || c.URL == nil { 2868 return "" 2869 } 2870 return *c.URL 2871 } 2872 2873 // GetSuggestion returns the Suggestion field if it's non-nil, zero value otherwise. 2874 func (c *CodeownersError) GetSuggestion() string { 2875 if c == nil || c.Suggestion == nil { 2876 return "" 2877 } 2878 return *c.Suggestion 2879 } 2880 2881 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 2882 func (c *CodeQLDatabase) GetContentType() string { 2883 if c == nil || c.ContentType == nil { 2884 return "" 2885 } 2886 return *c.ContentType 2887 } 2888 2889 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 2890 func (c *CodeQLDatabase) GetCreatedAt() Timestamp { 2891 if c == nil || c.CreatedAt == nil { 2892 return Timestamp{} 2893 } 2894 return *c.CreatedAt 2895 } 2896 2897 // GetID returns the ID field if it's non-nil, zero value otherwise. 2898 func (c *CodeQLDatabase) GetID() int64 { 2899 if c == nil || c.ID == nil { 2900 return 0 2901 } 2902 return *c.ID 2903 } 2904 2905 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 2906 func (c *CodeQLDatabase) GetLanguage() string { 2907 if c == nil || c.Language == nil { 2908 return "" 2909 } 2910 return *c.Language 2911 } 2912 2913 // GetName returns the Name field if it's non-nil, zero value otherwise. 2914 func (c *CodeQLDatabase) GetName() string { 2915 if c == nil || c.Name == nil { 2916 return "" 2917 } 2918 return *c.Name 2919 } 2920 2921 // GetSize returns the Size field if it's non-nil, zero value otherwise. 2922 func (c *CodeQLDatabase) GetSize() int64 { 2923 if c == nil || c.Size == nil { 2924 return 0 2925 } 2926 return *c.Size 2927 } 2928 2929 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 2930 func (c *CodeQLDatabase) GetUpdatedAt() Timestamp { 2931 if c == nil || c.UpdatedAt == nil { 2932 return Timestamp{} 2933 } 2934 return *c.UpdatedAt 2935 } 2936 2937 // GetUploader returns the Uploader field. 2938 func (c *CodeQLDatabase) GetUploader() *User { 2939 if c == nil { 2940 return nil 2941 } 2942 return c.Uploader 2943 } 2944 2945 // GetURL returns the URL field if it's non-nil, zero value otherwise. 2946 func (c *CodeQLDatabase) GetURL() string { 2947 if c == nil || c.URL == nil { 2948 return "" 2949 } 2950 return *c.URL 2951 } 2952 2953 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 2954 func (c *CodeResult) GetHTMLURL() string { 2955 if c == nil || c.HTMLURL == nil { 2956 return "" 2957 } 2958 return *c.HTMLURL 2959 } 2960 2961 // GetName returns the Name field if it's non-nil, zero value otherwise. 2962 func (c *CodeResult) GetName() string { 2963 if c == nil || c.Name == nil { 2964 return "" 2965 } 2966 return *c.Name 2967 } 2968 2969 // GetPath returns the Path field if it's non-nil, zero value otherwise. 2970 func (c *CodeResult) GetPath() string { 2971 if c == nil || c.Path == nil { 2972 return "" 2973 } 2974 return *c.Path 2975 } 2976 2977 // GetRepository returns the Repository field. 2978 func (c *CodeResult) GetRepository() *Repository { 2979 if c == nil { 2980 return nil 2981 } 2982 return c.Repository 2983 } 2984 2985 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 2986 func (c *CodeResult) GetSHA() string { 2987 if c == nil || c.SHA == nil { 2988 return "" 2989 } 2990 return *c.SHA 2991 } 2992 2993 // GetAction returns the Action field if it's non-nil, zero value otherwise. 2994 func (c *CodeScanningAlertEvent) GetAction() string { 2995 if c == nil || c.Action == nil { 2996 return "" 2997 } 2998 return *c.Action 2999 } 3000 3001 // GetAlert returns the Alert field. 3002 func (c *CodeScanningAlertEvent) GetAlert() *Alert { 3003 if c == nil { 3004 return nil 3005 } 3006 return c.Alert 3007 } 3008 3009 // GetCommitOID returns the CommitOID field if it's non-nil, zero value otherwise. 3010 func (c *CodeScanningAlertEvent) GetCommitOID() string { 3011 if c == nil || c.CommitOID == nil { 3012 return "" 3013 } 3014 return *c.CommitOID 3015 } 3016 3017 // GetInstallation returns the Installation field. 3018 func (c *CodeScanningAlertEvent) GetInstallation() *Installation { 3019 if c == nil { 3020 return nil 3021 } 3022 return c.Installation 3023 } 3024 3025 // GetOrg returns the Org field. 3026 func (c *CodeScanningAlertEvent) GetOrg() *Organization { 3027 if c == nil { 3028 return nil 3029 } 3030 return c.Org 3031 } 3032 3033 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 3034 func (c *CodeScanningAlertEvent) GetRef() string { 3035 if c == nil || c.Ref == nil { 3036 return "" 3037 } 3038 return *c.Ref 3039 } 3040 3041 // GetRepo returns the Repo field. 3042 func (c *CodeScanningAlertEvent) GetRepo() *Repository { 3043 if c == nil { 3044 return nil 3045 } 3046 return c.Repo 3047 } 3048 3049 // GetSender returns the Sender field. 3050 func (c *CodeScanningAlertEvent) GetSender() *User { 3051 if c == nil { 3052 return nil 3053 } 3054 return c.Sender 3055 } 3056 3057 // GetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise. 3058 func (c *CodeScanningAlertState) GetDismissedComment() string { 3059 if c == nil || c.DismissedComment == nil { 3060 return "" 3061 } 3062 return *c.DismissedComment 3063 } 3064 3065 // GetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise. 3066 func (c *CodeScanningAlertState) GetDismissedReason() string { 3067 if c == nil || c.DismissedReason == nil { 3068 return "" 3069 } 3070 return *c.DismissedReason 3071 } 3072 3073 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 3074 func (c *CodeSearchResult) GetIncompleteResults() bool { 3075 if c == nil || c.IncompleteResults == nil { 3076 return false 3077 } 3078 return *c.IncompleteResults 3079 } 3080 3081 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 3082 func (c *CodeSearchResult) GetTotal() int { 3083 if c == nil || c.Total == nil { 3084 return 0 3085 } 3086 return *c.Total 3087 } 3088 3089 // GetBillableOwner returns the BillableOwner field. 3090 func (c *Codespace) GetBillableOwner() *User { 3091 if c == nil { 3092 return nil 3093 } 3094 return c.BillableOwner 3095 } 3096 3097 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3098 func (c *Codespace) GetCreatedAt() Timestamp { 3099 if c == nil || c.CreatedAt == nil { 3100 return Timestamp{} 3101 } 3102 return *c.CreatedAt 3103 } 3104 3105 // GetDevcontainerPath returns the DevcontainerPath field if it's non-nil, zero value otherwise. 3106 func (c *Codespace) GetDevcontainerPath() string { 3107 if c == nil || c.DevcontainerPath == nil { 3108 return "" 3109 } 3110 return *c.DevcontainerPath 3111 } 3112 3113 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 3114 func (c *Codespace) GetDisplayName() string { 3115 if c == nil || c.DisplayName == nil { 3116 return "" 3117 } 3118 return *c.DisplayName 3119 } 3120 3121 // GetEnvironmentID returns the EnvironmentID field if it's non-nil, zero value otherwise. 3122 func (c *Codespace) GetEnvironmentID() string { 3123 if c == nil || c.EnvironmentID == nil { 3124 return "" 3125 } 3126 return *c.EnvironmentID 3127 } 3128 3129 // GetGitStatus returns the GitStatus field. 3130 func (c *Codespace) GetGitStatus() *CodespacesGitStatus { 3131 if c == nil { 3132 return nil 3133 } 3134 return c.GitStatus 3135 } 3136 3137 // GetID returns the ID field if it's non-nil, zero value otherwise. 3138 func (c *Codespace) GetID() int64 { 3139 if c == nil || c.ID == nil { 3140 return 0 3141 } 3142 return *c.ID 3143 } 3144 3145 // GetIdleTimeoutMinutes returns the IdleTimeoutMinutes field if it's non-nil, zero value otherwise. 3146 func (c *Codespace) GetIdleTimeoutMinutes() int { 3147 if c == nil || c.IdleTimeoutMinutes == nil { 3148 return 0 3149 } 3150 return *c.IdleTimeoutMinutes 3151 } 3152 3153 // GetIdleTimeoutNotice returns the IdleTimeoutNotice field if it's non-nil, zero value otherwise. 3154 func (c *Codespace) GetIdleTimeoutNotice() string { 3155 if c == nil || c.IdleTimeoutNotice == nil { 3156 return "" 3157 } 3158 return *c.IdleTimeoutNotice 3159 } 3160 3161 // GetLastKnownStopNotice returns the LastKnownStopNotice field if it's non-nil, zero value otherwise. 3162 func (c *Codespace) GetLastKnownStopNotice() string { 3163 if c == nil || c.LastKnownStopNotice == nil { 3164 return "" 3165 } 3166 return *c.LastKnownStopNotice 3167 } 3168 3169 // GetLastUsedAt returns the LastUsedAt field if it's non-nil, zero value otherwise. 3170 func (c *Codespace) GetLastUsedAt() Timestamp { 3171 if c == nil || c.LastUsedAt == nil { 3172 return Timestamp{} 3173 } 3174 return *c.LastUsedAt 3175 } 3176 3177 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 3178 func (c *Codespace) GetLocation() string { 3179 if c == nil || c.Location == nil { 3180 return "" 3181 } 3182 return *c.Location 3183 } 3184 3185 // GetMachine returns the Machine field. 3186 func (c *Codespace) GetMachine() *CodespacesMachine { 3187 if c == nil { 3188 return nil 3189 } 3190 return c.Machine 3191 } 3192 3193 // GetMachinesURL returns the MachinesURL field if it's non-nil, zero value otherwise. 3194 func (c *Codespace) GetMachinesURL() string { 3195 if c == nil || c.MachinesURL == nil { 3196 return "" 3197 } 3198 return *c.MachinesURL 3199 } 3200 3201 // GetName returns the Name field if it's non-nil, zero value otherwise. 3202 func (c *Codespace) GetName() string { 3203 if c == nil || c.Name == nil { 3204 return "" 3205 } 3206 return *c.Name 3207 } 3208 3209 // GetOwner returns the Owner field. 3210 func (c *Codespace) GetOwner() *User { 3211 if c == nil { 3212 return nil 3213 } 3214 return c.Owner 3215 } 3216 3217 // GetPendingOperation returns the PendingOperation field if it's non-nil, zero value otherwise. 3218 func (c *Codespace) GetPendingOperation() bool { 3219 if c == nil || c.PendingOperation == nil { 3220 return false 3221 } 3222 return *c.PendingOperation 3223 } 3224 3225 // GetPendingOperationDisabledReason returns the PendingOperationDisabledReason field if it's non-nil, zero value otherwise. 3226 func (c *Codespace) GetPendingOperationDisabledReason() string { 3227 if c == nil || c.PendingOperationDisabledReason == nil { 3228 return "" 3229 } 3230 return *c.PendingOperationDisabledReason 3231 } 3232 3233 // GetPrebuild returns the Prebuild field if it's non-nil, zero value otherwise. 3234 func (c *Codespace) GetPrebuild() bool { 3235 if c == nil || c.Prebuild == nil { 3236 return false 3237 } 3238 return *c.Prebuild 3239 } 3240 3241 // GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 3242 func (c *Codespace) GetPullsURL() string { 3243 if c == nil || c.PullsURL == nil { 3244 return "" 3245 } 3246 return *c.PullsURL 3247 } 3248 3249 // GetRepository returns the Repository field. 3250 func (c *Codespace) GetRepository() *Repository { 3251 if c == nil { 3252 return nil 3253 } 3254 return c.Repository 3255 } 3256 3257 // GetRetentionExpiresAt returns the RetentionExpiresAt field if it's non-nil, zero value otherwise. 3258 func (c *Codespace) GetRetentionExpiresAt() Timestamp { 3259 if c == nil || c.RetentionExpiresAt == nil { 3260 return Timestamp{} 3261 } 3262 return *c.RetentionExpiresAt 3263 } 3264 3265 // GetRetentionPeriodMinutes returns the RetentionPeriodMinutes field if it's non-nil, zero value otherwise. 3266 func (c *Codespace) GetRetentionPeriodMinutes() int { 3267 if c == nil || c.RetentionPeriodMinutes == nil { 3268 return 0 3269 } 3270 return *c.RetentionPeriodMinutes 3271 } 3272 3273 // GetRuntimeConstraints returns the RuntimeConstraints field. 3274 func (c *Codespace) GetRuntimeConstraints() *CodespacesRuntimeConstraints { 3275 if c == nil { 3276 return nil 3277 } 3278 return c.RuntimeConstraints 3279 } 3280 3281 // GetStartURL returns the StartURL field if it's non-nil, zero value otherwise. 3282 func (c *Codespace) GetStartURL() string { 3283 if c == nil || c.StartURL == nil { 3284 return "" 3285 } 3286 return *c.StartURL 3287 } 3288 3289 // GetState returns the State field if it's non-nil, zero value otherwise. 3290 func (c *Codespace) GetState() string { 3291 if c == nil || c.State == nil { 3292 return "" 3293 } 3294 return *c.State 3295 } 3296 3297 // GetStopURL returns the StopURL field if it's non-nil, zero value otherwise. 3298 func (c *Codespace) GetStopURL() string { 3299 if c == nil || c.StopURL == nil { 3300 return "" 3301 } 3302 return *c.StopURL 3303 } 3304 3305 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3306 func (c *Codespace) GetUpdatedAt() Timestamp { 3307 if c == nil || c.UpdatedAt == nil { 3308 return Timestamp{} 3309 } 3310 return *c.UpdatedAt 3311 } 3312 3313 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3314 func (c *Codespace) GetURL() string { 3315 if c == nil || c.URL == nil { 3316 return "" 3317 } 3318 return *c.URL 3319 } 3320 3321 // GetWebURL returns the WebURL field if it's non-nil, zero value otherwise. 3322 func (c *Codespace) GetWebURL() string { 3323 if c == nil || c.WebURL == nil { 3324 return "" 3325 } 3326 return *c.WebURL 3327 } 3328 3329 // GetAhead returns the Ahead field if it's non-nil, zero value otherwise. 3330 func (c *CodespacesGitStatus) GetAhead() int { 3331 if c == nil || c.Ahead == nil { 3332 return 0 3333 } 3334 return *c.Ahead 3335 } 3336 3337 // GetBehind returns the Behind field if it's non-nil, zero value otherwise. 3338 func (c *CodespacesGitStatus) GetBehind() int { 3339 if c == nil || c.Behind == nil { 3340 return 0 3341 } 3342 return *c.Behind 3343 } 3344 3345 // GetHasUncommittedChanges returns the HasUncommittedChanges field if it's non-nil, zero value otherwise. 3346 func (c *CodespacesGitStatus) GetHasUncommittedChanges() bool { 3347 if c == nil || c.HasUncommittedChanges == nil { 3348 return false 3349 } 3350 return *c.HasUncommittedChanges 3351 } 3352 3353 // GetHasUnpushedChanges returns the HasUnpushedChanges field if it's non-nil, zero value otherwise. 3354 func (c *CodespacesGitStatus) GetHasUnpushedChanges() bool { 3355 if c == nil || c.HasUnpushedChanges == nil { 3356 return false 3357 } 3358 return *c.HasUnpushedChanges 3359 } 3360 3361 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 3362 func (c *CodespacesGitStatus) GetRef() string { 3363 if c == nil || c.Ref == nil { 3364 return "" 3365 } 3366 return *c.Ref 3367 } 3368 3369 // GetCPUs returns the CPUs field if it's non-nil, zero value otherwise. 3370 func (c *CodespacesMachine) GetCPUs() int { 3371 if c == nil || c.CPUs == nil { 3372 return 0 3373 } 3374 return *c.CPUs 3375 } 3376 3377 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 3378 func (c *CodespacesMachine) GetDisplayName() string { 3379 if c == nil || c.DisplayName == nil { 3380 return "" 3381 } 3382 return *c.DisplayName 3383 } 3384 3385 // GetMemoryInBytes returns the MemoryInBytes field if it's non-nil, zero value otherwise. 3386 func (c *CodespacesMachine) GetMemoryInBytes() int64 { 3387 if c == nil || c.MemoryInBytes == nil { 3388 return 0 3389 } 3390 return *c.MemoryInBytes 3391 } 3392 3393 // GetName returns the Name field if it's non-nil, zero value otherwise. 3394 func (c *CodespacesMachine) GetName() string { 3395 if c == nil || c.Name == nil { 3396 return "" 3397 } 3398 return *c.Name 3399 } 3400 3401 // GetOperatingSystem returns the OperatingSystem field if it's non-nil, zero value otherwise. 3402 func (c *CodespacesMachine) GetOperatingSystem() string { 3403 if c == nil || c.OperatingSystem == nil { 3404 return "" 3405 } 3406 return *c.OperatingSystem 3407 } 3408 3409 // GetPrebuildAvailability returns the PrebuildAvailability field if it's non-nil, zero value otherwise. 3410 func (c *CodespacesMachine) GetPrebuildAvailability() string { 3411 if c == nil || c.PrebuildAvailability == nil { 3412 return "" 3413 } 3414 return *c.PrebuildAvailability 3415 } 3416 3417 // GetStorageInBytes returns the StorageInBytes field if it's non-nil, zero value otherwise. 3418 func (c *CodespacesMachine) GetStorageInBytes() int64 { 3419 if c == nil || c.StorageInBytes == nil { 3420 return 0 3421 } 3422 return *c.StorageInBytes 3423 } 3424 3425 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3426 func (c *CollaboratorInvitation) GetCreatedAt() Timestamp { 3427 if c == nil || c.CreatedAt == nil { 3428 return Timestamp{} 3429 } 3430 return *c.CreatedAt 3431 } 3432 3433 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3434 func (c *CollaboratorInvitation) 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 *CollaboratorInvitation) GetID() int64 { 3443 if c == nil || c.ID == nil { 3444 return 0 3445 } 3446 return *c.ID 3447 } 3448 3449 // GetInvitee returns the Invitee field. 3450 func (c *CollaboratorInvitation) GetInvitee() *User { 3451 if c == nil { 3452 return nil 3453 } 3454 return c.Invitee 3455 } 3456 3457 // GetInviter returns the Inviter field. 3458 func (c *CollaboratorInvitation) GetInviter() *User { 3459 if c == nil { 3460 return nil 3461 } 3462 return c.Inviter 3463 } 3464 3465 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 3466 func (c *CollaboratorInvitation) GetPermissions() string { 3467 if c == nil || c.Permissions == nil { 3468 return "" 3469 } 3470 return *c.Permissions 3471 } 3472 3473 // GetRepo returns the Repo field. 3474 func (c *CollaboratorInvitation) GetRepo() *Repository { 3475 if c == nil { 3476 return nil 3477 } 3478 return c.Repo 3479 } 3480 3481 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3482 func (c *CollaboratorInvitation) GetURL() string { 3483 if c == nil || c.URL == nil { 3484 return "" 3485 } 3486 return *c.URL 3487 } 3488 3489 // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 3490 func (c *CombinedStatus) GetCommitURL() string { 3491 if c == nil || c.CommitURL == nil { 3492 return "" 3493 } 3494 return *c.CommitURL 3495 } 3496 3497 // GetName returns the Name field if it's non-nil, zero value otherwise. 3498 func (c *CombinedStatus) GetName() string { 3499 if c == nil || c.Name == nil { 3500 return "" 3501 } 3502 return *c.Name 3503 } 3504 3505 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 3506 func (c *CombinedStatus) GetRepositoryURL() string { 3507 if c == nil || c.RepositoryURL == nil { 3508 return "" 3509 } 3510 return *c.RepositoryURL 3511 } 3512 3513 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3514 func (c *CombinedStatus) GetSHA() string { 3515 if c == nil || c.SHA == nil { 3516 return "" 3517 } 3518 return *c.SHA 3519 } 3520 3521 // GetState returns the State field if it's non-nil, zero value otherwise. 3522 func (c *CombinedStatus) GetState() string { 3523 if c == nil || c.State == nil { 3524 return "" 3525 } 3526 return *c.State 3527 } 3528 3529 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 3530 func (c *CombinedStatus) GetTotalCount() int { 3531 if c == nil || c.TotalCount == nil { 3532 return 0 3533 } 3534 return *c.TotalCount 3535 } 3536 3537 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3538 func (c *Comment) GetCreatedAt() Timestamp { 3539 if c == nil || c.CreatedAt == nil { 3540 return Timestamp{} 3541 } 3542 return *c.CreatedAt 3543 } 3544 3545 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 3546 func (c *CommentDiscussion) GetAuthorAssociation() string { 3547 if c == nil || c.AuthorAssociation == nil { 3548 return "" 3549 } 3550 return *c.AuthorAssociation 3551 } 3552 3553 // GetBody returns the Body field if it's non-nil, zero value otherwise. 3554 func (c *CommentDiscussion) GetBody() string { 3555 if c == nil || c.Body == nil { 3556 return "" 3557 } 3558 return *c.Body 3559 } 3560 3561 // GetChildCommentCount returns the ChildCommentCount field if it's non-nil, zero value otherwise. 3562 func (c *CommentDiscussion) GetChildCommentCount() int { 3563 if c == nil || c.ChildCommentCount == nil { 3564 return 0 3565 } 3566 return *c.ChildCommentCount 3567 } 3568 3569 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 3570 func (c *CommentDiscussion) GetCreatedAt() Timestamp { 3571 if c == nil || c.CreatedAt == nil { 3572 return Timestamp{} 3573 } 3574 return *c.CreatedAt 3575 } 3576 3577 // GetDiscussionID returns the DiscussionID field if it's non-nil, zero value otherwise. 3578 func (c *CommentDiscussion) GetDiscussionID() int64 { 3579 if c == nil || c.DiscussionID == nil { 3580 return 0 3581 } 3582 return *c.DiscussionID 3583 } 3584 3585 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3586 func (c *CommentDiscussion) GetHTMLURL() string { 3587 if c == nil || c.HTMLURL == nil { 3588 return "" 3589 } 3590 return *c.HTMLURL 3591 } 3592 3593 // GetID returns the ID field if it's non-nil, zero value otherwise. 3594 func (c *CommentDiscussion) GetID() int64 { 3595 if c == nil || c.ID == nil { 3596 return 0 3597 } 3598 return *c.ID 3599 } 3600 3601 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3602 func (c *CommentDiscussion) GetNodeID() string { 3603 if c == nil || c.NodeID == nil { 3604 return "" 3605 } 3606 return *c.NodeID 3607 } 3608 3609 // GetParentID returns the ParentID field if it's non-nil, zero value otherwise. 3610 func (c *CommentDiscussion) GetParentID() int64 { 3611 if c == nil || c.ParentID == nil { 3612 return 0 3613 } 3614 return *c.ParentID 3615 } 3616 3617 // GetReactions returns the Reactions field. 3618 func (c *CommentDiscussion) GetReactions() *Reactions { 3619 if c == nil { 3620 return nil 3621 } 3622 return c.Reactions 3623 } 3624 3625 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 3626 func (c *CommentDiscussion) GetRepositoryURL() string { 3627 if c == nil || c.RepositoryURL == nil { 3628 return "" 3629 } 3630 return *c.RepositoryURL 3631 } 3632 3633 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 3634 func (c *CommentDiscussion) GetUpdatedAt() Timestamp { 3635 if c == nil || c.UpdatedAt == nil { 3636 return Timestamp{} 3637 } 3638 return *c.UpdatedAt 3639 } 3640 3641 // GetUser returns the User field. 3642 func (c *CommentDiscussion) GetUser() *User { 3643 if c == nil { 3644 return nil 3645 } 3646 return c.User 3647 } 3648 3649 // GetTotalCommitComments returns the TotalCommitComments field if it's non-nil, zero value otherwise. 3650 func (c *CommentStats) GetTotalCommitComments() int { 3651 if c == nil || c.TotalCommitComments == nil { 3652 return 0 3653 } 3654 return *c.TotalCommitComments 3655 } 3656 3657 // GetTotalGistComments returns the TotalGistComments field if it's non-nil, zero value otherwise. 3658 func (c *CommentStats) GetTotalGistComments() int { 3659 if c == nil || c.TotalGistComments == nil { 3660 return 0 3661 } 3662 return *c.TotalGistComments 3663 } 3664 3665 // GetTotalIssueComments returns the TotalIssueComments field if it's non-nil, zero value otherwise. 3666 func (c *CommentStats) GetTotalIssueComments() int { 3667 if c == nil || c.TotalIssueComments == nil { 3668 return 0 3669 } 3670 return *c.TotalIssueComments 3671 } 3672 3673 // GetTotalPullRequestComments returns the TotalPullRequestComments field if it's non-nil, zero value otherwise. 3674 func (c *CommentStats) GetTotalPullRequestComments() int { 3675 if c == nil || c.TotalPullRequestComments == nil { 3676 return 0 3677 } 3678 return *c.TotalPullRequestComments 3679 } 3680 3681 // GetAuthor returns the Author field. 3682 func (c *Commit) GetAuthor() *CommitAuthor { 3683 if c == nil { 3684 return nil 3685 } 3686 return c.Author 3687 } 3688 3689 // GetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise. 3690 func (c *Commit) GetCommentCount() int { 3691 if c == nil || c.CommentCount == nil { 3692 return 0 3693 } 3694 return *c.CommentCount 3695 } 3696 3697 // GetCommitter returns the Committer field. 3698 func (c *Commit) GetCommitter() *CommitAuthor { 3699 if c == nil { 3700 return nil 3701 } 3702 return c.Committer 3703 } 3704 3705 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3706 func (c *Commit) GetHTMLURL() string { 3707 if c == nil || c.HTMLURL == nil { 3708 return "" 3709 } 3710 return *c.HTMLURL 3711 } 3712 3713 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 3714 func (c *Commit) GetMessage() string { 3715 if c == nil || c.Message == nil { 3716 return "" 3717 } 3718 return *c.Message 3719 } 3720 3721 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 3722 func (c *Commit) GetNodeID() string { 3723 if c == nil || c.NodeID == nil { 3724 return "" 3725 } 3726 return *c.NodeID 3727 } 3728 3729 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3730 func (c *Commit) GetSHA() string { 3731 if c == nil || c.SHA == nil { 3732 return "" 3733 } 3734 return *c.SHA 3735 } 3736 3737 // GetStats returns the Stats field. 3738 func (c *Commit) GetStats() *CommitStats { 3739 if c == nil { 3740 return nil 3741 } 3742 return c.Stats 3743 } 3744 3745 // GetTree returns the Tree field. 3746 func (c *Commit) GetTree() *Tree { 3747 if c == nil { 3748 return nil 3749 } 3750 return c.Tree 3751 } 3752 3753 // GetURL returns the URL field if it's non-nil, zero value otherwise. 3754 func (c *Commit) GetURL() string { 3755 if c == nil || c.URL == nil { 3756 return "" 3757 } 3758 return *c.URL 3759 } 3760 3761 // GetVerification returns the Verification field. 3762 func (c *Commit) GetVerification() *SignatureVerification { 3763 if c == nil { 3764 return nil 3765 } 3766 return c.Verification 3767 } 3768 3769 // GetDate returns the Date field if it's non-nil, zero value otherwise. 3770 func (c *CommitAuthor) GetDate() Timestamp { 3771 if c == nil || c.Date == nil { 3772 return Timestamp{} 3773 } 3774 return *c.Date 3775 } 3776 3777 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 3778 func (c *CommitAuthor) GetEmail() string { 3779 if c == nil || c.Email == nil { 3780 return "" 3781 } 3782 return *c.Email 3783 } 3784 3785 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 3786 func (c *CommitAuthor) GetLogin() string { 3787 if c == nil || c.Login == nil { 3788 return "" 3789 } 3790 return *c.Login 3791 } 3792 3793 // GetName returns the Name field if it's non-nil, zero value otherwise. 3794 func (c *CommitAuthor) GetName() string { 3795 if c == nil || c.Name == nil { 3796 return "" 3797 } 3798 return *c.Name 3799 } 3800 3801 // GetAction returns the Action field if it's non-nil, zero value otherwise. 3802 func (c *CommitCommentEvent) GetAction() string { 3803 if c == nil || c.Action == nil { 3804 return "" 3805 } 3806 return *c.Action 3807 } 3808 3809 // GetComment returns the Comment field. 3810 func (c *CommitCommentEvent) GetComment() *RepositoryComment { 3811 if c == nil { 3812 return nil 3813 } 3814 return c.Comment 3815 } 3816 3817 // GetInstallation returns the Installation field. 3818 func (c *CommitCommentEvent) GetInstallation() *Installation { 3819 if c == nil { 3820 return nil 3821 } 3822 return c.Installation 3823 } 3824 3825 // GetOrg returns the Org field. 3826 func (c *CommitCommentEvent) GetOrg() *Organization { 3827 if c == nil { 3828 return nil 3829 } 3830 return c.Org 3831 } 3832 3833 // GetRepo returns the Repo field. 3834 func (c *CommitCommentEvent) GetRepo() *Repository { 3835 if c == nil { 3836 return nil 3837 } 3838 return c.Repo 3839 } 3840 3841 // GetSender returns the Sender field. 3842 func (c *CommitCommentEvent) GetSender() *User { 3843 if c == nil { 3844 return nil 3845 } 3846 return c.Sender 3847 } 3848 3849 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 3850 func (c *CommitFile) GetAdditions() int { 3851 if c == nil || c.Additions == nil { 3852 return 0 3853 } 3854 return *c.Additions 3855 } 3856 3857 // GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise. 3858 func (c *CommitFile) GetBlobURL() string { 3859 if c == nil || c.BlobURL == nil { 3860 return "" 3861 } 3862 return *c.BlobURL 3863 } 3864 3865 // GetChanges returns the Changes field if it's non-nil, zero value otherwise. 3866 func (c *CommitFile) GetChanges() int { 3867 if c == nil || c.Changes == nil { 3868 return 0 3869 } 3870 return *c.Changes 3871 } 3872 3873 // GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 3874 func (c *CommitFile) GetContentsURL() string { 3875 if c == nil || c.ContentsURL == nil { 3876 return "" 3877 } 3878 return *c.ContentsURL 3879 } 3880 3881 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 3882 func (c *CommitFile) GetDeletions() int { 3883 if c == nil || c.Deletions == nil { 3884 return 0 3885 } 3886 return *c.Deletions 3887 } 3888 3889 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 3890 func (c *CommitFile) GetFilename() string { 3891 if c == nil || c.Filename == nil { 3892 return "" 3893 } 3894 return *c.Filename 3895 } 3896 3897 // GetPatch returns the Patch field if it's non-nil, zero value otherwise. 3898 func (c *CommitFile) GetPatch() string { 3899 if c == nil || c.Patch == nil { 3900 return "" 3901 } 3902 return *c.Patch 3903 } 3904 3905 // GetPreviousFilename returns the PreviousFilename field if it's non-nil, zero value otherwise. 3906 func (c *CommitFile) GetPreviousFilename() string { 3907 if c == nil || c.PreviousFilename == nil { 3908 return "" 3909 } 3910 return *c.PreviousFilename 3911 } 3912 3913 // GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 3914 func (c *CommitFile) GetRawURL() string { 3915 if c == nil || c.RawURL == nil { 3916 return "" 3917 } 3918 return *c.RawURL 3919 } 3920 3921 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3922 func (c *CommitFile) GetSHA() string { 3923 if c == nil || c.SHA == nil { 3924 return "" 3925 } 3926 return *c.SHA 3927 } 3928 3929 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 3930 func (c *CommitFile) GetStatus() string { 3931 if c == nil || c.Status == nil { 3932 return "" 3933 } 3934 return *c.Status 3935 } 3936 3937 // GetAuthor returns the Author field. 3938 func (c *CommitResult) GetAuthor() *User { 3939 if c == nil { 3940 return nil 3941 } 3942 return c.Author 3943 } 3944 3945 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 3946 func (c *CommitResult) GetCommentsURL() string { 3947 if c == nil || c.CommentsURL == nil { 3948 return "" 3949 } 3950 return *c.CommentsURL 3951 } 3952 3953 // GetCommit returns the Commit field. 3954 func (c *CommitResult) GetCommit() *Commit { 3955 if c == nil { 3956 return nil 3957 } 3958 return c.Commit 3959 } 3960 3961 // GetCommitter returns the Committer field. 3962 func (c *CommitResult) GetCommitter() *User { 3963 if c == nil { 3964 return nil 3965 } 3966 return c.Committer 3967 } 3968 3969 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 3970 func (c *CommitResult) GetHTMLURL() string { 3971 if c == nil || c.HTMLURL == nil { 3972 return "" 3973 } 3974 return *c.HTMLURL 3975 } 3976 3977 // GetRepository returns the Repository field. 3978 func (c *CommitResult) GetRepository() *Repository { 3979 if c == nil { 3980 return nil 3981 } 3982 return c.Repository 3983 } 3984 3985 // GetScore returns the Score field. 3986 func (c *CommitResult) GetScore() *float64 { 3987 if c == nil { 3988 return nil 3989 } 3990 return c.Score 3991 } 3992 3993 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 3994 func (c *CommitResult) GetSHA() string { 3995 if c == nil || c.SHA == nil { 3996 return "" 3997 } 3998 return *c.SHA 3999 } 4000 4001 // GetURL returns the URL field if it's non-nil, zero value otherwise. 4002 func (c *CommitResult) GetURL() string { 4003 if c == nil || c.URL == nil { 4004 return "" 4005 } 4006 return *c.URL 4007 } 4008 4009 // GetAheadBy returns the AheadBy field if it's non-nil, zero value otherwise. 4010 func (c *CommitsComparison) GetAheadBy() int { 4011 if c == nil || c.AheadBy == nil { 4012 return 0 4013 } 4014 return *c.AheadBy 4015 } 4016 4017 // GetBaseCommit returns the BaseCommit field. 4018 func (c *CommitsComparison) GetBaseCommit() *RepositoryCommit { 4019 if c == nil { 4020 return nil 4021 } 4022 return c.BaseCommit 4023 } 4024 4025 // GetBehindBy returns the BehindBy field if it's non-nil, zero value otherwise. 4026 func (c *CommitsComparison) GetBehindBy() int { 4027 if c == nil || c.BehindBy == nil { 4028 return 0 4029 } 4030 return *c.BehindBy 4031 } 4032 4033 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 4034 func (c *CommitsComparison) GetDiffURL() string { 4035 if c == nil || c.DiffURL == nil { 4036 return "" 4037 } 4038 return *c.DiffURL 4039 } 4040 4041 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4042 func (c *CommitsComparison) GetHTMLURL() string { 4043 if c == nil || c.HTMLURL == nil { 4044 return "" 4045 } 4046 return *c.HTMLURL 4047 } 4048 4049 // GetMergeBaseCommit returns the MergeBaseCommit field. 4050 func (c *CommitsComparison) GetMergeBaseCommit() *RepositoryCommit { 4051 if c == nil { 4052 return nil 4053 } 4054 return c.MergeBaseCommit 4055 } 4056 4057 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 4058 func (c *CommitsComparison) GetPatchURL() string { 4059 if c == nil || c.PatchURL == nil { 4060 return "" 4061 } 4062 return *c.PatchURL 4063 } 4064 4065 // GetPermalinkURL returns the PermalinkURL field if it's non-nil, zero value otherwise. 4066 func (c *CommitsComparison) GetPermalinkURL() string { 4067 if c == nil || c.PermalinkURL == nil { 4068 return "" 4069 } 4070 return *c.PermalinkURL 4071 } 4072 4073 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 4074 func (c *CommitsComparison) GetStatus() string { 4075 if c == nil || c.Status == nil { 4076 return "" 4077 } 4078 return *c.Status 4079 } 4080 4081 // GetTotalCommits returns the TotalCommits field if it's non-nil, zero value otherwise. 4082 func (c *CommitsComparison) GetTotalCommits() int { 4083 if c == nil || c.TotalCommits == nil { 4084 return 0 4085 } 4086 return *c.TotalCommits 4087 } 4088 4089 // GetURL returns the URL field if it's non-nil, zero value otherwise. 4090 func (c *CommitsComparison) GetURL() string { 4091 if c == nil || c.URL == nil { 4092 return "" 4093 } 4094 return *c.URL 4095 } 4096 4097 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 4098 func (c *CommitsSearchResult) GetIncompleteResults() bool { 4099 if c == nil || c.IncompleteResults == nil { 4100 return false 4101 } 4102 return *c.IncompleteResults 4103 } 4104 4105 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 4106 func (c *CommitsSearchResult) GetTotal() int { 4107 if c == nil || c.Total == nil { 4108 return 0 4109 } 4110 return *c.Total 4111 } 4112 4113 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 4114 func (c *CommitStats) GetAdditions() int { 4115 if c == nil || c.Additions == nil { 4116 return 0 4117 } 4118 return *c.Additions 4119 } 4120 4121 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 4122 func (c *CommitStats) GetDeletions() int { 4123 if c == nil || c.Deletions == nil { 4124 return 0 4125 } 4126 return *c.Deletions 4127 } 4128 4129 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 4130 func (c *CommitStats) GetTotal() int { 4131 if c == nil || c.Total == nil { 4132 return 0 4133 } 4134 return *c.Total 4135 } 4136 4137 // GetCodeOfConduct returns the CodeOfConduct field. 4138 func (c *CommunityHealthFiles) GetCodeOfConduct() *Metric { 4139 if c == nil { 4140 return nil 4141 } 4142 return c.CodeOfConduct 4143 } 4144 4145 // GetCodeOfConductFile returns the CodeOfConductFile field. 4146 func (c *CommunityHealthFiles) GetCodeOfConductFile() *Metric { 4147 if c == nil { 4148 return nil 4149 } 4150 return c.CodeOfConductFile 4151 } 4152 4153 // GetContributing returns the Contributing field. 4154 func (c *CommunityHealthFiles) GetContributing() *Metric { 4155 if c == nil { 4156 return nil 4157 } 4158 return c.Contributing 4159 } 4160 4161 // GetIssueTemplate returns the IssueTemplate field. 4162 func (c *CommunityHealthFiles) GetIssueTemplate() *Metric { 4163 if c == nil { 4164 return nil 4165 } 4166 return c.IssueTemplate 4167 } 4168 4169 // GetLicense returns the License field. 4170 func (c *CommunityHealthFiles) GetLicense() *Metric { 4171 if c == nil { 4172 return nil 4173 } 4174 return c.License 4175 } 4176 4177 // GetPullRequestTemplate returns the PullRequestTemplate field. 4178 func (c *CommunityHealthFiles) GetPullRequestTemplate() *Metric { 4179 if c == nil { 4180 return nil 4181 } 4182 return c.PullRequestTemplate 4183 } 4184 4185 // GetReadme returns the Readme field. 4186 func (c *CommunityHealthFiles) GetReadme() *Metric { 4187 if c == nil { 4188 return nil 4189 } 4190 return c.Readme 4191 } 4192 4193 // GetContentReportsEnabled returns the ContentReportsEnabled field if it's non-nil, zero value otherwise. 4194 func (c *CommunityHealthMetrics) GetContentReportsEnabled() bool { 4195 if c == nil || c.ContentReportsEnabled == nil { 4196 return false 4197 } 4198 return *c.ContentReportsEnabled 4199 } 4200 4201 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4202 func (c *CommunityHealthMetrics) GetDescription() string { 4203 if c == nil || c.Description == nil { 4204 return "" 4205 } 4206 return *c.Description 4207 } 4208 4209 // GetDocumentation returns the Documentation field if it's non-nil, zero value otherwise. 4210 func (c *CommunityHealthMetrics) GetDocumentation() string { 4211 if c == nil || c.Documentation == nil { 4212 return "" 4213 } 4214 return *c.Documentation 4215 } 4216 4217 // GetFiles returns the Files field. 4218 func (c *CommunityHealthMetrics) GetFiles() *CommunityHealthFiles { 4219 if c == nil { 4220 return nil 4221 } 4222 return c.Files 4223 } 4224 4225 // GetHealthPercentage returns the HealthPercentage field if it's non-nil, zero value otherwise. 4226 func (c *CommunityHealthMetrics) GetHealthPercentage() int { 4227 if c == nil || c.HealthPercentage == nil { 4228 return 0 4229 } 4230 return *c.HealthPercentage 4231 } 4232 4233 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 4234 func (c *CommunityHealthMetrics) GetUpdatedAt() Timestamp { 4235 if c == nil || c.UpdatedAt == nil { 4236 return Timestamp{} 4237 } 4238 return *c.UpdatedAt 4239 } 4240 4241 // GetID returns the ID field if it's non-nil, zero value otherwise. 4242 func (c *ContentReference) GetID() int64 { 4243 if c == nil || c.ID == nil { 4244 return 0 4245 } 4246 return *c.ID 4247 } 4248 4249 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4250 func (c *ContentReference) GetNodeID() string { 4251 if c == nil || c.NodeID == nil { 4252 return "" 4253 } 4254 return *c.NodeID 4255 } 4256 4257 // GetReference returns the Reference field if it's non-nil, zero value otherwise. 4258 func (c *ContentReference) GetReference() string { 4259 if c == nil || c.Reference == nil { 4260 return "" 4261 } 4262 return *c.Reference 4263 } 4264 4265 // GetAction returns the Action field if it's non-nil, zero value otherwise. 4266 func (c *ContentReferenceEvent) GetAction() string { 4267 if c == nil || c.Action == nil { 4268 return "" 4269 } 4270 return *c.Action 4271 } 4272 4273 // GetContentReference returns the ContentReference field. 4274 func (c *ContentReferenceEvent) GetContentReference() *ContentReference { 4275 if c == nil { 4276 return nil 4277 } 4278 return c.ContentReference 4279 } 4280 4281 // GetInstallation returns the Installation field. 4282 func (c *ContentReferenceEvent) GetInstallation() *Installation { 4283 if c == nil { 4284 return nil 4285 } 4286 return c.Installation 4287 } 4288 4289 // GetRepo returns the Repo field. 4290 func (c *ContentReferenceEvent) GetRepo() *Repository { 4291 if c == nil { 4292 return nil 4293 } 4294 return c.Repo 4295 } 4296 4297 // GetSender returns the Sender field. 4298 func (c *ContentReferenceEvent) GetSender() *User { 4299 if c == nil { 4300 return nil 4301 } 4302 return c.Sender 4303 } 4304 4305 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 4306 func (c *Contributor) GetAvatarURL() string { 4307 if c == nil || c.AvatarURL == nil { 4308 return "" 4309 } 4310 return *c.AvatarURL 4311 } 4312 4313 // GetContributions returns the Contributions field if it's non-nil, zero value otherwise. 4314 func (c *Contributor) GetContributions() int { 4315 if c == nil || c.Contributions == nil { 4316 return 0 4317 } 4318 return *c.Contributions 4319 } 4320 4321 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 4322 func (c *Contributor) GetEmail() string { 4323 if c == nil || c.Email == nil { 4324 return "" 4325 } 4326 return *c.Email 4327 } 4328 4329 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 4330 func (c *Contributor) GetEventsURL() string { 4331 if c == nil || c.EventsURL == nil { 4332 return "" 4333 } 4334 return *c.EventsURL 4335 } 4336 4337 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 4338 func (c *Contributor) GetFollowersURL() string { 4339 if c == nil || c.FollowersURL == nil { 4340 return "" 4341 } 4342 return *c.FollowersURL 4343 } 4344 4345 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 4346 func (c *Contributor) GetFollowingURL() string { 4347 if c == nil || c.FollowingURL == nil { 4348 return "" 4349 } 4350 return *c.FollowingURL 4351 } 4352 4353 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 4354 func (c *Contributor) GetGistsURL() string { 4355 if c == nil || c.GistsURL == nil { 4356 return "" 4357 } 4358 return *c.GistsURL 4359 } 4360 4361 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 4362 func (c *Contributor) GetGravatarID() string { 4363 if c == nil || c.GravatarID == nil { 4364 return "" 4365 } 4366 return *c.GravatarID 4367 } 4368 4369 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 4370 func (c *Contributor) GetHTMLURL() string { 4371 if c == nil || c.HTMLURL == nil { 4372 return "" 4373 } 4374 return *c.HTMLURL 4375 } 4376 4377 // GetID returns the ID field if it's non-nil, zero value otherwise. 4378 func (c *Contributor) GetID() int64 { 4379 if c == nil || c.ID == nil { 4380 return 0 4381 } 4382 return *c.ID 4383 } 4384 4385 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 4386 func (c *Contributor) GetLogin() string { 4387 if c == nil || c.Login == nil { 4388 return "" 4389 } 4390 return *c.Login 4391 } 4392 4393 // GetName returns the Name field if it's non-nil, zero value otherwise. 4394 func (c *Contributor) GetName() string { 4395 if c == nil || c.Name == nil { 4396 return "" 4397 } 4398 return *c.Name 4399 } 4400 4401 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 4402 func (c *Contributor) GetNodeID() string { 4403 if c == nil || c.NodeID == nil { 4404 return "" 4405 } 4406 return *c.NodeID 4407 } 4408 4409 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 4410 func (c *Contributor) GetOrganizationsURL() string { 4411 if c == nil || c.OrganizationsURL == nil { 4412 return "" 4413 } 4414 return *c.OrganizationsURL 4415 } 4416 4417 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 4418 func (c *Contributor) GetReceivedEventsURL() string { 4419 if c == nil || c.ReceivedEventsURL == nil { 4420 return "" 4421 } 4422 return *c.ReceivedEventsURL 4423 } 4424 4425 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 4426 func (c *Contributor) GetReposURL() string { 4427 if c == nil || c.ReposURL == nil { 4428 return "" 4429 } 4430 return *c.ReposURL 4431 } 4432 4433 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 4434 func (c *Contributor) GetSiteAdmin() bool { 4435 if c == nil || c.SiteAdmin == nil { 4436 return false 4437 } 4438 return *c.SiteAdmin 4439 } 4440 4441 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 4442 func (c *Contributor) GetStarredURL() string { 4443 if c == nil || c.StarredURL == nil { 4444 return "" 4445 } 4446 return *c.StarredURL 4447 } 4448 4449 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 4450 func (c *Contributor) GetSubscriptionsURL() string { 4451 if c == nil || c.SubscriptionsURL == nil { 4452 return "" 4453 } 4454 return *c.SubscriptionsURL 4455 } 4456 4457 // GetType returns the Type field if it's non-nil, zero value otherwise. 4458 func (c *Contributor) GetType() string { 4459 if c == nil || c.Type == nil { 4460 return "" 4461 } 4462 return *c.Type 4463 } 4464 4465 // GetURL returns the URL field if it's non-nil, zero value otherwise. 4466 func (c *Contributor) GetURL() string { 4467 if c == nil || c.URL == nil { 4468 return "" 4469 } 4470 return *c.URL 4471 } 4472 4473 // GetAuthor returns the Author field. 4474 func (c *ContributorStats) GetAuthor() *Contributor { 4475 if c == nil { 4476 return nil 4477 } 4478 return c.Author 4479 } 4480 4481 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 4482 func (c *ContributorStats) GetTotal() int { 4483 if c == nil || c.Total == nil { 4484 return 0 4485 } 4486 return *c.Total 4487 } 4488 4489 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 4490 func (c *CreateCheckRunOptions) GetCompletedAt() Timestamp { 4491 if c == nil || c.CompletedAt == nil { 4492 return Timestamp{} 4493 } 4494 return *c.CompletedAt 4495 } 4496 4497 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 4498 func (c *CreateCheckRunOptions) GetConclusion() string { 4499 if c == nil || c.Conclusion == nil { 4500 return "" 4501 } 4502 return *c.Conclusion 4503 } 4504 4505 // GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 4506 func (c *CreateCheckRunOptions) GetDetailsURL() string { 4507 if c == nil || c.DetailsURL == nil { 4508 return "" 4509 } 4510 return *c.DetailsURL 4511 } 4512 4513 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 4514 func (c *CreateCheckRunOptions) GetExternalID() string { 4515 if c == nil || c.ExternalID == nil { 4516 return "" 4517 } 4518 return *c.ExternalID 4519 } 4520 4521 // GetOutput returns the Output field. 4522 func (c *CreateCheckRunOptions) GetOutput() *CheckRunOutput { 4523 if c == nil { 4524 return nil 4525 } 4526 return c.Output 4527 } 4528 4529 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 4530 func (c *CreateCheckRunOptions) GetStartedAt() Timestamp { 4531 if c == nil || c.StartedAt == nil { 4532 return Timestamp{} 4533 } 4534 return *c.StartedAt 4535 } 4536 4537 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 4538 func (c *CreateCheckRunOptions) GetStatus() string { 4539 if c == nil || c.Status == nil { 4540 return "" 4541 } 4542 return *c.Status 4543 } 4544 4545 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 4546 func (c *CreateCheckSuiteOptions) GetHeadBranch() string { 4547 if c == nil || c.HeadBranch == nil { 4548 return "" 4549 } 4550 return *c.HeadBranch 4551 } 4552 4553 // GetClientIP returns the ClientIP field if it's non-nil, zero value otherwise. 4554 func (c *CreateCodespaceOptions) GetClientIP() string { 4555 if c == nil || c.ClientIP == nil { 4556 return "" 4557 } 4558 return *c.ClientIP 4559 } 4560 4561 // GetDevcontainerPath returns the DevcontainerPath field if it's non-nil, zero value otherwise. 4562 func (c *CreateCodespaceOptions) GetDevcontainerPath() string { 4563 if c == nil || c.DevcontainerPath == nil { 4564 return "" 4565 } 4566 return *c.DevcontainerPath 4567 } 4568 4569 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 4570 func (c *CreateCodespaceOptions) GetDisplayName() string { 4571 if c == nil || c.DisplayName == nil { 4572 return "" 4573 } 4574 return *c.DisplayName 4575 } 4576 4577 // GetGeo returns the Geo field if it's non-nil, zero value otherwise. 4578 func (c *CreateCodespaceOptions) GetGeo() string { 4579 if c == nil || c.Geo == nil { 4580 return "" 4581 } 4582 return *c.Geo 4583 } 4584 4585 // GetIdleTimeoutMinutes returns the IdleTimeoutMinutes field if it's non-nil, zero value otherwise. 4586 func (c *CreateCodespaceOptions) GetIdleTimeoutMinutes() int { 4587 if c == nil || c.IdleTimeoutMinutes == nil { 4588 return 0 4589 } 4590 return *c.IdleTimeoutMinutes 4591 } 4592 4593 // GetMachine returns the Machine field if it's non-nil, zero value otherwise. 4594 func (c *CreateCodespaceOptions) GetMachine() string { 4595 if c == nil || c.Machine == nil { 4596 return "" 4597 } 4598 return *c.Machine 4599 } 4600 4601 // GetMultiRepoPermissionsOptOut returns the MultiRepoPermissionsOptOut field if it's non-nil, zero value otherwise. 4602 func (c *CreateCodespaceOptions) GetMultiRepoPermissionsOptOut() bool { 4603 if c == nil || c.MultiRepoPermissionsOptOut == nil { 4604 return false 4605 } 4606 return *c.MultiRepoPermissionsOptOut 4607 } 4608 4609 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 4610 func (c *CreateCodespaceOptions) GetRef() string { 4611 if c == nil || c.Ref == nil { 4612 return "" 4613 } 4614 return *c.Ref 4615 } 4616 4617 // GetRetentionPeriodMinutes returns the RetentionPeriodMinutes field if it's non-nil, zero value otherwise. 4618 func (c *CreateCodespaceOptions) GetRetentionPeriodMinutes() int { 4619 if c == nil || c.RetentionPeriodMinutes == nil { 4620 return 0 4621 } 4622 return *c.RetentionPeriodMinutes 4623 } 4624 4625 // GetWorkingDirectory returns the WorkingDirectory field if it's non-nil, zero value otherwise. 4626 func (c *CreateCodespaceOptions) GetWorkingDirectory() string { 4627 if c == nil || c.WorkingDirectory == nil { 4628 return "" 4629 } 4630 return *c.WorkingDirectory 4631 } 4632 4633 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 4634 func (c *CreateEnterpriseRunnerGroupRequest) GetAllowsPublicRepositories() bool { 4635 if c == nil || c.AllowsPublicRepositories == nil { 4636 return false 4637 } 4638 return *c.AllowsPublicRepositories 4639 } 4640 4641 // GetName returns the Name field if it's non-nil, zero value otherwise. 4642 func (c *CreateEnterpriseRunnerGroupRequest) GetName() string { 4643 if c == nil || c.Name == nil { 4644 return "" 4645 } 4646 return *c.Name 4647 } 4648 4649 // GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. 4650 func (c *CreateEnterpriseRunnerGroupRequest) GetRestrictedToWorkflows() bool { 4651 if c == nil || c.RestrictedToWorkflows == nil { 4652 return false 4653 } 4654 return *c.RestrictedToWorkflows 4655 } 4656 4657 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 4658 func (c *CreateEnterpriseRunnerGroupRequest) GetVisibility() string { 4659 if c == nil || c.Visibility == nil { 4660 return "" 4661 } 4662 return *c.Visibility 4663 } 4664 4665 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4666 func (c *CreateEvent) GetDescription() string { 4667 if c == nil || c.Description == nil { 4668 return "" 4669 } 4670 return *c.Description 4671 } 4672 4673 // GetInstallation returns the Installation field. 4674 func (c *CreateEvent) GetInstallation() *Installation { 4675 if c == nil { 4676 return nil 4677 } 4678 return c.Installation 4679 } 4680 4681 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 4682 func (c *CreateEvent) GetMasterBranch() string { 4683 if c == nil || c.MasterBranch == nil { 4684 return "" 4685 } 4686 return *c.MasterBranch 4687 } 4688 4689 // GetOrg returns the Org field. 4690 func (c *CreateEvent) GetOrg() *Organization { 4691 if c == nil { 4692 return nil 4693 } 4694 return c.Org 4695 } 4696 4697 // GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 4698 func (c *CreateEvent) GetPusherType() string { 4699 if c == nil || c.PusherType == nil { 4700 return "" 4701 } 4702 return *c.PusherType 4703 } 4704 4705 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 4706 func (c *CreateEvent) GetRef() string { 4707 if c == nil || c.Ref == nil { 4708 return "" 4709 } 4710 return *c.Ref 4711 } 4712 4713 // GetRefType returns the RefType field if it's non-nil, zero value otherwise. 4714 func (c *CreateEvent) GetRefType() string { 4715 if c == nil || c.RefType == nil { 4716 return "" 4717 } 4718 return *c.RefType 4719 } 4720 4721 // GetRepo returns the Repo field. 4722 func (c *CreateEvent) GetRepo() *Repository { 4723 if c == nil { 4724 return nil 4725 } 4726 return c.Repo 4727 } 4728 4729 // GetSender returns the Sender field. 4730 func (c *CreateEvent) GetSender() *User { 4731 if c == nil { 4732 return nil 4733 } 4734 return c.Sender 4735 } 4736 4737 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 4738 func (c *CreateOrgInvitationOptions) GetEmail() string { 4739 if c == nil || c.Email == nil { 4740 return "" 4741 } 4742 return *c.Email 4743 } 4744 4745 // GetInviteeID returns the InviteeID field if it's non-nil, zero value otherwise. 4746 func (c *CreateOrgInvitationOptions) GetInviteeID() int64 { 4747 if c == nil || c.InviteeID == nil { 4748 return 0 4749 } 4750 return *c.InviteeID 4751 } 4752 4753 // GetRole returns the Role field if it's non-nil, zero value otherwise. 4754 func (c *CreateOrgInvitationOptions) GetRole() string { 4755 if c == nil || c.Role == nil { 4756 return "" 4757 } 4758 return *c.Role 4759 } 4760 4761 // GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. 4762 func (c *CreateOrUpdateCustomRoleOptions) GetBaseRole() string { 4763 if c == nil || c.BaseRole == nil { 4764 return "" 4765 } 4766 return *c.BaseRole 4767 } 4768 4769 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 4770 func (c *CreateOrUpdateCustomRoleOptions) GetDescription() string { 4771 if c == nil || c.Description == nil { 4772 return "" 4773 } 4774 return *c.Description 4775 } 4776 4777 // GetName returns the Name field if it's non-nil, zero value otherwise. 4778 func (c *CreateOrUpdateCustomRoleOptions) GetName() string { 4779 if c == nil || c.Name == nil { 4780 return "" 4781 } 4782 return *c.Name 4783 } 4784 4785 // GetFrom returns the From field if it's non-nil, zero value otherwise. 4786 func (c *CreateProtectedChanges) GetFrom() bool { 4787 if c == nil || c.From == nil { 4788 return false 4789 } 4790 return *c.From 4791 } 4792 4793 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 4794 func (c *CreateRunnerGroupRequest) GetAllowsPublicRepositories() bool { 4795 if c == nil || c.AllowsPublicRepositories == nil { 4796 return false 4797 } 4798 return *c.AllowsPublicRepositories 4799 } 4800 4801 // GetName returns the Name field if it's non-nil, zero value otherwise. 4802 func (c *CreateRunnerGroupRequest) GetName() string { 4803 if c == nil || c.Name == nil { 4804 return "" 4805 } 4806 return *c.Name 4807 } 4808 4809 // GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. 4810 func (c *CreateRunnerGroupRequest) GetRestrictedToWorkflows() bool { 4811 if c == nil || c.RestrictedToWorkflows == nil { 4812 return false 4813 } 4814 return *c.RestrictedToWorkflows 4815 } 4816 4817 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 4818 func (c *CreateRunnerGroupRequest) GetVisibility() string { 4819 if c == nil || c.Visibility == nil { 4820 return "" 4821 } 4822 return *c.Visibility 4823 } 4824 4825 // GetCanAdminsBypass returns the CanAdminsBypass field if it's non-nil, zero value otherwise. 4826 func (c *CreateUpdateEnvironment) GetCanAdminsBypass() bool { 4827 if c == nil || c.CanAdminsBypass == nil { 4828 return false 4829 } 4830 return *c.CanAdminsBypass 4831 } 4832 4833 // GetDeploymentBranchPolicy returns the DeploymentBranchPolicy field. 4834 func (c *CreateUpdateEnvironment) GetDeploymentBranchPolicy() *BranchPolicy { 4835 if c == nil { 4836 return nil 4837 } 4838 return c.DeploymentBranchPolicy 4839 } 4840 4841 // GetPreventSelfReview returns the PreventSelfReview field if it's non-nil, zero value otherwise. 4842 func (c *CreateUpdateEnvironment) GetPreventSelfReview() bool { 4843 if c == nil || c.PreventSelfReview == nil { 4844 return false 4845 } 4846 return *c.PreventSelfReview 4847 } 4848 4849 // GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. 4850 func (c *CreateUpdateEnvironment) GetWaitTimer() int { 4851 if c == nil || c.WaitTimer == nil { 4852 return 0 4853 } 4854 return *c.WaitTimer 4855 } 4856 4857 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 4858 func (c *CreateUpdateRequiredWorkflowOptions) GetRepositoryID() int64 { 4859 if c == nil || c.RepositoryID == nil { 4860 return 0 4861 } 4862 return *c.RepositoryID 4863 } 4864 4865 // GetScope returns the Scope field if it's non-nil, zero value otherwise. 4866 func (c *CreateUpdateRequiredWorkflowOptions) GetScope() string { 4867 if c == nil || c.Scope == nil { 4868 return "" 4869 } 4870 return *c.Scope 4871 } 4872 4873 // GetSelectedRepositoryIDs returns the SelectedRepositoryIDs field. 4874 func (c *CreateUpdateRequiredWorkflowOptions) GetSelectedRepositoryIDs() *SelectedRepoIDs { 4875 if c == nil { 4876 return nil 4877 } 4878 return c.SelectedRepositoryIDs 4879 } 4880 4881 // GetWorkflowFilePath returns the WorkflowFilePath field if it's non-nil, zero value otherwise. 4882 func (c *CreateUpdateRequiredWorkflowOptions) GetWorkflowFilePath() string { 4883 if c == nil || c.WorkflowFilePath == nil { 4884 return "" 4885 } 4886 return *c.WorkflowFilePath 4887 } 4888 4889 // GetBody returns the Body field if it's non-nil, zero value otherwise. 4890 func (c *CreateUserProjectOptions) GetBody() string { 4891 if c == nil || c.Body == nil { 4892 return "" 4893 } 4894 return *c.Body 4895 } 4896 4897 // GetCreated returns the Created field if it's non-nil, zero value otherwise. 4898 func (c *CreationInfo) GetCreated() Timestamp { 4899 if c == nil || c.Created == nil { 4900 return Timestamp{} 4901 } 4902 return *c.Created 4903 } 4904 4905 // GetAuthorizedCredentialExpiresAt returns the AuthorizedCredentialExpiresAt field if it's non-nil, zero value otherwise. 4906 func (c *CredentialAuthorization) GetAuthorizedCredentialExpiresAt() Timestamp { 4907 if c == nil || c.AuthorizedCredentialExpiresAt == nil { 4908 return Timestamp{} 4909 } 4910 return *c.AuthorizedCredentialExpiresAt 4911 } 4912 4913 // GetAuthorizedCredentialID returns the AuthorizedCredentialID field if it's non-nil, zero value otherwise. 4914 func (c *CredentialAuthorization) GetAuthorizedCredentialID() int64 { 4915 if c == nil || c.AuthorizedCredentialID == nil { 4916 return 0 4917 } 4918 return *c.AuthorizedCredentialID 4919 } 4920 4921 // GetAuthorizedCredentialNote returns the AuthorizedCredentialNote field if it's non-nil, zero value otherwise. 4922 func (c *CredentialAuthorization) GetAuthorizedCredentialNote() string { 4923 if c == nil || c.AuthorizedCredentialNote == nil { 4924 return "" 4925 } 4926 return *c.AuthorizedCredentialNote 4927 } 4928 4929 // GetAuthorizedCredentialTitle returns the AuthorizedCredentialTitle field if it's non-nil, zero value otherwise. 4930 func (c *CredentialAuthorization) GetAuthorizedCredentialTitle() string { 4931 if c == nil || c.AuthorizedCredentialTitle == nil { 4932 return "" 4933 } 4934 return *c.AuthorizedCredentialTitle 4935 } 4936 4937 // GetCredentialAccessedAt returns the CredentialAccessedAt field if it's non-nil, zero value otherwise. 4938 func (c *CredentialAuthorization) GetCredentialAccessedAt() Timestamp { 4939 if c == nil || c.CredentialAccessedAt == nil { 4940 return Timestamp{} 4941 } 4942 return *c.CredentialAccessedAt 4943 } 4944 4945 // GetCredentialAuthorizedAt returns the CredentialAuthorizedAt field if it's non-nil, zero value otherwise. 4946 func (c *CredentialAuthorization) GetCredentialAuthorizedAt() Timestamp { 4947 if c == nil || c.CredentialAuthorizedAt == nil { 4948 return Timestamp{} 4949 } 4950 return *c.CredentialAuthorizedAt 4951 } 4952 4953 // GetCredentialID returns the CredentialID field if it's non-nil, zero value otherwise. 4954 func (c *CredentialAuthorization) GetCredentialID() int64 { 4955 if c == nil || c.CredentialID == nil { 4956 return 0 4957 } 4958 return *c.CredentialID 4959 } 4960 4961 // GetCredentialType returns the CredentialType field if it's non-nil, zero value otherwise. 4962 func (c *CredentialAuthorization) GetCredentialType() string { 4963 if c == nil || c.CredentialType == nil { 4964 return "" 4965 } 4966 return *c.CredentialType 4967 } 4968 4969 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 4970 func (c *CredentialAuthorization) GetFingerprint() string { 4971 if c == nil || c.Fingerprint == nil { 4972 return "" 4973 } 4974 return *c.Fingerprint 4975 } 4976 4977 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 4978 func (c *CredentialAuthorization) GetLogin() string { 4979 if c == nil || c.Login == nil { 4980 return "" 4981 } 4982 return *c.Login 4983 } 4984 4985 // GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. 4986 func (c *CredentialAuthorization) GetTokenLastEight() string { 4987 if c == nil || c.TokenLastEight == nil { 4988 return "" 4989 } 4990 return *c.TokenLastEight 4991 } 4992 4993 // GetType returns the Type field if it's non-nil, zero value otherwise. 4994 func (c *Credit) GetType() string { 4995 if c == nil || c.Type == nil { 4996 return "" 4997 } 4998 return *c.Type 4999 } 5000 5001 // GetUser returns the User field. 5002 func (c *Credit) GetUser() *User { 5003 if c == nil { 5004 return nil 5005 } 5006 return c.User 5007 } 5008 5009 // GetDefaultValue returns the DefaultValue field if it's non-nil, zero value otherwise. 5010 func (c *CustomProperty) GetDefaultValue() string { 5011 if c == nil || c.DefaultValue == nil { 5012 return "" 5013 } 5014 return *c.DefaultValue 5015 } 5016 5017 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5018 func (c *CustomProperty) GetDescription() string { 5019 if c == nil || c.Description == nil { 5020 return "" 5021 } 5022 return *c.Description 5023 } 5024 5025 // GetPropertyName returns the PropertyName field if it's non-nil, zero value otherwise. 5026 func (c *CustomProperty) GetPropertyName() string { 5027 if c == nil || c.PropertyName == nil { 5028 return "" 5029 } 5030 return *c.PropertyName 5031 } 5032 5033 // GetRequired returns the Required field if it's non-nil, zero value otherwise. 5034 func (c *CustomProperty) GetRequired() bool { 5035 if c == nil || c.Required == nil { 5036 return false 5037 } 5038 return *c.Required 5039 } 5040 5041 // GetValue returns the Value field if it's non-nil, zero value otherwise. 5042 func (c *CustomPropertyValue) GetValue() string { 5043 if c == nil || c.Value == nil { 5044 return "" 5045 } 5046 return *c.Value 5047 } 5048 5049 // GetBaseRole returns the BaseRole field if it's non-nil, zero value otherwise. 5050 func (c *CustomRepoRoles) GetBaseRole() string { 5051 if c == nil || c.BaseRole == nil { 5052 return "" 5053 } 5054 return *c.BaseRole 5055 } 5056 5057 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5058 func (c *CustomRepoRoles) GetDescription() string { 5059 if c == nil || c.Description == nil { 5060 return "" 5061 } 5062 return *c.Description 5063 } 5064 5065 // GetID returns the ID field if it's non-nil, zero value otherwise. 5066 func (c *CustomRepoRoles) GetID() int64 { 5067 if c == nil || c.ID == nil { 5068 return 0 5069 } 5070 return *c.ID 5071 } 5072 5073 // GetName returns the Name field if it's non-nil, zero value otherwise. 5074 func (c *CustomRepoRoles) GetName() string { 5075 if c == nil || c.Name == nil { 5076 return "" 5077 } 5078 return *c.Name 5079 } 5080 5081 // GetQuerySuite returns the QuerySuite field if it's non-nil, zero value otherwise. 5082 func (d *DefaultSetupConfiguration) GetQuerySuite() string { 5083 if d == nil || d.QuerySuite == nil { 5084 return "" 5085 } 5086 return *d.QuerySuite 5087 } 5088 5089 // GetState returns the State field if it's non-nil, zero value otherwise. 5090 func (d *DefaultSetupConfiguration) GetState() string { 5091 if d == nil || d.State == nil { 5092 return "" 5093 } 5094 return *d.State 5095 } 5096 5097 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5098 func (d *DefaultSetupConfiguration) GetUpdatedAt() Timestamp { 5099 if d == nil || d.UpdatedAt == nil { 5100 return Timestamp{} 5101 } 5102 return *d.UpdatedAt 5103 } 5104 5105 // GetConfirmDeleteURL returns the ConfirmDeleteURL field if it's non-nil, zero value otherwise. 5106 func (d *DeleteAnalysis) GetConfirmDeleteURL() string { 5107 if d == nil || d.ConfirmDeleteURL == nil { 5108 return "" 5109 } 5110 return *d.ConfirmDeleteURL 5111 } 5112 5113 // GetNextAnalysisURL returns the NextAnalysisURL field if it's non-nil, zero value otherwise. 5114 func (d *DeleteAnalysis) GetNextAnalysisURL() string { 5115 if d == nil || d.NextAnalysisURL == nil { 5116 return "" 5117 } 5118 return *d.NextAnalysisURL 5119 } 5120 5121 // GetInstallation returns the Installation field. 5122 func (d *DeleteEvent) GetInstallation() *Installation { 5123 if d == nil { 5124 return nil 5125 } 5126 return d.Installation 5127 } 5128 5129 // GetOrg returns the Org field. 5130 func (d *DeleteEvent) GetOrg() *Organization { 5131 if d == nil { 5132 return nil 5133 } 5134 return d.Org 5135 } 5136 5137 // GetPusherType returns the PusherType field if it's non-nil, zero value otherwise. 5138 func (d *DeleteEvent) GetPusherType() string { 5139 if d == nil || d.PusherType == nil { 5140 return "" 5141 } 5142 return *d.PusherType 5143 } 5144 5145 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 5146 func (d *DeleteEvent) GetRef() string { 5147 if d == nil || d.Ref == nil { 5148 return "" 5149 } 5150 return *d.Ref 5151 } 5152 5153 // GetRefType returns the RefType field if it's non-nil, zero value otherwise. 5154 func (d *DeleteEvent) GetRefType() string { 5155 if d == nil || d.RefType == nil { 5156 return "" 5157 } 5158 return *d.RefType 5159 } 5160 5161 // GetRepo returns the Repo field. 5162 func (d *DeleteEvent) GetRepo() *Repository { 5163 if d == nil { 5164 return nil 5165 } 5166 return d.Repo 5167 } 5168 5169 // GetSender returns the Sender field. 5170 func (d *DeleteEvent) GetSender() *User { 5171 if d == nil { 5172 return nil 5173 } 5174 return d.Sender 5175 } 5176 5177 // GetAutoDismissedAt returns the AutoDismissedAt field if it's non-nil, zero value otherwise. 5178 func (d *DependabotAlert) GetAutoDismissedAt() Timestamp { 5179 if d == nil || d.AutoDismissedAt == nil { 5180 return Timestamp{} 5181 } 5182 return *d.AutoDismissedAt 5183 } 5184 5185 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5186 func (d *DependabotAlert) GetCreatedAt() Timestamp { 5187 if d == nil || d.CreatedAt == nil { 5188 return Timestamp{} 5189 } 5190 return *d.CreatedAt 5191 } 5192 5193 // GetDependency returns the Dependency field. 5194 func (d *DependabotAlert) GetDependency() *Dependency { 5195 if d == nil { 5196 return nil 5197 } 5198 return d.Dependency 5199 } 5200 5201 // GetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise. 5202 func (d *DependabotAlert) GetDismissedAt() Timestamp { 5203 if d == nil || d.DismissedAt == nil { 5204 return Timestamp{} 5205 } 5206 return *d.DismissedAt 5207 } 5208 5209 // GetDismissedBy returns the DismissedBy field. 5210 func (d *DependabotAlert) GetDismissedBy() *User { 5211 if d == nil { 5212 return nil 5213 } 5214 return d.DismissedBy 5215 } 5216 5217 // GetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise. 5218 func (d *DependabotAlert) GetDismissedComment() string { 5219 if d == nil || d.DismissedComment == nil { 5220 return "" 5221 } 5222 return *d.DismissedComment 5223 } 5224 5225 // GetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise. 5226 func (d *DependabotAlert) GetDismissedReason() string { 5227 if d == nil || d.DismissedReason == nil { 5228 return "" 5229 } 5230 return *d.DismissedReason 5231 } 5232 5233 // GetFixedAt returns the FixedAt field if it's non-nil, zero value otherwise. 5234 func (d *DependabotAlert) GetFixedAt() Timestamp { 5235 if d == nil || d.FixedAt == nil { 5236 return Timestamp{} 5237 } 5238 return *d.FixedAt 5239 } 5240 5241 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 5242 func (d *DependabotAlert) GetHTMLURL() string { 5243 if d == nil || d.HTMLURL == nil { 5244 return "" 5245 } 5246 return *d.HTMLURL 5247 } 5248 5249 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 5250 func (d *DependabotAlert) GetNumber() int { 5251 if d == nil || d.Number == nil { 5252 return 0 5253 } 5254 return *d.Number 5255 } 5256 5257 // GetRepository returns the Repository field. 5258 func (d *DependabotAlert) GetRepository() *Repository { 5259 if d == nil { 5260 return nil 5261 } 5262 return d.Repository 5263 } 5264 5265 // GetSecurityAdvisory returns the SecurityAdvisory field. 5266 func (d *DependabotAlert) GetSecurityAdvisory() *DependabotSecurityAdvisory { 5267 if d == nil { 5268 return nil 5269 } 5270 return d.SecurityAdvisory 5271 } 5272 5273 // GetSecurityVulnerability returns the SecurityVulnerability field. 5274 func (d *DependabotAlert) GetSecurityVulnerability() *AdvisoryVulnerability { 5275 if d == nil { 5276 return nil 5277 } 5278 return d.SecurityVulnerability 5279 } 5280 5281 // GetState returns the State field if it's non-nil, zero value otherwise. 5282 func (d *DependabotAlert) GetState() string { 5283 if d == nil || d.State == nil { 5284 return "" 5285 } 5286 return *d.State 5287 } 5288 5289 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5290 func (d *DependabotAlert) GetUpdatedAt() Timestamp { 5291 if d == nil || d.UpdatedAt == nil { 5292 return Timestamp{} 5293 } 5294 return *d.UpdatedAt 5295 } 5296 5297 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5298 func (d *DependabotAlert) GetURL() string { 5299 if d == nil || d.URL == nil { 5300 return "" 5301 } 5302 return *d.URL 5303 } 5304 5305 // GetAction returns the Action field if it's non-nil, zero value otherwise. 5306 func (d *DependabotAlertEvent) GetAction() string { 5307 if d == nil || d.Action == nil { 5308 return "" 5309 } 5310 return *d.Action 5311 } 5312 5313 // GetAlert returns the Alert field. 5314 func (d *DependabotAlertEvent) GetAlert() *DependabotAlert { 5315 if d == nil { 5316 return nil 5317 } 5318 return d.Alert 5319 } 5320 5321 // GetEnterprise returns the Enterprise field. 5322 func (d *DependabotAlertEvent) GetEnterprise() *Enterprise { 5323 if d == nil { 5324 return nil 5325 } 5326 return d.Enterprise 5327 } 5328 5329 // GetInstallation returns the Installation field. 5330 func (d *DependabotAlertEvent) GetInstallation() *Installation { 5331 if d == nil { 5332 return nil 5333 } 5334 return d.Installation 5335 } 5336 5337 // GetOrganization returns the Organization field. 5338 func (d *DependabotAlertEvent) GetOrganization() *Organization { 5339 if d == nil { 5340 return nil 5341 } 5342 return d.Organization 5343 } 5344 5345 // GetRepo returns the Repo field. 5346 func (d *DependabotAlertEvent) GetRepo() *Repository { 5347 if d == nil { 5348 return nil 5349 } 5350 return d.Repo 5351 } 5352 5353 // GetSender returns the Sender field. 5354 func (d *DependabotAlertEvent) GetSender() *User { 5355 if d == nil { 5356 return nil 5357 } 5358 return d.Sender 5359 } 5360 5361 // GetDismissedComment returns the DismissedComment field if it's non-nil, zero value otherwise. 5362 func (d *DependabotAlertState) GetDismissedComment() string { 5363 if d == nil || d.DismissedComment == nil { 5364 return "" 5365 } 5366 return *d.DismissedComment 5367 } 5368 5369 // GetDismissedReason returns the DismissedReason field if it's non-nil, zero value otherwise. 5370 func (d *DependabotAlertState) GetDismissedReason() string { 5371 if d == nil || d.DismissedReason == nil { 5372 return "" 5373 } 5374 return *d.DismissedReason 5375 } 5376 5377 // GetCVEID returns the CVEID field if it's non-nil, zero value otherwise. 5378 func (d *DependabotSecurityAdvisory) GetCVEID() string { 5379 if d == nil || d.CVEID == nil { 5380 return "" 5381 } 5382 return *d.CVEID 5383 } 5384 5385 // GetCVSS returns the CVSS field. 5386 func (d *DependabotSecurityAdvisory) GetCVSS() *AdvisoryCVSS { 5387 if d == nil { 5388 return nil 5389 } 5390 return d.CVSS 5391 } 5392 5393 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5394 func (d *DependabotSecurityAdvisory) GetDescription() string { 5395 if d == nil || d.Description == nil { 5396 return "" 5397 } 5398 return *d.Description 5399 } 5400 5401 // GetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise. 5402 func (d *DependabotSecurityAdvisory) GetGHSAID() string { 5403 if d == nil || d.GHSAID == nil { 5404 return "" 5405 } 5406 return *d.GHSAID 5407 } 5408 5409 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 5410 func (d *DependabotSecurityAdvisory) GetPublishedAt() Timestamp { 5411 if d == nil || d.PublishedAt == nil { 5412 return Timestamp{} 5413 } 5414 return *d.PublishedAt 5415 } 5416 5417 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 5418 func (d *DependabotSecurityAdvisory) GetSeverity() string { 5419 if d == nil || d.Severity == nil { 5420 return "" 5421 } 5422 return *d.Severity 5423 } 5424 5425 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 5426 func (d *DependabotSecurityAdvisory) GetSummary() string { 5427 if d == nil || d.Summary == nil { 5428 return "" 5429 } 5430 return *d.Summary 5431 } 5432 5433 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5434 func (d *DependabotSecurityAdvisory) GetUpdatedAt() Timestamp { 5435 if d == nil || d.UpdatedAt == nil { 5436 return Timestamp{} 5437 } 5438 return *d.UpdatedAt 5439 } 5440 5441 // GetWithdrawnAt returns the WithdrawnAt field if it's non-nil, zero value otherwise. 5442 func (d *DependabotSecurityAdvisory) GetWithdrawnAt() Timestamp { 5443 if d == nil || d.WithdrawnAt == nil { 5444 return Timestamp{} 5445 } 5446 return *d.WithdrawnAt 5447 } 5448 5449 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 5450 func (d *DependabotSecurityUpdates) GetStatus() string { 5451 if d == nil || d.Status == nil { 5452 return "" 5453 } 5454 return *d.Status 5455 } 5456 5457 // GetManifestPath returns the ManifestPath field if it's non-nil, zero value otherwise. 5458 func (d *Dependency) GetManifestPath() string { 5459 if d == nil || d.ManifestPath == nil { 5460 return "" 5461 } 5462 return *d.ManifestPath 5463 } 5464 5465 // GetPackage returns the Package field. 5466 func (d *Dependency) GetPackage() *VulnerabilityPackage { 5467 if d == nil { 5468 return nil 5469 } 5470 return d.Package 5471 } 5472 5473 // GetScope returns the Scope field if it's non-nil, zero value otherwise. 5474 func (d *Dependency) GetScope() string { 5475 if d == nil || d.Scope == nil { 5476 return "" 5477 } 5478 return *d.Scope 5479 } 5480 5481 // GetAction returns the Action field if it's non-nil, zero value otherwise. 5482 func (d *DeployKeyEvent) GetAction() string { 5483 if d == nil || d.Action == nil { 5484 return "" 5485 } 5486 return *d.Action 5487 } 5488 5489 // GetInstallation returns the Installation field. 5490 func (d *DeployKeyEvent) GetInstallation() *Installation { 5491 if d == nil { 5492 return nil 5493 } 5494 return d.Installation 5495 } 5496 5497 // GetKey returns the Key field. 5498 func (d *DeployKeyEvent) GetKey() *Key { 5499 if d == nil { 5500 return nil 5501 } 5502 return d.Key 5503 } 5504 5505 // GetOrganization returns the Organization field. 5506 func (d *DeployKeyEvent) GetOrganization() *Organization { 5507 if d == nil { 5508 return nil 5509 } 5510 return d.Organization 5511 } 5512 5513 // GetRepo returns the Repo field. 5514 func (d *DeployKeyEvent) GetRepo() *Repository { 5515 if d == nil { 5516 return nil 5517 } 5518 return d.Repo 5519 } 5520 5521 // GetSender returns the Sender field. 5522 func (d *DeployKeyEvent) GetSender() *User { 5523 if d == nil { 5524 return nil 5525 } 5526 return d.Sender 5527 } 5528 5529 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5530 func (d *Deployment) GetCreatedAt() Timestamp { 5531 if d == nil || d.CreatedAt == nil { 5532 return Timestamp{} 5533 } 5534 return *d.CreatedAt 5535 } 5536 5537 // GetCreator returns the Creator field. 5538 func (d *Deployment) GetCreator() *User { 5539 if d == nil { 5540 return nil 5541 } 5542 return d.Creator 5543 } 5544 5545 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5546 func (d *Deployment) GetDescription() string { 5547 if d == nil || d.Description == nil { 5548 return "" 5549 } 5550 return *d.Description 5551 } 5552 5553 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 5554 func (d *Deployment) GetEnvironment() string { 5555 if d == nil || d.Environment == nil { 5556 return "" 5557 } 5558 return *d.Environment 5559 } 5560 5561 // GetID returns the ID field if it's non-nil, zero value otherwise. 5562 func (d *Deployment) GetID() int64 { 5563 if d == nil || d.ID == nil { 5564 return 0 5565 } 5566 return *d.ID 5567 } 5568 5569 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5570 func (d *Deployment) GetNodeID() string { 5571 if d == nil || d.NodeID == nil { 5572 return "" 5573 } 5574 return *d.NodeID 5575 } 5576 5577 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 5578 func (d *Deployment) GetRef() string { 5579 if d == nil || d.Ref == nil { 5580 return "" 5581 } 5582 return *d.Ref 5583 } 5584 5585 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 5586 func (d *Deployment) GetRepositoryURL() string { 5587 if d == nil || d.RepositoryURL == nil { 5588 return "" 5589 } 5590 return *d.RepositoryURL 5591 } 5592 5593 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 5594 func (d *Deployment) GetSHA() string { 5595 if d == nil || d.SHA == nil { 5596 return "" 5597 } 5598 return *d.SHA 5599 } 5600 5601 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 5602 func (d *Deployment) GetStatusesURL() string { 5603 if d == nil || d.StatusesURL == nil { 5604 return "" 5605 } 5606 return *d.StatusesURL 5607 } 5608 5609 // GetTask returns the Task field if it's non-nil, zero value otherwise. 5610 func (d *Deployment) GetTask() string { 5611 if d == nil || d.Task == nil { 5612 return "" 5613 } 5614 return *d.Task 5615 } 5616 5617 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5618 func (d *Deployment) GetUpdatedAt() Timestamp { 5619 if d == nil || d.UpdatedAt == nil { 5620 return Timestamp{} 5621 } 5622 return *d.UpdatedAt 5623 } 5624 5625 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5626 func (d *Deployment) GetURL() string { 5627 if d == nil || d.URL == nil { 5628 return "" 5629 } 5630 return *d.URL 5631 } 5632 5633 // GetID returns the ID field if it's non-nil, zero value otherwise. 5634 func (d *DeploymentBranchPolicy) GetID() int64 { 5635 if d == nil || d.ID == nil { 5636 return 0 5637 } 5638 return *d.ID 5639 } 5640 5641 // GetName returns the Name field if it's non-nil, zero value otherwise. 5642 func (d *DeploymentBranchPolicy) GetName() string { 5643 if d == nil || d.Name == nil { 5644 return "" 5645 } 5646 return *d.Name 5647 } 5648 5649 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5650 func (d *DeploymentBranchPolicy) GetNodeID() string { 5651 if d == nil || d.NodeID == nil { 5652 return "" 5653 } 5654 return *d.NodeID 5655 } 5656 5657 // GetType returns the Type field if it's non-nil, zero value otherwise. 5658 func (d *DeploymentBranchPolicy) GetType() string { 5659 if d == nil || d.Type == nil { 5660 return "" 5661 } 5662 return *d.Type 5663 } 5664 5665 // GetName returns the Name field if it's non-nil, zero value otherwise. 5666 func (d *DeploymentBranchPolicyRequest) GetName() string { 5667 if d == nil || d.Name == nil { 5668 return "" 5669 } 5670 return *d.Name 5671 } 5672 5673 // GetType returns the Type field if it's non-nil, zero value otherwise. 5674 func (d *DeploymentBranchPolicyRequest) GetType() string { 5675 if d == nil || d.Type == nil { 5676 return "" 5677 } 5678 return *d.Type 5679 } 5680 5681 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 5682 func (d *DeploymentBranchPolicyResponse) GetTotalCount() int { 5683 if d == nil || d.TotalCount == nil { 5684 return 0 5685 } 5686 return *d.TotalCount 5687 } 5688 5689 // GetDeployment returns the Deployment field. 5690 func (d *DeploymentEvent) GetDeployment() *Deployment { 5691 if d == nil { 5692 return nil 5693 } 5694 return d.Deployment 5695 } 5696 5697 // GetInstallation returns the Installation field. 5698 func (d *DeploymentEvent) GetInstallation() *Installation { 5699 if d == nil { 5700 return nil 5701 } 5702 return d.Installation 5703 } 5704 5705 // GetOrg returns the Org field. 5706 func (d *DeploymentEvent) GetOrg() *Organization { 5707 if d == nil { 5708 return nil 5709 } 5710 return d.Org 5711 } 5712 5713 // GetRepo returns the Repo field. 5714 func (d *DeploymentEvent) GetRepo() *Repository { 5715 if d == nil { 5716 return nil 5717 } 5718 return d.Repo 5719 } 5720 5721 // GetSender returns the Sender field. 5722 func (d *DeploymentEvent) GetSender() *User { 5723 if d == nil { 5724 return nil 5725 } 5726 return d.Sender 5727 } 5728 5729 // GetWorkflow returns the Workflow field. 5730 func (d *DeploymentEvent) GetWorkflow() *Workflow { 5731 if d == nil { 5732 return nil 5733 } 5734 return d.Workflow 5735 } 5736 5737 // GetWorkflowRun returns the WorkflowRun field. 5738 func (d *DeploymentEvent) GetWorkflowRun() *WorkflowRun { 5739 if d == nil { 5740 return nil 5741 } 5742 return d.WorkflowRun 5743 } 5744 5745 // GetAction returns the Action field if it's non-nil, zero value otherwise. 5746 func (d *DeploymentProtectionRuleEvent) GetAction() string { 5747 if d == nil || d.Action == nil { 5748 return "" 5749 } 5750 return *d.Action 5751 } 5752 5753 // GetDeployment returns the Deployment field. 5754 func (d *DeploymentProtectionRuleEvent) GetDeployment() *Deployment { 5755 if d == nil { 5756 return nil 5757 } 5758 return d.Deployment 5759 } 5760 5761 // GetDeploymentCallbackURL returns the DeploymentCallbackURL field if it's non-nil, zero value otherwise. 5762 func (d *DeploymentProtectionRuleEvent) GetDeploymentCallbackURL() string { 5763 if d == nil || d.DeploymentCallbackURL == nil { 5764 return "" 5765 } 5766 return *d.DeploymentCallbackURL 5767 } 5768 5769 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 5770 func (d *DeploymentProtectionRuleEvent) GetEnvironment() string { 5771 if d == nil || d.Environment == nil { 5772 return "" 5773 } 5774 return *d.Environment 5775 } 5776 5777 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 5778 func (d *DeploymentProtectionRuleEvent) GetEvent() string { 5779 if d == nil || d.Event == nil { 5780 return "" 5781 } 5782 return *d.Event 5783 } 5784 5785 // GetInstallation returns the Installation field. 5786 func (d *DeploymentProtectionRuleEvent) GetInstallation() *Installation { 5787 if d == nil { 5788 return nil 5789 } 5790 return d.Installation 5791 } 5792 5793 // GetOrganization returns the Organization field. 5794 func (d *DeploymentProtectionRuleEvent) GetOrganization() *Organization { 5795 if d == nil { 5796 return nil 5797 } 5798 return d.Organization 5799 } 5800 5801 // GetRepo returns the Repo field. 5802 func (d *DeploymentProtectionRuleEvent) GetRepo() *Repository { 5803 if d == nil { 5804 return nil 5805 } 5806 return d.Repo 5807 } 5808 5809 // GetSender returns the Sender field. 5810 func (d *DeploymentProtectionRuleEvent) GetSender() *User { 5811 if d == nil { 5812 return nil 5813 } 5814 return d.Sender 5815 } 5816 5817 // GetAutoMerge returns the AutoMerge field if it's non-nil, zero value otherwise. 5818 func (d *DeploymentRequest) GetAutoMerge() bool { 5819 if d == nil || d.AutoMerge == nil { 5820 return false 5821 } 5822 return *d.AutoMerge 5823 } 5824 5825 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5826 func (d *DeploymentRequest) GetDescription() string { 5827 if d == nil || d.Description == nil { 5828 return "" 5829 } 5830 return *d.Description 5831 } 5832 5833 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 5834 func (d *DeploymentRequest) GetEnvironment() string { 5835 if d == nil || d.Environment == nil { 5836 return "" 5837 } 5838 return *d.Environment 5839 } 5840 5841 // GetProductionEnvironment returns the ProductionEnvironment field if it's non-nil, zero value otherwise. 5842 func (d *DeploymentRequest) GetProductionEnvironment() bool { 5843 if d == nil || d.ProductionEnvironment == nil { 5844 return false 5845 } 5846 return *d.ProductionEnvironment 5847 } 5848 5849 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 5850 func (d *DeploymentRequest) GetRef() string { 5851 if d == nil || d.Ref == nil { 5852 return "" 5853 } 5854 return *d.Ref 5855 } 5856 5857 // GetRequiredContexts returns the RequiredContexts field if it's non-nil, zero value otherwise. 5858 func (d *DeploymentRequest) GetRequiredContexts() []string { 5859 if d == nil || d.RequiredContexts == nil { 5860 return nil 5861 } 5862 return *d.RequiredContexts 5863 } 5864 5865 // GetTask returns the Task field if it's non-nil, zero value otherwise. 5866 func (d *DeploymentRequest) GetTask() string { 5867 if d == nil || d.Task == nil { 5868 return "" 5869 } 5870 return *d.Task 5871 } 5872 5873 // GetTransientEnvironment returns the TransientEnvironment field if it's non-nil, zero value otherwise. 5874 func (d *DeploymentRequest) GetTransientEnvironment() bool { 5875 if d == nil || d.TransientEnvironment == nil { 5876 return false 5877 } 5878 return *d.TransientEnvironment 5879 } 5880 5881 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 5882 func (d *DeploymentStatus) GetCreatedAt() Timestamp { 5883 if d == nil || d.CreatedAt == nil { 5884 return Timestamp{} 5885 } 5886 return *d.CreatedAt 5887 } 5888 5889 // GetCreator returns the Creator field. 5890 func (d *DeploymentStatus) GetCreator() *User { 5891 if d == nil { 5892 return nil 5893 } 5894 return d.Creator 5895 } 5896 5897 // GetDeploymentURL returns the DeploymentURL field if it's non-nil, zero value otherwise. 5898 func (d *DeploymentStatus) GetDeploymentURL() string { 5899 if d == nil || d.DeploymentURL == nil { 5900 return "" 5901 } 5902 return *d.DeploymentURL 5903 } 5904 5905 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 5906 func (d *DeploymentStatus) GetDescription() string { 5907 if d == nil || d.Description == nil { 5908 return "" 5909 } 5910 return *d.Description 5911 } 5912 5913 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 5914 func (d *DeploymentStatus) GetEnvironment() string { 5915 if d == nil || d.Environment == nil { 5916 return "" 5917 } 5918 return *d.Environment 5919 } 5920 5921 // GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. 5922 func (d *DeploymentStatus) GetEnvironmentURL() string { 5923 if d == nil || d.EnvironmentURL == nil { 5924 return "" 5925 } 5926 return *d.EnvironmentURL 5927 } 5928 5929 // GetID returns the ID field if it's non-nil, zero value otherwise. 5930 func (d *DeploymentStatus) GetID() int64 { 5931 if d == nil || d.ID == nil { 5932 return 0 5933 } 5934 return *d.ID 5935 } 5936 5937 // GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. 5938 func (d *DeploymentStatus) GetLogURL() string { 5939 if d == nil || d.LogURL == nil { 5940 return "" 5941 } 5942 return *d.LogURL 5943 } 5944 5945 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 5946 func (d *DeploymentStatus) GetNodeID() string { 5947 if d == nil || d.NodeID == nil { 5948 return "" 5949 } 5950 return *d.NodeID 5951 } 5952 5953 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 5954 func (d *DeploymentStatus) GetRepositoryURL() string { 5955 if d == nil || d.RepositoryURL == nil { 5956 return "" 5957 } 5958 return *d.RepositoryURL 5959 } 5960 5961 // GetState returns the State field if it's non-nil, zero value otherwise. 5962 func (d *DeploymentStatus) GetState() string { 5963 if d == nil || d.State == nil { 5964 return "" 5965 } 5966 return *d.State 5967 } 5968 5969 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 5970 func (d *DeploymentStatus) GetTargetURL() string { 5971 if d == nil || d.TargetURL == nil { 5972 return "" 5973 } 5974 return *d.TargetURL 5975 } 5976 5977 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 5978 func (d *DeploymentStatus) GetUpdatedAt() Timestamp { 5979 if d == nil || d.UpdatedAt == nil { 5980 return Timestamp{} 5981 } 5982 return *d.UpdatedAt 5983 } 5984 5985 // GetURL returns the URL field if it's non-nil, zero value otherwise. 5986 func (d *DeploymentStatus) GetURL() string { 5987 if d == nil || d.URL == nil { 5988 return "" 5989 } 5990 return *d.URL 5991 } 5992 5993 // GetDeployment returns the Deployment field. 5994 func (d *DeploymentStatusEvent) GetDeployment() *Deployment { 5995 if d == nil { 5996 return nil 5997 } 5998 return d.Deployment 5999 } 6000 6001 // GetDeploymentStatus returns the DeploymentStatus field. 6002 func (d *DeploymentStatusEvent) GetDeploymentStatus() *DeploymentStatus { 6003 if d == nil { 6004 return nil 6005 } 6006 return d.DeploymentStatus 6007 } 6008 6009 // GetInstallation returns the Installation field. 6010 func (d *DeploymentStatusEvent) GetInstallation() *Installation { 6011 if d == nil { 6012 return nil 6013 } 6014 return d.Installation 6015 } 6016 6017 // GetOrg returns the Org field. 6018 func (d *DeploymentStatusEvent) GetOrg() *Organization { 6019 if d == nil { 6020 return nil 6021 } 6022 return d.Org 6023 } 6024 6025 // GetRepo returns the Repo field. 6026 func (d *DeploymentStatusEvent) GetRepo() *Repository { 6027 if d == nil { 6028 return nil 6029 } 6030 return d.Repo 6031 } 6032 6033 // GetSender returns the Sender field. 6034 func (d *DeploymentStatusEvent) GetSender() *User { 6035 if d == nil { 6036 return nil 6037 } 6038 return d.Sender 6039 } 6040 6041 // GetAutoInactive returns the AutoInactive field if it's non-nil, zero value otherwise. 6042 func (d *DeploymentStatusRequest) GetAutoInactive() bool { 6043 if d == nil || d.AutoInactive == nil { 6044 return false 6045 } 6046 return *d.AutoInactive 6047 } 6048 6049 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 6050 func (d *DeploymentStatusRequest) GetDescription() string { 6051 if d == nil || d.Description == nil { 6052 return "" 6053 } 6054 return *d.Description 6055 } 6056 6057 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 6058 func (d *DeploymentStatusRequest) GetEnvironment() string { 6059 if d == nil || d.Environment == nil { 6060 return "" 6061 } 6062 return *d.Environment 6063 } 6064 6065 // GetEnvironmentURL returns the EnvironmentURL field if it's non-nil, zero value otherwise. 6066 func (d *DeploymentStatusRequest) GetEnvironmentURL() string { 6067 if d == nil || d.EnvironmentURL == nil { 6068 return "" 6069 } 6070 return *d.EnvironmentURL 6071 } 6072 6073 // GetLogURL returns the LogURL field if it's non-nil, zero value otherwise. 6074 func (d *DeploymentStatusRequest) GetLogURL() string { 6075 if d == nil || d.LogURL == nil { 6076 return "" 6077 } 6078 return *d.LogURL 6079 } 6080 6081 // GetState returns the State field if it's non-nil, zero value otherwise. 6082 func (d *DeploymentStatusRequest) GetState() string { 6083 if d == nil || d.State == nil { 6084 return "" 6085 } 6086 return *d.State 6087 } 6088 6089 // GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 6090 func (d *Discussion) GetActiveLockReason() string { 6091 if d == nil || d.ActiveLockReason == nil { 6092 return "" 6093 } 6094 return *d.ActiveLockReason 6095 } 6096 6097 // GetAnswerChosenAt returns the AnswerChosenAt field if it's non-nil, zero value otherwise. 6098 func (d *Discussion) GetAnswerChosenAt() Timestamp { 6099 if d == nil || d.AnswerChosenAt == nil { 6100 return Timestamp{} 6101 } 6102 return *d.AnswerChosenAt 6103 } 6104 6105 // GetAnswerChosenBy returns the AnswerChosenBy field if it's non-nil, zero value otherwise. 6106 func (d *Discussion) GetAnswerChosenBy() string { 6107 if d == nil || d.AnswerChosenBy == nil { 6108 return "" 6109 } 6110 return *d.AnswerChosenBy 6111 } 6112 6113 // GetAnswerHTMLURL returns the AnswerHTMLURL field if it's non-nil, zero value otherwise. 6114 func (d *Discussion) GetAnswerHTMLURL() string { 6115 if d == nil || d.AnswerHTMLURL == nil { 6116 return "" 6117 } 6118 return *d.AnswerHTMLURL 6119 } 6120 6121 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 6122 func (d *Discussion) GetAuthorAssociation() string { 6123 if d == nil || d.AuthorAssociation == nil { 6124 return "" 6125 } 6126 return *d.AuthorAssociation 6127 } 6128 6129 // GetBody returns the Body field if it's non-nil, zero value otherwise. 6130 func (d *Discussion) GetBody() string { 6131 if d == nil || d.Body == nil { 6132 return "" 6133 } 6134 return *d.Body 6135 } 6136 6137 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 6138 func (d *Discussion) GetComments() int { 6139 if d == nil || d.Comments == nil { 6140 return 0 6141 } 6142 return *d.Comments 6143 } 6144 6145 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6146 func (d *Discussion) GetCreatedAt() Timestamp { 6147 if d == nil || d.CreatedAt == nil { 6148 return Timestamp{} 6149 } 6150 return *d.CreatedAt 6151 } 6152 6153 // GetDiscussionCategory returns the DiscussionCategory field. 6154 func (d *Discussion) GetDiscussionCategory() *DiscussionCategory { 6155 if d == nil { 6156 return nil 6157 } 6158 return d.DiscussionCategory 6159 } 6160 6161 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6162 func (d *Discussion) GetHTMLURL() string { 6163 if d == nil || d.HTMLURL == nil { 6164 return "" 6165 } 6166 return *d.HTMLURL 6167 } 6168 6169 // GetID returns the ID field if it's non-nil, zero value otherwise. 6170 func (d *Discussion) GetID() int64 { 6171 if d == nil || d.ID == nil { 6172 return 0 6173 } 6174 return *d.ID 6175 } 6176 6177 // GetLocked returns the Locked field if it's non-nil, zero value otherwise. 6178 func (d *Discussion) GetLocked() bool { 6179 if d == nil || d.Locked == nil { 6180 return false 6181 } 6182 return *d.Locked 6183 } 6184 6185 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6186 func (d *Discussion) GetNodeID() string { 6187 if d == nil || d.NodeID == nil { 6188 return "" 6189 } 6190 return *d.NodeID 6191 } 6192 6193 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 6194 func (d *Discussion) GetNumber() int { 6195 if d == nil || d.Number == nil { 6196 return 0 6197 } 6198 return *d.Number 6199 } 6200 6201 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 6202 func (d *Discussion) GetRepositoryURL() string { 6203 if d == nil || d.RepositoryURL == nil { 6204 return "" 6205 } 6206 return *d.RepositoryURL 6207 } 6208 6209 // GetState returns the State field if it's non-nil, zero value otherwise. 6210 func (d *Discussion) GetState() string { 6211 if d == nil || d.State == nil { 6212 return "" 6213 } 6214 return *d.State 6215 } 6216 6217 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 6218 func (d *Discussion) GetTitle() string { 6219 if d == nil || d.Title == nil { 6220 return "" 6221 } 6222 return *d.Title 6223 } 6224 6225 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6226 func (d *Discussion) GetUpdatedAt() Timestamp { 6227 if d == nil || d.UpdatedAt == nil { 6228 return Timestamp{} 6229 } 6230 return *d.UpdatedAt 6231 } 6232 6233 // GetUser returns the User field. 6234 func (d *Discussion) GetUser() *User { 6235 if d == nil { 6236 return nil 6237 } 6238 return d.User 6239 } 6240 6241 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6242 func (d *DiscussionCategory) GetCreatedAt() Timestamp { 6243 if d == nil || d.CreatedAt == nil { 6244 return Timestamp{} 6245 } 6246 return *d.CreatedAt 6247 } 6248 6249 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 6250 func (d *DiscussionCategory) GetDescription() string { 6251 if d == nil || d.Description == nil { 6252 return "" 6253 } 6254 return *d.Description 6255 } 6256 6257 // GetEmoji returns the Emoji field if it's non-nil, zero value otherwise. 6258 func (d *DiscussionCategory) GetEmoji() string { 6259 if d == nil || d.Emoji == nil { 6260 return "" 6261 } 6262 return *d.Emoji 6263 } 6264 6265 // GetID returns the ID field if it's non-nil, zero value otherwise. 6266 func (d *DiscussionCategory) GetID() int64 { 6267 if d == nil || d.ID == nil { 6268 return 0 6269 } 6270 return *d.ID 6271 } 6272 6273 // GetIsAnswerable returns the IsAnswerable field if it's non-nil, zero value otherwise. 6274 func (d *DiscussionCategory) GetIsAnswerable() bool { 6275 if d == nil || d.IsAnswerable == nil { 6276 return false 6277 } 6278 return *d.IsAnswerable 6279 } 6280 6281 // GetName returns the Name field if it's non-nil, zero value otherwise. 6282 func (d *DiscussionCategory) GetName() string { 6283 if d == nil || d.Name == nil { 6284 return "" 6285 } 6286 return *d.Name 6287 } 6288 6289 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6290 func (d *DiscussionCategory) GetNodeID() string { 6291 if d == nil || d.NodeID == nil { 6292 return "" 6293 } 6294 return *d.NodeID 6295 } 6296 6297 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 6298 func (d *DiscussionCategory) GetRepositoryID() int64 { 6299 if d == nil || d.RepositoryID == nil { 6300 return 0 6301 } 6302 return *d.RepositoryID 6303 } 6304 6305 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 6306 func (d *DiscussionCategory) GetSlug() string { 6307 if d == nil || d.Slug == nil { 6308 return "" 6309 } 6310 return *d.Slug 6311 } 6312 6313 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6314 func (d *DiscussionCategory) GetUpdatedAt() Timestamp { 6315 if d == nil || d.UpdatedAt == nil { 6316 return Timestamp{} 6317 } 6318 return *d.UpdatedAt 6319 } 6320 6321 // GetAuthor returns the Author field. 6322 func (d *DiscussionComment) GetAuthor() *User { 6323 if d == nil { 6324 return nil 6325 } 6326 return d.Author 6327 } 6328 6329 // GetBody returns the Body field if it's non-nil, zero value otherwise. 6330 func (d *DiscussionComment) GetBody() string { 6331 if d == nil || d.Body == nil { 6332 return "" 6333 } 6334 return *d.Body 6335 } 6336 6337 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 6338 func (d *DiscussionComment) GetBodyHTML() string { 6339 if d == nil || d.BodyHTML == nil { 6340 return "" 6341 } 6342 return *d.BodyHTML 6343 } 6344 6345 // GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. 6346 func (d *DiscussionComment) GetBodyVersion() string { 6347 if d == nil || d.BodyVersion == nil { 6348 return "" 6349 } 6350 return *d.BodyVersion 6351 } 6352 6353 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6354 func (d *DiscussionComment) GetCreatedAt() Timestamp { 6355 if d == nil || d.CreatedAt == nil { 6356 return Timestamp{} 6357 } 6358 return *d.CreatedAt 6359 } 6360 6361 // GetDiscussionURL returns the DiscussionURL field if it's non-nil, zero value otherwise. 6362 func (d *DiscussionComment) GetDiscussionURL() string { 6363 if d == nil || d.DiscussionURL == nil { 6364 return "" 6365 } 6366 return *d.DiscussionURL 6367 } 6368 6369 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6370 func (d *DiscussionComment) GetHTMLURL() string { 6371 if d == nil || d.HTMLURL == nil { 6372 return "" 6373 } 6374 return *d.HTMLURL 6375 } 6376 6377 // GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. 6378 func (d *DiscussionComment) GetLastEditedAt() Timestamp { 6379 if d == nil || d.LastEditedAt == nil { 6380 return Timestamp{} 6381 } 6382 return *d.LastEditedAt 6383 } 6384 6385 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6386 func (d *DiscussionComment) GetNodeID() string { 6387 if d == nil || d.NodeID == nil { 6388 return "" 6389 } 6390 return *d.NodeID 6391 } 6392 6393 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 6394 func (d *DiscussionComment) GetNumber() int { 6395 if d == nil || d.Number == nil { 6396 return 0 6397 } 6398 return *d.Number 6399 } 6400 6401 // GetReactions returns the Reactions field. 6402 func (d *DiscussionComment) GetReactions() *Reactions { 6403 if d == nil { 6404 return nil 6405 } 6406 return d.Reactions 6407 } 6408 6409 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6410 func (d *DiscussionComment) GetUpdatedAt() Timestamp { 6411 if d == nil || d.UpdatedAt == nil { 6412 return Timestamp{} 6413 } 6414 return *d.UpdatedAt 6415 } 6416 6417 // GetURL returns the URL field if it's non-nil, zero value otherwise. 6418 func (d *DiscussionComment) GetURL() string { 6419 if d == nil || d.URL == nil { 6420 return "" 6421 } 6422 return *d.URL 6423 } 6424 6425 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6426 func (d *DiscussionCommentEvent) GetAction() string { 6427 if d == nil || d.Action == nil { 6428 return "" 6429 } 6430 return *d.Action 6431 } 6432 6433 // GetComment returns the Comment field. 6434 func (d *DiscussionCommentEvent) GetComment() *CommentDiscussion { 6435 if d == nil { 6436 return nil 6437 } 6438 return d.Comment 6439 } 6440 6441 // GetDiscussion returns the Discussion field. 6442 func (d *DiscussionCommentEvent) GetDiscussion() *Discussion { 6443 if d == nil { 6444 return nil 6445 } 6446 return d.Discussion 6447 } 6448 6449 // GetInstallation returns the Installation field. 6450 func (d *DiscussionCommentEvent) GetInstallation() *Installation { 6451 if d == nil { 6452 return nil 6453 } 6454 return d.Installation 6455 } 6456 6457 // GetOrg returns the Org field. 6458 func (d *DiscussionCommentEvent) GetOrg() *Organization { 6459 if d == nil { 6460 return nil 6461 } 6462 return d.Org 6463 } 6464 6465 // GetRepo returns the Repo field. 6466 func (d *DiscussionCommentEvent) GetRepo() *Repository { 6467 if d == nil { 6468 return nil 6469 } 6470 return d.Repo 6471 } 6472 6473 // GetSender returns the Sender field. 6474 func (d *DiscussionCommentEvent) GetSender() *User { 6475 if d == nil { 6476 return nil 6477 } 6478 return d.Sender 6479 } 6480 6481 // GetAction returns the Action field if it's non-nil, zero value otherwise. 6482 func (d *DiscussionEvent) GetAction() string { 6483 if d == nil || d.Action == nil { 6484 return "" 6485 } 6486 return *d.Action 6487 } 6488 6489 // GetDiscussion returns the Discussion field. 6490 func (d *DiscussionEvent) GetDiscussion() *Discussion { 6491 if d == nil { 6492 return nil 6493 } 6494 return d.Discussion 6495 } 6496 6497 // GetInstallation returns the Installation field. 6498 func (d *DiscussionEvent) GetInstallation() *Installation { 6499 if d == nil { 6500 return nil 6501 } 6502 return d.Installation 6503 } 6504 6505 // GetOrg returns the Org field. 6506 func (d *DiscussionEvent) GetOrg() *Organization { 6507 if d == nil { 6508 return nil 6509 } 6510 return d.Org 6511 } 6512 6513 // GetRepo returns the Repo field. 6514 func (d *DiscussionEvent) GetRepo() *Repository { 6515 if d == nil { 6516 return nil 6517 } 6518 return d.Repo 6519 } 6520 6521 // GetSender returns the Sender field. 6522 func (d *DiscussionEvent) GetSender() *User { 6523 if d == nil { 6524 return nil 6525 } 6526 return d.Sender 6527 } 6528 6529 // GetApps returns the Apps field if it's non-nil, zero value otherwise. 6530 func (d *DismissalRestrictionsRequest) GetApps() []string { 6531 if d == nil || d.Apps == nil { 6532 return nil 6533 } 6534 return *d.Apps 6535 } 6536 6537 // GetTeams returns the Teams field if it's non-nil, zero value otherwise. 6538 func (d *DismissalRestrictionsRequest) GetTeams() []string { 6539 if d == nil || d.Teams == nil { 6540 return nil 6541 } 6542 return *d.Teams 6543 } 6544 6545 // GetUsers returns the Users field if it's non-nil, zero value otherwise. 6546 func (d *DismissalRestrictionsRequest) GetUsers() []string { 6547 if d == nil || d.Users == nil { 6548 return nil 6549 } 6550 return *d.Users 6551 } 6552 6553 // GetDismissalCommitID returns the DismissalCommitID field if it's non-nil, zero value otherwise. 6554 func (d *DismissedReview) GetDismissalCommitID() string { 6555 if d == nil || d.DismissalCommitID == nil { 6556 return "" 6557 } 6558 return *d.DismissalCommitID 6559 } 6560 6561 // GetDismissalMessage returns the DismissalMessage field if it's non-nil, zero value otherwise. 6562 func (d *DismissedReview) GetDismissalMessage() string { 6563 if d == nil || d.DismissalMessage == nil { 6564 return "" 6565 } 6566 return *d.DismissalMessage 6567 } 6568 6569 // GetReviewID returns the ReviewID field if it's non-nil, zero value otherwise. 6570 func (d *DismissedReview) GetReviewID() int64 { 6571 if d == nil || d.ReviewID == nil { 6572 return 0 6573 } 6574 return *d.ReviewID 6575 } 6576 6577 // GetState returns the State field if it's non-nil, zero value otherwise. 6578 func (d *DismissedReview) GetState() string { 6579 if d == nil || d.State == nil { 6580 return "" 6581 } 6582 return *d.State 6583 } 6584 6585 // GetFrom returns the From field if it's non-nil, zero value otherwise. 6586 func (d *DismissStaleReviewsOnPushChanges) GetFrom() bool { 6587 if d == nil || d.From == nil { 6588 return false 6589 } 6590 return *d.From 6591 } 6592 6593 // GetClientPayload returns the ClientPayload field if it's non-nil, zero value otherwise. 6594 func (d *DispatchRequestOptions) GetClientPayload() json.RawMessage { 6595 if d == nil || d.ClientPayload == nil { 6596 return json.RawMessage{} 6597 } 6598 return *d.ClientPayload 6599 } 6600 6601 // GetBody returns the Body field if it's non-nil, zero value otherwise. 6602 func (d *DraftReviewComment) GetBody() string { 6603 if d == nil || d.Body == nil { 6604 return "" 6605 } 6606 return *d.Body 6607 } 6608 6609 // GetLine returns the Line field if it's non-nil, zero value otherwise. 6610 func (d *DraftReviewComment) GetLine() int { 6611 if d == nil || d.Line == nil { 6612 return 0 6613 } 6614 return *d.Line 6615 } 6616 6617 // GetPath returns the Path field if it's non-nil, zero value otherwise. 6618 func (d *DraftReviewComment) GetPath() string { 6619 if d == nil || d.Path == nil { 6620 return "" 6621 } 6622 return *d.Path 6623 } 6624 6625 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 6626 func (d *DraftReviewComment) GetPosition() int { 6627 if d == nil || d.Position == nil { 6628 return 0 6629 } 6630 return *d.Position 6631 } 6632 6633 // GetSide returns the Side field if it's non-nil, zero value otherwise. 6634 func (d *DraftReviewComment) GetSide() string { 6635 if d == nil || d.Side == nil { 6636 return "" 6637 } 6638 return *d.Side 6639 } 6640 6641 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 6642 func (d *DraftReviewComment) GetStartLine() int { 6643 if d == nil || d.StartLine == nil { 6644 return 0 6645 } 6646 return *d.StartLine 6647 } 6648 6649 // GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. 6650 func (d *DraftReviewComment) GetStartSide() string { 6651 if d == nil || d.StartSide == nil { 6652 return "" 6653 } 6654 return *d.StartSide 6655 } 6656 6657 // GetRef returns the Ref field. 6658 func (e *EditBase) GetRef() *EditRef { 6659 if e == nil { 6660 return nil 6661 } 6662 return e.Ref 6663 } 6664 6665 // GetSHA returns the SHA field. 6666 func (e *EditBase) GetSHA() *EditSHA { 6667 if e == nil { 6668 return nil 6669 } 6670 return e.SHA 6671 } 6672 6673 // GetFrom returns the From field if it's non-nil, zero value otherwise. 6674 func (e *EditBody) GetFrom() string { 6675 if e == nil || e.From == nil { 6676 return "" 6677 } 6678 return *e.From 6679 } 6680 6681 // GetBase returns the Base field. 6682 func (e *EditChange) GetBase() *EditBase { 6683 if e == nil { 6684 return nil 6685 } 6686 return e.Base 6687 } 6688 6689 // GetBody returns the Body field. 6690 func (e *EditChange) GetBody() *EditBody { 6691 if e == nil { 6692 return nil 6693 } 6694 return e.Body 6695 } 6696 6697 // GetDefaultBranch returns the DefaultBranch field. 6698 func (e *EditChange) GetDefaultBranch() *EditDefaultBranch { 6699 if e == nil { 6700 return nil 6701 } 6702 return e.DefaultBranch 6703 } 6704 6705 // GetOwner returns the Owner field. 6706 func (e *EditChange) GetOwner() *EditOwner { 6707 if e == nil { 6708 return nil 6709 } 6710 return e.Owner 6711 } 6712 6713 // GetRepo returns the Repo field. 6714 func (e *EditChange) GetRepo() *EditRepo { 6715 if e == nil { 6716 return nil 6717 } 6718 return e.Repo 6719 } 6720 6721 // GetTitle returns the Title field. 6722 func (e *EditChange) GetTitle() *EditTitle { 6723 if e == nil { 6724 return nil 6725 } 6726 return e.Title 6727 } 6728 6729 // GetFrom returns the From field if it's non-nil, zero value otherwise. 6730 func (e *EditDefaultBranch) GetFrom() string { 6731 if e == nil || e.From == nil { 6732 return "" 6733 } 6734 return *e.From 6735 } 6736 6737 // GetOwnerInfo returns the OwnerInfo field. 6738 func (e *EditOwner) GetOwnerInfo() *OwnerInfo { 6739 if e == nil { 6740 return nil 6741 } 6742 return e.OwnerInfo 6743 } 6744 6745 // GetFrom returns the From field if it's non-nil, zero value otherwise. 6746 func (e *EditRef) GetFrom() string { 6747 if e == nil || e.From == nil { 6748 return "" 6749 } 6750 return *e.From 6751 } 6752 6753 // GetName returns the Name field. 6754 func (e *EditRepo) GetName() *RepoName { 6755 if e == nil { 6756 return nil 6757 } 6758 return e.Name 6759 } 6760 6761 // GetFrom returns the From field if it's non-nil, zero value otherwise. 6762 func (e *EditSHA) GetFrom() string { 6763 if e == nil || e.From == nil { 6764 return "" 6765 } 6766 return *e.From 6767 } 6768 6769 // GetFrom returns the From field if it's non-nil, zero value otherwise. 6770 func (e *EditTitle) GetFrom() string { 6771 if e == nil || e.From == nil { 6772 return "" 6773 } 6774 return *e.From 6775 } 6776 6777 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 6778 func (e *Enterprise) GetAvatarURL() string { 6779 if e == nil || e.AvatarURL == nil { 6780 return "" 6781 } 6782 return *e.AvatarURL 6783 } 6784 6785 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6786 func (e *Enterprise) GetCreatedAt() Timestamp { 6787 if e == nil || e.CreatedAt == nil { 6788 return Timestamp{} 6789 } 6790 return *e.CreatedAt 6791 } 6792 6793 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 6794 func (e *Enterprise) GetDescription() string { 6795 if e == nil || e.Description == nil { 6796 return "" 6797 } 6798 return *e.Description 6799 } 6800 6801 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 6802 func (e *Enterprise) GetHTMLURL() string { 6803 if e == nil || e.HTMLURL == nil { 6804 return "" 6805 } 6806 return *e.HTMLURL 6807 } 6808 6809 // GetID returns the ID field if it's non-nil, zero value otherwise. 6810 func (e *Enterprise) GetID() int { 6811 if e == nil || e.ID == nil { 6812 return 0 6813 } 6814 return *e.ID 6815 } 6816 6817 // GetName returns the Name field if it's non-nil, zero value otherwise. 6818 func (e *Enterprise) GetName() string { 6819 if e == nil || e.Name == nil { 6820 return "" 6821 } 6822 return *e.Name 6823 } 6824 6825 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 6826 func (e *Enterprise) GetNodeID() string { 6827 if e == nil || e.NodeID == nil { 6828 return "" 6829 } 6830 return *e.NodeID 6831 } 6832 6833 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 6834 func (e *Enterprise) GetSlug() string { 6835 if e == nil || e.Slug == nil { 6836 return "" 6837 } 6838 return *e.Slug 6839 } 6840 6841 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 6842 func (e *Enterprise) GetUpdatedAt() Timestamp { 6843 if e == nil || e.UpdatedAt == nil { 6844 return Timestamp{} 6845 } 6846 return *e.UpdatedAt 6847 } 6848 6849 // GetWebsiteURL returns the WebsiteURL field if it's non-nil, zero value otherwise. 6850 func (e *Enterprise) GetWebsiteURL() string { 6851 if e == nil || e.WebsiteURL == nil { 6852 return "" 6853 } 6854 return *e.WebsiteURL 6855 } 6856 6857 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 6858 func (e *EnterpriseRunnerGroup) GetAllowsPublicRepositories() bool { 6859 if e == nil || e.AllowsPublicRepositories == nil { 6860 return false 6861 } 6862 return *e.AllowsPublicRepositories 6863 } 6864 6865 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 6866 func (e *EnterpriseRunnerGroup) GetDefault() bool { 6867 if e == nil || e.Default == nil { 6868 return false 6869 } 6870 return *e.Default 6871 } 6872 6873 // GetID returns the ID field if it's non-nil, zero value otherwise. 6874 func (e *EnterpriseRunnerGroup) GetID() int64 { 6875 if e == nil || e.ID == nil { 6876 return 0 6877 } 6878 return *e.ID 6879 } 6880 6881 // GetInherited returns the Inherited field if it's non-nil, zero value otherwise. 6882 func (e *EnterpriseRunnerGroup) GetInherited() bool { 6883 if e == nil || e.Inherited == nil { 6884 return false 6885 } 6886 return *e.Inherited 6887 } 6888 6889 // GetName returns the Name field if it's non-nil, zero value otherwise. 6890 func (e *EnterpriseRunnerGroup) GetName() string { 6891 if e == nil || e.Name == nil { 6892 return "" 6893 } 6894 return *e.Name 6895 } 6896 6897 // GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. 6898 func (e *EnterpriseRunnerGroup) GetRestrictedToWorkflows() bool { 6899 if e == nil || e.RestrictedToWorkflows == nil { 6900 return false 6901 } 6902 return *e.RestrictedToWorkflows 6903 } 6904 6905 // GetRunnersURL returns the RunnersURL field if it's non-nil, zero value otherwise. 6906 func (e *EnterpriseRunnerGroup) GetRunnersURL() string { 6907 if e == nil || e.RunnersURL == nil { 6908 return "" 6909 } 6910 return *e.RunnersURL 6911 } 6912 6913 // GetSelectedOrganizationsURL returns the SelectedOrganizationsURL field if it's non-nil, zero value otherwise. 6914 func (e *EnterpriseRunnerGroup) GetSelectedOrganizationsURL() string { 6915 if e == nil || e.SelectedOrganizationsURL == nil { 6916 return "" 6917 } 6918 return *e.SelectedOrganizationsURL 6919 } 6920 6921 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 6922 func (e *EnterpriseRunnerGroup) GetVisibility() string { 6923 if e == nil || e.Visibility == nil { 6924 return "" 6925 } 6926 return *e.Visibility 6927 } 6928 6929 // GetWorkflowRestrictionsReadOnly returns the WorkflowRestrictionsReadOnly field if it's non-nil, zero value otherwise. 6930 func (e *EnterpriseRunnerGroup) GetWorkflowRestrictionsReadOnly() bool { 6931 if e == nil || e.WorkflowRestrictionsReadOnly == nil { 6932 return false 6933 } 6934 return *e.WorkflowRestrictionsReadOnly 6935 } 6936 6937 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 6938 func (e *EnterpriseRunnerGroups) GetTotalCount() int { 6939 if e == nil || e.TotalCount == nil { 6940 return 0 6941 } 6942 return *e.TotalCount 6943 } 6944 6945 // GetAdvancedSecurityEnabledForNewRepositories returns the AdvancedSecurityEnabledForNewRepositories field if it's non-nil, zero value otherwise. 6946 func (e *EnterpriseSecurityAnalysisSettings) GetAdvancedSecurityEnabledForNewRepositories() bool { 6947 if e == nil || e.AdvancedSecurityEnabledForNewRepositories == nil { 6948 return false 6949 } 6950 return *e.AdvancedSecurityEnabledForNewRepositories 6951 } 6952 6953 // GetSecretScanningEnabledForNewRepositories returns the SecretScanningEnabledForNewRepositories field if it's non-nil, zero value otherwise. 6954 func (e *EnterpriseSecurityAnalysisSettings) GetSecretScanningEnabledForNewRepositories() bool { 6955 if e == nil || e.SecretScanningEnabledForNewRepositories == nil { 6956 return false 6957 } 6958 return *e.SecretScanningEnabledForNewRepositories 6959 } 6960 6961 // GetSecretScanningPushProtectionCustomLink returns the SecretScanningPushProtectionCustomLink field if it's non-nil, zero value otherwise. 6962 func (e *EnterpriseSecurityAnalysisSettings) GetSecretScanningPushProtectionCustomLink() string { 6963 if e == nil || e.SecretScanningPushProtectionCustomLink == nil { 6964 return "" 6965 } 6966 return *e.SecretScanningPushProtectionCustomLink 6967 } 6968 6969 // GetSecretScanningPushProtectionEnabledForNewRepositories returns the SecretScanningPushProtectionEnabledForNewRepositories field if it's non-nil, zero value otherwise. 6970 func (e *EnterpriseSecurityAnalysisSettings) GetSecretScanningPushProtectionEnabledForNewRepositories() bool { 6971 if e == nil || e.SecretScanningPushProtectionEnabledForNewRepositories == nil { 6972 return false 6973 } 6974 return *e.SecretScanningPushProtectionEnabledForNewRepositories 6975 } 6976 6977 // GetCanAdminsBypass returns the CanAdminsBypass field if it's non-nil, zero value otherwise. 6978 func (e *Environment) GetCanAdminsBypass() bool { 6979 if e == nil || e.CanAdminsBypass == nil { 6980 return false 6981 } 6982 return *e.CanAdminsBypass 6983 } 6984 6985 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 6986 func (e *Environment) GetCreatedAt() Timestamp { 6987 if e == nil || e.CreatedAt == nil { 6988 return Timestamp{} 6989 } 6990 return *e.CreatedAt 6991 } 6992 6993 // GetDeploymentBranchPolicy returns the DeploymentBranchPolicy field. 6994 func (e *Environment) GetDeploymentBranchPolicy() *BranchPolicy { 6995 if e == nil { 6996 return nil 6997 } 6998 return e.DeploymentBranchPolicy 6999 } 7000 7001 // GetEnvironmentName returns the EnvironmentName field if it's non-nil, zero value otherwise. 7002 func (e *Environment) GetEnvironmentName() string { 7003 if e == nil || e.EnvironmentName == nil { 7004 return "" 7005 } 7006 return *e.EnvironmentName 7007 } 7008 7009 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7010 func (e *Environment) GetHTMLURL() string { 7011 if e == nil || e.HTMLURL == nil { 7012 return "" 7013 } 7014 return *e.HTMLURL 7015 } 7016 7017 // GetID returns the ID field if it's non-nil, zero value otherwise. 7018 func (e *Environment) GetID() int64 { 7019 if e == nil || e.ID == nil { 7020 return 0 7021 } 7022 return *e.ID 7023 } 7024 7025 // GetName returns the Name field if it's non-nil, zero value otherwise. 7026 func (e *Environment) GetName() string { 7027 if e == nil || e.Name == nil { 7028 return "" 7029 } 7030 return *e.Name 7031 } 7032 7033 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 7034 func (e *Environment) GetNodeID() string { 7035 if e == nil || e.NodeID == nil { 7036 return "" 7037 } 7038 return *e.NodeID 7039 } 7040 7041 // GetOwner returns the Owner field if it's non-nil, zero value otherwise. 7042 func (e *Environment) GetOwner() string { 7043 if e == nil || e.Owner == nil { 7044 return "" 7045 } 7046 return *e.Owner 7047 } 7048 7049 // GetRepo returns the Repo field if it's non-nil, zero value otherwise. 7050 func (e *Environment) GetRepo() string { 7051 if e == nil || e.Repo == nil { 7052 return "" 7053 } 7054 return *e.Repo 7055 } 7056 7057 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7058 func (e *Environment) GetUpdatedAt() Timestamp { 7059 if e == nil || e.UpdatedAt == nil { 7060 return Timestamp{} 7061 } 7062 return *e.UpdatedAt 7063 } 7064 7065 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7066 func (e *Environment) GetURL() string { 7067 if e == nil || e.URL == nil { 7068 return "" 7069 } 7070 return *e.URL 7071 } 7072 7073 // GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. 7074 func (e *Environment) GetWaitTimer() int { 7075 if e == nil || e.WaitTimer == nil { 7076 return 0 7077 } 7078 return *e.WaitTimer 7079 } 7080 7081 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 7082 func (e *EnvResponse) GetTotalCount() int { 7083 if e == nil || e.TotalCount == nil { 7084 return 0 7085 } 7086 return *e.TotalCount 7087 } 7088 7089 // GetID returns the ID field if it's non-nil, zero value otherwise. 7090 func (e *EnvReviewers) GetID() int64 { 7091 if e == nil || e.ID == nil { 7092 return 0 7093 } 7094 return *e.ID 7095 } 7096 7097 // GetType returns the Type field if it's non-nil, zero value otherwise. 7098 func (e *EnvReviewers) GetType() string { 7099 if e == nil || e.Type == nil { 7100 return "" 7101 } 7102 return *e.Type 7103 } 7104 7105 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7106 func (e *ErrorBlock) GetCreatedAt() Timestamp { 7107 if e == nil || e.CreatedAt == nil { 7108 return Timestamp{} 7109 } 7110 return *e.CreatedAt 7111 } 7112 7113 // GetBlock returns the Block field. 7114 func (e *ErrorResponse) GetBlock() *ErrorBlock { 7115 if e == nil { 7116 return nil 7117 } 7118 return e.Block 7119 } 7120 7121 // GetActor returns the Actor field. 7122 func (e *Event) GetActor() *User { 7123 if e == nil { 7124 return nil 7125 } 7126 return e.Actor 7127 } 7128 7129 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7130 func (e *Event) GetCreatedAt() Timestamp { 7131 if e == nil || e.CreatedAt == nil { 7132 return Timestamp{} 7133 } 7134 return *e.CreatedAt 7135 } 7136 7137 // GetID returns the ID field if it's non-nil, zero value otherwise. 7138 func (e *Event) GetID() string { 7139 if e == nil || e.ID == nil { 7140 return "" 7141 } 7142 return *e.ID 7143 } 7144 7145 // GetOrg returns the Org field. 7146 func (e *Event) GetOrg() *Organization { 7147 if e == nil { 7148 return nil 7149 } 7150 return e.Org 7151 } 7152 7153 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 7154 func (e *Event) GetPublic() bool { 7155 if e == nil || e.Public == nil { 7156 return false 7157 } 7158 return *e.Public 7159 } 7160 7161 // GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 7162 func (e *Event) GetRawPayload() json.RawMessage { 7163 if e == nil || e.RawPayload == nil { 7164 return json.RawMessage{} 7165 } 7166 return *e.RawPayload 7167 } 7168 7169 // GetRepo returns the Repo field. 7170 func (e *Event) GetRepo() *Repository { 7171 if e == nil { 7172 return nil 7173 } 7174 return e.Repo 7175 } 7176 7177 // GetType returns the Type field if it's non-nil, zero value otherwise. 7178 func (e *Event) GetType() string { 7179 if e == nil || e.Type == nil { 7180 return "" 7181 } 7182 return *e.Type 7183 } 7184 7185 // GetGroupID returns the GroupID field if it's non-nil, zero value otherwise. 7186 func (e *ExternalGroup) GetGroupID() int64 { 7187 if e == nil || e.GroupID == nil { 7188 return 0 7189 } 7190 return *e.GroupID 7191 } 7192 7193 // GetGroupName returns the GroupName field if it's non-nil, zero value otherwise. 7194 func (e *ExternalGroup) GetGroupName() string { 7195 if e == nil || e.GroupName == nil { 7196 return "" 7197 } 7198 return *e.GroupName 7199 } 7200 7201 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7202 func (e *ExternalGroup) GetUpdatedAt() Timestamp { 7203 if e == nil || e.UpdatedAt == nil { 7204 return Timestamp{} 7205 } 7206 return *e.UpdatedAt 7207 } 7208 7209 // GetMemberEmail returns the MemberEmail field if it's non-nil, zero value otherwise. 7210 func (e *ExternalGroupMember) GetMemberEmail() string { 7211 if e == nil || e.MemberEmail == nil { 7212 return "" 7213 } 7214 return *e.MemberEmail 7215 } 7216 7217 // GetMemberID returns the MemberID field if it's non-nil, zero value otherwise. 7218 func (e *ExternalGroupMember) GetMemberID() int64 { 7219 if e == nil || e.MemberID == nil { 7220 return 0 7221 } 7222 return *e.MemberID 7223 } 7224 7225 // GetMemberLogin returns the MemberLogin field if it's non-nil, zero value otherwise. 7226 func (e *ExternalGroupMember) GetMemberLogin() string { 7227 if e == nil || e.MemberLogin == nil { 7228 return "" 7229 } 7230 return *e.MemberLogin 7231 } 7232 7233 // GetMemberName returns the MemberName field if it's non-nil, zero value otherwise. 7234 func (e *ExternalGroupMember) GetMemberName() string { 7235 if e == nil || e.MemberName == nil { 7236 return "" 7237 } 7238 return *e.MemberName 7239 } 7240 7241 // GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. 7242 func (e *ExternalGroupTeam) GetTeamID() int64 { 7243 if e == nil || e.TeamID == nil { 7244 return 0 7245 } 7246 return *e.TeamID 7247 } 7248 7249 // GetTeamName returns the TeamName field if it's non-nil, zero value otherwise. 7250 func (e *ExternalGroupTeam) GetTeamName() string { 7251 if e == nil || e.TeamName == nil { 7252 return "" 7253 } 7254 return *e.TeamName 7255 } 7256 7257 // GetHRef returns the HRef field if it's non-nil, zero value otherwise. 7258 func (f *FeedLink) GetHRef() string { 7259 if f == nil || f.HRef == nil { 7260 return "" 7261 } 7262 return *f.HRef 7263 } 7264 7265 // GetType returns the Type field if it's non-nil, zero value otherwise. 7266 func (f *FeedLink) GetType() string { 7267 if f == nil || f.Type == nil { 7268 return "" 7269 } 7270 return *f.Type 7271 } 7272 7273 // GetCurrentUser returns the CurrentUser field. 7274 func (f *FeedLinks) GetCurrentUser() *FeedLink { 7275 if f == nil { 7276 return nil 7277 } 7278 return f.CurrentUser 7279 } 7280 7281 // GetCurrentUserActor returns the CurrentUserActor field. 7282 func (f *FeedLinks) GetCurrentUserActor() *FeedLink { 7283 if f == nil { 7284 return nil 7285 } 7286 return f.CurrentUserActor 7287 } 7288 7289 // GetCurrentUserOrganization returns the CurrentUserOrganization field. 7290 func (f *FeedLinks) GetCurrentUserOrganization() *FeedLink { 7291 if f == nil { 7292 return nil 7293 } 7294 return f.CurrentUserOrganization 7295 } 7296 7297 // GetCurrentUserPublic returns the CurrentUserPublic field. 7298 func (f *FeedLinks) GetCurrentUserPublic() *FeedLink { 7299 if f == nil { 7300 return nil 7301 } 7302 return f.CurrentUserPublic 7303 } 7304 7305 // GetTimeline returns the Timeline field. 7306 func (f *FeedLinks) GetTimeline() *FeedLink { 7307 if f == nil { 7308 return nil 7309 } 7310 return f.Timeline 7311 } 7312 7313 // GetUser returns the User field. 7314 func (f *FeedLinks) GetUser() *FeedLink { 7315 if f == nil { 7316 return nil 7317 } 7318 return f.User 7319 } 7320 7321 // GetCurrentUserActorURL returns the CurrentUserActorURL field if it's non-nil, zero value otherwise. 7322 func (f *Feeds) GetCurrentUserActorURL() string { 7323 if f == nil || f.CurrentUserActorURL == nil { 7324 return "" 7325 } 7326 return *f.CurrentUserActorURL 7327 } 7328 7329 // GetCurrentUserOrganizationURL returns the CurrentUserOrganizationURL field if it's non-nil, zero value otherwise. 7330 func (f *Feeds) GetCurrentUserOrganizationURL() string { 7331 if f == nil || f.CurrentUserOrganizationURL == nil { 7332 return "" 7333 } 7334 return *f.CurrentUserOrganizationURL 7335 } 7336 7337 // GetCurrentUserPublicURL returns the CurrentUserPublicURL field if it's non-nil, zero value otherwise. 7338 func (f *Feeds) GetCurrentUserPublicURL() string { 7339 if f == nil || f.CurrentUserPublicURL == nil { 7340 return "" 7341 } 7342 return *f.CurrentUserPublicURL 7343 } 7344 7345 // GetCurrentUserURL returns the CurrentUserURL field if it's non-nil, zero value otherwise. 7346 func (f *Feeds) GetCurrentUserURL() string { 7347 if f == nil || f.CurrentUserURL == nil { 7348 return "" 7349 } 7350 return *f.CurrentUserURL 7351 } 7352 7353 // GetLinks returns the Links field. 7354 func (f *Feeds) GetLinks() *FeedLinks { 7355 if f == nil { 7356 return nil 7357 } 7358 return f.Links 7359 } 7360 7361 // GetTimelineURL returns the TimelineURL field if it's non-nil, zero value otherwise. 7362 func (f *Feeds) GetTimelineURL() string { 7363 if f == nil || f.TimelineURL == nil { 7364 return "" 7365 } 7366 return *f.TimelineURL 7367 } 7368 7369 // GetUserURL returns the UserURL field if it's non-nil, zero value otherwise. 7370 func (f *Feeds) GetUserURL() string { 7371 if f == nil || f.UserURL == nil { 7372 return "" 7373 } 7374 return *f.UserURL 7375 } 7376 7377 // GetIdentifier returns the Identifier field if it's non-nil, zero value otherwise. 7378 func (f *FirstPatchedVersion) GetIdentifier() string { 7379 if f == nil || f.Identifier == nil { 7380 return "" 7381 } 7382 return *f.Identifier 7383 } 7384 7385 // GetForkee returns the Forkee field. 7386 func (f *ForkEvent) GetForkee() *Repository { 7387 if f == nil { 7388 return nil 7389 } 7390 return f.Forkee 7391 } 7392 7393 // GetInstallation returns the Installation field. 7394 func (f *ForkEvent) GetInstallation() *Installation { 7395 if f == nil { 7396 return nil 7397 } 7398 return f.Installation 7399 } 7400 7401 // GetRepo returns the Repo field. 7402 func (f *ForkEvent) GetRepo() *Repository { 7403 if f == nil { 7404 return nil 7405 } 7406 return f.Repo 7407 } 7408 7409 // GetSender returns the Sender field. 7410 func (f *ForkEvent) GetSender() *User { 7411 if f == nil { 7412 return nil 7413 } 7414 return f.Sender 7415 } 7416 7417 // GetWorkFolder returns the WorkFolder field if it's non-nil, zero value otherwise. 7418 func (g *GenerateJITConfigRequest) GetWorkFolder() string { 7419 if g == nil || g.WorkFolder == nil { 7420 return "" 7421 } 7422 return *g.WorkFolder 7423 } 7424 7425 // GetPreviousTagName returns the PreviousTagName field if it's non-nil, zero value otherwise. 7426 func (g *GenerateNotesOptions) GetPreviousTagName() string { 7427 if g == nil || g.PreviousTagName == nil { 7428 return "" 7429 } 7430 return *g.PreviousTagName 7431 } 7432 7433 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 7434 func (g *GenerateNotesOptions) GetTargetCommitish() string { 7435 if g == nil || g.TargetCommitish == nil { 7436 return "" 7437 } 7438 return *g.TargetCommitish 7439 } 7440 7441 // GetInclude returns the Include field if it's non-nil, zero value otherwise. 7442 func (g *GetAuditLogOptions) GetInclude() string { 7443 if g == nil || g.Include == nil { 7444 return "" 7445 } 7446 return *g.Include 7447 } 7448 7449 // GetOrder returns the Order field if it's non-nil, zero value otherwise. 7450 func (g *GetAuditLogOptions) GetOrder() string { 7451 if g == nil || g.Order == nil { 7452 return "" 7453 } 7454 return *g.Order 7455 } 7456 7457 // GetPhrase returns the Phrase field if it's non-nil, zero value otherwise. 7458 func (g *GetAuditLogOptions) GetPhrase() string { 7459 if g == nil || g.Phrase == nil { 7460 return "" 7461 } 7462 return *g.Phrase 7463 } 7464 7465 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 7466 func (g *Gist) GetComments() int { 7467 if g == nil || g.Comments == nil { 7468 return 0 7469 } 7470 return *g.Comments 7471 } 7472 7473 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7474 func (g *Gist) GetCreatedAt() Timestamp { 7475 if g == nil || g.CreatedAt == nil { 7476 return Timestamp{} 7477 } 7478 return *g.CreatedAt 7479 } 7480 7481 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 7482 func (g *Gist) GetDescription() string { 7483 if g == nil || g.Description == nil { 7484 return "" 7485 } 7486 return *g.Description 7487 } 7488 7489 // GetFiles returns the Files map if it's non-nil, an empty map otherwise. 7490 func (g *Gist) GetFiles() map[GistFilename]GistFile { 7491 if g == nil || g.Files == nil { 7492 return map[GistFilename]GistFile{} 7493 } 7494 return g.Files 7495 } 7496 7497 // GetGitPullURL returns the GitPullURL field if it's non-nil, zero value otherwise. 7498 func (g *Gist) GetGitPullURL() string { 7499 if g == nil || g.GitPullURL == nil { 7500 return "" 7501 } 7502 return *g.GitPullURL 7503 } 7504 7505 // GetGitPushURL returns the GitPushURL field if it's non-nil, zero value otherwise. 7506 func (g *Gist) GetGitPushURL() string { 7507 if g == nil || g.GitPushURL == nil { 7508 return "" 7509 } 7510 return *g.GitPushURL 7511 } 7512 7513 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 7514 func (g *Gist) GetHTMLURL() string { 7515 if g == nil || g.HTMLURL == nil { 7516 return "" 7517 } 7518 return *g.HTMLURL 7519 } 7520 7521 // GetID returns the ID field if it's non-nil, zero value otherwise. 7522 func (g *Gist) GetID() string { 7523 if g == nil || g.ID == nil { 7524 return "" 7525 } 7526 return *g.ID 7527 } 7528 7529 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 7530 func (g *Gist) GetNodeID() string { 7531 if g == nil || g.NodeID == nil { 7532 return "" 7533 } 7534 return *g.NodeID 7535 } 7536 7537 // GetOwner returns the Owner field. 7538 func (g *Gist) GetOwner() *User { 7539 if g == nil { 7540 return nil 7541 } 7542 return g.Owner 7543 } 7544 7545 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 7546 func (g *Gist) GetPublic() bool { 7547 if g == nil || g.Public == nil { 7548 return false 7549 } 7550 return *g.Public 7551 } 7552 7553 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7554 func (g *Gist) GetUpdatedAt() Timestamp { 7555 if g == nil || g.UpdatedAt == nil { 7556 return Timestamp{} 7557 } 7558 return *g.UpdatedAt 7559 } 7560 7561 // GetBody returns the Body field if it's non-nil, zero value otherwise. 7562 func (g *GistComment) GetBody() string { 7563 if g == nil || g.Body == nil { 7564 return "" 7565 } 7566 return *g.Body 7567 } 7568 7569 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7570 func (g *GistComment) GetCreatedAt() Timestamp { 7571 if g == nil || g.CreatedAt == nil { 7572 return Timestamp{} 7573 } 7574 return *g.CreatedAt 7575 } 7576 7577 // GetID returns the ID field if it's non-nil, zero value otherwise. 7578 func (g *GistComment) GetID() int64 { 7579 if g == nil || g.ID == nil { 7580 return 0 7581 } 7582 return *g.ID 7583 } 7584 7585 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7586 func (g *GistComment) GetURL() string { 7587 if g == nil || g.URL == nil { 7588 return "" 7589 } 7590 return *g.URL 7591 } 7592 7593 // GetUser returns the User field. 7594 func (g *GistComment) GetUser() *User { 7595 if g == nil { 7596 return nil 7597 } 7598 return g.User 7599 } 7600 7601 // GetChangeStatus returns the ChangeStatus field. 7602 func (g *GistCommit) GetChangeStatus() *CommitStats { 7603 if g == nil { 7604 return nil 7605 } 7606 return g.ChangeStatus 7607 } 7608 7609 // GetCommittedAt returns the CommittedAt field if it's non-nil, zero value otherwise. 7610 func (g *GistCommit) GetCommittedAt() Timestamp { 7611 if g == nil || g.CommittedAt == nil { 7612 return Timestamp{} 7613 } 7614 return *g.CommittedAt 7615 } 7616 7617 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 7618 func (g *GistCommit) GetNodeID() string { 7619 if g == nil || g.NodeID == nil { 7620 return "" 7621 } 7622 return *g.NodeID 7623 } 7624 7625 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7626 func (g *GistCommit) GetURL() string { 7627 if g == nil || g.URL == nil { 7628 return "" 7629 } 7630 return *g.URL 7631 } 7632 7633 // GetUser returns the User field. 7634 func (g *GistCommit) GetUser() *User { 7635 if g == nil { 7636 return nil 7637 } 7638 return g.User 7639 } 7640 7641 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 7642 func (g *GistCommit) GetVersion() string { 7643 if g == nil || g.Version == nil { 7644 return "" 7645 } 7646 return *g.Version 7647 } 7648 7649 // GetContent returns the Content field if it's non-nil, zero value otherwise. 7650 func (g *GistFile) GetContent() string { 7651 if g == nil || g.Content == nil { 7652 return "" 7653 } 7654 return *g.Content 7655 } 7656 7657 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 7658 func (g *GistFile) GetFilename() string { 7659 if g == nil || g.Filename == nil { 7660 return "" 7661 } 7662 return *g.Filename 7663 } 7664 7665 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 7666 func (g *GistFile) GetLanguage() string { 7667 if g == nil || g.Language == nil { 7668 return "" 7669 } 7670 return *g.Language 7671 } 7672 7673 // GetRawURL returns the RawURL field if it's non-nil, zero value otherwise. 7674 func (g *GistFile) GetRawURL() string { 7675 if g == nil || g.RawURL == nil { 7676 return "" 7677 } 7678 return *g.RawURL 7679 } 7680 7681 // GetSize returns the Size field if it's non-nil, zero value otherwise. 7682 func (g *GistFile) GetSize() int { 7683 if g == nil || g.Size == nil { 7684 return 0 7685 } 7686 return *g.Size 7687 } 7688 7689 // GetType returns the Type field if it's non-nil, zero value otherwise. 7690 func (g *GistFile) GetType() string { 7691 if g == nil || g.Type == nil { 7692 return "" 7693 } 7694 return *g.Type 7695 } 7696 7697 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7698 func (g *GistFork) GetCreatedAt() Timestamp { 7699 if g == nil || g.CreatedAt == nil { 7700 return Timestamp{} 7701 } 7702 return *g.CreatedAt 7703 } 7704 7705 // GetID returns the ID field if it's non-nil, zero value otherwise. 7706 func (g *GistFork) GetID() string { 7707 if g == nil || g.ID == nil { 7708 return "" 7709 } 7710 return *g.ID 7711 } 7712 7713 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 7714 func (g *GistFork) GetNodeID() string { 7715 if g == nil || g.NodeID == nil { 7716 return "" 7717 } 7718 return *g.NodeID 7719 } 7720 7721 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 7722 func (g *GistFork) GetUpdatedAt() Timestamp { 7723 if g == nil || g.UpdatedAt == nil { 7724 return Timestamp{} 7725 } 7726 return *g.UpdatedAt 7727 } 7728 7729 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7730 func (g *GistFork) GetURL() string { 7731 if g == nil || g.URL == nil { 7732 return "" 7733 } 7734 return *g.URL 7735 } 7736 7737 // GetUser returns the User field. 7738 func (g *GistFork) GetUser() *User { 7739 if g == nil { 7740 return nil 7741 } 7742 return g.User 7743 } 7744 7745 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 7746 func (g *GistStats) GetPrivateGists() int { 7747 if g == nil || g.PrivateGists == nil { 7748 return 0 7749 } 7750 return *g.PrivateGists 7751 } 7752 7753 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 7754 func (g *GistStats) GetPublicGists() int { 7755 if g == nil || g.PublicGists == nil { 7756 return 0 7757 } 7758 return *g.PublicGists 7759 } 7760 7761 // GetTotalGists returns the TotalGists field if it's non-nil, zero value otherwise. 7762 func (g *GistStats) GetTotalGists() int { 7763 if g == nil || g.TotalGists == nil { 7764 return 0 7765 } 7766 return *g.TotalGists 7767 } 7768 7769 // GetAction returns the Action field if it's non-nil, zero value otherwise. 7770 func (g *GitHubAppAuthorizationEvent) GetAction() string { 7771 if g == nil || g.Action == nil { 7772 return "" 7773 } 7774 return *g.Action 7775 } 7776 7777 // GetInstallation returns the Installation field. 7778 func (g *GitHubAppAuthorizationEvent) GetInstallation() *Installation { 7779 if g == nil { 7780 return nil 7781 } 7782 return g.Installation 7783 } 7784 7785 // GetSender returns the Sender field. 7786 func (g *GitHubAppAuthorizationEvent) GetSender() *User { 7787 if g == nil { 7788 return nil 7789 } 7790 return g.Sender 7791 } 7792 7793 // GetName returns the Name field if it's non-nil, zero value otherwise. 7794 func (g *Gitignore) GetName() string { 7795 if g == nil || g.Name == nil { 7796 return "" 7797 } 7798 return *g.Name 7799 } 7800 7801 // GetSource returns the Source field if it's non-nil, zero value otherwise. 7802 func (g *Gitignore) GetSource() string { 7803 if g == nil || g.Source == nil { 7804 return "" 7805 } 7806 return *g.Source 7807 } 7808 7809 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 7810 func (g *GitObject) GetSHA() string { 7811 if g == nil || g.SHA == nil { 7812 return "" 7813 } 7814 return *g.SHA 7815 } 7816 7817 // GetType returns the Type field if it's non-nil, zero value otherwise. 7818 func (g *GitObject) GetType() string { 7819 if g == nil || g.Type == nil { 7820 return "" 7821 } 7822 return *g.Type 7823 } 7824 7825 // GetURL returns the URL field if it's non-nil, zero value otherwise. 7826 func (g *GitObject) GetURL() string { 7827 if g == nil || g.URL == nil { 7828 return "" 7829 } 7830 return *g.URL 7831 } 7832 7833 // GetGithubReviewedAt returns the GithubReviewedAt field if it's non-nil, zero value otherwise. 7834 func (g *GlobalSecurityAdvisory) GetGithubReviewedAt() Timestamp { 7835 if g == nil || g.GithubReviewedAt == nil { 7836 return Timestamp{} 7837 } 7838 return *g.GithubReviewedAt 7839 } 7840 7841 // GetID returns the ID field if it's non-nil, zero value otherwise. 7842 func (g *GlobalSecurityAdvisory) GetID() int64 { 7843 if g == nil || g.ID == nil { 7844 return 0 7845 } 7846 return *g.ID 7847 } 7848 7849 // GetNVDPublishedAt returns the NVDPublishedAt field if it's non-nil, zero value otherwise. 7850 func (g *GlobalSecurityAdvisory) GetNVDPublishedAt() Timestamp { 7851 if g == nil || g.NVDPublishedAt == nil { 7852 return Timestamp{} 7853 } 7854 return *g.NVDPublishedAt 7855 } 7856 7857 // GetRepositoryAdvisoryURL returns the RepositoryAdvisoryURL field if it's non-nil, zero value otherwise. 7858 func (g *GlobalSecurityAdvisory) GetRepositoryAdvisoryURL() string { 7859 if g == nil || g.RepositoryAdvisoryURL == nil { 7860 return "" 7861 } 7862 return *g.RepositoryAdvisoryURL 7863 } 7864 7865 // GetSourceCodeLocation returns the SourceCodeLocation field if it's non-nil, zero value otherwise. 7866 func (g *GlobalSecurityAdvisory) GetSourceCodeLocation() string { 7867 if g == nil || g.SourceCodeLocation == nil { 7868 return "" 7869 } 7870 return *g.SourceCodeLocation 7871 } 7872 7873 // GetType returns the Type field if it's non-nil, zero value otherwise. 7874 func (g *GlobalSecurityAdvisory) GetType() string { 7875 if g == nil || g.Type == nil { 7876 return "" 7877 } 7878 return *g.Type 7879 } 7880 7881 // GetFirstPatchedVersion returns the FirstPatchedVersion field if it's non-nil, zero value otherwise. 7882 func (g *GlobalSecurityVulnerability) GetFirstPatchedVersion() string { 7883 if g == nil || g.FirstPatchedVersion == nil { 7884 return "" 7885 } 7886 return *g.FirstPatchedVersion 7887 } 7888 7889 // GetPackage returns the Package field. 7890 func (g *GlobalSecurityVulnerability) GetPackage() *VulnerabilityPackage { 7891 if g == nil { 7892 return nil 7893 } 7894 return g.Package 7895 } 7896 7897 // GetVulnerableVersionRange returns the VulnerableVersionRange field if it's non-nil, zero value otherwise. 7898 func (g *GlobalSecurityVulnerability) GetVulnerableVersionRange() string { 7899 if g == nil || g.VulnerableVersionRange == nil { 7900 return "" 7901 } 7902 return *g.VulnerableVersionRange 7903 } 7904 7905 // GetInstallation returns the Installation field. 7906 func (g *GollumEvent) GetInstallation() *Installation { 7907 if g == nil { 7908 return nil 7909 } 7910 return g.Installation 7911 } 7912 7913 // GetOrg returns the Org field. 7914 func (g *GollumEvent) GetOrg() *Organization { 7915 if g == nil { 7916 return nil 7917 } 7918 return g.Org 7919 } 7920 7921 // GetRepo returns the Repo field. 7922 func (g *GollumEvent) GetRepo() *Repository { 7923 if g == nil { 7924 return nil 7925 } 7926 return g.Repo 7927 } 7928 7929 // GetSender returns the Sender field. 7930 func (g *GollumEvent) GetSender() *User { 7931 if g == nil { 7932 return nil 7933 } 7934 return g.Sender 7935 } 7936 7937 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 7938 func (g *GPGEmail) GetEmail() string { 7939 if g == nil || g.Email == nil { 7940 return "" 7941 } 7942 return *g.Email 7943 } 7944 7945 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 7946 func (g *GPGEmail) GetVerified() bool { 7947 if g == nil || g.Verified == nil { 7948 return false 7949 } 7950 return *g.Verified 7951 } 7952 7953 // GetCanCertify returns the CanCertify field if it's non-nil, zero value otherwise. 7954 func (g *GPGKey) GetCanCertify() bool { 7955 if g == nil || g.CanCertify == nil { 7956 return false 7957 } 7958 return *g.CanCertify 7959 } 7960 7961 // GetCanEncryptComms returns the CanEncryptComms field if it's non-nil, zero value otherwise. 7962 func (g *GPGKey) GetCanEncryptComms() bool { 7963 if g == nil || g.CanEncryptComms == nil { 7964 return false 7965 } 7966 return *g.CanEncryptComms 7967 } 7968 7969 // GetCanEncryptStorage returns the CanEncryptStorage field if it's non-nil, zero value otherwise. 7970 func (g *GPGKey) GetCanEncryptStorage() bool { 7971 if g == nil || g.CanEncryptStorage == nil { 7972 return false 7973 } 7974 return *g.CanEncryptStorage 7975 } 7976 7977 // GetCanSign returns the CanSign field if it's non-nil, zero value otherwise. 7978 func (g *GPGKey) GetCanSign() bool { 7979 if g == nil || g.CanSign == nil { 7980 return false 7981 } 7982 return *g.CanSign 7983 } 7984 7985 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 7986 func (g *GPGKey) GetCreatedAt() Timestamp { 7987 if g == nil || g.CreatedAt == nil { 7988 return Timestamp{} 7989 } 7990 return *g.CreatedAt 7991 } 7992 7993 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 7994 func (g *GPGKey) GetExpiresAt() Timestamp { 7995 if g == nil || g.ExpiresAt == nil { 7996 return Timestamp{} 7997 } 7998 return *g.ExpiresAt 7999 } 8000 8001 // GetID returns the ID field if it's non-nil, zero value otherwise. 8002 func (g *GPGKey) GetID() int64 { 8003 if g == nil || g.ID == nil { 8004 return 0 8005 } 8006 return *g.ID 8007 } 8008 8009 // GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. 8010 func (g *GPGKey) GetKeyID() string { 8011 if g == nil || g.KeyID == nil { 8012 return "" 8013 } 8014 return *g.KeyID 8015 } 8016 8017 // GetPrimaryKeyID returns the PrimaryKeyID field if it's non-nil, zero value otherwise. 8018 func (g *GPGKey) GetPrimaryKeyID() int64 { 8019 if g == nil || g.PrimaryKeyID == nil { 8020 return 0 8021 } 8022 return *g.PrimaryKeyID 8023 } 8024 8025 // GetPublicKey returns the PublicKey field if it's non-nil, zero value otherwise. 8026 func (g *GPGKey) GetPublicKey() string { 8027 if g == nil || g.PublicKey == nil { 8028 return "" 8029 } 8030 return *g.PublicKey 8031 } 8032 8033 // GetRawKey returns the RawKey field if it's non-nil, zero value otherwise. 8034 func (g *GPGKey) GetRawKey() string { 8035 if g == nil || g.RawKey == nil { 8036 return "" 8037 } 8038 return *g.RawKey 8039 } 8040 8041 // GetApp returns the App field. 8042 func (g *Grant) GetApp() *AuthorizationApp { 8043 if g == nil { 8044 return nil 8045 } 8046 return g.App 8047 } 8048 8049 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8050 func (g *Grant) GetCreatedAt() Timestamp { 8051 if g == nil || g.CreatedAt == nil { 8052 return Timestamp{} 8053 } 8054 return *g.CreatedAt 8055 } 8056 8057 // GetID returns the ID field if it's non-nil, zero value otherwise. 8058 func (g *Grant) GetID() int64 { 8059 if g == nil || g.ID == nil { 8060 return 0 8061 } 8062 return *g.ID 8063 } 8064 8065 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8066 func (g *Grant) GetUpdatedAt() Timestamp { 8067 if g == nil || g.UpdatedAt == nil { 8068 return Timestamp{} 8069 } 8070 return *g.UpdatedAt 8071 } 8072 8073 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8074 func (g *Grant) GetURL() string { 8075 if g == nil || g.URL == nil { 8076 return "" 8077 } 8078 return *g.URL 8079 } 8080 8081 // GetAuthor returns the Author field. 8082 func (h *HeadCommit) GetAuthor() *CommitAuthor { 8083 if h == nil { 8084 return nil 8085 } 8086 return h.Author 8087 } 8088 8089 // GetCommitter returns the Committer field. 8090 func (h *HeadCommit) GetCommitter() *CommitAuthor { 8091 if h == nil { 8092 return nil 8093 } 8094 return h.Committer 8095 } 8096 8097 // GetDistinct returns the Distinct field if it's non-nil, zero value otherwise. 8098 func (h *HeadCommit) GetDistinct() bool { 8099 if h == nil || h.Distinct == nil { 8100 return false 8101 } 8102 return *h.Distinct 8103 } 8104 8105 // GetID returns the ID field if it's non-nil, zero value otherwise. 8106 func (h *HeadCommit) GetID() string { 8107 if h == nil || h.ID == nil { 8108 return "" 8109 } 8110 return *h.ID 8111 } 8112 8113 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 8114 func (h *HeadCommit) GetMessage() string { 8115 if h == nil || h.Message == nil { 8116 return "" 8117 } 8118 return *h.Message 8119 } 8120 8121 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 8122 func (h *HeadCommit) GetSHA() string { 8123 if h == nil || h.SHA == nil { 8124 return "" 8125 } 8126 return *h.SHA 8127 } 8128 8129 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 8130 func (h *HeadCommit) GetTimestamp() Timestamp { 8131 if h == nil || h.Timestamp == nil { 8132 return Timestamp{} 8133 } 8134 return *h.Timestamp 8135 } 8136 8137 // GetTreeID returns the TreeID field if it's non-nil, zero value otherwise. 8138 func (h *HeadCommit) GetTreeID() string { 8139 if h == nil || h.TreeID == nil { 8140 return "" 8141 } 8142 return *h.TreeID 8143 } 8144 8145 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8146 func (h *HeadCommit) GetURL() string { 8147 if h == nil || h.URL == nil { 8148 return "" 8149 } 8150 return *h.URL 8151 } 8152 8153 // GetActive returns the Active field if it's non-nil, zero value otherwise. 8154 func (h *Hook) GetActive() bool { 8155 if h == nil || h.Active == nil { 8156 return false 8157 } 8158 return *h.Active 8159 } 8160 8161 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8162 func (h *Hook) GetCreatedAt() Timestamp { 8163 if h == nil || h.CreatedAt == nil { 8164 return Timestamp{} 8165 } 8166 return *h.CreatedAt 8167 } 8168 8169 // GetID returns the ID field if it's non-nil, zero value otherwise. 8170 func (h *Hook) GetID() int64 { 8171 if h == nil || h.ID == nil { 8172 return 0 8173 } 8174 return *h.ID 8175 } 8176 8177 // GetName returns the Name field if it's non-nil, zero value otherwise. 8178 func (h *Hook) GetName() string { 8179 if h == nil || h.Name == nil { 8180 return "" 8181 } 8182 return *h.Name 8183 } 8184 8185 // GetPingURL returns the PingURL field if it's non-nil, zero value otherwise. 8186 func (h *Hook) GetPingURL() string { 8187 if h == nil || h.PingURL == nil { 8188 return "" 8189 } 8190 return *h.PingURL 8191 } 8192 8193 // GetTestURL returns the TestURL field if it's non-nil, zero value otherwise. 8194 func (h *Hook) GetTestURL() string { 8195 if h == nil || h.TestURL == nil { 8196 return "" 8197 } 8198 return *h.TestURL 8199 } 8200 8201 // GetType returns the Type field if it's non-nil, zero value otherwise. 8202 func (h *Hook) GetType() string { 8203 if h == nil || h.Type == nil { 8204 return "" 8205 } 8206 return *h.Type 8207 } 8208 8209 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8210 func (h *Hook) GetUpdatedAt() Timestamp { 8211 if h == nil || h.UpdatedAt == nil { 8212 return Timestamp{} 8213 } 8214 return *h.UpdatedAt 8215 } 8216 8217 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8218 func (h *Hook) GetURL() string { 8219 if h == nil || h.URL == nil { 8220 return "" 8221 } 8222 return *h.URL 8223 } 8224 8225 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 8226 func (h *HookConfig) GetContentType() string { 8227 if h == nil || h.ContentType == nil { 8228 return "" 8229 } 8230 return *h.ContentType 8231 } 8232 8233 // GetInsecureSSL returns the InsecureSSL field if it's non-nil, zero value otherwise. 8234 func (h *HookConfig) GetInsecureSSL() string { 8235 if h == nil || h.InsecureSSL == nil { 8236 return "" 8237 } 8238 return *h.InsecureSSL 8239 } 8240 8241 // GetSecret returns the Secret field if it's non-nil, zero value otherwise. 8242 func (h *HookConfig) GetSecret() string { 8243 if h == nil || h.Secret == nil { 8244 return "" 8245 } 8246 return *h.Secret 8247 } 8248 8249 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8250 func (h *HookConfig) GetURL() string { 8251 if h == nil || h.URL == nil { 8252 return "" 8253 } 8254 return *h.URL 8255 } 8256 8257 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8258 func (h *HookDelivery) GetAction() string { 8259 if h == nil || h.Action == nil { 8260 return "" 8261 } 8262 return *h.Action 8263 } 8264 8265 // GetDeliveredAt returns the DeliveredAt field if it's non-nil, zero value otherwise. 8266 func (h *HookDelivery) GetDeliveredAt() Timestamp { 8267 if h == nil || h.DeliveredAt == nil { 8268 return Timestamp{} 8269 } 8270 return *h.DeliveredAt 8271 } 8272 8273 // GetDuration returns the Duration field. 8274 func (h *HookDelivery) GetDuration() *float64 { 8275 if h == nil { 8276 return nil 8277 } 8278 return h.Duration 8279 } 8280 8281 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 8282 func (h *HookDelivery) GetEvent() string { 8283 if h == nil || h.Event == nil { 8284 return "" 8285 } 8286 return *h.Event 8287 } 8288 8289 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 8290 func (h *HookDelivery) GetGUID() string { 8291 if h == nil || h.GUID == nil { 8292 return "" 8293 } 8294 return *h.GUID 8295 } 8296 8297 // GetID returns the ID field if it's non-nil, zero value otherwise. 8298 func (h *HookDelivery) GetID() int64 { 8299 if h == nil || h.ID == nil { 8300 return 0 8301 } 8302 return *h.ID 8303 } 8304 8305 // GetInstallationID returns the InstallationID field if it's non-nil, zero value otherwise. 8306 func (h *HookDelivery) GetInstallationID() int64 { 8307 if h == nil || h.InstallationID == nil { 8308 return 0 8309 } 8310 return *h.InstallationID 8311 } 8312 8313 // GetRedelivery returns the Redelivery field if it's non-nil, zero value otherwise. 8314 func (h *HookDelivery) GetRedelivery() bool { 8315 if h == nil || h.Redelivery == nil { 8316 return false 8317 } 8318 return *h.Redelivery 8319 } 8320 8321 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 8322 func (h *HookDelivery) GetRepositoryID() int64 { 8323 if h == nil || h.RepositoryID == nil { 8324 return 0 8325 } 8326 return *h.RepositoryID 8327 } 8328 8329 // GetRequest returns the Request field. 8330 func (h *HookDelivery) GetRequest() *HookRequest { 8331 if h == nil { 8332 return nil 8333 } 8334 return h.Request 8335 } 8336 8337 // GetResponse returns the Response field. 8338 func (h *HookDelivery) GetResponse() *HookResponse { 8339 if h == nil { 8340 return nil 8341 } 8342 return h.Response 8343 } 8344 8345 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 8346 func (h *HookDelivery) GetStatus() string { 8347 if h == nil || h.Status == nil { 8348 return "" 8349 } 8350 return *h.Status 8351 } 8352 8353 // GetStatusCode returns the StatusCode field if it's non-nil, zero value otherwise. 8354 func (h *HookDelivery) GetStatusCode() int { 8355 if h == nil || h.StatusCode == nil { 8356 return 0 8357 } 8358 return *h.StatusCode 8359 } 8360 8361 // GetHeaders returns the Headers map if it's non-nil, an empty map otherwise. 8362 func (h *HookRequest) GetHeaders() map[string]string { 8363 if h == nil || h.Headers == nil { 8364 return map[string]string{} 8365 } 8366 return h.Headers 8367 } 8368 8369 // GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 8370 func (h *HookRequest) GetRawPayload() json.RawMessage { 8371 if h == nil || h.RawPayload == nil { 8372 return json.RawMessage{} 8373 } 8374 return *h.RawPayload 8375 } 8376 8377 // GetHeaders returns the Headers map if it's non-nil, an empty map otherwise. 8378 func (h *HookResponse) GetHeaders() map[string]string { 8379 if h == nil || h.Headers == nil { 8380 return map[string]string{} 8381 } 8382 return h.Headers 8383 } 8384 8385 // GetRawPayload returns the RawPayload field if it's non-nil, zero value otherwise. 8386 func (h *HookResponse) GetRawPayload() json.RawMessage { 8387 if h == nil || h.RawPayload == nil { 8388 return json.RawMessage{} 8389 } 8390 return *h.RawPayload 8391 } 8392 8393 // GetActiveHooks returns the ActiveHooks field if it's non-nil, zero value otherwise. 8394 func (h *HookStats) GetActiveHooks() int { 8395 if h == nil || h.ActiveHooks == nil { 8396 return 0 8397 } 8398 return *h.ActiveHooks 8399 } 8400 8401 // GetInactiveHooks returns the InactiveHooks field if it's non-nil, zero value otherwise. 8402 func (h *HookStats) GetInactiveHooks() int { 8403 if h == nil || h.InactiveHooks == nil { 8404 return 0 8405 } 8406 return *h.InactiveHooks 8407 } 8408 8409 // GetTotalHooks returns the TotalHooks field if it's non-nil, zero value otherwise. 8410 func (h *HookStats) GetTotalHooks() int { 8411 if h == nil || h.TotalHooks == nil { 8412 return 0 8413 } 8414 return *h.TotalHooks 8415 } 8416 8417 // GetGroupDescription returns the GroupDescription field if it's non-nil, zero value otherwise. 8418 func (i *IDPGroup) GetGroupDescription() string { 8419 if i == nil || i.GroupDescription == nil { 8420 return "" 8421 } 8422 return *i.GroupDescription 8423 } 8424 8425 // GetGroupID returns the GroupID field if it's non-nil, zero value otherwise. 8426 func (i *IDPGroup) GetGroupID() string { 8427 if i == nil || i.GroupID == nil { 8428 return "" 8429 } 8430 return *i.GroupID 8431 } 8432 8433 // GetGroupName returns the GroupName field if it's non-nil, zero value otherwise. 8434 func (i *IDPGroup) GetGroupName() string { 8435 if i == nil || i.GroupName == nil { 8436 return "" 8437 } 8438 return *i.GroupName 8439 } 8440 8441 // GetAuthorsCount returns the AuthorsCount field if it's non-nil, zero value otherwise. 8442 func (i *Import) GetAuthorsCount() int { 8443 if i == nil || i.AuthorsCount == nil { 8444 return 0 8445 } 8446 return *i.AuthorsCount 8447 } 8448 8449 // GetAuthorsURL returns the AuthorsURL field if it's non-nil, zero value otherwise. 8450 func (i *Import) GetAuthorsURL() string { 8451 if i == nil || i.AuthorsURL == nil { 8452 return "" 8453 } 8454 return *i.AuthorsURL 8455 } 8456 8457 // GetCommitCount returns the CommitCount field if it's non-nil, zero value otherwise. 8458 func (i *Import) GetCommitCount() int { 8459 if i == nil || i.CommitCount == nil { 8460 return 0 8461 } 8462 return *i.CommitCount 8463 } 8464 8465 // GetFailedStep returns the FailedStep field if it's non-nil, zero value otherwise. 8466 func (i *Import) GetFailedStep() string { 8467 if i == nil || i.FailedStep == nil { 8468 return "" 8469 } 8470 return *i.FailedStep 8471 } 8472 8473 // GetHasLargeFiles returns the HasLargeFiles field if it's non-nil, zero value otherwise. 8474 func (i *Import) GetHasLargeFiles() bool { 8475 if i == nil || i.HasLargeFiles == nil { 8476 return false 8477 } 8478 return *i.HasLargeFiles 8479 } 8480 8481 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 8482 func (i *Import) GetHTMLURL() string { 8483 if i == nil || i.HTMLURL == nil { 8484 return "" 8485 } 8486 return *i.HTMLURL 8487 } 8488 8489 // GetHumanName returns the HumanName field if it's non-nil, zero value otherwise. 8490 func (i *Import) GetHumanName() string { 8491 if i == nil || i.HumanName == nil { 8492 return "" 8493 } 8494 return *i.HumanName 8495 } 8496 8497 // GetLargeFilesCount returns the LargeFilesCount field if it's non-nil, zero value otherwise. 8498 func (i *Import) GetLargeFilesCount() int { 8499 if i == nil || i.LargeFilesCount == nil { 8500 return 0 8501 } 8502 return *i.LargeFilesCount 8503 } 8504 8505 // GetLargeFilesSize returns the LargeFilesSize field if it's non-nil, zero value otherwise. 8506 func (i *Import) GetLargeFilesSize() int { 8507 if i == nil || i.LargeFilesSize == nil { 8508 return 0 8509 } 8510 return *i.LargeFilesSize 8511 } 8512 8513 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 8514 func (i *Import) GetMessage() string { 8515 if i == nil || i.Message == nil { 8516 return "" 8517 } 8518 return *i.Message 8519 } 8520 8521 // GetPercent returns the Percent field if it's non-nil, zero value otherwise. 8522 func (i *Import) GetPercent() int { 8523 if i == nil || i.Percent == nil { 8524 return 0 8525 } 8526 return *i.Percent 8527 } 8528 8529 // GetPushPercent returns the PushPercent field if it's non-nil, zero value otherwise. 8530 func (i *Import) GetPushPercent() int { 8531 if i == nil || i.PushPercent == nil { 8532 return 0 8533 } 8534 return *i.PushPercent 8535 } 8536 8537 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 8538 func (i *Import) GetRepositoryURL() string { 8539 if i == nil || i.RepositoryURL == nil { 8540 return "" 8541 } 8542 return *i.RepositoryURL 8543 } 8544 8545 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 8546 func (i *Import) GetStatus() string { 8547 if i == nil || i.Status == nil { 8548 return "" 8549 } 8550 return *i.Status 8551 } 8552 8553 // GetStatusText returns the StatusText field if it's non-nil, zero value otherwise. 8554 func (i *Import) GetStatusText() string { 8555 if i == nil || i.StatusText == nil { 8556 return "" 8557 } 8558 return *i.StatusText 8559 } 8560 8561 // GetTFVCProject returns the TFVCProject field if it's non-nil, zero value otherwise. 8562 func (i *Import) GetTFVCProject() string { 8563 if i == nil || i.TFVCProject == nil { 8564 return "" 8565 } 8566 return *i.TFVCProject 8567 } 8568 8569 // GetURL returns the URL field if it's non-nil, zero value otherwise. 8570 func (i *Import) GetURL() string { 8571 if i == nil || i.URL == nil { 8572 return "" 8573 } 8574 return *i.URL 8575 } 8576 8577 // GetUseLFS returns the UseLFS field if it's non-nil, zero value otherwise. 8578 func (i *Import) GetUseLFS() string { 8579 if i == nil || i.UseLFS == nil { 8580 return "" 8581 } 8582 return *i.UseLFS 8583 } 8584 8585 // GetVCS returns the VCS field if it's non-nil, zero value otherwise. 8586 func (i *Import) GetVCS() string { 8587 if i == nil || i.VCS == nil { 8588 return "" 8589 } 8590 return *i.VCS 8591 } 8592 8593 // GetVCSPassword returns the VCSPassword field if it's non-nil, zero value otherwise. 8594 func (i *Import) GetVCSPassword() string { 8595 if i == nil || i.VCSPassword == nil { 8596 return "" 8597 } 8598 return *i.VCSPassword 8599 } 8600 8601 // GetVCSURL returns the VCSURL field if it's non-nil, zero value otherwise. 8602 func (i *Import) GetVCSURL() string { 8603 if i == nil || i.VCSURL == nil { 8604 return "" 8605 } 8606 return *i.VCSURL 8607 } 8608 8609 // GetVCSUsername returns the VCSUsername field if it's non-nil, zero value otherwise. 8610 func (i *Import) GetVCSUsername() string { 8611 if i == nil || i.VCSUsername == nil { 8612 return "" 8613 } 8614 return *i.VCSUsername 8615 } 8616 8617 // GetAccessTokensURL returns the AccessTokensURL field if it's non-nil, zero value otherwise. 8618 func (i *Installation) GetAccessTokensURL() string { 8619 if i == nil || i.AccessTokensURL == nil { 8620 return "" 8621 } 8622 return *i.AccessTokensURL 8623 } 8624 8625 // GetAccount returns the Account field. 8626 func (i *Installation) GetAccount() *User { 8627 if i == nil { 8628 return nil 8629 } 8630 return i.Account 8631 } 8632 8633 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 8634 func (i *Installation) GetAppID() int64 { 8635 if i == nil || i.AppID == nil { 8636 return 0 8637 } 8638 return *i.AppID 8639 } 8640 8641 // GetAppSlug returns the AppSlug field if it's non-nil, zero value otherwise. 8642 func (i *Installation) GetAppSlug() string { 8643 if i == nil || i.AppSlug == nil { 8644 return "" 8645 } 8646 return *i.AppSlug 8647 } 8648 8649 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 8650 func (i *Installation) GetCreatedAt() Timestamp { 8651 if i == nil || i.CreatedAt == nil { 8652 return Timestamp{} 8653 } 8654 return *i.CreatedAt 8655 } 8656 8657 // GetHasMultipleSingleFiles returns the HasMultipleSingleFiles field if it's non-nil, zero value otherwise. 8658 func (i *Installation) GetHasMultipleSingleFiles() bool { 8659 if i == nil || i.HasMultipleSingleFiles == nil { 8660 return false 8661 } 8662 return *i.HasMultipleSingleFiles 8663 } 8664 8665 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 8666 func (i *Installation) GetHTMLURL() string { 8667 if i == nil || i.HTMLURL == nil { 8668 return "" 8669 } 8670 return *i.HTMLURL 8671 } 8672 8673 // GetID returns the ID field if it's non-nil, zero value otherwise. 8674 func (i *Installation) GetID() int64 { 8675 if i == nil || i.ID == nil { 8676 return 0 8677 } 8678 return *i.ID 8679 } 8680 8681 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 8682 func (i *Installation) GetNodeID() string { 8683 if i == nil || i.NodeID == nil { 8684 return "" 8685 } 8686 return *i.NodeID 8687 } 8688 8689 // GetPermissions returns the Permissions field. 8690 func (i *Installation) GetPermissions() *InstallationPermissions { 8691 if i == nil { 8692 return nil 8693 } 8694 return i.Permissions 8695 } 8696 8697 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 8698 func (i *Installation) GetRepositoriesURL() string { 8699 if i == nil || i.RepositoriesURL == nil { 8700 return "" 8701 } 8702 return *i.RepositoriesURL 8703 } 8704 8705 // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 8706 func (i *Installation) GetRepositorySelection() string { 8707 if i == nil || i.RepositorySelection == nil { 8708 return "" 8709 } 8710 return *i.RepositorySelection 8711 } 8712 8713 // GetSingleFileName returns the SingleFileName field if it's non-nil, zero value otherwise. 8714 func (i *Installation) GetSingleFileName() string { 8715 if i == nil || i.SingleFileName == nil { 8716 return "" 8717 } 8718 return *i.SingleFileName 8719 } 8720 8721 // GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise. 8722 func (i *Installation) GetSuspendedAt() Timestamp { 8723 if i == nil || i.SuspendedAt == nil { 8724 return Timestamp{} 8725 } 8726 return *i.SuspendedAt 8727 } 8728 8729 // GetSuspendedBy returns the SuspendedBy field. 8730 func (i *Installation) GetSuspendedBy() *User { 8731 if i == nil { 8732 return nil 8733 } 8734 return i.SuspendedBy 8735 } 8736 8737 // GetTargetID returns the TargetID field if it's non-nil, zero value otherwise. 8738 func (i *Installation) GetTargetID() int64 { 8739 if i == nil || i.TargetID == nil { 8740 return 0 8741 } 8742 return *i.TargetID 8743 } 8744 8745 // GetTargetType returns the TargetType field if it's non-nil, zero value otherwise. 8746 func (i *Installation) GetTargetType() string { 8747 if i == nil || i.TargetType == nil { 8748 return "" 8749 } 8750 return *i.TargetType 8751 } 8752 8753 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 8754 func (i *Installation) GetUpdatedAt() Timestamp { 8755 if i == nil || i.UpdatedAt == nil { 8756 return Timestamp{} 8757 } 8758 return *i.UpdatedAt 8759 } 8760 8761 // GetLogin returns the Login field. 8762 func (i *InstallationChanges) GetLogin() *InstallationLoginChange { 8763 if i == nil { 8764 return nil 8765 } 8766 return i.Login 8767 } 8768 8769 // GetSlug returns the Slug field. 8770 func (i *InstallationChanges) GetSlug() *InstallationSlugChange { 8771 if i == nil { 8772 return nil 8773 } 8774 return i.Slug 8775 } 8776 8777 // GetAction returns the Action field if it's non-nil, zero value otherwise. 8778 func (i *InstallationEvent) GetAction() string { 8779 if i == nil || i.Action == nil { 8780 return "" 8781 } 8782 return *i.Action 8783 } 8784 8785 // GetInstallation returns the Installation field. 8786 func (i *InstallationEvent) GetInstallation() *Installation { 8787 if i == nil { 8788 return nil 8789 } 8790 return i.Installation 8791 } 8792 8793 // GetOrg returns the Org field. 8794 func (i *InstallationEvent) GetOrg() *Organization { 8795 if i == nil { 8796 return nil 8797 } 8798 return i.Org 8799 } 8800 8801 // GetRequester returns the Requester field. 8802 func (i *InstallationEvent) GetRequester() *User { 8803 if i == nil { 8804 return nil 8805 } 8806 return i.Requester 8807 } 8808 8809 // GetSender returns the Sender field. 8810 func (i *InstallationEvent) GetSender() *User { 8811 if i == nil { 8812 return nil 8813 } 8814 return i.Sender 8815 } 8816 8817 // GetFrom returns the From field if it's non-nil, zero value otherwise. 8818 func (i *InstallationLoginChange) GetFrom() string { 8819 if i == nil || i.From == nil { 8820 return "" 8821 } 8822 return *i.From 8823 } 8824 8825 // GetActions returns the Actions field if it's non-nil, zero value otherwise. 8826 func (i *InstallationPermissions) GetActions() string { 8827 if i == nil || i.Actions == nil { 8828 return "" 8829 } 8830 return *i.Actions 8831 } 8832 8833 // GetAdministration returns the Administration field if it's non-nil, zero value otherwise. 8834 func (i *InstallationPermissions) GetAdministration() string { 8835 if i == nil || i.Administration == nil { 8836 return "" 8837 } 8838 return *i.Administration 8839 } 8840 8841 // GetBlocking returns the Blocking field if it's non-nil, zero value otherwise. 8842 func (i *InstallationPermissions) GetBlocking() string { 8843 if i == nil || i.Blocking == nil { 8844 return "" 8845 } 8846 return *i.Blocking 8847 } 8848 8849 // GetChecks returns the Checks field if it's non-nil, zero value otherwise. 8850 func (i *InstallationPermissions) GetChecks() string { 8851 if i == nil || i.Checks == nil { 8852 return "" 8853 } 8854 return *i.Checks 8855 } 8856 8857 // GetContentReferences returns the ContentReferences field if it's non-nil, zero value otherwise. 8858 func (i *InstallationPermissions) GetContentReferences() string { 8859 if i == nil || i.ContentReferences == nil { 8860 return "" 8861 } 8862 return *i.ContentReferences 8863 } 8864 8865 // GetContents returns the Contents field if it's non-nil, zero value otherwise. 8866 func (i *InstallationPermissions) GetContents() string { 8867 if i == nil || i.Contents == nil { 8868 return "" 8869 } 8870 return *i.Contents 8871 } 8872 8873 // GetDeployments returns the Deployments field if it's non-nil, zero value otherwise. 8874 func (i *InstallationPermissions) GetDeployments() string { 8875 if i == nil || i.Deployments == nil { 8876 return "" 8877 } 8878 return *i.Deployments 8879 } 8880 8881 // GetEmails returns the Emails field if it's non-nil, zero value otherwise. 8882 func (i *InstallationPermissions) GetEmails() string { 8883 if i == nil || i.Emails == nil { 8884 return "" 8885 } 8886 return *i.Emails 8887 } 8888 8889 // GetEnvironments returns the Environments field if it's non-nil, zero value otherwise. 8890 func (i *InstallationPermissions) GetEnvironments() string { 8891 if i == nil || i.Environments == nil { 8892 return "" 8893 } 8894 return *i.Environments 8895 } 8896 8897 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 8898 func (i *InstallationPermissions) GetFollowers() string { 8899 if i == nil || i.Followers == nil { 8900 return "" 8901 } 8902 return *i.Followers 8903 } 8904 8905 // GetIssues returns the Issues field if it's non-nil, zero value otherwise. 8906 func (i *InstallationPermissions) GetIssues() string { 8907 if i == nil || i.Issues == nil { 8908 return "" 8909 } 8910 return *i.Issues 8911 } 8912 8913 // GetMembers returns the Members field if it's non-nil, zero value otherwise. 8914 func (i *InstallationPermissions) GetMembers() string { 8915 if i == nil || i.Members == nil { 8916 return "" 8917 } 8918 return *i.Members 8919 } 8920 8921 // GetMetadata returns the Metadata field if it's non-nil, zero value otherwise. 8922 func (i *InstallationPermissions) GetMetadata() string { 8923 if i == nil || i.Metadata == nil { 8924 return "" 8925 } 8926 return *i.Metadata 8927 } 8928 8929 // GetOrganizationAdministration returns the OrganizationAdministration field if it's non-nil, zero value otherwise. 8930 func (i *InstallationPermissions) GetOrganizationAdministration() string { 8931 if i == nil || i.OrganizationAdministration == nil { 8932 return "" 8933 } 8934 return *i.OrganizationAdministration 8935 } 8936 8937 // GetOrganizationCustomRoles returns the OrganizationCustomRoles field if it's non-nil, zero value otherwise. 8938 func (i *InstallationPermissions) GetOrganizationCustomRoles() string { 8939 if i == nil || i.OrganizationCustomRoles == nil { 8940 return "" 8941 } 8942 return *i.OrganizationCustomRoles 8943 } 8944 8945 // GetOrganizationHooks returns the OrganizationHooks field if it's non-nil, zero value otherwise. 8946 func (i *InstallationPermissions) GetOrganizationHooks() string { 8947 if i == nil || i.OrganizationHooks == nil { 8948 return "" 8949 } 8950 return *i.OrganizationHooks 8951 } 8952 8953 // GetOrganizationPackages returns the OrganizationPackages field if it's non-nil, zero value otherwise. 8954 func (i *InstallationPermissions) GetOrganizationPackages() string { 8955 if i == nil || i.OrganizationPackages == nil { 8956 return "" 8957 } 8958 return *i.OrganizationPackages 8959 } 8960 8961 // GetOrganizationPlan returns the OrganizationPlan field if it's non-nil, zero value otherwise. 8962 func (i *InstallationPermissions) GetOrganizationPlan() string { 8963 if i == nil || i.OrganizationPlan == nil { 8964 return "" 8965 } 8966 return *i.OrganizationPlan 8967 } 8968 8969 // GetOrganizationPreReceiveHooks returns the OrganizationPreReceiveHooks field if it's non-nil, zero value otherwise. 8970 func (i *InstallationPermissions) GetOrganizationPreReceiveHooks() string { 8971 if i == nil || i.OrganizationPreReceiveHooks == nil { 8972 return "" 8973 } 8974 return *i.OrganizationPreReceiveHooks 8975 } 8976 8977 // GetOrganizationProjects returns the OrganizationProjects field if it's non-nil, zero value otherwise. 8978 func (i *InstallationPermissions) GetOrganizationProjects() string { 8979 if i == nil || i.OrganizationProjects == nil { 8980 return "" 8981 } 8982 return *i.OrganizationProjects 8983 } 8984 8985 // GetOrganizationSecrets returns the OrganizationSecrets field if it's non-nil, zero value otherwise. 8986 func (i *InstallationPermissions) GetOrganizationSecrets() string { 8987 if i == nil || i.OrganizationSecrets == nil { 8988 return "" 8989 } 8990 return *i.OrganizationSecrets 8991 } 8992 8993 // GetOrganizationSelfHostedRunners returns the OrganizationSelfHostedRunners field if it's non-nil, zero value otherwise. 8994 func (i *InstallationPermissions) GetOrganizationSelfHostedRunners() string { 8995 if i == nil || i.OrganizationSelfHostedRunners == nil { 8996 return "" 8997 } 8998 return *i.OrganizationSelfHostedRunners 8999 } 9000 9001 // GetOrganizationUserBlocking returns the OrganizationUserBlocking field if it's non-nil, zero value otherwise. 9002 func (i *InstallationPermissions) GetOrganizationUserBlocking() string { 9003 if i == nil || i.OrganizationUserBlocking == nil { 9004 return "" 9005 } 9006 return *i.OrganizationUserBlocking 9007 } 9008 9009 // GetPackages returns the Packages field if it's non-nil, zero value otherwise. 9010 func (i *InstallationPermissions) GetPackages() string { 9011 if i == nil || i.Packages == nil { 9012 return "" 9013 } 9014 return *i.Packages 9015 } 9016 9017 // GetPages returns the Pages field if it's non-nil, zero value otherwise. 9018 func (i *InstallationPermissions) GetPages() string { 9019 if i == nil || i.Pages == nil { 9020 return "" 9021 } 9022 return *i.Pages 9023 } 9024 9025 // GetPullRequests returns the PullRequests field if it's non-nil, zero value otherwise. 9026 func (i *InstallationPermissions) GetPullRequests() string { 9027 if i == nil || i.PullRequests == nil { 9028 return "" 9029 } 9030 return *i.PullRequests 9031 } 9032 9033 // GetRepositoryHooks returns the RepositoryHooks field if it's non-nil, zero value otherwise. 9034 func (i *InstallationPermissions) GetRepositoryHooks() string { 9035 if i == nil || i.RepositoryHooks == nil { 9036 return "" 9037 } 9038 return *i.RepositoryHooks 9039 } 9040 9041 // GetRepositoryPreReceiveHooks returns the RepositoryPreReceiveHooks field if it's non-nil, zero value otherwise. 9042 func (i *InstallationPermissions) GetRepositoryPreReceiveHooks() string { 9043 if i == nil || i.RepositoryPreReceiveHooks == nil { 9044 return "" 9045 } 9046 return *i.RepositoryPreReceiveHooks 9047 } 9048 9049 // GetRepositoryProjects returns the RepositoryProjects field if it's non-nil, zero value otherwise. 9050 func (i *InstallationPermissions) GetRepositoryProjects() string { 9051 if i == nil || i.RepositoryProjects == nil { 9052 return "" 9053 } 9054 return *i.RepositoryProjects 9055 } 9056 9057 // GetSecrets returns the Secrets field if it's non-nil, zero value otherwise. 9058 func (i *InstallationPermissions) GetSecrets() string { 9059 if i == nil || i.Secrets == nil { 9060 return "" 9061 } 9062 return *i.Secrets 9063 } 9064 9065 // GetSecretScanningAlerts returns the SecretScanningAlerts field if it's non-nil, zero value otherwise. 9066 func (i *InstallationPermissions) GetSecretScanningAlerts() string { 9067 if i == nil || i.SecretScanningAlerts == nil { 9068 return "" 9069 } 9070 return *i.SecretScanningAlerts 9071 } 9072 9073 // GetSecurityEvents returns the SecurityEvents field if it's non-nil, zero value otherwise. 9074 func (i *InstallationPermissions) GetSecurityEvents() string { 9075 if i == nil || i.SecurityEvents == nil { 9076 return "" 9077 } 9078 return *i.SecurityEvents 9079 } 9080 9081 // GetSingleFile returns the SingleFile field if it's non-nil, zero value otherwise. 9082 func (i *InstallationPermissions) GetSingleFile() string { 9083 if i == nil || i.SingleFile == nil { 9084 return "" 9085 } 9086 return *i.SingleFile 9087 } 9088 9089 // GetStatuses returns the Statuses field if it's non-nil, zero value otherwise. 9090 func (i *InstallationPermissions) GetStatuses() string { 9091 if i == nil || i.Statuses == nil { 9092 return "" 9093 } 9094 return *i.Statuses 9095 } 9096 9097 // GetTeamDiscussions returns the TeamDiscussions field if it's non-nil, zero value otherwise. 9098 func (i *InstallationPermissions) GetTeamDiscussions() string { 9099 if i == nil || i.TeamDiscussions == nil { 9100 return "" 9101 } 9102 return *i.TeamDiscussions 9103 } 9104 9105 // GetVulnerabilityAlerts returns the VulnerabilityAlerts field if it's non-nil, zero value otherwise. 9106 func (i *InstallationPermissions) GetVulnerabilityAlerts() string { 9107 if i == nil || i.VulnerabilityAlerts == nil { 9108 return "" 9109 } 9110 return *i.VulnerabilityAlerts 9111 } 9112 9113 // GetWorkflows returns the Workflows field if it's non-nil, zero value otherwise. 9114 func (i *InstallationPermissions) GetWorkflows() string { 9115 if i == nil || i.Workflows == nil { 9116 return "" 9117 } 9118 return *i.Workflows 9119 } 9120 9121 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9122 func (i *InstallationRepositoriesEvent) GetAction() string { 9123 if i == nil || i.Action == nil { 9124 return "" 9125 } 9126 return *i.Action 9127 } 9128 9129 // GetInstallation returns the Installation field. 9130 func (i *InstallationRepositoriesEvent) GetInstallation() *Installation { 9131 if i == nil { 9132 return nil 9133 } 9134 return i.Installation 9135 } 9136 9137 // GetOrg returns the Org field. 9138 func (i *InstallationRepositoriesEvent) GetOrg() *Organization { 9139 if i == nil { 9140 return nil 9141 } 9142 return i.Org 9143 } 9144 9145 // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 9146 func (i *InstallationRepositoriesEvent) GetRepositorySelection() string { 9147 if i == nil || i.RepositorySelection == nil { 9148 return "" 9149 } 9150 return *i.RepositorySelection 9151 } 9152 9153 // GetSender returns the Sender field. 9154 func (i *InstallationRepositoriesEvent) GetSender() *User { 9155 if i == nil { 9156 return nil 9157 } 9158 return i.Sender 9159 } 9160 9161 // GetAccount returns the Account field. 9162 func (i *InstallationRequest) GetAccount() *User { 9163 if i == nil { 9164 return nil 9165 } 9166 return i.Account 9167 } 9168 9169 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9170 func (i *InstallationRequest) GetCreatedAt() Timestamp { 9171 if i == nil || i.CreatedAt == nil { 9172 return Timestamp{} 9173 } 9174 return *i.CreatedAt 9175 } 9176 9177 // GetID returns the ID field if it's non-nil, zero value otherwise. 9178 func (i *InstallationRequest) GetID() int64 { 9179 if i == nil || i.ID == nil { 9180 return 0 9181 } 9182 return *i.ID 9183 } 9184 9185 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9186 func (i *InstallationRequest) GetNodeID() string { 9187 if i == nil || i.NodeID == nil { 9188 return "" 9189 } 9190 return *i.NodeID 9191 } 9192 9193 // GetRequester returns the Requester field. 9194 func (i *InstallationRequest) GetRequester() *User { 9195 if i == nil { 9196 return nil 9197 } 9198 return i.Requester 9199 } 9200 9201 // GetFrom returns the From field if it's non-nil, zero value otherwise. 9202 func (i *InstallationSlugChange) GetFrom() string { 9203 if i == nil || i.From == nil { 9204 return "" 9205 } 9206 return *i.From 9207 } 9208 9209 // GetAccount returns the Account field. 9210 func (i *InstallationTargetEvent) GetAccount() *User { 9211 if i == nil { 9212 return nil 9213 } 9214 return i.Account 9215 } 9216 9217 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9218 func (i *InstallationTargetEvent) GetAction() string { 9219 if i == nil || i.Action == nil { 9220 return "" 9221 } 9222 return *i.Action 9223 } 9224 9225 // GetChanges returns the Changes field. 9226 func (i *InstallationTargetEvent) GetChanges() *InstallationChanges { 9227 if i == nil { 9228 return nil 9229 } 9230 return i.Changes 9231 } 9232 9233 // GetEnterprise returns the Enterprise field. 9234 func (i *InstallationTargetEvent) GetEnterprise() *Enterprise { 9235 if i == nil { 9236 return nil 9237 } 9238 return i.Enterprise 9239 } 9240 9241 // GetInstallation returns the Installation field. 9242 func (i *InstallationTargetEvent) GetInstallation() *Installation { 9243 if i == nil { 9244 return nil 9245 } 9246 return i.Installation 9247 } 9248 9249 // GetOrganization returns the Organization field. 9250 func (i *InstallationTargetEvent) GetOrganization() *Organization { 9251 if i == nil { 9252 return nil 9253 } 9254 return i.Organization 9255 } 9256 9257 // GetRepository returns the Repository field. 9258 func (i *InstallationTargetEvent) GetRepository() *Repository { 9259 if i == nil { 9260 return nil 9261 } 9262 return i.Repository 9263 } 9264 9265 // GetSender returns the Sender field. 9266 func (i *InstallationTargetEvent) GetSender() *User { 9267 if i == nil { 9268 return nil 9269 } 9270 return i.Sender 9271 } 9272 9273 // GetTargetType returns the TargetType field if it's non-nil, zero value otherwise. 9274 func (i *InstallationTargetEvent) GetTargetType() string { 9275 if i == nil || i.TargetType == nil { 9276 return "" 9277 } 9278 return *i.TargetType 9279 } 9280 9281 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 9282 func (i *InstallationToken) GetExpiresAt() Timestamp { 9283 if i == nil || i.ExpiresAt == nil { 9284 return Timestamp{} 9285 } 9286 return *i.ExpiresAt 9287 } 9288 9289 // GetPermissions returns the Permissions field. 9290 func (i *InstallationToken) GetPermissions() *InstallationPermissions { 9291 if i == nil { 9292 return nil 9293 } 9294 return i.Permissions 9295 } 9296 9297 // GetToken returns the Token field if it's non-nil, zero value otherwise. 9298 func (i *InstallationToken) GetToken() string { 9299 if i == nil || i.Token == nil { 9300 return "" 9301 } 9302 return *i.Token 9303 } 9304 9305 // GetPermissions returns the Permissions field. 9306 func (i *InstallationTokenOptions) GetPermissions() *InstallationPermissions { 9307 if i == nil { 9308 return nil 9309 } 9310 return i.Permissions 9311 } 9312 9313 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 9314 func (i *InteractionRestriction) GetExpiresAt() Timestamp { 9315 if i == nil || i.ExpiresAt == nil { 9316 return Timestamp{} 9317 } 9318 return *i.ExpiresAt 9319 } 9320 9321 // GetLimit returns the Limit field if it's non-nil, zero value otherwise. 9322 func (i *InteractionRestriction) GetLimit() string { 9323 if i == nil || i.Limit == nil { 9324 return "" 9325 } 9326 return *i.Limit 9327 } 9328 9329 // GetOrigin returns the Origin field if it's non-nil, zero value otherwise. 9330 func (i *InteractionRestriction) GetOrigin() string { 9331 if i == nil || i.Origin == nil { 9332 return "" 9333 } 9334 return *i.Origin 9335 } 9336 9337 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9338 func (i *Invitation) GetCreatedAt() Timestamp { 9339 if i == nil || i.CreatedAt == nil { 9340 return Timestamp{} 9341 } 9342 return *i.CreatedAt 9343 } 9344 9345 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 9346 func (i *Invitation) GetEmail() string { 9347 if i == nil || i.Email == nil { 9348 return "" 9349 } 9350 return *i.Email 9351 } 9352 9353 // GetFailedAt returns the FailedAt field if it's non-nil, zero value otherwise. 9354 func (i *Invitation) GetFailedAt() Timestamp { 9355 if i == nil || i.FailedAt == nil { 9356 return Timestamp{} 9357 } 9358 return *i.FailedAt 9359 } 9360 9361 // GetFailedReason returns the FailedReason field if it's non-nil, zero value otherwise. 9362 func (i *Invitation) GetFailedReason() string { 9363 if i == nil || i.FailedReason == nil { 9364 return "" 9365 } 9366 return *i.FailedReason 9367 } 9368 9369 // GetID returns the ID field if it's non-nil, zero value otherwise. 9370 func (i *Invitation) GetID() int64 { 9371 if i == nil || i.ID == nil { 9372 return 0 9373 } 9374 return *i.ID 9375 } 9376 9377 // GetInvitationTeamURL returns the InvitationTeamURL field if it's non-nil, zero value otherwise. 9378 func (i *Invitation) GetInvitationTeamURL() string { 9379 if i == nil || i.InvitationTeamURL == nil { 9380 return "" 9381 } 9382 return *i.InvitationTeamURL 9383 } 9384 9385 // GetInviter returns the Inviter field. 9386 func (i *Invitation) GetInviter() *User { 9387 if i == nil { 9388 return nil 9389 } 9390 return i.Inviter 9391 } 9392 9393 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 9394 func (i *Invitation) GetLogin() string { 9395 if i == nil || i.Login == nil { 9396 return "" 9397 } 9398 return *i.Login 9399 } 9400 9401 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9402 func (i *Invitation) GetNodeID() string { 9403 if i == nil || i.NodeID == nil { 9404 return "" 9405 } 9406 return *i.NodeID 9407 } 9408 9409 // GetRole returns the Role field if it's non-nil, zero value otherwise. 9410 func (i *Invitation) GetRole() string { 9411 if i == nil || i.Role == nil { 9412 return "" 9413 } 9414 return *i.Role 9415 } 9416 9417 // GetTeamCount returns the TeamCount field if it's non-nil, zero value otherwise. 9418 func (i *Invitation) GetTeamCount() int { 9419 if i == nil || i.TeamCount == nil { 9420 return 0 9421 } 9422 return *i.TeamCount 9423 } 9424 9425 // GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 9426 func (i *Issue) GetActiveLockReason() string { 9427 if i == nil || i.ActiveLockReason == nil { 9428 return "" 9429 } 9430 return *i.ActiveLockReason 9431 } 9432 9433 // GetAssignee returns the Assignee field. 9434 func (i *Issue) GetAssignee() *User { 9435 if i == nil { 9436 return nil 9437 } 9438 return i.Assignee 9439 } 9440 9441 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 9442 func (i *Issue) GetAuthorAssociation() string { 9443 if i == nil || i.AuthorAssociation == nil { 9444 return "" 9445 } 9446 return *i.AuthorAssociation 9447 } 9448 9449 // GetBody returns the Body field if it's non-nil, zero value otherwise. 9450 func (i *Issue) GetBody() string { 9451 if i == nil || i.Body == nil { 9452 return "" 9453 } 9454 return *i.Body 9455 } 9456 9457 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 9458 func (i *Issue) GetClosedAt() Timestamp { 9459 if i == nil || i.ClosedAt == nil { 9460 return Timestamp{} 9461 } 9462 return *i.ClosedAt 9463 } 9464 9465 // GetClosedBy returns the ClosedBy field. 9466 func (i *Issue) GetClosedBy() *User { 9467 if i == nil { 9468 return nil 9469 } 9470 return i.ClosedBy 9471 } 9472 9473 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 9474 func (i *Issue) GetComments() int { 9475 if i == nil || i.Comments == nil { 9476 return 0 9477 } 9478 return *i.Comments 9479 } 9480 9481 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 9482 func (i *Issue) GetCommentsURL() string { 9483 if i == nil || i.CommentsURL == nil { 9484 return "" 9485 } 9486 return *i.CommentsURL 9487 } 9488 9489 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9490 func (i *Issue) GetCreatedAt() Timestamp { 9491 if i == nil || i.CreatedAt == nil { 9492 return Timestamp{} 9493 } 9494 return *i.CreatedAt 9495 } 9496 9497 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 9498 func (i *Issue) GetDraft() bool { 9499 if i == nil || i.Draft == nil { 9500 return false 9501 } 9502 return *i.Draft 9503 } 9504 9505 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 9506 func (i *Issue) GetEventsURL() string { 9507 if i == nil || i.EventsURL == nil { 9508 return "" 9509 } 9510 return *i.EventsURL 9511 } 9512 9513 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9514 func (i *Issue) GetHTMLURL() string { 9515 if i == nil || i.HTMLURL == nil { 9516 return "" 9517 } 9518 return *i.HTMLURL 9519 } 9520 9521 // GetID returns the ID field if it's non-nil, zero value otherwise. 9522 func (i *Issue) GetID() int64 { 9523 if i == nil || i.ID == nil { 9524 return 0 9525 } 9526 return *i.ID 9527 } 9528 9529 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 9530 func (i *Issue) GetLabelsURL() string { 9531 if i == nil || i.LabelsURL == nil { 9532 return "" 9533 } 9534 return *i.LabelsURL 9535 } 9536 9537 // GetLocked returns the Locked field if it's non-nil, zero value otherwise. 9538 func (i *Issue) GetLocked() bool { 9539 if i == nil || i.Locked == nil { 9540 return false 9541 } 9542 return *i.Locked 9543 } 9544 9545 // GetMilestone returns the Milestone field. 9546 func (i *Issue) GetMilestone() *Milestone { 9547 if i == nil { 9548 return nil 9549 } 9550 return i.Milestone 9551 } 9552 9553 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9554 func (i *Issue) GetNodeID() string { 9555 if i == nil || i.NodeID == nil { 9556 return "" 9557 } 9558 return *i.NodeID 9559 } 9560 9561 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 9562 func (i *Issue) GetNumber() int { 9563 if i == nil || i.Number == nil { 9564 return 0 9565 } 9566 return *i.Number 9567 } 9568 9569 // GetPullRequestLinks returns the PullRequestLinks field. 9570 func (i *Issue) GetPullRequestLinks() *PullRequestLinks { 9571 if i == nil { 9572 return nil 9573 } 9574 return i.PullRequestLinks 9575 } 9576 9577 // GetReactions returns the Reactions field. 9578 func (i *Issue) GetReactions() *Reactions { 9579 if i == nil { 9580 return nil 9581 } 9582 return i.Reactions 9583 } 9584 9585 // GetRepository returns the Repository field. 9586 func (i *Issue) GetRepository() *Repository { 9587 if i == nil { 9588 return nil 9589 } 9590 return i.Repository 9591 } 9592 9593 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 9594 func (i *Issue) GetRepositoryURL() string { 9595 if i == nil || i.RepositoryURL == nil { 9596 return "" 9597 } 9598 return *i.RepositoryURL 9599 } 9600 9601 // GetState returns the State field if it's non-nil, zero value otherwise. 9602 func (i *Issue) GetState() string { 9603 if i == nil || i.State == nil { 9604 return "" 9605 } 9606 return *i.State 9607 } 9608 9609 // GetStateReason returns the StateReason field if it's non-nil, zero value otherwise. 9610 func (i *Issue) GetStateReason() string { 9611 if i == nil || i.StateReason == nil { 9612 return "" 9613 } 9614 return *i.StateReason 9615 } 9616 9617 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 9618 func (i *Issue) GetTitle() string { 9619 if i == nil || i.Title == nil { 9620 return "" 9621 } 9622 return *i.Title 9623 } 9624 9625 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9626 func (i *Issue) GetUpdatedAt() Timestamp { 9627 if i == nil || i.UpdatedAt == nil { 9628 return Timestamp{} 9629 } 9630 return *i.UpdatedAt 9631 } 9632 9633 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9634 func (i *Issue) GetURL() string { 9635 if i == nil || i.URL == nil { 9636 return "" 9637 } 9638 return *i.URL 9639 } 9640 9641 // GetUser returns the User field. 9642 func (i *Issue) GetUser() *User { 9643 if i == nil { 9644 return nil 9645 } 9646 return i.User 9647 } 9648 9649 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 9650 func (i *IssueComment) GetAuthorAssociation() string { 9651 if i == nil || i.AuthorAssociation == nil { 9652 return "" 9653 } 9654 return *i.AuthorAssociation 9655 } 9656 9657 // GetBody returns the Body field if it's non-nil, zero value otherwise. 9658 func (i *IssueComment) GetBody() string { 9659 if i == nil || i.Body == nil { 9660 return "" 9661 } 9662 return *i.Body 9663 } 9664 9665 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9666 func (i *IssueComment) GetCreatedAt() Timestamp { 9667 if i == nil || i.CreatedAt == nil { 9668 return Timestamp{} 9669 } 9670 return *i.CreatedAt 9671 } 9672 9673 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 9674 func (i *IssueComment) GetHTMLURL() string { 9675 if i == nil || i.HTMLURL == nil { 9676 return "" 9677 } 9678 return *i.HTMLURL 9679 } 9680 9681 // GetID returns the ID field if it's non-nil, zero value otherwise. 9682 func (i *IssueComment) GetID() int64 { 9683 if i == nil || i.ID == nil { 9684 return 0 9685 } 9686 return *i.ID 9687 } 9688 9689 // GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 9690 func (i *IssueComment) GetIssueURL() string { 9691 if i == nil || i.IssueURL == nil { 9692 return "" 9693 } 9694 return *i.IssueURL 9695 } 9696 9697 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 9698 func (i *IssueComment) GetNodeID() string { 9699 if i == nil || i.NodeID == nil { 9700 return "" 9701 } 9702 return *i.NodeID 9703 } 9704 9705 // GetReactions returns the Reactions field. 9706 func (i *IssueComment) GetReactions() *Reactions { 9707 if i == nil { 9708 return nil 9709 } 9710 return i.Reactions 9711 } 9712 9713 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9714 func (i *IssueComment) GetUpdatedAt() Timestamp { 9715 if i == nil || i.UpdatedAt == nil { 9716 return Timestamp{} 9717 } 9718 return *i.UpdatedAt 9719 } 9720 9721 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9722 func (i *IssueComment) GetURL() string { 9723 if i == nil || i.URL == nil { 9724 return "" 9725 } 9726 return *i.URL 9727 } 9728 9729 // GetUser returns the User field. 9730 func (i *IssueComment) GetUser() *User { 9731 if i == nil { 9732 return nil 9733 } 9734 return i.User 9735 } 9736 9737 // GetAction returns the Action field if it's non-nil, zero value otherwise. 9738 func (i *IssueCommentEvent) GetAction() string { 9739 if i == nil || i.Action == nil { 9740 return "" 9741 } 9742 return *i.Action 9743 } 9744 9745 // GetChanges returns the Changes field. 9746 func (i *IssueCommentEvent) GetChanges() *EditChange { 9747 if i == nil { 9748 return nil 9749 } 9750 return i.Changes 9751 } 9752 9753 // GetComment returns the Comment field. 9754 func (i *IssueCommentEvent) GetComment() *IssueComment { 9755 if i == nil { 9756 return nil 9757 } 9758 return i.Comment 9759 } 9760 9761 // GetInstallation returns the Installation field. 9762 func (i *IssueCommentEvent) GetInstallation() *Installation { 9763 if i == nil { 9764 return nil 9765 } 9766 return i.Installation 9767 } 9768 9769 // GetIssue returns the Issue field. 9770 func (i *IssueCommentEvent) GetIssue() *Issue { 9771 if i == nil { 9772 return nil 9773 } 9774 return i.Issue 9775 } 9776 9777 // GetOrganization returns the Organization field. 9778 func (i *IssueCommentEvent) GetOrganization() *Organization { 9779 if i == nil { 9780 return nil 9781 } 9782 return i.Organization 9783 } 9784 9785 // GetRepo returns the Repo field. 9786 func (i *IssueCommentEvent) GetRepo() *Repository { 9787 if i == nil { 9788 return nil 9789 } 9790 return i.Repo 9791 } 9792 9793 // GetSender returns the Sender field. 9794 func (i *IssueCommentEvent) GetSender() *User { 9795 if i == nil { 9796 return nil 9797 } 9798 return i.Sender 9799 } 9800 9801 // GetActor returns the Actor field. 9802 func (i *IssueEvent) GetActor() *User { 9803 if i == nil { 9804 return nil 9805 } 9806 return i.Actor 9807 } 9808 9809 // GetAssignee returns the Assignee field. 9810 func (i *IssueEvent) GetAssignee() *User { 9811 if i == nil { 9812 return nil 9813 } 9814 return i.Assignee 9815 } 9816 9817 // GetAssigner returns the Assigner field. 9818 func (i *IssueEvent) GetAssigner() *User { 9819 if i == nil { 9820 return nil 9821 } 9822 return i.Assigner 9823 } 9824 9825 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 9826 func (i *IssueEvent) GetCommitID() string { 9827 if i == nil || i.CommitID == nil { 9828 return "" 9829 } 9830 return *i.CommitID 9831 } 9832 9833 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9834 func (i *IssueEvent) GetCreatedAt() Timestamp { 9835 if i == nil || i.CreatedAt == nil { 9836 return Timestamp{} 9837 } 9838 return *i.CreatedAt 9839 } 9840 9841 // GetDismissedReview returns the DismissedReview field. 9842 func (i *IssueEvent) GetDismissedReview() *DismissedReview { 9843 if i == nil { 9844 return nil 9845 } 9846 return i.DismissedReview 9847 } 9848 9849 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 9850 func (i *IssueEvent) GetEvent() string { 9851 if i == nil || i.Event == nil { 9852 return "" 9853 } 9854 return *i.Event 9855 } 9856 9857 // GetID returns the ID field if it's non-nil, zero value otherwise. 9858 func (i *IssueEvent) GetID() int64 { 9859 if i == nil || i.ID == nil { 9860 return 0 9861 } 9862 return *i.ID 9863 } 9864 9865 // GetIssue returns the Issue field. 9866 func (i *IssueEvent) GetIssue() *Issue { 9867 if i == nil { 9868 return nil 9869 } 9870 return i.Issue 9871 } 9872 9873 // GetLabel returns the Label field. 9874 func (i *IssueEvent) GetLabel() *Label { 9875 if i == nil { 9876 return nil 9877 } 9878 return i.Label 9879 } 9880 9881 // GetLockReason returns the LockReason field if it's non-nil, zero value otherwise. 9882 func (i *IssueEvent) GetLockReason() string { 9883 if i == nil || i.LockReason == nil { 9884 return "" 9885 } 9886 return *i.LockReason 9887 } 9888 9889 // GetMilestone returns the Milestone field. 9890 func (i *IssueEvent) GetMilestone() *Milestone { 9891 if i == nil { 9892 return nil 9893 } 9894 return i.Milestone 9895 } 9896 9897 // GetPerformedViaGithubApp returns the PerformedViaGithubApp field. 9898 func (i *IssueEvent) GetPerformedViaGithubApp() *App { 9899 if i == nil { 9900 return nil 9901 } 9902 return i.PerformedViaGithubApp 9903 } 9904 9905 // GetProjectCard returns the ProjectCard field. 9906 func (i *IssueEvent) GetProjectCard() *ProjectCard { 9907 if i == nil { 9908 return nil 9909 } 9910 return i.ProjectCard 9911 } 9912 9913 // GetRename returns the Rename field. 9914 func (i *IssueEvent) GetRename() *Rename { 9915 if i == nil { 9916 return nil 9917 } 9918 return i.Rename 9919 } 9920 9921 // GetRequestedReviewer returns the RequestedReviewer field. 9922 func (i *IssueEvent) GetRequestedReviewer() *User { 9923 if i == nil { 9924 return nil 9925 } 9926 return i.RequestedReviewer 9927 } 9928 9929 // GetRequestedTeam returns the RequestedTeam field. 9930 func (i *IssueEvent) GetRequestedTeam() *Team { 9931 if i == nil { 9932 return nil 9933 } 9934 return i.RequestedTeam 9935 } 9936 9937 // GetReviewRequester returns the ReviewRequester field. 9938 func (i *IssueEvent) GetReviewRequester() *User { 9939 if i == nil { 9940 return nil 9941 } 9942 return i.ReviewRequester 9943 } 9944 9945 // GetURL returns the URL field if it's non-nil, zero value otherwise. 9946 func (i *IssueEvent) GetURL() string { 9947 if i == nil || i.URL == nil { 9948 return "" 9949 } 9950 return *i.URL 9951 } 9952 9953 // GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. 9954 func (i *IssueImport) GetAssignee() string { 9955 if i == nil || i.Assignee == nil { 9956 return "" 9957 } 9958 return *i.Assignee 9959 } 9960 9961 // GetClosed returns the Closed field if it's non-nil, zero value otherwise. 9962 func (i *IssueImport) GetClosed() bool { 9963 if i == nil || i.Closed == nil { 9964 return false 9965 } 9966 return *i.Closed 9967 } 9968 9969 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 9970 func (i *IssueImport) GetClosedAt() Timestamp { 9971 if i == nil || i.ClosedAt == nil { 9972 return Timestamp{} 9973 } 9974 return *i.ClosedAt 9975 } 9976 9977 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 9978 func (i *IssueImport) GetCreatedAt() Timestamp { 9979 if i == nil || i.CreatedAt == nil { 9980 return Timestamp{} 9981 } 9982 return *i.CreatedAt 9983 } 9984 9985 // GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. 9986 func (i *IssueImport) GetMilestone() int { 9987 if i == nil || i.Milestone == nil { 9988 return 0 9989 } 9990 return *i.Milestone 9991 } 9992 9993 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 9994 func (i *IssueImport) GetUpdatedAt() Timestamp { 9995 if i == nil || i.UpdatedAt == nil { 9996 return Timestamp{} 9997 } 9998 return *i.UpdatedAt 9999 } 10000 10001 // GetCode returns the Code field if it's non-nil, zero value otherwise. 10002 func (i *IssueImportError) GetCode() string { 10003 if i == nil || i.Code == nil { 10004 return "" 10005 } 10006 return *i.Code 10007 } 10008 10009 // GetField returns the Field field if it's non-nil, zero value otherwise. 10010 func (i *IssueImportError) GetField() string { 10011 if i == nil || i.Field == nil { 10012 return "" 10013 } 10014 return *i.Field 10015 } 10016 10017 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 10018 func (i *IssueImportError) GetLocation() string { 10019 if i == nil || i.Location == nil { 10020 return "" 10021 } 10022 return *i.Location 10023 } 10024 10025 // GetResource returns the Resource field if it's non-nil, zero value otherwise. 10026 func (i *IssueImportError) GetResource() string { 10027 if i == nil || i.Resource == nil { 10028 return "" 10029 } 10030 return *i.Resource 10031 } 10032 10033 // GetValue returns the Value field if it's non-nil, zero value otherwise. 10034 func (i *IssueImportError) GetValue() string { 10035 if i == nil || i.Value == nil { 10036 return "" 10037 } 10038 return *i.Value 10039 } 10040 10041 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10042 func (i *IssueImportResponse) GetCreatedAt() Timestamp { 10043 if i == nil || i.CreatedAt == nil { 10044 return Timestamp{} 10045 } 10046 return *i.CreatedAt 10047 } 10048 10049 // GetDocumentationURL returns the DocumentationURL field if it's non-nil, zero value otherwise. 10050 func (i *IssueImportResponse) GetDocumentationURL() string { 10051 if i == nil || i.DocumentationURL == nil { 10052 return "" 10053 } 10054 return *i.DocumentationURL 10055 } 10056 10057 // GetID returns the ID field if it's non-nil, zero value otherwise. 10058 func (i *IssueImportResponse) GetID() int { 10059 if i == nil || i.ID == nil { 10060 return 0 10061 } 10062 return *i.ID 10063 } 10064 10065 // GetImportIssuesURL returns the ImportIssuesURL field if it's non-nil, zero value otherwise. 10066 func (i *IssueImportResponse) GetImportIssuesURL() string { 10067 if i == nil || i.ImportIssuesURL == nil { 10068 return "" 10069 } 10070 return *i.ImportIssuesURL 10071 } 10072 10073 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 10074 func (i *IssueImportResponse) GetMessage() string { 10075 if i == nil || i.Message == nil { 10076 return "" 10077 } 10078 return *i.Message 10079 } 10080 10081 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 10082 func (i *IssueImportResponse) GetRepositoryURL() string { 10083 if i == nil || i.RepositoryURL == nil { 10084 return "" 10085 } 10086 return *i.RepositoryURL 10087 } 10088 10089 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 10090 func (i *IssueImportResponse) GetStatus() string { 10091 if i == nil || i.Status == nil { 10092 return "" 10093 } 10094 return *i.Status 10095 } 10096 10097 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 10098 func (i *IssueImportResponse) GetUpdatedAt() Timestamp { 10099 if i == nil || i.UpdatedAt == nil { 10100 return Timestamp{} 10101 } 10102 return *i.UpdatedAt 10103 } 10104 10105 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10106 func (i *IssueImportResponse) GetURL() string { 10107 if i == nil || i.URL == nil { 10108 return "" 10109 } 10110 return *i.URL 10111 } 10112 10113 // GetDirection returns the Direction field if it's non-nil, zero value otherwise. 10114 func (i *IssueListCommentsOptions) GetDirection() string { 10115 if i == nil || i.Direction == nil { 10116 return "" 10117 } 10118 return *i.Direction 10119 } 10120 10121 // GetSince returns the Since field if it's non-nil, zero value otherwise. 10122 func (i *IssueListCommentsOptions) GetSince() time.Time { 10123 if i == nil || i.Since == nil { 10124 return time.Time{} 10125 } 10126 return *i.Since 10127 } 10128 10129 // GetSort returns the Sort field if it's non-nil, zero value otherwise. 10130 func (i *IssueListCommentsOptions) GetSort() string { 10131 if i == nil || i.Sort == nil { 10132 return "" 10133 } 10134 return *i.Sort 10135 } 10136 10137 // GetAssignee returns the Assignee field if it's non-nil, zero value otherwise. 10138 func (i *IssueRequest) GetAssignee() string { 10139 if i == nil || i.Assignee == nil { 10140 return "" 10141 } 10142 return *i.Assignee 10143 } 10144 10145 // GetAssignees returns the Assignees field if it's non-nil, zero value otherwise. 10146 func (i *IssueRequest) GetAssignees() []string { 10147 if i == nil || i.Assignees == nil { 10148 return nil 10149 } 10150 return *i.Assignees 10151 } 10152 10153 // GetBody returns the Body field if it's non-nil, zero value otherwise. 10154 func (i *IssueRequest) GetBody() string { 10155 if i == nil || i.Body == nil { 10156 return "" 10157 } 10158 return *i.Body 10159 } 10160 10161 // GetLabels returns the Labels field if it's non-nil, zero value otherwise. 10162 func (i *IssueRequest) GetLabels() []string { 10163 if i == nil || i.Labels == nil { 10164 return nil 10165 } 10166 return *i.Labels 10167 } 10168 10169 // GetMilestone returns the Milestone field if it's non-nil, zero value otherwise. 10170 func (i *IssueRequest) GetMilestone() int { 10171 if i == nil || i.Milestone == nil { 10172 return 0 10173 } 10174 return *i.Milestone 10175 } 10176 10177 // GetState returns the State field if it's non-nil, zero value otherwise. 10178 func (i *IssueRequest) GetState() string { 10179 if i == nil || i.State == nil { 10180 return "" 10181 } 10182 return *i.State 10183 } 10184 10185 // GetStateReason returns the StateReason field if it's non-nil, zero value otherwise. 10186 func (i *IssueRequest) GetStateReason() string { 10187 if i == nil || i.StateReason == nil { 10188 return "" 10189 } 10190 return *i.StateReason 10191 } 10192 10193 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 10194 func (i *IssueRequest) GetTitle() string { 10195 if i == nil || i.Title == nil { 10196 return "" 10197 } 10198 return *i.Title 10199 } 10200 10201 // GetAction returns the Action field if it's non-nil, zero value otherwise. 10202 func (i *IssuesEvent) GetAction() string { 10203 if i == nil || i.Action == nil { 10204 return "" 10205 } 10206 return *i.Action 10207 } 10208 10209 // GetAssignee returns the Assignee field. 10210 func (i *IssuesEvent) GetAssignee() *User { 10211 if i == nil { 10212 return nil 10213 } 10214 return i.Assignee 10215 } 10216 10217 // GetChanges returns the Changes field. 10218 func (i *IssuesEvent) GetChanges() *EditChange { 10219 if i == nil { 10220 return nil 10221 } 10222 return i.Changes 10223 } 10224 10225 // GetInstallation returns the Installation field. 10226 func (i *IssuesEvent) GetInstallation() *Installation { 10227 if i == nil { 10228 return nil 10229 } 10230 return i.Installation 10231 } 10232 10233 // GetIssue returns the Issue field. 10234 func (i *IssuesEvent) GetIssue() *Issue { 10235 if i == nil { 10236 return nil 10237 } 10238 return i.Issue 10239 } 10240 10241 // GetLabel returns the Label field. 10242 func (i *IssuesEvent) GetLabel() *Label { 10243 if i == nil { 10244 return nil 10245 } 10246 return i.Label 10247 } 10248 10249 // GetMilestone returns the Milestone field. 10250 func (i *IssuesEvent) GetMilestone() *Milestone { 10251 if i == nil { 10252 return nil 10253 } 10254 return i.Milestone 10255 } 10256 10257 // GetOrg returns the Org field. 10258 func (i *IssuesEvent) GetOrg() *Organization { 10259 if i == nil { 10260 return nil 10261 } 10262 return i.Org 10263 } 10264 10265 // GetRepo returns the Repo field. 10266 func (i *IssuesEvent) GetRepo() *Repository { 10267 if i == nil { 10268 return nil 10269 } 10270 return i.Repo 10271 } 10272 10273 // GetSender returns the Sender field. 10274 func (i *IssuesEvent) GetSender() *User { 10275 if i == nil { 10276 return nil 10277 } 10278 return i.Sender 10279 } 10280 10281 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 10282 func (i *IssuesSearchResult) GetIncompleteResults() bool { 10283 if i == nil || i.IncompleteResults == nil { 10284 return false 10285 } 10286 return *i.IncompleteResults 10287 } 10288 10289 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 10290 func (i *IssuesSearchResult) GetTotal() int { 10291 if i == nil || i.Total == nil { 10292 return 0 10293 } 10294 return *i.Total 10295 } 10296 10297 // GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. 10298 func (i *IssueStats) GetClosedIssues() int { 10299 if i == nil || i.ClosedIssues == nil { 10300 return 0 10301 } 10302 return *i.ClosedIssues 10303 } 10304 10305 // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 10306 func (i *IssueStats) GetOpenIssues() int { 10307 if i == nil || i.OpenIssues == nil { 10308 return 0 10309 } 10310 return *i.OpenIssues 10311 } 10312 10313 // GetTotalIssues returns the TotalIssues field if it's non-nil, zero value otherwise. 10314 func (i *IssueStats) GetTotalIssues() int { 10315 if i == nil || i.TotalIssues == nil { 10316 return 0 10317 } 10318 return *i.TotalIssues 10319 } 10320 10321 // GetEncodedJITConfig returns the EncodedJITConfig field if it's non-nil, zero value otherwise. 10322 func (j *JITRunnerConfig) GetEncodedJITConfig() string { 10323 if j == nil || j.EncodedJITConfig == nil { 10324 return "" 10325 } 10326 return *j.EncodedJITConfig 10327 } 10328 10329 // GetRunner returns the Runner field. 10330 func (j *JITRunnerConfig) GetRunner() *Runner { 10331 if j == nil { 10332 return nil 10333 } 10334 return j.Runner 10335 } 10336 10337 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 10338 func (j *Jobs) GetTotalCount() int { 10339 if j == nil || j.TotalCount == nil { 10340 return 0 10341 } 10342 return *j.TotalCount 10343 } 10344 10345 // GetAddedBy returns the AddedBy field if it's non-nil, zero value otherwise. 10346 func (k *Key) GetAddedBy() string { 10347 if k == nil || k.AddedBy == nil { 10348 return "" 10349 } 10350 return *k.AddedBy 10351 } 10352 10353 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 10354 func (k *Key) GetCreatedAt() Timestamp { 10355 if k == nil || k.CreatedAt == nil { 10356 return Timestamp{} 10357 } 10358 return *k.CreatedAt 10359 } 10360 10361 // GetID returns the ID field if it's non-nil, zero value otherwise. 10362 func (k *Key) GetID() int64 { 10363 if k == nil || k.ID == nil { 10364 return 0 10365 } 10366 return *k.ID 10367 } 10368 10369 // GetKey returns the Key field if it's non-nil, zero value otherwise. 10370 func (k *Key) GetKey() string { 10371 if k == nil || k.Key == nil { 10372 return "" 10373 } 10374 return *k.Key 10375 } 10376 10377 // GetLastUsed returns the LastUsed field if it's non-nil, zero value otherwise. 10378 func (k *Key) GetLastUsed() Timestamp { 10379 if k == nil || k.LastUsed == nil { 10380 return Timestamp{} 10381 } 10382 return *k.LastUsed 10383 } 10384 10385 // GetReadOnly returns the ReadOnly field if it's non-nil, zero value otherwise. 10386 func (k *Key) GetReadOnly() bool { 10387 if k == nil || k.ReadOnly == nil { 10388 return false 10389 } 10390 return *k.ReadOnly 10391 } 10392 10393 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 10394 func (k *Key) GetTitle() string { 10395 if k == nil || k.Title == nil { 10396 return "" 10397 } 10398 return *k.Title 10399 } 10400 10401 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10402 func (k *Key) GetURL() string { 10403 if k == nil || k.URL == nil { 10404 return "" 10405 } 10406 return *k.URL 10407 } 10408 10409 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 10410 func (k *Key) GetVerified() bool { 10411 if k == nil || k.Verified == nil { 10412 return false 10413 } 10414 return *k.Verified 10415 } 10416 10417 // GetColor returns the Color field if it's non-nil, zero value otherwise. 10418 func (l *Label) GetColor() string { 10419 if l == nil || l.Color == nil { 10420 return "" 10421 } 10422 return *l.Color 10423 } 10424 10425 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 10426 func (l *Label) GetDefault() bool { 10427 if l == nil || l.Default == nil { 10428 return false 10429 } 10430 return *l.Default 10431 } 10432 10433 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 10434 func (l *Label) GetDescription() string { 10435 if l == nil || l.Description == nil { 10436 return "" 10437 } 10438 return *l.Description 10439 } 10440 10441 // GetID returns the ID field if it's non-nil, zero value otherwise. 10442 func (l *Label) GetID() int64 { 10443 if l == nil || l.ID == nil { 10444 return 0 10445 } 10446 return *l.ID 10447 } 10448 10449 // GetName returns the Name field if it's non-nil, zero value otherwise. 10450 func (l *Label) GetName() string { 10451 if l == nil || l.Name == nil { 10452 return "" 10453 } 10454 return *l.Name 10455 } 10456 10457 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 10458 func (l *Label) GetNodeID() string { 10459 if l == nil || l.NodeID == nil { 10460 return "" 10461 } 10462 return *l.NodeID 10463 } 10464 10465 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10466 func (l *Label) GetURL() string { 10467 if l == nil || l.URL == nil { 10468 return "" 10469 } 10470 return *l.URL 10471 } 10472 10473 // GetAction returns the Action field if it's non-nil, zero value otherwise. 10474 func (l *LabelEvent) GetAction() string { 10475 if l == nil || l.Action == nil { 10476 return "" 10477 } 10478 return *l.Action 10479 } 10480 10481 // GetChanges returns the Changes field. 10482 func (l *LabelEvent) GetChanges() *EditChange { 10483 if l == nil { 10484 return nil 10485 } 10486 return l.Changes 10487 } 10488 10489 // GetInstallation returns the Installation field. 10490 func (l *LabelEvent) GetInstallation() *Installation { 10491 if l == nil { 10492 return nil 10493 } 10494 return l.Installation 10495 } 10496 10497 // GetLabel returns the Label field. 10498 func (l *LabelEvent) GetLabel() *Label { 10499 if l == nil { 10500 return nil 10501 } 10502 return l.Label 10503 } 10504 10505 // GetOrg returns the Org field. 10506 func (l *LabelEvent) GetOrg() *Organization { 10507 if l == nil { 10508 return nil 10509 } 10510 return l.Org 10511 } 10512 10513 // GetRepo returns the Repo field. 10514 func (l *LabelEvent) GetRepo() *Repository { 10515 if l == nil { 10516 return nil 10517 } 10518 return l.Repo 10519 } 10520 10521 // GetSender returns the Sender field. 10522 func (l *LabelEvent) GetSender() *User { 10523 if l == nil { 10524 return nil 10525 } 10526 return l.Sender 10527 } 10528 10529 // GetColor returns the Color field if it's non-nil, zero value otherwise. 10530 func (l *LabelResult) GetColor() string { 10531 if l == nil || l.Color == nil { 10532 return "" 10533 } 10534 return *l.Color 10535 } 10536 10537 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 10538 func (l *LabelResult) GetDefault() bool { 10539 if l == nil || l.Default == nil { 10540 return false 10541 } 10542 return *l.Default 10543 } 10544 10545 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 10546 func (l *LabelResult) GetDescription() string { 10547 if l == nil || l.Description == nil { 10548 return "" 10549 } 10550 return *l.Description 10551 } 10552 10553 // GetID returns the ID field if it's non-nil, zero value otherwise. 10554 func (l *LabelResult) GetID() int64 { 10555 if l == nil || l.ID == nil { 10556 return 0 10557 } 10558 return *l.ID 10559 } 10560 10561 // GetName returns the Name field if it's non-nil, zero value otherwise. 10562 func (l *LabelResult) GetName() string { 10563 if l == nil || l.Name == nil { 10564 return "" 10565 } 10566 return *l.Name 10567 } 10568 10569 // GetScore returns the Score field. 10570 func (l *LabelResult) GetScore() *float64 { 10571 if l == nil { 10572 return nil 10573 } 10574 return l.Score 10575 } 10576 10577 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10578 func (l *LabelResult) GetURL() string { 10579 if l == nil || l.URL == nil { 10580 return "" 10581 } 10582 return *l.URL 10583 } 10584 10585 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 10586 func (l *LabelsSearchResult) GetIncompleteResults() bool { 10587 if l == nil || l.IncompleteResults == nil { 10588 return false 10589 } 10590 return *l.IncompleteResults 10591 } 10592 10593 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 10594 func (l *LabelsSearchResult) GetTotal() int { 10595 if l == nil || l.Total == nil { 10596 return 0 10597 } 10598 return *l.Total 10599 } 10600 10601 // GetOID returns the OID field if it's non-nil, zero value otherwise. 10602 func (l *LargeFile) GetOID() string { 10603 if l == nil || l.OID == nil { 10604 return "" 10605 } 10606 return *l.OID 10607 } 10608 10609 // GetPath returns the Path field if it's non-nil, zero value otherwise. 10610 func (l *LargeFile) GetPath() string { 10611 if l == nil || l.Path == nil { 10612 return "" 10613 } 10614 return *l.Path 10615 } 10616 10617 // GetRefName returns the RefName field if it's non-nil, zero value otherwise. 10618 func (l *LargeFile) GetRefName() string { 10619 if l == nil || l.RefName == nil { 10620 return "" 10621 } 10622 return *l.RefName 10623 } 10624 10625 // GetSize returns the Size field if it's non-nil, zero value otherwise. 10626 func (l *LargeFile) GetSize() int { 10627 if l == nil || l.Size == nil { 10628 return 0 10629 } 10630 return *l.Size 10631 } 10632 10633 // GetBody returns the Body field if it's non-nil, zero value otherwise. 10634 func (l *License) GetBody() string { 10635 if l == nil || l.Body == nil { 10636 return "" 10637 } 10638 return *l.Body 10639 } 10640 10641 // GetConditions returns the Conditions field if it's non-nil, zero value otherwise. 10642 func (l *License) GetConditions() []string { 10643 if l == nil || l.Conditions == nil { 10644 return nil 10645 } 10646 return *l.Conditions 10647 } 10648 10649 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 10650 func (l *License) GetDescription() string { 10651 if l == nil || l.Description == nil { 10652 return "" 10653 } 10654 return *l.Description 10655 } 10656 10657 // GetFeatured returns the Featured field if it's non-nil, zero value otherwise. 10658 func (l *License) GetFeatured() bool { 10659 if l == nil || l.Featured == nil { 10660 return false 10661 } 10662 return *l.Featured 10663 } 10664 10665 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 10666 func (l *License) GetHTMLURL() string { 10667 if l == nil || l.HTMLURL == nil { 10668 return "" 10669 } 10670 return *l.HTMLURL 10671 } 10672 10673 // GetImplementation returns the Implementation field if it's non-nil, zero value otherwise. 10674 func (l *License) GetImplementation() string { 10675 if l == nil || l.Implementation == nil { 10676 return "" 10677 } 10678 return *l.Implementation 10679 } 10680 10681 // GetKey returns the Key field if it's non-nil, zero value otherwise. 10682 func (l *License) GetKey() string { 10683 if l == nil || l.Key == nil { 10684 return "" 10685 } 10686 return *l.Key 10687 } 10688 10689 // GetLimitations returns the Limitations field if it's non-nil, zero value otherwise. 10690 func (l *License) GetLimitations() []string { 10691 if l == nil || l.Limitations == nil { 10692 return nil 10693 } 10694 return *l.Limitations 10695 } 10696 10697 // GetName returns the Name field if it's non-nil, zero value otherwise. 10698 func (l *License) GetName() string { 10699 if l == nil || l.Name == nil { 10700 return "" 10701 } 10702 return *l.Name 10703 } 10704 10705 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 10706 func (l *License) GetPermissions() []string { 10707 if l == nil || l.Permissions == nil { 10708 return nil 10709 } 10710 return *l.Permissions 10711 } 10712 10713 // GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. 10714 func (l *License) GetSPDXID() string { 10715 if l == nil || l.SPDXID == nil { 10716 return "" 10717 } 10718 return *l.SPDXID 10719 } 10720 10721 // GetURL returns the URL field if it's non-nil, zero value otherwise. 10722 func (l *License) GetURL() string { 10723 if l == nil || l.URL == nil { 10724 return "" 10725 } 10726 return *l.URL 10727 } 10728 10729 // GetFrom returns the From field if it's non-nil, zero value otherwise. 10730 func (l *LinearHistoryRequirementEnforcementLevelChanges) GetFrom() string { 10731 if l == nil || l.From == nil { 10732 return "" 10733 } 10734 return *l.From 10735 } 10736 10737 // GetDirection returns the Direction field if it's non-nil, zero value otherwise. 10738 func (l *ListAlertsOptions) GetDirection() string { 10739 if l == nil || l.Direction == nil { 10740 return "" 10741 } 10742 return *l.Direction 10743 } 10744 10745 // GetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise. 10746 func (l *ListAlertsOptions) GetEcosystem() string { 10747 if l == nil || l.Ecosystem == nil { 10748 return "" 10749 } 10750 return *l.Ecosystem 10751 } 10752 10753 // GetPackage returns the Package field if it's non-nil, zero value otherwise. 10754 func (l *ListAlertsOptions) GetPackage() string { 10755 if l == nil || l.Package == nil { 10756 return "" 10757 } 10758 return *l.Package 10759 } 10760 10761 // GetScope returns the Scope field if it's non-nil, zero value otherwise. 10762 func (l *ListAlertsOptions) GetScope() string { 10763 if l == nil || l.Scope == nil { 10764 return "" 10765 } 10766 return *l.Scope 10767 } 10768 10769 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 10770 func (l *ListAlertsOptions) GetSeverity() string { 10771 if l == nil || l.Severity == nil { 10772 return "" 10773 } 10774 return *l.Severity 10775 } 10776 10777 // GetSort returns the Sort field if it's non-nil, zero value otherwise. 10778 func (l *ListAlertsOptions) GetSort() string { 10779 if l == nil || l.Sort == nil { 10780 return "" 10781 } 10782 return *l.Sort 10783 } 10784 10785 // GetState returns the State field if it's non-nil, zero value otherwise. 10786 func (l *ListAlertsOptions) GetState() string { 10787 if l == nil || l.State == nil { 10788 return "" 10789 } 10790 return *l.State 10791 } 10792 10793 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 10794 func (l *ListCheckRunsOptions) GetAppID() int64 { 10795 if l == nil || l.AppID == nil { 10796 return 0 10797 } 10798 return *l.AppID 10799 } 10800 10801 // GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. 10802 func (l *ListCheckRunsOptions) GetCheckName() string { 10803 if l == nil || l.CheckName == nil { 10804 return "" 10805 } 10806 return *l.CheckName 10807 } 10808 10809 // GetFilter returns the Filter field if it's non-nil, zero value otherwise. 10810 func (l *ListCheckRunsOptions) GetFilter() string { 10811 if l == nil || l.Filter == nil { 10812 return "" 10813 } 10814 return *l.Filter 10815 } 10816 10817 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 10818 func (l *ListCheckRunsOptions) GetStatus() string { 10819 if l == nil || l.Status == nil { 10820 return "" 10821 } 10822 return *l.Status 10823 } 10824 10825 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 10826 func (l *ListCheckRunsResults) GetTotal() int { 10827 if l == nil || l.Total == nil { 10828 return 0 10829 } 10830 return *l.Total 10831 } 10832 10833 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 10834 func (l *ListCheckSuiteOptions) GetAppID() int { 10835 if l == nil || l.AppID == nil { 10836 return 0 10837 } 10838 return *l.AppID 10839 } 10840 10841 // GetCheckName returns the CheckName field if it's non-nil, zero value otherwise. 10842 func (l *ListCheckSuiteOptions) GetCheckName() string { 10843 if l == nil || l.CheckName == nil { 10844 return "" 10845 } 10846 return *l.CheckName 10847 } 10848 10849 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 10850 func (l *ListCheckSuiteResults) GetTotal() int { 10851 if l == nil || l.Total == nil { 10852 return 0 10853 } 10854 return *l.Total 10855 } 10856 10857 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 10858 func (l *ListCodespaces) GetTotalCount() int { 10859 if l == nil || l.TotalCount == nil { 10860 return 0 10861 } 10862 return *l.TotalCount 10863 } 10864 10865 // GetAffiliation returns the Affiliation field if it's non-nil, zero value otherwise. 10866 func (l *ListCollaboratorOptions) GetAffiliation() string { 10867 if l == nil || l.Affiliation == nil { 10868 return "" 10869 } 10870 return *l.Affiliation 10871 } 10872 10873 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 10874 func (l *ListExternalGroupsOptions) GetDisplayName() string { 10875 if l == nil || l.DisplayName == nil { 10876 return "" 10877 } 10878 return *l.DisplayName 10879 } 10880 10881 // GetAffects returns the Affects field if it's non-nil, zero value otherwise. 10882 func (l *ListGlobalSecurityAdvisoriesOptions) GetAffects() string { 10883 if l == nil || l.Affects == nil { 10884 return "" 10885 } 10886 return *l.Affects 10887 } 10888 10889 // GetCVEID returns the CVEID field if it's non-nil, zero value otherwise. 10890 func (l *ListGlobalSecurityAdvisoriesOptions) GetCVEID() string { 10891 if l == nil || l.CVEID == nil { 10892 return "" 10893 } 10894 return *l.CVEID 10895 } 10896 10897 // GetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise. 10898 func (l *ListGlobalSecurityAdvisoriesOptions) GetEcosystem() string { 10899 if l == nil || l.Ecosystem == nil { 10900 return "" 10901 } 10902 return *l.Ecosystem 10903 } 10904 10905 // GetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise. 10906 func (l *ListGlobalSecurityAdvisoriesOptions) GetGHSAID() string { 10907 if l == nil || l.GHSAID == nil { 10908 return "" 10909 } 10910 return *l.GHSAID 10911 } 10912 10913 // GetIsWithdrawn returns the IsWithdrawn field if it's non-nil, zero value otherwise. 10914 func (l *ListGlobalSecurityAdvisoriesOptions) GetIsWithdrawn() bool { 10915 if l == nil || l.IsWithdrawn == nil { 10916 return false 10917 } 10918 return *l.IsWithdrawn 10919 } 10920 10921 // GetModified returns the Modified field if it's non-nil, zero value otherwise. 10922 func (l *ListGlobalSecurityAdvisoriesOptions) GetModified() string { 10923 if l == nil || l.Modified == nil { 10924 return "" 10925 } 10926 return *l.Modified 10927 } 10928 10929 // GetPublished returns the Published field if it's non-nil, zero value otherwise. 10930 func (l *ListGlobalSecurityAdvisoriesOptions) GetPublished() string { 10931 if l == nil || l.Published == nil { 10932 return "" 10933 } 10934 return *l.Published 10935 } 10936 10937 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 10938 func (l *ListGlobalSecurityAdvisoriesOptions) GetSeverity() string { 10939 if l == nil || l.Severity == nil { 10940 return "" 10941 } 10942 return *l.Severity 10943 } 10944 10945 // GetType returns the Type field if it's non-nil, zero value otherwise. 10946 func (l *ListGlobalSecurityAdvisoriesOptions) GetType() string { 10947 if l == nil || l.Type == nil { 10948 return "" 10949 } 10950 return *l.Type 10951 } 10952 10953 // GetUpdated returns the Updated field if it's non-nil, zero value otherwise. 10954 func (l *ListGlobalSecurityAdvisoriesOptions) GetUpdated() string { 10955 if l == nil || l.Updated == nil { 10956 return "" 10957 } 10958 return *l.Updated 10959 } 10960 10961 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 10962 func (l *ListOrganizations) GetTotalCount() int { 10963 if l == nil || l.TotalCount == nil { 10964 return 0 10965 } 10966 return *l.TotalCount 10967 } 10968 10969 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 10970 func (l *ListRepositories) GetTotalCount() int { 10971 if l == nil || l.TotalCount == nil { 10972 return 0 10973 } 10974 return *l.TotalCount 10975 } 10976 10977 // GetCount returns the Count field if it's non-nil, zero value otherwise. 10978 func (l *ListSCIMProvisionedIdentitiesOptions) GetCount() int { 10979 if l == nil || l.Count == nil { 10980 return 0 10981 } 10982 return *l.Count 10983 } 10984 10985 // GetFilter returns the Filter field if it's non-nil, zero value otherwise. 10986 func (l *ListSCIMProvisionedIdentitiesOptions) GetFilter() string { 10987 if l == nil || l.Filter == nil { 10988 return "" 10989 } 10990 return *l.Filter 10991 } 10992 10993 // GetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise. 10994 func (l *ListSCIMProvisionedIdentitiesOptions) GetStartIndex() int { 10995 if l == nil || l.StartIndex == nil { 10996 return 0 10997 } 10998 return *l.StartIndex 10999 } 11000 11001 // GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. 11002 func (l *Location) GetEndColumn() int { 11003 if l == nil || l.EndColumn == nil { 11004 return 0 11005 } 11006 return *l.EndColumn 11007 } 11008 11009 // GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. 11010 func (l *Location) GetEndLine() int { 11011 if l == nil || l.EndLine == nil { 11012 return 0 11013 } 11014 return *l.EndLine 11015 } 11016 11017 // GetPath returns the Path field if it's non-nil, zero value otherwise. 11018 func (l *Location) GetPath() string { 11019 if l == nil || l.Path == nil { 11020 return "" 11021 } 11022 return *l.Path 11023 } 11024 11025 // GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. 11026 func (l *Location) GetStartColumn() int { 11027 if l == nil || l.StartColumn == nil { 11028 return 0 11029 } 11030 return *l.StartColumn 11031 } 11032 11033 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 11034 func (l *Location) GetStartLine() int { 11035 if l == nil || l.StartLine == nil { 11036 return 0 11037 } 11038 return *l.StartLine 11039 } 11040 11041 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 11042 func (l *LockBranch) GetEnabled() bool { 11043 if l == nil || l.Enabled == nil { 11044 return false 11045 } 11046 return *l.Enabled 11047 } 11048 11049 // GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. 11050 func (m *MarketplacePendingChange) GetEffectiveDate() Timestamp { 11051 if m == nil || m.EffectiveDate == nil { 11052 return Timestamp{} 11053 } 11054 return *m.EffectiveDate 11055 } 11056 11057 // GetID returns the ID field if it's non-nil, zero value otherwise. 11058 func (m *MarketplacePendingChange) GetID() int64 { 11059 if m == nil || m.ID == nil { 11060 return 0 11061 } 11062 return *m.ID 11063 } 11064 11065 // GetPlan returns the Plan field. 11066 func (m *MarketplacePendingChange) GetPlan() *MarketplacePlan { 11067 if m == nil { 11068 return nil 11069 } 11070 return m.Plan 11071 } 11072 11073 // GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. 11074 func (m *MarketplacePendingChange) GetUnitCount() int { 11075 if m == nil || m.UnitCount == nil { 11076 return 0 11077 } 11078 return *m.UnitCount 11079 } 11080 11081 // GetAccountsURL returns the AccountsURL field if it's non-nil, zero value otherwise. 11082 func (m *MarketplacePlan) GetAccountsURL() string { 11083 if m == nil || m.AccountsURL == nil { 11084 return "" 11085 } 11086 return *m.AccountsURL 11087 } 11088 11089 // GetBullets returns the Bullets field if it's non-nil, zero value otherwise. 11090 func (m *MarketplacePlan) GetBullets() []string { 11091 if m == nil || m.Bullets == nil { 11092 return nil 11093 } 11094 return *m.Bullets 11095 } 11096 11097 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 11098 func (m *MarketplacePlan) GetDescription() string { 11099 if m == nil || m.Description == nil { 11100 return "" 11101 } 11102 return *m.Description 11103 } 11104 11105 // GetHasFreeTrial returns the HasFreeTrial field if it's non-nil, zero value otherwise. 11106 func (m *MarketplacePlan) GetHasFreeTrial() bool { 11107 if m == nil || m.HasFreeTrial == nil { 11108 return false 11109 } 11110 return *m.HasFreeTrial 11111 } 11112 11113 // GetID returns the ID field if it's non-nil, zero value otherwise. 11114 func (m *MarketplacePlan) GetID() int64 { 11115 if m == nil || m.ID == nil { 11116 return 0 11117 } 11118 return *m.ID 11119 } 11120 11121 // GetMonthlyPriceInCents returns the MonthlyPriceInCents field if it's non-nil, zero value otherwise. 11122 func (m *MarketplacePlan) GetMonthlyPriceInCents() int { 11123 if m == nil || m.MonthlyPriceInCents == nil { 11124 return 0 11125 } 11126 return *m.MonthlyPriceInCents 11127 } 11128 11129 // GetName returns the Name field if it's non-nil, zero value otherwise. 11130 func (m *MarketplacePlan) GetName() string { 11131 if m == nil || m.Name == nil { 11132 return "" 11133 } 11134 return *m.Name 11135 } 11136 11137 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 11138 func (m *MarketplacePlan) GetNumber() int { 11139 if m == nil || m.Number == nil { 11140 return 0 11141 } 11142 return *m.Number 11143 } 11144 11145 // GetPriceModel returns the PriceModel field if it's non-nil, zero value otherwise. 11146 func (m *MarketplacePlan) GetPriceModel() string { 11147 if m == nil || m.PriceModel == nil { 11148 return "" 11149 } 11150 return *m.PriceModel 11151 } 11152 11153 // GetState returns the State field if it's non-nil, zero value otherwise. 11154 func (m *MarketplacePlan) GetState() string { 11155 if m == nil || m.State == nil { 11156 return "" 11157 } 11158 return *m.State 11159 } 11160 11161 // GetUnitName returns the UnitName field if it's non-nil, zero value otherwise. 11162 func (m *MarketplacePlan) GetUnitName() string { 11163 if m == nil || m.UnitName == nil { 11164 return "" 11165 } 11166 return *m.UnitName 11167 } 11168 11169 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11170 func (m *MarketplacePlan) GetURL() string { 11171 if m == nil || m.URL == nil { 11172 return "" 11173 } 11174 return *m.URL 11175 } 11176 11177 // GetYearlyPriceInCents returns the YearlyPriceInCents field if it's non-nil, zero value otherwise. 11178 func (m *MarketplacePlan) GetYearlyPriceInCents() int { 11179 if m == nil || m.YearlyPriceInCents == nil { 11180 return 0 11181 } 11182 return *m.YearlyPriceInCents 11183 } 11184 11185 // GetID returns the ID field if it's non-nil, zero value otherwise. 11186 func (m *MarketplacePlanAccount) GetID() int64 { 11187 if m == nil || m.ID == nil { 11188 return 0 11189 } 11190 return *m.ID 11191 } 11192 11193 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 11194 func (m *MarketplacePlanAccount) GetLogin() string { 11195 if m == nil || m.Login == nil { 11196 return "" 11197 } 11198 return *m.Login 11199 } 11200 11201 // GetMarketplacePendingChange returns the MarketplacePendingChange field. 11202 func (m *MarketplacePlanAccount) GetMarketplacePendingChange() *MarketplacePendingChange { 11203 if m == nil { 11204 return nil 11205 } 11206 return m.MarketplacePendingChange 11207 } 11208 11209 // GetMarketplacePurchase returns the MarketplacePurchase field. 11210 func (m *MarketplacePlanAccount) GetMarketplacePurchase() *MarketplacePurchase { 11211 if m == nil { 11212 return nil 11213 } 11214 return m.MarketplacePurchase 11215 } 11216 11217 // GetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise. 11218 func (m *MarketplacePlanAccount) GetOrganizationBillingEmail() string { 11219 if m == nil || m.OrganizationBillingEmail == nil { 11220 return "" 11221 } 11222 return *m.OrganizationBillingEmail 11223 } 11224 11225 // GetType returns the Type field if it's non-nil, zero value otherwise. 11226 func (m *MarketplacePlanAccount) GetType() string { 11227 if m == nil || m.Type == nil { 11228 return "" 11229 } 11230 return *m.Type 11231 } 11232 11233 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11234 func (m *MarketplacePlanAccount) GetURL() string { 11235 if m == nil || m.URL == nil { 11236 return "" 11237 } 11238 return *m.URL 11239 } 11240 11241 // GetAccount returns the Account field. 11242 func (m *MarketplacePurchase) GetAccount() *MarketplacePurchaseAccount { 11243 if m == nil { 11244 return nil 11245 } 11246 return m.Account 11247 } 11248 11249 // GetBillingCycle returns the BillingCycle field if it's non-nil, zero value otherwise. 11250 func (m *MarketplacePurchase) GetBillingCycle() string { 11251 if m == nil || m.BillingCycle == nil { 11252 return "" 11253 } 11254 return *m.BillingCycle 11255 } 11256 11257 // GetFreeTrialEndsOn returns the FreeTrialEndsOn field if it's non-nil, zero value otherwise. 11258 func (m *MarketplacePurchase) GetFreeTrialEndsOn() Timestamp { 11259 if m == nil || m.FreeTrialEndsOn == nil { 11260 return Timestamp{} 11261 } 11262 return *m.FreeTrialEndsOn 11263 } 11264 11265 // GetNextBillingDate returns the NextBillingDate field if it's non-nil, zero value otherwise. 11266 func (m *MarketplacePurchase) GetNextBillingDate() Timestamp { 11267 if m == nil || m.NextBillingDate == nil { 11268 return Timestamp{} 11269 } 11270 return *m.NextBillingDate 11271 } 11272 11273 // GetOnFreeTrial returns the OnFreeTrial field if it's non-nil, zero value otherwise. 11274 func (m *MarketplacePurchase) GetOnFreeTrial() bool { 11275 if m == nil || m.OnFreeTrial == nil { 11276 return false 11277 } 11278 return *m.OnFreeTrial 11279 } 11280 11281 // GetPlan returns the Plan field. 11282 func (m *MarketplacePurchase) GetPlan() *MarketplacePlan { 11283 if m == nil { 11284 return nil 11285 } 11286 return m.Plan 11287 } 11288 11289 // GetUnitCount returns the UnitCount field if it's non-nil, zero value otherwise. 11290 func (m *MarketplacePurchase) GetUnitCount() int { 11291 if m == nil || m.UnitCount == nil { 11292 return 0 11293 } 11294 return *m.UnitCount 11295 } 11296 11297 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11298 func (m *MarketplacePurchase) GetUpdatedAt() Timestamp { 11299 if m == nil || m.UpdatedAt == nil { 11300 return Timestamp{} 11301 } 11302 return *m.UpdatedAt 11303 } 11304 11305 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 11306 func (m *MarketplacePurchaseAccount) GetEmail() string { 11307 if m == nil || m.Email == nil { 11308 return "" 11309 } 11310 return *m.Email 11311 } 11312 11313 // GetID returns the ID field if it's non-nil, zero value otherwise. 11314 func (m *MarketplacePurchaseAccount) GetID() int64 { 11315 if m == nil || m.ID == nil { 11316 return 0 11317 } 11318 return *m.ID 11319 } 11320 11321 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 11322 func (m *MarketplacePurchaseAccount) GetLogin() string { 11323 if m == nil || m.Login == nil { 11324 return "" 11325 } 11326 return *m.Login 11327 } 11328 11329 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11330 func (m *MarketplacePurchaseAccount) GetNodeID() string { 11331 if m == nil || m.NodeID == nil { 11332 return "" 11333 } 11334 return *m.NodeID 11335 } 11336 11337 // GetOrganizationBillingEmail returns the OrganizationBillingEmail field if it's non-nil, zero value otherwise. 11338 func (m *MarketplacePurchaseAccount) GetOrganizationBillingEmail() string { 11339 if m == nil || m.OrganizationBillingEmail == nil { 11340 return "" 11341 } 11342 return *m.OrganizationBillingEmail 11343 } 11344 11345 // GetType returns the Type field if it's non-nil, zero value otherwise. 11346 func (m *MarketplacePurchaseAccount) GetType() string { 11347 if m == nil || m.Type == nil { 11348 return "" 11349 } 11350 return *m.Type 11351 } 11352 11353 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11354 func (m *MarketplacePurchaseAccount) GetURL() string { 11355 if m == nil || m.URL == nil { 11356 return "" 11357 } 11358 return *m.URL 11359 } 11360 11361 // GetAction returns the Action field if it's non-nil, zero value otherwise. 11362 func (m *MarketplacePurchaseEvent) GetAction() string { 11363 if m == nil || m.Action == nil { 11364 return "" 11365 } 11366 return *m.Action 11367 } 11368 11369 // GetEffectiveDate returns the EffectiveDate field if it's non-nil, zero value otherwise. 11370 func (m *MarketplacePurchaseEvent) GetEffectiveDate() Timestamp { 11371 if m == nil || m.EffectiveDate == nil { 11372 return Timestamp{} 11373 } 11374 return *m.EffectiveDate 11375 } 11376 11377 // GetInstallation returns the Installation field. 11378 func (m *MarketplacePurchaseEvent) GetInstallation() *Installation { 11379 if m == nil { 11380 return nil 11381 } 11382 return m.Installation 11383 } 11384 11385 // GetMarketplacePurchase returns the MarketplacePurchase field. 11386 func (m *MarketplacePurchaseEvent) GetMarketplacePurchase() *MarketplacePurchase { 11387 if m == nil { 11388 return nil 11389 } 11390 return m.MarketplacePurchase 11391 } 11392 11393 // GetOrg returns the Org field. 11394 func (m *MarketplacePurchaseEvent) GetOrg() *Organization { 11395 if m == nil { 11396 return nil 11397 } 11398 return m.Org 11399 } 11400 11401 // GetPreviousMarketplacePurchase returns the PreviousMarketplacePurchase field. 11402 func (m *MarketplacePurchaseEvent) GetPreviousMarketplacePurchase() *MarketplacePurchase { 11403 if m == nil { 11404 return nil 11405 } 11406 return m.PreviousMarketplacePurchase 11407 } 11408 11409 // GetSender returns the Sender field. 11410 func (m *MarketplacePurchaseEvent) GetSender() *User { 11411 if m == nil { 11412 return nil 11413 } 11414 return m.Sender 11415 } 11416 11417 // GetText returns the Text field if it's non-nil, zero value otherwise. 11418 func (m *Match) GetText() string { 11419 if m == nil || m.Text == nil { 11420 return "" 11421 } 11422 return *m.Text 11423 } 11424 11425 // GetAction returns the Action field if it's non-nil, zero value otherwise. 11426 func (m *MemberEvent) GetAction() string { 11427 if m == nil || m.Action == nil { 11428 return "" 11429 } 11430 return *m.Action 11431 } 11432 11433 // GetInstallation returns the Installation field. 11434 func (m *MemberEvent) GetInstallation() *Installation { 11435 if m == nil { 11436 return nil 11437 } 11438 return m.Installation 11439 } 11440 11441 // GetMember returns the Member field. 11442 func (m *MemberEvent) GetMember() *User { 11443 if m == nil { 11444 return nil 11445 } 11446 return m.Member 11447 } 11448 11449 // GetOrg returns the Org field. 11450 func (m *MemberEvent) GetOrg() *Organization { 11451 if m == nil { 11452 return nil 11453 } 11454 return m.Org 11455 } 11456 11457 // GetRepo returns the Repo field. 11458 func (m *MemberEvent) GetRepo() *Repository { 11459 if m == nil { 11460 return nil 11461 } 11462 return m.Repo 11463 } 11464 11465 // GetSender returns the Sender field. 11466 func (m *MemberEvent) GetSender() *User { 11467 if m == nil { 11468 return nil 11469 } 11470 return m.Sender 11471 } 11472 11473 // GetOrganization returns the Organization field. 11474 func (m *Membership) GetOrganization() *Organization { 11475 if m == nil { 11476 return nil 11477 } 11478 return m.Organization 11479 } 11480 11481 // GetOrganizationURL returns the OrganizationURL field if it's non-nil, zero value otherwise. 11482 func (m *Membership) GetOrganizationURL() string { 11483 if m == nil || m.OrganizationURL == nil { 11484 return "" 11485 } 11486 return *m.OrganizationURL 11487 } 11488 11489 // GetRole returns the Role field if it's non-nil, zero value otherwise. 11490 func (m *Membership) GetRole() string { 11491 if m == nil || m.Role == nil { 11492 return "" 11493 } 11494 return *m.Role 11495 } 11496 11497 // GetState returns the State field if it's non-nil, zero value otherwise. 11498 func (m *Membership) GetState() string { 11499 if m == nil || m.State == nil { 11500 return "" 11501 } 11502 return *m.State 11503 } 11504 11505 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11506 func (m *Membership) GetURL() string { 11507 if m == nil || m.URL == nil { 11508 return "" 11509 } 11510 return *m.URL 11511 } 11512 11513 // GetUser returns the User field. 11514 func (m *Membership) GetUser() *User { 11515 if m == nil { 11516 return nil 11517 } 11518 return m.User 11519 } 11520 11521 // GetAction returns the Action field if it's non-nil, zero value otherwise. 11522 func (m *MembershipEvent) GetAction() string { 11523 if m == nil || m.Action == nil { 11524 return "" 11525 } 11526 return *m.Action 11527 } 11528 11529 // GetInstallation returns the Installation field. 11530 func (m *MembershipEvent) GetInstallation() *Installation { 11531 if m == nil { 11532 return nil 11533 } 11534 return m.Installation 11535 } 11536 11537 // GetMember returns the Member field. 11538 func (m *MembershipEvent) GetMember() *User { 11539 if m == nil { 11540 return nil 11541 } 11542 return m.Member 11543 } 11544 11545 // GetOrg returns the Org field. 11546 func (m *MembershipEvent) GetOrg() *Organization { 11547 if m == nil { 11548 return nil 11549 } 11550 return m.Org 11551 } 11552 11553 // GetScope returns the Scope field if it's non-nil, zero value otherwise. 11554 func (m *MembershipEvent) GetScope() string { 11555 if m == nil || m.Scope == nil { 11556 return "" 11557 } 11558 return *m.Scope 11559 } 11560 11561 // GetSender returns the Sender field. 11562 func (m *MembershipEvent) GetSender() *User { 11563 if m == nil { 11564 return nil 11565 } 11566 return m.Sender 11567 } 11568 11569 // GetTeam returns the Team field. 11570 func (m *MembershipEvent) GetTeam() *Team { 11571 if m == nil { 11572 return nil 11573 } 11574 return m.Team 11575 } 11576 11577 // GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise. 11578 func (m *MergeGroup) GetBaseRef() string { 11579 if m == nil || m.BaseRef == nil { 11580 return "" 11581 } 11582 return *m.BaseRef 11583 } 11584 11585 // GetBaseSHA returns the BaseSHA field if it's non-nil, zero value otherwise. 11586 func (m *MergeGroup) GetBaseSHA() string { 11587 if m == nil || m.BaseSHA == nil { 11588 return "" 11589 } 11590 return *m.BaseSHA 11591 } 11592 11593 // GetHeadCommit returns the HeadCommit field. 11594 func (m *MergeGroup) GetHeadCommit() *Commit { 11595 if m == nil { 11596 return nil 11597 } 11598 return m.HeadCommit 11599 } 11600 11601 // GetHeadRef returns the HeadRef field if it's non-nil, zero value otherwise. 11602 func (m *MergeGroup) GetHeadRef() string { 11603 if m == nil || m.HeadRef == nil { 11604 return "" 11605 } 11606 return *m.HeadRef 11607 } 11608 11609 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 11610 func (m *MergeGroup) GetHeadSHA() string { 11611 if m == nil || m.HeadSHA == nil { 11612 return "" 11613 } 11614 return *m.HeadSHA 11615 } 11616 11617 // GetAction returns the Action field if it's non-nil, zero value otherwise. 11618 func (m *MergeGroupEvent) GetAction() string { 11619 if m == nil || m.Action == nil { 11620 return "" 11621 } 11622 return *m.Action 11623 } 11624 11625 // GetInstallation returns the Installation field. 11626 func (m *MergeGroupEvent) GetInstallation() *Installation { 11627 if m == nil { 11628 return nil 11629 } 11630 return m.Installation 11631 } 11632 11633 // GetMergeGroup returns the MergeGroup field. 11634 func (m *MergeGroupEvent) GetMergeGroup() *MergeGroup { 11635 if m == nil { 11636 return nil 11637 } 11638 return m.MergeGroup 11639 } 11640 11641 // GetOrg returns the Org field. 11642 func (m *MergeGroupEvent) GetOrg() *Organization { 11643 if m == nil { 11644 return nil 11645 } 11646 return m.Org 11647 } 11648 11649 // GetRepo returns the Repo field. 11650 func (m *MergeGroupEvent) GetRepo() *Repository { 11651 if m == nil { 11652 return nil 11653 } 11654 return m.Repo 11655 } 11656 11657 // GetSender returns the Sender field. 11658 func (m *MergeGroupEvent) GetSender() *User { 11659 if m == nil { 11660 return nil 11661 } 11662 return m.Sender 11663 } 11664 11665 // GetText returns the Text field if it's non-nil, zero value otherwise. 11666 func (m *Message) GetText() string { 11667 if m == nil || m.Text == nil { 11668 return "" 11669 } 11670 return *m.Text 11671 } 11672 11673 // GetAction returns the Action field if it's non-nil, zero value otherwise. 11674 func (m *MetaEvent) GetAction() string { 11675 if m == nil || m.Action == nil { 11676 return "" 11677 } 11678 return *m.Action 11679 } 11680 11681 // GetHook returns the Hook field. 11682 func (m *MetaEvent) GetHook() *Hook { 11683 if m == nil { 11684 return nil 11685 } 11686 return m.Hook 11687 } 11688 11689 // GetHookID returns the HookID field if it's non-nil, zero value otherwise. 11690 func (m *MetaEvent) GetHookID() int64 { 11691 if m == nil || m.HookID == nil { 11692 return 0 11693 } 11694 return *m.HookID 11695 } 11696 11697 // GetInstallation returns the Installation field. 11698 func (m *MetaEvent) GetInstallation() *Installation { 11699 if m == nil { 11700 return nil 11701 } 11702 return m.Installation 11703 } 11704 11705 // GetOrg returns the Org field. 11706 func (m *MetaEvent) GetOrg() *Organization { 11707 if m == nil { 11708 return nil 11709 } 11710 return m.Org 11711 } 11712 11713 // GetRepo returns the Repo field. 11714 func (m *MetaEvent) GetRepo() *Repository { 11715 if m == nil { 11716 return nil 11717 } 11718 return m.Repo 11719 } 11720 11721 // GetSender returns the Sender field. 11722 func (m *MetaEvent) GetSender() *User { 11723 if m == nil { 11724 return nil 11725 } 11726 return m.Sender 11727 } 11728 11729 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11730 func (m *Metric) GetHTMLURL() string { 11731 if m == nil || m.HTMLURL == nil { 11732 return "" 11733 } 11734 return *m.HTMLURL 11735 } 11736 11737 // GetKey returns the Key field if it's non-nil, zero value otherwise. 11738 func (m *Metric) GetKey() string { 11739 if m == nil || m.Key == nil { 11740 return "" 11741 } 11742 return *m.Key 11743 } 11744 11745 // GetName returns the Name field if it's non-nil, zero value otherwise. 11746 func (m *Metric) GetName() string { 11747 if m == nil || m.Name == nil { 11748 return "" 11749 } 11750 return *m.Name 11751 } 11752 11753 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11754 func (m *Metric) GetNodeID() string { 11755 if m == nil || m.NodeID == nil { 11756 return "" 11757 } 11758 return *m.NodeID 11759 } 11760 11761 // GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. 11762 func (m *Metric) GetSPDXID() string { 11763 if m == nil || m.SPDXID == nil { 11764 return "" 11765 } 11766 return *m.SPDXID 11767 } 11768 11769 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11770 func (m *Metric) GetURL() string { 11771 if m == nil || m.URL == nil { 11772 return "" 11773 } 11774 return *m.URL 11775 } 11776 11777 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11778 func (m *Migration) GetCreatedAt() string { 11779 if m == nil || m.CreatedAt == nil { 11780 return "" 11781 } 11782 return *m.CreatedAt 11783 } 11784 11785 // GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 11786 func (m *Migration) GetExcludeAttachments() bool { 11787 if m == nil || m.ExcludeAttachments == nil { 11788 return false 11789 } 11790 return *m.ExcludeAttachments 11791 } 11792 11793 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 11794 func (m *Migration) GetGUID() string { 11795 if m == nil || m.GUID == nil { 11796 return "" 11797 } 11798 return *m.GUID 11799 } 11800 11801 // GetID returns the ID field if it's non-nil, zero value otherwise. 11802 func (m *Migration) GetID() int64 { 11803 if m == nil || m.ID == nil { 11804 return 0 11805 } 11806 return *m.ID 11807 } 11808 11809 // GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 11810 func (m *Migration) GetLockRepositories() bool { 11811 if m == nil || m.LockRepositories == nil { 11812 return false 11813 } 11814 return *m.LockRepositories 11815 } 11816 11817 // GetState returns the State field if it's non-nil, zero value otherwise. 11818 func (m *Migration) GetState() string { 11819 if m == nil || m.State == nil { 11820 return "" 11821 } 11822 return *m.State 11823 } 11824 11825 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11826 func (m *Migration) GetUpdatedAt() string { 11827 if m == nil || m.UpdatedAt == nil { 11828 return "" 11829 } 11830 return *m.UpdatedAt 11831 } 11832 11833 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11834 func (m *Migration) GetURL() string { 11835 if m == nil || m.URL == nil { 11836 return "" 11837 } 11838 return *m.URL 11839 } 11840 11841 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 11842 func (m *Milestone) GetClosedAt() Timestamp { 11843 if m == nil || m.ClosedAt == nil { 11844 return Timestamp{} 11845 } 11846 return *m.ClosedAt 11847 } 11848 11849 // GetClosedIssues returns the ClosedIssues field if it's non-nil, zero value otherwise. 11850 func (m *Milestone) GetClosedIssues() int { 11851 if m == nil || m.ClosedIssues == nil { 11852 return 0 11853 } 11854 return *m.ClosedIssues 11855 } 11856 11857 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 11858 func (m *Milestone) GetCreatedAt() Timestamp { 11859 if m == nil || m.CreatedAt == nil { 11860 return Timestamp{} 11861 } 11862 return *m.CreatedAt 11863 } 11864 11865 // GetCreator returns the Creator field. 11866 func (m *Milestone) GetCreator() *User { 11867 if m == nil { 11868 return nil 11869 } 11870 return m.Creator 11871 } 11872 11873 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 11874 func (m *Milestone) GetDescription() string { 11875 if m == nil || m.Description == nil { 11876 return "" 11877 } 11878 return *m.Description 11879 } 11880 11881 // GetDueOn returns the DueOn field if it's non-nil, zero value otherwise. 11882 func (m *Milestone) GetDueOn() Timestamp { 11883 if m == nil || m.DueOn == nil { 11884 return Timestamp{} 11885 } 11886 return *m.DueOn 11887 } 11888 11889 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 11890 func (m *Milestone) GetHTMLURL() string { 11891 if m == nil || m.HTMLURL == nil { 11892 return "" 11893 } 11894 return *m.HTMLURL 11895 } 11896 11897 // GetID returns the ID field if it's non-nil, zero value otherwise. 11898 func (m *Milestone) GetID() int64 { 11899 if m == nil || m.ID == nil { 11900 return 0 11901 } 11902 return *m.ID 11903 } 11904 11905 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 11906 func (m *Milestone) GetLabelsURL() string { 11907 if m == nil || m.LabelsURL == nil { 11908 return "" 11909 } 11910 return *m.LabelsURL 11911 } 11912 11913 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 11914 func (m *Milestone) GetNodeID() string { 11915 if m == nil || m.NodeID == nil { 11916 return "" 11917 } 11918 return *m.NodeID 11919 } 11920 11921 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 11922 func (m *Milestone) GetNumber() int { 11923 if m == nil || m.Number == nil { 11924 return 0 11925 } 11926 return *m.Number 11927 } 11928 11929 // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 11930 func (m *Milestone) GetOpenIssues() int { 11931 if m == nil || m.OpenIssues == nil { 11932 return 0 11933 } 11934 return *m.OpenIssues 11935 } 11936 11937 // GetState returns the State field if it's non-nil, zero value otherwise. 11938 func (m *Milestone) GetState() string { 11939 if m == nil || m.State == nil { 11940 return "" 11941 } 11942 return *m.State 11943 } 11944 11945 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 11946 func (m *Milestone) GetTitle() string { 11947 if m == nil || m.Title == nil { 11948 return "" 11949 } 11950 return *m.Title 11951 } 11952 11953 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 11954 func (m *Milestone) GetUpdatedAt() Timestamp { 11955 if m == nil || m.UpdatedAt == nil { 11956 return Timestamp{} 11957 } 11958 return *m.UpdatedAt 11959 } 11960 11961 // GetURL returns the URL field if it's non-nil, zero value otherwise. 11962 func (m *Milestone) GetURL() string { 11963 if m == nil || m.URL == nil { 11964 return "" 11965 } 11966 return *m.URL 11967 } 11968 11969 // GetAction returns the Action field if it's non-nil, zero value otherwise. 11970 func (m *MilestoneEvent) GetAction() string { 11971 if m == nil || m.Action == nil { 11972 return "" 11973 } 11974 return *m.Action 11975 } 11976 11977 // GetChanges returns the Changes field. 11978 func (m *MilestoneEvent) GetChanges() *EditChange { 11979 if m == nil { 11980 return nil 11981 } 11982 return m.Changes 11983 } 11984 11985 // GetInstallation returns the Installation field. 11986 func (m *MilestoneEvent) GetInstallation() *Installation { 11987 if m == nil { 11988 return nil 11989 } 11990 return m.Installation 11991 } 11992 11993 // GetMilestone returns the Milestone field. 11994 func (m *MilestoneEvent) GetMilestone() *Milestone { 11995 if m == nil { 11996 return nil 11997 } 11998 return m.Milestone 11999 } 12000 12001 // GetOrg returns the Org field. 12002 func (m *MilestoneEvent) GetOrg() *Organization { 12003 if m == nil { 12004 return nil 12005 } 12006 return m.Org 12007 } 12008 12009 // GetRepo returns the Repo field. 12010 func (m *MilestoneEvent) GetRepo() *Repository { 12011 if m == nil { 12012 return nil 12013 } 12014 return m.Repo 12015 } 12016 12017 // GetSender returns the Sender field. 12018 func (m *MilestoneEvent) GetSender() *User { 12019 if m == nil { 12020 return nil 12021 } 12022 return m.Sender 12023 } 12024 12025 // GetClosedMilestones returns the ClosedMilestones field if it's non-nil, zero value otherwise. 12026 func (m *MilestoneStats) GetClosedMilestones() int { 12027 if m == nil || m.ClosedMilestones == nil { 12028 return 0 12029 } 12030 return *m.ClosedMilestones 12031 } 12032 12033 // GetOpenMilestones returns the OpenMilestones field if it's non-nil, zero value otherwise. 12034 func (m *MilestoneStats) GetOpenMilestones() int { 12035 if m == nil || m.OpenMilestones == nil { 12036 return 0 12037 } 12038 return *m.OpenMilestones 12039 } 12040 12041 // GetTotalMilestones returns the TotalMilestones field if it's non-nil, zero value otherwise. 12042 func (m *MilestoneStats) GetTotalMilestones() int { 12043 if m == nil || m.TotalMilestones == nil { 12044 return 0 12045 } 12046 return *m.TotalMilestones 12047 } 12048 12049 // GetAnalysisKey returns the AnalysisKey field if it's non-nil, zero value otherwise. 12050 func (m *MostRecentInstance) GetAnalysisKey() string { 12051 if m == nil || m.AnalysisKey == nil { 12052 return "" 12053 } 12054 return *m.AnalysisKey 12055 } 12056 12057 // GetCategory returns the Category field if it's non-nil, zero value otherwise. 12058 func (m *MostRecentInstance) GetCategory() string { 12059 if m == nil || m.Category == nil { 12060 return "" 12061 } 12062 return *m.Category 12063 } 12064 12065 // GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. 12066 func (m *MostRecentInstance) GetCommitSHA() string { 12067 if m == nil || m.CommitSHA == nil { 12068 return "" 12069 } 12070 return *m.CommitSHA 12071 } 12072 12073 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 12074 func (m *MostRecentInstance) GetEnvironment() string { 12075 if m == nil || m.Environment == nil { 12076 return "" 12077 } 12078 return *m.Environment 12079 } 12080 12081 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 12082 func (m *MostRecentInstance) GetHTMLURL() string { 12083 if m == nil || m.HTMLURL == nil { 12084 return "" 12085 } 12086 return *m.HTMLURL 12087 } 12088 12089 // GetLocation returns the Location field. 12090 func (m *MostRecentInstance) GetLocation() *Location { 12091 if m == nil { 12092 return nil 12093 } 12094 return m.Location 12095 } 12096 12097 // GetMessage returns the Message field. 12098 func (m *MostRecentInstance) GetMessage() *Message { 12099 if m == nil { 12100 return nil 12101 } 12102 return m.Message 12103 } 12104 12105 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 12106 func (m *MostRecentInstance) GetRef() string { 12107 if m == nil || m.Ref == nil { 12108 return "" 12109 } 12110 return *m.Ref 12111 } 12112 12113 // GetState returns the State field if it's non-nil, zero value otherwise. 12114 func (m *MostRecentInstance) GetState() string { 12115 if m == nil || m.State == nil { 12116 return "" 12117 } 12118 return *m.State 12119 } 12120 12121 // GetBase returns the Base field if it's non-nil, zero value otherwise. 12122 func (n *NewPullRequest) GetBase() string { 12123 if n == nil || n.Base == nil { 12124 return "" 12125 } 12126 return *n.Base 12127 } 12128 12129 // GetBody returns the Body field if it's non-nil, zero value otherwise. 12130 func (n *NewPullRequest) GetBody() string { 12131 if n == nil || n.Body == nil { 12132 return "" 12133 } 12134 return *n.Body 12135 } 12136 12137 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 12138 func (n *NewPullRequest) GetDraft() bool { 12139 if n == nil || n.Draft == nil { 12140 return false 12141 } 12142 return *n.Draft 12143 } 12144 12145 // GetHead returns the Head field if it's non-nil, zero value otherwise. 12146 func (n *NewPullRequest) GetHead() string { 12147 if n == nil || n.Head == nil { 12148 return "" 12149 } 12150 return *n.Head 12151 } 12152 12153 // GetHeadRepo returns the HeadRepo field if it's non-nil, zero value otherwise. 12154 func (n *NewPullRequest) GetHeadRepo() string { 12155 if n == nil || n.HeadRepo == nil { 12156 return "" 12157 } 12158 return *n.HeadRepo 12159 } 12160 12161 // GetIssue returns the Issue field if it's non-nil, zero value otherwise. 12162 func (n *NewPullRequest) GetIssue() int { 12163 if n == nil || n.Issue == nil { 12164 return 0 12165 } 12166 return *n.Issue 12167 } 12168 12169 // GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 12170 func (n *NewPullRequest) GetMaintainerCanModify() bool { 12171 if n == nil || n.MaintainerCanModify == nil { 12172 return false 12173 } 12174 return *n.MaintainerCanModify 12175 } 12176 12177 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 12178 func (n *NewPullRequest) GetTitle() string { 12179 if n == nil || n.Title == nil { 12180 return "" 12181 } 12182 return *n.Title 12183 } 12184 12185 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 12186 func (n *NewTeam) GetDescription() string { 12187 if n == nil || n.Description == nil { 12188 return "" 12189 } 12190 return *n.Description 12191 } 12192 12193 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 12194 func (n *NewTeam) GetLDAPDN() string { 12195 if n == nil || n.LDAPDN == nil { 12196 return "" 12197 } 12198 return *n.LDAPDN 12199 } 12200 12201 // GetParentTeamID returns the ParentTeamID field if it's non-nil, zero value otherwise. 12202 func (n *NewTeam) GetParentTeamID() int64 { 12203 if n == nil || n.ParentTeamID == nil { 12204 return 0 12205 } 12206 return *n.ParentTeamID 12207 } 12208 12209 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 12210 func (n *NewTeam) GetPermission() string { 12211 if n == nil || n.Permission == nil { 12212 return "" 12213 } 12214 return *n.Permission 12215 } 12216 12217 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 12218 func (n *NewTeam) GetPrivacy() string { 12219 if n == nil || n.Privacy == nil { 12220 return "" 12221 } 12222 return *n.Privacy 12223 } 12224 12225 // GetID returns the ID field if it's non-nil, zero value otherwise. 12226 func (n *Notification) GetID() string { 12227 if n == nil || n.ID == nil { 12228 return "" 12229 } 12230 return *n.ID 12231 } 12232 12233 // GetLastReadAt returns the LastReadAt field if it's non-nil, zero value otherwise. 12234 func (n *Notification) GetLastReadAt() Timestamp { 12235 if n == nil || n.LastReadAt == nil { 12236 return Timestamp{} 12237 } 12238 return *n.LastReadAt 12239 } 12240 12241 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 12242 func (n *Notification) GetReason() string { 12243 if n == nil || n.Reason == nil { 12244 return "" 12245 } 12246 return *n.Reason 12247 } 12248 12249 // GetRepository returns the Repository field. 12250 func (n *Notification) GetRepository() *Repository { 12251 if n == nil { 12252 return nil 12253 } 12254 return n.Repository 12255 } 12256 12257 // GetSubject returns the Subject field. 12258 func (n *Notification) GetSubject() *NotificationSubject { 12259 if n == nil { 12260 return nil 12261 } 12262 return n.Subject 12263 } 12264 12265 // GetUnread returns the Unread field if it's non-nil, zero value otherwise. 12266 func (n *Notification) GetUnread() bool { 12267 if n == nil || n.Unread == nil { 12268 return false 12269 } 12270 return *n.Unread 12271 } 12272 12273 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 12274 func (n *Notification) GetUpdatedAt() Timestamp { 12275 if n == nil || n.UpdatedAt == nil { 12276 return Timestamp{} 12277 } 12278 return *n.UpdatedAt 12279 } 12280 12281 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12282 func (n *Notification) GetURL() string { 12283 if n == nil || n.URL == nil { 12284 return "" 12285 } 12286 return *n.URL 12287 } 12288 12289 // GetLatestCommentURL returns the LatestCommentURL field if it's non-nil, zero value otherwise. 12290 func (n *NotificationSubject) GetLatestCommentURL() string { 12291 if n == nil || n.LatestCommentURL == nil { 12292 return "" 12293 } 12294 return *n.LatestCommentURL 12295 } 12296 12297 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 12298 func (n *NotificationSubject) GetTitle() string { 12299 if n == nil || n.Title == nil { 12300 return "" 12301 } 12302 return *n.Title 12303 } 12304 12305 // GetType returns the Type field if it's non-nil, zero value otherwise. 12306 func (n *NotificationSubject) GetType() string { 12307 if n == nil || n.Type == nil { 12308 return "" 12309 } 12310 return *n.Type 12311 } 12312 12313 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12314 func (n *NotificationSubject) GetURL() string { 12315 if n == nil || n.URL == nil { 12316 return "" 12317 } 12318 return *n.URL 12319 } 12320 12321 // GetClientID returns the ClientID field if it's non-nil, zero value otherwise. 12322 func (o *OAuthAPP) GetClientID() string { 12323 if o == nil || o.ClientID == nil { 12324 return "" 12325 } 12326 return *o.ClientID 12327 } 12328 12329 // GetName returns the Name field if it's non-nil, zero value otherwise. 12330 func (o *OAuthAPP) GetName() string { 12331 if o == nil || o.Name == nil { 12332 return "" 12333 } 12334 return *o.Name 12335 } 12336 12337 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12338 func (o *OAuthAPP) GetURL() string { 12339 if o == nil || o.URL == nil { 12340 return "" 12341 } 12342 return *o.URL 12343 } 12344 12345 // GetUseDefault returns the UseDefault field if it's non-nil, zero value otherwise. 12346 func (o *OIDCSubjectClaimCustomTemplate) GetUseDefault() bool { 12347 if o == nil || o.UseDefault == nil { 12348 return false 12349 } 12350 return *o.UseDefault 12351 } 12352 12353 // GetAdvancedSecurityEnabledForNewRepos returns the AdvancedSecurityEnabledForNewRepos field if it's non-nil, zero value otherwise. 12354 func (o *Organization) GetAdvancedSecurityEnabledForNewRepos() bool { 12355 if o == nil || o.AdvancedSecurityEnabledForNewRepos == nil { 12356 return false 12357 } 12358 return *o.AdvancedSecurityEnabledForNewRepos 12359 } 12360 12361 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 12362 func (o *Organization) GetAvatarURL() string { 12363 if o == nil || o.AvatarURL == nil { 12364 return "" 12365 } 12366 return *o.AvatarURL 12367 } 12368 12369 // GetBillingEmail returns the BillingEmail field if it's non-nil, zero value otherwise. 12370 func (o *Organization) GetBillingEmail() string { 12371 if o == nil || o.BillingEmail == nil { 12372 return "" 12373 } 12374 return *o.BillingEmail 12375 } 12376 12377 // GetBlog returns the Blog field if it's non-nil, zero value otherwise. 12378 func (o *Organization) GetBlog() string { 12379 if o == nil || o.Blog == nil { 12380 return "" 12381 } 12382 return *o.Blog 12383 } 12384 12385 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 12386 func (o *Organization) GetCollaborators() int { 12387 if o == nil || o.Collaborators == nil { 12388 return 0 12389 } 12390 return *o.Collaborators 12391 } 12392 12393 // GetCompany returns the Company field if it's non-nil, zero value otherwise. 12394 func (o *Organization) GetCompany() string { 12395 if o == nil || o.Company == nil { 12396 return "" 12397 } 12398 return *o.Company 12399 } 12400 12401 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12402 func (o *Organization) GetCreatedAt() Timestamp { 12403 if o == nil || o.CreatedAt == nil { 12404 return Timestamp{} 12405 } 12406 return *o.CreatedAt 12407 } 12408 12409 // GetDefaultRepoPermission returns the DefaultRepoPermission field if it's non-nil, zero value otherwise. 12410 func (o *Organization) GetDefaultRepoPermission() string { 12411 if o == nil || o.DefaultRepoPermission == nil { 12412 return "" 12413 } 12414 return *o.DefaultRepoPermission 12415 } 12416 12417 // GetDefaultRepoSettings returns the DefaultRepoSettings field if it's non-nil, zero value otherwise. 12418 func (o *Organization) GetDefaultRepoSettings() string { 12419 if o == nil || o.DefaultRepoSettings == nil { 12420 return "" 12421 } 12422 return *o.DefaultRepoSettings 12423 } 12424 12425 // GetDependabotAlertsEnabledForNewRepos returns the DependabotAlertsEnabledForNewRepos field if it's non-nil, zero value otherwise. 12426 func (o *Organization) GetDependabotAlertsEnabledForNewRepos() bool { 12427 if o == nil || o.DependabotAlertsEnabledForNewRepos == nil { 12428 return false 12429 } 12430 return *o.DependabotAlertsEnabledForNewRepos 12431 } 12432 12433 // GetDependabotSecurityUpdatesEnabledForNewRepos returns the DependabotSecurityUpdatesEnabledForNewRepos field if it's non-nil, zero value otherwise. 12434 func (o *Organization) GetDependabotSecurityUpdatesEnabledForNewRepos() bool { 12435 if o == nil || o.DependabotSecurityUpdatesEnabledForNewRepos == nil { 12436 return false 12437 } 12438 return *o.DependabotSecurityUpdatesEnabledForNewRepos 12439 } 12440 12441 // GetDependencyGraphEnabledForNewRepos returns the DependencyGraphEnabledForNewRepos field if it's non-nil, zero value otherwise. 12442 func (o *Organization) GetDependencyGraphEnabledForNewRepos() bool { 12443 if o == nil || o.DependencyGraphEnabledForNewRepos == nil { 12444 return false 12445 } 12446 return *o.DependencyGraphEnabledForNewRepos 12447 } 12448 12449 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 12450 func (o *Organization) GetDescription() string { 12451 if o == nil || o.Description == nil { 12452 return "" 12453 } 12454 return *o.Description 12455 } 12456 12457 // GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 12458 func (o *Organization) GetDiskUsage() int { 12459 if o == nil || o.DiskUsage == nil { 12460 return 0 12461 } 12462 return *o.DiskUsage 12463 } 12464 12465 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 12466 func (o *Organization) GetEmail() string { 12467 if o == nil || o.Email == nil { 12468 return "" 12469 } 12470 return *o.Email 12471 } 12472 12473 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 12474 func (o *Organization) GetEventsURL() string { 12475 if o == nil || o.EventsURL == nil { 12476 return "" 12477 } 12478 return *o.EventsURL 12479 } 12480 12481 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 12482 func (o *Organization) GetFollowers() int { 12483 if o == nil || o.Followers == nil { 12484 return 0 12485 } 12486 return *o.Followers 12487 } 12488 12489 // GetFollowing returns the Following field if it's non-nil, zero value otherwise. 12490 func (o *Organization) GetFollowing() int { 12491 if o == nil || o.Following == nil { 12492 return 0 12493 } 12494 return *o.Following 12495 } 12496 12497 // GetHasOrganizationProjects returns the HasOrganizationProjects field if it's non-nil, zero value otherwise. 12498 func (o *Organization) GetHasOrganizationProjects() bool { 12499 if o == nil || o.HasOrganizationProjects == nil { 12500 return false 12501 } 12502 return *o.HasOrganizationProjects 12503 } 12504 12505 // GetHasRepositoryProjects returns the HasRepositoryProjects field if it's non-nil, zero value otherwise. 12506 func (o *Organization) GetHasRepositoryProjects() bool { 12507 if o == nil || o.HasRepositoryProjects == nil { 12508 return false 12509 } 12510 return *o.HasRepositoryProjects 12511 } 12512 12513 // GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 12514 func (o *Organization) GetHooksURL() string { 12515 if o == nil || o.HooksURL == nil { 12516 return "" 12517 } 12518 return *o.HooksURL 12519 } 12520 12521 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 12522 func (o *Organization) GetHTMLURL() string { 12523 if o == nil || o.HTMLURL == nil { 12524 return "" 12525 } 12526 return *o.HTMLURL 12527 } 12528 12529 // GetID returns the ID field if it's non-nil, zero value otherwise. 12530 func (o *Organization) GetID() int64 { 12531 if o == nil || o.ID == nil { 12532 return 0 12533 } 12534 return *o.ID 12535 } 12536 12537 // GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 12538 func (o *Organization) GetIssuesURL() string { 12539 if o == nil || o.IssuesURL == nil { 12540 return "" 12541 } 12542 return *o.IssuesURL 12543 } 12544 12545 // GetIsVerified returns the IsVerified field if it's non-nil, zero value otherwise. 12546 func (o *Organization) GetIsVerified() bool { 12547 if o == nil || o.IsVerified == nil { 12548 return false 12549 } 12550 return *o.IsVerified 12551 } 12552 12553 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 12554 func (o *Organization) GetLocation() string { 12555 if o == nil || o.Location == nil { 12556 return "" 12557 } 12558 return *o.Location 12559 } 12560 12561 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 12562 func (o *Organization) GetLogin() string { 12563 if o == nil || o.Login == nil { 12564 return "" 12565 } 12566 return *o.Login 12567 } 12568 12569 // GetMembersAllowedRepositoryCreationType returns the MembersAllowedRepositoryCreationType field if it's non-nil, zero value otherwise. 12570 func (o *Organization) GetMembersAllowedRepositoryCreationType() string { 12571 if o == nil || o.MembersAllowedRepositoryCreationType == nil { 12572 return "" 12573 } 12574 return *o.MembersAllowedRepositoryCreationType 12575 } 12576 12577 // GetMembersCanCreateInternalRepos returns the MembersCanCreateInternalRepos field if it's non-nil, zero value otherwise. 12578 func (o *Organization) GetMembersCanCreateInternalRepos() bool { 12579 if o == nil || o.MembersCanCreateInternalRepos == nil { 12580 return false 12581 } 12582 return *o.MembersCanCreateInternalRepos 12583 } 12584 12585 // GetMembersCanCreatePages returns the MembersCanCreatePages field if it's non-nil, zero value otherwise. 12586 func (o *Organization) GetMembersCanCreatePages() bool { 12587 if o == nil || o.MembersCanCreatePages == nil { 12588 return false 12589 } 12590 return *o.MembersCanCreatePages 12591 } 12592 12593 // GetMembersCanCreatePrivatePages returns the MembersCanCreatePrivatePages field if it's non-nil, zero value otherwise. 12594 func (o *Organization) GetMembersCanCreatePrivatePages() bool { 12595 if o == nil || o.MembersCanCreatePrivatePages == nil { 12596 return false 12597 } 12598 return *o.MembersCanCreatePrivatePages 12599 } 12600 12601 // GetMembersCanCreatePrivateRepos returns the MembersCanCreatePrivateRepos field if it's non-nil, zero value otherwise. 12602 func (o *Organization) GetMembersCanCreatePrivateRepos() bool { 12603 if o == nil || o.MembersCanCreatePrivateRepos == nil { 12604 return false 12605 } 12606 return *o.MembersCanCreatePrivateRepos 12607 } 12608 12609 // GetMembersCanCreatePublicPages returns the MembersCanCreatePublicPages field if it's non-nil, zero value otherwise. 12610 func (o *Organization) GetMembersCanCreatePublicPages() bool { 12611 if o == nil || o.MembersCanCreatePublicPages == nil { 12612 return false 12613 } 12614 return *o.MembersCanCreatePublicPages 12615 } 12616 12617 // GetMembersCanCreatePublicRepos returns the MembersCanCreatePublicRepos field if it's non-nil, zero value otherwise. 12618 func (o *Organization) GetMembersCanCreatePublicRepos() bool { 12619 if o == nil || o.MembersCanCreatePublicRepos == nil { 12620 return false 12621 } 12622 return *o.MembersCanCreatePublicRepos 12623 } 12624 12625 // GetMembersCanCreateRepos returns the MembersCanCreateRepos field if it's non-nil, zero value otherwise. 12626 func (o *Organization) GetMembersCanCreateRepos() bool { 12627 if o == nil || o.MembersCanCreateRepos == nil { 12628 return false 12629 } 12630 return *o.MembersCanCreateRepos 12631 } 12632 12633 // GetMembersCanForkPrivateRepos returns the MembersCanForkPrivateRepos field if it's non-nil, zero value otherwise. 12634 func (o *Organization) GetMembersCanForkPrivateRepos() bool { 12635 if o == nil || o.MembersCanForkPrivateRepos == nil { 12636 return false 12637 } 12638 return *o.MembersCanForkPrivateRepos 12639 } 12640 12641 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 12642 func (o *Organization) GetMembersURL() string { 12643 if o == nil || o.MembersURL == nil { 12644 return "" 12645 } 12646 return *o.MembersURL 12647 } 12648 12649 // GetName returns the Name field if it's non-nil, zero value otherwise. 12650 func (o *Organization) GetName() string { 12651 if o == nil || o.Name == nil { 12652 return "" 12653 } 12654 return *o.Name 12655 } 12656 12657 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 12658 func (o *Organization) GetNodeID() string { 12659 if o == nil || o.NodeID == nil { 12660 return "" 12661 } 12662 return *o.NodeID 12663 } 12664 12665 // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 12666 func (o *Organization) GetOwnedPrivateRepos() int64 { 12667 if o == nil || o.OwnedPrivateRepos == nil { 12668 return 0 12669 } 12670 return *o.OwnedPrivateRepos 12671 } 12672 12673 // GetPlan returns the Plan field. 12674 func (o *Organization) GetPlan() *Plan { 12675 if o == nil { 12676 return nil 12677 } 12678 return o.Plan 12679 } 12680 12681 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 12682 func (o *Organization) GetPrivateGists() int { 12683 if o == nil || o.PrivateGists == nil { 12684 return 0 12685 } 12686 return *o.PrivateGists 12687 } 12688 12689 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 12690 func (o *Organization) GetPublicGists() int { 12691 if o == nil || o.PublicGists == nil { 12692 return 0 12693 } 12694 return *o.PublicGists 12695 } 12696 12697 // GetPublicMembersURL returns the PublicMembersURL field if it's non-nil, zero value otherwise. 12698 func (o *Organization) GetPublicMembersURL() string { 12699 if o == nil || o.PublicMembersURL == nil { 12700 return "" 12701 } 12702 return *o.PublicMembersURL 12703 } 12704 12705 // GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 12706 func (o *Organization) GetPublicRepos() int { 12707 if o == nil || o.PublicRepos == nil { 12708 return 0 12709 } 12710 return *o.PublicRepos 12711 } 12712 12713 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 12714 func (o *Organization) GetReposURL() string { 12715 if o == nil || o.ReposURL == nil { 12716 return "" 12717 } 12718 return *o.ReposURL 12719 } 12720 12721 // GetSecretScanningEnabledForNewRepos returns the SecretScanningEnabledForNewRepos field if it's non-nil, zero value otherwise. 12722 func (o *Organization) GetSecretScanningEnabledForNewRepos() bool { 12723 if o == nil || o.SecretScanningEnabledForNewRepos == nil { 12724 return false 12725 } 12726 return *o.SecretScanningEnabledForNewRepos 12727 } 12728 12729 // GetSecretScanningPushProtectionEnabledForNewRepos returns the SecretScanningPushProtectionEnabledForNewRepos field if it's non-nil, zero value otherwise. 12730 func (o *Organization) GetSecretScanningPushProtectionEnabledForNewRepos() bool { 12731 if o == nil || o.SecretScanningPushProtectionEnabledForNewRepos == nil { 12732 return false 12733 } 12734 return *o.SecretScanningPushProtectionEnabledForNewRepos 12735 } 12736 12737 // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 12738 func (o *Organization) GetTotalPrivateRepos() int64 { 12739 if o == nil || o.TotalPrivateRepos == nil { 12740 return 0 12741 } 12742 return *o.TotalPrivateRepos 12743 } 12744 12745 // GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. 12746 func (o *Organization) GetTwitterUsername() string { 12747 if o == nil || o.TwitterUsername == nil { 12748 return "" 12749 } 12750 return *o.TwitterUsername 12751 } 12752 12753 // GetTwoFactorRequirementEnabled returns the TwoFactorRequirementEnabled field if it's non-nil, zero value otherwise. 12754 func (o *Organization) GetTwoFactorRequirementEnabled() bool { 12755 if o == nil || o.TwoFactorRequirementEnabled == nil { 12756 return false 12757 } 12758 return *o.TwoFactorRequirementEnabled 12759 } 12760 12761 // GetType returns the Type field if it's non-nil, zero value otherwise. 12762 func (o *Organization) GetType() string { 12763 if o == nil || o.Type == nil { 12764 return "" 12765 } 12766 return *o.Type 12767 } 12768 12769 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 12770 func (o *Organization) GetUpdatedAt() Timestamp { 12771 if o == nil || o.UpdatedAt == nil { 12772 return Timestamp{} 12773 } 12774 return *o.UpdatedAt 12775 } 12776 12777 // GetURL returns the URL field if it's non-nil, zero value otherwise. 12778 func (o *Organization) GetURL() string { 12779 if o == nil || o.URL == nil { 12780 return "" 12781 } 12782 return *o.URL 12783 } 12784 12785 // GetWebCommitSignoffRequired returns the WebCommitSignoffRequired field if it's non-nil, zero value otherwise. 12786 func (o *Organization) GetWebCommitSignoffRequired() bool { 12787 if o == nil || o.WebCommitSignoffRequired == nil { 12788 return false 12789 } 12790 return *o.WebCommitSignoffRequired 12791 } 12792 12793 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 12794 func (o *OrganizationCustomRepoRoles) GetTotalCount() int { 12795 if o == nil || o.TotalCount == nil { 12796 return 0 12797 } 12798 return *o.TotalCount 12799 } 12800 12801 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12802 func (o *OrganizationEvent) GetAction() string { 12803 if o == nil || o.Action == nil { 12804 return "" 12805 } 12806 return *o.Action 12807 } 12808 12809 // GetInstallation returns the Installation field. 12810 func (o *OrganizationEvent) GetInstallation() *Installation { 12811 if o == nil { 12812 return nil 12813 } 12814 return o.Installation 12815 } 12816 12817 // GetInvitation returns the Invitation field. 12818 func (o *OrganizationEvent) GetInvitation() *Invitation { 12819 if o == nil { 12820 return nil 12821 } 12822 return o.Invitation 12823 } 12824 12825 // GetMembership returns the Membership field. 12826 func (o *OrganizationEvent) GetMembership() *Membership { 12827 if o == nil { 12828 return nil 12829 } 12830 return o.Membership 12831 } 12832 12833 // GetOrganization returns the Organization field. 12834 func (o *OrganizationEvent) GetOrganization() *Organization { 12835 if o == nil { 12836 return nil 12837 } 12838 return o.Organization 12839 } 12840 12841 // GetSender returns the Sender field. 12842 func (o *OrganizationEvent) GetSender() *User { 12843 if o == nil { 12844 return nil 12845 } 12846 return o.Sender 12847 } 12848 12849 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 12850 func (o *OrganizationInstallations) GetTotalCount() int { 12851 if o == nil || o.TotalCount == nil { 12852 return 0 12853 } 12854 return *o.TotalCount 12855 } 12856 12857 // GetAction returns the Action field if it's non-nil, zero value otherwise. 12858 func (o *OrgBlockEvent) GetAction() string { 12859 if o == nil || o.Action == nil { 12860 return "" 12861 } 12862 return *o.Action 12863 } 12864 12865 // GetBlockedUser returns the BlockedUser field. 12866 func (o *OrgBlockEvent) GetBlockedUser() *User { 12867 if o == nil { 12868 return nil 12869 } 12870 return o.BlockedUser 12871 } 12872 12873 // GetInstallation returns the Installation field. 12874 func (o *OrgBlockEvent) GetInstallation() *Installation { 12875 if o == nil { 12876 return nil 12877 } 12878 return o.Installation 12879 } 12880 12881 // GetOrganization returns the Organization field. 12882 func (o *OrgBlockEvent) GetOrganization() *Organization { 12883 if o == nil { 12884 return nil 12885 } 12886 return o.Organization 12887 } 12888 12889 // GetSender returns the Sender field. 12890 func (o *OrgBlockEvent) GetSender() *User { 12891 if o == nil { 12892 return nil 12893 } 12894 return o.Sender 12895 } 12896 12897 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 12898 func (o *OrgRequiredWorkflow) GetCreatedAt() Timestamp { 12899 if o == nil || o.CreatedAt == nil { 12900 return Timestamp{} 12901 } 12902 return *o.CreatedAt 12903 } 12904 12905 // GetID returns the ID field if it's non-nil, zero value otherwise. 12906 func (o *OrgRequiredWorkflow) GetID() int64 { 12907 if o == nil || o.ID == nil { 12908 return 0 12909 } 12910 return *o.ID 12911 } 12912 12913 // GetName returns the Name field if it's non-nil, zero value otherwise. 12914 func (o *OrgRequiredWorkflow) GetName() string { 12915 if o == nil || o.Name == nil { 12916 return "" 12917 } 12918 return *o.Name 12919 } 12920 12921 // GetPath returns the Path field if it's non-nil, zero value otherwise. 12922 func (o *OrgRequiredWorkflow) GetPath() string { 12923 if o == nil || o.Path == nil { 12924 return "" 12925 } 12926 return *o.Path 12927 } 12928 12929 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 12930 func (o *OrgRequiredWorkflow) GetRef() string { 12931 if o == nil || o.Ref == nil { 12932 return "" 12933 } 12934 return *o.Ref 12935 } 12936 12937 // GetRepository returns the Repository field. 12938 func (o *OrgRequiredWorkflow) GetRepository() *Repository { 12939 if o == nil { 12940 return nil 12941 } 12942 return o.Repository 12943 } 12944 12945 // GetScope returns the Scope field if it's non-nil, zero value otherwise. 12946 func (o *OrgRequiredWorkflow) GetScope() string { 12947 if o == nil || o.Scope == nil { 12948 return "" 12949 } 12950 return *o.Scope 12951 } 12952 12953 // GetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise. 12954 func (o *OrgRequiredWorkflow) GetSelectedRepositoriesURL() string { 12955 if o == nil || o.SelectedRepositoriesURL == nil { 12956 return "" 12957 } 12958 return *o.SelectedRepositoriesURL 12959 } 12960 12961 // GetState returns the State field if it's non-nil, zero value otherwise. 12962 func (o *OrgRequiredWorkflow) GetState() string { 12963 if o == nil || o.State == nil { 12964 return "" 12965 } 12966 return *o.State 12967 } 12968 12969 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 12970 func (o *OrgRequiredWorkflow) GetUpdatedAt() Timestamp { 12971 if o == nil || o.UpdatedAt == nil { 12972 return Timestamp{} 12973 } 12974 return *o.UpdatedAt 12975 } 12976 12977 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 12978 func (o *OrgRequiredWorkflows) GetTotalCount() int { 12979 if o == nil || o.TotalCount == nil { 12980 return 0 12981 } 12982 return *o.TotalCount 12983 } 12984 12985 // GetDisabledOrgs returns the DisabledOrgs field if it's non-nil, zero value otherwise. 12986 func (o *OrgStats) GetDisabledOrgs() int { 12987 if o == nil || o.DisabledOrgs == nil { 12988 return 0 12989 } 12990 return *o.DisabledOrgs 12991 } 12992 12993 // GetTotalOrgs returns the TotalOrgs field if it's non-nil, zero value otherwise. 12994 func (o *OrgStats) GetTotalOrgs() int { 12995 if o == nil || o.TotalOrgs == nil { 12996 return 0 12997 } 12998 return *o.TotalOrgs 12999 } 13000 13001 // GetTotalTeamMembers returns the TotalTeamMembers field if it's non-nil, zero value otherwise. 13002 func (o *OrgStats) GetTotalTeamMembers() int { 13003 if o == nil || o.TotalTeamMembers == nil { 13004 return 0 13005 } 13006 return *o.TotalTeamMembers 13007 } 13008 13009 // GetTotalTeams returns the TotalTeams field if it's non-nil, zero value otherwise. 13010 func (o *OrgStats) GetTotalTeams() int { 13011 if o == nil || o.TotalTeams == nil { 13012 return 0 13013 } 13014 return *o.TotalTeams 13015 } 13016 13017 // GetOrg returns the Org field. 13018 func (o *OwnerInfo) GetOrg() *User { 13019 if o == nil { 13020 return nil 13021 } 13022 return o.Org 13023 } 13024 13025 // GetUser returns the User field. 13026 func (o *OwnerInfo) GetUser() *User { 13027 if o == nil { 13028 return nil 13029 } 13030 return o.User 13031 } 13032 13033 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13034 func (p *Package) GetCreatedAt() Timestamp { 13035 if p == nil || p.CreatedAt == nil { 13036 return Timestamp{} 13037 } 13038 return *p.CreatedAt 13039 } 13040 13041 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13042 func (p *Package) GetHTMLURL() string { 13043 if p == nil || p.HTMLURL == nil { 13044 return "" 13045 } 13046 return *p.HTMLURL 13047 } 13048 13049 // GetID returns the ID field if it's non-nil, zero value otherwise. 13050 func (p *Package) GetID() int64 { 13051 if p == nil || p.ID == nil { 13052 return 0 13053 } 13054 return *p.ID 13055 } 13056 13057 // GetName returns the Name field if it's non-nil, zero value otherwise. 13058 func (p *Package) GetName() string { 13059 if p == nil || p.Name == nil { 13060 return "" 13061 } 13062 return *p.Name 13063 } 13064 13065 // GetOwner returns the Owner field. 13066 func (p *Package) GetOwner() *User { 13067 if p == nil { 13068 return nil 13069 } 13070 return p.Owner 13071 } 13072 13073 // GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. 13074 func (p *Package) GetPackageType() string { 13075 if p == nil || p.PackageType == nil { 13076 return "" 13077 } 13078 return *p.PackageType 13079 } 13080 13081 // GetPackageVersion returns the PackageVersion field. 13082 func (p *Package) GetPackageVersion() *PackageVersion { 13083 if p == nil { 13084 return nil 13085 } 13086 return p.PackageVersion 13087 } 13088 13089 // GetRegistry returns the Registry field. 13090 func (p *Package) GetRegistry() *PackageRegistry { 13091 if p == nil { 13092 return nil 13093 } 13094 return p.Registry 13095 } 13096 13097 // GetRepository returns the Repository field. 13098 func (p *Package) GetRepository() *Repository { 13099 if p == nil { 13100 return nil 13101 } 13102 return p.Repository 13103 } 13104 13105 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13106 func (p *Package) GetUpdatedAt() Timestamp { 13107 if p == nil || p.UpdatedAt == nil { 13108 return Timestamp{} 13109 } 13110 return *p.UpdatedAt 13111 } 13112 13113 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13114 func (p *Package) GetURL() string { 13115 if p == nil || p.URL == nil { 13116 return "" 13117 } 13118 return *p.URL 13119 } 13120 13121 // GetVersionCount returns the VersionCount field if it's non-nil, zero value otherwise. 13122 func (p *Package) GetVersionCount() int64 { 13123 if p == nil || p.VersionCount == nil { 13124 return 0 13125 } 13126 return *p.VersionCount 13127 } 13128 13129 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 13130 func (p *Package) GetVisibility() string { 13131 if p == nil || p.Visibility == nil { 13132 return "" 13133 } 13134 return *p.Visibility 13135 } 13136 13137 // GetAction returns the Action field if it's non-nil, zero value otherwise. 13138 func (p *PackageEvent) GetAction() string { 13139 if p == nil || p.Action == nil { 13140 return "" 13141 } 13142 return *p.Action 13143 } 13144 13145 // GetInstallation returns the Installation field. 13146 func (p *PackageEvent) GetInstallation() *Installation { 13147 if p == nil { 13148 return nil 13149 } 13150 return p.Installation 13151 } 13152 13153 // GetOrg returns the Org field. 13154 func (p *PackageEvent) GetOrg() *Organization { 13155 if p == nil { 13156 return nil 13157 } 13158 return p.Org 13159 } 13160 13161 // GetPackage returns the Package field. 13162 func (p *PackageEvent) GetPackage() *Package { 13163 if p == nil { 13164 return nil 13165 } 13166 return p.Package 13167 } 13168 13169 // GetRepo returns the Repo field. 13170 func (p *PackageEvent) GetRepo() *Repository { 13171 if p == nil { 13172 return nil 13173 } 13174 return p.Repo 13175 } 13176 13177 // GetSender returns the Sender field. 13178 func (p *PackageEvent) GetSender() *User { 13179 if p == nil { 13180 return nil 13181 } 13182 return p.Sender 13183 } 13184 13185 // GetAuthor returns the Author field. 13186 func (p *PackageFile) GetAuthor() *User { 13187 if p == nil { 13188 return nil 13189 } 13190 return p.Author 13191 } 13192 13193 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 13194 func (p *PackageFile) GetContentType() string { 13195 if p == nil || p.ContentType == nil { 13196 return "" 13197 } 13198 return *p.ContentType 13199 } 13200 13201 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13202 func (p *PackageFile) GetCreatedAt() Timestamp { 13203 if p == nil || p.CreatedAt == nil { 13204 return Timestamp{} 13205 } 13206 return *p.CreatedAt 13207 } 13208 13209 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 13210 func (p *PackageFile) GetDownloadURL() string { 13211 if p == nil || p.DownloadURL == nil { 13212 return "" 13213 } 13214 return *p.DownloadURL 13215 } 13216 13217 // GetID returns the ID field if it's non-nil, zero value otherwise. 13218 func (p *PackageFile) GetID() int64 { 13219 if p == nil || p.ID == nil { 13220 return 0 13221 } 13222 return *p.ID 13223 } 13224 13225 // GetMD5 returns the MD5 field if it's non-nil, zero value otherwise. 13226 func (p *PackageFile) GetMD5() string { 13227 if p == nil || p.MD5 == nil { 13228 return "" 13229 } 13230 return *p.MD5 13231 } 13232 13233 // GetName returns the Name field if it's non-nil, zero value otherwise. 13234 func (p *PackageFile) GetName() string { 13235 if p == nil || p.Name == nil { 13236 return "" 13237 } 13238 return *p.Name 13239 } 13240 13241 // GetSHA1 returns the SHA1 field if it's non-nil, zero value otherwise. 13242 func (p *PackageFile) GetSHA1() string { 13243 if p == nil || p.SHA1 == nil { 13244 return "" 13245 } 13246 return *p.SHA1 13247 } 13248 13249 // GetSHA256 returns the SHA256 field if it's non-nil, zero value otherwise. 13250 func (p *PackageFile) GetSHA256() string { 13251 if p == nil || p.SHA256 == nil { 13252 return "" 13253 } 13254 return *p.SHA256 13255 } 13256 13257 // GetSize returns the Size field if it's non-nil, zero value otherwise. 13258 func (p *PackageFile) GetSize() int64 { 13259 if p == nil || p.Size == nil { 13260 return 0 13261 } 13262 return *p.Size 13263 } 13264 13265 // GetState returns the State field if it's non-nil, zero value otherwise. 13266 func (p *PackageFile) GetState() string { 13267 if p == nil || p.State == nil { 13268 return "" 13269 } 13270 return *p.State 13271 } 13272 13273 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13274 func (p *PackageFile) GetUpdatedAt() Timestamp { 13275 if p == nil || p.UpdatedAt == nil { 13276 return Timestamp{} 13277 } 13278 return *p.UpdatedAt 13279 } 13280 13281 // GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. 13282 func (p *PackageListOptions) GetPackageType() string { 13283 if p == nil || p.PackageType == nil { 13284 return "" 13285 } 13286 return *p.PackageType 13287 } 13288 13289 // GetState returns the State field if it's non-nil, zero value otherwise. 13290 func (p *PackageListOptions) GetState() string { 13291 if p == nil || p.State == nil { 13292 return "" 13293 } 13294 return *p.State 13295 } 13296 13297 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 13298 func (p *PackageListOptions) GetVisibility() string { 13299 if p == nil || p.Visibility == nil { 13300 return "" 13301 } 13302 return *p.Visibility 13303 } 13304 13305 // GetContainer returns the Container field. 13306 func (p *PackageMetadata) GetContainer() *PackageContainerMetadata { 13307 if p == nil { 13308 return nil 13309 } 13310 return p.Container 13311 } 13312 13313 // GetPackageType returns the PackageType field if it's non-nil, zero value otherwise. 13314 func (p *PackageMetadata) GetPackageType() string { 13315 if p == nil || p.PackageType == nil { 13316 return "" 13317 } 13318 return *p.PackageType 13319 } 13320 13321 // GetAboutURL returns the AboutURL field if it's non-nil, zero value otherwise. 13322 func (p *PackageRegistry) GetAboutURL() string { 13323 if p == nil || p.AboutURL == nil { 13324 return "" 13325 } 13326 return *p.AboutURL 13327 } 13328 13329 // GetName returns the Name field if it's non-nil, zero value otherwise. 13330 func (p *PackageRegistry) GetName() string { 13331 if p == nil || p.Name == nil { 13332 return "" 13333 } 13334 return *p.Name 13335 } 13336 13337 // GetType returns the Type field if it's non-nil, zero value otherwise. 13338 func (p *PackageRegistry) GetType() string { 13339 if p == nil || p.Type == nil { 13340 return "" 13341 } 13342 return *p.Type 13343 } 13344 13345 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13346 func (p *PackageRegistry) GetURL() string { 13347 if p == nil || p.URL == nil { 13348 return "" 13349 } 13350 return *p.URL 13351 } 13352 13353 // GetVendor returns the Vendor field if it's non-nil, zero value otherwise. 13354 func (p *PackageRegistry) GetVendor() string { 13355 if p == nil || p.Vendor == nil { 13356 return "" 13357 } 13358 return *p.Vendor 13359 } 13360 13361 // GetAuthor returns the Author field. 13362 func (p *PackageRelease) GetAuthor() *User { 13363 if p == nil { 13364 return nil 13365 } 13366 return p.Author 13367 } 13368 13369 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13370 func (p *PackageRelease) GetCreatedAt() Timestamp { 13371 if p == nil || p.CreatedAt == nil { 13372 return Timestamp{} 13373 } 13374 return *p.CreatedAt 13375 } 13376 13377 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 13378 func (p *PackageRelease) GetDraft() bool { 13379 if p == nil || p.Draft == nil { 13380 return false 13381 } 13382 return *p.Draft 13383 } 13384 13385 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13386 func (p *PackageRelease) GetHTMLURL() string { 13387 if p == nil || p.HTMLURL == nil { 13388 return "" 13389 } 13390 return *p.HTMLURL 13391 } 13392 13393 // GetID returns the ID field if it's non-nil, zero value otherwise. 13394 func (p *PackageRelease) GetID() int64 { 13395 if p == nil || p.ID == nil { 13396 return 0 13397 } 13398 return *p.ID 13399 } 13400 13401 // GetName returns the Name field if it's non-nil, zero value otherwise. 13402 func (p *PackageRelease) GetName() string { 13403 if p == nil || p.Name == nil { 13404 return "" 13405 } 13406 return *p.Name 13407 } 13408 13409 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 13410 func (p *PackageRelease) GetPrerelease() bool { 13411 if p == nil || p.Prerelease == nil { 13412 return false 13413 } 13414 return *p.Prerelease 13415 } 13416 13417 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 13418 func (p *PackageRelease) GetPublishedAt() Timestamp { 13419 if p == nil || p.PublishedAt == nil { 13420 return Timestamp{} 13421 } 13422 return *p.PublishedAt 13423 } 13424 13425 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 13426 func (p *PackageRelease) GetTagName() string { 13427 if p == nil || p.TagName == nil { 13428 return "" 13429 } 13430 return *p.TagName 13431 } 13432 13433 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 13434 func (p *PackageRelease) GetTargetCommitish() string { 13435 if p == nil || p.TargetCommitish == nil { 13436 return "" 13437 } 13438 return *p.TargetCommitish 13439 } 13440 13441 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13442 func (p *PackageRelease) GetURL() string { 13443 if p == nil || p.URL == nil { 13444 return "" 13445 } 13446 return *p.URL 13447 } 13448 13449 // GetAuthor returns the Author field. 13450 func (p *PackageVersion) GetAuthor() *User { 13451 if p == nil { 13452 return nil 13453 } 13454 return p.Author 13455 } 13456 13457 // GetBody returns the Body field if it's non-nil, zero value otherwise. 13458 func (p *PackageVersion) GetBody() string { 13459 if p == nil || p.Body == nil { 13460 return "" 13461 } 13462 return *p.Body 13463 } 13464 13465 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 13466 func (p *PackageVersion) GetBodyHTML() string { 13467 if p == nil || p.BodyHTML == nil { 13468 return "" 13469 } 13470 return *p.BodyHTML 13471 } 13472 13473 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13474 func (p *PackageVersion) GetCreatedAt() Timestamp { 13475 if p == nil || p.CreatedAt == nil { 13476 return Timestamp{} 13477 } 13478 return *p.CreatedAt 13479 } 13480 13481 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 13482 func (p *PackageVersion) GetDraft() bool { 13483 if p == nil || p.Draft == nil { 13484 return false 13485 } 13486 return *p.Draft 13487 } 13488 13489 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13490 func (p *PackageVersion) GetHTMLURL() string { 13491 if p == nil || p.HTMLURL == nil { 13492 return "" 13493 } 13494 return *p.HTMLURL 13495 } 13496 13497 // GetID returns the ID field if it's non-nil, zero value otherwise. 13498 func (p *PackageVersion) GetID() int64 { 13499 if p == nil || p.ID == nil { 13500 return 0 13501 } 13502 return *p.ID 13503 } 13504 13505 // GetInstallationCommand returns the InstallationCommand field if it's non-nil, zero value otherwise. 13506 func (p *PackageVersion) GetInstallationCommand() string { 13507 if p == nil || p.InstallationCommand == nil { 13508 return "" 13509 } 13510 return *p.InstallationCommand 13511 } 13512 13513 // GetManifest returns the Manifest field if it's non-nil, zero value otherwise. 13514 func (p *PackageVersion) GetManifest() string { 13515 if p == nil || p.Manifest == nil { 13516 return "" 13517 } 13518 return *p.Manifest 13519 } 13520 13521 // GetMetadata returns the Metadata field. 13522 func (p *PackageVersion) GetMetadata() *PackageMetadata { 13523 if p == nil { 13524 return nil 13525 } 13526 return p.Metadata 13527 } 13528 13529 // GetName returns the Name field if it's non-nil, zero value otherwise. 13530 func (p *PackageVersion) GetName() string { 13531 if p == nil || p.Name == nil { 13532 return "" 13533 } 13534 return *p.Name 13535 } 13536 13537 // GetPackageHTMLURL returns the PackageHTMLURL field if it's non-nil, zero value otherwise. 13538 func (p *PackageVersion) GetPackageHTMLURL() string { 13539 if p == nil || p.PackageHTMLURL == nil { 13540 return "" 13541 } 13542 return *p.PackageHTMLURL 13543 } 13544 13545 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 13546 func (p *PackageVersion) GetPrerelease() bool { 13547 if p == nil || p.Prerelease == nil { 13548 return false 13549 } 13550 return *p.Prerelease 13551 } 13552 13553 // GetRelease returns the Release field. 13554 func (p *PackageVersion) GetRelease() *PackageRelease { 13555 if p == nil { 13556 return nil 13557 } 13558 return p.Release 13559 } 13560 13561 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 13562 func (p *PackageVersion) GetSummary() string { 13563 if p == nil || p.Summary == nil { 13564 return "" 13565 } 13566 return *p.Summary 13567 } 13568 13569 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 13570 func (p *PackageVersion) GetTagName() string { 13571 if p == nil || p.TagName == nil { 13572 return "" 13573 } 13574 return *p.TagName 13575 } 13576 13577 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 13578 func (p *PackageVersion) GetTargetCommitish() string { 13579 if p == nil || p.TargetCommitish == nil { 13580 return "" 13581 } 13582 return *p.TargetCommitish 13583 } 13584 13585 // GetTargetOID returns the TargetOID field if it's non-nil, zero value otherwise. 13586 func (p *PackageVersion) GetTargetOID() string { 13587 if p == nil || p.TargetOID == nil { 13588 return "" 13589 } 13590 return *p.TargetOID 13591 } 13592 13593 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13594 func (p *PackageVersion) GetUpdatedAt() Timestamp { 13595 if p == nil || p.UpdatedAt == nil { 13596 return Timestamp{} 13597 } 13598 return *p.UpdatedAt 13599 } 13600 13601 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13602 func (p *PackageVersion) GetURL() string { 13603 if p == nil || p.URL == nil { 13604 return "" 13605 } 13606 return *p.URL 13607 } 13608 13609 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 13610 func (p *PackageVersion) GetVersion() string { 13611 if p == nil || p.Version == nil { 13612 return "" 13613 } 13614 return *p.Version 13615 } 13616 13617 // GetAction returns the Action field if it's non-nil, zero value otherwise. 13618 func (p *Page) GetAction() string { 13619 if p == nil || p.Action == nil { 13620 return "" 13621 } 13622 return *p.Action 13623 } 13624 13625 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13626 func (p *Page) GetHTMLURL() string { 13627 if p == nil || p.HTMLURL == nil { 13628 return "" 13629 } 13630 return *p.HTMLURL 13631 } 13632 13633 // GetPageName returns the PageName field if it's non-nil, zero value otherwise. 13634 func (p *Page) GetPageName() string { 13635 if p == nil || p.PageName == nil { 13636 return "" 13637 } 13638 return *p.PageName 13639 } 13640 13641 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 13642 func (p *Page) GetSHA() string { 13643 if p == nil || p.SHA == nil { 13644 return "" 13645 } 13646 return *p.SHA 13647 } 13648 13649 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 13650 func (p *Page) GetSummary() string { 13651 if p == nil || p.Summary == nil { 13652 return "" 13653 } 13654 return *p.Summary 13655 } 13656 13657 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 13658 func (p *Page) GetTitle() string { 13659 if p == nil || p.Title == nil { 13660 return "" 13661 } 13662 return *p.Title 13663 } 13664 13665 // GetBuild returns the Build field. 13666 func (p *PageBuildEvent) GetBuild() *PagesBuild { 13667 if p == nil { 13668 return nil 13669 } 13670 return p.Build 13671 } 13672 13673 // GetID returns the ID field if it's non-nil, zero value otherwise. 13674 func (p *PageBuildEvent) GetID() int64 { 13675 if p == nil || p.ID == nil { 13676 return 0 13677 } 13678 return *p.ID 13679 } 13680 13681 // GetInstallation returns the Installation field. 13682 func (p *PageBuildEvent) GetInstallation() *Installation { 13683 if p == nil { 13684 return nil 13685 } 13686 return p.Installation 13687 } 13688 13689 // GetOrg returns the Org field. 13690 func (p *PageBuildEvent) GetOrg() *Organization { 13691 if p == nil { 13692 return nil 13693 } 13694 return p.Org 13695 } 13696 13697 // GetRepo returns the Repo field. 13698 func (p *PageBuildEvent) GetRepo() *Repository { 13699 if p == nil { 13700 return nil 13701 } 13702 return p.Repo 13703 } 13704 13705 // GetSender returns the Sender field. 13706 func (p *PageBuildEvent) GetSender() *User { 13707 if p == nil { 13708 return nil 13709 } 13710 return p.Sender 13711 } 13712 13713 // GetBuildType returns the BuildType field if it's non-nil, zero value otherwise. 13714 func (p *Pages) GetBuildType() string { 13715 if p == nil || p.BuildType == nil { 13716 return "" 13717 } 13718 return *p.BuildType 13719 } 13720 13721 // GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. 13722 func (p *Pages) GetCNAME() string { 13723 if p == nil || p.CNAME == nil { 13724 return "" 13725 } 13726 return *p.CNAME 13727 } 13728 13729 // GetCustom404 returns the Custom404 field if it's non-nil, zero value otherwise. 13730 func (p *Pages) GetCustom404() bool { 13731 if p == nil || p.Custom404 == nil { 13732 return false 13733 } 13734 return *p.Custom404 13735 } 13736 13737 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 13738 func (p *Pages) GetHTMLURL() string { 13739 if p == nil || p.HTMLURL == nil { 13740 return "" 13741 } 13742 return *p.HTMLURL 13743 } 13744 13745 // GetHTTPSCertificate returns the HTTPSCertificate field. 13746 func (p *Pages) GetHTTPSCertificate() *PagesHTTPSCertificate { 13747 if p == nil { 13748 return nil 13749 } 13750 return p.HTTPSCertificate 13751 } 13752 13753 // GetHTTPSEnforced returns the HTTPSEnforced field if it's non-nil, zero value otherwise. 13754 func (p *Pages) GetHTTPSEnforced() bool { 13755 if p == nil || p.HTTPSEnforced == nil { 13756 return false 13757 } 13758 return *p.HTTPSEnforced 13759 } 13760 13761 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 13762 func (p *Pages) GetPublic() bool { 13763 if p == nil || p.Public == nil { 13764 return false 13765 } 13766 return *p.Public 13767 } 13768 13769 // GetSource returns the Source field. 13770 func (p *Pages) GetSource() *PagesSource { 13771 if p == nil { 13772 return nil 13773 } 13774 return p.Source 13775 } 13776 13777 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 13778 func (p *Pages) GetStatus() string { 13779 if p == nil || p.Status == nil { 13780 return "" 13781 } 13782 return *p.Status 13783 } 13784 13785 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13786 func (p *Pages) GetURL() string { 13787 if p == nil || p.URL == nil { 13788 return "" 13789 } 13790 return *p.URL 13791 } 13792 13793 // GetCommit returns the Commit field if it's non-nil, zero value otherwise. 13794 func (p *PagesBuild) GetCommit() string { 13795 if p == nil || p.Commit == nil { 13796 return "" 13797 } 13798 return *p.Commit 13799 } 13800 13801 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 13802 func (p *PagesBuild) GetCreatedAt() Timestamp { 13803 if p == nil || p.CreatedAt == nil { 13804 return Timestamp{} 13805 } 13806 return *p.CreatedAt 13807 } 13808 13809 // GetDuration returns the Duration field if it's non-nil, zero value otherwise. 13810 func (p *PagesBuild) GetDuration() int { 13811 if p == nil || p.Duration == nil { 13812 return 0 13813 } 13814 return *p.Duration 13815 } 13816 13817 // GetError returns the Error field. 13818 func (p *PagesBuild) GetError() *PagesError { 13819 if p == nil { 13820 return nil 13821 } 13822 return p.Error 13823 } 13824 13825 // GetPusher returns the Pusher field. 13826 func (p *PagesBuild) GetPusher() *User { 13827 if p == nil { 13828 return nil 13829 } 13830 return p.Pusher 13831 } 13832 13833 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 13834 func (p *PagesBuild) GetStatus() string { 13835 if p == nil || p.Status == nil { 13836 return "" 13837 } 13838 return *p.Status 13839 } 13840 13841 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 13842 func (p *PagesBuild) GetUpdatedAt() Timestamp { 13843 if p == nil || p.UpdatedAt == nil { 13844 return Timestamp{} 13845 } 13846 return *p.UpdatedAt 13847 } 13848 13849 // GetURL returns the URL field if it's non-nil, zero value otherwise. 13850 func (p *PagesBuild) GetURL() string { 13851 if p == nil || p.URL == nil { 13852 return "" 13853 } 13854 return *p.URL 13855 } 13856 13857 // GetCAAError returns the CAAError field if it's non-nil, zero value otherwise. 13858 func (p *PagesDomain) GetCAAError() string { 13859 if p == nil || p.CAAError == nil { 13860 return "" 13861 } 13862 return *p.CAAError 13863 } 13864 13865 // GetDNSResolves returns the DNSResolves field if it's non-nil, zero value otherwise. 13866 func (p *PagesDomain) GetDNSResolves() bool { 13867 if p == nil || p.DNSResolves == nil { 13868 return false 13869 } 13870 return *p.DNSResolves 13871 } 13872 13873 // GetEnforcesHTTPS returns the EnforcesHTTPS field if it's non-nil, zero value otherwise. 13874 func (p *PagesDomain) GetEnforcesHTTPS() bool { 13875 if p == nil || p.EnforcesHTTPS == nil { 13876 return false 13877 } 13878 return *p.EnforcesHTTPS 13879 } 13880 13881 // GetHasCNAMERecord returns the HasCNAMERecord field if it's non-nil, zero value otherwise. 13882 func (p *PagesDomain) GetHasCNAMERecord() bool { 13883 if p == nil || p.HasCNAMERecord == nil { 13884 return false 13885 } 13886 return *p.HasCNAMERecord 13887 } 13888 13889 // GetHasMXRecordsPresent returns the HasMXRecordsPresent field if it's non-nil, zero value otherwise. 13890 func (p *PagesDomain) GetHasMXRecordsPresent() bool { 13891 if p == nil || p.HasMXRecordsPresent == nil { 13892 return false 13893 } 13894 return *p.HasMXRecordsPresent 13895 } 13896 13897 // GetHost returns the Host field if it's non-nil, zero value otherwise. 13898 func (p *PagesDomain) GetHost() string { 13899 if p == nil || p.Host == nil { 13900 return "" 13901 } 13902 return *p.Host 13903 } 13904 13905 // GetHTTPSError returns the HTTPSError field if it's non-nil, zero value otherwise. 13906 func (p *PagesDomain) GetHTTPSError() string { 13907 if p == nil || p.HTTPSError == nil { 13908 return "" 13909 } 13910 return *p.HTTPSError 13911 } 13912 13913 // GetIsApexDomain returns the IsApexDomain field if it's non-nil, zero value otherwise. 13914 func (p *PagesDomain) GetIsApexDomain() bool { 13915 if p == nil || p.IsApexDomain == nil { 13916 return false 13917 } 13918 return *p.IsApexDomain 13919 } 13920 13921 // GetIsARecord returns the IsARecord field if it's non-nil, zero value otherwise. 13922 func (p *PagesDomain) GetIsARecord() bool { 13923 if p == nil || p.IsARecord == nil { 13924 return false 13925 } 13926 return *p.IsARecord 13927 } 13928 13929 // GetIsCloudflareIP returns the IsCloudflareIP field if it's non-nil, zero value otherwise. 13930 func (p *PagesDomain) GetIsCloudflareIP() bool { 13931 if p == nil || p.IsCloudflareIP == nil { 13932 return false 13933 } 13934 return *p.IsCloudflareIP 13935 } 13936 13937 // GetIsCNAMEToFastly returns the IsCNAMEToFastly field if it's non-nil, zero value otherwise. 13938 func (p *PagesDomain) GetIsCNAMEToFastly() bool { 13939 if p == nil || p.IsCNAMEToFastly == nil { 13940 return false 13941 } 13942 return *p.IsCNAMEToFastly 13943 } 13944 13945 // GetIsCNAMEToGithubUserDomain returns the IsCNAMEToGithubUserDomain field if it's non-nil, zero value otherwise. 13946 func (p *PagesDomain) GetIsCNAMEToGithubUserDomain() bool { 13947 if p == nil || p.IsCNAMEToGithubUserDomain == nil { 13948 return false 13949 } 13950 return *p.IsCNAMEToGithubUserDomain 13951 } 13952 13953 // GetIsCNAMEToPagesDotGithubDotCom returns the IsCNAMEToPagesDotGithubDotCom field if it's non-nil, zero value otherwise. 13954 func (p *PagesDomain) GetIsCNAMEToPagesDotGithubDotCom() bool { 13955 if p == nil || p.IsCNAMEToPagesDotGithubDotCom == nil { 13956 return false 13957 } 13958 return *p.IsCNAMEToPagesDotGithubDotCom 13959 } 13960 13961 // GetIsFastlyIP returns the IsFastlyIP field if it's non-nil, zero value otherwise. 13962 func (p *PagesDomain) GetIsFastlyIP() bool { 13963 if p == nil || p.IsFastlyIP == nil { 13964 return false 13965 } 13966 return *p.IsFastlyIP 13967 } 13968 13969 // GetIsHTTPSEligible returns the IsHTTPSEligible field if it's non-nil, zero value otherwise. 13970 func (p *PagesDomain) GetIsHTTPSEligible() bool { 13971 if p == nil || p.IsHTTPSEligible == nil { 13972 return false 13973 } 13974 return *p.IsHTTPSEligible 13975 } 13976 13977 // GetIsNonGithubPagesIPPresent returns the IsNonGithubPagesIPPresent field if it's non-nil, zero value otherwise. 13978 func (p *PagesDomain) GetIsNonGithubPagesIPPresent() bool { 13979 if p == nil || p.IsNonGithubPagesIPPresent == nil { 13980 return false 13981 } 13982 return *p.IsNonGithubPagesIPPresent 13983 } 13984 13985 // GetIsOldIPAddress returns the IsOldIPAddress field if it's non-nil, zero value otherwise. 13986 func (p *PagesDomain) GetIsOldIPAddress() bool { 13987 if p == nil || p.IsOldIPAddress == nil { 13988 return false 13989 } 13990 return *p.IsOldIPAddress 13991 } 13992 13993 // GetIsPagesDomain returns the IsPagesDomain field if it's non-nil, zero value otherwise. 13994 func (p *PagesDomain) GetIsPagesDomain() bool { 13995 if p == nil || p.IsPagesDomain == nil { 13996 return false 13997 } 13998 return *p.IsPagesDomain 13999 } 14000 14001 // GetIsPointedToGithubPagesIP returns the IsPointedToGithubPagesIP field if it's non-nil, zero value otherwise. 14002 func (p *PagesDomain) GetIsPointedToGithubPagesIP() bool { 14003 if p == nil || p.IsPointedToGithubPagesIP == nil { 14004 return false 14005 } 14006 return *p.IsPointedToGithubPagesIP 14007 } 14008 14009 // GetIsProxied returns the IsProxied field if it's non-nil, zero value otherwise. 14010 func (p *PagesDomain) GetIsProxied() bool { 14011 if p == nil || p.IsProxied == nil { 14012 return false 14013 } 14014 return *p.IsProxied 14015 } 14016 14017 // GetIsServedByPages returns the IsServedByPages field if it's non-nil, zero value otherwise. 14018 func (p *PagesDomain) GetIsServedByPages() bool { 14019 if p == nil || p.IsServedByPages == nil { 14020 return false 14021 } 14022 return *p.IsServedByPages 14023 } 14024 14025 // GetIsValid returns the IsValid field if it's non-nil, zero value otherwise. 14026 func (p *PagesDomain) GetIsValid() bool { 14027 if p == nil || p.IsValid == nil { 14028 return false 14029 } 14030 return *p.IsValid 14031 } 14032 14033 // GetIsValidDomain returns the IsValidDomain field if it's non-nil, zero value otherwise. 14034 func (p *PagesDomain) GetIsValidDomain() bool { 14035 if p == nil || p.IsValidDomain == nil { 14036 return false 14037 } 14038 return *p.IsValidDomain 14039 } 14040 14041 // GetNameservers returns the Nameservers field if it's non-nil, zero value otherwise. 14042 func (p *PagesDomain) GetNameservers() string { 14043 if p == nil || p.Nameservers == nil { 14044 return "" 14045 } 14046 return *p.Nameservers 14047 } 14048 14049 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 14050 func (p *PagesDomain) GetReason() string { 14051 if p == nil || p.Reason == nil { 14052 return "" 14053 } 14054 return *p.Reason 14055 } 14056 14057 // GetRespondsToHTTPS returns the RespondsToHTTPS field if it's non-nil, zero value otherwise. 14058 func (p *PagesDomain) GetRespondsToHTTPS() bool { 14059 if p == nil || p.RespondsToHTTPS == nil { 14060 return false 14061 } 14062 return *p.RespondsToHTTPS 14063 } 14064 14065 // GetShouldBeARecord returns the ShouldBeARecord field if it's non-nil, zero value otherwise. 14066 func (p *PagesDomain) GetShouldBeARecord() bool { 14067 if p == nil || p.ShouldBeARecord == nil { 14068 return false 14069 } 14070 return *p.ShouldBeARecord 14071 } 14072 14073 // GetURI returns the URI field if it's non-nil, zero value otherwise. 14074 func (p *PagesDomain) GetURI() string { 14075 if p == nil || p.URI == nil { 14076 return "" 14077 } 14078 return *p.URI 14079 } 14080 14081 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 14082 func (p *PagesError) GetMessage() string { 14083 if p == nil || p.Message == nil { 14084 return "" 14085 } 14086 return *p.Message 14087 } 14088 14089 // GetAltDomain returns the AltDomain field. 14090 func (p *PagesHealthCheckResponse) GetAltDomain() *PagesDomain { 14091 if p == nil { 14092 return nil 14093 } 14094 return p.AltDomain 14095 } 14096 14097 // GetDomain returns the Domain field. 14098 func (p *PagesHealthCheckResponse) GetDomain() *PagesDomain { 14099 if p == nil { 14100 return nil 14101 } 14102 return p.Domain 14103 } 14104 14105 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 14106 func (p *PagesHTTPSCertificate) GetDescription() string { 14107 if p == nil || p.Description == nil { 14108 return "" 14109 } 14110 return *p.Description 14111 } 14112 14113 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 14114 func (p *PagesHTTPSCertificate) GetExpiresAt() string { 14115 if p == nil || p.ExpiresAt == nil { 14116 return "" 14117 } 14118 return *p.ExpiresAt 14119 } 14120 14121 // GetState returns the State field if it's non-nil, zero value otherwise. 14122 func (p *PagesHTTPSCertificate) GetState() string { 14123 if p == nil || p.State == nil { 14124 return "" 14125 } 14126 return *p.State 14127 } 14128 14129 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 14130 func (p *PagesSource) GetBranch() string { 14131 if p == nil || p.Branch == nil { 14132 return "" 14133 } 14134 return *p.Branch 14135 } 14136 14137 // GetPath returns the Path field if it's non-nil, zero value otherwise. 14138 func (p *PagesSource) GetPath() string { 14139 if p == nil || p.Path == nil { 14140 return "" 14141 } 14142 return *p.Path 14143 } 14144 14145 // GetTotalPages returns the TotalPages field if it's non-nil, zero value otherwise. 14146 func (p *PageStats) GetTotalPages() int { 14147 if p == nil || p.TotalPages == nil { 14148 return 0 14149 } 14150 return *p.TotalPages 14151 } 14152 14153 // GetBuildType returns the BuildType field if it's non-nil, zero value otherwise. 14154 func (p *PagesUpdate) GetBuildType() string { 14155 if p == nil || p.BuildType == nil { 14156 return "" 14157 } 14158 return *p.BuildType 14159 } 14160 14161 // GetCNAME returns the CNAME field if it's non-nil, zero value otherwise. 14162 func (p *PagesUpdate) GetCNAME() string { 14163 if p == nil || p.CNAME == nil { 14164 return "" 14165 } 14166 return *p.CNAME 14167 } 14168 14169 // GetHTTPSEnforced returns the HTTPSEnforced field if it's non-nil, zero value otherwise. 14170 func (p *PagesUpdate) GetHTTPSEnforced() bool { 14171 if p == nil || p.HTTPSEnforced == nil { 14172 return false 14173 } 14174 return *p.HTTPSEnforced 14175 } 14176 14177 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 14178 func (p *PagesUpdate) GetPublic() bool { 14179 if p == nil || p.Public == nil { 14180 return false 14181 } 14182 return *p.Public 14183 } 14184 14185 // GetSource returns the Source field. 14186 func (p *PagesUpdate) GetSource() *PagesSource { 14187 if p == nil { 14188 return nil 14189 } 14190 return p.Source 14191 } 14192 14193 // GetOrg returns the Org map if it's non-nil, an empty map otherwise. 14194 func (p *PersonalAccessTokenPermissions) GetOrg() map[string]string { 14195 if p == nil || p.Org == nil { 14196 return map[string]string{} 14197 } 14198 return p.Org 14199 } 14200 14201 // GetOther returns the Other map if it's non-nil, an empty map otherwise. 14202 func (p *PersonalAccessTokenPermissions) GetOther() map[string]string { 14203 if p == nil || p.Other == nil { 14204 return map[string]string{} 14205 } 14206 return p.Other 14207 } 14208 14209 // GetRepo returns the Repo map if it's non-nil, an empty map otherwise. 14210 func (p *PersonalAccessTokenPermissions) GetRepo() map[string]string { 14211 if p == nil || p.Repo == nil { 14212 return map[string]string{} 14213 } 14214 return p.Repo 14215 } 14216 14217 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14218 func (p *PersonalAccessTokenRequest) GetCreatedAt() Timestamp { 14219 if p == nil || p.CreatedAt == nil { 14220 return Timestamp{} 14221 } 14222 return *p.CreatedAt 14223 } 14224 14225 // GetID returns the ID field if it's non-nil, zero value otherwise. 14226 func (p *PersonalAccessTokenRequest) GetID() int64 { 14227 if p == nil || p.ID == nil { 14228 return 0 14229 } 14230 return *p.ID 14231 } 14232 14233 // GetOrg returns the Org field. 14234 func (p *PersonalAccessTokenRequest) GetOrg() *Organization { 14235 if p == nil { 14236 return nil 14237 } 14238 return p.Org 14239 } 14240 14241 // GetOwner returns the Owner field. 14242 func (p *PersonalAccessTokenRequest) GetOwner() *User { 14243 if p == nil { 14244 return nil 14245 } 14246 return p.Owner 14247 } 14248 14249 // GetPermissionsAdded returns the PermissionsAdded field. 14250 func (p *PersonalAccessTokenRequest) GetPermissionsAdded() *PersonalAccessTokenPermissions { 14251 if p == nil { 14252 return nil 14253 } 14254 return p.PermissionsAdded 14255 } 14256 14257 // GetPermissionsResult returns the PermissionsResult field. 14258 func (p *PersonalAccessTokenRequest) GetPermissionsResult() *PersonalAccessTokenPermissions { 14259 if p == nil { 14260 return nil 14261 } 14262 return p.PermissionsResult 14263 } 14264 14265 // GetPermissionsUpgraded returns the PermissionsUpgraded field. 14266 func (p *PersonalAccessTokenRequest) GetPermissionsUpgraded() *PersonalAccessTokenPermissions { 14267 if p == nil { 14268 return nil 14269 } 14270 return p.PermissionsUpgraded 14271 } 14272 14273 // GetRepositoryCount returns the RepositoryCount field if it's non-nil, zero value otherwise. 14274 func (p *PersonalAccessTokenRequest) GetRepositoryCount() int64 { 14275 if p == nil || p.RepositoryCount == nil { 14276 return 0 14277 } 14278 return *p.RepositoryCount 14279 } 14280 14281 // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. 14282 func (p *PersonalAccessTokenRequest) GetRepositorySelection() string { 14283 if p == nil || p.RepositorySelection == nil { 14284 return "" 14285 } 14286 return *p.RepositorySelection 14287 } 14288 14289 // GetTokenExpired returns the TokenExpired field if it's non-nil, zero value otherwise. 14290 func (p *PersonalAccessTokenRequest) GetTokenExpired() bool { 14291 if p == nil || p.TokenExpired == nil { 14292 return false 14293 } 14294 return *p.TokenExpired 14295 } 14296 14297 // GetTokenExpiresAt returns the TokenExpiresAt field if it's non-nil, zero value otherwise. 14298 func (p *PersonalAccessTokenRequest) GetTokenExpiresAt() Timestamp { 14299 if p == nil || p.TokenExpiresAt == nil { 14300 return Timestamp{} 14301 } 14302 return *p.TokenExpiresAt 14303 } 14304 14305 // GetTokenLastUsedAt returns the TokenLastUsedAt field if it's non-nil, zero value otherwise. 14306 func (p *PersonalAccessTokenRequest) GetTokenLastUsedAt() Timestamp { 14307 if p == nil || p.TokenLastUsedAt == nil { 14308 return Timestamp{} 14309 } 14310 return *p.TokenLastUsedAt 14311 } 14312 14313 // GetAction returns the Action field if it's non-nil, zero value otherwise. 14314 func (p *PersonalAccessTokenRequestEvent) GetAction() string { 14315 if p == nil || p.Action == nil { 14316 return "" 14317 } 14318 return *p.Action 14319 } 14320 14321 // GetInstallation returns the Installation field. 14322 func (p *PersonalAccessTokenRequestEvent) GetInstallation() *Installation { 14323 if p == nil { 14324 return nil 14325 } 14326 return p.Installation 14327 } 14328 14329 // GetOrg returns the Org field. 14330 func (p *PersonalAccessTokenRequestEvent) GetOrg() *Organization { 14331 if p == nil { 14332 return nil 14333 } 14334 return p.Org 14335 } 14336 14337 // GetPersonalAccessTokenRequest returns the PersonalAccessTokenRequest field. 14338 func (p *PersonalAccessTokenRequestEvent) GetPersonalAccessTokenRequest() *PersonalAccessTokenRequest { 14339 if p == nil { 14340 return nil 14341 } 14342 return p.PersonalAccessTokenRequest 14343 } 14344 14345 // GetSender returns the Sender field. 14346 func (p *PersonalAccessTokenRequestEvent) GetSender() *User { 14347 if p == nil { 14348 return nil 14349 } 14350 return p.Sender 14351 } 14352 14353 // GetHook returns the Hook field. 14354 func (p *PingEvent) GetHook() *Hook { 14355 if p == nil { 14356 return nil 14357 } 14358 return p.Hook 14359 } 14360 14361 // GetHookID returns the HookID field if it's non-nil, zero value otherwise. 14362 func (p *PingEvent) GetHookID() int64 { 14363 if p == nil || p.HookID == nil { 14364 return 0 14365 } 14366 return *p.HookID 14367 } 14368 14369 // GetInstallation returns the Installation field. 14370 func (p *PingEvent) GetInstallation() *Installation { 14371 if p == nil { 14372 return nil 14373 } 14374 return p.Installation 14375 } 14376 14377 // GetOrg returns the Org field. 14378 func (p *PingEvent) GetOrg() *Organization { 14379 if p == nil { 14380 return nil 14381 } 14382 return p.Org 14383 } 14384 14385 // GetRepo returns the Repo field. 14386 func (p *PingEvent) GetRepo() *Repository { 14387 if p == nil { 14388 return nil 14389 } 14390 return p.Repo 14391 } 14392 14393 // GetSender returns the Sender field. 14394 func (p *PingEvent) GetSender() *User { 14395 if p == nil { 14396 return nil 14397 } 14398 return p.Sender 14399 } 14400 14401 // GetZen returns the Zen field if it's non-nil, zero value otherwise. 14402 func (p *PingEvent) GetZen() string { 14403 if p == nil || p.Zen == nil { 14404 return "" 14405 } 14406 return *p.Zen 14407 } 14408 14409 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 14410 func (p *Plan) GetCollaborators() int { 14411 if p == nil || p.Collaborators == nil { 14412 return 0 14413 } 14414 return *p.Collaborators 14415 } 14416 14417 // GetFilledSeats returns the FilledSeats field if it's non-nil, zero value otherwise. 14418 func (p *Plan) GetFilledSeats() int { 14419 if p == nil || p.FilledSeats == nil { 14420 return 0 14421 } 14422 return *p.FilledSeats 14423 } 14424 14425 // GetName returns the Name field if it's non-nil, zero value otherwise. 14426 func (p *Plan) GetName() string { 14427 if p == nil || p.Name == nil { 14428 return "" 14429 } 14430 return *p.Name 14431 } 14432 14433 // GetPrivateRepos returns the PrivateRepos field if it's non-nil, zero value otherwise. 14434 func (p *Plan) GetPrivateRepos() int64 { 14435 if p == nil || p.PrivateRepos == nil { 14436 return 0 14437 } 14438 return *p.PrivateRepos 14439 } 14440 14441 // GetSeats returns the Seats field if it's non-nil, zero value otherwise. 14442 func (p *Plan) GetSeats() int { 14443 if p == nil || p.Seats == nil { 14444 return 0 14445 } 14446 return *p.Seats 14447 } 14448 14449 // GetSpace returns the Space field if it's non-nil, zero value otherwise. 14450 func (p *Plan) GetSpace() int { 14451 if p == nil || p.Space == nil { 14452 return 0 14453 } 14454 return *p.Space 14455 } 14456 14457 // GetCode returns the Code field if it's non-nil, zero value otherwise. 14458 func (p *PolicyOverrideReason) GetCode() string { 14459 if p == nil || p.Code == nil { 14460 return "" 14461 } 14462 return *p.Code 14463 } 14464 14465 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 14466 func (p *PolicyOverrideReason) GetMessage() string { 14467 if p == nil || p.Message == nil { 14468 return "" 14469 } 14470 return *p.Message 14471 } 14472 14473 // GetConfigURL returns the ConfigURL field if it's non-nil, zero value otherwise. 14474 func (p *PreReceiveHook) GetConfigURL() string { 14475 if p == nil || p.ConfigURL == nil { 14476 return "" 14477 } 14478 return *p.ConfigURL 14479 } 14480 14481 // GetEnforcement returns the Enforcement field if it's non-nil, zero value otherwise. 14482 func (p *PreReceiveHook) GetEnforcement() string { 14483 if p == nil || p.Enforcement == nil { 14484 return "" 14485 } 14486 return *p.Enforcement 14487 } 14488 14489 // GetID returns the ID field if it's non-nil, zero value otherwise. 14490 func (p *PreReceiveHook) GetID() int64 { 14491 if p == nil || p.ID == nil { 14492 return 0 14493 } 14494 return *p.ID 14495 } 14496 14497 // GetName returns the Name field if it's non-nil, zero value otherwise. 14498 func (p *PreReceiveHook) GetName() string { 14499 if p == nil || p.Name == nil { 14500 return "" 14501 } 14502 return *p.Name 14503 } 14504 14505 // GetHRef returns the HRef field if it's non-nil, zero value otherwise. 14506 func (p *PRLink) GetHRef() string { 14507 if p == nil || p.HRef == nil { 14508 return "" 14509 } 14510 return *p.HRef 14511 } 14512 14513 // GetComments returns the Comments field. 14514 func (p *PRLinks) GetComments() *PRLink { 14515 if p == nil { 14516 return nil 14517 } 14518 return p.Comments 14519 } 14520 14521 // GetCommits returns the Commits field. 14522 func (p *PRLinks) GetCommits() *PRLink { 14523 if p == nil { 14524 return nil 14525 } 14526 return p.Commits 14527 } 14528 14529 // GetHTML returns the HTML field. 14530 func (p *PRLinks) GetHTML() *PRLink { 14531 if p == nil { 14532 return nil 14533 } 14534 return p.HTML 14535 } 14536 14537 // GetIssue returns the Issue field. 14538 func (p *PRLinks) GetIssue() *PRLink { 14539 if p == nil { 14540 return nil 14541 } 14542 return p.Issue 14543 } 14544 14545 // GetReviewComment returns the ReviewComment field. 14546 func (p *PRLinks) GetReviewComment() *PRLink { 14547 if p == nil { 14548 return nil 14549 } 14550 return p.ReviewComment 14551 } 14552 14553 // GetReviewComments returns the ReviewComments field. 14554 func (p *PRLinks) GetReviewComments() *PRLink { 14555 if p == nil { 14556 return nil 14557 } 14558 return p.ReviewComments 14559 } 14560 14561 // GetSelf returns the Self field. 14562 func (p *PRLinks) GetSelf() *PRLink { 14563 if p == nil { 14564 return nil 14565 } 14566 return p.Self 14567 } 14568 14569 // GetStatuses returns the Statuses field. 14570 func (p *PRLinks) GetStatuses() *PRLink { 14571 if p == nil { 14572 return nil 14573 } 14574 return p.Statuses 14575 } 14576 14577 // GetBody returns the Body field if it's non-nil, zero value otherwise. 14578 func (p *Project) GetBody() string { 14579 if p == nil || p.Body == nil { 14580 return "" 14581 } 14582 return *p.Body 14583 } 14584 14585 // GetColumnsURL returns the ColumnsURL field if it's non-nil, zero value otherwise. 14586 func (p *Project) GetColumnsURL() string { 14587 if p == nil || p.ColumnsURL == nil { 14588 return "" 14589 } 14590 return *p.ColumnsURL 14591 } 14592 14593 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14594 func (p *Project) GetCreatedAt() Timestamp { 14595 if p == nil || p.CreatedAt == nil { 14596 return Timestamp{} 14597 } 14598 return *p.CreatedAt 14599 } 14600 14601 // GetCreator returns the Creator field. 14602 func (p *Project) GetCreator() *User { 14603 if p == nil { 14604 return nil 14605 } 14606 return p.Creator 14607 } 14608 14609 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 14610 func (p *Project) GetHTMLURL() string { 14611 if p == nil || p.HTMLURL == nil { 14612 return "" 14613 } 14614 return *p.HTMLURL 14615 } 14616 14617 // GetID returns the ID field if it's non-nil, zero value otherwise. 14618 func (p *Project) GetID() int64 { 14619 if p == nil || p.ID == nil { 14620 return 0 14621 } 14622 return *p.ID 14623 } 14624 14625 // GetName returns the Name field if it's non-nil, zero value otherwise. 14626 func (p *Project) GetName() string { 14627 if p == nil || p.Name == nil { 14628 return "" 14629 } 14630 return *p.Name 14631 } 14632 14633 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14634 func (p *Project) GetNodeID() string { 14635 if p == nil || p.NodeID == nil { 14636 return "" 14637 } 14638 return *p.NodeID 14639 } 14640 14641 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 14642 func (p *Project) GetNumber() int { 14643 if p == nil || p.Number == nil { 14644 return 0 14645 } 14646 return *p.Number 14647 } 14648 14649 // GetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise. 14650 func (p *Project) GetOrganizationPermission() string { 14651 if p == nil || p.OrganizationPermission == nil { 14652 return "" 14653 } 14654 return *p.OrganizationPermission 14655 } 14656 14657 // GetOwnerURL returns the OwnerURL field if it's non-nil, zero value otherwise. 14658 func (p *Project) GetOwnerURL() string { 14659 if p == nil || p.OwnerURL == nil { 14660 return "" 14661 } 14662 return *p.OwnerURL 14663 } 14664 14665 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 14666 func (p *Project) GetPrivate() bool { 14667 if p == nil || p.Private == nil { 14668 return false 14669 } 14670 return *p.Private 14671 } 14672 14673 // GetState returns the State field if it's non-nil, zero value otherwise. 14674 func (p *Project) GetState() string { 14675 if p == nil || p.State == nil { 14676 return "" 14677 } 14678 return *p.State 14679 } 14680 14681 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14682 func (p *Project) GetUpdatedAt() Timestamp { 14683 if p == nil || p.UpdatedAt == nil { 14684 return Timestamp{} 14685 } 14686 return *p.UpdatedAt 14687 } 14688 14689 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14690 func (p *Project) GetURL() string { 14691 if p == nil || p.URL == nil { 14692 return "" 14693 } 14694 return *p.URL 14695 } 14696 14697 // GetFrom returns the From field if it's non-nil, zero value otherwise. 14698 func (p *ProjectBody) GetFrom() string { 14699 if p == nil || p.From == nil { 14700 return "" 14701 } 14702 return *p.From 14703 } 14704 14705 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 14706 func (p *ProjectCard) GetArchived() bool { 14707 if p == nil || p.Archived == nil { 14708 return false 14709 } 14710 return *p.Archived 14711 } 14712 14713 // GetColumnID returns the ColumnID field if it's non-nil, zero value otherwise. 14714 func (p *ProjectCard) GetColumnID() int64 { 14715 if p == nil || p.ColumnID == nil { 14716 return 0 14717 } 14718 return *p.ColumnID 14719 } 14720 14721 // GetColumnName returns the ColumnName field if it's non-nil, zero value otherwise. 14722 func (p *ProjectCard) GetColumnName() string { 14723 if p == nil || p.ColumnName == nil { 14724 return "" 14725 } 14726 return *p.ColumnName 14727 } 14728 14729 // GetColumnURL returns the ColumnURL field if it's non-nil, zero value otherwise. 14730 func (p *ProjectCard) GetColumnURL() string { 14731 if p == nil || p.ColumnURL == nil { 14732 return "" 14733 } 14734 return *p.ColumnURL 14735 } 14736 14737 // GetContentURL returns the ContentURL field if it's non-nil, zero value otherwise. 14738 func (p *ProjectCard) GetContentURL() string { 14739 if p == nil || p.ContentURL == nil { 14740 return "" 14741 } 14742 return *p.ContentURL 14743 } 14744 14745 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14746 func (p *ProjectCard) GetCreatedAt() Timestamp { 14747 if p == nil || p.CreatedAt == nil { 14748 return Timestamp{} 14749 } 14750 return *p.CreatedAt 14751 } 14752 14753 // GetCreator returns the Creator field. 14754 func (p *ProjectCard) GetCreator() *User { 14755 if p == nil { 14756 return nil 14757 } 14758 return p.Creator 14759 } 14760 14761 // GetID returns the ID field if it's non-nil, zero value otherwise. 14762 func (p *ProjectCard) GetID() int64 { 14763 if p == nil || p.ID == nil { 14764 return 0 14765 } 14766 return *p.ID 14767 } 14768 14769 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14770 func (p *ProjectCard) GetNodeID() string { 14771 if p == nil || p.NodeID == nil { 14772 return "" 14773 } 14774 return *p.NodeID 14775 } 14776 14777 // GetNote returns the Note field if it's non-nil, zero value otherwise. 14778 func (p *ProjectCard) GetNote() string { 14779 if p == nil || p.Note == nil { 14780 return "" 14781 } 14782 return *p.Note 14783 } 14784 14785 // GetPreviousColumnName returns the PreviousColumnName field if it's non-nil, zero value otherwise. 14786 func (p *ProjectCard) GetPreviousColumnName() string { 14787 if p == nil || p.PreviousColumnName == nil { 14788 return "" 14789 } 14790 return *p.PreviousColumnName 14791 } 14792 14793 // GetProjectID returns the ProjectID field if it's non-nil, zero value otherwise. 14794 func (p *ProjectCard) GetProjectID() int64 { 14795 if p == nil || p.ProjectID == nil { 14796 return 0 14797 } 14798 return *p.ProjectID 14799 } 14800 14801 // GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. 14802 func (p *ProjectCard) GetProjectURL() string { 14803 if p == nil || p.ProjectURL == nil { 14804 return "" 14805 } 14806 return *p.ProjectURL 14807 } 14808 14809 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14810 func (p *ProjectCard) GetUpdatedAt() Timestamp { 14811 if p == nil || p.UpdatedAt == nil { 14812 return Timestamp{} 14813 } 14814 return *p.UpdatedAt 14815 } 14816 14817 // GetURL returns the URL field if it's non-nil, zero value otherwise. 14818 func (p *ProjectCard) GetURL() string { 14819 if p == nil || p.URL == nil { 14820 return "" 14821 } 14822 return *p.URL 14823 } 14824 14825 // GetNote returns the Note field. 14826 func (p *ProjectCardChange) GetNote() *ProjectCardNote { 14827 if p == nil { 14828 return nil 14829 } 14830 return p.Note 14831 } 14832 14833 // GetAction returns the Action field if it's non-nil, zero value otherwise. 14834 func (p *ProjectCardEvent) GetAction() string { 14835 if p == nil || p.Action == nil { 14836 return "" 14837 } 14838 return *p.Action 14839 } 14840 14841 // GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 14842 func (p *ProjectCardEvent) GetAfterID() int64 { 14843 if p == nil || p.AfterID == nil { 14844 return 0 14845 } 14846 return *p.AfterID 14847 } 14848 14849 // GetChanges returns the Changes field. 14850 func (p *ProjectCardEvent) GetChanges() *ProjectCardChange { 14851 if p == nil { 14852 return nil 14853 } 14854 return p.Changes 14855 } 14856 14857 // GetInstallation returns the Installation field. 14858 func (p *ProjectCardEvent) GetInstallation() *Installation { 14859 if p == nil { 14860 return nil 14861 } 14862 return p.Installation 14863 } 14864 14865 // GetOrg returns the Org field. 14866 func (p *ProjectCardEvent) GetOrg() *Organization { 14867 if p == nil { 14868 return nil 14869 } 14870 return p.Org 14871 } 14872 14873 // GetProjectCard returns the ProjectCard field. 14874 func (p *ProjectCardEvent) GetProjectCard() *ProjectCard { 14875 if p == nil { 14876 return nil 14877 } 14878 return p.ProjectCard 14879 } 14880 14881 // GetRepo returns the Repo field. 14882 func (p *ProjectCardEvent) GetRepo() *Repository { 14883 if p == nil { 14884 return nil 14885 } 14886 return p.Repo 14887 } 14888 14889 // GetSender returns the Sender field. 14890 func (p *ProjectCardEvent) GetSender() *User { 14891 if p == nil { 14892 return nil 14893 } 14894 return p.Sender 14895 } 14896 14897 // GetArchivedState returns the ArchivedState field if it's non-nil, zero value otherwise. 14898 func (p *ProjectCardListOptions) GetArchivedState() string { 14899 if p == nil || p.ArchivedState == nil { 14900 return "" 14901 } 14902 return *p.ArchivedState 14903 } 14904 14905 // GetFrom returns the From field if it's non-nil, zero value otherwise. 14906 func (p *ProjectCardNote) GetFrom() string { 14907 if p == nil || p.From == nil { 14908 return "" 14909 } 14910 return *p.From 14911 } 14912 14913 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 14914 func (p *ProjectCardOptions) GetArchived() bool { 14915 if p == nil || p.Archived == nil { 14916 return false 14917 } 14918 return *p.Archived 14919 } 14920 14921 // GetBody returns the Body field. 14922 func (p *ProjectChange) GetBody() *ProjectBody { 14923 if p == nil { 14924 return nil 14925 } 14926 return p.Body 14927 } 14928 14929 // GetName returns the Name field. 14930 func (p *ProjectChange) GetName() *ProjectName { 14931 if p == nil { 14932 return nil 14933 } 14934 return p.Name 14935 } 14936 14937 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 14938 func (p *ProjectCollaboratorOptions) GetPermission() string { 14939 if p == nil || p.Permission == nil { 14940 return "" 14941 } 14942 return *p.Permission 14943 } 14944 14945 // GetCardsURL returns the CardsURL field if it's non-nil, zero value otherwise. 14946 func (p *ProjectColumn) GetCardsURL() string { 14947 if p == nil || p.CardsURL == nil { 14948 return "" 14949 } 14950 return *p.CardsURL 14951 } 14952 14953 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 14954 func (p *ProjectColumn) GetCreatedAt() Timestamp { 14955 if p == nil || p.CreatedAt == nil { 14956 return Timestamp{} 14957 } 14958 return *p.CreatedAt 14959 } 14960 14961 // GetID returns the ID field if it's non-nil, zero value otherwise. 14962 func (p *ProjectColumn) GetID() int64 { 14963 if p == nil || p.ID == nil { 14964 return 0 14965 } 14966 return *p.ID 14967 } 14968 14969 // GetName returns the Name field if it's non-nil, zero value otherwise. 14970 func (p *ProjectColumn) GetName() string { 14971 if p == nil || p.Name == nil { 14972 return "" 14973 } 14974 return *p.Name 14975 } 14976 14977 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 14978 func (p *ProjectColumn) GetNodeID() string { 14979 if p == nil || p.NodeID == nil { 14980 return "" 14981 } 14982 return *p.NodeID 14983 } 14984 14985 // GetProjectURL returns the ProjectURL field if it's non-nil, zero value otherwise. 14986 func (p *ProjectColumn) GetProjectURL() string { 14987 if p == nil || p.ProjectURL == nil { 14988 return "" 14989 } 14990 return *p.ProjectURL 14991 } 14992 14993 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 14994 func (p *ProjectColumn) GetUpdatedAt() Timestamp { 14995 if p == nil || p.UpdatedAt == nil { 14996 return Timestamp{} 14997 } 14998 return *p.UpdatedAt 14999 } 15000 15001 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15002 func (p *ProjectColumn) GetURL() string { 15003 if p == nil || p.URL == nil { 15004 return "" 15005 } 15006 return *p.URL 15007 } 15008 15009 // GetName returns the Name field. 15010 func (p *ProjectColumnChange) GetName() *ProjectColumnName { 15011 if p == nil { 15012 return nil 15013 } 15014 return p.Name 15015 } 15016 15017 // GetAction returns the Action field if it's non-nil, zero value otherwise. 15018 func (p *ProjectColumnEvent) GetAction() string { 15019 if p == nil || p.Action == nil { 15020 return "" 15021 } 15022 return *p.Action 15023 } 15024 15025 // GetAfterID returns the AfterID field if it's non-nil, zero value otherwise. 15026 func (p *ProjectColumnEvent) GetAfterID() int64 { 15027 if p == nil || p.AfterID == nil { 15028 return 0 15029 } 15030 return *p.AfterID 15031 } 15032 15033 // GetChanges returns the Changes field. 15034 func (p *ProjectColumnEvent) GetChanges() *ProjectColumnChange { 15035 if p == nil { 15036 return nil 15037 } 15038 return p.Changes 15039 } 15040 15041 // GetInstallation returns the Installation field. 15042 func (p *ProjectColumnEvent) GetInstallation() *Installation { 15043 if p == nil { 15044 return nil 15045 } 15046 return p.Installation 15047 } 15048 15049 // GetOrg returns the Org field. 15050 func (p *ProjectColumnEvent) GetOrg() *Organization { 15051 if p == nil { 15052 return nil 15053 } 15054 return p.Org 15055 } 15056 15057 // GetProjectColumn returns the ProjectColumn field. 15058 func (p *ProjectColumnEvent) GetProjectColumn() *ProjectColumn { 15059 if p == nil { 15060 return nil 15061 } 15062 return p.ProjectColumn 15063 } 15064 15065 // GetRepo returns the Repo field. 15066 func (p *ProjectColumnEvent) GetRepo() *Repository { 15067 if p == nil { 15068 return nil 15069 } 15070 return p.Repo 15071 } 15072 15073 // GetSender returns the Sender field. 15074 func (p *ProjectColumnEvent) GetSender() *User { 15075 if p == nil { 15076 return nil 15077 } 15078 return p.Sender 15079 } 15080 15081 // GetFrom returns the From field if it's non-nil, zero value otherwise. 15082 func (p *ProjectColumnName) GetFrom() string { 15083 if p == nil || p.From == nil { 15084 return "" 15085 } 15086 return *p.From 15087 } 15088 15089 // GetAction returns the Action field if it's non-nil, zero value otherwise. 15090 func (p *ProjectEvent) GetAction() string { 15091 if p == nil || p.Action == nil { 15092 return "" 15093 } 15094 return *p.Action 15095 } 15096 15097 // GetChanges returns the Changes field. 15098 func (p *ProjectEvent) GetChanges() *ProjectChange { 15099 if p == nil { 15100 return nil 15101 } 15102 return p.Changes 15103 } 15104 15105 // GetInstallation returns the Installation field. 15106 func (p *ProjectEvent) GetInstallation() *Installation { 15107 if p == nil { 15108 return nil 15109 } 15110 return p.Installation 15111 } 15112 15113 // GetOrg returns the Org field. 15114 func (p *ProjectEvent) GetOrg() *Organization { 15115 if p == nil { 15116 return nil 15117 } 15118 return p.Org 15119 } 15120 15121 // GetProject returns the Project field. 15122 func (p *ProjectEvent) GetProject() *Project { 15123 if p == nil { 15124 return nil 15125 } 15126 return p.Project 15127 } 15128 15129 // GetRepo returns the Repo field. 15130 func (p *ProjectEvent) GetRepo() *Repository { 15131 if p == nil { 15132 return nil 15133 } 15134 return p.Repo 15135 } 15136 15137 // GetSender returns the Sender field. 15138 func (p *ProjectEvent) GetSender() *User { 15139 if p == nil { 15140 return nil 15141 } 15142 return p.Sender 15143 } 15144 15145 // GetFrom returns the From field if it's non-nil, zero value otherwise. 15146 func (p *ProjectName) GetFrom() string { 15147 if p == nil || p.From == nil { 15148 return "" 15149 } 15150 return *p.From 15151 } 15152 15153 // GetBody returns the Body field if it's non-nil, zero value otherwise. 15154 func (p *ProjectOptions) GetBody() string { 15155 if p == nil || p.Body == nil { 15156 return "" 15157 } 15158 return *p.Body 15159 } 15160 15161 // GetName returns the Name field if it's non-nil, zero value otherwise. 15162 func (p *ProjectOptions) GetName() string { 15163 if p == nil || p.Name == nil { 15164 return "" 15165 } 15166 return *p.Name 15167 } 15168 15169 // GetOrganizationPermission returns the OrganizationPermission field if it's non-nil, zero value otherwise. 15170 func (p *ProjectOptions) GetOrganizationPermission() string { 15171 if p == nil || p.OrganizationPermission == nil { 15172 return "" 15173 } 15174 return *p.OrganizationPermission 15175 } 15176 15177 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 15178 func (p *ProjectOptions) GetPrivate() bool { 15179 if p == nil || p.Private == nil { 15180 return false 15181 } 15182 return *p.Private 15183 } 15184 15185 // GetState returns the State field if it's non-nil, zero value otherwise. 15186 func (p *ProjectOptions) GetState() string { 15187 if p == nil || p.State == nil { 15188 return "" 15189 } 15190 return *p.State 15191 } 15192 15193 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 15194 func (p *ProjectPermissionLevel) GetPermission() string { 15195 if p == nil || p.Permission == nil { 15196 return "" 15197 } 15198 return *p.Permission 15199 } 15200 15201 // GetUser returns the User field. 15202 func (p *ProjectPermissionLevel) GetUser() *User { 15203 if p == nil { 15204 return nil 15205 } 15206 return p.User 15207 } 15208 15209 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 15210 func (p *ProjectsV2) GetClosedAt() Timestamp { 15211 if p == nil || p.ClosedAt == nil { 15212 return Timestamp{} 15213 } 15214 return *p.ClosedAt 15215 } 15216 15217 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 15218 func (p *ProjectsV2) GetCreatedAt() Timestamp { 15219 if p == nil || p.CreatedAt == nil { 15220 return Timestamp{} 15221 } 15222 return *p.CreatedAt 15223 } 15224 15225 // GetCreator returns the Creator field. 15226 func (p *ProjectsV2) GetCreator() *User { 15227 if p == nil { 15228 return nil 15229 } 15230 return p.Creator 15231 } 15232 15233 // GetDeletedAt returns the DeletedAt field if it's non-nil, zero value otherwise. 15234 func (p *ProjectsV2) GetDeletedAt() Timestamp { 15235 if p == nil || p.DeletedAt == nil { 15236 return Timestamp{} 15237 } 15238 return *p.DeletedAt 15239 } 15240 15241 // GetDeletedBy returns the DeletedBy field. 15242 func (p *ProjectsV2) GetDeletedBy() *User { 15243 if p == nil { 15244 return nil 15245 } 15246 return p.DeletedBy 15247 } 15248 15249 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 15250 func (p *ProjectsV2) GetDescription() string { 15251 if p == nil || p.Description == nil { 15252 return "" 15253 } 15254 return *p.Description 15255 } 15256 15257 // GetID returns the ID field if it's non-nil, zero value otherwise. 15258 func (p *ProjectsV2) GetID() int64 { 15259 if p == nil || p.ID == nil { 15260 return 0 15261 } 15262 return *p.ID 15263 } 15264 15265 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15266 func (p *ProjectsV2) GetNodeID() string { 15267 if p == nil || p.NodeID == nil { 15268 return "" 15269 } 15270 return *p.NodeID 15271 } 15272 15273 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 15274 func (p *ProjectsV2) GetNumber() int { 15275 if p == nil || p.Number == nil { 15276 return 0 15277 } 15278 return *p.Number 15279 } 15280 15281 // GetOwner returns the Owner field. 15282 func (p *ProjectsV2) GetOwner() *User { 15283 if p == nil { 15284 return nil 15285 } 15286 return p.Owner 15287 } 15288 15289 // GetPublic returns the Public field if it's non-nil, zero value otherwise. 15290 func (p *ProjectsV2) GetPublic() bool { 15291 if p == nil || p.Public == nil { 15292 return false 15293 } 15294 return *p.Public 15295 } 15296 15297 // GetShortDescription returns the ShortDescription field if it's non-nil, zero value otherwise. 15298 func (p *ProjectsV2) GetShortDescription() string { 15299 if p == nil || p.ShortDescription == nil { 15300 return "" 15301 } 15302 return *p.ShortDescription 15303 } 15304 15305 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 15306 func (p *ProjectsV2) GetTitle() string { 15307 if p == nil || p.Title == nil { 15308 return "" 15309 } 15310 return *p.Title 15311 } 15312 15313 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 15314 func (p *ProjectsV2) GetUpdatedAt() Timestamp { 15315 if p == nil || p.UpdatedAt == nil { 15316 return Timestamp{} 15317 } 15318 return *p.UpdatedAt 15319 } 15320 15321 // GetAction returns the Action field if it's non-nil, zero value otherwise. 15322 func (p *ProjectV2Event) GetAction() string { 15323 if p == nil || p.Action == nil { 15324 return "" 15325 } 15326 return *p.Action 15327 } 15328 15329 // GetInstallation returns the Installation field. 15330 func (p *ProjectV2Event) GetInstallation() *Installation { 15331 if p == nil { 15332 return nil 15333 } 15334 return p.Installation 15335 } 15336 15337 // GetOrg returns the Org field. 15338 func (p *ProjectV2Event) GetOrg() *Organization { 15339 if p == nil { 15340 return nil 15341 } 15342 return p.Org 15343 } 15344 15345 // GetProjectsV2 returns the ProjectsV2 field. 15346 func (p *ProjectV2Event) GetProjectsV2() *ProjectsV2 { 15347 if p == nil { 15348 return nil 15349 } 15350 return p.ProjectsV2 15351 } 15352 15353 // GetSender returns the Sender field. 15354 func (p *ProjectV2Event) GetSender() *User { 15355 if p == nil { 15356 return nil 15357 } 15358 return p.Sender 15359 } 15360 15361 // GetArchivedAt returns the ArchivedAt field if it's non-nil, zero value otherwise. 15362 func (p *ProjectV2Item) GetArchivedAt() Timestamp { 15363 if p == nil || p.ArchivedAt == nil { 15364 return Timestamp{} 15365 } 15366 return *p.ArchivedAt 15367 } 15368 15369 // GetContentNodeID returns the ContentNodeID field if it's non-nil, zero value otherwise. 15370 func (p *ProjectV2Item) GetContentNodeID() string { 15371 if p == nil || p.ContentNodeID == nil { 15372 return "" 15373 } 15374 return *p.ContentNodeID 15375 } 15376 15377 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 15378 func (p *ProjectV2Item) GetContentType() string { 15379 if p == nil || p.ContentType == nil { 15380 return "" 15381 } 15382 return *p.ContentType 15383 } 15384 15385 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 15386 func (p *ProjectV2Item) GetCreatedAt() Timestamp { 15387 if p == nil || p.CreatedAt == nil { 15388 return Timestamp{} 15389 } 15390 return *p.CreatedAt 15391 } 15392 15393 // GetCreator returns the Creator field. 15394 func (p *ProjectV2Item) GetCreator() *User { 15395 if p == nil { 15396 return nil 15397 } 15398 return p.Creator 15399 } 15400 15401 // GetID returns the ID field if it's non-nil, zero value otherwise. 15402 func (p *ProjectV2Item) GetID() int64 { 15403 if p == nil || p.ID == nil { 15404 return 0 15405 } 15406 return *p.ID 15407 } 15408 15409 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15410 func (p *ProjectV2Item) GetNodeID() string { 15411 if p == nil || p.NodeID == nil { 15412 return "" 15413 } 15414 return *p.NodeID 15415 } 15416 15417 // GetProjectNodeID returns the ProjectNodeID field if it's non-nil, zero value otherwise. 15418 func (p *ProjectV2Item) GetProjectNodeID() string { 15419 if p == nil || p.ProjectNodeID == nil { 15420 return "" 15421 } 15422 return *p.ProjectNodeID 15423 } 15424 15425 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 15426 func (p *ProjectV2Item) GetUpdatedAt() Timestamp { 15427 if p == nil || p.UpdatedAt == nil { 15428 return Timestamp{} 15429 } 15430 return *p.UpdatedAt 15431 } 15432 15433 // GetArchivedAt returns the ArchivedAt field. 15434 func (p *ProjectV2ItemChange) GetArchivedAt() *ArchivedAt { 15435 if p == nil { 15436 return nil 15437 } 15438 return p.ArchivedAt 15439 } 15440 15441 // GetAction returns the Action field if it's non-nil, zero value otherwise. 15442 func (p *ProjectV2ItemEvent) GetAction() string { 15443 if p == nil || p.Action == nil { 15444 return "" 15445 } 15446 return *p.Action 15447 } 15448 15449 // GetChanges returns the Changes field. 15450 func (p *ProjectV2ItemEvent) GetChanges() *ProjectV2ItemChange { 15451 if p == nil { 15452 return nil 15453 } 15454 return p.Changes 15455 } 15456 15457 // GetInstallation returns the Installation field. 15458 func (p *ProjectV2ItemEvent) GetInstallation() *Installation { 15459 if p == nil { 15460 return nil 15461 } 15462 return p.Installation 15463 } 15464 15465 // GetOrg returns the Org field. 15466 func (p *ProjectV2ItemEvent) GetOrg() *Organization { 15467 if p == nil { 15468 return nil 15469 } 15470 return p.Org 15471 } 15472 15473 // GetProjectV2Item returns the ProjectV2Item field. 15474 func (p *ProjectV2ItemEvent) GetProjectV2Item() *ProjectV2Item { 15475 if p == nil { 15476 return nil 15477 } 15478 return p.ProjectV2Item 15479 } 15480 15481 // GetSender returns the Sender field. 15482 func (p *ProjectV2ItemEvent) GetSender() *User { 15483 if p == nil { 15484 return nil 15485 } 15486 return p.Sender 15487 } 15488 15489 // GetAllowDeletions returns the AllowDeletions field. 15490 func (p *Protection) GetAllowDeletions() *AllowDeletions { 15491 if p == nil { 15492 return nil 15493 } 15494 return p.AllowDeletions 15495 } 15496 15497 // GetAllowForcePushes returns the AllowForcePushes field. 15498 func (p *Protection) GetAllowForcePushes() *AllowForcePushes { 15499 if p == nil { 15500 return nil 15501 } 15502 return p.AllowForcePushes 15503 } 15504 15505 // GetAllowForkSyncing returns the AllowForkSyncing field. 15506 func (p *Protection) GetAllowForkSyncing() *AllowForkSyncing { 15507 if p == nil { 15508 return nil 15509 } 15510 return p.AllowForkSyncing 15511 } 15512 15513 // GetBlockCreations returns the BlockCreations field. 15514 func (p *Protection) GetBlockCreations() *BlockCreations { 15515 if p == nil { 15516 return nil 15517 } 15518 return p.BlockCreations 15519 } 15520 15521 // GetEnforceAdmins returns the EnforceAdmins field. 15522 func (p *Protection) GetEnforceAdmins() *AdminEnforcement { 15523 if p == nil { 15524 return nil 15525 } 15526 return p.EnforceAdmins 15527 } 15528 15529 // GetLockBranch returns the LockBranch field. 15530 func (p *Protection) GetLockBranch() *LockBranch { 15531 if p == nil { 15532 return nil 15533 } 15534 return p.LockBranch 15535 } 15536 15537 // GetRequiredConversationResolution returns the RequiredConversationResolution field. 15538 func (p *Protection) GetRequiredConversationResolution() *RequiredConversationResolution { 15539 if p == nil { 15540 return nil 15541 } 15542 return p.RequiredConversationResolution 15543 } 15544 15545 // GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. 15546 func (p *Protection) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcement { 15547 if p == nil { 15548 return nil 15549 } 15550 return p.RequiredPullRequestReviews 15551 } 15552 15553 // GetRequiredSignatures returns the RequiredSignatures field. 15554 func (p *Protection) GetRequiredSignatures() *SignaturesProtectedBranch { 15555 if p == nil { 15556 return nil 15557 } 15558 return p.RequiredSignatures 15559 } 15560 15561 // GetRequiredStatusChecks returns the RequiredStatusChecks field. 15562 func (p *Protection) GetRequiredStatusChecks() *RequiredStatusChecks { 15563 if p == nil { 15564 return nil 15565 } 15566 return p.RequiredStatusChecks 15567 } 15568 15569 // GetRequireLinearHistory returns the RequireLinearHistory field. 15570 func (p *Protection) GetRequireLinearHistory() *RequireLinearHistory { 15571 if p == nil { 15572 return nil 15573 } 15574 return p.RequireLinearHistory 15575 } 15576 15577 // GetRestrictions returns the Restrictions field. 15578 func (p *Protection) GetRestrictions() *BranchRestrictions { 15579 if p == nil { 15580 return nil 15581 } 15582 return p.Restrictions 15583 } 15584 15585 // GetURL returns the URL field if it's non-nil, zero value otherwise. 15586 func (p *Protection) GetURL() string { 15587 if p == nil || p.URL == nil { 15588 return "" 15589 } 15590 return *p.URL 15591 } 15592 15593 // GetAdminEnforced returns the AdminEnforced field. 15594 func (p *ProtectionChanges) GetAdminEnforced() *AdminEnforcedChanges { 15595 if p == nil { 15596 return nil 15597 } 15598 return p.AdminEnforced 15599 } 15600 15601 // GetAllowDeletionsEnforcementLevel returns the AllowDeletionsEnforcementLevel field. 15602 func (p *ProtectionChanges) GetAllowDeletionsEnforcementLevel() *AllowDeletionsEnforcementLevelChanges { 15603 if p == nil { 15604 return nil 15605 } 15606 return p.AllowDeletionsEnforcementLevel 15607 } 15608 15609 // GetAuthorizedActorNames returns the AuthorizedActorNames field. 15610 func (p *ProtectionChanges) GetAuthorizedActorNames() *AuthorizedActorNames { 15611 if p == nil { 15612 return nil 15613 } 15614 return p.AuthorizedActorNames 15615 } 15616 15617 // GetAuthorizedActorsOnly returns the AuthorizedActorsOnly field. 15618 func (p *ProtectionChanges) GetAuthorizedActorsOnly() *AuthorizedActorsOnly { 15619 if p == nil { 15620 return nil 15621 } 15622 return p.AuthorizedActorsOnly 15623 } 15624 15625 // GetAuthorizedDismissalActorsOnly returns the AuthorizedDismissalActorsOnly field. 15626 func (p *ProtectionChanges) GetAuthorizedDismissalActorsOnly() *AuthorizedDismissalActorsOnlyChanges { 15627 if p == nil { 15628 return nil 15629 } 15630 return p.AuthorizedDismissalActorsOnly 15631 } 15632 15633 // GetCreateProtected returns the CreateProtected field. 15634 func (p *ProtectionChanges) GetCreateProtected() *CreateProtectedChanges { 15635 if p == nil { 15636 return nil 15637 } 15638 return p.CreateProtected 15639 } 15640 15641 // GetDismissStaleReviewsOnPush returns the DismissStaleReviewsOnPush field. 15642 func (p *ProtectionChanges) GetDismissStaleReviewsOnPush() *DismissStaleReviewsOnPushChanges { 15643 if p == nil { 15644 return nil 15645 } 15646 return p.DismissStaleReviewsOnPush 15647 } 15648 15649 // GetLinearHistoryRequirementEnforcementLevel returns the LinearHistoryRequirementEnforcementLevel field. 15650 func (p *ProtectionChanges) GetLinearHistoryRequirementEnforcementLevel() *LinearHistoryRequirementEnforcementLevelChanges { 15651 if p == nil { 15652 return nil 15653 } 15654 return p.LinearHistoryRequirementEnforcementLevel 15655 } 15656 15657 // GetPullRequestReviewsEnforcementLevel returns the PullRequestReviewsEnforcementLevel field. 15658 func (p *ProtectionChanges) GetPullRequestReviewsEnforcementLevel() *PullRequestReviewsEnforcementLevelChanges { 15659 if p == nil { 15660 return nil 15661 } 15662 return p.PullRequestReviewsEnforcementLevel 15663 } 15664 15665 // GetRequireCodeOwnerReview returns the RequireCodeOwnerReview field. 15666 func (p *ProtectionChanges) GetRequireCodeOwnerReview() *RequireCodeOwnerReviewChanges { 15667 if p == nil { 15668 return nil 15669 } 15670 return p.RequireCodeOwnerReview 15671 } 15672 15673 // GetRequiredConversationResolutionLevel returns the RequiredConversationResolutionLevel field. 15674 func (p *ProtectionChanges) GetRequiredConversationResolutionLevel() *RequiredConversationResolutionLevelChanges { 15675 if p == nil { 15676 return nil 15677 } 15678 return p.RequiredConversationResolutionLevel 15679 } 15680 15681 // GetRequiredDeploymentsEnforcementLevel returns the RequiredDeploymentsEnforcementLevel field. 15682 func (p *ProtectionChanges) GetRequiredDeploymentsEnforcementLevel() *RequiredDeploymentsEnforcementLevelChanges { 15683 if p == nil { 15684 return nil 15685 } 15686 return p.RequiredDeploymentsEnforcementLevel 15687 } 15688 15689 // GetRequiredStatusChecks returns the RequiredStatusChecks field. 15690 func (p *ProtectionChanges) GetRequiredStatusChecks() *RequiredStatusChecksChanges { 15691 if p == nil { 15692 return nil 15693 } 15694 return p.RequiredStatusChecks 15695 } 15696 15697 // GetRequiredStatusChecksEnforcementLevel returns the RequiredStatusChecksEnforcementLevel field. 15698 func (p *ProtectionChanges) GetRequiredStatusChecksEnforcementLevel() *RequiredStatusChecksEnforcementLevelChanges { 15699 if p == nil { 15700 return nil 15701 } 15702 return p.RequiredStatusChecksEnforcementLevel 15703 } 15704 15705 // GetSignatureRequirementEnforcementLevel returns the SignatureRequirementEnforcementLevel field. 15706 func (p *ProtectionChanges) GetSignatureRequirementEnforcementLevel() *SignatureRequirementEnforcementLevelChanges { 15707 if p == nil { 15708 return nil 15709 } 15710 return p.SignatureRequirementEnforcementLevel 15711 } 15712 15713 // GetAllowDeletions returns the AllowDeletions field if it's non-nil, zero value otherwise. 15714 func (p *ProtectionRequest) GetAllowDeletions() bool { 15715 if p == nil || p.AllowDeletions == nil { 15716 return false 15717 } 15718 return *p.AllowDeletions 15719 } 15720 15721 // GetAllowForcePushes returns the AllowForcePushes field if it's non-nil, zero value otherwise. 15722 func (p *ProtectionRequest) GetAllowForcePushes() bool { 15723 if p == nil || p.AllowForcePushes == nil { 15724 return false 15725 } 15726 return *p.AllowForcePushes 15727 } 15728 15729 // GetAllowForkSyncing returns the AllowForkSyncing field if it's non-nil, zero value otherwise. 15730 func (p *ProtectionRequest) GetAllowForkSyncing() bool { 15731 if p == nil || p.AllowForkSyncing == nil { 15732 return false 15733 } 15734 return *p.AllowForkSyncing 15735 } 15736 15737 // GetBlockCreations returns the BlockCreations field if it's non-nil, zero value otherwise. 15738 func (p *ProtectionRequest) GetBlockCreations() bool { 15739 if p == nil || p.BlockCreations == nil { 15740 return false 15741 } 15742 return *p.BlockCreations 15743 } 15744 15745 // GetLockBranch returns the LockBranch field if it's non-nil, zero value otherwise. 15746 func (p *ProtectionRequest) GetLockBranch() bool { 15747 if p == nil || p.LockBranch == nil { 15748 return false 15749 } 15750 return *p.LockBranch 15751 } 15752 15753 // GetRequiredConversationResolution returns the RequiredConversationResolution field if it's non-nil, zero value otherwise. 15754 func (p *ProtectionRequest) GetRequiredConversationResolution() bool { 15755 if p == nil || p.RequiredConversationResolution == nil { 15756 return false 15757 } 15758 return *p.RequiredConversationResolution 15759 } 15760 15761 // GetRequiredPullRequestReviews returns the RequiredPullRequestReviews field. 15762 func (p *ProtectionRequest) GetRequiredPullRequestReviews() *PullRequestReviewsEnforcementRequest { 15763 if p == nil { 15764 return nil 15765 } 15766 return p.RequiredPullRequestReviews 15767 } 15768 15769 // GetRequiredStatusChecks returns the RequiredStatusChecks field. 15770 func (p *ProtectionRequest) GetRequiredStatusChecks() *RequiredStatusChecks { 15771 if p == nil { 15772 return nil 15773 } 15774 return p.RequiredStatusChecks 15775 } 15776 15777 // GetRequireLinearHistory returns the RequireLinearHistory field if it's non-nil, zero value otherwise. 15778 func (p *ProtectionRequest) GetRequireLinearHistory() bool { 15779 if p == nil || p.RequireLinearHistory == nil { 15780 return false 15781 } 15782 return *p.RequireLinearHistory 15783 } 15784 15785 // GetRestrictions returns the Restrictions field. 15786 func (p *ProtectionRequest) GetRestrictions() *BranchRestrictionsRequest { 15787 if p == nil { 15788 return nil 15789 } 15790 return p.Restrictions 15791 } 15792 15793 // GetID returns the ID field if it's non-nil, zero value otherwise. 15794 func (p *ProtectionRule) GetID() int64 { 15795 if p == nil || p.ID == nil { 15796 return 0 15797 } 15798 return *p.ID 15799 } 15800 15801 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 15802 func (p *ProtectionRule) GetNodeID() string { 15803 if p == nil || p.NodeID == nil { 15804 return "" 15805 } 15806 return *p.NodeID 15807 } 15808 15809 // GetPreventSelfReview returns the PreventSelfReview field if it's non-nil, zero value otherwise. 15810 func (p *ProtectionRule) GetPreventSelfReview() bool { 15811 if p == nil || p.PreventSelfReview == nil { 15812 return false 15813 } 15814 return *p.PreventSelfReview 15815 } 15816 15817 // GetType returns the Type field if it's non-nil, zero value otherwise. 15818 func (p *ProtectionRule) GetType() string { 15819 if p == nil || p.Type == nil { 15820 return "" 15821 } 15822 return *p.Type 15823 } 15824 15825 // GetWaitTimer returns the WaitTimer field if it's non-nil, zero value otherwise. 15826 func (p *ProtectionRule) GetWaitTimer() int { 15827 if p == nil || p.WaitTimer == nil { 15828 return 0 15829 } 15830 return *p.WaitTimer 15831 } 15832 15833 // GetInstallation returns the Installation field. 15834 func (p *PublicEvent) GetInstallation() *Installation { 15835 if p == nil { 15836 return nil 15837 } 15838 return p.Installation 15839 } 15840 15841 // GetOrg returns the Org field. 15842 func (p *PublicEvent) GetOrg() *Organization { 15843 if p == nil { 15844 return nil 15845 } 15846 return p.Org 15847 } 15848 15849 // GetRepo returns the Repo field. 15850 func (p *PublicEvent) GetRepo() *Repository { 15851 if p == nil { 15852 return nil 15853 } 15854 return p.Repo 15855 } 15856 15857 // GetSender returns the Sender field. 15858 func (p *PublicEvent) GetSender() *User { 15859 if p == nil { 15860 return nil 15861 } 15862 return p.Sender 15863 } 15864 15865 // GetKey returns the Key field if it's non-nil, zero value otherwise. 15866 func (p *PublicKey) GetKey() string { 15867 if p == nil || p.Key == nil { 15868 return "" 15869 } 15870 return *p.Key 15871 } 15872 15873 // GetKeyID returns the KeyID field if it's non-nil, zero value otherwise. 15874 func (p *PublicKey) GetKeyID() string { 15875 if p == nil || p.KeyID == nil { 15876 return "" 15877 } 15878 return *p.KeyID 15879 } 15880 15881 // GetActiveLockReason returns the ActiveLockReason field if it's non-nil, zero value otherwise. 15882 func (p *PullRequest) GetActiveLockReason() string { 15883 if p == nil || p.ActiveLockReason == nil { 15884 return "" 15885 } 15886 return *p.ActiveLockReason 15887 } 15888 15889 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 15890 func (p *PullRequest) GetAdditions() int { 15891 if p == nil || p.Additions == nil { 15892 return 0 15893 } 15894 return *p.Additions 15895 } 15896 15897 // GetAssignee returns the Assignee field. 15898 func (p *PullRequest) GetAssignee() *User { 15899 if p == nil { 15900 return nil 15901 } 15902 return p.Assignee 15903 } 15904 15905 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 15906 func (p *PullRequest) GetAuthorAssociation() string { 15907 if p == nil || p.AuthorAssociation == nil { 15908 return "" 15909 } 15910 return *p.AuthorAssociation 15911 } 15912 15913 // GetAutoMerge returns the AutoMerge field. 15914 func (p *PullRequest) GetAutoMerge() *PullRequestAutoMerge { 15915 if p == nil { 15916 return nil 15917 } 15918 return p.AutoMerge 15919 } 15920 15921 // GetBase returns the Base field. 15922 func (p *PullRequest) GetBase() *PullRequestBranch { 15923 if p == nil { 15924 return nil 15925 } 15926 return p.Base 15927 } 15928 15929 // GetBody returns the Body field if it's non-nil, zero value otherwise. 15930 func (p *PullRequest) GetBody() string { 15931 if p == nil || p.Body == nil { 15932 return "" 15933 } 15934 return *p.Body 15935 } 15936 15937 // GetChangedFiles returns the ChangedFiles field if it's non-nil, zero value otherwise. 15938 func (p *PullRequest) GetChangedFiles() int { 15939 if p == nil || p.ChangedFiles == nil { 15940 return 0 15941 } 15942 return *p.ChangedFiles 15943 } 15944 15945 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 15946 func (p *PullRequest) GetClosedAt() Timestamp { 15947 if p == nil || p.ClosedAt == nil { 15948 return Timestamp{} 15949 } 15950 return *p.ClosedAt 15951 } 15952 15953 // GetComments returns the Comments field if it's non-nil, zero value otherwise. 15954 func (p *PullRequest) GetComments() int { 15955 if p == nil || p.Comments == nil { 15956 return 0 15957 } 15958 return *p.Comments 15959 } 15960 15961 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 15962 func (p *PullRequest) GetCommentsURL() string { 15963 if p == nil || p.CommentsURL == nil { 15964 return "" 15965 } 15966 return *p.CommentsURL 15967 } 15968 15969 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 15970 func (p *PullRequest) GetCommits() int { 15971 if p == nil || p.Commits == nil { 15972 return 0 15973 } 15974 return *p.Commits 15975 } 15976 15977 // GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. 15978 func (p *PullRequest) GetCommitsURL() string { 15979 if p == nil || p.CommitsURL == nil { 15980 return "" 15981 } 15982 return *p.CommitsURL 15983 } 15984 15985 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 15986 func (p *PullRequest) GetCreatedAt() Timestamp { 15987 if p == nil || p.CreatedAt == nil { 15988 return Timestamp{} 15989 } 15990 return *p.CreatedAt 15991 } 15992 15993 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 15994 func (p *PullRequest) GetDeletions() int { 15995 if p == nil || p.Deletions == nil { 15996 return 0 15997 } 15998 return *p.Deletions 15999 } 16000 16001 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 16002 func (p *PullRequest) GetDiffURL() string { 16003 if p == nil || p.DiffURL == nil { 16004 return "" 16005 } 16006 return *p.DiffURL 16007 } 16008 16009 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 16010 func (p *PullRequest) GetDraft() bool { 16011 if p == nil || p.Draft == nil { 16012 return false 16013 } 16014 return *p.Draft 16015 } 16016 16017 // GetHead returns the Head field. 16018 func (p *PullRequest) GetHead() *PullRequestBranch { 16019 if p == nil { 16020 return nil 16021 } 16022 return p.Head 16023 } 16024 16025 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 16026 func (p *PullRequest) GetHTMLURL() string { 16027 if p == nil || p.HTMLURL == nil { 16028 return "" 16029 } 16030 return *p.HTMLURL 16031 } 16032 16033 // GetID returns the ID field if it's non-nil, zero value otherwise. 16034 func (p *PullRequest) GetID() int64 { 16035 if p == nil || p.ID == nil { 16036 return 0 16037 } 16038 return *p.ID 16039 } 16040 16041 // GetIssueURL returns the IssueURL field if it's non-nil, zero value otherwise. 16042 func (p *PullRequest) GetIssueURL() string { 16043 if p == nil || p.IssueURL == nil { 16044 return "" 16045 } 16046 return *p.IssueURL 16047 } 16048 16049 // GetLinks returns the Links field. 16050 func (p *PullRequest) GetLinks() *PRLinks { 16051 if p == nil { 16052 return nil 16053 } 16054 return p.Links 16055 } 16056 16057 // GetLocked returns the Locked field if it's non-nil, zero value otherwise. 16058 func (p *PullRequest) GetLocked() bool { 16059 if p == nil || p.Locked == nil { 16060 return false 16061 } 16062 return *p.Locked 16063 } 16064 16065 // GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise. 16066 func (p *PullRequest) GetMaintainerCanModify() bool { 16067 if p == nil || p.MaintainerCanModify == nil { 16068 return false 16069 } 16070 return *p.MaintainerCanModify 16071 } 16072 16073 // GetMergeable returns the Mergeable field if it's non-nil, zero value otherwise. 16074 func (p *PullRequest) GetMergeable() bool { 16075 if p == nil || p.Mergeable == nil { 16076 return false 16077 } 16078 return *p.Mergeable 16079 } 16080 16081 // GetMergeableState returns the MergeableState field if it's non-nil, zero value otherwise. 16082 func (p *PullRequest) GetMergeableState() string { 16083 if p == nil || p.MergeableState == nil { 16084 return "" 16085 } 16086 return *p.MergeableState 16087 } 16088 16089 // GetMergeCommitSHA returns the MergeCommitSHA field if it's non-nil, zero value otherwise. 16090 func (p *PullRequest) GetMergeCommitSHA() string { 16091 if p == nil || p.MergeCommitSHA == nil { 16092 return "" 16093 } 16094 return *p.MergeCommitSHA 16095 } 16096 16097 // GetMerged returns the Merged field if it's non-nil, zero value otherwise. 16098 func (p *PullRequest) GetMerged() bool { 16099 if p == nil || p.Merged == nil { 16100 return false 16101 } 16102 return *p.Merged 16103 } 16104 16105 // GetMergedAt returns the MergedAt field if it's non-nil, zero value otherwise. 16106 func (p *PullRequest) GetMergedAt() Timestamp { 16107 if p == nil || p.MergedAt == nil { 16108 return Timestamp{} 16109 } 16110 return *p.MergedAt 16111 } 16112 16113 // GetMergedBy returns the MergedBy field. 16114 func (p *PullRequest) GetMergedBy() *User { 16115 if p == nil { 16116 return nil 16117 } 16118 return p.MergedBy 16119 } 16120 16121 // GetMilestone returns the Milestone field. 16122 func (p *PullRequest) GetMilestone() *Milestone { 16123 if p == nil { 16124 return nil 16125 } 16126 return p.Milestone 16127 } 16128 16129 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 16130 func (p *PullRequest) GetNodeID() string { 16131 if p == nil || p.NodeID == nil { 16132 return "" 16133 } 16134 return *p.NodeID 16135 } 16136 16137 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 16138 func (p *PullRequest) GetNumber() int { 16139 if p == nil || p.Number == nil { 16140 return 0 16141 } 16142 return *p.Number 16143 } 16144 16145 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 16146 func (p *PullRequest) GetPatchURL() string { 16147 if p == nil || p.PatchURL == nil { 16148 return "" 16149 } 16150 return *p.PatchURL 16151 } 16152 16153 // GetRebaseable returns the Rebaseable field if it's non-nil, zero value otherwise. 16154 func (p *PullRequest) GetRebaseable() bool { 16155 if p == nil || p.Rebaseable == nil { 16156 return false 16157 } 16158 return *p.Rebaseable 16159 } 16160 16161 // GetReviewComments returns the ReviewComments field if it's non-nil, zero value otherwise. 16162 func (p *PullRequest) GetReviewComments() int { 16163 if p == nil || p.ReviewComments == nil { 16164 return 0 16165 } 16166 return *p.ReviewComments 16167 } 16168 16169 // GetReviewCommentsURL returns the ReviewCommentsURL field if it's non-nil, zero value otherwise. 16170 func (p *PullRequest) GetReviewCommentsURL() string { 16171 if p == nil || p.ReviewCommentsURL == nil { 16172 return "" 16173 } 16174 return *p.ReviewCommentsURL 16175 } 16176 16177 // GetReviewCommentURL returns the ReviewCommentURL field if it's non-nil, zero value otherwise. 16178 func (p *PullRequest) GetReviewCommentURL() string { 16179 if p == nil || p.ReviewCommentURL == nil { 16180 return "" 16181 } 16182 return *p.ReviewCommentURL 16183 } 16184 16185 // GetState returns the State field if it's non-nil, zero value otherwise. 16186 func (p *PullRequest) GetState() string { 16187 if p == nil || p.State == nil { 16188 return "" 16189 } 16190 return *p.State 16191 } 16192 16193 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 16194 func (p *PullRequest) GetStatusesURL() string { 16195 if p == nil || p.StatusesURL == nil { 16196 return "" 16197 } 16198 return *p.StatusesURL 16199 } 16200 16201 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 16202 func (p *PullRequest) GetTitle() string { 16203 if p == nil || p.Title == nil { 16204 return "" 16205 } 16206 return *p.Title 16207 } 16208 16209 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 16210 func (p *PullRequest) GetUpdatedAt() Timestamp { 16211 if p == nil || p.UpdatedAt == nil { 16212 return Timestamp{} 16213 } 16214 return *p.UpdatedAt 16215 } 16216 16217 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16218 func (p *PullRequest) GetURL() string { 16219 if p == nil || p.URL == nil { 16220 return "" 16221 } 16222 return *p.URL 16223 } 16224 16225 // GetUser returns the User field. 16226 func (p *PullRequest) GetUser() *User { 16227 if p == nil { 16228 return nil 16229 } 16230 return p.User 16231 } 16232 16233 // GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. 16234 func (p *PullRequestAutoMerge) GetCommitMessage() string { 16235 if p == nil || p.CommitMessage == nil { 16236 return "" 16237 } 16238 return *p.CommitMessage 16239 } 16240 16241 // GetCommitTitle returns the CommitTitle field if it's non-nil, zero value otherwise. 16242 func (p *PullRequestAutoMerge) GetCommitTitle() string { 16243 if p == nil || p.CommitTitle == nil { 16244 return "" 16245 } 16246 return *p.CommitTitle 16247 } 16248 16249 // GetEnabledBy returns the EnabledBy field. 16250 func (p *PullRequestAutoMerge) GetEnabledBy() *User { 16251 if p == nil { 16252 return nil 16253 } 16254 return p.EnabledBy 16255 } 16256 16257 // GetMergeMethod returns the MergeMethod field if it's non-nil, zero value otherwise. 16258 func (p *PullRequestAutoMerge) GetMergeMethod() string { 16259 if p == nil || p.MergeMethod == nil { 16260 return "" 16261 } 16262 return *p.MergeMethod 16263 } 16264 16265 // GetLabel returns the Label field if it's non-nil, zero value otherwise. 16266 func (p *PullRequestBranch) GetLabel() string { 16267 if p == nil || p.Label == nil { 16268 return "" 16269 } 16270 return *p.Label 16271 } 16272 16273 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 16274 func (p *PullRequestBranch) GetRef() string { 16275 if p == nil || p.Ref == nil { 16276 return "" 16277 } 16278 return *p.Ref 16279 } 16280 16281 // GetRepo returns the Repo field. 16282 func (p *PullRequestBranch) GetRepo() *Repository { 16283 if p == nil { 16284 return nil 16285 } 16286 return p.Repo 16287 } 16288 16289 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 16290 func (p *PullRequestBranch) GetSHA() string { 16291 if p == nil || p.SHA == nil { 16292 return "" 16293 } 16294 return *p.SHA 16295 } 16296 16297 // GetUser returns the User field. 16298 func (p *PullRequestBranch) GetUser() *User { 16299 if p == nil { 16300 return nil 16301 } 16302 return p.User 16303 } 16304 16305 // GetExpectedHeadSHA returns the ExpectedHeadSHA field if it's non-nil, zero value otherwise. 16306 func (p *PullRequestBranchUpdateOptions) GetExpectedHeadSHA() string { 16307 if p == nil || p.ExpectedHeadSHA == nil { 16308 return "" 16309 } 16310 return *p.ExpectedHeadSHA 16311 } 16312 16313 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 16314 func (p *PullRequestBranchUpdateResponse) GetMessage() string { 16315 if p == nil || p.Message == nil { 16316 return "" 16317 } 16318 return *p.Message 16319 } 16320 16321 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16322 func (p *PullRequestBranchUpdateResponse) GetURL() string { 16323 if p == nil || p.URL == nil { 16324 return "" 16325 } 16326 return *p.URL 16327 } 16328 16329 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 16330 func (p *PullRequestComment) GetAuthorAssociation() string { 16331 if p == nil || p.AuthorAssociation == nil { 16332 return "" 16333 } 16334 return *p.AuthorAssociation 16335 } 16336 16337 // GetBody returns the Body field if it's non-nil, zero value otherwise. 16338 func (p *PullRequestComment) GetBody() string { 16339 if p == nil || p.Body == nil { 16340 return "" 16341 } 16342 return *p.Body 16343 } 16344 16345 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 16346 func (p *PullRequestComment) GetCommitID() string { 16347 if p == nil || p.CommitID == nil { 16348 return "" 16349 } 16350 return *p.CommitID 16351 } 16352 16353 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 16354 func (p *PullRequestComment) GetCreatedAt() Timestamp { 16355 if p == nil || p.CreatedAt == nil { 16356 return Timestamp{} 16357 } 16358 return *p.CreatedAt 16359 } 16360 16361 // GetDiffHunk returns the DiffHunk field if it's non-nil, zero value otherwise. 16362 func (p *PullRequestComment) GetDiffHunk() string { 16363 if p == nil || p.DiffHunk == nil { 16364 return "" 16365 } 16366 return *p.DiffHunk 16367 } 16368 16369 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 16370 func (p *PullRequestComment) GetHTMLURL() string { 16371 if p == nil || p.HTMLURL == nil { 16372 return "" 16373 } 16374 return *p.HTMLURL 16375 } 16376 16377 // GetID returns the ID field if it's non-nil, zero value otherwise. 16378 func (p *PullRequestComment) GetID() int64 { 16379 if p == nil || p.ID == nil { 16380 return 0 16381 } 16382 return *p.ID 16383 } 16384 16385 // GetInReplyTo returns the InReplyTo field if it's non-nil, zero value otherwise. 16386 func (p *PullRequestComment) GetInReplyTo() int64 { 16387 if p == nil || p.InReplyTo == nil { 16388 return 0 16389 } 16390 return *p.InReplyTo 16391 } 16392 16393 // GetLine returns the Line field if it's non-nil, zero value otherwise. 16394 func (p *PullRequestComment) GetLine() int { 16395 if p == nil || p.Line == nil { 16396 return 0 16397 } 16398 return *p.Line 16399 } 16400 16401 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 16402 func (p *PullRequestComment) GetNodeID() string { 16403 if p == nil || p.NodeID == nil { 16404 return "" 16405 } 16406 return *p.NodeID 16407 } 16408 16409 // GetOriginalCommitID returns the OriginalCommitID field if it's non-nil, zero value otherwise. 16410 func (p *PullRequestComment) GetOriginalCommitID() string { 16411 if p == nil || p.OriginalCommitID == nil { 16412 return "" 16413 } 16414 return *p.OriginalCommitID 16415 } 16416 16417 // GetOriginalLine returns the OriginalLine field if it's non-nil, zero value otherwise. 16418 func (p *PullRequestComment) GetOriginalLine() int { 16419 if p == nil || p.OriginalLine == nil { 16420 return 0 16421 } 16422 return *p.OriginalLine 16423 } 16424 16425 // GetOriginalPosition returns the OriginalPosition field if it's non-nil, zero value otherwise. 16426 func (p *PullRequestComment) GetOriginalPosition() int { 16427 if p == nil || p.OriginalPosition == nil { 16428 return 0 16429 } 16430 return *p.OriginalPosition 16431 } 16432 16433 // GetOriginalStartLine returns the OriginalStartLine field if it's non-nil, zero value otherwise. 16434 func (p *PullRequestComment) GetOriginalStartLine() int { 16435 if p == nil || p.OriginalStartLine == nil { 16436 return 0 16437 } 16438 return *p.OriginalStartLine 16439 } 16440 16441 // GetPath returns the Path field if it's non-nil, zero value otherwise. 16442 func (p *PullRequestComment) GetPath() string { 16443 if p == nil || p.Path == nil { 16444 return "" 16445 } 16446 return *p.Path 16447 } 16448 16449 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 16450 func (p *PullRequestComment) GetPosition() int { 16451 if p == nil || p.Position == nil { 16452 return 0 16453 } 16454 return *p.Position 16455 } 16456 16457 // GetPullRequestReviewID returns the PullRequestReviewID field if it's non-nil, zero value otherwise. 16458 func (p *PullRequestComment) GetPullRequestReviewID() int64 { 16459 if p == nil || p.PullRequestReviewID == nil { 16460 return 0 16461 } 16462 return *p.PullRequestReviewID 16463 } 16464 16465 // GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 16466 func (p *PullRequestComment) GetPullRequestURL() string { 16467 if p == nil || p.PullRequestURL == nil { 16468 return "" 16469 } 16470 return *p.PullRequestURL 16471 } 16472 16473 // GetReactions returns the Reactions field. 16474 func (p *PullRequestComment) GetReactions() *Reactions { 16475 if p == nil { 16476 return nil 16477 } 16478 return p.Reactions 16479 } 16480 16481 // GetSide returns the Side field if it's non-nil, zero value otherwise. 16482 func (p *PullRequestComment) GetSide() string { 16483 if p == nil || p.Side == nil { 16484 return "" 16485 } 16486 return *p.Side 16487 } 16488 16489 // GetStartLine returns the StartLine field if it's non-nil, zero value otherwise. 16490 func (p *PullRequestComment) GetStartLine() int { 16491 if p == nil || p.StartLine == nil { 16492 return 0 16493 } 16494 return *p.StartLine 16495 } 16496 16497 // GetStartSide returns the StartSide field if it's non-nil, zero value otherwise. 16498 func (p *PullRequestComment) GetStartSide() string { 16499 if p == nil || p.StartSide == nil { 16500 return "" 16501 } 16502 return *p.StartSide 16503 } 16504 16505 // GetSubjectType returns the SubjectType field if it's non-nil, zero value otherwise. 16506 func (p *PullRequestComment) GetSubjectType() string { 16507 if p == nil || p.SubjectType == nil { 16508 return "" 16509 } 16510 return *p.SubjectType 16511 } 16512 16513 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 16514 func (p *PullRequestComment) GetUpdatedAt() Timestamp { 16515 if p == nil || p.UpdatedAt == nil { 16516 return Timestamp{} 16517 } 16518 return *p.UpdatedAt 16519 } 16520 16521 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16522 func (p *PullRequestComment) GetURL() string { 16523 if p == nil || p.URL == nil { 16524 return "" 16525 } 16526 return *p.URL 16527 } 16528 16529 // GetUser returns the User field. 16530 func (p *PullRequestComment) GetUser() *User { 16531 if p == nil { 16532 return nil 16533 } 16534 return p.User 16535 } 16536 16537 // GetAction returns the Action field if it's non-nil, zero value otherwise. 16538 func (p *PullRequestEvent) GetAction() string { 16539 if p == nil || p.Action == nil { 16540 return "" 16541 } 16542 return *p.Action 16543 } 16544 16545 // GetAfter returns the After field if it's non-nil, zero value otherwise. 16546 func (p *PullRequestEvent) GetAfter() string { 16547 if p == nil || p.After == nil { 16548 return "" 16549 } 16550 return *p.After 16551 } 16552 16553 // GetAssignee returns the Assignee field. 16554 func (p *PullRequestEvent) GetAssignee() *User { 16555 if p == nil { 16556 return nil 16557 } 16558 return p.Assignee 16559 } 16560 16561 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 16562 func (p *PullRequestEvent) GetBefore() string { 16563 if p == nil || p.Before == nil { 16564 return "" 16565 } 16566 return *p.Before 16567 } 16568 16569 // GetChanges returns the Changes field. 16570 func (p *PullRequestEvent) GetChanges() *EditChange { 16571 if p == nil { 16572 return nil 16573 } 16574 return p.Changes 16575 } 16576 16577 // GetInstallation returns the Installation field. 16578 func (p *PullRequestEvent) GetInstallation() *Installation { 16579 if p == nil { 16580 return nil 16581 } 16582 return p.Installation 16583 } 16584 16585 // GetLabel returns the Label field. 16586 func (p *PullRequestEvent) GetLabel() *Label { 16587 if p == nil { 16588 return nil 16589 } 16590 return p.Label 16591 } 16592 16593 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 16594 func (p *PullRequestEvent) GetNumber() int { 16595 if p == nil || p.Number == nil { 16596 return 0 16597 } 16598 return *p.Number 16599 } 16600 16601 // GetOrganization returns the Organization field. 16602 func (p *PullRequestEvent) GetOrganization() *Organization { 16603 if p == nil { 16604 return nil 16605 } 16606 return p.Organization 16607 } 16608 16609 // GetPerformedViaGithubApp returns the PerformedViaGithubApp field. 16610 func (p *PullRequestEvent) GetPerformedViaGithubApp() *App { 16611 if p == nil { 16612 return nil 16613 } 16614 return p.PerformedViaGithubApp 16615 } 16616 16617 // GetPullRequest returns the PullRequest field. 16618 func (p *PullRequestEvent) GetPullRequest() *PullRequest { 16619 if p == nil { 16620 return nil 16621 } 16622 return p.PullRequest 16623 } 16624 16625 // GetRepo returns the Repo field. 16626 func (p *PullRequestEvent) GetRepo() *Repository { 16627 if p == nil { 16628 return nil 16629 } 16630 return p.Repo 16631 } 16632 16633 // GetRequestedReviewer returns the RequestedReviewer field. 16634 func (p *PullRequestEvent) GetRequestedReviewer() *User { 16635 if p == nil { 16636 return nil 16637 } 16638 return p.RequestedReviewer 16639 } 16640 16641 // GetRequestedTeam returns the RequestedTeam field. 16642 func (p *PullRequestEvent) GetRequestedTeam() *Team { 16643 if p == nil { 16644 return nil 16645 } 16646 return p.RequestedTeam 16647 } 16648 16649 // GetSender returns the Sender field. 16650 func (p *PullRequestEvent) GetSender() *User { 16651 if p == nil { 16652 return nil 16653 } 16654 return p.Sender 16655 } 16656 16657 // GetDiffURL returns the DiffURL field if it's non-nil, zero value otherwise. 16658 func (p *PullRequestLinks) GetDiffURL() string { 16659 if p == nil || p.DiffURL == nil { 16660 return "" 16661 } 16662 return *p.DiffURL 16663 } 16664 16665 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 16666 func (p *PullRequestLinks) GetHTMLURL() string { 16667 if p == nil || p.HTMLURL == nil { 16668 return "" 16669 } 16670 return *p.HTMLURL 16671 } 16672 16673 // GetPatchURL returns the PatchURL field if it's non-nil, zero value otherwise. 16674 func (p *PullRequestLinks) GetPatchURL() string { 16675 if p == nil || p.PatchURL == nil { 16676 return "" 16677 } 16678 return *p.PatchURL 16679 } 16680 16681 // GetURL returns the URL field if it's non-nil, zero value otherwise. 16682 func (p *PullRequestLinks) GetURL() string { 16683 if p == nil || p.URL == nil { 16684 return "" 16685 } 16686 return *p.URL 16687 } 16688 16689 // GetMerged returns the Merged field if it's non-nil, zero value otherwise. 16690 func (p *PullRequestMergeResult) GetMerged() bool { 16691 if p == nil || p.Merged == nil { 16692 return false 16693 } 16694 return *p.Merged 16695 } 16696 16697 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 16698 func (p *PullRequestMergeResult) GetMessage() string { 16699 if p == nil || p.Message == nil { 16700 return "" 16701 } 16702 return *p.Message 16703 } 16704 16705 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 16706 func (p *PullRequestMergeResult) GetSHA() string { 16707 if p == nil || p.SHA == nil { 16708 return "" 16709 } 16710 return *p.SHA 16711 } 16712 16713 // GetAuthorAssociation returns the AuthorAssociation field if it's non-nil, zero value otherwise. 16714 func (p *PullRequestReview) GetAuthorAssociation() string { 16715 if p == nil || p.AuthorAssociation == nil { 16716 return "" 16717 } 16718 return *p.AuthorAssociation 16719 } 16720 16721 // GetBody returns the Body field if it's non-nil, zero value otherwise. 16722 func (p *PullRequestReview) GetBody() string { 16723 if p == nil || p.Body == nil { 16724 return "" 16725 } 16726 return *p.Body 16727 } 16728 16729 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 16730 func (p *PullRequestReview) GetCommitID() string { 16731 if p == nil || p.CommitID == nil { 16732 return "" 16733 } 16734 return *p.CommitID 16735 } 16736 16737 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 16738 func (p *PullRequestReview) GetHTMLURL() string { 16739 if p == nil || p.HTMLURL == nil { 16740 return "" 16741 } 16742 return *p.HTMLURL 16743 } 16744 16745 // GetID returns the ID field if it's non-nil, zero value otherwise. 16746 func (p *PullRequestReview) GetID() int64 { 16747 if p == nil || p.ID == nil { 16748 return 0 16749 } 16750 return *p.ID 16751 } 16752 16753 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 16754 func (p *PullRequestReview) GetNodeID() string { 16755 if p == nil || p.NodeID == nil { 16756 return "" 16757 } 16758 return *p.NodeID 16759 } 16760 16761 // GetPullRequestURL returns the PullRequestURL field if it's non-nil, zero value otherwise. 16762 func (p *PullRequestReview) GetPullRequestURL() string { 16763 if p == nil || p.PullRequestURL == nil { 16764 return "" 16765 } 16766 return *p.PullRequestURL 16767 } 16768 16769 // GetState returns the State field if it's non-nil, zero value otherwise. 16770 func (p *PullRequestReview) GetState() string { 16771 if p == nil || p.State == nil { 16772 return "" 16773 } 16774 return *p.State 16775 } 16776 16777 // GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. 16778 func (p *PullRequestReview) GetSubmittedAt() Timestamp { 16779 if p == nil || p.SubmittedAt == nil { 16780 return Timestamp{} 16781 } 16782 return *p.SubmittedAt 16783 } 16784 16785 // GetUser returns the User field. 16786 func (p *PullRequestReview) GetUser() *User { 16787 if p == nil { 16788 return nil 16789 } 16790 return p.User 16791 } 16792 16793 // GetAction returns the Action field if it's non-nil, zero value otherwise. 16794 func (p *PullRequestReviewCommentEvent) GetAction() string { 16795 if p == nil || p.Action == nil { 16796 return "" 16797 } 16798 return *p.Action 16799 } 16800 16801 // GetChanges returns the Changes field. 16802 func (p *PullRequestReviewCommentEvent) GetChanges() *EditChange { 16803 if p == nil { 16804 return nil 16805 } 16806 return p.Changes 16807 } 16808 16809 // GetComment returns the Comment field. 16810 func (p *PullRequestReviewCommentEvent) GetComment() *PullRequestComment { 16811 if p == nil { 16812 return nil 16813 } 16814 return p.Comment 16815 } 16816 16817 // GetInstallation returns the Installation field. 16818 func (p *PullRequestReviewCommentEvent) GetInstallation() *Installation { 16819 if p == nil { 16820 return nil 16821 } 16822 return p.Installation 16823 } 16824 16825 // GetOrg returns the Org field. 16826 func (p *PullRequestReviewCommentEvent) GetOrg() *Organization { 16827 if p == nil { 16828 return nil 16829 } 16830 return p.Org 16831 } 16832 16833 // GetPullRequest returns the PullRequest field. 16834 func (p *PullRequestReviewCommentEvent) GetPullRequest() *PullRequest { 16835 if p == nil { 16836 return nil 16837 } 16838 return p.PullRequest 16839 } 16840 16841 // GetRepo returns the Repo field. 16842 func (p *PullRequestReviewCommentEvent) GetRepo() *Repository { 16843 if p == nil { 16844 return nil 16845 } 16846 return p.Repo 16847 } 16848 16849 // GetSender returns the Sender field. 16850 func (p *PullRequestReviewCommentEvent) GetSender() *User { 16851 if p == nil { 16852 return nil 16853 } 16854 return p.Sender 16855 } 16856 16857 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 16858 func (p *PullRequestReviewDismissalRequest) GetMessage() string { 16859 if p == nil || p.Message == nil { 16860 return "" 16861 } 16862 return *p.Message 16863 } 16864 16865 // GetAction returns the Action field if it's non-nil, zero value otherwise. 16866 func (p *PullRequestReviewEvent) GetAction() string { 16867 if p == nil || p.Action == nil { 16868 return "" 16869 } 16870 return *p.Action 16871 } 16872 16873 // GetInstallation returns the Installation field. 16874 func (p *PullRequestReviewEvent) GetInstallation() *Installation { 16875 if p == nil { 16876 return nil 16877 } 16878 return p.Installation 16879 } 16880 16881 // GetOrganization returns the Organization field. 16882 func (p *PullRequestReviewEvent) GetOrganization() *Organization { 16883 if p == nil { 16884 return nil 16885 } 16886 return p.Organization 16887 } 16888 16889 // GetPullRequest returns the PullRequest field. 16890 func (p *PullRequestReviewEvent) GetPullRequest() *PullRequest { 16891 if p == nil { 16892 return nil 16893 } 16894 return p.PullRequest 16895 } 16896 16897 // GetRepo returns the Repo field. 16898 func (p *PullRequestReviewEvent) GetRepo() *Repository { 16899 if p == nil { 16900 return nil 16901 } 16902 return p.Repo 16903 } 16904 16905 // GetReview returns the Review field. 16906 func (p *PullRequestReviewEvent) GetReview() *PullRequestReview { 16907 if p == nil { 16908 return nil 16909 } 16910 return p.Review 16911 } 16912 16913 // GetSender returns the Sender field. 16914 func (p *PullRequestReviewEvent) GetSender() *User { 16915 if p == nil { 16916 return nil 16917 } 16918 return p.Sender 16919 } 16920 16921 // GetBody returns the Body field if it's non-nil, zero value otherwise. 16922 func (p *PullRequestReviewRequest) GetBody() string { 16923 if p == nil || p.Body == nil { 16924 return "" 16925 } 16926 return *p.Body 16927 } 16928 16929 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 16930 func (p *PullRequestReviewRequest) GetCommitID() string { 16931 if p == nil || p.CommitID == nil { 16932 return "" 16933 } 16934 return *p.CommitID 16935 } 16936 16937 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 16938 func (p *PullRequestReviewRequest) GetEvent() string { 16939 if p == nil || p.Event == nil { 16940 return "" 16941 } 16942 return *p.Event 16943 } 16944 16945 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 16946 func (p *PullRequestReviewRequest) GetNodeID() string { 16947 if p == nil || p.NodeID == nil { 16948 return "" 16949 } 16950 return *p.NodeID 16951 } 16952 16953 // GetBypassPullRequestAllowances returns the BypassPullRequestAllowances field. 16954 func (p *PullRequestReviewsEnforcement) GetBypassPullRequestAllowances() *BypassPullRequestAllowances { 16955 if p == nil { 16956 return nil 16957 } 16958 return p.BypassPullRequestAllowances 16959 } 16960 16961 // GetDismissalRestrictions returns the DismissalRestrictions field. 16962 func (p *PullRequestReviewsEnforcement) GetDismissalRestrictions() *DismissalRestrictions { 16963 if p == nil { 16964 return nil 16965 } 16966 return p.DismissalRestrictions 16967 } 16968 16969 // GetFrom returns the From field if it's non-nil, zero value otherwise. 16970 func (p *PullRequestReviewsEnforcementLevelChanges) GetFrom() string { 16971 if p == nil || p.From == nil { 16972 return "" 16973 } 16974 return *p.From 16975 } 16976 16977 // GetBypassPullRequestAllowancesRequest returns the BypassPullRequestAllowancesRequest field. 16978 func (p *PullRequestReviewsEnforcementRequest) GetBypassPullRequestAllowancesRequest() *BypassPullRequestAllowancesRequest { 16979 if p == nil { 16980 return nil 16981 } 16982 return p.BypassPullRequestAllowancesRequest 16983 } 16984 16985 // GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. 16986 func (p *PullRequestReviewsEnforcementRequest) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest { 16987 if p == nil { 16988 return nil 16989 } 16990 return p.DismissalRestrictionsRequest 16991 } 16992 16993 // GetRequireLastPushApproval returns the RequireLastPushApproval field if it's non-nil, zero value otherwise. 16994 func (p *PullRequestReviewsEnforcementRequest) GetRequireLastPushApproval() bool { 16995 if p == nil || p.RequireLastPushApproval == nil { 16996 return false 16997 } 16998 return *p.RequireLastPushApproval 16999 } 17000 17001 // GetBypassPullRequestAllowancesRequest returns the BypassPullRequestAllowancesRequest field. 17002 func (p *PullRequestReviewsEnforcementUpdate) GetBypassPullRequestAllowancesRequest() *BypassPullRequestAllowancesRequest { 17003 if p == nil { 17004 return nil 17005 } 17006 return p.BypassPullRequestAllowancesRequest 17007 } 17008 17009 // GetDismissalRestrictionsRequest returns the DismissalRestrictionsRequest field. 17010 func (p *PullRequestReviewsEnforcementUpdate) GetDismissalRestrictionsRequest() *DismissalRestrictionsRequest { 17011 if p == nil { 17012 return nil 17013 } 17014 return p.DismissalRestrictionsRequest 17015 } 17016 17017 // GetDismissStaleReviews returns the DismissStaleReviews field if it's non-nil, zero value otherwise. 17018 func (p *PullRequestReviewsEnforcementUpdate) GetDismissStaleReviews() bool { 17019 if p == nil || p.DismissStaleReviews == nil { 17020 return false 17021 } 17022 return *p.DismissStaleReviews 17023 } 17024 17025 // GetRequireCodeOwnerReviews returns the RequireCodeOwnerReviews field if it's non-nil, zero value otherwise. 17026 func (p *PullRequestReviewsEnforcementUpdate) GetRequireCodeOwnerReviews() bool { 17027 if p == nil || p.RequireCodeOwnerReviews == nil { 17028 return false 17029 } 17030 return *p.RequireCodeOwnerReviews 17031 } 17032 17033 // GetRequireLastPushApproval returns the RequireLastPushApproval field if it's non-nil, zero value otherwise. 17034 func (p *PullRequestReviewsEnforcementUpdate) GetRequireLastPushApproval() bool { 17035 if p == nil || p.RequireLastPushApproval == nil { 17036 return false 17037 } 17038 return *p.RequireLastPushApproval 17039 } 17040 17041 // GetAction returns the Action field if it's non-nil, zero value otherwise. 17042 func (p *PullRequestReviewThreadEvent) GetAction() string { 17043 if p == nil || p.Action == nil { 17044 return "" 17045 } 17046 return *p.Action 17047 } 17048 17049 // GetInstallation returns the Installation field. 17050 func (p *PullRequestReviewThreadEvent) GetInstallation() *Installation { 17051 if p == nil { 17052 return nil 17053 } 17054 return p.Installation 17055 } 17056 17057 // GetOrg returns the Org field. 17058 func (p *PullRequestReviewThreadEvent) GetOrg() *Organization { 17059 if p == nil { 17060 return nil 17061 } 17062 return p.Org 17063 } 17064 17065 // GetPullRequest returns the PullRequest field. 17066 func (p *PullRequestReviewThreadEvent) GetPullRequest() *PullRequest { 17067 if p == nil { 17068 return nil 17069 } 17070 return p.PullRequest 17071 } 17072 17073 // GetRepo returns the Repo field. 17074 func (p *PullRequestReviewThreadEvent) GetRepo() *Repository { 17075 if p == nil { 17076 return nil 17077 } 17078 return p.Repo 17079 } 17080 17081 // GetSender returns the Sender field. 17082 func (p *PullRequestReviewThreadEvent) GetSender() *User { 17083 if p == nil { 17084 return nil 17085 } 17086 return p.Sender 17087 } 17088 17089 // GetThread returns the Thread field. 17090 func (p *PullRequestReviewThreadEvent) GetThread() *PullRequestThread { 17091 if p == nil { 17092 return nil 17093 } 17094 return p.Thread 17095 } 17096 17097 // GetAction returns the Action field if it's non-nil, zero value otherwise. 17098 func (p *PullRequestTargetEvent) GetAction() string { 17099 if p == nil || p.Action == nil { 17100 return "" 17101 } 17102 return *p.Action 17103 } 17104 17105 // GetAfter returns the After field if it's non-nil, zero value otherwise. 17106 func (p *PullRequestTargetEvent) GetAfter() string { 17107 if p == nil || p.After == nil { 17108 return "" 17109 } 17110 return *p.After 17111 } 17112 17113 // GetAssignee returns the Assignee field. 17114 func (p *PullRequestTargetEvent) GetAssignee() *User { 17115 if p == nil { 17116 return nil 17117 } 17118 return p.Assignee 17119 } 17120 17121 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 17122 func (p *PullRequestTargetEvent) GetBefore() string { 17123 if p == nil || p.Before == nil { 17124 return "" 17125 } 17126 return *p.Before 17127 } 17128 17129 // GetChanges returns the Changes field. 17130 func (p *PullRequestTargetEvent) GetChanges() *EditChange { 17131 if p == nil { 17132 return nil 17133 } 17134 return p.Changes 17135 } 17136 17137 // GetInstallation returns the Installation field. 17138 func (p *PullRequestTargetEvent) GetInstallation() *Installation { 17139 if p == nil { 17140 return nil 17141 } 17142 return p.Installation 17143 } 17144 17145 // GetLabel returns the Label field. 17146 func (p *PullRequestTargetEvent) GetLabel() *Label { 17147 if p == nil { 17148 return nil 17149 } 17150 return p.Label 17151 } 17152 17153 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 17154 func (p *PullRequestTargetEvent) GetNumber() int { 17155 if p == nil || p.Number == nil { 17156 return 0 17157 } 17158 return *p.Number 17159 } 17160 17161 // GetOrganization returns the Organization field. 17162 func (p *PullRequestTargetEvent) GetOrganization() *Organization { 17163 if p == nil { 17164 return nil 17165 } 17166 return p.Organization 17167 } 17168 17169 // GetPerformedViaGithubApp returns the PerformedViaGithubApp field. 17170 func (p *PullRequestTargetEvent) GetPerformedViaGithubApp() *App { 17171 if p == nil { 17172 return nil 17173 } 17174 return p.PerformedViaGithubApp 17175 } 17176 17177 // GetPullRequest returns the PullRequest field. 17178 func (p *PullRequestTargetEvent) GetPullRequest() *PullRequest { 17179 if p == nil { 17180 return nil 17181 } 17182 return p.PullRequest 17183 } 17184 17185 // GetRepo returns the Repo field. 17186 func (p *PullRequestTargetEvent) GetRepo() *Repository { 17187 if p == nil { 17188 return nil 17189 } 17190 return p.Repo 17191 } 17192 17193 // GetRequestedReviewer returns the RequestedReviewer field. 17194 func (p *PullRequestTargetEvent) GetRequestedReviewer() *User { 17195 if p == nil { 17196 return nil 17197 } 17198 return p.RequestedReviewer 17199 } 17200 17201 // GetRequestedTeam returns the RequestedTeam field. 17202 func (p *PullRequestTargetEvent) GetRequestedTeam() *Team { 17203 if p == nil { 17204 return nil 17205 } 17206 return p.RequestedTeam 17207 } 17208 17209 // GetSender returns the Sender field. 17210 func (p *PullRequestTargetEvent) GetSender() *User { 17211 if p == nil { 17212 return nil 17213 } 17214 return p.Sender 17215 } 17216 17217 // GetID returns the ID field if it's non-nil, zero value otherwise. 17218 func (p *PullRequestThread) GetID() int64 { 17219 if p == nil || p.ID == nil { 17220 return 0 17221 } 17222 return *p.ID 17223 } 17224 17225 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 17226 func (p *PullRequestThread) GetNodeID() string { 17227 if p == nil || p.NodeID == nil { 17228 return "" 17229 } 17230 return *p.NodeID 17231 } 17232 17233 // GetMergablePulls returns the MergablePulls field if it's non-nil, zero value otherwise. 17234 func (p *PullStats) GetMergablePulls() int { 17235 if p == nil || p.MergablePulls == nil { 17236 return 0 17237 } 17238 return *p.MergablePulls 17239 } 17240 17241 // GetMergedPulls returns the MergedPulls field if it's non-nil, zero value otherwise. 17242 func (p *PullStats) GetMergedPulls() int { 17243 if p == nil || p.MergedPulls == nil { 17244 return 0 17245 } 17246 return *p.MergedPulls 17247 } 17248 17249 // GetTotalPulls returns the TotalPulls field if it's non-nil, zero value otherwise. 17250 func (p *PullStats) GetTotalPulls() int { 17251 if p == nil || p.TotalPulls == nil { 17252 return 0 17253 } 17254 return *p.TotalPulls 17255 } 17256 17257 // GetUnmergablePulls returns the UnmergablePulls field if it's non-nil, zero value otherwise. 17258 func (p *PullStats) GetUnmergablePulls() int { 17259 if p == nil || p.UnmergablePulls == nil { 17260 return 0 17261 } 17262 return *p.UnmergablePulls 17263 } 17264 17265 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 17266 func (p *PunchCard) GetCommits() int { 17267 if p == nil || p.Commits == nil { 17268 return 0 17269 } 17270 return *p.Commits 17271 } 17272 17273 // GetDay returns the Day field if it's non-nil, zero value otherwise. 17274 func (p *PunchCard) GetDay() int { 17275 if p == nil || p.Day == nil { 17276 return 0 17277 } 17278 return *p.Day 17279 } 17280 17281 // GetHour returns the Hour field if it's non-nil, zero value otherwise. 17282 func (p *PunchCard) GetHour() int { 17283 if p == nil || p.Hour == nil { 17284 return 0 17285 } 17286 return *p.Hour 17287 } 17288 17289 // GetAction returns the Action field if it's non-nil, zero value otherwise. 17290 func (p *PushEvent) GetAction() string { 17291 if p == nil || p.Action == nil { 17292 return "" 17293 } 17294 return *p.Action 17295 } 17296 17297 // GetAfter returns the After field if it's non-nil, zero value otherwise. 17298 func (p *PushEvent) GetAfter() string { 17299 if p == nil || p.After == nil { 17300 return "" 17301 } 17302 return *p.After 17303 } 17304 17305 // GetBaseRef returns the BaseRef field if it's non-nil, zero value otherwise. 17306 func (p *PushEvent) GetBaseRef() string { 17307 if p == nil || p.BaseRef == nil { 17308 return "" 17309 } 17310 return *p.BaseRef 17311 } 17312 17313 // GetBefore returns the Before field if it's non-nil, zero value otherwise. 17314 func (p *PushEvent) GetBefore() string { 17315 if p == nil || p.Before == nil { 17316 return "" 17317 } 17318 return *p.Before 17319 } 17320 17321 // GetCommits returns the Commits slice if it's non-nil, nil otherwise. 17322 func (p *PushEvent) GetCommits() []*HeadCommit { 17323 if p == nil || p.Commits == nil { 17324 return nil 17325 } 17326 return p.Commits 17327 } 17328 17329 // GetCompare returns the Compare field if it's non-nil, zero value otherwise. 17330 func (p *PushEvent) GetCompare() string { 17331 if p == nil || p.Compare == nil { 17332 return "" 17333 } 17334 return *p.Compare 17335 } 17336 17337 // GetCreated returns the Created field if it's non-nil, zero value otherwise. 17338 func (p *PushEvent) GetCreated() bool { 17339 if p == nil || p.Created == nil { 17340 return false 17341 } 17342 return *p.Created 17343 } 17344 17345 // GetDeleted returns the Deleted field if it's non-nil, zero value otherwise. 17346 func (p *PushEvent) GetDeleted() bool { 17347 if p == nil || p.Deleted == nil { 17348 return false 17349 } 17350 return *p.Deleted 17351 } 17352 17353 // GetDistinctSize returns the DistinctSize field if it's non-nil, zero value otherwise. 17354 func (p *PushEvent) GetDistinctSize() int { 17355 if p == nil || p.DistinctSize == nil { 17356 return 0 17357 } 17358 return *p.DistinctSize 17359 } 17360 17361 // GetForced returns the Forced field if it's non-nil, zero value otherwise. 17362 func (p *PushEvent) GetForced() bool { 17363 if p == nil || p.Forced == nil { 17364 return false 17365 } 17366 return *p.Forced 17367 } 17368 17369 // GetHead returns the Head field if it's non-nil, zero value otherwise. 17370 func (p *PushEvent) GetHead() string { 17371 if p == nil || p.Head == nil { 17372 return "" 17373 } 17374 return *p.Head 17375 } 17376 17377 // GetHeadCommit returns the HeadCommit field. 17378 func (p *PushEvent) GetHeadCommit() *HeadCommit { 17379 if p == nil { 17380 return nil 17381 } 17382 return p.HeadCommit 17383 } 17384 17385 // GetInstallation returns the Installation field. 17386 func (p *PushEvent) GetInstallation() *Installation { 17387 if p == nil { 17388 return nil 17389 } 17390 return p.Installation 17391 } 17392 17393 // GetOrganization returns the Organization field. 17394 func (p *PushEvent) GetOrganization() *Organization { 17395 if p == nil { 17396 return nil 17397 } 17398 return p.Organization 17399 } 17400 17401 // GetPusher returns the Pusher field. 17402 func (p *PushEvent) GetPusher() *CommitAuthor { 17403 if p == nil { 17404 return nil 17405 } 17406 return p.Pusher 17407 } 17408 17409 // GetPushID returns the PushID field if it's non-nil, zero value otherwise. 17410 func (p *PushEvent) GetPushID() int64 { 17411 if p == nil || p.PushID == nil { 17412 return 0 17413 } 17414 return *p.PushID 17415 } 17416 17417 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 17418 func (p *PushEvent) GetRef() string { 17419 if p == nil || p.Ref == nil { 17420 return "" 17421 } 17422 return *p.Ref 17423 } 17424 17425 // GetRepo returns the Repo field. 17426 func (p *PushEvent) GetRepo() *PushEventRepository { 17427 if p == nil { 17428 return nil 17429 } 17430 return p.Repo 17431 } 17432 17433 // GetSender returns the Sender field. 17434 func (p *PushEvent) GetSender() *User { 17435 if p == nil { 17436 return nil 17437 } 17438 return p.Sender 17439 } 17440 17441 // GetSize returns the Size field if it's non-nil, zero value otherwise. 17442 func (p *PushEvent) GetSize() int { 17443 if p == nil || p.Size == nil { 17444 return 0 17445 } 17446 return *p.Size 17447 } 17448 17449 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 17450 func (p *PushEventRepoOwner) GetEmail() string { 17451 if p == nil || p.Email == nil { 17452 return "" 17453 } 17454 return *p.Email 17455 } 17456 17457 // GetName returns the Name field if it's non-nil, zero value otherwise. 17458 func (p *PushEventRepoOwner) GetName() string { 17459 if p == nil || p.Name == nil { 17460 return "" 17461 } 17462 return *p.Name 17463 } 17464 17465 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 17466 func (p *PushEventRepository) GetArchived() bool { 17467 if p == nil || p.Archived == nil { 17468 return false 17469 } 17470 return *p.Archived 17471 } 17472 17473 // GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 17474 func (p *PushEventRepository) GetArchiveURL() string { 17475 if p == nil || p.ArchiveURL == nil { 17476 return "" 17477 } 17478 return *p.ArchiveURL 17479 } 17480 17481 // GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 17482 func (p *PushEventRepository) GetCloneURL() string { 17483 if p == nil || p.CloneURL == nil { 17484 return "" 17485 } 17486 return *p.CloneURL 17487 } 17488 17489 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 17490 func (p *PushEventRepository) GetCreatedAt() Timestamp { 17491 if p == nil || p.CreatedAt == nil { 17492 return Timestamp{} 17493 } 17494 return *p.CreatedAt 17495 } 17496 17497 // GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 17498 func (p *PushEventRepository) GetDefaultBranch() string { 17499 if p == nil || p.DefaultBranch == nil { 17500 return "" 17501 } 17502 return *p.DefaultBranch 17503 } 17504 17505 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 17506 func (p *PushEventRepository) GetDescription() string { 17507 if p == nil || p.Description == nil { 17508 return "" 17509 } 17510 return *p.Description 17511 } 17512 17513 // GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. 17514 func (p *PushEventRepository) GetDisabled() bool { 17515 if p == nil || p.Disabled == nil { 17516 return false 17517 } 17518 return *p.Disabled 17519 } 17520 17521 // GetFork returns the Fork field if it's non-nil, zero value otherwise. 17522 func (p *PushEventRepository) GetFork() bool { 17523 if p == nil || p.Fork == nil { 17524 return false 17525 } 17526 return *p.Fork 17527 } 17528 17529 // GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 17530 func (p *PushEventRepository) GetForksCount() int { 17531 if p == nil || p.ForksCount == nil { 17532 return 0 17533 } 17534 return *p.ForksCount 17535 } 17536 17537 // GetFullName returns the FullName field if it's non-nil, zero value otherwise. 17538 func (p *PushEventRepository) GetFullName() string { 17539 if p == nil || p.FullName == nil { 17540 return "" 17541 } 17542 return *p.FullName 17543 } 17544 17545 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 17546 func (p *PushEventRepository) GetGitURL() string { 17547 if p == nil || p.GitURL == nil { 17548 return "" 17549 } 17550 return *p.GitURL 17551 } 17552 17553 // GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 17554 func (p *PushEventRepository) GetHasDownloads() bool { 17555 if p == nil || p.HasDownloads == nil { 17556 return false 17557 } 17558 return *p.HasDownloads 17559 } 17560 17561 // GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 17562 func (p *PushEventRepository) GetHasIssues() bool { 17563 if p == nil || p.HasIssues == nil { 17564 return false 17565 } 17566 return *p.HasIssues 17567 } 17568 17569 // GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 17570 func (p *PushEventRepository) GetHasPages() bool { 17571 if p == nil || p.HasPages == nil { 17572 return false 17573 } 17574 return *p.HasPages 17575 } 17576 17577 // GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 17578 func (p *PushEventRepository) GetHasWiki() bool { 17579 if p == nil || p.HasWiki == nil { 17580 return false 17581 } 17582 return *p.HasWiki 17583 } 17584 17585 // GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 17586 func (p *PushEventRepository) GetHomepage() string { 17587 if p == nil || p.Homepage == nil { 17588 return "" 17589 } 17590 return *p.Homepage 17591 } 17592 17593 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 17594 func (p *PushEventRepository) GetHTMLURL() string { 17595 if p == nil || p.HTMLURL == nil { 17596 return "" 17597 } 17598 return *p.HTMLURL 17599 } 17600 17601 // GetID returns the ID field if it's non-nil, zero value otherwise. 17602 func (p *PushEventRepository) GetID() int64 { 17603 if p == nil || p.ID == nil { 17604 return 0 17605 } 17606 return *p.ID 17607 } 17608 17609 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 17610 func (p *PushEventRepository) GetLanguage() string { 17611 if p == nil || p.Language == nil { 17612 return "" 17613 } 17614 return *p.Language 17615 } 17616 17617 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 17618 func (p *PushEventRepository) GetMasterBranch() string { 17619 if p == nil || p.MasterBranch == nil { 17620 return "" 17621 } 17622 return *p.MasterBranch 17623 } 17624 17625 // GetName returns the Name field if it's non-nil, zero value otherwise. 17626 func (p *PushEventRepository) GetName() string { 17627 if p == nil || p.Name == nil { 17628 return "" 17629 } 17630 return *p.Name 17631 } 17632 17633 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 17634 func (p *PushEventRepository) GetNodeID() string { 17635 if p == nil || p.NodeID == nil { 17636 return "" 17637 } 17638 return *p.NodeID 17639 } 17640 17641 // GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 17642 func (p *PushEventRepository) GetOpenIssuesCount() int { 17643 if p == nil || p.OpenIssuesCount == nil { 17644 return 0 17645 } 17646 return *p.OpenIssuesCount 17647 } 17648 17649 // GetOrganization returns the Organization field if it's non-nil, zero value otherwise. 17650 func (p *PushEventRepository) GetOrganization() string { 17651 if p == nil || p.Organization == nil { 17652 return "" 17653 } 17654 return *p.Organization 17655 } 17656 17657 // GetOwner returns the Owner field. 17658 func (p *PushEventRepository) GetOwner() *User { 17659 if p == nil { 17660 return nil 17661 } 17662 return p.Owner 17663 } 17664 17665 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 17666 func (p *PushEventRepository) GetPrivate() bool { 17667 if p == nil || p.Private == nil { 17668 return false 17669 } 17670 return *p.Private 17671 } 17672 17673 // GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 17674 func (p *PushEventRepository) GetPullsURL() string { 17675 if p == nil || p.PullsURL == nil { 17676 return "" 17677 } 17678 return *p.PullsURL 17679 } 17680 17681 // GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 17682 func (p *PushEventRepository) GetPushedAt() Timestamp { 17683 if p == nil || p.PushedAt == nil { 17684 return Timestamp{} 17685 } 17686 return *p.PushedAt 17687 } 17688 17689 // GetSize returns the Size field if it's non-nil, zero value otherwise. 17690 func (p *PushEventRepository) GetSize() int { 17691 if p == nil || p.Size == nil { 17692 return 0 17693 } 17694 return *p.Size 17695 } 17696 17697 // GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 17698 func (p *PushEventRepository) GetSSHURL() string { 17699 if p == nil || p.SSHURL == nil { 17700 return "" 17701 } 17702 return *p.SSHURL 17703 } 17704 17705 // GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 17706 func (p *PushEventRepository) GetStargazersCount() int { 17707 if p == nil || p.StargazersCount == nil { 17708 return 0 17709 } 17710 return *p.StargazersCount 17711 } 17712 17713 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 17714 func (p *PushEventRepository) GetStatusesURL() string { 17715 if p == nil || p.StatusesURL == nil { 17716 return "" 17717 } 17718 return *p.StatusesURL 17719 } 17720 17721 // GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 17722 func (p *PushEventRepository) GetSVNURL() string { 17723 if p == nil || p.SVNURL == nil { 17724 return "" 17725 } 17726 return *p.SVNURL 17727 } 17728 17729 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 17730 func (p *PushEventRepository) GetUpdatedAt() Timestamp { 17731 if p == nil || p.UpdatedAt == nil { 17732 return Timestamp{} 17733 } 17734 return *p.UpdatedAt 17735 } 17736 17737 // GetURL returns the URL field if it's non-nil, zero value otherwise. 17738 func (p *PushEventRepository) GetURL() string { 17739 if p == nil || p.URL == nil { 17740 return "" 17741 } 17742 return *p.URL 17743 } 17744 17745 // GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 17746 func (p *PushEventRepository) GetWatchersCount() int { 17747 if p == nil || p.WatchersCount == nil { 17748 return 0 17749 } 17750 return *p.WatchersCount 17751 } 17752 17753 // GetActionsRunnerRegistration returns the ActionsRunnerRegistration field. 17754 func (r *RateLimits) GetActionsRunnerRegistration() *Rate { 17755 if r == nil { 17756 return nil 17757 } 17758 return r.ActionsRunnerRegistration 17759 } 17760 17761 // GetCodeScanningUpload returns the CodeScanningUpload field. 17762 func (r *RateLimits) GetCodeScanningUpload() *Rate { 17763 if r == nil { 17764 return nil 17765 } 17766 return r.CodeScanningUpload 17767 } 17768 17769 // GetCore returns the Core field. 17770 func (r *RateLimits) GetCore() *Rate { 17771 if r == nil { 17772 return nil 17773 } 17774 return r.Core 17775 } 17776 17777 // GetGraphQL returns the GraphQL field. 17778 func (r *RateLimits) GetGraphQL() *Rate { 17779 if r == nil { 17780 return nil 17781 } 17782 return r.GraphQL 17783 } 17784 17785 // GetIntegrationManifest returns the IntegrationManifest field. 17786 func (r *RateLimits) GetIntegrationManifest() *Rate { 17787 if r == nil { 17788 return nil 17789 } 17790 return r.IntegrationManifest 17791 } 17792 17793 // GetSCIM returns the SCIM field. 17794 func (r *RateLimits) GetSCIM() *Rate { 17795 if r == nil { 17796 return nil 17797 } 17798 return r.SCIM 17799 } 17800 17801 // GetSearch returns the Search field. 17802 func (r *RateLimits) GetSearch() *Rate { 17803 if r == nil { 17804 return nil 17805 } 17806 return r.Search 17807 } 17808 17809 // GetSourceImport returns the SourceImport field. 17810 func (r *RateLimits) GetSourceImport() *Rate { 17811 if r == nil { 17812 return nil 17813 } 17814 return r.SourceImport 17815 } 17816 17817 // GetContent returns the Content field if it's non-nil, zero value otherwise. 17818 func (r *Reaction) GetContent() string { 17819 if r == nil || r.Content == nil { 17820 return "" 17821 } 17822 return *r.Content 17823 } 17824 17825 // GetID returns the ID field if it's non-nil, zero value otherwise. 17826 func (r *Reaction) GetID() int64 { 17827 if r == nil || r.ID == nil { 17828 return 0 17829 } 17830 return *r.ID 17831 } 17832 17833 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 17834 func (r *Reaction) GetNodeID() string { 17835 if r == nil || r.NodeID == nil { 17836 return "" 17837 } 17838 return *r.NodeID 17839 } 17840 17841 // GetUser returns the User field. 17842 func (r *Reaction) GetUser() *User { 17843 if r == nil { 17844 return nil 17845 } 17846 return r.User 17847 } 17848 17849 // GetConfused returns the Confused field if it's non-nil, zero value otherwise. 17850 func (r *Reactions) GetConfused() int { 17851 if r == nil || r.Confused == nil { 17852 return 0 17853 } 17854 return *r.Confused 17855 } 17856 17857 // GetEyes returns the Eyes field if it's non-nil, zero value otherwise. 17858 func (r *Reactions) GetEyes() int { 17859 if r == nil || r.Eyes == nil { 17860 return 0 17861 } 17862 return *r.Eyes 17863 } 17864 17865 // GetHeart returns the Heart field if it's non-nil, zero value otherwise. 17866 func (r *Reactions) GetHeart() int { 17867 if r == nil || r.Heart == nil { 17868 return 0 17869 } 17870 return *r.Heart 17871 } 17872 17873 // GetHooray returns the Hooray field if it's non-nil, zero value otherwise. 17874 func (r *Reactions) GetHooray() int { 17875 if r == nil || r.Hooray == nil { 17876 return 0 17877 } 17878 return *r.Hooray 17879 } 17880 17881 // GetLaugh returns the Laugh field if it's non-nil, zero value otherwise. 17882 func (r *Reactions) GetLaugh() int { 17883 if r == nil || r.Laugh == nil { 17884 return 0 17885 } 17886 return *r.Laugh 17887 } 17888 17889 // GetMinusOne returns the MinusOne field if it's non-nil, zero value otherwise. 17890 func (r *Reactions) GetMinusOne() int { 17891 if r == nil || r.MinusOne == nil { 17892 return 0 17893 } 17894 return *r.MinusOne 17895 } 17896 17897 // GetPlusOne returns the PlusOne field if it's non-nil, zero value otherwise. 17898 func (r *Reactions) GetPlusOne() int { 17899 if r == nil || r.PlusOne == nil { 17900 return 0 17901 } 17902 return *r.PlusOne 17903 } 17904 17905 // GetRocket returns the Rocket field if it's non-nil, zero value otherwise. 17906 func (r *Reactions) GetRocket() int { 17907 if r == nil || r.Rocket == nil { 17908 return 0 17909 } 17910 return *r.Rocket 17911 } 17912 17913 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 17914 func (r *Reactions) GetTotalCount() int { 17915 if r == nil || r.TotalCount == nil { 17916 return 0 17917 } 17918 return *r.TotalCount 17919 } 17920 17921 // GetURL returns the URL field if it's non-nil, zero value otherwise. 17922 func (r *Reactions) GetURL() string { 17923 if r == nil || r.URL == nil { 17924 return "" 17925 } 17926 return *r.URL 17927 } 17928 17929 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 17930 func (r *Reference) GetNodeID() string { 17931 if r == nil || r.NodeID == nil { 17932 return "" 17933 } 17934 return *r.NodeID 17935 } 17936 17937 // GetObject returns the Object field. 17938 func (r *Reference) GetObject() *GitObject { 17939 if r == nil { 17940 return nil 17941 } 17942 return r.Object 17943 } 17944 17945 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 17946 func (r *Reference) GetRef() string { 17947 if r == nil || r.Ref == nil { 17948 return "" 17949 } 17950 return *r.Ref 17951 } 17952 17953 // GetURL returns the URL field if it's non-nil, zero value otherwise. 17954 func (r *Reference) GetURL() string { 17955 if r == nil || r.URL == nil { 17956 return "" 17957 } 17958 return *r.URL 17959 } 17960 17961 // GetPath returns the Path field if it's non-nil, zero value otherwise. 17962 func (r *ReferencedWorkflow) GetPath() string { 17963 if r == nil || r.Path == nil { 17964 return "" 17965 } 17966 return *r.Path 17967 } 17968 17969 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 17970 func (r *ReferencedWorkflow) GetRef() string { 17971 if r == nil || r.Ref == nil { 17972 return "" 17973 } 17974 return *r.Ref 17975 } 17976 17977 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 17978 func (r *ReferencedWorkflow) GetSHA() string { 17979 if r == nil || r.SHA == nil { 17980 return "" 17981 } 17982 return *r.SHA 17983 } 17984 17985 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 17986 func (r *RegistrationToken) GetExpiresAt() Timestamp { 17987 if r == nil || r.ExpiresAt == nil { 17988 return Timestamp{} 17989 } 17990 return *r.ExpiresAt 17991 } 17992 17993 // GetToken returns the Token field if it's non-nil, zero value otherwise. 17994 func (r *RegistrationToken) GetToken() string { 17995 if r == nil || r.Token == nil { 17996 return "" 17997 } 17998 return *r.Token 17999 } 18000 18001 // GetBrowserDownloadURL returns the BrowserDownloadURL field if it's non-nil, zero value otherwise. 18002 func (r *ReleaseAsset) GetBrowserDownloadURL() string { 18003 if r == nil || r.BrowserDownloadURL == nil { 18004 return "" 18005 } 18006 return *r.BrowserDownloadURL 18007 } 18008 18009 // GetContentType returns the ContentType field if it's non-nil, zero value otherwise. 18010 func (r *ReleaseAsset) GetContentType() string { 18011 if r == nil || r.ContentType == nil { 18012 return "" 18013 } 18014 return *r.ContentType 18015 } 18016 18017 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 18018 func (r *ReleaseAsset) GetCreatedAt() Timestamp { 18019 if r == nil || r.CreatedAt == nil { 18020 return Timestamp{} 18021 } 18022 return *r.CreatedAt 18023 } 18024 18025 // GetDownloadCount returns the DownloadCount field if it's non-nil, zero value otherwise. 18026 func (r *ReleaseAsset) GetDownloadCount() int { 18027 if r == nil || r.DownloadCount == nil { 18028 return 0 18029 } 18030 return *r.DownloadCount 18031 } 18032 18033 // GetID returns the ID field if it's non-nil, zero value otherwise. 18034 func (r *ReleaseAsset) GetID() int64 { 18035 if r == nil || r.ID == nil { 18036 return 0 18037 } 18038 return *r.ID 18039 } 18040 18041 // GetLabel returns the Label field if it's non-nil, zero value otherwise. 18042 func (r *ReleaseAsset) GetLabel() string { 18043 if r == nil || r.Label == nil { 18044 return "" 18045 } 18046 return *r.Label 18047 } 18048 18049 // GetName returns the Name field if it's non-nil, zero value otherwise. 18050 func (r *ReleaseAsset) GetName() string { 18051 if r == nil || r.Name == nil { 18052 return "" 18053 } 18054 return *r.Name 18055 } 18056 18057 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 18058 func (r *ReleaseAsset) GetNodeID() string { 18059 if r == nil || r.NodeID == nil { 18060 return "" 18061 } 18062 return *r.NodeID 18063 } 18064 18065 // GetSize returns the Size field if it's non-nil, zero value otherwise. 18066 func (r *ReleaseAsset) GetSize() int { 18067 if r == nil || r.Size == nil { 18068 return 0 18069 } 18070 return *r.Size 18071 } 18072 18073 // GetState returns the State field if it's non-nil, zero value otherwise. 18074 func (r *ReleaseAsset) GetState() string { 18075 if r == nil || r.State == nil { 18076 return "" 18077 } 18078 return *r.State 18079 } 18080 18081 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 18082 func (r *ReleaseAsset) GetUpdatedAt() Timestamp { 18083 if r == nil || r.UpdatedAt == nil { 18084 return Timestamp{} 18085 } 18086 return *r.UpdatedAt 18087 } 18088 18089 // GetUploader returns the Uploader field. 18090 func (r *ReleaseAsset) GetUploader() *User { 18091 if r == nil { 18092 return nil 18093 } 18094 return r.Uploader 18095 } 18096 18097 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18098 func (r *ReleaseAsset) GetURL() string { 18099 if r == nil || r.URL == nil { 18100 return "" 18101 } 18102 return *r.URL 18103 } 18104 18105 // GetAction returns the Action field if it's non-nil, zero value otherwise. 18106 func (r *ReleaseEvent) GetAction() string { 18107 if r == nil || r.Action == nil { 18108 return "" 18109 } 18110 return *r.Action 18111 } 18112 18113 // GetInstallation returns the Installation field. 18114 func (r *ReleaseEvent) GetInstallation() *Installation { 18115 if r == nil { 18116 return nil 18117 } 18118 return r.Installation 18119 } 18120 18121 // GetOrg returns the Org field. 18122 func (r *ReleaseEvent) GetOrg() *Organization { 18123 if r == nil { 18124 return nil 18125 } 18126 return r.Org 18127 } 18128 18129 // GetRelease returns the Release field. 18130 func (r *ReleaseEvent) GetRelease() *RepositoryRelease { 18131 if r == nil { 18132 return nil 18133 } 18134 return r.Release 18135 } 18136 18137 // GetRepo returns the Repo field. 18138 func (r *ReleaseEvent) GetRepo() *Repository { 18139 if r == nil { 18140 return nil 18141 } 18142 return r.Repo 18143 } 18144 18145 // GetSender returns the Sender field. 18146 func (r *ReleaseEvent) GetSender() *User { 18147 if r == nil { 18148 return nil 18149 } 18150 return r.Sender 18151 } 18152 18153 // GetExpiresAt returns the ExpiresAt field if it's non-nil, zero value otherwise. 18154 func (r *RemoveToken) GetExpiresAt() Timestamp { 18155 if r == nil || r.ExpiresAt == nil { 18156 return Timestamp{} 18157 } 18158 return *r.ExpiresAt 18159 } 18160 18161 // GetToken returns the Token field if it's non-nil, zero value otherwise. 18162 func (r *RemoveToken) GetToken() string { 18163 if r == nil || r.Token == nil { 18164 return "" 18165 } 18166 return *r.Token 18167 } 18168 18169 // GetFrom returns the From field if it's non-nil, zero value otherwise. 18170 func (r *Rename) GetFrom() string { 18171 if r == nil || r.From == nil { 18172 return "" 18173 } 18174 return *r.From 18175 } 18176 18177 // GetTo returns the To field if it's non-nil, zero value otherwise. 18178 func (r *Rename) GetTo() string { 18179 if r == nil || r.To == nil { 18180 return "" 18181 } 18182 return *r.To 18183 } 18184 18185 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 18186 func (r *RenameOrgResponse) GetMessage() string { 18187 if r == nil || r.Message == nil { 18188 return "" 18189 } 18190 return *r.Message 18191 } 18192 18193 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18194 func (r *RenameOrgResponse) GetURL() string { 18195 if r == nil || r.URL == nil { 18196 return "" 18197 } 18198 return *r.URL 18199 } 18200 18201 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 18202 func (r *RepoAdvisoryCredit) GetLogin() string { 18203 if r == nil || r.Login == nil { 18204 return "" 18205 } 18206 return *r.Login 18207 } 18208 18209 // GetType returns the Type field if it's non-nil, zero value otherwise. 18210 func (r *RepoAdvisoryCredit) GetType() string { 18211 if r == nil || r.Type == nil { 18212 return "" 18213 } 18214 return *r.Type 18215 } 18216 18217 // GetState returns the State field if it's non-nil, zero value otherwise. 18218 func (r *RepoAdvisoryCreditDetailed) GetState() string { 18219 if r == nil || r.State == nil { 18220 return "" 18221 } 18222 return *r.State 18223 } 18224 18225 // GetType returns the Type field if it's non-nil, zero value otherwise. 18226 func (r *RepoAdvisoryCreditDetailed) GetType() string { 18227 if r == nil || r.Type == nil { 18228 return "" 18229 } 18230 return *r.Type 18231 } 18232 18233 // GetUser returns the User field. 18234 func (r *RepoAdvisoryCreditDetailed) GetUser() *User { 18235 if r == nil { 18236 return nil 18237 } 18238 return r.User 18239 } 18240 18241 // GetDownloadLocation returns the DownloadLocation field if it's non-nil, zero value otherwise. 18242 func (r *RepoDependencies) GetDownloadLocation() string { 18243 if r == nil || r.DownloadLocation == nil { 18244 return "" 18245 } 18246 return *r.DownloadLocation 18247 } 18248 18249 // GetFilesAnalyzed returns the FilesAnalyzed field if it's non-nil, zero value otherwise. 18250 func (r *RepoDependencies) GetFilesAnalyzed() bool { 18251 if r == nil || r.FilesAnalyzed == nil { 18252 return false 18253 } 18254 return *r.FilesAnalyzed 18255 } 18256 18257 // GetLicenseConcluded returns the LicenseConcluded field if it's non-nil, zero value otherwise. 18258 func (r *RepoDependencies) GetLicenseConcluded() string { 18259 if r == nil || r.LicenseConcluded == nil { 18260 return "" 18261 } 18262 return *r.LicenseConcluded 18263 } 18264 18265 // GetLicenseDeclared returns the LicenseDeclared field if it's non-nil, zero value otherwise. 18266 func (r *RepoDependencies) GetLicenseDeclared() string { 18267 if r == nil || r.LicenseDeclared == nil { 18268 return "" 18269 } 18270 return *r.LicenseDeclared 18271 } 18272 18273 // GetName returns the Name field if it's non-nil, zero value otherwise. 18274 func (r *RepoDependencies) GetName() string { 18275 if r == nil || r.Name == nil { 18276 return "" 18277 } 18278 return *r.Name 18279 } 18280 18281 // GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. 18282 func (r *RepoDependencies) GetSPDXID() string { 18283 if r == nil || r.SPDXID == nil { 18284 return "" 18285 } 18286 return *r.SPDXID 18287 } 18288 18289 // GetVersionInfo returns the VersionInfo field if it's non-nil, zero value otherwise. 18290 func (r *RepoDependencies) GetVersionInfo() string { 18291 if r == nil || r.VersionInfo == nil { 18292 return "" 18293 } 18294 return *r.VersionInfo 18295 } 18296 18297 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 18298 func (r *RepoMergeUpstreamRequest) GetBranch() string { 18299 if r == nil || r.Branch == nil { 18300 return "" 18301 } 18302 return *r.Branch 18303 } 18304 18305 // GetBaseBranch returns the BaseBranch field if it's non-nil, zero value otherwise. 18306 func (r *RepoMergeUpstreamResult) GetBaseBranch() string { 18307 if r == nil || r.BaseBranch == nil { 18308 return "" 18309 } 18310 return *r.BaseBranch 18311 } 18312 18313 // GetMergeType returns the MergeType field if it's non-nil, zero value otherwise. 18314 func (r *RepoMergeUpstreamResult) GetMergeType() string { 18315 if r == nil || r.MergeType == nil { 18316 return "" 18317 } 18318 return *r.MergeType 18319 } 18320 18321 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 18322 func (r *RepoMergeUpstreamResult) GetMessage() string { 18323 if r == nil || r.Message == nil { 18324 return "" 18325 } 18326 return *r.Message 18327 } 18328 18329 // GetFrom returns the From field if it's non-nil, zero value otherwise. 18330 func (r *RepoName) GetFrom() string { 18331 if r == nil || r.From == nil { 18332 return "" 18333 } 18334 return *r.From 18335 } 18336 18337 // GetBadgeURL returns the BadgeURL field if it's non-nil, zero value otherwise. 18338 func (r *RepoRequiredWorkflow) GetBadgeURL() string { 18339 if r == nil || r.BadgeURL == nil { 18340 return "" 18341 } 18342 return *r.BadgeURL 18343 } 18344 18345 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 18346 func (r *RepoRequiredWorkflow) GetCreatedAt() Timestamp { 18347 if r == nil || r.CreatedAt == nil { 18348 return Timestamp{} 18349 } 18350 return *r.CreatedAt 18351 } 18352 18353 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 18354 func (r *RepoRequiredWorkflow) GetHTMLURL() string { 18355 if r == nil || r.HTMLURL == nil { 18356 return "" 18357 } 18358 return *r.HTMLURL 18359 } 18360 18361 // GetID returns the ID field if it's non-nil, zero value otherwise. 18362 func (r *RepoRequiredWorkflow) GetID() int64 { 18363 if r == nil || r.ID == nil { 18364 return 0 18365 } 18366 return *r.ID 18367 } 18368 18369 // GetName returns the Name field if it's non-nil, zero value otherwise. 18370 func (r *RepoRequiredWorkflow) GetName() string { 18371 if r == nil || r.Name == nil { 18372 return "" 18373 } 18374 return *r.Name 18375 } 18376 18377 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 18378 func (r *RepoRequiredWorkflow) GetNodeID() string { 18379 if r == nil || r.NodeID == nil { 18380 return "" 18381 } 18382 return *r.NodeID 18383 } 18384 18385 // GetPath returns the Path field if it's non-nil, zero value otherwise. 18386 func (r *RepoRequiredWorkflow) GetPath() string { 18387 if r == nil || r.Path == nil { 18388 return "" 18389 } 18390 return *r.Path 18391 } 18392 18393 // GetSourceRepository returns the SourceRepository field. 18394 func (r *RepoRequiredWorkflow) GetSourceRepository() *Repository { 18395 if r == nil { 18396 return nil 18397 } 18398 return r.SourceRepository 18399 } 18400 18401 // GetState returns the State field if it's non-nil, zero value otherwise. 18402 func (r *RepoRequiredWorkflow) GetState() string { 18403 if r == nil || r.State == nil { 18404 return "" 18405 } 18406 return *r.State 18407 } 18408 18409 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 18410 func (r *RepoRequiredWorkflow) GetUpdatedAt() Timestamp { 18411 if r == nil || r.UpdatedAt == nil { 18412 return Timestamp{} 18413 } 18414 return *r.UpdatedAt 18415 } 18416 18417 // GetURL returns the URL field if it's non-nil, zero value otherwise. 18418 func (r *RepoRequiredWorkflow) GetURL() string { 18419 if r == nil || r.URL == nil { 18420 return "" 18421 } 18422 return *r.URL 18423 } 18424 18425 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 18426 func (r *RepoRequiredWorkflows) GetTotalCount() int { 18427 if r == nil || r.TotalCount == nil { 18428 return 0 18429 } 18430 return *r.TotalCount 18431 } 18432 18433 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 18434 func (r *RepositoriesSearchResult) GetIncompleteResults() bool { 18435 if r == nil || r.IncompleteResults == nil { 18436 return false 18437 } 18438 return *r.IncompleteResults 18439 } 18440 18441 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 18442 func (r *RepositoriesSearchResult) GetTotal() int { 18443 if r == nil || r.Total == nil { 18444 return 0 18445 } 18446 return *r.Total 18447 } 18448 18449 // GetAllowAutoMerge returns the AllowAutoMerge field if it's non-nil, zero value otherwise. 18450 func (r *Repository) GetAllowAutoMerge() bool { 18451 if r == nil || r.AllowAutoMerge == nil { 18452 return false 18453 } 18454 return *r.AllowAutoMerge 18455 } 18456 18457 // GetAllowForking returns the AllowForking field if it's non-nil, zero value otherwise. 18458 func (r *Repository) GetAllowForking() bool { 18459 if r == nil || r.AllowForking == nil { 18460 return false 18461 } 18462 return *r.AllowForking 18463 } 18464 18465 // GetAllowMergeCommit returns the AllowMergeCommit field if it's non-nil, zero value otherwise. 18466 func (r *Repository) GetAllowMergeCommit() bool { 18467 if r == nil || r.AllowMergeCommit == nil { 18468 return false 18469 } 18470 return *r.AllowMergeCommit 18471 } 18472 18473 // GetAllowRebaseMerge returns the AllowRebaseMerge field if it's non-nil, zero value otherwise. 18474 func (r *Repository) GetAllowRebaseMerge() bool { 18475 if r == nil || r.AllowRebaseMerge == nil { 18476 return false 18477 } 18478 return *r.AllowRebaseMerge 18479 } 18480 18481 // GetAllowSquashMerge returns the AllowSquashMerge field if it's non-nil, zero value otherwise. 18482 func (r *Repository) GetAllowSquashMerge() bool { 18483 if r == nil || r.AllowSquashMerge == nil { 18484 return false 18485 } 18486 return *r.AllowSquashMerge 18487 } 18488 18489 // GetAllowUpdateBranch returns the AllowUpdateBranch field if it's non-nil, zero value otherwise. 18490 func (r *Repository) GetAllowUpdateBranch() bool { 18491 if r == nil || r.AllowUpdateBranch == nil { 18492 return false 18493 } 18494 return *r.AllowUpdateBranch 18495 } 18496 18497 // GetArchived returns the Archived field if it's non-nil, zero value otherwise. 18498 func (r *Repository) GetArchived() bool { 18499 if r == nil || r.Archived == nil { 18500 return false 18501 } 18502 return *r.Archived 18503 } 18504 18505 // GetArchiveURL returns the ArchiveURL field if it's non-nil, zero value otherwise. 18506 func (r *Repository) GetArchiveURL() string { 18507 if r == nil || r.ArchiveURL == nil { 18508 return "" 18509 } 18510 return *r.ArchiveURL 18511 } 18512 18513 // GetAssigneesURL returns the AssigneesURL field if it's non-nil, zero value otherwise. 18514 func (r *Repository) GetAssigneesURL() string { 18515 if r == nil || r.AssigneesURL == nil { 18516 return "" 18517 } 18518 return *r.AssigneesURL 18519 } 18520 18521 // GetAutoInit returns the AutoInit field if it's non-nil, zero value otherwise. 18522 func (r *Repository) GetAutoInit() bool { 18523 if r == nil || r.AutoInit == nil { 18524 return false 18525 } 18526 return *r.AutoInit 18527 } 18528 18529 // GetBlobsURL returns the BlobsURL field if it's non-nil, zero value otherwise. 18530 func (r *Repository) GetBlobsURL() string { 18531 if r == nil || r.BlobsURL == nil { 18532 return "" 18533 } 18534 return *r.BlobsURL 18535 } 18536 18537 // GetBranchesURL returns the BranchesURL field if it's non-nil, zero value otherwise. 18538 func (r *Repository) GetBranchesURL() string { 18539 if r == nil || r.BranchesURL == nil { 18540 return "" 18541 } 18542 return *r.BranchesURL 18543 } 18544 18545 // GetCloneURL returns the CloneURL field if it's non-nil, zero value otherwise. 18546 func (r *Repository) GetCloneURL() string { 18547 if r == nil || r.CloneURL == nil { 18548 return "" 18549 } 18550 return *r.CloneURL 18551 } 18552 18553 // GetCodeOfConduct returns the CodeOfConduct field. 18554 func (r *Repository) GetCodeOfConduct() *CodeOfConduct { 18555 if r == nil { 18556 return nil 18557 } 18558 return r.CodeOfConduct 18559 } 18560 18561 // GetCollaboratorsURL returns the CollaboratorsURL field if it's non-nil, zero value otherwise. 18562 func (r *Repository) GetCollaboratorsURL() string { 18563 if r == nil || r.CollaboratorsURL == nil { 18564 return "" 18565 } 18566 return *r.CollaboratorsURL 18567 } 18568 18569 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 18570 func (r *Repository) GetCommentsURL() string { 18571 if r == nil || r.CommentsURL == nil { 18572 return "" 18573 } 18574 return *r.CommentsURL 18575 } 18576 18577 // GetCommitsURL returns the CommitsURL field if it's non-nil, zero value otherwise. 18578 func (r *Repository) GetCommitsURL() string { 18579 if r == nil || r.CommitsURL == nil { 18580 return "" 18581 } 18582 return *r.CommitsURL 18583 } 18584 18585 // GetCompareURL returns the CompareURL field if it's non-nil, zero value otherwise. 18586 func (r *Repository) GetCompareURL() string { 18587 if r == nil || r.CompareURL == nil { 18588 return "" 18589 } 18590 return *r.CompareURL 18591 } 18592 18593 // GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise. 18594 func (r *Repository) GetContentsURL() string { 18595 if r == nil || r.ContentsURL == nil { 18596 return "" 18597 } 18598 return *r.ContentsURL 18599 } 18600 18601 // GetContributorsURL returns the ContributorsURL field if it's non-nil, zero value otherwise. 18602 func (r *Repository) GetContributorsURL() string { 18603 if r == nil || r.ContributorsURL == nil { 18604 return "" 18605 } 18606 return *r.ContributorsURL 18607 } 18608 18609 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 18610 func (r *Repository) GetCreatedAt() Timestamp { 18611 if r == nil || r.CreatedAt == nil { 18612 return Timestamp{} 18613 } 18614 return *r.CreatedAt 18615 } 18616 18617 // GetDefaultBranch returns the DefaultBranch field if it's non-nil, zero value otherwise. 18618 func (r *Repository) GetDefaultBranch() string { 18619 if r == nil || r.DefaultBranch == nil { 18620 return "" 18621 } 18622 return *r.DefaultBranch 18623 } 18624 18625 // GetDeleteBranchOnMerge returns the DeleteBranchOnMerge field if it's non-nil, zero value otherwise. 18626 func (r *Repository) GetDeleteBranchOnMerge() bool { 18627 if r == nil || r.DeleteBranchOnMerge == nil { 18628 return false 18629 } 18630 return *r.DeleteBranchOnMerge 18631 } 18632 18633 // GetDeploymentsURL returns the DeploymentsURL field if it's non-nil, zero value otherwise. 18634 func (r *Repository) GetDeploymentsURL() string { 18635 if r == nil || r.DeploymentsURL == nil { 18636 return "" 18637 } 18638 return *r.DeploymentsURL 18639 } 18640 18641 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 18642 func (r *Repository) GetDescription() string { 18643 if r == nil || r.Description == nil { 18644 return "" 18645 } 18646 return *r.Description 18647 } 18648 18649 // GetDisabled returns the Disabled field if it's non-nil, zero value otherwise. 18650 func (r *Repository) GetDisabled() bool { 18651 if r == nil || r.Disabled == nil { 18652 return false 18653 } 18654 return *r.Disabled 18655 } 18656 18657 // GetDownloadsURL returns the DownloadsURL field if it's non-nil, zero value otherwise. 18658 func (r *Repository) GetDownloadsURL() string { 18659 if r == nil || r.DownloadsURL == nil { 18660 return "" 18661 } 18662 return *r.DownloadsURL 18663 } 18664 18665 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 18666 func (r *Repository) GetEventsURL() string { 18667 if r == nil || r.EventsURL == nil { 18668 return "" 18669 } 18670 return *r.EventsURL 18671 } 18672 18673 // GetFork returns the Fork field if it's non-nil, zero value otherwise. 18674 func (r *Repository) GetFork() bool { 18675 if r == nil || r.Fork == nil { 18676 return false 18677 } 18678 return *r.Fork 18679 } 18680 18681 // GetForksCount returns the ForksCount field if it's non-nil, zero value otherwise. 18682 func (r *Repository) GetForksCount() int { 18683 if r == nil || r.ForksCount == nil { 18684 return 0 18685 } 18686 return *r.ForksCount 18687 } 18688 18689 // GetForksURL returns the ForksURL field if it's non-nil, zero value otherwise. 18690 func (r *Repository) GetForksURL() string { 18691 if r == nil || r.ForksURL == nil { 18692 return "" 18693 } 18694 return *r.ForksURL 18695 } 18696 18697 // GetFullName returns the FullName field if it's non-nil, zero value otherwise. 18698 func (r *Repository) GetFullName() string { 18699 if r == nil || r.FullName == nil { 18700 return "" 18701 } 18702 return *r.FullName 18703 } 18704 18705 // GetGitCommitsURL returns the GitCommitsURL field if it's non-nil, zero value otherwise. 18706 func (r *Repository) GetGitCommitsURL() string { 18707 if r == nil || r.GitCommitsURL == nil { 18708 return "" 18709 } 18710 return *r.GitCommitsURL 18711 } 18712 18713 // GetGitignoreTemplate returns the GitignoreTemplate field if it's non-nil, zero value otherwise. 18714 func (r *Repository) GetGitignoreTemplate() string { 18715 if r == nil || r.GitignoreTemplate == nil { 18716 return "" 18717 } 18718 return *r.GitignoreTemplate 18719 } 18720 18721 // GetGitRefsURL returns the GitRefsURL field if it's non-nil, zero value otherwise. 18722 func (r *Repository) GetGitRefsURL() string { 18723 if r == nil || r.GitRefsURL == nil { 18724 return "" 18725 } 18726 return *r.GitRefsURL 18727 } 18728 18729 // GetGitTagsURL returns the GitTagsURL field if it's non-nil, zero value otherwise. 18730 func (r *Repository) GetGitTagsURL() string { 18731 if r == nil || r.GitTagsURL == nil { 18732 return "" 18733 } 18734 return *r.GitTagsURL 18735 } 18736 18737 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 18738 func (r *Repository) GetGitURL() string { 18739 if r == nil || r.GitURL == nil { 18740 return "" 18741 } 18742 return *r.GitURL 18743 } 18744 18745 // GetHasDiscussions returns the HasDiscussions field if it's non-nil, zero value otherwise. 18746 func (r *Repository) GetHasDiscussions() bool { 18747 if r == nil || r.HasDiscussions == nil { 18748 return false 18749 } 18750 return *r.HasDiscussions 18751 } 18752 18753 // GetHasDownloads returns the HasDownloads field if it's non-nil, zero value otherwise. 18754 func (r *Repository) GetHasDownloads() bool { 18755 if r == nil || r.HasDownloads == nil { 18756 return false 18757 } 18758 return *r.HasDownloads 18759 } 18760 18761 // GetHasIssues returns the HasIssues field if it's non-nil, zero value otherwise. 18762 func (r *Repository) GetHasIssues() bool { 18763 if r == nil || r.HasIssues == nil { 18764 return false 18765 } 18766 return *r.HasIssues 18767 } 18768 18769 // GetHasPages returns the HasPages field if it's non-nil, zero value otherwise. 18770 func (r *Repository) GetHasPages() bool { 18771 if r == nil || r.HasPages == nil { 18772 return false 18773 } 18774 return *r.HasPages 18775 } 18776 18777 // GetHasProjects returns the HasProjects field if it's non-nil, zero value otherwise. 18778 func (r *Repository) GetHasProjects() bool { 18779 if r == nil || r.HasProjects == nil { 18780 return false 18781 } 18782 return *r.HasProjects 18783 } 18784 18785 // GetHasWiki returns the HasWiki field if it's non-nil, zero value otherwise. 18786 func (r *Repository) GetHasWiki() bool { 18787 if r == nil || r.HasWiki == nil { 18788 return false 18789 } 18790 return *r.HasWiki 18791 } 18792 18793 // GetHomepage returns the Homepage field if it's non-nil, zero value otherwise. 18794 func (r *Repository) GetHomepage() string { 18795 if r == nil || r.Homepage == nil { 18796 return "" 18797 } 18798 return *r.Homepage 18799 } 18800 18801 // GetHooksURL returns the HooksURL field if it's non-nil, zero value otherwise. 18802 func (r *Repository) GetHooksURL() string { 18803 if r == nil || r.HooksURL == nil { 18804 return "" 18805 } 18806 return *r.HooksURL 18807 } 18808 18809 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 18810 func (r *Repository) GetHTMLURL() string { 18811 if r == nil || r.HTMLURL == nil { 18812 return "" 18813 } 18814 return *r.HTMLURL 18815 } 18816 18817 // GetID returns the ID field if it's non-nil, zero value otherwise. 18818 func (r *Repository) GetID() int64 { 18819 if r == nil || r.ID == nil { 18820 return 0 18821 } 18822 return *r.ID 18823 } 18824 18825 // GetIssueCommentURL returns the IssueCommentURL field if it's non-nil, zero value otherwise. 18826 func (r *Repository) GetIssueCommentURL() string { 18827 if r == nil || r.IssueCommentURL == nil { 18828 return "" 18829 } 18830 return *r.IssueCommentURL 18831 } 18832 18833 // GetIssueEventsURL returns the IssueEventsURL field if it's non-nil, zero value otherwise. 18834 func (r *Repository) GetIssueEventsURL() string { 18835 if r == nil || r.IssueEventsURL == nil { 18836 return "" 18837 } 18838 return *r.IssueEventsURL 18839 } 18840 18841 // GetIssuesURL returns the IssuesURL field if it's non-nil, zero value otherwise. 18842 func (r *Repository) GetIssuesURL() string { 18843 if r == nil || r.IssuesURL == nil { 18844 return "" 18845 } 18846 return *r.IssuesURL 18847 } 18848 18849 // GetIsTemplate returns the IsTemplate field if it's non-nil, zero value otherwise. 18850 func (r *Repository) GetIsTemplate() bool { 18851 if r == nil || r.IsTemplate == nil { 18852 return false 18853 } 18854 return *r.IsTemplate 18855 } 18856 18857 // GetKeysURL returns the KeysURL field if it's non-nil, zero value otherwise. 18858 func (r *Repository) GetKeysURL() string { 18859 if r == nil || r.KeysURL == nil { 18860 return "" 18861 } 18862 return *r.KeysURL 18863 } 18864 18865 // GetLabelsURL returns the LabelsURL field if it's non-nil, zero value otherwise. 18866 func (r *Repository) GetLabelsURL() string { 18867 if r == nil || r.LabelsURL == nil { 18868 return "" 18869 } 18870 return *r.LabelsURL 18871 } 18872 18873 // GetLanguage returns the Language field if it's non-nil, zero value otherwise. 18874 func (r *Repository) GetLanguage() string { 18875 if r == nil || r.Language == nil { 18876 return "" 18877 } 18878 return *r.Language 18879 } 18880 18881 // GetLanguagesURL returns the LanguagesURL field if it's non-nil, zero value otherwise. 18882 func (r *Repository) GetLanguagesURL() string { 18883 if r == nil || r.LanguagesURL == nil { 18884 return "" 18885 } 18886 return *r.LanguagesURL 18887 } 18888 18889 // GetLicense returns the License field. 18890 func (r *Repository) GetLicense() *License { 18891 if r == nil { 18892 return nil 18893 } 18894 return r.License 18895 } 18896 18897 // GetLicenseTemplate returns the LicenseTemplate field if it's non-nil, zero value otherwise. 18898 func (r *Repository) GetLicenseTemplate() string { 18899 if r == nil || r.LicenseTemplate == nil { 18900 return "" 18901 } 18902 return *r.LicenseTemplate 18903 } 18904 18905 // GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise. 18906 func (r *Repository) GetMasterBranch() string { 18907 if r == nil || r.MasterBranch == nil { 18908 return "" 18909 } 18910 return *r.MasterBranch 18911 } 18912 18913 // GetMergeCommitMessage returns the MergeCommitMessage field if it's non-nil, zero value otherwise. 18914 func (r *Repository) GetMergeCommitMessage() string { 18915 if r == nil || r.MergeCommitMessage == nil { 18916 return "" 18917 } 18918 return *r.MergeCommitMessage 18919 } 18920 18921 // GetMergeCommitTitle returns the MergeCommitTitle field if it's non-nil, zero value otherwise. 18922 func (r *Repository) GetMergeCommitTitle() string { 18923 if r == nil || r.MergeCommitTitle == nil { 18924 return "" 18925 } 18926 return *r.MergeCommitTitle 18927 } 18928 18929 // GetMergesURL returns the MergesURL field if it's non-nil, zero value otherwise. 18930 func (r *Repository) GetMergesURL() string { 18931 if r == nil || r.MergesURL == nil { 18932 return "" 18933 } 18934 return *r.MergesURL 18935 } 18936 18937 // GetMilestonesURL returns the MilestonesURL field if it's non-nil, zero value otherwise. 18938 func (r *Repository) GetMilestonesURL() string { 18939 if r == nil || r.MilestonesURL == nil { 18940 return "" 18941 } 18942 return *r.MilestonesURL 18943 } 18944 18945 // GetMirrorURL returns the MirrorURL field if it's non-nil, zero value otherwise. 18946 func (r *Repository) GetMirrorURL() string { 18947 if r == nil || r.MirrorURL == nil { 18948 return "" 18949 } 18950 return *r.MirrorURL 18951 } 18952 18953 // GetName returns the Name field if it's non-nil, zero value otherwise. 18954 func (r *Repository) GetName() string { 18955 if r == nil || r.Name == nil { 18956 return "" 18957 } 18958 return *r.Name 18959 } 18960 18961 // GetNetworkCount returns the NetworkCount field if it's non-nil, zero value otherwise. 18962 func (r *Repository) GetNetworkCount() int { 18963 if r == nil || r.NetworkCount == nil { 18964 return 0 18965 } 18966 return *r.NetworkCount 18967 } 18968 18969 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 18970 func (r *Repository) GetNodeID() string { 18971 if r == nil || r.NodeID == nil { 18972 return "" 18973 } 18974 return *r.NodeID 18975 } 18976 18977 // GetNotificationsURL returns the NotificationsURL field if it's non-nil, zero value otherwise. 18978 func (r *Repository) GetNotificationsURL() string { 18979 if r == nil || r.NotificationsURL == nil { 18980 return "" 18981 } 18982 return *r.NotificationsURL 18983 } 18984 18985 // GetOpenIssues returns the OpenIssues field if it's non-nil, zero value otherwise. 18986 func (r *Repository) GetOpenIssues() int { 18987 if r == nil || r.OpenIssues == nil { 18988 return 0 18989 } 18990 return *r.OpenIssues 18991 } 18992 18993 // GetOpenIssuesCount returns the OpenIssuesCount field if it's non-nil, zero value otherwise. 18994 func (r *Repository) GetOpenIssuesCount() int { 18995 if r == nil || r.OpenIssuesCount == nil { 18996 return 0 18997 } 18998 return *r.OpenIssuesCount 18999 } 19000 19001 // GetOrganization returns the Organization field. 19002 func (r *Repository) GetOrganization() *Organization { 19003 if r == nil { 19004 return nil 19005 } 19006 return r.Organization 19007 } 19008 19009 // GetOwner returns the Owner field. 19010 func (r *Repository) GetOwner() *User { 19011 if r == nil { 19012 return nil 19013 } 19014 return r.Owner 19015 } 19016 19017 // GetParent returns the Parent field. 19018 func (r *Repository) GetParent() *Repository { 19019 if r == nil { 19020 return nil 19021 } 19022 return r.Parent 19023 } 19024 19025 // GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. 19026 func (r *Repository) GetPermissions() map[string]bool { 19027 if r == nil || r.Permissions == nil { 19028 return map[string]bool{} 19029 } 19030 return r.Permissions 19031 } 19032 19033 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 19034 func (r *Repository) GetPrivate() bool { 19035 if r == nil || r.Private == nil { 19036 return false 19037 } 19038 return *r.Private 19039 } 19040 19041 // GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. 19042 func (r *Repository) GetPullsURL() string { 19043 if r == nil || r.PullsURL == nil { 19044 return "" 19045 } 19046 return *r.PullsURL 19047 } 19048 19049 // GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. 19050 func (r *Repository) GetPushedAt() Timestamp { 19051 if r == nil || r.PushedAt == nil { 19052 return Timestamp{} 19053 } 19054 return *r.PushedAt 19055 } 19056 19057 // GetReleasesURL returns the ReleasesURL field if it's non-nil, zero value otherwise. 19058 func (r *Repository) GetReleasesURL() string { 19059 if r == nil || r.ReleasesURL == nil { 19060 return "" 19061 } 19062 return *r.ReleasesURL 19063 } 19064 19065 // GetRoleName returns the RoleName field if it's non-nil, zero value otherwise. 19066 func (r *Repository) GetRoleName() string { 19067 if r == nil || r.RoleName == nil { 19068 return "" 19069 } 19070 return *r.RoleName 19071 } 19072 19073 // GetSecurityAndAnalysis returns the SecurityAndAnalysis field. 19074 func (r *Repository) GetSecurityAndAnalysis() *SecurityAndAnalysis { 19075 if r == nil { 19076 return nil 19077 } 19078 return r.SecurityAndAnalysis 19079 } 19080 19081 // GetSize returns the Size field if it's non-nil, zero value otherwise. 19082 func (r *Repository) GetSize() int { 19083 if r == nil || r.Size == nil { 19084 return 0 19085 } 19086 return *r.Size 19087 } 19088 19089 // GetSource returns the Source field. 19090 func (r *Repository) GetSource() *Repository { 19091 if r == nil { 19092 return nil 19093 } 19094 return r.Source 19095 } 19096 19097 // GetSquashMergeCommitMessage returns the SquashMergeCommitMessage field if it's non-nil, zero value otherwise. 19098 func (r *Repository) GetSquashMergeCommitMessage() string { 19099 if r == nil || r.SquashMergeCommitMessage == nil { 19100 return "" 19101 } 19102 return *r.SquashMergeCommitMessage 19103 } 19104 19105 // GetSquashMergeCommitTitle returns the SquashMergeCommitTitle field if it's non-nil, zero value otherwise. 19106 func (r *Repository) GetSquashMergeCommitTitle() string { 19107 if r == nil || r.SquashMergeCommitTitle == nil { 19108 return "" 19109 } 19110 return *r.SquashMergeCommitTitle 19111 } 19112 19113 // GetSSHURL returns the SSHURL field if it's non-nil, zero value otherwise. 19114 func (r *Repository) GetSSHURL() string { 19115 if r == nil || r.SSHURL == nil { 19116 return "" 19117 } 19118 return *r.SSHURL 19119 } 19120 19121 // GetStargazersCount returns the StargazersCount field if it's non-nil, zero value otherwise. 19122 func (r *Repository) GetStargazersCount() int { 19123 if r == nil || r.StargazersCount == nil { 19124 return 0 19125 } 19126 return *r.StargazersCount 19127 } 19128 19129 // GetStargazersURL returns the StargazersURL field if it's non-nil, zero value otherwise. 19130 func (r *Repository) GetStargazersURL() string { 19131 if r == nil || r.StargazersURL == nil { 19132 return "" 19133 } 19134 return *r.StargazersURL 19135 } 19136 19137 // GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise. 19138 func (r *Repository) GetStatusesURL() string { 19139 if r == nil || r.StatusesURL == nil { 19140 return "" 19141 } 19142 return *r.StatusesURL 19143 } 19144 19145 // GetSubscribersCount returns the SubscribersCount field if it's non-nil, zero value otherwise. 19146 func (r *Repository) GetSubscribersCount() int { 19147 if r == nil || r.SubscribersCount == nil { 19148 return 0 19149 } 19150 return *r.SubscribersCount 19151 } 19152 19153 // GetSubscribersURL returns the SubscribersURL field if it's non-nil, zero value otherwise. 19154 func (r *Repository) GetSubscribersURL() string { 19155 if r == nil || r.SubscribersURL == nil { 19156 return "" 19157 } 19158 return *r.SubscribersURL 19159 } 19160 19161 // GetSubscriptionURL returns the SubscriptionURL field if it's non-nil, zero value otherwise. 19162 func (r *Repository) GetSubscriptionURL() string { 19163 if r == nil || r.SubscriptionURL == nil { 19164 return "" 19165 } 19166 return *r.SubscriptionURL 19167 } 19168 19169 // GetSVNURL returns the SVNURL field if it's non-nil, zero value otherwise. 19170 func (r *Repository) GetSVNURL() string { 19171 if r == nil || r.SVNURL == nil { 19172 return "" 19173 } 19174 return *r.SVNURL 19175 } 19176 19177 // GetTagsURL returns the TagsURL field if it's non-nil, zero value otherwise. 19178 func (r *Repository) GetTagsURL() string { 19179 if r == nil || r.TagsURL == nil { 19180 return "" 19181 } 19182 return *r.TagsURL 19183 } 19184 19185 // GetTeamID returns the TeamID field if it's non-nil, zero value otherwise. 19186 func (r *Repository) GetTeamID() int64 { 19187 if r == nil || r.TeamID == nil { 19188 return 0 19189 } 19190 return *r.TeamID 19191 } 19192 19193 // GetTeamsURL returns the TeamsURL field if it's non-nil, zero value otherwise. 19194 func (r *Repository) GetTeamsURL() string { 19195 if r == nil || r.TeamsURL == nil { 19196 return "" 19197 } 19198 return *r.TeamsURL 19199 } 19200 19201 // GetTemplateRepository returns the TemplateRepository field. 19202 func (r *Repository) GetTemplateRepository() *Repository { 19203 if r == nil { 19204 return nil 19205 } 19206 return r.TemplateRepository 19207 } 19208 19209 // GetTreesURL returns the TreesURL field if it's non-nil, zero value otherwise. 19210 func (r *Repository) GetTreesURL() string { 19211 if r == nil || r.TreesURL == nil { 19212 return "" 19213 } 19214 return *r.TreesURL 19215 } 19216 19217 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 19218 func (r *Repository) GetUpdatedAt() Timestamp { 19219 if r == nil || r.UpdatedAt == nil { 19220 return Timestamp{} 19221 } 19222 return *r.UpdatedAt 19223 } 19224 19225 // GetURL returns the URL field if it's non-nil, zero value otherwise. 19226 func (r *Repository) GetURL() string { 19227 if r == nil || r.URL == nil { 19228 return "" 19229 } 19230 return *r.URL 19231 } 19232 19233 // GetUseSquashPRTitleAsDefault returns the UseSquashPRTitleAsDefault field if it's non-nil, zero value otherwise. 19234 func (r *Repository) GetUseSquashPRTitleAsDefault() bool { 19235 if r == nil || r.UseSquashPRTitleAsDefault == nil { 19236 return false 19237 } 19238 return *r.UseSquashPRTitleAsDefault 19239 } 19240 19241 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 19242 func (r *Repository) GetVisibility() string { 19243 if r == nil || r.Visibility == nil { 19244 return "" 19245 } 19246 return *r.Visibility 19247 } 19248 19249 // GetWatchers returns the Watchers field if it's non-nil, zero value otherwise. 19250 func (r *Repository) GetWatchers() int { 19251 if r == nil || r.Watchers == nil { 19252 return 0 19253 } 19254 return *r.Watchers 19255 } 19256 19257 // GetWatchersCount returns the WatchersCount field if it's non-nil, zero value otherwise. 19258 func (r *Repository) GetWatchersCount() int { 19259 if r == nil || r.WatchersCount == nil { 19260 return 0 19261 } 19262 return *r.WatchersCount 19263 } 19264 19265 // GetWebCommitSignoffRequired returns the WebCommitSignoffRequired field if it's non-nil, zero value otherwise. 19266 func (r *Repository) GetWebCommitSignoffRequired() bool { 19267 if r == nil || r.WebCommitSignoffRequired == nil { 19268 return false 19269 } 19270 return *r.WebCommitSignoffRequired 19271 } 19272 19273 // GetAccessLevel returns the AccessLevel field if it's non-nil, zero value otherwise. 19274 func (r *RepositoryActionsAccessLevel) GetAccessLevel() string { 19275 if r == nil || r.AccessLevel == nil { 19276 return "" 19277 } 19278 return *r.AccessLevel 19279 } 19280 19281 // GetAdvancedSecurityCommitters returns the AdvancedSecurityCommitters field if it's non-nil, zero value otherwise. 19282 func (r *RepositoryActiveCommitters) GetAdvancedSecurityCommitters() int { 19283 if r == nil || r.AdvancedSecurityCommitters == nil { 19284 return 0 19285 } 19286 return *r.AdvancedSecurityCommitters 19287 } 19288 19289 // GetName returns the Name field if it's non-nil, zero value otherwise. 19290 func (r *RepositoryActiveCommitters) GetName() string { 19291 if r == nil || r.Name == nil { 19292 return "" 19293 } 19294 return *r.Name 19295 } 19296 19297 // GetBody returns the Body field if it's non-nil, zero value otherwise. 19298 func (r *RepositoryComment) GetBody() string { 19299 if r == nil || r.Body == nil { 19300 return "" 19301 } 19302 return *r.Body 19303 } 19304 19305 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 19306 func (r *RepositoryComment) GetCommitID() string { 19307 if r == nil || r.CommitID == nil { 19308 return "" 19309 } 19310 return *r.CommitID 19311 } 19312 19313 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 19314 func (r *RepositoryComment) GetCreatedAt() Timestamp { 19315 if r == nil || r.CreatedAt == nil { 19316 return Timestamp{} 19317 } 19318 return *r.CreatedAt 19319 } 19320 19321 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 19322 func (r *RepositoryComment) GetHTMLURL() string { 19323 if r == nil || r.HTMLURL == nil { 19324 return "" 19325 } 19326 return *r.HTMLURL 19327 } 19328 19329 // GetID returns the ID field if it's non-nil, zero value otherwise. 19330 func (r *RepositoryComment) GetID() int64 { 19331 if r == nil || r.ID == nil { 19332 return 0 19333 } 19334 return *r.ID 19335 } 19336 19337 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 19338 func (r *RepositoryComment) GetNodeID() string { 19339 if r == nil || r.NodeID == nil { 19340 return "" 19341 } 19342 return *r.NodeID 19343 } 19344 19345 // GetPath returns the Path field if it's non-nil, zero value otherwise. 19346 func (r *RepositoryComment) GetPath() string { 19347 if r == nil || r.Path == nil { 19348 return "" 19349 } 19350 return *r.Path 19351 } 19352 19353 // GetPosition returns the Position field if it's non-nil, zero value otherwise. 19354 func (r *RepositoryComment) GetPosition() int { 19355 if r == nil || r.Position == nil { 19356 return 0 19357 } 19358 return *r.Position 19359 } 19360 19361 // GetReactions returns the Reactions field. 19362 func (r *RepositoryComment) GetReactions() *Reactions { 19363 if r == nil { 19364 return nil 19365 } 19366 return r.Reactions 19367 } 19368 19369 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 19370 func (r *RepositoryComment) GetUpdatedAt() Timestamp { 19371 if r == nil || r.UpdatedAt == nil { 19372 return Timestamp{} 19373 } 19374 return *r.UpdatedAt 19375 } 19376 19377 // GetURL returns the URL field if it's non-nil, zero value otherwise. 19378 func (r *RepositoryComment) GetURL() string { 19379 if r == nil || r.URL == nil { 19380 return "" 19381 } 19382 return *r.URL 19383 } 19384 19385 // GetUser returns the User field. 19386 func (r *RepositoryComment) GetUser() *User { 19387 if r == nil { 19388 return nil 19389 } 19390 return r.User 19391 } 19392 19393 // GetAuthor returns the Author field. 19394 func (r *RepositoryCommit) GetAuthor() *User { 19395 if r == nil { 19396 return nil 19397 } 19398 return r.Author 19399 } 19400 19401 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 19402 func (r *RepositoryCommit) GetCommentsURL() string { 19403 if r == nil || r.CommentsURL == nil { 19404 return "" 19405 } 19406 return *r.CommentsURL 19407 } 19408 19409 // GetCommit returns the Commit field. 19410 func (r *RepositoryCommit) GetCommit() *Commit { 19411 if r == nil { 19412 return nil 19413 } 19414 return r.Commit 19415 } 19416 19417 // GetCommitter returns the Committer field. 19418 func (r *RepositoryCommit) GetCommitter() *User { 19419 if r == nil { 19420 return nil 19421 } 19422 return r.Committer 19423 } 19424 19425 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 19426 func (r *RepositoryCommit) GetHTMLURL() string { 19427 if r == nil || r.HTMLURL == nil { 19428 return "" 19429 } 19430 return *r.HTMLURL 19431 } 19432 19433 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 19434 func (r *RepositoryCommit) GetNodeID() string { 19435 if r == nil || r.NodeID == nil { 19436 return "" 19437 } 19438 return *r.NodeID 19439 } 19440 19441 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 19442 func (r *RepositoryCommit) GetSHA() string { 19443 if r == nil || r.SHA == nil { 19444 return "" 19445 } 19446 return *r.SHA 19447 } 19448 19449 // GetStats returns the Stats field. 19450 func (r *RepositoryCommit) GetStats() *CommitStats { 19451 if r == nil { 19452 return nil 19453 } 19454 return r.Stats 19455 } 19456 19457 // GetURL returns the URL field if it's non-nil, zero value otherwise. 19458 func (r *RepositoryCommit) GetURL() string { 19459 if r == nil || r.URL == nil { 19460 return "" 19461 } 19462 return *r.URL 19463 } 19464 19465 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 19466 func (r *RepositoryContent) GetDownloadURL() string { 19467 if r == nil || r.DownloadURL == nil { 19468 return "" 19469 } 19470 return *r.DownloadURL 19471 } 19472 19473 // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 19474 func (r *RepositoryContent) GetEncoding() string { 19475 if r == nil || r.Encoding == nil { 19476 return "" 19477 } 19478 return *r.Encoding 19479 } 19480 19481 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 19482 func (r *RepositoryContent) GetGitURL() string { 19483 if r == nil || r.GitURL == nil { 19484 return "" 19485 } 19486 return *r.GitURL 19487 } 19488 19489 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 19490 func (r *RepositoryContent) GetHTMLURL() string { 19491 if r == nil || r.HTMLURL == nil { 19492 return "" 19493 } 19494 return *r.HTMLURL 19495 } 19496 19497 // GetName returns the Name field if it's non-nil, zero value otherwise. 19498 func (r *RepositoryContent) GetName() string { 19499 if r == nil || r.Name == nil { 19500 return "" 19501 } 19502 return *r.Name 19503 } 19504 19505 // GetPath returns the Path field if it's non-nil, zero value otherwise. 19506 func (r *RepositoryContent) GetPath() string { 19507 if r == nil || r.Path == nil { 19508 return "" 19509 } 19510 return *r.Path 19511 } 19512 19513 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 19514 func (r *RepositoryContent) GetSHA() string { 19515 if r == nil || r.SHA == nil { 19516 return "" 19517 } 19518 return *r.SHA 19519 } 19520 19521 // GetSize returns the Size field if it's non-nil, zero value otherwise. 19522 func (r *RepositoryContent) GetSize() int { 19523 if r == nil || r.Size == nil { 19524 return 0 19525 } 19526 return *r.Size 19527 } 19528 19529 // GetSubmoduleGitURL returns the SubmoduleGitURL field if it's non-nil, zero value otherwise. 19530 func (r *RepositoryContent) GetSubmoduleGitURL() string { 19531 if r == nil || r.SubmoduleGitURL == nil { 19532 return "" 19533 } 19534 return *r.SubmoduleGitURL 19535 } 19536 19537 // GetTarget returns the Target field if it's non-nil, zero value otherwise. 19538 func (r *RepositoryContent) GetTarget() string { 19539 if r == nil || r.Target == nil { 19540 return "" 19541 } 19542 return *r.Target 19543 } 19544 19545 // GetType returns the Type field if it's non-nil, zero value otherwise. 19546 func (r *RepositoryContent) GetType() string { 19547 if r == nil || r.Type == nil { 19548 return "" 19549 } 19550 return *r.Type 19551 } 19552 19553 // GetURL returns the URL field if it's non-nil, zero value otherwise. 19554 func (r *RepositoryContent) GetURL() string { 19555 if r == nil || r.URL == nil { 19556 return "" 19557 } 19558 return *r.URL 19559 } 19560 19561 // GetAuthor returns the Author field. 19562 func (r *RepositoryContentFileOptions) GetAuthor() *CommitAuthor { 19563 if r == nil { 19564 return nil 19565 } 19566 return r.Author 19567 } 19568 19569 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 19570 func (r *RepositoryContentFileOptions) GetBranch() string { 19571 if r == nil || r.Branch == nil { 19572 return "" 19573 } 19574 return *r.Branch 19575 } 19576 19577 // GetCommitter returns the Committer field. 19578 func (r *RepositoryContentFileOptions) GetCommitter() *CommitAuthor { 19579 if r == nil { 19580 return nil 19581 } 19582 return r.Committer 19583 } 19584 19585 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 19586 func (r *RepositoryContentFileOptions) GetMessage() string { 19587 if r == nil || r.Message == nil { 19588 return "" 19589 } 19590 return *r.Message 19591 } 19592 19593 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 19594 func (r *RepositoryContentFileOptions) GetSHA() string { 19595 if r == nil || r.SHA == nil { 19596 return "" 19597 } 19598 return *r.SHA 19599 } 19600 19601 // GetContent returns the Content field. 19602 func (r *RepositoryContentResponse) GetContent() *RepositoryContent { 19603 if r == nil { 19604 return nil 19605 } 19606 return r.Content 19607 } 19608 19609 // GetAction returns the Action field if it's non-nil, zero value otherwise. 19610 func (r *RepositoryDispatchEvent) GetAction() string { 19611 if r == nil || r.Action == nil { 19612 return "" 19613 } 19614 return *r.Action 19615 } 19616 19617 // GetBranch returns the Branch field if it's non-nil, zero value otherwise. 19618 func (r *RepositoryDispatchEvent) GetBranch() string { 19619 if r == nil || r.Branch == nil { 19620 return "" 19621 } 19622 return *r.Branch 19623 } 19624 19625 // GetInstallation returns the Installation field. 19626 func (r *RepositoryDispatchEvent) GetInstallation() *Installation { 19627 if r == nil { 19628 return nil 19629 } 19630 return r.Installation 19631 } 19632 19633 // GetOrg returns the Org field. 19634 func (r *RepositoryDispatchEvent) GetOrg() *Organization { 19635 if r == nil { 19636 return nil 19637 } 19638 return r.Org 19639 } 19640 19641 // GetRepo returns the Repo field. 19642 func (r *RepositoryDispatchEvent) GetRepo() *Repository { 19643 if r == nil { 19644 return nil 19645 } 19646 return r.Repo 19647 } 19648 19649 // GetSender returns the Sender field. 19650 func (r *RepositoryDispatchEvent) GetSender() *User { 19651 if r == nil { 19652 return nil 19653 } 19654 return r.Sender 19655 } 19656 19657 // GetAction returns the Action field if it's non-nil, zero value otherwise. 19658 func (r *RepositoryEvent) GetAction() string { 19659 if r == nil || r.Action == nil { 19660 return "" 19661 } 19662 return *r.Action 19663 } 19664 19665 // GetChanges returns the Changes field. 19666 func (r *RepositoryEvent) GetChanges() *EditChange { 19667 if r == nil { 19668 return nil 19669 } 19670 return r.Changes 19671 } 19672 19673 // GetInstallation returns the Installation field. 19674 func (r *RepositoryEvent) GetInstallation() *Installation { 19675 if r == nil { 19676 return nil 19677 } 19678 return r.Installation 19679 } 19680 19681 // GetOrg returns the Org field. 19682 func (r *RepositoryEvent) GetOrg() *Organization { 19683 if r == nil { 19684 return nil 19685 } 19686 return r.Org 19687 } 19688 19689 // GetRepo returns the Repo field. 19690 func (r *RepositoryEvent) GetRepo() *Repository { 19691 if r == nil { 19692 return nil 19693 } 19694 return r.Repo 19695 } 19696 19697 // GetSender returns the Sender field. 19698 func (r *RepositoryEvent) GetSender() *User { 19699 if r == nil { 19700 return nil 19701 } 19702 return r.Sender 19703 } 19704 19705 // GetOrg returns the Org field. 19706 func (r *RepositoryImportEvent) GetOrg() *Organization { 19707 if r == nil { 19708 return nil 19709 } 19710 return r.Org 19711 } 19712 19713 // GetRepo returns the Repo field. 19714 func (r *RepositoryImportEvent) GetRepo() *Repository { 19715 if r == nil { 19716 return nil 19717 } 19718 return r.Repo 19719 } 19720 19721 // GetSender returns the Sender field. 19722 func (r *RepositoryImportEvent) GetSender() *User { 19723 if r == nil { 19724 return nil 19725 } 19726 return r.Sender 19727 } 19728 19729 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 19730 func (r *RepositoryImportEvent) GetStatus() string { 19731 if r == nil || r.Status == nil { 19732 return "" 19733 } 19734 return *r.Status 19735 } 19736 19737 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 19738 func (r *RepositoryInvitation) GetCreatedAt() Timestamp { 19739 if r == nil || r.CreatedAt == nil { 19740 return Timestamp{} 19741 } 19742 return *r.CreatedAt 19743 } 19744 19745 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 19746 func (r *RepositoryInvitation) GetHTMLURL() string { 19747 if r == nil || r.HTMLURL == nil { 19748 return "" 19749 } 19750 return *r.HTMLURL 19751 } 19752 19753 // GetID returns the ID field if it's non-nil, zero value otherwise. 19754 func (r *RepositoryInvitation) GetID() int64 { 19755 if r == nil || r.ID == nil { 19756 return 0 19757 } 19758 return *r.ID 19759 } 19760 19761 // GetInvitee returns the Invitee field. 19762 func (r *RepositoryInvitation) GetInvitee() *User { 19763 if r == nil { 19764 return nil 19765 } 19766 return r.Invitee 19767 } 19768 19769 // GetInviter returns the Inviter field. 19770 func (r *RepositoryInvitation) GetInviter() *User { 19771 if r == nil { 19772 return nil 19773 } 19774 return r.Inviter 19775 } 19776 19777 // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise. 19778 func (r *RepositoryInvitation) GetPermissions() string { 19779 if r == nil || r.Permissions == nil { 19780 return "" 19781 } 19782 return *r.Permissions 19783 } 19784 19785 // GetRepo returns the Repo field. 19786 func (r *RepositoryInvitation) GetRepo() *Repository { 19787 if r == nil { 19788 return nil 19789 } 19790 return r.Repo 19791 } 19792 19793 // GetURL returns the URL field if it's non-nil, zero value otherwise. 19794 func (r *RepositoryInvitation) GetURL() string { 19795 if r == nil || r.URL == nil { 19796 return "" 19797 } 19798 return *r.URL 19799 } 19800 19801 // GetContent returns the Content field if it's non-nil, zero value otherwise. 19802 func (r *RepositoryLicense) GetContent() string { 19803 if r == nil || r.Content == nil { 19804 return "" 19805 } 19806 return *r.Content 19807 } 19808 19809 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 19810 func (r *RepositoryLicense) GetDownloadURL() string { 19811 if r == nil || r.DownloadURL == nil { 19812 return "" 19813 } 19814 return *r.DownloadURL 19815 } 19816 19817 // GetEncoding returns the Encoding field if it's non-nil, zero value otherwise. 19818 func (r *RepositoryLicense) GetEncoding() string { 19819 if r == nil || r.Encoding == nil { 19820 return "" 19821 } 19822 return *r.Encoding 19823 } 19824 19825 // GetGitURL returns the GitURL field if it's non-nil, zero value otherwise. 19826 func (r *RepositoryLicense) GetGitURL() string { 19827 if r == nil || r.GitURL == nil { 19828 return "" 19829 } 19830 return *r.GitURL 19831 } 19832 19833 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 19834 func (r *RepositoryLicense) GetHTMLURL() string { 19835 if r == nil || r.HTMLURL == nil { 19836 return "" 19837 } 19838 return *r.HTMLURL 19839 } 19840 19841 // GetLicense returns the License field. 19842 func (r *RepositoryLicense) GetLicense() *License { 19843 if r == nil { 19844 return nil 19845 } 19846 return r.License 19847 } 19848 19849 // GetName returns the Name field if it's non-nil, zero value otherwise. 19850 func (r *RepositoryLicense) GetName() string { 19851 if r == nil || r.Name == nil { 19852 return "" 19853 } 19854 return *r.Name 19855 } 19856 19857 // GetPath returns the Path field if it's non-nil, zero value otherwise. 19858 func (r *RepositoryLicense) GetPath() string { 19859 if r == nil || r.Path == nil { 19860 return "" 19861 } 19862 return *r.Path 19863 } 19864 19865 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 19866 func (r *RepositoryLicense) GetSHA() string { 19867 if r == nil || r.SHA == nil { 19868 return "" 19869 } 19870 return *r.SHA 19871 } 19872 19873 // GetSize returns the Size field if it's non-nil, zero value otherwise. 19874 func (r *RepositoryLicense) GetSize() int { 19875 if r == nil || r.Size == nil { 19876 return 0 19877 } 19878 return *r.Size 19879 } 19880 19881 // GetType returns the Type field if it's non-nil, zero value otherwise. 19882 func (r *RepositoryLicense) GetType() string { 19883 if r == nil || r.Type == nil { 19884 return "" 19885 } 19886 return *r.Type 19887 } 19888 19889 // GetURL returns the URL field if it's non-nil, zero value otherwise. 19890 func (r *RepositoryLicense) GetURL() string { 19891 if r == nil || r.URL == nil { 19892 return "" 19893 } 19894 return *r.URL 19895 } 19896 19897 // GetBase returns the Base field if it's non-nil, zero value otherwise. 19898 func (r *RepositoryMergeRequest) GetBase() string { 19899 if r == nil || r.Base == nil { 19900 return "" 19901 } 19902 return *r.Base 19903 } 19904 19905 // GetCommitMessage returns the CommitMessage field if it's non-nil, zero value otherwise. 19906 func (r *RepositoryMergeRequest) GetCommitMessage() string { 19907 if r == nil || r.CommitMessage == nil { 19908 return "" 19909 } 19910 return *r.CommitMessage 19911 } 19912 19913 // GetHead returns the Head field if it's non-nil, zero value otherwise. 19914 func (r *RepositoryMergeRequest) GetHead() string { 19915 if r == nil || r.Head == nil { 19916 return "" 19917 } 19918 return *r.Head 19919 } 19920 19921 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 19922 func (r *RepositoryPermissionLevel) GetPermission() string { 19923 if r == nil || r.Permission == nil { 19924 return "" 19925 } 19926 return *r.Permission 19927 } 19928 19929 // GetUser returns the User field. 19930 func (r *RepositoryPermissionLevel) GetUser() *User { 19931 if r == nil { 19932 return nil 19933 } 19934 return r.User 19935 } 19936 19937 // GetAssetsURL returns the AssetsURL field if it's non-nil, zero value otherwise. 19938 func (r *RepositoryRelease) GetAssetsURL() string { 19939 if r == nil || r.AssetsURL == nil { 19940 return "" 19941 } 19942 return *r.AssetsURL 19943 } 19944 19945 // GetAuthor returns the Author field. 19946 func (r *RepositoryRelease) GetAuthor() *User { 19947 if r == nil { 19948 return nil 19949 } 19950 return r.Author 19951 } 19952 19953 // GetBody returns the Body field if it's non-nil, zero value otherwise. 19954 func (r *RepositoryRelease) GetBody() string { 19955 if r == nil || r.Body == nil { 19956 return "" 19957 } 19958 return *r.Body 19959 } 19960 19961 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 19962 func (r *RepositoryRelease) GetCreatedAt() Timestamp { 19963 if r == nil || r.CreatedAt == nil { 19964 return Timestamp{} 19965 } 19966 return *r.CreatedAt 19967 } 19968 19969 // GetDiscussionCategoryName returns the DiscussionCategoryName field if it's non-nil, zero value otherwise. 19970 func (r *RepositoryRelease) GetDiscussionCategoryName() string { 19971 if r == nil || r.DiscussionCategoryName == nil { 19972 return "" 19973 } 19974 return *r.DiscussionCategoryName 19975 } 19976 19977 // GetDraft returns the Draft field if it's non-nil, zero value otherwise. 19978 func (r *RepositoryRelease) GetDraft() bool { 19979 if r == nil || r.Draft == nil { 19980 return false 19981 } 19982 return *r.Draft 19983 } 19984 19985 // GetGenerateReleaseNotes returns the GenerateReleaseNotes field if it's non-nil, zero value otherwise. 19986 func (r *RepositoryRelease) GetGenerateReleaseNotes() bool { 19987 if r == nil || r.GenerateReleaseNotes == nil { 19988 return false 19989 } 19990 return *r.GenerateReleaseNotes 19991 } 19992 19993 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 19994 func (r *RepositoryRelease) GetHTMLURL() string { 19995 if r == nil || r.HTMLURL == nil { 19996 return "" 19997 } 19998 return *r.HTMLURL 19999 } 20000 20001 // GetID returns the ID field if it's non-nil, zero value otherwise. 20002 func (r *RepositoryRelease) GetID() int64 { 20003 if r == nil || r.ID == nil { 20004 return 0 20005 } 20006 return *r.ID 20007 } 20008 20009 // GetMakeLatest returns the MakeLatest field if it's non-nil, zero value otherwise. 20010 func (r *RepositoryRelease) GetMakeLatest() string { 20011 if r == nil || r.MakeLatest == nil { 20012 return "" 20013 } 20014 return *r.MakeLatest 20015 } 20016 20017 // GetName returns the Name field if it's non-nil, zero value otherwise. 20018 func (r *RepositoryRelease) GetName() string { 20019 if r == nil || r.Name == nil { 20020 return "" 20021 } 20022 return *r.Name 20023 } 20024 20025 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 20026 func (r *RepositoryRelease) GetNodeID() string { 20027 if r == nil || r.NodeID == nil { 20028 return "" 20029 } 20030 return *r.NodeID 20031 } 20032 20033 // GetPrerelease returns the Prerelease field if it's non-nil, zero value otherwise. 20034 func (r *RepositoryRelease) GetPrerelease() bool { 20035 if r == nil || r.Prerelease == nil { 20036 return false 20037 } 20038 return *r.Prerelease 20039 } 20040 20041 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 20042 func (r *RepositoryRelease) GetPublishedAt() Timestamp { 20043 if r == nil || r.PublishedAt == nil { 20044 return Timestamp{} 20045 } 20046 return *r.PublishedAt 20047 } 20048 20049 // GetTagName returns the TagName field if it's non-nil, zero value otherwise. 20050 func (r *RepositoryRelease) GetTagName() string { 20051 if r == nil || r.TagName == nil { 20052 return "" 20053 } 20054 return *r.TagName 20055 } 20056 20057 // GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 20058 func (r *RepositoryRelease) GetTarballURL() string { 20059 if r == nil || r.TarballURL == nil { 20060 return "" 20061 } 20062 return *r.TarballURL 20063 } 20064 20065 // GetTargetCommitish returns the TargetCommitish field if it's non-nil, zero value otherwise. 20066 func (r *RepositoryRelease) GetTargetCommitish() string { 20067 if r == nil || r.TargetCommitish == nil { 20068 return "" 20069 } 20070 return *r.TargetCommitish 20071 } 20072 20073 // GetUploadURL returns the UploadURL field if it's non-nil, zero value otherwise. 20074 func (r *RepositoryRelease) GetUploadURL() string { 20075 if r == nil || r.UploadURL == nil { 20076 return "" 20077 } 20078 return *r.UploadURL 20079 } 20080 20081 // GetURL returns the URL field if it's non-nil, zero value otherwise. 20082 func (r *RepositoryRelease) GetURL() string { 20083 if r == nil || r.URL == nil { 20084 return "" 20085 } 20086 return *r.URL 20087 } 20088 20089 // GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 20090 func (r *RepositoryRelease) GetZipballURL() string { 20091 if r == nil || r.ZipballURL == nil { 20092 return "" 20093 } 20094 return *r.ZipballURL 20095 } 20096 20097 // GetParameters returns the Parameters field if it's non-nil, zero value otherwise. 20098 func (r *RepositoryRule) GetParameters() json.RawMessage { 20099 if r == nil || r.Parameters == nil { 20100 return json.RawMessage{} 20101 } 20102 return *r.Parameters 20103 } 20104 20105 // GetCommit returns the Commit field. 20106 func (r *RepositoryTag) GetCommit() *Commit { 20107 if r == nil { 20108 return nil 20109 } 20110 return r.Commit 20111 } 20112 20113 // GetName returns the Name field if it's non-nil, zero value otherwise. 20114 func (r *RepositoryTag) GetName() string { 20115 if r == nil || r.Name == nil { 20116 return "" 20117 } 20118 return *r.Name 20119 } 20120 20121 // GetTarballURL returns the TarballURL field if it's non-nil, zero value otherwise. 20122 func (r *RepositoryTag) GetTarballURL() string { 20123 if r == nil || r.TarballURL == nil { 20124 return "" 20125 } 20126 return *r.TarballURL 20127 } 20128 20129 // GetZipballURL returns the ZipballURL field if it's non-nil, zero value otherwise. 20130 func (r *RepositoryTag) GetZipballURL() string { 20131 if r == nil || r.ZipballURL == nil { 20132 return "" 20133 } 20134 return *r.ZipballURL 20135 } 20136 20137 // GetAffectedPackageName returns the AffectedPackageName field if it's non-nil, zero value otherwise. 20138 func (r *RepositoryVulnerabilityAlert) GetAffectedPackageName() string { 20139 if r == nil || r.AffectedPackageName == nil { 20140 return "" 20141 } 20142 return *r.AffectedPackageName 20143 } 20144 20145 // GetAffectedRange returns the AffectedRange field if it's non-nil, zero value otherwise. 20146 func (r *RepositoryVulnerabilityAlert) GetAffectedRange() string { 20147 if r == nil || r.AffectedRange == nil { 20148 return "" 20149 } 20150 return *r.AffectedRange 20151 } 20152 20153 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 20154 func (r *RepositoryVulnerabilityAlert) GetCreatedAt() Timestamp { 20155 if r == nil || r.CreatedAt == nil { 20156 return Timestamp{} 20157 } 20158 return *r.CreatedAt 20159 } 20160 20161 // GetDismissedAt returns the DismissedAt field if it's non-nil, zero value otherwise. 20162 func (r *RepositoryVulnerabilityAlert) GetDismissedAt() Timestamp { 20163 if r == nil || r.DismissedAt == nil { 20164 return Timestamp{} 20165 } 20166 return *r.DismissedAt 20167 } 20168 20169 // GetDismisser returns the Dismisser field. 20170 func (r *RepositoryVulnerabilityAlert) GetDismisser() *User { 20171 if r == nil { 20172 return nil 20173 } 20174 return r.Dismisser 20175 } 20176 20177 // GetDismissReason returns the DismissReason field if it's non-nil, zero value otherwise. 20178 func (r *RepositoryVulnerabilityAlert) GetDismissReason() string { 20179 if r == nil || r.DismissReason == nil { 20180 return "" 20181 } 20182 return *r.DismissReason 20183 } 20184 20185 // GetExternalIdentifier returns the ExternalIdentifier field if it's non-nil, zero value otherwise. 20186 func (r *RepositoryVulnerabilityAlert) GetExternalIdentifier() string { 20187 if r == nil || r.ExternalIdentifier == nil { 20188 return "" 20189 } 20190 return *r.ExternalIdentifier 20191 } 20192 20193 // GetExternalReference returns the ExternalReference field if it's non-nil, zero value otherwise. 20194 func (r *RepositoryVulnerabilityAlert) GetExternalReference() string { 20195 if r == nil || r.ExternalReference == nil { 20196 return "" 20197 } 20198 return *r.ExternalReference 20199 } 20200 20201 // GetFixedIn returns the FixedIn field if it's non-nil, zero value otherwise. 20202 func (r *RepositoryVulnerabilityAlert) GetFixedIn() string { 20203 if r == nil || r.FixedIn == nil { 20204 return "" 20205 } 20206 return *r.FixedIn 20207 } 20208 20209 // GetGitHubSecurityAdvisoryID returns the GitHubSecurityAdvisoryID field if it's non-nil, zero value otherwise. 20210 func (r *RepositoryVulnerabilityAlert) GetGitHubSecurityAdvisoryID() string { 20211 if r == nil || r.GitHubSecurityAdvisoryID == nil { 20212 return "" 20213 } 20214 return *r.GitHubSecurityAdvisoryID 20215 } 20216 20217 // GetID returns the ID field if it's non-nil, zero value otherwise. 20218 func (r *RepositoryVulnerabilityAlert) GetID() int64 { 20219 if r == nil || r.ID == nil { 20220 return 0 20221 } 20222 return *r.ID 20223 } 20224 20225 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 20226 func (r *RepositoryVulnerabilityAlert) GetSeverity() string { 20227 if r == nil || r.Severity == nil { 20228 return "" 20229 } 20230 return *r.Severity 20231 } 20232 20233 // GetAction returns the Action field if it's non-nil, zero value otherwise. 20234 func (r *RepositoryVulnerabilityAlertEvent) GetAction() string { 20235 if r == nil || r.Action == nil { 20236 return "" 20237 } 20238 return *r.Action 20239 } 20240 20241 // GetAlert returns the Alert field. 20242 func (r *RepositoryVulnerabilityAlertEvent) GetAlert() *RepositoryVulnerabilityAlert { 20243 if r == nil { 20244 return nil 20245 } 20246 return r.Alert 20247 } 20248 20249 // GetInstallation returns the Installation field. 20250 func (r *RepositoryVulnerabilityAlertEvent) GetInstallation() *Installation { 20251 if r == nil { 20252 return nil 20253 } 20254 return r.Installation 20255 } 20256 20257 // GetOrg returns the Org field. 20258 func (r *RepositoryVulnerabilityAlertEvent) GetOrg() *Organization { 20259 if r == nil { 20260 return nil 20261 } 20262 return r.Org 20263 } 20264 20265 // GetRepository returns the Repository field. 20266 func (r *RepositoryVulnerabilityAlertEvent) GetRepository() *Repository { 20267 if r == nil { 20268 return nil 20269 } 20270 return r.Repository 20271 } 20272 20273 // GetSender returns the Sender field. 20274 func (r *RepositoryVulnerabilityAlertEvent) GetSender() *User { 20275 if r == nil { 20276 return nil 20277 } 20278 return r.Sender 20279 } 20280 20281 // GetForkRepos returns the ForkRepos field if it's non-nil, zero value otherwise. 20282 func (r *RepoStats) GetForkRepos() int { 20283 if r == nil || r.ForkRepos == nil { 20284 return 0 20285 } 20286 return *r.ForkRepos 20287 } 20288 20289 // GetOrgRepos returns the OrgRepos field if it's non-nil, zero value otherwise. 20290 func (r *RepoStats) GetOrgRepos() int { 20291 if r == nil || r.OrgRepos == nil { 20292 return 0 20293 } 20294 return *r.OrgRepos 20295 } 20296 20297 // GetRootRepos returns the RootRepos field if it's non-nil, zero value otherwise. 20298 func (r *RepoStats) GetRootRepos() int { 20299 if r == nil || r.RootRepos == nil { 20300 return 0 20301 } 20302 return *r.RootRepos 20303 } 20304 20305 // GetTotalPushes returns the TotalPushes field if it's non-nil, zero value otherwise. 20306 func (r *RepoStats) GetTotalPushes() int { 20307 if r == nil || r.TotalPushes == nil { 20308 return 0 20309 } 20310 return *r.TotalPushes 20311 } 20312 20313 // GetTotalRepos returns the TotalRepos field if it's non-nil, zero value otherwise. 20314 func (r *RepoStats) GetTotalRepos() int { 20315 if r == nil || r.TotalRepos == nil { 20316 return 0 20317 } 20318 return *r.TotalRepos 20319 } 20320 20321 // GetTotalWikis returns the TotalWikis field if it's non-nil, zero value otherwise. 20322 func (r *RepoStats) GetTotalWikis() int { 20323 if r == nil || r.TotalWikis == nil { 20324 return 0 20325 } 20326 return *r.TotalWikis 20327 } 20328 20329 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 20330 func (r *RepoStatus) GetAvatarURL() string { 20331 if r == nil || r.AvatarURL == nil { 20332 return "" 20333 } 20334 return *r.AvatarURL 20335 } 20336 20337 // GetContext returns the Context field if it's non-nil, zero value otherwise. 20338 func (r *RepoStatus) GetContext() string { 20339 if r == nil || r.Context == nil { 20340 return "" 20341 } 20342 return *r.Context 20343 } 20344 20345 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 20346 func (r *RepoStatus) GetCreatedAt() Timestamp { 20347 if r == nil || r.CreatedAt == nil { 20348 return Timestamp{} 20349 } 20350 return *r.CreatedAt 20351 } 20352 20353 // GetCreator returns the Creator field. 20354 func (r *RepoStatus) GetCreator() *User { 20355 if r == nil { 20356 return nil 20357 } 20358 return r.Creator 20359 } 20360 20361 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 20362 func (r *RepoStatus) GetDescription() string { 20363 if r == nil || r.Description == nil { 20364 return "" 20365 } 20366 return *r.Description 20367 } 20368 20369 // GetID returns the ID field if it's non-nil, zero value otherwise. 20370 func (r *RepoStatus) GetID() int64 { 20371 if r == nil || r.ID == nil { 20372 return 0 20373 } 20374 return *r.ID 20375 } 20376 20377 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 20378 func (r *RepoStatus) GetNodeID() string { 20379 if r == nil || r.NodeID == nil { 20380 return "" 20381 } 20382 return *r.NodeID 20383 } 20384 20385 // GetState returns the State field if it's non-nil, zero value otherwise. 20386 func (r *RepoStatus) GetState() string { 20387 if r == nil || r.State == nil { 20388 return "" 20389 } 20390 return *r.State 20391 } 20392 20393 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 20394 func (r *RepoStatus) GetTargetURL() string { 20395 if r == nil || r.TargetURL == nil { 20396 return "" 20397 } 20398 return *r.TargetURL 20399 } 20400 20401 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 20402 func (r *RepoStatus) GetUpdatedAt() Timestamp { 20403 if r == nil || r.UpdatedAt == nil { 20404 return Timestamp{} 20405 } 20406 return *r.UpdatedAt 20407 } 20408 20409 // GetURL returns the URL field if it's non-nil, zero value otherwise. 20410 func (r *RepoStatus) GetURL() string { 20411 if r == nil || r.URL == nil { 20412 return "" 20413 } 20414 return *r.URL 20415 } 20416 20417 // GetFrom returns the From field if it's non-nil, zero value otherwise. 20418 func (r *RequireCodeOwnerReviewChanges) GetFrom() bool { 20419 if r == nil || r.From == nil { 20420 return false 20421 } 20422 return *r.From 20423 } 20424 20425 // GetFrom returns the From field if it's non-nil, zero value otherwise. 20426 func (r *RequiredConversationResolutionLevelChanges) GetFrom() string { 20427 if r == nil || r.From == nil { 20428 return "" 20429 } 20430 return *r.From 20431 } 20432 20433 // GetFrom returns the From field if it's non-nil, zero value otherwise. 20434 func (r *RequiredDeploymentsEnforcementLevelChanges) GetFrom() string { 20435 if r == nil || r.From == nil { 20436 return "" 20437 } 20438 return *r.From 20439 } 20440 20441 // GetType returns the Type field if it's non-nil, zero value otherwise. 20442 func (r *RequiredReviewer) GetType() string { 20443 if r == nil || r.Type == nil { 20444 return "" 20445 } 20446 return *r.Type 20447 } 20448 20449 // GetAppID returns the AppID field if it's non-nil, zero value otherwise. 20450 func (r *RequiredStatusCheck) GetAppID() int64 { 20451 if r == nil || r.AppID == nil { 20452 return 0 20453 } 20454 return *r.AppID 20455 } 20456 20457 // GetContextsURL returns the ContextsURL field if it's non-nil, zero value otherwise. 20458 func (r *RequiredStatusChecks) GetContextsURL() string { 20459 if r == nil || r.ContextsURL == nil { 20460 return "" 20461 } 20462 return *r.ContextsURL 20463 } 20464 20465 // GetURL returns the URL field if it's non-nil, zero value otherwise. 20466 func (r *RequiredStatusChecks) GetURL() string { 20467 if r == nil || r.URL == nil { 20468 return "" 20469 } 20470 return *r.URL 20471 } 20472 20473 // GetFrom returns the From field if it's non-nil, zero value otherwise. 20474 func (r *RequiredStatusChecksEnforcementLevelChanges) GetFrom() string { 20475 if r == nil || r.From == nil { 20476 return "" 20477 } 20478 return *r.From 20479 } 20480 20481 // GetStrict returns the Strict field if it's non-nil, zero value otherwise. 20482 func (r *RequiredStatusChecksRequest) GetStrict() bool { 20483 if r == nil || r.Strict == nil { 20484 return false 20485 } 20486 return *r.Strict 20487 } 20488 20489 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 20490 func (r *RequiredWorkflowSelectedRepos) GetTotalCount() int { 20491 if r == nil || r.TotalCount == nil { 20492 return 0 20493 } 20494 return *r.TotalCount 20495 } 20496 20497 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 20498 func (r *ReviewersRequest) GetNodeID() string { 20499 if r == nil || r.NodeID == nil { 20500 return "" 20501 } 20502 return *r.NodeID 20503 } 20504 20505 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 20506 func (r *ReviewPersonalAccessTokenRequestOptions) GetReason() string { 20507 if r == nil || r.Reason == nil { 20508 return "" 20509 } 20510 return *r.Reason 20511 } 20512 20513 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 20514 func (r *Rule) GetDescription() string { 20515 if r == nil || r.Description == nil { 20516 return "" 20517 } 20518 return *r.Description 20519 } 20520 20521 // GetFullDescription returns the FullDescription field if it's non-nil, zero value otherwise. 20522 func (r *Rule) GetFullDescription() string { 20523 if r == nil || r.FullDescription == nil { 20524 return "" 20525 } 20526 return *r.FullDescription 20527 } 20528 20529 // GetHelp returns the Help field if it's non-nil, zero value otherwise. 20530 func (r *Rule) GetHelp() string { 20531 if r == nil || r.Help == nil { 20532 return "" 20533 } 20534 return *r.Help 20535 } 20536 20537 // GetID returns the ID field if it's non-nil, zero value otherwise. 20538 func (r *Rule) GetID() string { 20539 if r == nil || r.ID == nil { 20540 return "" 20541 } 20542 return *r.ID 20543 } 20544 20545 // GetName returns the Name field if it's non-nil, zero value otherwise. 20546 func (r *Rule) GetName() string { 20547 if r == nil || r.Name == nil { 20548 return "" 20549 } 20550 return *r.Name 20551 } 20552 20553 // GetSecuritySeverityLevel returns the SecuritySeverityLevel field if it's non-nil, zero value otherwise. 20554 func (r *Rule) GetSecuritySeverityLevel() string { 20555 if r == nil || r.SecuritySeverityLevel == nil { 20556 return "" 20557 } 20558 return *r.SecuritySeverityLevel 20559 } 20560 20561 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 20562 func (r *Rule) GetSeverity() string { 20563 if r == nil || r.Severity == nil { 20564 return "" 20565 } 20566 return *r.Severity 20567 } 20568 20569 // GetName returns the Name field if it's non-nil, zero value otherwise. 20570 func (r *RulePatternParameters) GetName() string { 20571 if r == nil || r.Name == nil { 20572 return "" 20573 } 20574 return *r.Name 20575 } 20576 20577 // GetNegate returns the Negate field if it's non-nil, zero value otherwise. 20578 func (r *RulePatternParameters) GetNegate() bool { 20579 if r == nil || r.Negate == nil { 20580 return false 20581 } 20582 return *r.Negate 20583 } 20584 20585 // GetIntegrationID returns the IntegrationID field if it's non-nil, zero value otherwise. 20586 func (r *RuleRequiredStatusChecks) GetIntegrationID() int64 { 20587 if r == nil || r.IntegrationID == nil { 20588 return 0 20589 } 20590 return *r.IntegrationID 20591 } 20592 20593 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 20594 func (r *RuleRequiredWorkflow) GetRef() string { 20595 if r == nil || r.Ref == nil { 20596 return "" 20597 } 20598 return *r.Ref 20599 } 20600 20601 // GetRepositoryID returns the RepositoryID field if it's non-nil, zero value otherwise. 20602 func (r *RuleRequiredWorkflow) GetRepositoryID() int64 { 20603 if r == nil || r.RepositoryID == nil { 20604 return 0 20605 } 20606 return *r.RepositoryID 20607 } 20608 20609 // GetSha returns the Sha field if it's non-nil, zero value otherwise. 20610 func (r *RuleRequiredWorkflow) GetSha() string { 20611 if r == nil || r.Sha == nil { 20612 return "" 20613 } 20614 return *r.Sha 20615 } 20616 20617 // GetConditions returns the Conditions field. 20618 func (r *Ruleset) GetConditions() *RulesetConditions { 20619 if r == nil { 20620 return nil 20621 } 20622 return r.Conditions 20623 } 20624 20625 // GetID returns the ID field if it's non-nil, zero value otherwise. 20626 func (r *Ruleset) GetID() int64 { 20627 if r == nil || r.ID == nil { 20628 return 0 20629 } 20630 return *r.ID 20631 } 20632 20633 // GetLinks returns the Links field. 20634 func (r *Ruleset) GetLinks() *RulesetLinks { 20635 if r == nil { 20636 return nil 20637 } 20638 return r.Links 20639 } 20640 20641 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 20642 func (r *Ruleset) GetNodeID() string { 20643 if r == nil || r.NodeID == nil { 20644 return "" 20645 } 20646 return *r.NodeID 20647 } 20648 20649 // GetSourceType returns the SourceType field if it's non-nil, zero value otherwise. 20650 func (r *Ruleset) GetSourceType() string { 20651 if r == nil || r.SourceType == nil { 20652 return "" 20653 } 20654 return *r.SourceType 20655 } 20656 20657 // GetTarget returns the Target field if it's non-nil, zero value otherwise. 20658 func (r *Ruleset) GetTarget() string { 20659 if r == nil || r.Target == nil { 20660 return "" 20661 } 20662 return *r.Target 20663 } 20664 20665 // GetRefName returns the RefName field. 20666 func (r *RulesetConditions) GetRefName() *RulesetRefConditionParameters { 20667 if r == nil { 20668 return nil 20669 } 20670 return r.RefName 20671 } 20672 20673 // GetRepositoryID returns the RepositoryID field. 20674 func (r *RulesetConditions) GetRepositoryID() *RulesetRepositoryIDsConditionParameters { 20675 if r == nil { 20676 return nil 20677 } 20678 return r.RepositoryID 20679 } 20680 20681 // GetRepositoryName returns the RepositoryName field. 20682 func (r *RulesetConditions) GetRepositoryName() *RulesetRepositoryNamesConditionParameters { 20683 if r == nil { 20684 return nil 20685 } 20686 return r.RepositoryName 20687 } 20688 20689 // GetHRef returns the HRef field if it's non-nil, zero value otherwise. 20690 func (r *RulesetLink) GetHRef() string { 20691 if r == nil || r.HRef == nil { 20692 return "" 20693 } 20694 return *r.HRef 20695 } 20696 20697 // GetSelf returns the Self field. 20698 func (r *RulesetLinks) GetSelf() *RulesetLink { 20699 if r == nil { 20700 return nil 20701 } 20702 return r.Self 20703 } 20704 20705 // GetProtected returns the Protected field if it's non-nil, zero value otherwise. 20706 func (r *RulesetRepositoryNamesConditionParameters) GetProtected() bool { 20707 if r == nil || r.Protected == nil { 20708 return false 20709 } 20710 return *r.Protected 20711 } 20712 20713 // GetBusy returns the Busy field if it's non-nil, zero value otherwise. 20714 func (r *Runner) GetBusy() bool { 20715 if r == nil || r.Busy == nil { 20716 return false 20717 } 20718 return *r.Busy 20719 } 20720 20721 // GetID returns the ID field if it's non-nil, zero value otherwise. 20722 func (r *Runner) GetID() int64 { 20723 if r == nil || r.ID == nil { 20724 return 0 20725 } 20726 return *r.ID 20727 } 20728 20729 // GetName returns the Name field if it's non-nil, zero value otherwise. 20730 func (r *Runner) GetName() string { 20731 if r == nil || r.Name == nil { 20732 return "" 20733 } 20734 return *r.Name 20735 } 20736 20737 // GetOS returns the OS field if it's non-nil, zero value otherwise. 20738 func (r *Runner) GetOS() string { 20739 if r == nil || r.OS == nil { 20740 return "" 20741 } 20742 return *r.OS 20743 } 20744 20745 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 20746 func (r *Runner) GetStatus() string { 20747 if r == nil || r.Status == nil { 20748 return "" 20749 } 20750 return *r.Status 20751 } 20752 20753 // GetArchitecture returns the Architecture field if it's non-nil, zero value otherwise. 20754 func (r *RunnerApplicationDownload) GetArchitecture() string { 20755 if r == nil || r.Architecture == nil { 20756 return "" 20757 } 20758 return *r.Architecture 20759 } 20760 20761 // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. 20762 func (r *RunnerApplicationDownload) GetDownloadURL() string { 20763 if r == nil || r.DownloadURL == nil { 20764 return "" 20765 } 20766 return *r.DownloadURL 20767 } 20768 20769 // GetFilename returns the Filename field if it's non-nil, zero value otherwise. 20770 func (r *RunnerApplicationDownload) GetFilename() string { 20771 if r == nil || r.Filename == nil { 20772 return "" 20773 } 20774 return *r.Filename 20775 } 20776 20777 // GetOS returns the OS field if it's non-nil, zero value otherwise. 20778 func (r *RunnerApplicationDownload) GetOS() string { 20779 if r == nil || r.OS == nil { 20780 return "" 20781 } 20782 return *r.OS 20783 } 20784 20785 // GetSHA256Checksum returns the SHA256Checksum field if it's non-nil, zero value otherwise. 20786 func (r *RunnerApplicationDownload) GetSHA256Checksum() string { 20787 if r == nil || r.SHA256Checksum == nil { 20788 return "" 20789 } 20790 return *r.SHA256Checksum 20791 } 20792 20793 // GetTempDownloadToken returns the TempDownloadToken field if it's non-nil, zero value otherwise. 20794 func (r *RunnerApplicationDownload) GetTempDownloadToken() string { 20795 if r == nil || r.TempDownloadToken == nil { 20796 return "" 20797 } 20798 return *r.TempDownloadToken 20799 } 20800 20801 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 20802 func (r *RunnerGroup) GetAllowsPublicRepositories() bool { 20803 if r == nil || r.AllowsPublicRepositories == nil { 20804 return false 20805 } 20806 return *r.AllowsPublicRepositories 20807 } 20808 20809 // GetDefault returns the Default field if it's non-nil, zero value otherwise. 20810 func (r *RunnerGroup) GetDefault() bool { 20811 if r == nil || r.Default == nil { 20812 return false 20813 } 20814 return *r.Default 20815 } 20816 20817 // GetID returns the ID field if it's non-nil, zero value otherwise. 20818 func (r *RunnerGroup) GetID() int64 { 20819 if r == nil || r.ID == nil { 20820 return 0 20821 } 20822 return *r.ID 20823 } 20824 20825 // GetInherited returns the Inherited field if it's non-nil, zero value otherwise. 20826 func (r *RunnerGroup) GetInherited() bool { 20827 if r == nil || r.Inherited == nil { 20828 return false 20829 } 20830 return *r.Inherited 20831 } 20832 20833 // GetName returns the Name field if it's non-nil, zero value otherwise. 20834 func (r *RunnerGroup) GetName() string { 20835 if r == nil || r.Name == nil { 20836 return "" 20837 } 20838 return *r.Name 20839 } 20840 20841 // GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. 20842 func (r *RunnerGroup) GetRestrictedToWorkflows() bool { 20843 if r == nil || r.RestrictedToWorkflows == nil { 20844 return false 20845 } 20846 return *r.RestrictedToWorkflows 20847 } 20848 20849 // GetRunnersURL returns the RunnersURL field if it's non-nil, zero value otherwise. 20850 func (r *RunnerGroup) GetRunnersURL() string { 20851 if r == nil || r.RunnersURL == nil { 20852 return "" 20853 } 20854 return *r.RunnersURL 20855 } 20856 20857 // GetSelectedRepositoriesURL returns the SelectedRepositoriesURL field if it's non-nil, zero value otherwise. 20858 func (r *RunnerGroup) GetSelectedRepositoriesURL() string { 20859 if r == nil || r.SelectedRepositoriesURL == nil { 20860 return "" 20861 } 20862 return *r.SelectedRepositoriesURL 20863 } 20864 20865 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 20866 func (r *RunnerGroup) GetVisibility() string { 20867 if r == nil || r.Visibility == nil { 20868 return "" 20869 } 20870 return *r.Visibility 20871 } 20872 20873 // GetWorkflowRestrictionsReadOnly returns the WorkflowRestrictionsReadOnly field if it's non-nil, zero value otherwise. 20874 func (r *RunnerGroup) GetWorkflowRestrictionsReadOnly() bool { 20875 if r == nil || r.WorkflowRestrictionsReadOnly == nil { 20876 return false 20877 } 20878 return *r.WorkflowRestrictionsReadOnly 20879 } 20880 20881 // GetID returns the ID field if it's non-nil, zero value otherwise. 20882 func (r *RunnerLabels) GetID() int64 { 20883 if r == nil || r.ID == nil { 20884 return 0 20885 } 20886 return *r.ID 20887 } 20888 20889 // GetName returns the Name field if it's non-nil, zero value otherwise. 20890 func (r *RunnerLabels) GetName() string { 20891 if r == nil || r.Name == nil { 20892 return "" 20893 } 20894 return *r.Name 20895 } 20896 20897 // GetType returns the Type field if it's non-nil, zero value otherwise. 20898 func (r *RunnerLabels) GetType() string { 20899 if r == nil || r.Type == nil { 20900 return "" 20901 } 20902 return *r.Type 20903 } 20904 20905 // GetCheckoutURI returns the CheckoutURI field if it's non-nil, zero value otherwise. 20906 func (s *SarifAnalysis) GetCheckoutURI() string { 20907 if s == nil || s.CheckoutURI == nil { 20908 return "" 20909 } 20910 return *s.CheckoutURI 20911 } 20912 20913 // GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. 20914 func (s *SarifAnalysis) GetCommitSHA() string { 20915 if s == nil || s.CommitSHA == nil { 20916 return "" 20917 } 20918 return *s.CommitSHA 20919 } 20920 20921 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 20922 func (s *SarifAnalysis) GetRef() string { 20923 if s == nil || s.Ref == nil { 20924 return "" 20925 } 20926 return *s.Ref 20927 } 20928 20929 // GetSarif returns the Sarif field if it's non-nil, zero value otherwise. 20930 func (s *SarifAnalysis) GetSarif() string { 20931 if s == nil || s.Sarif == nil { 20932 return "" 20933 } 20934 return *s.Sarif 20935 } 20936 20937 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 20938 func (s *SarifAnalysis) GetStartedAt() Timestamp { 20939 if s == nil || s.StartedAt == nil { 20940 return Timestamp{} 20941 } 20942 return *s.StartedAt 20943 } 20944 20945 // GetToolName returns the ToolName field if it's non-nil, zero value otherwise. 20946 func (s *SarifAnalysis) GetToolName() string { 20947 if s == nil || s.ToolName == nil { 20948 return "" 20949 } 20950 return *s.ToolName 20951 } 20952 20953 // GetID returns the ID field if it's non-nil, zero value otherwise. 20954 func (s *SarifID) GetID() string { 20955 if s == nil || s.ID == nil { 20956 return "" 20957 } 20958 return *s.ID 20959 } 20960 20961 // GetURL returns the URL field if it's non-nil, zero value otherwise. 20962 func (s *SarifID) GetURL() string { 20963 if s == nil || s.URL == nil { 20964 return "" 20965 } 20966 return *s.URL 20967 } 20968 20969 // GetAnalysesURL returns the AnalysesURL field if it's non-nil, zero value otherwise. 20970 func (s *SARIFUpload) GetAnalysesURL() string { 20971 if s == nil || s.AnalysesURL == nil { 20972 return "" 20973 } 20974 return *s.AnalysesURL 20975 } 20976 20977 // GetProcessingStatus returns the ProcessingStatus field if it's non-nil, zero value otherwise. 20978 func (s *SARIFUpload) GetProcessingStatus() string { 20979 if s == nil || s.ProcessingStatus == nil { 20980 return "" 20981 } 20982 return *s.ProcessingStatus 20983 } 20984 20985 // GetSBOM returns the SBOM field. 20986 func (s *SBOM) GetSBOM() *SBOMInfo { 20987 if s == nil { 20988 return nil 20989 } 20990 return s.SBOM 20991 } 20992 20993 // GetCreationInfo returns the CreationInfo field. 20994 func (s *SBOMInfo) GetCreationInfo() *CreationInfo { 20995 if s == nil { 20996 return nil 20997 } 20998 return s.CreationInfo 20999 } 21000 21001 // GetDataLicense returns the DataLicense field if it's non-nil, zero value otherwise. 21002 func (s *SBOMInfo) GetDataLicense() string { 21003 if s == nil || s.DataLicense == nil { 21004 return "" 21005 } 21006 return *s.DataLicense 21007 } 21008 21009 // GetDocumentNamespace returns the DocumentNamespace field if it's non-nil, zero value otherwise. 21010 func (s *SBOMInfo) GetDocumentNamespace() string { 21011 if s == nil || s.DocumentNamespace == nil { 21012 return "" 21013 } 21014 return *s.DocumentNamespace 21015 } 21016 21017 // GetName returns the Name field if it's non-nil, zero value otherwise. 21018 func (s *SBOMInfo) GetName() string { 21019 if s == nil || s.Name == nil { 21020 return "" 21021 } 21022 return *s.Name 21023 } 21024 21025 // GetSPDXID returns the SPDXID field if it's non-nil, zero value otherwise. 21026 func (s *SBOMInfo) GetSPDXID() string { 21027 if s == nil || s.SPDXID == nil { 21028 return "" 21029 } 21030 return *s.SPDXID 21031 } 21032 21033 // GetSPDXVersion returns the SPDXVersion field if it's non-nil, zero value otherwise. 21034 func (s *SBOMInfo) GetSPDXVersion() string { 21035 if s == nil || s.SPDXVersion == nil { 21036 return "" 21037 } 21038 return *s.SPDXVersion 21039 } 21040 21041 // GetAnalysisKey returns the AnalysisKey field if it's non-nil, zero value otherwise. 21042 func (s *ScanningAnalysis) GetAnalysisKey() string { 21043 if s == nil || s.AnalysisKey == nil { 21044 return "" 21045 } 21046 return *s.AnalysisKey 21047 } 21048 21049 // GetCategory returns the Category field if it's non-nil, zero value otherwise. 21050 func (s *ScanningAnalysis) GetCategory() string { 21051 if s == nil || s.Category == nil { 21052 return "" 21053 } 21054 return *s.Category 21055 } 21056 21057 // GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. 21058 func (s *ScanningAnalysis) GetCommitSHA() string { 21059 if s == nil || s.CommitSHA == nil { 21060 return "" 21061 } 21062 return *s.CommitSHA 21063 } 21064 21065 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 21066 func (s *ScanningAnalysis) GetCreatedAt() Timestamp { 21067 if s == nil || s.CreatedAt == nil { 21068 return Timestamp{} 21069 } 21070 return *s.CreatedAt 21071 } 21072 21073 // GetDeletable returns the Deletable field if it's non-nil, zero value otherwise. 21074 func (s *ScanningAnalysis) GetDeletable() bool { 21075 if s == nil || s.Deletable == nil { 21076 return false 21077 } 21078 return *s.Deletable 21079 } 21080 21081 // GetEnvironment returns the Environment field if it's non-nil, zero value otherwise. 21082 func (s *ScanningAnalysis) GetEnvironment() string { 21083 if s == nil || s.Environment == nil { 21084 return "" 21085 } 21086 return *s.Environment 21087 } 21088 21089 // GetError returns the Error field if it's non-nil, zero value otherwise. 21090 func (s *ScanningAnalysis) GetError() string { 21091 if s == nil || s.Error == nil { 21092 return "" 21093 } 21094 return *s.Error 21095 } 21096 21097 // GetID returns the ID field if it's non-nil, zero value otherwise. 21098 func (s *ScanningAnalysis) GetID() int64 { 21099 if s == nil || s.ID == nil { 21100 return 0 21101 } 21102 return *s.ID 21103 } 21104 21105 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 21106 func (s *ScanningAnalysis) GetRef() string { 21107 if s == nil || s.Ref == nil { 21108 return "" 21109 } 21110 return *s.Ref 21111 } 21112 21113 // GetResultsCount returns the ResultsCount field if it's non-nil, zero value otherwise. 21114 func (s *ScanningAnalysis) GetResultsCount() int { 21115 if s == nil || s.ResultsCount == nil { 21116 return 0 21117 } 21118 return *s.ResultsCount 21119 } 21120 21121 // GetRulesCount returns the RulesCount field if it's non-nil, zero value otherwise. 21122 func (s *ScanningAnalysis) GetRulesCount() int { 21123 if s == nil || s.RulesCount == nil { 21124 return 0 21125 } 21126 return *s.RulesCount 21127 } 21128 21129 // GetSarifID returns the SarifID field if it's non-nil, zero value otherwise. 21130 func (s *ScanningAnalysis) GetSarifID() string { 21131 if s == nil || s.SarifID == nil { 21132 return "" 21133 } 21134 return *s.SarifID 21135 } 21136 21137 // GetTool returns the Tool field. 21138 func (s *ScanningAnalysis) GetTool() *Tool { 21139 if s == nil { 21140 return nil 21141 } 21142 return s.Tool 21143 } 21144 21145 // GetURL returns the URL field if it's non-nil, zero value otherwise. 21146 func (s *ScanningAnalysis) GetURL() string { 21147 if s == nil || s.URL == nil { 21148 return "" 21149 } 21150 return *s.URL 21151 } 21152 21153 // GetWarning returns the Warning field if it's non-nil, zero value otherwise. 21154 func (s *ScanningAnalysis) GetWarning() string { 21155 if s == nil || s.Warning == nil { 21156 return "" 21157 } 21158 return *s.Warning 21159 } 21160 21161 // GetCreated returns the Created field if it's non-nil, zero value otherwise. 21162 func (s *SCIMMeta) GetCreated() Timestamp { 21163 if s == nil || s.Created == nil { 21164 return Timestamp{} 21165 } 21166 return *s.Created 21167 } 21168 21169 // GetLastModified returns the LastModified field if it's non-nil, zero value otherwise. 21170 func (s *SCIMMeta) GetLastModified() Timestamp { 21171 if s == nil || s.LastModified == nil { 21172 return Timestamp{} 21173 } 21174 return *s.LastModified 21175 } 21176 21177 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 21178 func (s *SCIMMeta) GetLocation() string { 21179 if s == nil || s.Location == nil { 21180 return "" 21181 } 21182 return *s.Location 21183 } 21184 21185 // GetResourceType returns the ResourceType field if it's non-nil, zero value otherwise. 21186 func (s *SCIMMeta) GetResourceType() string { 21187 if s == nil || s.ResourceType == nil { 21188 return "" 21189 } 21190 return *s.ResourceType 21191 } 21192 21193 // GetItemsPerPage returns the ItemsPerPage field if it's non-nil, zero value otherwise. 21194 func (s *SCIMProvisionedIdentities) GetItemsPerPage() int { 21195 if s == nil || s.ItemsPerPage == nil { 21196 return 0 21197 } 21198 return *s.ItemsPerPage 21199 } 21200 21201 // GetStartIndex returns the StartIndex field if it's non-nil, zero value otherwise. 21202 func (s *SCIMProvisionedIdentities) GetStartIndex() int { 21203 if s == nil || s.StartIndex == nil { 21204 return 0 21205 } 21206 return *s.StartIndex 21207 } 21208 21209 // GetTotalResults returns the TotalResults field if it's non-nil, zero value otherwise. 21210 func (s *SCIMProvisionedIdentities) GetTotalResults() int { 21211 if s == nil || s.TotalResults == nil { 21212 return 0 21213 } 21214 return *s.TotalResults 21215 } 21216 21217 // GetActive returns the Active field if it's non-nil, zero value otherwise. 21218 func (s *SCIMUserAttributes) GetActive() bool { 21219 if s == nil || s.Active == nil { 21220 return false 21221 } 21222 return *s.Active 21223 } 21224 21225 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 21226 func (s *SCIMUserAttributes) GetDisplayName() string { 21227 if s == nil || s.DisplayName == nil { 21228 return "" 21229 } 21230 return *s.DisplayName 21231 } 21232 21233 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 21234 func (s *SCIMUserAttributes) GetExternalID() string { 21235 if s == nil || s.ExternalID == nil { 21236 return "" 21237 } 21238 return *s.ExternalID 21239 } 21240 21241 // GetID returns the ID field if it's non-nil, zero value otherwise. 21242 func (s *SCIMUserAttributes) GetID() string { 21243 if s == nil || s.ID == nil { 21244 return "" 21245 } 21246 return *s.ID 21247 } 21248 21249 // GetMeta returns the Meta field. 21250 func (s *SCIMUserAttributes) GetMeta() *SCIMMeta { 21251 if s == nil { 21252 return nil 21253 } 21254 return s.Meta 21255 } 21256 21257 // GetPrimary returns the Primary field if it's non-nil, zero value otherwise. 21258 func (s *SCIMUserEmail) GetPrimary() bool { 21259 if s == nil || s.Primary == nil { 21260 return false 21261 } 21262 return *s.Primary 21263 } 21264 21265 // GetType returns the Type field if it's non-nil, zero value otherwise. 21266 func (s *SCIMUserEmail) GetType() string { 21267 if s == nil || s.Type == nil { 21268 return "" 21269 } 21270 return *s.Type 21271 } 21272 21273 // GetFormatted returns the Formatted field if it's non-nil, zero value otherwise. 21274 func (s *SCIMUserName) GetFormatted() string { 21275 if s == nil || s.Formatted == nil { 21276 return "" 21277 } 21278 return *s.Formatted 21279 } 21280 21281 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 21282 func (s *SecretScanning) GetStatus() string { 21283 if s == nil || s.Status == nil { 21284 return "" 21285 } 21286 return *s.Status 21287 } 21288 21289 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 21290 func (s *SecretScanningAlert) GetCreatedAt() Timestamp { 21291 if s == nil || s.CreatedAt == nil { 21292 return Timestamp{} 21293 } 21294 return *s.CreatedAt 21295 } 21296 21297 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 21298 func (s *SecretScanningAlert) GetHTMLURL() string { 21299 if s == nil || s.HTMLURL == nil { 21300 return "" 21301 } 21302 return *s.HTMLURL 21303 } 21304 21305 // GetLocationsURL returns the LocationsURL field if it's non-nil, zero value otherwise. 21306 func (s *SecretScanningAlert) GetLocationsURL() string { 21307 if s == nil || s.LocationsURL == nil { 21308 return "" 21309 } 21310 return *s.LocationsURL 21311 } 21312 21313 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 21314 func (s *SecretScanningAlert) GetNumber() int { 21315 if s == nil || s.Number == nil { 21316 return 0 21317 } 21318 return *s.Number 21319 } 21320 21321 // GetPushProtectionBypassed returns the PushProtectionBypassed field if it's non-nil, zero value otherwise. 21322 func (s *SecretScanningAlert) GetPushProtectionBypassed() bool { 21323 if s == nil || s.PushProtectionBypassed == nil { 21324 return false 21325 } 21326 return *s.PushProtectionBypassed 21327 } 21328 21329 // GetPushProtectionBypassedAt returns the PushProtectionBypassedAt field if it's non-nil, zero value otherwise. 21330 func (s *SecretScanningAlert) GetPushProtectionBypassedAt() Timestamp { 21331 if s == nil || s.PushProtectionBypassedAt == nil { 21332 return Timestamp{} 21333 } 21334 return *s.PushProtectionBypassedAt 21335 } 21336 21337 // GetPushProtectionBypassedBy returns the PushProtectionBypassedBy field. 21338 func (s *SecretScanningAlert) GetPushProtectionBypassedBy() *User { 21339 if s == nil { 21340 return nil 21341 } 21342 return s.PushProtectionBypassedBy 21343 } 21344 21345 // GetRepository returns the Repository field. 21346 func (s *SecretScanningAlert) GetRepository() *Repository { 21347 if s == nil { 21348 return nil 21349 } 21350 return s.Repository 21351 } 21352 21353 // GetResolution returns the Resolution field if it's non-nil, zero value otherwise. 21354 func (s *SecretScanningAlert) GetResolution() string { 21355 if s == nil || s.Resolution == nil { 21356 return "" 21357 } 21358 return *s.Resolution 21359 } 21360 21361 // GetResolutionComment returns the ResolutionComment field if it's non-nil, zero value otherwise. 21362 func (s *SecretScanningAlert) GetResolutionComment() string { 21363 if s == nil || s.ResolutionComment == nil { 21364 return "" 21365 } 21366 return *s.ResolutionComment 21367 } 21368 21369 // GetResolvedAt returns the ResolvedAt field if it's non-nil, zero value otherwise. 21370 func (s *SecretScanningAlert) GetResolvedAt() Timestamp { 21371 if s == nil || s.ResolvedAt == nil { 21372 return Timestamp{} 21373 } 21374 return *s.ResolvedAt 21375 } 21376 21377 // GetResolvedBy returns the ResolvedBy field. 21378 func (s *SecretScanningAlert) GetResolvedBy() *User { 21379 if s == nil { 21380 return nil 21381 } 21382 return s.ResolvedBy 21383 } 21384 21385 // GetSecret returns the Secret field if it's non-nil, zero value otherwise. 21386 func (s *SecretScanningAlert) GetSecret() string { 21387 if s == nil || s.Secret == nil { 21388 return "" 21389 } 21390 return *s.Secret 21391 } 21392 21393 // GetSecretType returns the SecretType field if it's non-nil, zero value otherwise. 21394 func (s *SecretScanningAlert) GetSecretType() string { 21395 if s == nil || s.SecretType == nil { 21396 return "" 21397 } 21398 return *s.SecretType 21399 } 21400 21401 // GetSecretTypeDisplayName returns the SecretTypeDisplayName field if it's non-nil, zero value otherwise. 21402 func (s *SecretScanningAlert) GetSecretTypeDisplayName() string { 21403 if s == nil || s.SecretTypeDisplayName == nil { 21404 return "" 21405 } 21406 return *s.SecretTypeDisplayName 21407 } 21408 21409 // GetState returns the State field if it's non-nil, zero value otherwise. 21410 func (s *SecretScanningAlert) GetState() string { 21411 if s == nil || s.State == nil { 21412 return "" 21413 } 21414 return *s.State 21415 } 21416 21417 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 21418 func (s *SecretScanningAlert) GetUpdatedAt() Timestamp { 21419 if s == nil || s.UpdatedAt == nil { 21420 return Timestamp{} 21421 } 21422 return *s.UpdatedAt 21423 } 21424 21425 // GetURL returns the URL field if it's non-nil, zero value otherwise. 21426 func (s *SecretScanningAlert) GetURL() string { 21427 if s == nil || s.URL == nil { 21428 return "" 21429 } 21430 return *s.URL 21431 } 21432 21433 // GetAction returns the Action field if it's non-nil, zero value otherwise. 21434 func (s *SecretScanningAlertEvent) GetAction() string { 21435 if s == nil || s.Action == nil { 21436 return "" 21437 } 21438 return *s.Action 21439 } 21440 21441 // GetAlert returns the Alert field. 21442 func (s *SecretScanningAlertEvent) GetAlert() *SecretScanningAlert { 21443 if s == nil { 21444 return nil 21445 } 21446 return s.Alert 21447 } 21448 21449 // GetEnterprise returns the Enterprise field. 21450 func (s *SecretScanningAlertEvent) GetEnterprise() *Enterprise { 21451 if s == nil { 21452 return nil 21453 } 21454 return s.Enterprise 21455 } 21456 21457 // GetInstallation returns the Installation field. 21458 func (s *SecretScanningAlertEvent) GetInstallation() *Installation { 21459 if s == nil { 21460 return nil 21461 } 21462 return s.Installation 21463 } 21464 21465 // GetOrganization returns the Organization field. 21466 func (s *SecretScanningAlertEvent) GetOrganization() *Organization { 21467 if s == nil { 21468 return nil 21469 } 21470 return s.Organization 21471 } 21472 21473 // GetRepo returns the Repo field. 21474 func (s *SecretScanningAlertEvent) GetRepo() *Repository { 21475 if s == nil { 21476 return nil 21477 } 21478 return s.Repo 21479 } 21480 21481 // GetSender returns the Sender field. 21482 func (s *SecretScanningAlertEvent) GetSender() *User { 21483 if s == nil { 21484 return nil 21485 } 21486 return s.Sender 21487 } 21488 21489 // GetDetails returns the Details field. 21490 func (s *SecretScanningAlertLocation) GetDetails() *SecretScanningAlertLocationDetails { 21491 if s == nil { 21492 return nil 21493 } 21494 return s.Details 21495 } 21496 21497 // GetType returns the Type field if it's non-nil, zero value otherwise. 21498 func (s *SecretScanningAlertLocation) GetType() string { 21499 if s == nil || s.Type == nil { 21500 return "" 21501 } 21502 return *s.Type 21503 } 21504 21505 // GetBlobSHA returns the BlobSHA field if it's non-nil, zero value otherwise. 21506 func (s *SecretScanningAlertLocationDetails) GetBlobSHA() string { 21507 if s == nil || s.BlobSHA == nil { 21508 return "" 21509 } 21510 return *s.BlobSHA 21511 } 21512 21513 // GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise. 21514 func (s *SecretScanningAlertLocationDetails) GetBlobURL() string { 21515 if s == nil || s.BlobURL == nil { 21516 return "" 21517 } 21518 return *s.BlobURL 21519 } 21520 21521 // GetCommitSHA returns the CommitSHA field if it's non-nil, zero value otherwise. 21522 func (s *SecretScanningAlertLocationDetails) GetCommitSHA() string { 21523 if s == nil || s.CommitSHA == nil { 21524 return "" 21525 } 21526 return *s.CommitSHA 21527 } 21528 21529 // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 21530 func (s *SecretScanningAlertLocationDetails) GetCommitURL() string { 21531 if s == nil || s.CommitURL == nil { 21532 return "" 21533 } 21534 return *s.CommitURL 21535 } 21536 21537 // GetEndColumn returns the EndColumn field if it's non-nil, zero value otherwise. 21538 func (s *SecretScanningAlertLocationDetails) GetEndColumn() int { 21539 if s == nil || s.EndColumn == nil { 21540 return 0 21541 } 21542 return *s.EndColumn 21543 } 21544 21545 // GetEndLine returns the EndLine field if it's non-nil, zero value otherwise. 21546 func (s *SecretScanningAlertLocationDetails) GetEndLine() int { 21547 if s == nil || s.EndLine == nil { 21548 return 0 21549 } 21550 return *s.EndLine 21551 } 21552 21553 // GetPath returns the Path field if it's non-nil, zero value otherwise. 21554 func (s *SecretScanningAlertLocationDetails) GetPath() string { 21555 if s == nil || s.Path == nil { 21556 return "" 21557 } 21558 return *s.Path 21559 } 21560 21561 // GetStartColumn returns the StartColumn field if it's non-nil, zero value otherwise. 21562 func (s *SecretScanningAlertLocationDetails) GetStartColumn() int { 21563 if s == nil || s.StartColumn == nil { 21564 return 0 21565 } 21566 return *s.StartColumn 21567 } 21568 21569 // GetStartline returns the Startline field if it's non-nil, zero value otherwise. 21570 func (s *SecretScanningAlertLocationDetails) GetStartline() int { 21571 if s == nil || s.Startline == nil { 21572 return 0 21573 } 21574 return *s.Startline 21575 } 21576 21577 // GetResolution returns the Resolution field if it's non-nil, zero value otherwise. 21578 func (s *SecretScanningAlertUpdateOptions) GetResolution() string { 21579 if s == nil || s.Resolution == nil { 21580 return "" 21581 } 21582 return *s.Resolution 21583 } 21584 21585 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 21586 func (s *SecretScanningPushProtection) GetStatus() string { 21587 if s == nil || s.Status == nil { 21588 return "" 21589 } 21590 return *s.Status 21591 } 21592 21593 // GetAuthor returns the Author field. 21594 func (s *SecurityAdvisory) GetAuthor() *User { 21595 if s == nil { 21596 return nil 21597 } 21598 return s.Author 21599 } 21600 21601 // GetClosedAt returns the ClosedAt field if it's non-nil, zero value otherwise. 21602 func (s *SecurityAdvisory) GetClosedAt() Timestamp { 21603 if s == nil || s.ClosedAt == nil { 21604 return Timestamp{} 21605 } 21606 return *s.ClosedAt 21607 } 21608 21609 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 21610 func (s *SecurityAdvisory) GetCreatedAt() Timestamp { 21611 if s == nil || s.CreatedAt == nil { 21612 return Timestamp{} 21613 } 21614 return *s.CreatedAt 21615 } 21616 21617 // GetCVEID returns the CVEID field if it's non-nil, zero value otherwise. 21618 func (s *SecurityAdvisory) GetCVEID() string { 21619 if s == nil || s.CVEID == nil { 21620 return "" 21621 } 21622 return *s.CVEID 21623 } 21624 21625 // GetCVSS returns the CVSS field. 21626 func (s *SecurityAdvisory) GetCVSS() *AdvisoryCVSS { 21627 if s == nil { 21628 return nil 21629 } 21630 return s.CVSS 21631 } 21632 21633 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 21634 func (s *SecurityAdvisory) GetDescription() string { 21635 if s == nil || s.Description == nil { 21636 return "" 21637 } 21638 return *s.Description 21639 } 21640 21641 // GetGHSAID returns the GHSAID field if it's non-nil, zero value otherwise. 21642 func (s *SecurityAdvisory) GetGHSAID() string { 21643 if s == nil || s.GHSAID == nil { 21644 return "" 21645 } 21646 return *s.GHSAID 21647 } 21648 21649 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 21650 func (s *SecurityAdvisory) GetHTMLURL() string { 21651 if s == nil || s.HTMLURL == nil { 21652 return "" 21653 } 21654 return *s.HTMLURL 21655 } 21656 21657 // GetPrivateFork returns the PrivateFork field. 21658 func (s *SecurityAdvisory) GetPrivateFork() *Repository { 21659 if s == nil { 21660 return nil 21661 } 21662 return s.PrivateFork 21663 } 21664 21665 // GetPublishedAt returns the PublishedAt field if it's non-nil, zero value otherwise. 21666 func (s *SecurityAdvisory) GetPublishedAt() Timestamp { 21667 if s == nil || s.PublishedAt == nil { 21668 return Timestamp{} 21669 } 21670 return *s.PublishedAt 21671 } 21672 21673 // GetPublisher returns the Publisher field. 21674 func (s *SecurityAdvisory) GetPublisher() *User { 21675 if s == nil { 21676 return nil 21677 } 21678 return s.Publisher 21679 } 21680 21681 // GetSeverity returns the Severity field if it's non-nil, zero value otherwise. 21682 func (s *SecurityAdvisory) GetSeverity() string { 21683 if s == nil || s.Severity == nil { 21684 return "" 21685 } 21686 return *s.Severity 21687 } 21688 21689 // GetState returns the State field if it's non-nil, zero value otherwise. 21690 func (s *SecurityAdvisory) GetState() string { 21691 if s == nil || s.State == nil { 21692 return "" 21693 } 21694 return *s.State 21695 } 21696 21697 // GetSubmission returns the Submission field. 21698 func (s *SecurityAdvisory) GetSubmission() *SecurityAdvisorySubmission { 21699 if s == nil { 21700 return nil 21701 } 21702 return s.Submission 21703 } 21704 21705 // GetSummary returns the Summary field if it's non-nil, zero value otherwise. 21706 func (s *SecurityAdvisory) GetSummary() string { 21707 if s == nil || s.Summary == nil { 21708 return "" 21709 } 21710 return *s.Summary 21711 } 21712 21713 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 21714 func (s *SecurityAdvisory) GetUpdatedAt() Timestamp { 21715 if s == nil || s.UpdatedAt == nil { 21716 return Timestamp{} 21717 } 21718 return *s.UpdatedAt 21719 } 21720 21721 // GetURL returns the URL field if it's non-nil, zero value otherwise. 21722 func (s *SecurityAdvisory) GetURL() string { 21723 if s == nil || s.URL == nil { 21724 return "" 21725 } 21726 return *s.URL 21727 } 21728 21729 // GetWithdrawnAt returns the WithdrawnAt field if it's non-nil, zero value otherwise. 21730 func (s *SecurityAdvisory) GetWithdrawnAt() Timestamp { 21731 if s == nil || s.WithdrawnAt == nil { 21732 return Timestamp{} 21733 } 21734 return *s.WithdrawnAt 21735 } 21736 21737 // GetAction returns the Action field if it's non-nil, zero value otherwise. 21738 func (s *SecurityAdvisoryEvent) GetAction() string { 21739 if s == nil || s.Action == nil { 21740 return "" 21741 } 21742 return *s.Action 21743 } 21744 21745 // GetEnterprise returns the Enterprise field. 21746 func (s *SecurityAdvisoryEvent) GetEnterprise() *Enterprise { 21747 if s == nil { 21748 return nil 21749 } 21750 return s.Enterprise 21751 } 21752 21753 // GetInstallation returns the Installation field. 21754 func (s *SecurityAdvisoryEvent) GetInstallation() *Installation { 21755 if s == nil { 21756 return nil 21757 } 21758 return s.Installation 21759 } 21760 21761 // GetOrganization returns the Organization field. 21762 func (s *SecurityAdvisoryEvent) GetOrganization() *Organization { 21763 if s == nil { 21764 return nil 21765 } 21766 return s.Organization 21767 } 21768 21769 // GetRepository returns the Repository field. 21770 func (s *SecurityAdvisoryEvent) GetRepository() *Repository { 21771 if s == nil { 21772 return nil 21773 } 21774 return s.Repository 21775 } 21776 21777 // GetSecurityAdvisory returns the SecurityAdvisory field. 21778 func (s *SecurityAdvisoryEvent) GetSecurityAdvisory() *SecurityAdvisory { 21779 if s == nil { 21780 return nil 21781 } 21782 return s.SecurityAdvisory 21783 } 21784 21785 // GetSender returns the Sender field. 21786 func (s *SecurityAdvisoryEvent) GetSender() *User { 21787 if s == nil { 21788 return nil 21789 } 21790 return s.Sender 21791 } 21792 21793 // GetAccepted returns the Accepted field if it's non-nil, zero value otherwise. 21794 func (s *SecurityAdvisorySubmission) GetAccepted() bool { 21795 if s == nil || s.Accepted == nil { 21796 return false 21797 } 21798 return *s.Accepted 21799 } 21800 21801 // GetAdvancedSecurity returns the AdvancedSecurity field. 21802 func (s *SecurityAndAnalysis) GetAdvancedSecurity() *AdvancedSecurity { 21803 if s == nil { 21804 return nil 21805 } 21806 return s.AdvancedSecurity 21807 } 21808 21809 // GetDependabotSecurityUpdates returns the DependabotSecurityUpdates field. 21810 func (s *SecurityAndAnalysis) GetDependabotSecurityUpdates() *DependabotSecurityUpdates { 21811 if s == nil { 21812 return nil 21813 } 21814 return s.DependabotSecurityUpdates 21815 } 21816 21817 // GetSecretScanning returns the SecretScanning field. 21818 func (s *SecurityAndAnalysis) GetSecretScanning() *SecretScanning { 21819 if s == nil { 21820 return nil 21821 } 21822 return s.SecretScanning 21823 } 21824 21825 // GetSecretScanningPushProtection returns the SecretScanningPushProtection field. 21826 func (s *SecurityAndAnalysis) GetSecretScanningPushProtection() *SecretScanningPushProtection { 21827 if s == nil { 21828 return nil 21829 } 21830 return s.SecretScanningPushProtection 21831 } 21832 21833 // GetFrom returns the From field. 21834 func (s *SecurityAndAnalysisChange) GetFrom() *SecurityAndAnalysisChangeFrom { 21835 if s == nil { 21836 return nil 21837 } 21838 return s.From 21839 } 21840 21841 // GetSecurityAndAnalysis returns the SecurityAndAnalysis field. 21842 func (s *SecurityAndAnalysisChangeFrom) GetSecurityAndAnalysis() *SecurityAndAnalysis { 21843 if s == nil { 21844 return nil 21845 } 21846 return s.SecurityAndAnalysis 21847 } 21848 21849 // GetChanges returns the Changes field. 21850 func (s *SecurityAndAnalysisEvent) GetChanges() *SecurityAndAnalysisChange { 21851 if s == nil { 21852 return nil 21853 } 21854 return s.Changes 21855 } 21856 21857 // GetEnterprise returns the Enterprise field. 21858 func (s *SecurityAndAnalysisEvent) GetEnterprise() *Enterprise { 21859 if s == nil { 21860 return nil 21861 } 21862 return s.Enterprise 21863 } 21864 21865 // GetInstallation returns the Installation field. 21866 func (s *SecurityAndAnalysisEvent) GetInstallation() *Installation { 21867 if s == nil { 21868 return nil 21869 } 21870 return s.Installation 21871 } 21872 21873 // GetOrganization returns the Organization field. 21874 func (s *SecurityAndAnalysisEvent) GetOrganization() *Organization { 21875 if s == nil { 21876 return nil 21877 } 21878 return s.Organization 21879 } 21880 21881 // GetRepository returns the Repository field. 21882 func (s *SecurityAndAnalysisEvent) GetRepository() *Repository { 21883 if s == nil { 21884 return nil 21885 } 21886 return s.Repository 21887 } 21888 21889 // GetSender returns the Sender field. 21890 func (s *SecurityAndAnalysisEvent) GetSender() *User { 21891 if s == nil { 21892 return nil 21893 } 21894 return s.Sender 21895 } 21896 21897 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 21898 func (s *SelectedReposList) GetTotalCount() int { 21899 if s == nil || s.TotalCount == nil { 21900 return 0 21901 } 21902 return *s.TotalCount 21903 } 21904 21905 // GetFrom returns the From field if it's non-nil, zero value otherwise. 21906 func (s *SignatureRequirementEnforcementLevelChanges) GetFrom() string { 21907 if s == nil || s.From == nil { 21908 return "" 21909 } 21910 return *s.From 21911 } 21912 21913 // GetEnabled returns the Enabled field if it's non-nil, zero value otherwise. 21914 func (s *SignaturesProtectedBranch) GetEnabled() bool { 21915 if s == nil || s.Enabled == nil { 21916 return false 21917 } 21918 return *s.Enabled 21919 } 21920 21921 // GetURL returns the URL field if it's non-nil, zero value otherwise. 21922 func (s *SignaturesProtectedBranch) GetURL() string { 21923 if s == nil || s.URL == nil { 21924 return "" 21925 } 21926 return *s.URL 21927 } 21928 21929 // GetPayload returns the Payload field if it's non-nil, zero value otherwise. 21930 func (s *SignatureVerification) GetPayload() string { 21931 if s == nil || s.Payload == nil { 21932 return "" 21933 } 21934 return *s.Payload 21935 } 21936 21937 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 21938 func (s *SignatureVerification) GetReason() string { 21939 if s == nil || s.Reason == nil { 21940 return "" 21941 } 21942 return *s.Reason 21943 } 21944 21945 // GetSignature returns the Signature field if it's non-nil, zero value otherwise. 21946 func (s *SignatureVerification) GetSignature() string { 21947 if s == nil || s.Signature == nil { 21948 return "" 21949 } 21950 return *s.Signature 21951 } 21952 21953 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 21954 func (s *SignatureVerification) GetVerified() bool { 21955 if s == nil || s.Verified == nil { 21956 return false 21957 } 21958 return *s.Verified 21959 } 21960 21961 // GetActor returns the Actor field. 21962 func (s *Source) GetActor() *User { 21963 if s == nil { 21964 return nil 21965 } 21966 return s.Actor 21967 } 21968 21969 // GetID returns the ID field if it's non-nil, zero value otherwise. 21970 func (s *Source) GetID() int64 { 21971 if s == nil || s.ID == nil { 21972 return 0 21973 } 21974 return *s.ID 21975 } 21976 21977 // GetIssue returns the Issue field. 21978 func (s *Source) GetIssue() *Issue { 21979 if s == nil { 21980 return nil 21981 } 21982 return s.Issue 21983 } 21984 21985 // GetType returns the Type field if it's non-nil, zero value otherwise. 21986 func (s *Source) GetType() string { 21987 if s == nil || s.Type == nil { 21988 return "" 21989 } 21990 return *s.Type 21991 } 21992 21993 // GetURL returns the URL field if it's non-nil, zero value otherwise. 21994 func (s *Source) GetURL() string { 21995 if s == nil || s.URL == nil { 21996 return "" 21997 } 21998 return *s.URL 21999 } 22000 22001 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 22002 func (s *SourceImportAuthor) GetEmail() string { 22003 if s == nil || s.Email == nil { 22004 return "" 22005 } 22006 return *s.Email 22007 } 22008 22009 // GetID returns the ID field if it's non-nil, zero value otherwise. 22010 func (s *SourceImportAuthor) GetID() int64 { 22011 if s == nil || s.ID == nil { 22012 return 0 22013 } 22014 return *s.ID 22015 } 22016 22017 // GetImportURL returns the ImportURL field if it's non-nil, zero value otherwise. 22018 func (s *SourceImportAuthor) GetImportURL() string { 22019 if s == nil || s.ImportURL == nil { 22020 return "" 22021 } 22022 return *s.ImportURL 22023 } 22024 22025 // GetName returns the Name field if it's non-nil, zero value otherwise. 22026 func (s *SourceImportAuthor) GetName() string { 22027 if s == nil || s.Name == nil { 22028 return "" 22029 } 22030 return *s.Name 22031 } 22032 22033 // GetRemoteID returns the RemoteID field if it's non-nil, zero value otherwise. 22034 func (s *SourceImportAuthor) GetRemoteID() string { 22035 if s == nil || s.RemoteID == nil { 22036 return "" 22037 } 22038 return *s.RemoteID 22039 } 22040 22041 // GetRemoteName returns the RemoteName field if it's non-nil, zero value otherwise. 22042 func (s *SourceImportAuthor) GetRemoteName() string { 22043 if s == nil || s.RemoteName == nil { 22044 return "" 22045 } 22046 return *s.RemoteName 22047 } 22048 22049 // GetURL returns the URL field if it's non-nil, zero value otherwise. 22050 func (s *SourceImportAuthor) GetURL() string { 22051 if s == nil || s.URL == nil { 22052 return "" 22053 } 22054 return *s.URL 22055 } 22056 22057 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 22058 func (s *SSHSigningKey) GetCreatedAt() Timestamp { 22059 if s == nil || s.CreatedAt == nil { 22060 return Timestamp{} 22061 } 22062 return *s.CreatedAt 22063 } 22064 22065 // GetID returns the ID field if it's non-nil, zero value otherwise. 22066 func (s *SSHSigningKey) GetID() int64 { 22067 if s == nil || s.ID == nil { 22068 return 0 22069 } 22070 return *s.ID 22071 } 22072 22073 // GetKey returns the Key field if it's non-nil, zero value otherwise. 22074 func (s *SSHSigningKey) GetKey() string { 22075 if s == nil || s.Key == nil { 22076 return "" 22077 } 22078 return *s.Key 22079 } 22080 22081 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 22082 func (s *SSHSigningKey) GetTitle() string { 22083 if s == nil || s.Title == nil { 22084 return "" 22085 } 22086 return *s.Title 22087 } 22088 22089 // GetAction returns the Action field if it's non-nil, zero value otherwise. 22090 func (s *StarEvent) GetAction() string { 22091 if s == nil || s.Action == nil { 22092 return "" 22093 } 22094 return *s.Action 22095 } 22096 22097 // GetInstallation returns the Installation field. 22098 func (s *StarEvent) GetInstallation() *Installation { 22099 if s == nil { 22100 return nil 22101 } 22102 return s.Installation 22103 } 22104 22105 // GetOrg returns the Org field. 22106 func (s *StarEvent) GetOrg() *Organization { 22107 if s == nil { 22108 return nil 22109 } 22110 return s.Org 22111 } 22112 22113 // GetRepo returns the Repo field. 22114 func (s *StarEvent) GetRepo() *Repository { 22115 if s == nil { 22116 return nil 22117 } 22118 return s.Repo 22119 } 22120 22121 // GetSender returns the Sender field. 22122 func (s *StarEvent) GetSender() *User { 22123 if s == nil { 22124 return nil 22125 } 22126 return s.Sender 22127 } 22128 22129 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 22130 func (s *StarEvent) GetStarredAt() Timestamp { 22131 if s == nil || s.StarredAt == nil { 22132 return Timestamp{} 22133 } 22134 return *s.StarredAt 22135 } 22136 22137 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 22138 func (s *Stargazer) GetStarredAt() Timestamp { 22139 if s == nil || s.StarredAt == nil { 22140 return Timestamp{} 22141 } 22142 return *s.StarredAt 22143 } 22144 22145 // GetUser returns the User field. 22146 func (s *Stargazer) GetUser() *User { 22147 if s == nil { 22148 return nil 22149 } 22150 return s.User 22151 } 22152 22153 // GetRepository returns the Repository field. 22154 func (s *StarredRepository) GetRepository() *Repository { 22155 if s == nil { 22156 return nil 22157 } 22158 return s.Repository 22159 } 22160 22161 // GetStarredAt returns the StarredAt field if it's non-nil, zero value otherwise. 22162 func (s *StarredRepository) GetStarredAt() Timestamp { 22163 if s == nil || s.StarredAt == nil { 22164 return Timestamp{} 22165 } 22166 return *s.StarredAt 22167 } 22168 22169 // GetCommit returns the Commit field. 22170 func (s *StatusEvent) GetCommit() *RepositoryCommit { 22171 if s == nil { 22172 return nil 22173 } 22174 return s.Commit 22175 } 22176 22177 // GetContext returns the Context field if it's non-nil, zero value otherwise. 22178 func (s *StatusEvent) GetContext() string { 22179 if s == nil || s.Context == nil { 22180 return "" 22181 } 22182 return *s.Context 22183 } 22184 22185 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 22186 func (s *StatusEvent) GetCreatedAt() Timestamp { 22187 if s == nil || s.CreatedAt == nil { 22188 return Timestamp{} 22189 } 22190 return *s.CreatedAt 22191 } 22192 22193 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 22194 func (s *StatusEvent) GetDescription() string { 22195 if s == nil || s.Description == nil { 22196 return "" 22197 } 22198 return *s.Description 22199 } 22200 22201 // GetID returns the ID field if it's non-nil, zero value otherwise. 22202 func (s *StatusEvent) GetID() int64 { 22203 if s == nil || s.ID == nil { 22204 return 0 22205 } 22206 return *s.ID 22207 } 22208 22209 // GetInstallation returns the Installation field. 22210 func (s *StatusEvent) GetInstallation() *Installation { 22211 if s == nil { 22212 return nil 22213 } 22214 return s.Installation 22215 } 22216 22217 // GetName returns the Name field if it's non-nil, zero value otherwise. 22218 func (s *StatusEvent) GetName() string { 22219 if s == nil || s.Name == nil { 22220 return "" 22221 } 22222 return *s.Name 22223 } 22224 22225 // GetOrg returns the Org field. 22226 func (s *StatusEvent) GetOrg() *Organization { 22227 if s == nil { 22228 return nil 22229 } 22230 return s.Org 22231 } 22232 22233 // GetRepo returns the Repo field. 22234 func (s *StatusEvent) GetRepo() *Repository { 22235 if s == nil { 22236 return nil 22237 } 22238 return s.Repo 22239 } 22240 22241 // GetSender returns the Sender field. 22242 func (s *StatusEvent) GetSender() *User { 22243 if s == nil { 22244 return nil 22245 } 22246 return s.Sender 22247 } 22248 22249 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 22250 func (s *StatusEvent) GetSHA() string { 22251 if s == nil || s.SHA == nil { 22252 return "" 22253 } 22254 return *s.SHA 22255 } 22256 22257 // GetState returns the State field if it's non-nil, zero value otherwise. 22258 func (s *StatusEvent) GetState() string { 22259 if s == nil || s.State == nil { 22260 return "" 22261 } 22262 return *s.State 22263 } 22264 22265 // GetTargetURL returns the TargetURL field if it's non-nil, zero value otherwise. 22266 func (s *StatusEvent) GetTargetURL() string { 22267 if s == nil || s.TargetURL == nil { 22268 return "" 22269 } 22270 return *s.TargetURL 22271 } 22272 22273 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 22274 func (s *StatusEvent) GetUpdatedAt() Timestamp { 22275 if s == nil || s.UpdatedAt == nil { 22276 return Timestamp{} 22277 } 22278 return *s.UpdatedAt 22279 } 22280 22281 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 22282 func (s *Subscription) GetCreatedAt() Timestamp { 22283 if s == nil || s.CreatedAt == nil { 22284 return Timestamp{} 22285 } 22286 return *s.CreatedAt 22287 } 22288 22289 // GetIgnored returns the Ignored field if it's non-nil, zero value otherwise. 22290 func (s *Subscription) GetIgnored() bool { 22291 if s == nil || s.Ignored == nil { 22292 return false 22293 } 22294 return *s.Ignored 22295 } 22296 22297 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 22298 func (s *Subscription) GetReason() string { 22299 if s == nil || s.Reason == nil { 22300 return "" 22301 } 22302 return *s.Reason 22303 } 22304 22305 // GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise. 22306 func (s *Subscription) GetRepositoryURL() string { 22307 if s == nil || s.RepositoryURL == nil { 22308 return "" 22309 } 22310 return *s.RepositoryURL 22311 } 22312 22313 // GetSubscribed returns the Subscribed field if it's non-nil, zero value otherwise. 22314 func (s *Subscription) GetSubscribed() bool { 22315 if s == nil || s.Subscribed == nil { 22316 return false 22317 } 22318 return *s.Subscribed 22319 } 22320 22321 // GetThreadURL returns the ThreadURL field if it's non-nil, zero value otherwise. 22322 func (s *Subscription) GetThreadURL() string { 22323 if s == nil || s.ThreadURL == nil { 22324 return "" 22325 } 22326 return *s.ThreadURL 22327 } 22328 22329 // GetURL returns the URL field if it's non-nil, zero value otherwise. 22330 func (s *Subscription) GetURL() string { 22331 if s == nil || s.URL == nil { 22332 return "" 22333 } 22334 return *s.URL 22335 } 22336 22337 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 22338 func (t *Tag) GetMessage() string { 22339 if t == nil || t.Message == nil { 22340 return "" 22341 } 22342 return *t.Message 22343 } 22344 22345 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 22346 func (t *Tag) GetNodeID() string { 22347 if t == nil || t.NodeID == nil { 22348 return "" 22349 } 22350 return *t.NodeID 22351 } 22352 22353 // GetObject returns the Object field. 22354 func (t *Tag) GetObject() *GitObject { 22355 if t == nil { 22356 return nil 22357 } 22358 return t.Object 22359 } 22360 22361 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 22362 func (t *Tag) GetSHA() string { 22363 if t == nil || t.SHA == nil { 22364 return "" 22365 } 22366 return *t.SHA 22367 } 22368 22369 // GetTag returns the Tag field if it's non-nil, zero value otherwise. 22370 func (t *Tag) GetTag() string { 22371 if t == nil || t.Tag == nil { 22372 return "" 22373 } 22374 return *t.Tag 22375 } 22376 22377 // GetTagger returns the Tagger field. 22378 func (t *Tag) GetTagger() *CommitAuthor { 22379 if t == nil { 22380 return nil 22381 } 22382 return t.Tagger 22383 } 22384 22385 // GetURL returns the URL field if it's non-nil, zero value otherwise. 22386 func (t *Tag) GetURL() string { 22387 if t == nil || t.URL == nil { 22388 return "" 22389 } 22390 return *t.URL 22391 } 22392 22393 // GetVerification returns the Verification field. 22394 func (t *Tag) GetVerification() *SignatureVerification { 22395 if t == nil { 22396 return nil 22397 } 22398 return t.Verification 22399 } 22400 22401 // GetID returns the ID field if it's non-nil, zero value otherwise. 22402 func (t *TagProtection) GetID() int64 { 22403 if t == nil || t.ID == nil { 22404 return 0 22405 } 22406 return *t.ID 22407 } 22408 22409 // GetPattern returns the Pattern field if it's non-nil, zero value otherwise. 22410 func (t *TagProtection) GetPattern() string { 22411 if t == nil || t.Pattern == nil { 22412 return "" 22413 } 22414 return *t.Pattern 22415 } 22416 22417 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 22418 func (t *TaskStep) GetCompletedAt() Timestamp { 22419 if t == nil || t.CompletedAt == nil { 22420 return Timestamp{} 22421 } 22422 return *t.CompletedAt 22423 } 22424 22425 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 22426 func (t *TaskStep) GetConclusion() string { 22427 if t == nil || t.Conclusion == nil { 22428 return "" 22429 } 22430 return *t.Conclusion 22431 } 22432 22433 // GetName returns the Name field if it's non-nil, zero value otherwise. 22434 func (t *TaskStep) GetName() string { 22435 if t == nil || t.Name == nil { 22436 return "" 22437 } 22438 return *t.Name 22439 } 22440 22441 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 22442 func (t *TaskStep) GetNumber() int64 { 22443 if t == nil || t.Number == nil { 22444 return 0 22445 } 22446 return *t.Number 22447 } 22448 22449 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 22450 func (t *TaskStep) GetStartedAt() Timestamp { 22451 if t == nil || t.StartedAt == nil { 22452 return Timestamp{} 22453 } 22454 return *t.StartedAt 22455 } 22456 22457 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 22458 func (t *TaskStep) GetStatus() string { 22459 if t == nil || t.Status == nil { 22460 return "" 22461 } 22462 return *t.Status 22463 } 22464 22465 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 22466 func (t *Team) GetDescription() string { 22467 if t == nil || t.Description == nil { 22468 return "" 22469 } 22470 return *t.Description 22471 } 22472 22473 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 22474 func (t *Team) GetHTMLURL() string { 22475 if t == nil || t.HTMLURL == nil { 22476 return "" 22477 } 22478 return *t.HTMLURL 22479 } 22480 22481 // GetID returns the ID field if it's non-nil, zero value otherwise. 22482 func (t *Team) GetID() int64 { 22483 if t == nil || t.ID == nil { 22484 return 0 22485 } 22486 return *t.ID 22487 } 22488 22489 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 22490 func (t *Team) GetLDAPDN() string { 22491 if t == nil || t.LDAPDN == nil { 22492 return "" 22493 } 22494 return *t.LDAPDN 22495 } 22496 22497 // GetMembersCount returns the MembersCount field if it's non-nil, zero value otherwise. 22498 func (t *Team) GetMembersCount() int { 22499 if t == nil || t.MembersCount == nil { 22500 return 0 22501 } 22502 return *t.MembersCount 22503 } 22504 22505 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 22506 func (t *Team) GetMembersURL() string { 22507 if t == nil || t.MembersURL == nil { 22508 return "" 22509 } 22510 return *t.MembersURL 22511 } 22512 22513 // GetName returns the Name field if it's non-nil, zero value otherwise. 22514 func (t *Team) GetName() string { 22515 if t == nil || t.Name == nil { 22516 return "" 22517 } 22518 return *t.Name 22519 } 22520 22521 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 22522 func (t *Team) GetNodeID() string { 22523 if t == nil || t.NodeID == nil { 22524 return "" 22525 } 22526 return *t.NodeID 22527 } 22528 22529 // GetOrganization returns the Organization field. 22530 func (t *Team) GetOrganization() *Organization { 22531 if t == nil { 22532 return nil 22533 } 22534 return t.Organization 22535 } 22536 22537 // GetParent returns the Parent field. 22538 func (t *Team) GetParent() *Team { 22539 if t == nil { 22540 return nil 22541 } 22542 return t.Parent 22543 } 22544 22545 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 22546 func (t *Team) GetPermission() string { 22547 if t == nil || t.Permission == nil { 22548 return "" 22549 } 22550 return *t.Permission 22551 } 22552 22553 // GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. 22554 func (t *Team) GetPermissions() map[string]bool { 22555 if t == nil || t.Permissions == nil { 22556 return map[string]bool{} 22557 } 22558 return t.Permissions 22559 } 22560 22561 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 22562 func (t *Team) GetPrivacy() string { 22563 if t == nil || t.Privacy == nil { 22564 return "" 22565 } 22566 return *t.Privacy 22567 } 22568 22569 // GetReposCount returns the ReposCount field if it's non-nil, zero value otherwise. 22570 func (t *Team) GetReposCount() int { 22571 if t == nil || t.ReposCount == nil { 22572 return 0 22573 } 22574 return *t.ReposCount 22575 } 22576 22577 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 22578 func (t *Team) GetRepositoriesURL() string { 22579 if t == nil || t.RepositoriesURL == nil { 22580 return "" 22581 } 22582 return *t.RepositoriesURL 22583 } 22584 22585 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 22586 func (t *Team) GetSlug() string { 22587 if t == nil || t.Slug == nil { 22588 return "" 22589 } 22590 return *t.Slug 22591 } 22592 22593 // GetURL returns the URL field if it's non-nil, zero value otherwise. 22594 func (t *Team) GetURL() string { 22595 if t == nil || t.URL == nil { 22596 return "" 22597 } 22598 return *t.URL 22599 } 22600 22601 // GetInstallation returns the Installation field. 22602 func (t *TeamAddEvent) GetInstallation() *Installation { 22603 if t == nil { 22604 return nil 22605 } 22606 return t.Installation 22607 } 22608 22609 // GetOrg returns the Org field. 22610 func (t *TeamAddEvent) GetOrg() *Organization { 22611 if t == nil { 22612 return nil 22613 } 22614 return t.Org 22615 } 22616 22617 // GetRepo returns the Repo field. 22618 func (t *TeamAddEvent) GetRepo() *Repository { 22619 if t == nil { 22620 return nil 22621 } 22622 return t.Repo 22623 } 22624 22625 // GetSender returns the Sender field. 22626 func (t *TeamAddEvent) GetSender() *User { 22627 if t == nil { 22628 return nil 22629 } 22630 return t.Sender 22631 } 22632 22633 // GetTeam returns the Team field. 22634 func (t *TeamAddEvent) GetTeam() *Team { 22635 if t == nil { 22636 return nil 22637 } 22638 return t.Team 22639 } 22640 22641 // GetDescription returns the Description field. 22642 func (t *TeamChange) GetDescription() *TeamDescription { 22643 if t == nil { 22644 return nil 22645 } 22646 return t.Description 22647 } 22648 22649 // GetName returns the Name field. 22650 func (t *TeamChange) GetName() *TeamName { 22651 if t == nil { 22652 return nil 22653 } 22654 return t.Name 22655 } 22656 22657 // GetPrivacy returns the Privacy field. 22658 func (t *TeamChange) GetPrivacy() *TeamPrivacy { 22659 if t == nil { 22660 return nil 22661 } 22662 return t.Privacy 22663 } 22664 22665 // GetRepository returns the Repository field. 22666 func (t *TeamChange) GetRepository() *TeamRepository { 22667 if t == nil { 22668 return nil 22669 } 22670 return t.Repository 22671 } 22672 22673 // GetFrom returns the From field if it's non-nil, zero value otherwise. 22674 func (t *TeamDescription) GetFrom() string { 22675 if t == nil || t.From == nil { 22676 return "" 22677 } 22678 return *t.From 22679 } 22680 22681 // GetAuthor returns the Author field. 22682 func (t *TeamDiscussion) GetAuthor() *User { 22683 if t == nil { 22684 return nil 22685 } 22686 return t.Author 22687 } 22688 22689 // GetBody returns the Body field if it's non-nil, zero value otherwise. 22690 func (t *TeamDiscussion) GetBody() string { 22691 if t == nil || t.Body == nil { 22692 return "" 22693 } 22694 return *t.Body 22695 } 22696 22697 // GetBodyHTML returns the BodyHTML field if it's non-nil, zero value otherwise. 22698 func (t *TeamDiscussion) GetBodyHTML() string { 22699 if t == nil || t.BodyHTML == nil { 22700 return "" 22701 } 22702 return *t.BodyHTML 22703 } 22704 22705 // GetBodyVersion returns the BodyVersion field if it's non-nil, zero value otherwise. 22706 func (t *TeamDiscussion) GetBodyVersion() string { 22707 if t == nil || t.BodyVersion == nil { 22708 return "" 22709 } 22710 return *t.BodyVersion 22711 } 22712 22713 // GetCommentsCount returns the CommentsCount field if it's non-nil, zero value otherwise. 22714 func (t *TeamDiscussion) GetCommentsCount() int { 22715 if t == nil || t.CommentsCount == nil { 22716 return 0 22717 } 22718 return *t.CommentsCount 22719 } 22720 22721 // GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise. 22722 func (t *TeamDiscussion) GetCommentsURL() string { 22723 if t == nil || t.CommentsURL == nil { 22724 return "" 22725 } 22726 return *t.CommentsURL 22727 } 22728 22729 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 22730 func (t *TeamDiscussion) GetCreatedAt() Timestamp { 22731 if t == nil || t.CreatedAt == nil { 22732 return Timestamp{} 22733 } 22734 return *t.CreatedAt 22735 } 22736 22737 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 22738 func (t *TeamDiscussion) GetHTMLURL() string { 22739 if t == nil || t.HTMLURL == nil { 22740 return "" 22741 } 22742 return *t.HTMLURL 22743 } 22744 22745 // GetLastEditedAt returns the LastEditedAt field if it's non-nil, zero value otherwise. 22746 func (t *TeamDiscussion) GetLastEditedAt() Timestamp { 22747 if t == nil || t.LastEditedAt == nil { 22748 return Timestamp{} 22749 } 22750 return *t.LastEditedAt 22751 } 22752 22753 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 22754 func (t *TeamDiscussion) GetNodeID() string { 22755 if t == nil || t.NodeID == nil { 22756 return "" 22757 } 22758 return *t.NodeID 22759 } 22760 22761 // GetNumber returns the Number field if it's non-nil, zero value otherwise. 22762 func (t *TeamDiscussion) GetNumber() int { 22763 if t == nil || t.Number == nil { 22764 return 0 22765 } 22766 return *t.Number 22767 } 22768 22769 // GetPinned returns the Pinned field if it's non-nil, zero value otherwise. 22770 func (t *TeamDiscussion) GetPinned() bool { 22771 if t == nil || t.Pinned == nil { 22772 return false 22773 } 22774 return *t.Pinned 22775 } 22776 22777 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 22778 func (t *TeamDiscussion) GetPrivate() bool { 22779 if t == nil || t.Private == nil { 22780 return false 22781 } 22782 return *t.Private 22783 } 22784 22785 // GetReactions returns the Reactions field. 22786 func (t *TeamDiscussion) GetReactions() *Reactions { 22787 if t == nil { 22788 return nil 22789 } 22790 return t.Reactions 22791 } 22792 22793 // GetTeamURL returns the TeamURL field if it's non-nil, zero value otherwise. 22794 func (t *TeamDiscussion) GetTeamURL() string { 22795 if t == nil || t.TeamURL == nil { 22796 return "" 22797 } 22798 return *t.TeamURL 22799 } 22800 22801 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 22802 func (t *TeamDiscussion) GetTitle() string { 22803 if t == nil || t.Title == nil { 22804 return "" 22805 } 22806 return *t.Title 22807 } 22808 22809 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 22810 func (t *TeamDiscussion) GetUpdatedAt() Timestamp { 22811 if t == nil || t.UpdatedAt == nil { 22812 return Timestamp{} 22813 } 22814 return *t.UpdatedAt 22815 } 22816 22817 // GetURL returns the URL field if it's non-nil, zero value otherwise. 22818 func (t *TeamDiscussion) GetURL() string { 22819 if t == nil || t.URL == nil { 22820 return "" 22821 } 22822 return *t.URL 22823 } 22824 22825 // GetAction returns the Action field if it's non-nil, zero value otherwise. 22826 func (t *TeamEvent) GetAction() string { 22827 if t == nil || t.Action == nil { 22828 return "" 22829 } 22830 return *t.Action 22831 } 22832 22833 // GetChanges returns the Changes field. 22834 func (t *TeamEvent) GetChanges() *TeamChange { 22835 if t == nil { 22836 return nil 22837 } 22838 return t.Changes 22839 } 22840 22841 // GetInstallation returns the Installation field. 22842 func (t *TeamEvent) GetInstallation() *Installation { 22843 if t == nil { 22844 return nil 22845 } 22846 return t.Installation 22847 } 22848 22849 // GetOrg returns the Org field. 22850 func (t *TeamEvent) GetOrg() *Organization { 22851 if t == nil { 22852 return nil 22853 } 22854 return t.Org 22855 } 22856 22857 // GetRepo returns the Repo field. 22858 func (t *TeamEvent) GetRepo() *Repository { 22859 if t == nil { 22860 return nil 22861 } 22862 return t.Repo 22863 } 22864 22865 // GetSender returns the Sender field. 22866 func (t *TeamEvent) GetSender() *User { 22867 if t == nil { 22868 return nil 22869 } 22870 return t.Sender 22871 } 22872 22873 // GetTeam returns the Team field. 22874 func (t *TeamEvent) GetTeam() *Team { 22875 if t == nil { 22876 return nil 22877 } 22878 return t.Team 22879 } 22880 22881 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 22882 func (t *TeamLDAPMapping) GetDescription() string { 22883 if t == nil || t.Description == nil { 22884 return "" 22885 } 22886 return *t.Description 22887 } 22888 22889 // GetID returns the ID field if it's non-nil, zero value otherwise. 22890 func (t *TeamLDAPMapping) GetID() int64 { 22891 if t == nil || t.ID == nil { 22892 return 0 22893 } 22894 return *t.ID 22895 } 22896 22897 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 22898 func (t *TeamLDAPMapping) GetLDAPDN() string { 22899 if t == nil || t.LDAPDN == nil { 22900 return "" 22901 } 22902 return *t.LDAPDN 22903 } 22904 22905 // GetMembersURL returns the MembersURL field if it's non-nil, zero value otherwise. 22906 func (t *TeamLDAPMapping) GetMembersURL() string { 22907 if t == nil || t.MembersURL == nil { 22908 return "" 22909 } 22910 return *t.MembersURL 22911 } 22912 22913 // GetName returns the Name field if it's non-nil, zero value otherwise. 22914 func (t *TeamLDAPMapping) GetName() string { 22915 if t == nil || t.Name == nil { 22916 return "" 22917 } 22918 return *t.Name 22919 } 22920 22921 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 22922 func (t *TeamLDAPMapping) GetPermission() string { 22923 if t == nil || t.Permission == nil { 22924 return "" 22925 } 22926 return *t.Permission 22927 } 22928 22929 // GetPrivacy returns the Privacy field if it's non-nil, zero value otherwise. 22930 func (t *TeamLDAPMapping) GetPrivacy() string { 22931 if t == nil || t.Privacy == nil { 22932 return "" 22933 } 22934 return *t.Privacy 22935 } 22936 22937 // GetRepositoriesURL returns the RepositoriesURL field if it's non-nil, zero value otherwise. 22938 func (t *TeamLDAPMapping) GetRepositoriesURL() string { 22939 if t == nil || t.RepositoriesURL == nil { 22940 return "" 22941 } 22942 return *t.RepositoriesURL 22943 } 22944 22945 // GetSlug returns the Slug field if it's non-nil, zero value otherwise. 22946 func (t *TeamLDAPMapping) GetSlug() string { 22947 if t == nil || t.Slug == nil { 22948 return "" 22949 } 22950 return *t.Slug 22951 } 22952 22953 // GetURL returns the URL field if it's non-nil, zero value otherwise. 22954 func (t *TeamLDAPMapping) GetURL() string { 22955 if t == nil || t.URL == nil { 22956 return "" 22957 } 22958 return *t.URL 22959 } 22960 22961 // GetFrom returns the From field if it's non-nil, zero value otherwise. 22962 func (t *TeamName) GetFrom() string { 22963 if t == nil || t.From == nil { 22964 return "" 22965 } 22966 return *t.From 22967 } 22968 22969 // GetFrom returns the From field. 22970 func (t *TeamPermissions) GetFrom() *TeamPermissionsFrom { 22971 if t == nil { 22972 return nil 22973 } 22974 return t.From 22975 } 22976 22977 // GetAdmin returns the Admin field if it's non-nil, zero value otherwise. 22978 func (t *TeamPermissionsFrom) GetAdmin() bool { 22979 if t == nil || t.Admin == nil { 22980 return false 22981 } 22982 return *t.Admin 22983 } 22984 22985 // GetPull returns the Pull field if it's non-nil, zero value otherwise. 22986 func (t *TeamPermissionsFrom) GetPull() bool { 22987 if t == nil || t.Pull == nil { 22988 return false 22989 } 22990 return *t.Pull 22991 } 22992 22993 // GetPush returns the Push field if it's non-nil, zero value otherwise. 22994 func (t *TeamPermissionsFrom) GetPush() bool { 22995 if t == nil || t.Push == nil { 22996 return false 22997 } 22998 return *t.Push 22999 } 23000 23001 // GetFrom returns the From field if it's non-nil, zero value otherwise. 23002 func (t *TeamPrivacy) GetFrom() string { 23003 if t == nil || t.From == nil { 23004 return "" 23005 } 23006 return *t.From 23007 } 23008 23009 // GetPermission returns the Permission field if it's non-nil, zero value otherwise. 23010 func (t *TeamProjectOptions) GetPermission() string { 23011 if t == nil || t.Permission == nil { 23012 return "" 23013 } 23014 return *t.Permission 23015 } 23016 23017 // GetPermissions returns the Permissions field. 23018 func (t *TeamRepository) GetPermissions() *TeamPermissions { 23019 if t == nil { 23020 return nil 23021 } 23022 return t.Permissions 23023 } 23024 23025 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 23026 func (t *TemplateRepoRequest) GetDescription() string { 23027 if t == nil || t.Description == nil { 23028 return "" 23029 } 23030 return *t.Description 23031 } 23032 23033 // GetIncludeAllBranches returns the IncludeAllBranches field if it's non-nil, zero value otherwise. 23034 func (t *TemplateRepoRequest) GetIncludeAllBranches() bool { 23035 if t == nil || t.IncludeAllBranches == nil { 23036 return false 23037 } 23038 return *t.IncludeAllBranches 23039 } 23040 23041 // GetName returns the Name field if it's non-nil, zero value otherwise. 23042 func (t *TemplateRepoRequest) GetName() string { 23043 if t == nil || t.Name == nil { 23044 return "" 23045 } 23046 return *t.Name 23047 } 23048 23049 // GetOwner returns the Owner field if it's non-nil, zero value otherwise. 23050 func (t *TemplateRepoRequest) GetOwner() string { 23051 if t == nil || t.Owner == nil { 23052 return "" 23053 } 23054 return *t.Owner 23055 } 23056 23057 // GetPrivate returns the Private field if it's non-nil, zero value otherwise. 23058 func (t *TemplateRepoRequest) GetPrivate() bool { 23059 if t == nil || t.Private == nil { 23060 return false 23061 } 23062 return *t.Private 23063 } 23064 23065 // GetFragment returns the Fragment field if it's non-nil, zero value otherwise. 23066 func (t *TextMatch) GetFragment() string { 23067 if t == nil || t.Fragment == nil { 23068 return "" 23069 } 23070 return *t.Fragment 23071 } 23072 23073 // GetObjectType returns the ObjectType field if it's non-nil, zero value otherwise. 23074 func (t *TextMatch) GetObjectType() string { 23075 if t == nil || t.ObjectType == nil { 23076 return "" 23077 } 23078 return *t.ObjectType 23079 } 23080 23081 // GetObjectURL returns the ObjectURL field if it's non-nil, zero value otherwise. 23082 func (t *TextMatch) GetObjectURL() string { 23083 if t == nil || t.ObjectURL == nil { 23084 return "" 23085 } 23086 return *t.ObjectURL 23087 } 23088 23089 // GetProperty returns the Property field if it's non-nil, zero value otherwise. 23090 func (t *TextMatch) GetProperty() string { 23091 if t == nil || t.Property == nil { 23092 return "" 23093 } 23094 return *t.Property 23095 } 23096 23097 // GetActor returns the Actor field. 23098 func (t *Timeline) GetActor() *User { 23099 if t == nil { 23100 return nil 23101 } 23102 return t.Actor 23103 } 23104 23105 // GetAssignee returns the Assignee field. 23106 func (t *Timeline) GetAssignee() *User { 23107 if t == nil { 23108 return nil 23109 } 23110 return t.Assignee 23111 } 23112 23113 // GetAssigner returns the Assigner field. 23114 func (t *Timeline) GetAssigner() *User { 23115 if t == nil { 23116 return nil 23117 } 23118 return t.Assigner 23119 } 23120 23121 // GetAuthor returns the Author field. 23122 func (t *Timeline) GetAuthor() *CommitAuthor { 23123 if t == nil { 23124 return nil 23125 } 23126 return t.Author 23127 } 23128 23129 // GetBody returns the Body field if it's non-nil, zero value otherwise. 23130 func (t *Timeline) GetBody() string { 23131 if t == nil || t.Body == nil { 23132 return "" 23133 } 23134 return *t.Body 23135 } 23136 23137 // GetCommitID returns the CommitID field if it's non-nil, zero value otherwise. 23138 func (t *Timeline) GetCommitID() string { 23139 if t == nil || t.CommitID == nil { 23140 return "" 23141 } 23142 return *t.CommitID 23143 } 23144 23145 // GetCommitter returns the Committer field. 23146 func (t *Timeline) GetCommitter() *CommitAuthor { 23147 if t == nil { 23148 return nil 23149 } 23150 return t.Committer 23151 } 23152 23153 // GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise. 23154 func (t *Timeline) GetCommitURL() string { 23155 if t == nil || t.CommitURL == nil { 23156 return "" 23157 } 23158 return *t.CommitURL 23159 } 23160 23161 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 23162 func (t *Timeline) GetCreatedAt() Timestamp { 23163 if t == nil || t.CreatedAt == nil { 23164 return Timestamp{} 23165 } 23166 return *t.CreatedAt 23167 } 23168 23169 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 23170 func (t *Timeline) GetEvent() string { 23171 if t == nil || t.Event == nil { 23172 return "" 23173 } 23174 return *t.Event 23175 } 23176 23177 // GetID returns the ID field if it's non-nil, zero value otherwise. 23178 func (t *Timeline) GetID() int64 { 23179 if t == nil || t.ID == nil { 23180 return 0 23181 } 23182 return *t.ID 23183 } 23184 23185 // GetLabel returns the Label field. 23186 func (t *Timeline) GetLabel() *Label { 23187 if t == nil { 23188 return nil 23189 } 23190 return t.Label 23191 } 23192 23193 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 23194 func (t *Timeline) GetMessage() string { 23195 if t == nil || t.Message == nil { 23196 return "" 23197 } 23198 return *t.Message 23199 } 23200 23201 // GetMilestone returns the Milestone field. 23202 func (t *Timeline) GetMilestone() *Milestone { 23203 if t == nil { 23204 return nil 23205 } 23206 return t.Milestone 23207 } 23208 23209 // GetPerformedViaGithubApp returns the PerformedViaGithubApp field. 23210 func (t *Timeline) GetPerformedViaGithubApp() *App { 23211 if t == nil { 23212 return nil 23213 } 23214 return t.PerformedViaGithubApp 23215 } 23216 23217 // GetProjectCard returns the ProjectCard field. 23218 func (t *Timeline) GetProjectCard() *ProjectCard { 23219 if t == nil { 23220 return nil 23221 } 23222 return t.ProjectCard 23223 } 23224 23225 // GetRename returns the Rename field. 23226 func (t *Timeline) GetRename() *Rename { 23227 if t == nil { 23228 return nil 23229 } 23230 return t.Rename 23231 } 23232 23233 // GetRequestedTeam returns the RequestedTeam field. 23234 func (t *Timeline) GetRequestedTeam() *Team { 23235 if t == nil { 23236 return nil 23237 } 23238 return t.RequestedTeam 23239 } 23240 23241 // GetRequester returns the Requester field. 23242 func (t *Timeline) GetRequester() *User { 23243 if t == nil { 23244 return nil 23245 } 23246 return t.Requester 23247 } 23248 23249 // GetReviewer returns the Reviewer field. 23250 func (t *Timeline) GetReviewer() *User { 23251 if t == nil { 23252 return nil 23253 } 23254 return t.Reviewer 23255 } 23256 23257 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 23258 func (t *Timeline) GetSHA() string { 23259 if t == nil || t.SHA == nil { 23260 return "" 23261 } 23262 return *t.SHA 23263 } 23264 23265 // GetSource returns the Source field. 23266 func (t *Timeline) GetSource() *Source { 23267 if t == nil { 23268 return nil 23269 } 23270 return t.Source 23271 } 23272 23273 // GetState returns the State field if it's non-nil, zero value otherwise. 23274 func (t *Timeline) GetState() string { 23275 if t == nil || t.State == nil { 23276 return "" 23277 } 23278 return *t.State 23279 } 23280 23281 // GetSubmittedAt returns the SubmittedAt field if it's non-nil, zero value otherwise. 23282 func (t *Timeline) GetSubmittedAt() Timestamp { 23283 if t == nil || t.SubmittedAt == nil { 23284 return Timestamp{} 23285 } 23286 return *t.SubmittedAt 23287 } 23288 23289 // GetURL returns the URL field if it's non-nil, zero value otherwise. 23290 func (t *Timeline) GetURL() string { 23291 if t == nil || t.URL == nil { 23292 return "" 23293 } 23294 return *t.URL 23295 } 23296 23297 // GetUser returns the User field. 23298 func (t *Timeline) GetUser() *User { 23299 if t == nil { 23300 return nil 23301 } 23302 return t.User 23303 } 23304 23305 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 23306 func (t *Tool) GetGUID() string { 23307 if t == nil || t.GUID == nil { 23308 return "" 23309 } 23310 return *t.GUID 23311 } 23312 23313 // GetName returns the Name field if it's non-nil, zero value otherwise. 23314 func (t *Tool) GetName() string { 23315 if t == nil || t.Name == nil { 23316 return "" 23317 } 23318 return *t.Name 23319 } 23320 23321 // GetVersion returns the Version field if it's non-nil, zero value otherwise. 23322 func (t *Tool) GetVersion() string { 23323 if t == nil || t.Version == nil { 23324 return "" 23325 } 23326 return *t.Version 23327 } 23328 23329 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 23330 func (t *TopicResult) GetCreatedAt() Timestamp { 23331 if t == nil || t.CreatedAt == nil { 23332 return Timestamp{} 23333 } 23334 return *t.CreatedAt 23335 } 23336 23337 // GetCreatedBy returns the CreatedBy field if it's non-nil, zero value otherwise. 23338 func (t *TopicResult) GetCreatedBy() string { 23339 if t == nil || t.CreatedBy == nil { 23340 return "" 23341 } 23342 return *t.CreatedBy 23343 } 23344 23345 // GetCurated returns the Curated field if it's non-nil, zero value otherwise. 23346 func (t *TopicResult) GetCurated() bool { 23347 if t == nil || t.Curated == nil { 23348 return false 23349 } 23350 return *t.Curated 23351 } 23352 23353 // GetDescription returns the Description field if it's non-nil, zero value otherwise. 23354 func (t *TopicResult) GetDescription() string { 23355 if t == nil || t.Description == nil { 23356 return "" 23357 } 23358 return *t.Description 23359 } 23360 23361 // GetDisplayName returns the DisplayName field if it's non-nil, zero value otherwise. 23362 func (t *TopicResult) GetDisplayName() string { 23363 if t == nil || t.DisplayName == nil { 23364 return "" 23365 } 23366 return *t.DisplayName 23367 } 23368 23369 // GetFeatured returns the Featured field if it's non-nil, zero value otherwise. 23370 func (t *TopicResult) GetFeatured() bool { 23371 if t == nil || t.Featured == nil { 23372 return false 23373 } 23374 return *t.Featured 23375 } 23376 23377 // GetName returns the Name field if it's non-nil, zero value otherwise. 23378 func (t *TopicResult) GetName() string { 23379 if t == nil || t.Name == nil { 23380 return "" 23381 } 23382 return *t.Name 23383 } 23384 23385 // GetScore returns the Score field. 23386 func (t *TopicResult) GetScore() *float64 { 23387 if t == nil { 23388 return nil 23389 } 23390 return t.Score 23391 } 23392 23393 // GetShortDescription returns the ShortDescription field if it's non-nil, zero value otherwise. 23394 func (t *TopicResult) GetShortDescription() string { 23395 if t == nil || t.ShortDescription == nil { 23396 return "" 23397 } 23398 return *t.ShortDescription 23399 } 23400 23401 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 23402 func (t *TopicResult) GetUpdatedAt() string { 23403 if t == nil || t.UpdatedAt == nil { 23404 return "" 23405 } 23406 return *t.UpdatedAt 23407 } 23408 23409 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 23410 func (t *TopicsSearchResult) GetIncompleteResults() bool { 23411 if t == nil || t.IncompleteResults == nil { 23412 return false 23413 } 23414 return *t.IncompleteResults 23415 } 23416 23417 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 23418 func (t *TopicsSearchResult) GetTotal() int { 23419 if t == nil || t.Total == nil { 23420 return 0 23421 } 23422 return *t.Total 23423 } 23424 23425 // GetCount returns the Count field if it's non-nil, zero value otherwise. 23426 func (t *TrafficClones) GetCount() int { 23427 if t == nil || t.Count == nil { 23428 return 0 23429 } 23430 return *t.Count 23431 } 23432 23433 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 23434 func (t *TrafficClones) GetUniques() int { 23435 if t == nil || t.Uniques == nil { 23436 return 0 23437 } 23438 return *t.Uniques 23439 } 23440 23441 // GetCount returns the Count field if it's non-nil, zero value otherwise. 23442 func (t *TrafficData) GetCount() int { 23443 if t == nil || t.Count == nil { 23444 return 0 23445 } 23446 return *t.Count 23447 } 23448 23449 // GetTimestamp returns the Timestamp field if it's non-nil, zero value otherwise. 23450 func (t *TrafficData) GetTimestamp() Timestamp { 23451 if t == nil || t.Timestamp == nil { 23452 return Timestamp{} 23453 } 23454 return *t.Timestamp 23455 } 23456 23457 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 23458 func (t *TrafficData) GetUniques() int { 23459 if t == nil || t.Uniques == nil { 23460 return 0 23461 } 23462 return *t.Uniques 23463 } 23464 23465 // GetCount returns the Count field if it's non-nil, zero value otherwise. 23466 func (t *TrafficPath) GetCount() int { 23467 if t == nil || t.Count == nil { 23468 return 0 23469 } 23470 return *t.Count 23471 } 23472 23473 // GetPath returns the Path field if it's non-nil, zero value otherwise. 23474 func (t *TrafficPath) GetPath() string { 23475 if t == nil || t.Path == nil { 23476 return "" 23477 } 23478 return *t.Path 23479 } 23480 23481 // GetTitle returns the Title field if it's non-nil, zero value otherwise. 23482 func (t *TrafficPath) GetTitle() string { 23483 if t == nil || t.Title == nil { 23484 return "" 23485 } 23486 return *t.Title 23487 } 23488 23489 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 23490 func (t *TrafficPath) GetUniques() int { 23491 if t == nil || t.Uniques == nil { 23492 return 0 23493 } 23494 return *t.Uniques 23495 } 23496 23497 // GetCount returns the Count field if it's non-nil, zero value otherwise. 23498 func (t *TrafficReferrer) GetCount() int { 23499 if t == nil || t.Count == nil { 23500 return 0 23501 } 23502 return *t.Count 23503 } 23504 23505 // GetReferrer returns the Referrer field if it's non-nil, zero value otherwise. 23506 func (t *TrafficReferrer) GetReferrer() string { 23507 if t == nil || t.Referrer == nil { 23508 return "" 23509 } 23510 return *t.Referrer 23511 } 23512 23513 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 23514 func (t *TrafficReferrer) GetUniques() int { 23515 if t == nil || t.Uniques == nil { 23516 return 0 23517 } 23518 return *t.Uniques 23519 } 23520 23521 // GetCount returns the Count field if it's non-nil, zero value otherwise. 23522 func (t *TrafficViews) GetCount() int { 23523 if t == nil || t.Count == nil { 23524 return 0 23525 } 23526 return *t.Count 23527 } 23528 23529 // GetUniques returns the Uniques field if it's non-nil, zero value otherwise. 23530 func (t *TrafficViews) GetUniques() int { 23531 if t == nil || t.Uniques == nil { 23532 return 0 23533 } 23534 return *t.Uniques 23535 } 23536 23537 // GetNewName returns the NewName field if it's non-nil, zero value otherwise. 23538 func (t *TransferRequest) GetNewName() string { 23539 if t == nil || t.NewName == nil { 23540 return "" 23541 } 23542 return *t.NewName 23543 } 23544 23545 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 23546 func (t *Tree) GetSHA() string { 23547 if t == nil || t.SHA == nil { 23548 return "" 23549 } 23550 return *t.SHA 23551 } 23552 23553 // GetTruncated returns the Truncated field if it's non-nil, zero value otherwise. 23554 func (t *Tree) GetTruncated() bool { 23555 if t == nil || t.Truncated == nil { 23556 return false 23557 } 23558 return *t.Truncated 23559 } 23560 23561 // GetContent returns the Content field if it's non-nil, zero value otherwise. 23562 func (t *TreeEntry) GetContent() string { 23563 if t == nil || t.Content == nil { 23564 return "" 23565 } 23566 return *t.Content 23567 } 23568 23569 // GetMode returns the Mode field if it's non-nil, zero value otherwise. 23570 func (t *TreeEntry) GetMode() string { 23571 if t == nil || t.Mode == nil { 23572 return "" 23573 } 23574 return *t.Mode 23575 } 23576 23577 // GetPath returns the Path field if it's non-nil, zero value otherwise. 23578 func (t *TreeEntry) GetPath() string { 23579 if t == nil || t.Path == nil { 23580 return "" 23581 } 23582 return *t.Path 23583 } 23584 23585 // GetSHA returns the SHA field if it's non-nil, zero value otherwise. 23586 func (t *TreeEntry) GetSHA() string { 23587 if t == nil || t.SHA == nil { 23588 return "" 23589 } 23590 return *t.SHA 23591 } 23592 23593 // GetSize returns the Size field if it's non-nil, zero value otherwise. 23594 func (t *TreeEntry) GetSize() int { 23595 if t == nil || t.Size == nil { 23596 return 0 23597 } 23598 return *t.Size 23599 } 23600 23601 // GetType returns the Type field if it's non-nil, zero value otherwise. 23602 func (t *TreeEntry) GetType() string { 23603 if t == nil || t.Type == nil { 23604 return "" 23605 } 23606 return *t.Type 23607 } 23608 23609 // GetURL returns the URL field if it's non-nil, zero value otherwise. 23610 func (t *TreeEntry) GetURL() string { 23611 if t == nil || t.URL == nil { 23612 return "" 23613 } 23614 return *t.URL 23615 } 23616 23617 // GetPath returns the Path field if it's non-nil, zero value otherwise. 23618 func (u *UpdateAttributeForSCIMUserOperations) GetPath() string { 23619 if u == nil || u.Path == nil { 23620 return "" 23621 } 23622 return *u.Path 23623 } 23624 23625 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 23626 func (u *UpdateCheckRunOptions) GetCompletedAt() Timestamp { 23627 if u == nil || u.CompletedAt == nil { 23628 return Timestamp{} 23629 } 23630 return *u.CompletedAt 23631 } 23632 23633 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 23634 func (u *UpdateCheckRunOptions) GetConclusion() string { 23635 if u == nil || u.Conclusion == nil { 23636 return "" 23637 } 23638 return *u.Conclusion 23639 } 23640 23641 // GetDetailsURL returns the DetailsURL field if it's non-nil, zero value otherwise. 23642 func (u *UpdateCheckRunOptions) GetDetailsURL() string { 23643 if u == nil || u.DetailsURL == nil { 23644 return "" 23645 } 23646 return *u.DetailsURL 23647 } 23648 23649 // GetExternalID returns the ExternalID field if it's non-nil, zero value otherwise. 23650 func (u *UpdateCheckRunOptions) GetExternalID() string { 23651 if u == nil || u.ExternalID == nil { 23652 return "" 23653 } 23654 return *u.ExternalID 23655 } 23656 23657 // GetOutput returns the Output field. 23658 func (u *UpdateCheckRunOptions) GetOutput() *CheckRunOutput { 23659 if u == nil { 23660 return nil 23661 } 23662 return u.Output 23663 } 23664 23665 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 23666 func (u *UpdateCheckRunOptions) GetStatus() string { 23667 if u == nil || u.Status == nil { 23668 return "" 23669 } 23670 return *u.Status 23671 } 23672 23673 // GetQuerySuite returns the QuerySuite field if it's non-nil, zero value otherwise. 23674 func (u *UpdateDefaultSetupConfigurationOptions) GetQuerySuite() string { 23675 if u == nil || u.QuerySuite == nil { 23676 return "" 23677 } 23678 return *u.QuerySuite 23679 } 23680 23681 // GetRunID returns the RunID field if it's non-nil, zero value otherwise. 23682 func (u *UpdateDefaultSetupConfigurationResponse) GetRunID() int64 { 23683 if u == nil || u.RunID == nil { 23684 return 0 23685 } 23686 return *u.RunID 23687 } 23688 23689 // GetRunURL returns the RunURL field if it's non-nil, zero value otherwise. 23690 func (u *UpdateDefaultSetupConfigurationResponse) GetRunURL() string { 23691 if u == nil || u.RunURL == nil { 23692 return "" 23693 } 23694 return *u.RunURL 23695 } 23696 23697 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 23698 func (u *UpdateEnterpriseRunnerGroupRequest) GetAllowsPublicRepositories() bool { 23699 if u == nil || u.AllowsPublicRepositories == nil { 23700 return false 23701 } 23702 return *u.AllowsPublicRepositories 23703 } 23704 23705 // GetName returns the Name field if it's non-nil, zero value otherwise. 23706 func (u *UpdateEnterpriseRunnerGroupRequest) GetName() string { 23707 if u == nil || u.Name == nil { 23708 return "" 23709 } 23710 return *u.Name 23711 } 23712 23713 // GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. 23714 func (u *UpdateEnterpriseRunnerGroupRequest) GetRestrictedToWorkflows() bool { 23715 if u == nil || u.RestrictedToWorkflows == nil { 23716 return false 23717 } 23718 return *u.RestrictedToWorkflows 23719 } 23720 23721 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 23722 func (u *UpdateEnterpriseRunnerGroupRequest) GetVisibility() string { 23723 if u == nil || u.Visibility == nil { 23724 return "" 23725 } 23726 return *u.Visibility 23727 } 23728 23729 // GetAllowsPublicRepositories returns the AllowsPublicRepositories field if it's non-nil, zero value otherwise. 23730 func (u *UpdateRunnerGroupRequest) GetAllowsPublicRepositories() bool { 23731 if u == nil || u.AllowsPublicRepositories == nil { 23732 return false 23733 } 23734 return *u.AllowsPublicRepositories 23735 } 23736 23737 // GetName returns the Name field if it's non-nil, zero value otherwise. 23738 func (u *UpdateRunnerGroupRequest) GetName() string { 23739 if u == nil || u.Name == nil { 23740 return "" 23741 } 23742 return *u.Name 23743 } 23744 23745 // GetRestrictedToWorkflows returns the RestrictedToWorkflows field if it's non-nil, zero value otherwise. 23746 func (u *UpdateRunnerGroupRequest) GetRestrictedToWorkflows() bool { 23747 if u == nil || u.RestrictedToWorkflows == nil { 23748 return false 23749 } 23750 return *u.RestrictedToWorkflows 23751 } 23752 23753 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 23754 func (u *UpdateRunnerGroupRequest) GetVisibility() string { 23755 if u == nil || u.Visibility == nil { 23756 return "" 23757 } 23758 return *u.Visibility 23759 } 23760 23761 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 23762 func (u *User) GetAvatarURL() string { 23763 if u == nil || u.AvatarURL == nil { 23764 return "" 23765 } 23766 return *u.AvatarURL 23767 } 23768 23769 // GetBio returns the Bio field if it's non-nil, zero value otherwise. 23770 func (u *User) GetBio() string { 23771 if u == nil || u.Bio == nil { 23772 return "" 23773 } 23774 return *u.Bio 23775 } 23776 23777 // GetBlog returns the Blog field if it's non-nil, zero value otherwise. 23778 func (u *User) GetBlog() string { 23779 if u == nil || u.Blog == nil { 23780 return "" 23781 } 23782 return *u.Blog 23783 } 23784 23785 // GetCollaborators returns the Collaborators field if it's non-nil, zero value otherwise. 23786 func (u *User) GetCollaborators() int { 23787 if u == nil || u.Collaborators == nil { 23788 return 0 23789 } 23790 return *u.Collaborators 23791 } 23792 23793 // GetCompany returns the Company field if it's non-nil, zero value otherwise. 23794 func (u *User) GetCompany() string { 23795 if u == nil || u.Company == nil { 23796 return "" 23797 } 23798 return *u.Company 23799 } 23800 23801 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 23802 func (u *User) GetCreatedAt() Timestamp { 23803 if u == nil || u.CreatedAt == nil { 23804 return Timestamp{} 23805 } 23806 return *u.CreatedAt 23807 } 23808 23809 // GetDiskUsage returns the DiskUsage field if it's non-nil, zero value otherwise. 23810 func (u *User) GetDiskUsage() int { 23811 if u == nil || u.DiskUsage == nil { 23812 return 0 23813 } 23814 return *u.DiskUsage 23815 } 23816 23817 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 23818 func (u *User) GetEmail() string { 23819 if u == nil || u.Email == nil { 23820 return "" 23821 } 23822 return *u.Email 23823 } 23824 23825 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 23826 func (u *User) GetEventsURL() string { 23827 if u == nil || u.EventsURL == nil { 23828 return "" 23829 } 23830 return *u.EventsURL 23831 } 23832 23833 // GetFollowers returns the Followers field if it's non-nil, zero value otherwise. 23834 func (u *User) GetFollowers() int { 23835 if u == nil || u.Followers == nil { 23836 return 0 23837 } 23838 return *u.Followers 23839 } 23840 23841 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 23842 func (u *User) GetFollowersURL() string { 23843 if u == nil || u.FollowersURL == nil { 23844 return "" 23845 } 23846 return *u.FollowersURL 23847 } 23848 23849 // GetFollowing returns the Following field if it's non-nil, zero value otherwise. 23850 func (u *User) GetFollowing() int { 23851 if u == nil || u.Following == nil { 23852 return 0 23853 } 23854 return *u.Following 23855 } 23856 23857 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 23858 func (u *User) GetFollowingURL() string { 23859 if u == nil || u.FollowingURL == nil { 23860 return "" 23861 } 23862 return *u.FollowingURL 23863 } 23864 23865 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 23866 func (u *User) GetGistsURL() string { 23867 if u == nil || u.GistsURL == nil { 23868 return "" 23869 } 23870 return *u.GistsURL 23871 } 23872 23873 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 23874 func (u *User) GetGravatarID() string { 23875 if u == nil || u.GravatarID == nil { 23876 return "" 23877 } 23878 return *u.GravatarID 23879 } 23880 23881 // GetHireable returns the Hireable field if it's non-nil, zero value otherwise. 23882 func (u *User) GetHireable() bool { 23883 if u == nil || u.Hireable == nil { 23884 return false 23885 } 23886 return *u.Hireable 23887 } 23888 23889 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 23890 func (u *User) GetHTMLURL() string { 23891 if u == nil || u.HTMLURL == nil { 23892 return "" 23893 } 23894 return *u.HTMLURL 23895 } 23896 23897 // GetID returns the ID field if it's non-nil, zero value otherwise. 23898 func (u *User) GetID() int64 { 23899 if u == nil || u.ID == nil { 23900 return 0 23901 } 23902 return *u.ID 23903 } 23904 23905 // GetLdapDn returns the LdapDn field if it's non-nil, zero value otherwise. 23906 func (u *User) GetLdapDn() string { 23907 if u == nil || u.LdapDn == nil { 23908 return "" 23909 } 23910 return *u.LdapDn 23911 } 23912 23913 // GetLocation returns the Location field if it's non-nil, zero value otherwise. 23914 func (u *User) GetLocation() string { 23915 if u == nil || u.Location == nil { 23916 return "" 23917 } 23918 return *u.Location 23919 } 23920 23921 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 23922 func (u *User) GetLogin() string { 23923 if u == nil || u.Login == nil { 23924 return "" 23925 } 23926 return *u.Login 23927 } 23928 23929 // GetName returns the Name field if it's non-nil, zero value otherwise. 23930 func (u *User) GetName() string { 23931 if u == nil || u.Name == nil { 23932 return "" 23933 } 23934 return *u.Name 23935 } 23936 23937 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 23938 func (u *User) GetNodeID() string { 23939 if u == nil || u.NodeID == nil { 23940 return "" 23941 } 23942 return *u.NodeID 23943 } 23944 23945 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 23946 func (u *User) GetOrganizationsURL() string { 23947 if u == nil || u.OrganizationsURL == nil { 23948 return "" 23949 } 23950 return *u.OrganizationsURL 23951 } 23952 23953 // GetOwnedPrivateRepos returns the OwnedPrivateRepos field if it's non-nil, zero value otherwise. 23954 func (u *User) GetOwnedPrivateRepos() int64 { 23955 if u == nil || u.OwnedPrivateRepos == nil { 23956 return 0 23957 } 23958 return *u.OwnedPrivateRepos 23959 } 23960 23961 // GetPermissions returns the Permissions map if it's non-nil, an empty map otherwise. 23962 func (u *User) GetPermissions() map[string]bool { 23963 if u == nil || u.Permissions == nil { 23964 return map[string]bool{} 23965 } 23966 return u.Permissions 23967 } 23968 23969 // GetPlan returns the Plan field. 23970 func (u *User) GetPlan() *Plan { 23971 if u == nil { 23972 return nil 23973 } 23974 return u.Plan 23975 } 23976 23977 // GetPrivateGists returns the PrivateGists field if it's non-nil, zero value otherwise. 23978 func (u *User) GetPrivateGists() int { 23979 if u == nil || u.PrivateGists == nil { 23980 return 0 23981 } 23982 return *u.PrivateGists 23983 } 23984 23985 // GetPublicGists returns the PublicGists field if it's non-nil, zero value otherwise. 23986 func (u *User) GetPublicGists() int { 23987 if u == nil || u.PublicGists == nil { 23988 return 0 23989 } 23990 return *u.PublicGists 23991 } 23992 23993 // GetPublicRepos returns the PublicRepos field if it's non-nil, zero value otherwise. 23994 func (u *User) GetPublicRepos() int { 23995 if u == nil || u.PublicRepos == nil { 23996 return 0 23997 } 23998 return *u.PublicRepos 23999 } 24000 24001 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 24002 func (u *User) GetReceivedEventsURL() string { 24003 if u == nil || u.ReceivedEventsURL == nil { 24004 return "" 24005 } 24006 return *u.ReceivedEventsURL 24007 } 24008 24009 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 24010 func (u *User) GetReposURL() string { 24011 if u == nil || u.ReposURL == nil { 24012 return "" 24013 } 24014 return *u.ReposURL 24015 } 24016 24017 // GetRoleName returns the RoleName field if it's non-nil, zero value otherwise. 24018 func (u *User) GetRoleName() string { 24019 if u == nil || u.RoleName == nil { 24020 return "" 24021 } 24022 return *u.RoleName 24023 } 24024 24025 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 24026 func (u *User) GetSiteAdmin() bool { 24027 if u == nil || u.SiteAdmin == nil { 24028 return false 24029 } 24030 return *u.SiteAdmin 24031 } 24032 24033 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 24034 func (u *User) GetStarredURL() string { 24035 if u == nil || u.StarredURL == nil { 24036 return "" 24037 } 24038 return *u.StarredURL 24039 } 24040 24041 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 24042 func (u *User) GetSubscriptionsURL() string { 24043 if u == nil || u.SubscriptionsURL == nil { 24044 return "" 24045 } 24046 return *u.SubscriptionsURL 24047 } 24048 24049 // GetSuspendedAt returns the SuspendedAt field if it's non-nil, zero value otherwise. 24050 func (u *User) GetSuspendedAt() Timestamp { 24051 if u == nil || u.SuspendedAt == nil { 24052 return Timestamp{} 24053 } 24054 return *u.SuspendedAt 24055 } 24056 24057 // GetTotalPrivateRepos returns the TotalPrivateRepos field if it's non-nil, zero value otherwise. 24058 func (u *User) GetTotalPrivateRepos() int64 { 24059 if u == nil || u.TotalPrivateRepos == nil { 24060 return 0 24061 } 24062 return *u.TotalPrivateRepos 24063 } 24064 24065 // GetTwitterUsername returns the TwitterUsername field if it's non-nil, zero value otherwise. 24066 func (u *User) GetTwitterUsername() string { 24067 if u == nil || u.TwitterUsername == nil { 24068 return "" 24069 } 24070 return *u.TwitterUsername 24071 } 24072 24073 // GetTwoFactorAuthentication returns the TwoFactorAuthentication field if it's non-nil, zero value otherwise. 24074 func (u *User) GetTwoFactorAuthentication() bool { 24075 if u == nil || u.TwoFactorAuthentication == nil { 24076 return false 24077 } 24078 return *u.TwoFactorAuthentication 24079 } 24080 24081 // GetType returns the Type field if it's non-nil, zero value otherwise. 24082 func (u *User) GetType() string { 24083 if u == nil || u.Type == nil { 24084 return "" 24085 } 24086 return *u.Type 24087 } 24088 24089 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 24090 func (u *User) GetUpdatedAt() Timestamp { 24091 if u == nil || u.UpdatedAt == nil { 24092 return Timestamp{} 24093 } 24094 return *u.UpdatedAt 24095 } 24096 24097 // GetURL returns the URL field if it's non-nil, zero value otherwise. 24098 func (u *User) GetURL() string { 24099 if u == nil || u.URL == nil { 24100 return "" 24101 } 24102 return *u.URL 24103 } 24104 24105 // GetApp returns the App field. 24106 func (u *UserAuthorization) GetApp() *OAuthAPP { 24107 if u == nil { 24108 return nil 24109 } 24110 return u.App 24111 } 24112 24113 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 24114 func (u *UserAuthorization) GetCreatedAt() Timestamp { 24115 if u == nil || u.CreatedAt == nil { 24116 return Timestamp{} 24117 } 24118 return *u.CreatedAt 24119 } 24120 24121 // GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. 24122 func (u *UserAuthorization) GetFingerprint() string { 24123 if u == nil || u.Fingerprint == nil { 24124 return "" 24125 } 24126 return *u.Fingerprint 24127 } 24128 24129 // GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise. 24130 func (u *UserAuthorization) GetHashedToken() string { 24131 if u == nil || u.HashedToken == nil { 24132 return "" 24133 } 24134 return *u.HashedToken 24135 } 24136 24137 // GetID returns the ID field if it's non-nil, zero value otherwise. 24138 func (u *UserAuthorization) GetID() int64 { 24139 if u == nil || u.ID == nil { 24140 return 0 24141 } 24142 return *u.ID 24143 } 24144 24145 // GetNote returns the Note field if it's non-nil, zero value otherwise. 24146 func (u *UserAuthorization) GetNote() string { 24147 if u == nil || u.Note == nil { 24148 return "" 24149 } 24150 return *u.Note 24151 } 24152 24153 // GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise. 24154 func (u *UserAuthorization) GetNoteURL() string { 24155 if u == nil || u.NoteURL == nil { 24156 return "" 24157 } 24158 return *u.NoteURL 24159 } 24160 24161 // GetToken returns the Token field if it's non-nil, zero value otherwise. 24162 func (u *UserAuthorization) GetToken() string { 24163 if u == nil || u.Token == nil { 24164 return "" 24165 } 24166 return *u.Token 24167 } 24168 24169 // GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise. 24170 func (u *UserAuthorization) GetTokenLastEight() string { 24171 if u == nil || u.TokenLastEight == nil { 24172 return "" 24173 } 24174 return *u.TokenLastEight 24175 } 24176 24177 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 24178 func (u *UserAuthorization) GetUpdatedAt() Timestamp { 24179 if u == nil || u.UpdatedAt == nil { 24180 return Timestamp{} 24181 } 24182 return *u.UpdatedAt 24183 } 24184 24185 // GetURL returns the URL field if it's non-nil, zero value otherwise. 24186 func (u *UserAuthorization) GetURL() string { 24187 if u == nil || u.URL == nil { 24188 return "" 24189 } 24190 return *u.URL 24191 } 24192 24193 // GetMessage returns the Message field if it's non-nil, zero value otherwise. 24194 func (u *UserContext) GetMessage() string { 24195 if u == nil || u.Message == nil { 24196 return "" 24197 } 24198 return *u.Message 24199 } 24200 24201 // GetOcticon returns the Octicon field if it's non-nil, zero value otherwise. 24202 func (u *UserContext) GetOcticon() string { 24203 if u == nil || u.Octicon == nil { 24204 return "" 24205 } 24206 return *u.Octicon 24207 } 24208 24209 // GetEmail returns the Email field if it's non-nil, zero value otherwise. 24210 func (u *UserEmail) GetEmail() string { 24211 if u == nil || u.Email == nil { 24212 return "" 24213 } 24214 return *u.Email 24215 } 24216 24217 // GetPrimary returns the Primary field if it's non-nil, zero value otherwise. 24218 func (u *UserEmail) GetPrimary() bool { 24219 if u == nil || u.Primary == nil { 24220 return false 24221 } 24222 return *u.Primary 24223 } 24224 24225 // GetVerified returns the Verified field if it's non-nil, zero value otherwise. 24226 func (u *UserEmail) GetVerified() bool { 24227 if u == nil || u.Verified == nil { 24228 return false 24229 } 24230 return *u.Verified 24231 } 24232 24233 // GetVisibility returns the Visibility field if it's non-nil, zero value otherwise. 24234 func (u *UserEmail) GetVisibility() string { 24235 if u == nil || u.Visibility == nil { 24236 return "" 24237 } 24238 return *u.Visibility 24239 } 24240 24241 // GetAction returns the Action field if it's non-nil, zero value otherwise. 24242 func (u *UserEvent) GetAction() string { 24243 if u == nil || u.Action == nil { 24244 return "" 24245 } 24246 return *u.Action 24247 } 24248 24249 // GetEnterprise returns the Enterprise field. 24250 func (u *UserEvent) GetEnterprise() *Enterprise { 24251 if u == nil { 24252 return nil 24253 } 24254 return u.Enterprise 24255 } 24256 24257 // GetInstallation returns the Installation field. 24258 func (u *UserEvent) GetInstallation() *Installation { 24259 if u == nil { 24260 return nil 24261 } 24262 return u.Installation 24263 } 24264 24265 // GetSender returns the Sender field. 24266 func (u *UserEvent) GetSender() *User { 24267 if u == nil { 24268 return nil 24269 } 24270 return u.Sender 24271 } 24272 24273 // GetUser returns the User field. 24274 func (u *UserEvent) GetUser() *User { 24275 if u == nil { 24276 return nil 24277 } 24278 return u.User 24279 } 24280 24281 // GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise. 24282 func (u *UserLDAPMapping) GetAvatarURL() string { 24283 if u == nil || u.AvatarURL == nil { 24284 return "" 24285 } 24286 return *u.AvatarURL 24287 } 24288 24289 // GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise. 24290 func (u *UserLDAPMapping) GetEventsURL() string { 24291 if u == nil || u.EventsURL == nil { 24292 return "" 24293 } 24294 return *u.EventsURL 24295 } 24296 24297 // GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise. 24298 func (u *UserLDAPMapping) GetFollowersURL() string { 24299 if u == nil || u.FollowersURL == nil { 24300 return "" 24301 } 24302 return *u.FollowersURL 24303 } 24304 24305 // GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise. 24306 func (u *UserLDAPMapping) GetFollowingURL() string { 24307 if u == nil || u.FollowingURL == nil { 24308 return "" 24309 } 24310 return *u.FollowingURL 24311 } 24312 24313 // GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise. 24314 func (u *UserLDAPMapping) GetGistsURL() string { 24315 if u == nil || u.GistsURL == nil { 24316 return "" 24317 } 24318 return *u.GistsURL 24319 } 24320 24321 // GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise. 24322 func (u *UserLDAPMapping) GetGravatarID() string { 24323 if u == nil || u.GravatarID == nil { 24324 return "" 24325 } 24326 return *u.GravatarID 24327 } 24328 24329 // GetID returns the ID field if it's non-nil, zero value otherwise. 24330 func (u *UserLDAPMapping) GetID() int64 { 24331 if u == nil || u.ID == nil { 24332 return 0 24333 } 24334 return *u.ID 24335 } 24336 24337 // GetLDAPDN returns the LDAPDN field if it's non-nil, zero value otherwise. 24338 func (u *UserLDAPMapping) GetLDAPDN() string { 24339 if u == nil || u.LDAPDN == nil { 24340 return "" 24341 } 24342 return *u.LDAPDN 24343 } 24344 24345 // GetLogin returns the Login field if it's non-nil, zero value otherwise. 24346 func (u *UserLDAPMapping) GetLogin() string { 24347 if u == nil || u.Login == nil { 24348 return "" 24349 } 24350 return *u.Login 24351 } 24352 24353 // GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise. 24354 func (u *UserLDAPMapping) GetOrganizationsURL() string { 24355 if u == nil || u.OrganizationsURL == nil { 24356 return "" 24357 } 24358 return *u.OrganizationsURL 24359 } 24360 24361 // GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise. 24362 func (u *UserLDAPMapping) GetReceivedEventsURL() string { 24363 if u == nil || u.ReceivedEventsURL == nil { 24364 return "" 24365 } 24366 return *u.ReceivedEventsURL 24367 } 24368 24369 // GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise. 24370 func (u *UserLDAPMapping) GetReposURL() string { 24371 if u == nil || u.ReposURL == nil { 24372 return "" 24373 } 24374 return *u.ReposURL 24375 } 24376 24377 // GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise. 24378 func (u *UserLDAPMapping) GetSiteAdmin() bool { 24379 if u == nil || u.SiteAdmin == nil { 24380 return false 24381 } 24382 return *u.SiteAdmin 24383 } 24384 24385 // GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise. 24386 func (u *UserLDAPMapping) GetStarredURL() string { 24387 if u == nil || u.StarredURL == nil { 24388 return "" 24389 } 24390 return *u.StarredURL 24391 } 24392 24393 // GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise. 24394 func (u *UserLDAPMapping) GetSubscriptionsURL() string { 24395 if u == nil || u.SubscriptionsURL == nil { 24396 return "" 24397 } 24398 return *u.SubscriptionsURL 24399 } 24400 24401 // GetType returns the Type field if it's non-nil, zero value otherwise. 24402 func (u *UserLDAPMapping) GetType() string { 24403 if u == nil || u.Type == nil { 24404 return "" 24405 } 24406 return *u.Type 24407 } 24408 24409 // GetURL returns the URL field if it's non-nil, zero value otherwise. 24410 func (u *UserLDAPMapping) GetURL() string { 24411 if u == nil || u.URL == nil { 24412 return "" 24413 } 24414 return *u.URL 24415 } 24416 24417 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 24418 func (u *UserMigration) GetCreatedAt() string { 24419 if u == nil || u.CreatedAt == nil { 24420 return "" 24421 } 24422 return *u.CreatedAt 24423 } 24424 24425 // GetExcludeAttachments returns the ExcludeAttachments field if it's non-nil, zero value otherwise. 24426 func (u *UserMigration) GetExcludeAttachments() bool { 24427 if u == nil || u.ExcludeAttachments == nil { 24428 return false 24429 } 24430 return *u.ExcludeAttachments 24431 } 24432 24433 // GetGUID returns the GUID field if it's non-nil, zero value otherwise. 24434 func (u *UserMigration) GetGUID() string { 24435 if u == nil || u.GUID == nil { 24436 return "" 24437 } 24438 return *u.GUID 24439 } 24440 24441 // GetID returns the ID field if it's non-nil, zero value otherwise. 24442 func (u *UserMigration) GetID() int64 { 24443 if u == nil || u.ID == nil { 24444 return 0 24445 } 24446 return *u.ID 24447 } 24448 24449 // GetLockRepositories returns the LockRepositories field if it's non-nil, zero value otherwise. 24450 func (u *UserMigration) GetLockRepositories() bool { 24451 if u == nil || u.LockRepositories == nil { 24452 return false 24453 } 24454 return *u.LockRepositories 24455 } 24456 24457 // GetState returns the State field if it's non-nil, zero value otherwise. 24458 func (u *UserMigration) GetState() string { 24459 if u == nil || u.State == nil { 24460 return "" 24461 } 24462 return *u.State 24463 } 24464 24465 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 24466 func (u *UserMigration) GetUpdatedAt() string { 24467 if u == nil || u.UpdatedAt == nil { 24468 return "" 24469 } 24470 return *u.UpdatedAt 24471 } 24472 24473 // GetURL returns the URL field if it's non-nil, zero value otherwise. 24474 func (u *UserMigration) GetURL() string { 24475 if u == nil || u.URL == nil { 24476 return "" 24477 } 24478 return *u.URL 24479 } 24480 24481 // GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise. 24482 func (u *UsersSearchResult) GetIncompleteResults() bool { 24483 if u == nil || u.IncompleteResults == nil { 24484 return false 24485 } 24486 return *u.IncompleteResults 24487 } 24488 24489 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 24490 func (u *UsersSearchResult) GetTotal() int { 24491 if u == nil || u.Total == nil { 24492 return 0 24493 } 24494 return *u.Total 24495 } 24496 24497 // GetAdminUsers returns the AdminUsers field if it's non-nil, zero value otherwise. 24498 func (u *UserStats) GetAdminUsers() int { 24499 if u == nil || u.AdminUsers == nil { 24500 return 0 24501 } 24502 return *u.AdminUsers 24503 } 24504 24505 // GetSuspendedUsers returns the SuspendedUsers field if it's non-nil, zero value otherwise. 24506 func (u *UserStats) GetSuspendedUsers() int { 24507 if u == nil || u.SuspendedUsers == nil { 24508 return 0 24509 } 24510 return *u.SuspendedUsers 24511 } 24512 24513 // GetTotalUsers returns the TotalUsers field if it's non-nil, zero value otherwise. 24514 func (u *UserStats) GetTotalUsers() int { 24515 if u == nil || u.TotalUsers == nil { 24516 return 0 24517 } 24518 return *u.TotalUsers 24519 } 24520 24521 // GetReason returns the Reason field if it's non-nil, zero value otherwise. 24522 func (u *UserSuspendOptions) GetReason() string { 24523 if u == nil || u.Reason == nil { 24524 return "" 24525 } 24526 return *u.Reason 24527 } 24528 24529 // GetEcosystem returns the Ecosystem field if it's non-nil, zero value otherwise. 24530 func (v *VulnerabilityPackage) GetEcosystem() string { 24531 if v == nil || v.Ecosystem == nil { 24532 return "" 24533 } 24534 return *v.Ecosystem 24535 } 24536 24537 // GetName returns the Name field if it's non-nil, zero value otherwise. 24538 func (v *VulnerabilityPackage) GetName() string { 24539 if v == nil || v.Name == nil { 24540 return "" 24541 } 24542 return *v.Name 24543 } 24544 24545 // GetAction returns the Action field if it's non-nil, zero value otherwise. 24546 func (w *WatchEvent) GetAction() string { 24547 if w == nil || w.Action == nil { 24548 return "" 24549 } 24550 return *w.Action 24551 } 24552 24553 // GetInstallation returns the Installation field. 24554 func (w *WatchEvent) GetInstallation() *Installation { 24555 if w == nil { 24556 return nil 24557 } 24558 return w.Installation 24559 } 24560 24561 // GetOrg returns the Org field. 24562 func (w *WatchEvent) GetOrg() *Organization { 24563 if w == nil { 24564 return nil 24565 } 24566 return w.Org 24567 } 24568 24569 // GetRepo returns the Repo field. 24570 func (w *WatchEvent) GetRepo() *Repository { 24571 if w == nil { 24572 return nil 24573 } 24574 return w.Repo 24575 } 24576 24577 // GetSender returns the Sender field. 24578 func (w *WatchEvent) GetSender() *User { 24579 if w == nil { 24580 return nil 24581 } 24582 return w.Sender 24583 } 24584 24585 // GetTotal returns the Total field if it's non-nil, zero value otherwise. 24586 func (w *WeeklyCommitActivity) GetTotal() int { 24587 if w == nil || w.Total == nil { 24588 return 0 24589 } 24590 return *w.Total 24591 } 24592 24593 // GetWeek returns the Week field if it's non-nil, zero value otherwise. 24594 func (w *WeeklyCommitActivity) GetWeek() Timestamp { 24595 if w == nil || w.Week == nil { 24596 return Timestamp{} 24597 } 24598 return *w.Week 24599 } 24600 24601 // GetAdditions returns the Additions field if it's non-nil, zero value otherwise. 24602 func (w *WeeklyStats) GetAdditions() int { 24603 if w == nil || w.Additions == nil { 24604 return 0 24605 } 24606 return *w.Additions 24607 } 24608 24609 // GetCommits returns the Commits field if it's non-nil, zero value otherwise. 24610 func (w *WeeklyStats) GetCommits() int { 24611 if w == nil || w.Commits == nil { 24612 return 0 24613 } 24614 return *w.Commits 24615 } 24616 24617 // GetDeletions returns the Deletions field if it's non-nil, zero value otherwise. 24618 func (w *WeeklyStats) GetDeletions() int { 24619 if w == nil || w.Deletions == nil { 24620 return 0 24621 } 24622 return *w.Deletions 24623 } 24624 24625 // GetWeek returns the Week field if it's non-nil, zero value otherwise. 24626 func (w *WeeklyStats) GetWeek() Timestamp { 24627 if w == nil || w.Week == nil { 24628 return Timestamp{} 24629 } 24630 return *w.Week 24631 } 24632 24633 // GetBadgeURL returns the BadgeURL field if it's non-nil, zero value otherwise. 24634 func (w *Workflow) GetBadgeURL() string { 24635 if w == nil || w.BadgeURL == nil { 24636 return "" 24637 } 24638 return *w.BadgeURL 24639 } 24640 24641 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 24642 func (w *Workflow) GetCreatedAt() Timestamp { 24643 if w == nil || w.CreatedAt == nil { 24644 return Timestamp{} 24645 } 24646 return *w.CreatedAt 24647 } 24648 24649 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 24650 func (w *Workflow) GetHTMLURL() string { 24651 if w == nil || w.HTMLURL == nil { 24652 return "" 24653 } 24654 return *w.HTMLURL 24655 } 24656 24657 // GetID returns the ID field if it's non-nil, zero value otherwise. 24658 func (w *Workflow) GetID() int64 { 24659 if w == nil || w.ID == nil { 24660 return 0 24661 } 24662 return *w.ID 24663 } 24664 24665 // GetName returns the Name field if it's non-nil, zero value otherwise. 24666 func (w *Workflow) GetName() string { 24667 if w == nil || w.Name == nil { 24668 return "" 24669 } 24670 return *w.Name 24671 } 24672 24673 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 24674 func (w *Workflow) GetNodeID() string { 24675 if w == nil || w.NodeID == nil { 24676 return "" 24677 } 24678 return *w.NodeID 24679 } 24680 24681 // GetPath returns the Path field if it's non-nil, zero value otherwise. 24682 func (w *Workflow) GetPath() string { 24683 if w == nil || w.Path == nil { 24684 return "" 24685 } 24686 return *w.Path 24687 } 24688 24689 // GetState returns the State field if it's non-nil, zero value otherwise. 24690 func (w *Workflow) GetState() string { 24691 if w == nil || w.State == nil { 24692 return "" 24693 } 24694 return *w.State 24695 } 24696 24697 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 24698 func (w *Workflow) GetUpdatedAt() Timestamp { 24699 if w == nil || w.UpdatedAt == nil { 24700 return Timestamp{} 24701 } 24702 return *w.UpdatedAt 24703 } 24704 24705 // GetURL returns the URL field if it's non-nil, zero value otherwise. 24706 func (w *Workflow) GetURL() string { 24707 if w == nil || w.URL == nil { 24708 return "" 24709 } 24710 return *w.URL 24711 } 24712 24713 // GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise. 24714 func (w *WorkflowBill) GetTotalMS() int64 { 24715 if w == nil || w.TotalMS == nil { 24716 return 0 24717 } 24718 return *w.TotalMS 24719 } 24720 24721 // GetInstallation returns the Installation field. 24722 func (w *WorkflowDispatchEvent) GetInstallation() *Installation { 24723 if w == nil { 24724 return nil 24725 } 24726 return w.Installation 24727 } 24728 24729 // GetOrg returns the Org field. 24730 func (w *WorkflowDispatchEvent) GetOrg() *Organization { 24731 if w == nil { 24732 return nil 24733 } 24734 return w.Org 24735 } 24736 24737 // GetRef returns the Ref field if it's non-nil, zero value otherwise. 24738 func (w *WorkflowDispatchEvent) GetRef() string { 24739 if w == nil || w.Ref == nil { 24740 return "" 24741 } 24742 return *w.Ref 24743 } 24744 24745 // GetRepo returns the Repo field. 24746 func (w *WorkflowDispatchEvent) GetRepo() *Repository { 24747 if w == nil { 24748 return nil 24749 } 24750 return w.Repo 24751 } 24752 24753 // GetSender returns the Sender field. 24754 func (w *WorkflowDispatchEvent) GetSender() *User { 24755 if w == nil { 24756 return nil 24757 } 24758 return w.Sender 24759 } 24760 24761 // GetWorkflow returns the Workflow field if it's non-nil, zero value otherwise. 24762 func (w *WorkflowDispatchEvent) GetWorkflow() string { 24763 if w == nil || w.Workflow == nil { 24764 return "" 24765 } 24766 return *w.Workflow 24767 } 24768 24769 // GetCheckRunURL returns the CheckRunURL field if it's non-nil, zero value otherwise. 24770 func (w *WorkflowJob) GetCheckRunURL() string { 24771 if w == nil || w.CheckRunURL == nil { 24772 return "" 24773 } 24774 return *w.CheckRunURL 24775 } 24776 24777 // GetCompletedAt returns the CompletedAt field if it's non-nil, zero value otherwise. 24778 func (w *WorkflowJob) GetCompletedAt() Timestamp { 24779 if w == nil || w.CompletedAt == nil { 24780 return Timestamp{} 24781 } 24782 return *w.CompletedAt 24783 } 24784 24785 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 24786 func (w *WorkflowJob) GetConclusion() string { 24787 if w == nil || w.Conclusion == nil { 24788 return "" 24789 } 24790 return *w.Conclusion 24791 } 24792 24793 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 24794 func (w *WorkflowJob) GetCreatedAt() Timestamp { 24795 if w == nil || w.CreatedAt == nil { 24796 return Timestamp{} 24797 } 24798 return *w.CreatedAt 24799 } 24800 24801 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 24802 func (w *WorkflowJob) GetHeadBranch() string { 24803 if w == nil || w.HeadBranch == nil { 24804 return "" 24805 } 24806 return *w.HeadBranch 24807 } 24808 24809 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 24810 func (w *WorkflowJob) GetHeadSHA() string { 24811 if w == nil || w.HeadSHA == nil { 24812 return "" 24813 } 24814 return *w.HeadSHA 24815 } 24816 24817 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 24818 func (w *WorkflowJob) GetHTMLURL() string { 24819 if w == nil || w.HTMLURL == nil { 24820 return "" 24821 } 24822 return *w.HTMLURL 24823 } 24824 24825 // GetID returns the ID field if it's non-nil, zero value otherwise. 24826 func (w *WorkflowJob) GetID() int64 { 24827 if w == nil || w.ID == nil { 24828 return 0 24829 } 24830 return *w.ID 24831 } 24832 24833 // GetName returns the Name field if it's non-nil, zero value otherwise. 24834 func (w *WorkflowJob) GetName() string { 24835 if w == nil || w.Name == nil { 24836 return "" 24837 } 24838 return *w.Name 24839 } 24840 24841 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 24842 func (w *WorkflowJob) GetNodeID() string { 24843 if w == nil || w.NodeID == nil { 24844 return "" 24845 } 24846 return *w.NodeID 24847 } 24848 24849 // GetRunAttempt returns the RunAttempt field if it's non-nil, zero value otherwise. 24850 func (w *WorkflowJob) GetRunAttempt() int64 { 24851 if w == nil || w.RunAttempt == nil { 24852 return 0 24853 } 24854 return *w.RunAttempt 24855 } 24856 24857 // GetRunID returns the RunID field if it's non-nil, zero value otherwise. 24858 func (w *WorkflowJob) GetRunID() int64 { 24859 if w == nil || w.RunID == nil { 24860 return 0 24861 } 24862 return *w.RunID 24863 } 24864 24865 // GetRunnerGroupID returns the RunnerGroupID field if it's non-nil, zero value otherwise. 24866 func (w *WorkflowJob) GetRunnerGroupID() int64 { 24867 if w == nil || w.RunnerGroupID == nil { 24868 return 0 24869 } 24870 return *w.RunnerGroupID 24871 } 24872 24873 // GetRunnerGroupName returns the RunnerGroupName field if it's non-nil, zero value otherwise. 24874 func (w *WorkflowJob) GetRunnerGroupName() string { 24875 if w == nil || w.RunnerGroupName == nil { 24876 return "" 24877 } 24878 return *w.RunnerGroupName 24879 } 24880 24881 // GetRunnerID returns the RunnerID field if it's non-nil, zero value otherwise. 24882 func (w *WorkflowJob) GetRunnerID() int64 { 24883 if w == nil || w.RunnerID == nil { 24884 return 0 24885 } 24886 return *w.RunnerID 24887 } 24888 24889 // GetRunnerName returns the RunnerName field if it's non-nil, zero value otherwise. 24890 func (w *WorkflowJob) GetRunnerName() string { 24891 if w == nil || w.RunnerName == nil { 24892 return "" 24893 } 24894 return *w.RunnerName 24895 } 24896 24897 // GetRunURL returns the RunURL field if it's non-nil, zero value otherwise. 24898 func (w *WorkflowJob) GetRunURL() string { 24899 if w == nil || w.RunURL == nil { 24900 return "" 24901 } 24902 return *w.RunURL 24903 } 24904 24905 // GetStartedAt returns the StartedAt field if it's non-nil, zero value otherwise. 24906 func (w *WorkflowJob) GetStartedAt() Timestamp { 24907 if w == nil || w.StartedAt == nil { 24908 return Timestamp{} 24909 } 24910 return *w.StartedAt 24911 } 24912 24913 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 24914 func (w *WorkflowJob) GetStatus() string { 24915 if w == nil || w.Status == nil { 24916 return "" 24917 } 24918 return *w.Status 24919 } 24920 24921 // GetURL returns the URL field if it's non-nil, zero value otherwise. 24922 func (w *WorkflowJob) GetURL() string { 24923 if w == nil || w.URL == nil { 24924 return "" 24925 } 24926 return *w.URL 24927 } 24928 24929 // GetWorkflowName returns the WorkflowName field if it's non-nil, zero value otherwise. 24930 func (w *WorkflowJob) GetWorkflowName() string { 24931 if w == nil || w.WorkflowName == nil { 24932 return "" 24933 } 24934 return *w.WorkflowName 24935 } 24936 24937 // GetAction returns the Action field if it's non-nil, zero value otherwise. 24938 func (w *WorkflowJobEvent) GetAction() string { 24939 if w == nil || w.Action == nil { 24940 return "" 24941 } 24942 return *w.Action 24943 } 24944 24945 // GetInstallation returns the Installation field. 24946 func (w *WorkflowJobEvent) GetInstallation() *Installation { 24947 if w == nil { 24948 return nil 24949 } 24950 return w.Installation 24951 } 24952 24953 // GetOrg returns the Org field. 24954 func (w *WorkflowJobEvent) GetOrg() *Organization { 24955 if w == nil { 24956 return nil 24957 } 24958 return w.Org 24959 } 24960 24961 // GetRepo returns the Repo field. 24962 func (w *WorkflowJobEvent) GetRepo() *Repository { 24963 if w == nil { 24964 return nil 24965 } 24966 return w.Repo 24967 } 24968 24969 // GetSender returns the Sender field. 24970 func (w *WorkflowJobEvent) GetSender() *User { 24971 if w == nil { 24972 return nil 24973 } 24974 return w.Sender 24975 } 24976 24977 // GetWorkflowJob returns the WorkflowJob field. 24978 func (w *WorkflowJobEvent) GetWorkflowJob() *WorkflowJob { 24979 if w == nil { 24980 return nil 24981 } 24982 return w.WorkflowJob 24983 } 24984 24985 // GetActor returns the Actor field. 24986 func (w *WorkflowRun) GetActor() *User { 24987 if w == nil { 24988 return nil 24989 } 24990 return w.Actor 24991 } 24992 24993 // GetArtifactsURL returns the ArtifactsURL field if it's non-nil, zero value otherwise. 24994 func (w *WorkflowRun) GetArtifactsURL() string { 24995 if w == nil || w.ArtifactsURL == nil { 24996 return "" 24997 } 24998 return *w.ArtifactsURL 24999 } 25000 25001 // GetCancelURL returns the CancelURL field if it's non-nil, zero value otherwise. 25002 func (w *WorkflowRun) GetCancelURL() string { 25003 if w == nil || w.CancelURL == nil { 25004 return "" 25005 } 25006 return *w.CancelURL 25007 } 25008 25009 // GetCheckSuiteID returns the CheckSuiteID field if it's non-nil, zero value otherwise. 25010 func (w *WorkflowRun) GetCheckSuiteID() int64 { 25011 if w == nil || w.CheckSuiteID == nil { 25012 return 0 25013 } 25014 return *w.CheckSuiteID 25015 } 25016 25017 // GetCheckSuiteNodeID returns the CheckSuiteNodeID field if it's non-nil, zero value otherwise. 25018 func (w *WorkflowRun) GetCheckSuiteNodeID() string { 25019 if w == nil || w.CheckSuiteNodeID == nil { 25020 return "" 25021 } 25022 return *w.CheckSuiteNodeID 25023 } 25024 25025 // GetCheckSuiteURL returns the CheckSuiteURL field if it's non-nil, zero value otherwise. 25026 func (w *WorkflowRun) GetCheckSuiteURL() string { 25027 if w == nil || w.CheckSuiteURL == nil { 25028 return "" 25029 } 25030 return *w.CheckSuiteURL 25031 } 25032 25033 // GetConclusion returns the Conclusion field if it's non-nil, zero value otherwise. 25034 func (w *WorkflowRun) GetConclusion() string { 25035 if w == nil || w.Conclusion == nil { 25036 return "" 25037 } 25038 return *w.Conclusion 25039 } 25040 25041 // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. 25042 func (w *WorkflowRun) GetCreatedAt() Timestamp { 25043 if w == nil || w.CreatedAt == nil { 25044 return Timestamp{} 25045 } 25046 return *w.CreatedAt 25047 } 25048 25049 // GetDisplayTitle returns the DisplayTitle field if it's non-nil, zero value otherwise. 25050 func (w *WorkflowRun) GetDisplayTitle() string { 25051 if w == nil || w.DisplayTitle == nil { 25052 return "" 25053 } 25054 return *w.DisplayTitle 25055 } 25056 25057 // GetEvent returns the Event field if it's non-nil, zero value otherwise. 25058 func (w *WorkflowRun) GetEvent() string { 25059 if w == nil || w.Event == nil { 25060 return "" 25061 } 25062 return *w.Event 25063 } 25064 25065 // GetHeadBranch returns the HeadBranch field if it's non-nil, zero value otherwise. 25066 func (w *WorkflowRun) GetHeadBranch() string { 25067 if w == nil || w.HeadBranch == nil { 25068 return "" 25069 } 25070 return *w.HeadBranch 25071 } 25072 25073 // GetHeadCommit returns the HeadCommit field. 25074 func (w *WorkflowRun) GetHeadCommit() *HeadCommit { 25075 if w == nil { 25076 return nil 25077 } 25078 return w.HeadCommit 25079 } 25080 25081 // GetHeadRepository returns the HeadRepository field. 25082 func (w *WorkflowRun) GetHeadRepository() *Repository { 25083 if w == nil { 25084 return nil 25085 } 25086 return w.HeadRepository 25087 } 25088 25089 // GetHeadSHA returns the HeadSHA field if it's non-nil, zero value otherwise. 25090 func (w *WorkflowRun) GetHeadSHA() string { 25091 if w == nil || w.HeadSHA == nil { 25092 return "" 25093 } 25094 return *w.HeadSHA 25095 } 25096 25097 // GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise. 25098 func (w *WorkflowRun) GetHTMLURL() string { 25099 if w == nil || w.HTMLURL == nil { 25100 return "" 25101 } 25102 return *w.HTMLURL 25103 } 25104 25105 // GetID returns the ID field if it's non-nil, zero value otherwise. 25106 func (w *WorkflowRun) GetID() int64 { 25107 if w == nil || w.ID == nil { 25108 return 0 25109 } 25110 return *w.ID 25111 } 25112 25113 // GetJobsURL returns the JobsURL field if it's non-nil, zero value otherwise. 25114 func (w *WorkflowRun) GetJobsURL() string { 25115 if w == nil || w.JobsURL == nil { 25116 return "" 25117 } 25118 return *w.JobsURL 25119 } 25120 25121 // GetLogsURL returns the LogsURL field if it's non-nil, zero value otherwise. 25122 func (w *WorkflowRun) GetLogsURL() string { 25123 if w == nil || w.LogsURL == nil { 25124 return "" 25125 } 25126 return *w.LogsURL 25127 } 25128 25129 // GetName returns the Name field if it's non-nil, zero value otherwise. 25130 func (w *WorkflowRun) GetName() string { 25131 if w == nil || w.Name == nil { 25132 return "" 25133 } 25134 return *w.Name 25135 } 25136 25137 // GetNodeID returns the NodeID field if it's non-nil, zero value otherwise. 25138 func (w *WorkflowRun) GetNodeID() string { 25139 if w == nil || w.NodeID == nil { 25140 return "" 25141 } 25142 return *w.NodeID 25143 } 25144 25145 // GetPreviousAttemptURL returns the PreviousAttemptURL field if it's non-nil, zero value otherwise. 25146 func (w *WorkflowRun) GetPreviousAttemptURL() string { 25147 if w == nil || w.PreviousAttemptURL == nil { 25148 return "" 25149 } 25150 return *w.PreviousAttemptURL 25151 } 25152 25153 // GetRepository returns the Repository field. 25154 func (w *WorkflowRun) GetRepository() *Repository { 25155 if w == nil { 25156 return nil 25157 } 25158 return w.Repository 25159 } 25160 25161 // GetRerunURL returns the RerunURL field if it's non-nil, zero value otherwise. 25162 func (w *WorkflowRun) GetRerunURL() string { 25163 if w == nil || w.RerunURL == nil { 25164 return "" 25165 } 25166 return *w.RerunURL 25167 } 25168 25169 // GetRunAttempt returns the RunAttempt field if it's non-nil, zero value otherwise. 25170 func (w *WorkflowRun) GetRunAttempt() int { 25171 if w == nil || w.RunAttempt == nil { 25172 return 0 25173 } 25174 return *w.RunAttempt 25175 } 25176 25177 // GetRunNumber returns the RunNumber field if it's non-nil, zero value otherwise. 25178 func (w *WorkflowRun) GetRunNumber() int { 25179 if w == nil || w.RunNumber == nil { 25180 return 0 25181 } 25182 return *w.RunNumber 25183 } 25184 25185 // GetRunStartedAt returns the RunStartedAt field if it's non-nil, zero value otherwise. 25186 func (w *WorkflowRun) GetRunStartedAt() Timestamp { 25187 if w == nil || w.RunStartedAt == nil { 25188 return Timestamp{} 25189 } 25190 return *w.RunStartedAt 25191 } 25192 25193 // GetStatus returns the Status field if it's non-nil, zero value otherwise. 25194 func (w *WorkflowRun) GetStatus() string { 25195 if w == nil || w.Status == nil { 25196 return "" 25197 } 25198 return *w.Status 25199 } 25200 25201 // GetTriggeringActor returns the TriggeringActor field. 25202 func (w *WorkflowRun) GetTriggeringActor() *User { 25203 if w == nil { 25204 return nil 25205 } 25206 return w.TriggeringActor 25207 } 25208 25209 // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. 25210 func (w *WorkflowRun) GetUpdatedAt() Timestamp { 25211 if w == nil || w.UpdatedAt == nil { 25212 return Timestamp{} 25213 } 25214 return *w.UpdatedAt 25215 } 25216 25217 // GetURL returns the URL field if it's non-nil, zero value otherwise. 25218 func (w *WorkflowRun) GetURL() string { 25219 if w == nil || w.URL == nil { 25220 return "" 25221 } 25222 return *w.URL 25223 } 25224 25225 // GetWorkflowID returns the WorkflowID field if it's non-nil, zero value otherwise. 25226 func (w *WorkflowRun) GetWorkflowID() int64 { 25227 if w == nil || w.WorkflowID == nil { 25228 return 0 25229 } 25230 return *w.WorkflowID 25231 } 25232 25233 // GetWorkflowURL returns the WorkflowURL field if it's non-nil, zero value otherwise. 25234 func (w *WorkflowRun) GetWorkflowURL() string { 25235 if w == nil || w.WorkflowURL == nil { 25236 return "" 25237 } 25238 return *w.WorkflowURL 25239 } 25240 25241 // GetExcludePullRequests returns the ExcludePullRequests field if it's non-nil, zero value otherwise. 25242 func (w *WorkflowRunAttemptOptions) GetExcludePullRequests() bool { 25243 if w == nil || w.ExcludePullRequests == nil { 25244 return false 25245 } 25246 return *w.ExcludePullRequests 25247 } 25248 25249 // GetJobs returns the Jobs field if it's non-nil, zero value otherwise. 25250 func (w *WorkflowRunBill) GetJobs() int { 25251 if w == nil || w.Jobs == nil { 25252 return 0 25253 } 25254 return *w.Jobs 25255 } 25256 25257 // GetTotalMS returns the TotalMS field if it's non-nil, zero value otherwise. 25258 func (w *WorkflowRunBill) GetTotalMS() int64 { 25259 if w == nil || w.TotalMS == nil { 25260 return 0 25261 } 25262 return *w.TotalMS 25263 } 25264 25265 // GetAction returns the Action field if it's non-nil, zero value otherwise. 25266 func (w *WorkflowRunEvent) GetAction() string { 25267 if w == nil || w.Action == nil { 25268 return "" 25269 } 25270 return *w.Action 25271 } 25272 25273 // GetInstallation returns the Installation field. 25274 func (w *WorkflowRunEvent) GetInstallation() *Installation { 25275 if w == nil { 25276 return nil 25277 } 25278 return w.Installation 25279 } 25280 25281 // GetOrg returns the Org field. 25282 func (w *WorkflowRunEvent) GetOrg() *Organization { 25283 if w == nil { 25284 return nil 25285 } 25286 return w.Org 25287 } 25288 25289 // GetRepo returns the Repo field. 25290 func (w *WorkflowRunEvent) GetRepo() *Repository { 25291 if w == nil { 25292 return nil 25293 } 25294 return w.Repo 25295 } 25296 25297 // GetSender returns the Sender field. 25298 func (w *WorkflowRunEvent) GetSender() *User { 25299 if w == nil { 25300 return nil 25301 } 25302 return w.Sender 25303 } 25304 25305 // GetWorkflow returns the Workflow field. 25306 func (w *WorkflowRunEvent) GetWorkflow() *Workflow { 25307 if w == nil { 25308 return nil 25309 } 25310 return w.Workflow 25311 } 25312 25313 // GetWorkflowRun returns the WorkflowRun field. 25314 func (w *WorkflowRunEvent) GetWorkflowRun() *WorkflowRun { 25315 if w == nil { 25316 return nil 25317 } 25318 return w.WorkflowRun 25319 } 25320 25321 // GetDurationMS returns the DurationMS field if it's non-nil, zero value otherwise. 25322 func (w *WorkflowRunJobRun) GetDurationMS() int64 { 25323 if w == nil || w.DurationMS == nil { 25324 return 0 25325 } 25326 return *w.DurationMS 25327 } 25328 25329 // GetJobID returns the JobID field if it's non-nil, zero value otherwise. 25330 func (w *WorkflowRunJobRun) GetJobID() int { 25331 if w == nil || w.JobID == nil { 25332 return 0 25333 } 25334 return *w.JobID 25335 } 25336 25337 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 25338 func (w *WorkflowRuns) GetTotalCount() int { 25339 if w == nil || w.TotalCount == nil { 25340 return 0 25341 } 25342 return *w.TotalCount 25343 } 25344 25345 // GetBillable returns the Billable field. 25346 func (w *WorkflowRunUsage) GetBillable() *WorkflowRunBillMap { 25347 if w == nil { 25348 return nil 25349 } 25350 return w.Billable 25351 } 25352 25353 // GetRunDurationMS returns the RunDurationMS field if it's non-nil, zero value otherwise. 25354 func (w *WorkflowRunUsage) GetRunDurationMS() int64 { 25355 if w == nil || w.RunDurationMS == nil { 25356 return 0 25357 } 25358 return *w.RunDurationMS 25359 } 25360 25361 // GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise. 25362 func (w *Workflows) GetTotalCount() int { 25363 if w == nil || w.TotalCount == nil { 25364 return 0 25365 } 25366 return *w.TotalCount 25367 } 25368 25369 // GetBillable returns the Billable field. 25370 func (w *WorkflowUsage) GetBillable() *WorkflowBillMap { 25371 if w == nil { 25372 return nil 25373 } 25374 return w.Billable 25375 }