forked from google/go-github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
github-accessors.go
7261 lines (6352 loc) · 176 KB
/
github-accessors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2017 The go-github AUTHORS. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by gen-accessors; DO NOT EDIT.
package github
import (
"encoding/json"
"time"
)
// GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise.
func (a *AbuseRateLimitError) GetRetryAfter() time.Duration {
if a == nil || a.RetryAfter == nil {
return 0
}
return *a.RetryAfter
}
// GetVerifiablePasswordAuthentication returns the VerifiablePasswordAuthentication field if it's non-nil, zero value otherwise.
func (a *APIMeta) GetVerifiablePasswordAuthentication() bool {
if a == nil || a.VerifiablePasswordAuthentication == nil {
return false
}
return *a.VerifiablePasswordAuthentication
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (a *Authorization) GetCreatedAt() Timestamp {
if a == nil || a.CreatedAt == nil {
return Timestamp{}
}
return *a.CreatedAt
}
// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.
func (a *Authorization) GetFingerprint() string {
if a == nil || a.Fingerprint == nil {
return ""
}
return *a.Fingerprint
}
// GetHashedToken returns the HashedToken field if it's non-nil, zero value otherwise.
func (a *Authorization) GetHashedToken() string {
if a == nil || a.HashedToken == nil {
return ""
}
return *a.HashedToken
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (a *Authorization) GetID() int {
if a == nil || a.ID == nil {
return 0
}
return *a.ID
}
// GetNote returns the Note field if it's non-nil, zero value otherwise.
func (a *Authorization) GetNote() string {
if a == nil || a.Note == nil {
return ""
}
return *a.Note
}
// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.
func (a *Authorization) GetNoteURL() string {
if a == nil || a.NoteURL == nil {
return ""
}
return *a.NoteURL
}
// GetToken returns the Token field if it's non-nil, zero value otherwise.
func (a *Authorization) GetToken() string {
if a == nil || a.Token == nil {
return ""
}
return *a.Token
}
// GetTokenLastEight returns the TokenLastEight field if it's non-nil, zero value otherwise.
func (a *Authorization) GetTokenLastEight() string {
if a == nil || a.TokenLastEight == nil {
return ""
}
return *a.TokenLastEight
}
// GetUpdateAt returns the UpdateAt field if it's non-nil, zero value otherwise.
func (a *Authorization) GetUpdateAt() Timestamp {
if a == nil || a.UpdateAt == nil {
return Timestamp{}
}
return *a.UpdateAt
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (a *Authorization) GetURL() string {
if a == nil || a.URL == nil {
return ""
}
return *a.URL
}
// GetClientID returns the ClientID field if it's non-nil, zero value otherwise.
func (a *AuthorizationApp) GetClientID() string {
if a == nil || a.ClientID == nil {
return ""
}
return *a.ClientID
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (a *AuthorizationApp) GetName() string {
if a == nil || a.Name == nil {
return ""
}
return *a.Name
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (a *AuthorizationApp) GetURL() string {
if a == nil || a.URL == nil {
return ""
}
return *a.URL
}
// GetClientID returns the ClientID field if it's non-nil, zero value otherwise.
func (a *AuthorizationRequest) GetClientID() string {
if a == nil || a.ClientID == nil {
return ""
}
return *a.ClientID
}
// GetClientSecret returns the ClientSecret field if it's non-nil, zero value otherwise.
func (a *AuthorizationRequest) GetClientSecret() string {
if a == nil || a.ClientSecret == nil {
return ""
}
return *a.ClientSecret
}
// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.
func (a *AuthorizationRequest) GetFingerprint() string {
if a == nil || a.Fingerprint == nil {
return ""
}
return *a.Fingerprint
}
// GetNote returns the Note field if it's non-nil, zero value otherwise.
func (a *AuthorizationRequest) GetNote() string {
if a == nil || a.Note == nil {
return ""
}
return *a.Note
}
// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.
func (a *AuthorizationRequest) GetNoteURL() string {
if a == nil || a.NoteURL == nil {
return ""
}
return *a.NoteURL
}
// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise.
func (a *AuthorizationUpdateRequest) GetFingerprint() string {
if a == nil || a.Fingerprint == nil {
return ""
}
return *a.Fingerprint
}
// GetNote returns the Note field if it's non-nil, zero value otherwise.
func (a *AuthorizationUpdateRequest) GetNote() string {
if a == nil || a.Note == nil {
return ""
}
return *a.Note
}
// GetNoteURL returns the NoteURL field if it's non-nil, zero value otherwise.
func (a *AuthorizationUpdateRequest) GetNoteURL() string {
if a == nil || a.NoteURL == nil {
return ""
}
return *a.NoteURL
}
// GetContent returns the Content field if it's non-nil, zero value otherwise.
func (b *Blob) GetContent() string {
if b == nil || b.Content == nil {
return ""
}
return *b.Content
}
// GetEncoding returns the Encoding field if it's non-nil, zero value otherwise.
func (b *Blob) GetEncoding() string {
if b == nil || b.Encoding == nil {
return ""
}
return *b.Encoding
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (b *Blob) GetSHA() string {
if b == nil || b.SHA == nil {
return ""
}
return *b.SHA
}
// GetSize returns the Size field if it's non-nil, zero value otherwise.
func (b *Blob) GetSize() int {
if b == nil || b.Size == nil {
return 0
}
return *b.Size
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (b *Blob) GetURL() string {
if b == nil || b.URL == nil {
return ""
}
return *b.URL
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (b *Branch) GetName() string {
if b == nil || b.Name == nil {
return ""
}
return *b.Name
}
// GetProtected returns the Protected field if it's non-nil, zero value otherwise.
func (b *Branch) GetProtected() bool {
if b == nil || b.Protected == nil {
return false
}
return *b.Protected
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (c *CodeResult) GetHTMLURL() string {
if c == nil || c.HTMLURL == nil {
return ""
}
return *c.HTMLURL
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (c *CodeResult) GetName() string {
if c == nil || c.Name == nil {
return ""
}
return *c.Name
}
// GetPath returns the Path field if it's non-nil, zero value otherwise.
func (c *CodeResult) GetPath() string {
if c == nil || c.Path == nil {
return ""
}
return *c.Path
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (c *CodeResult) GetSHA() string {
if c == nil || c.SHA == nil {
return ""
}
return *c.SHA
}
// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.
func (c *CodeSearchResult) GetIncompleteResults() bool {
if c == nil || c.IncompleteResults == nil {
return false
}
return *c.IncompleteResults
}
// GetTotal returns the Total field if it's non-nil, zero value otherwise.
func (c *CodeSearchResult) GetTotal() int {
if c == nil || c.Total == nil {
return 0
}
return *c.Total
}
// GetCommitURL returns the CommitURL field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetCommitURL() string {
if c == nil || c.CommitURL == nil {
return ""
}
return *c.CommitURL
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetName() string {
if c == nil || c.Name == nil {
return ""
}
return *c.Name
}
// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetRepositoryURL() string {
if c == nil || c.RepositoryURL == nil {
return ""
}
return *c.RepositoryURL
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetSHA() string {
if c == nil || c.SHA == nil {
return ""
}
return *c.SHA
}
// GetState returns the State field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetState() string {
if c == nil || c.State == nil {
return ""
}
return *c.State
}
// GetTotalCount returns the TotalCount field if it's non-nil, zero value otherwise.
func (c *CombinedStatus) GetTotalCount() int {
if c == nil || c.TotalCount == nil {
return 0
}
return *c.TotalCount
}
// GetCommentCount returns the CommentCount field if it's non-nil, zero value otherwise.
func (c *Commit) GetCommentCount() int {
if c == nil || c.CommentCount == nil {
return 0
}
return *c.CommentCount
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (c *Commit) GetHTMLURL() string {
if c == nil || c.HTMLURL == nil {
return ""
}
return *c.HTMLURL
}
// GetMessage returns the Message field if it's non-nil, zero value otherwise.
func (c *Commit) GetMessage() string {
if c == nil || c.Message == nil {
return ""
}
return *c.Message
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (c *Commit) GetSHA() string {
if c == nil || c.SHA == nil {
return ""
}
return *c.SHA
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (c *Commit) GetURL() string {
if c == nil || c.URL == nil {
return ""
}
return *c.URL
}
// GetDate returns the Date field if it's non-nil, zero value otherwise.
func (c *CommitAuthor) GetDate() time.Time {
if c == nil || c.Date == nil {
return time.Time{}
}
return *c.Date
}
// GetEmail returns the Email field if it's non-nil, zero value otherwise.
func (c *CommitAuthor) GetEmail() string {
if c == nil || c.Email == nil {
return ""
}
return *c.Email
}
// GetLogin returns the Login field if it's non-nil, zero value otherwise.
func (c *CommitAuthor) GetLogin() string {
if c == nil || c.Login == nil {
return ""
}
return *c.Login
}
// GetName returns the Name field if it's non-nil, zero value otherwise.
func (c *CommitAuthor) GetName() string {
if c == nil || c.Name == nil {
return ""
}
return *c.Name
}
// GetAction returns the Action field if it's non-nil, zero value otherwise.
func (c *CommitCommentEvent) GetAction() string {
if c == nil || c.Action == nil {
return ""
}
return *c.Action
}
// GetAdditions returns the Additions field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetAdditions() int {
if c == nil || c.Additions == nil {
return 0
}
return *c.Additions
}
// GetBlobURL returns the BlobURL field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetBlobURL() string {
if c == nil || c.BlobURL == nil {
return ""
}
return *c.BlobURL
}
// GetChanges returns the Changes field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetChanges() int {
if c == nil || c.Changes == nil {
return 0
}
return *c.Changes
}
// GetContentsURL returns the ContentsURL field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetContentsURL() string {
if c == nil || c.ContentsURL == nil {
return ""
}
return *c.ContentsURL
}
// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetDeletions() int {
if c == nil || c.Deletions == nil {
return 0
}
return *c.Deletions
}
// GetFilename returns the Filename field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetFilename() string {
if c == nil || c.Filename == nil {
return ""
}
return *c.Filename
}
// GetPatch returns the Patch field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetPatch() string {
if c == nil || c.Patch == nil {
return ""
}
return *c.Patch
}
// GetRawURL returns the RawURL field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetRawURL() string {
if c == nil || c.RawURL == nil {
return ""
}
return *c.RawURL
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetSHA() string {
if c == nil || c.SHA == nil {
return ""
}
return *c.SHA
}
// GetStatus returns the Status field if it's non-nil, zero value otherwise.
func (c *CommitFile) GetStatus() string {
if c == nil || c.Status == nil {
return ""
}
return *c.Status
}
// GetCommentsURL returns the CommentsURL field if it's non-nil, zero value otherwise.
func (c *CommitResult) GetCommentsURL() string {
if c == nil || c.CommentsURL == nil {
return ""
}
return *c.CommentsURL
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (c *CommitResult) GetHTMLURL() string {
if c == nil || c.HTMLURL == nil {
return ""
}
return *c.HTMLURL
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (c *CommitResult) GetSHA() string {
if c == nil || c.SHA == nil {
return ""
}
return *c.SHA
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (c *CommitResult) GetURL() string {
if c == nil || c.URL == nil {
return ""
}
return *c.URL
}
// GetAheadBy returns the AheadBy field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetAheadBy() int {
if c == nil || c.AheadBy == nil {
return 0
}
return *c.AheadBy
}
// GetBehindBy returns the BehindBy field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetBehindBy() int {
if c == nil || c.BehindBy == nil {
return 0
}
return *c.BehindBy
}
// GetStatus returns the Status field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetStatus() string {
if c == nil || c.Status == nil {
return ""
}
return *c.Status
}
// GetTotalCommits returns the TotalCommits field if it's non-nil, zero value otherwise.
func (c *CommitsComparison) GetTotalCommits() int {
if c == nil || c.TotalCommits == nil {
return 0
}
return *c.TotalCommits
}
// GetIncompleteResults returns the IncompleteResults field if it's non-nil, zero value otherwise.
func (c *CommitsSearchResult) GetIncompleteResults() bool {
if c == nil || c.IncompleteResults == nil {
return false
}
return *c.IncompleteResults
}
// GetTotal returns the Total field if it's non-nil, zero value otherwise.
func (c *CommitsSearchResult) GetTotal() int {
if c == nil || c.Total == nil {
return 0
}
return *c.Total
}
// GetAdditions returns the Additions field if it's non-nil, zero value otherwise.
func (c *CommitStats) GetAdditions() int {
if c == nil || c.Additions == nil {
return 0
}
return *c.Additions
}
// GetDeletions returns the Deletions field if it's non-nil, zero value otherwise.
func (c *CommitStats) GetDeletions() int {
if c == nil || c.Deletions == nil {
return 0
}
return *c.Deletions
}
// GetTotal returns the Total field if it's non-nil, zero value otherwise.
func (c *CommitStats) GetTotal() int {
if c == nil || c.Total == nil {
return 0
}
return *c.Total
}
// GetAvatarURL returns the AvatarURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetAvatarURL() string {
if c == nil || c.AvatarURL == nil {
return ""
}
return *c.AvatarURL
}
// GetContributions returns the Contributions field if it's non-nil, zero value otherwise.
func (c *Contributor) GetContributions() int {
if c == nil || c.Contributions == nil {
return 0
}
return *c.Contributions
}
// GetEventsURL returns the EventsURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetEventsURL() string {
if c == nil || c.EventsURL == nil {
return ""
}
return *c.EventsURL
}
// GetFollowersURL returns the FollowersURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetFollowersURL() string {
if c == nil || c.FollowersURL == nil {
return ""
}
return *c.FollowersURL
}
// GetFollowingURL returns the FollowingURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetFollowingURL() string {
if c == nil || c.FollowingURL == nil {
return ""
}
return *c.FollowingURL
}
// GetGistsURL returns the GistsURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetGistsURL() string {
if c == nil || c.GistsURL == nil {
return ""
}
return *c.GistsURL
}
// GetGravatarID returns the GravatarID field if it's non-nil, zero value otherwise.
func (c *Contributor) GetGravatarID() string {
if c == nil || c.GravatarID == nil {
return ""
}
return *c.GravatarID
}
// GetHTMLURL returns the HTMLURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetHTMLURL() string {
if c == nil || c.HTMLURL == nil {
return ""
}
return *c.HTMLURL
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (c *Contributor) GetID() int {
if c == nil || c.ID == nil {
return 0
}
return *c.ID
}
// GetLogin returns the Login field if it's non-nil, zero value otherwise.
func (c *Contributor) GetLogin() string {
if c == nil || c.Login == nil {
return ""
}
return *c.Login
}
// GetOrganizationsURL returns the OrganizationsURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetOrganizationsURL() string {
if c == nil || c.OrganizationsURL == nil {
return ""
}
return *c.OrganizationsURL
}
// GetReceivedEventsURL returns the ReceivedEventsURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetReceivedEventsURL() string {
if c == nil || c.ReceivedEventsURL == nil {
return ""
}
return *c.ReceivedEventsURL
}
// GetReposURL returns the ReposURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetReposURL() string {
if c == nil || c.ReposURL == nil {
return ""
}
return *c.ReposURL
}
// GetSiteAdmin returns the SiteAdmin field if it's non-nil, zero value otherwise.
func (c *Contributor) GetSiteAdmin() bool {
if c == nil || c.SiteAdmin == nil {
return false
}
return *c.SiteAdmin
}
// GetStarredURL returns the StarredURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetStarredURL() string {
if c == nil || c.StarredURL == nil {
return ""
}
return *c.StarredURL
}
// GetSubscriptionsURL returns the SubscriptionsURL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetSubscriptionsURL() string {
if c == nil || c.SubscriptionsURL == nil {
return ""
}
return *c.SubscriptionsURL
}
// GetType returns the Type field if it's non-nil, zero value otherwise.
func (c *Contributor) GetType() string {
if c == nil || c.Type == nil {
return ""
}
return *c.Type
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (c *Contributor) GetURL() string {
if c == nil || c.URL == nil {
return ""
}
return *c.URL
}
// GetTotal returns the Total field if it's non-nil, zero value otherwise.
func (c *ContributorStats) GetTotal() int {
if c == nil || c.Total == nil {
return 0
}
return *c.Total
}
// GetMessage returns the Message field if it's non-nil, zero value otherwise.
func (c *createCommit) GetMessage() string {
if c == nil || c.Message == nil {
return ""
}
return *c.Message
}
// GetTree returns the Tree field if it's non-nil, zero value otherwise.
func (c *createCommit) GetTree() string {
if c == nil || c.Tree == nil {
return ""
}
return *c.Tree
}
// GetDescription returns the Description field if it's non-nil, zero value otherwise.
func (c *CreateEvent) GetDescription() string {
if c == nil || c.Description == nil {
return ""
}
return *c.Description
}
// GetMasterBranch returns the MasterBranch field if it's non-nil, zero value otherwise.
func (c *CreateEvent) GetMasterBranch() string {
if c == nil || c.MasterBranch == nil {
return ""
}
return *c.MasterBranch
}
// GetPusherType returns the PusherType field if it's non-nil, zero value otherwise.
func (c *CreateEvent) GetPusherType() string {
if c == nil || c.PusherType == nil {
return ""
}
return *c.PusherType
}
// GetRef returns the Ref field if it's non-nil, zero value otherwise.
func (c *CreateEvent) GetRef() string {
if c == nil || c.Ref == nil {
return ""
}
return *c.Ref
}
// GetRefType returns the RefType field if it's non-nil, zero value otherwise.
func (c *CreateEvent) GetRefType() string {
if c == nil || c.RefType == nil {
return ""
}
return *c.RefType
}
// GetRef returns the Ref field if it's non-nil, zero value otherwise.
func (c *createRefRequest) GetRef() string {
if c == nil || c.Ref == nil {
return ""
}
return *c.Ref
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (c *createRefRequest) GetSHA() string {
if c == nil || c.SHA == nil {
return ""
}
return *c.SHA
}
// GetMessage returns the Message field if it's non-nil, zero value otherwise.
func (c *createTagRequest) GetMessage() string {
if c == nil || c.Message == nil {
return ""
}
return *c.Message
}
// GetObject returns the Object field if it's non-nil, zero value otherwise.
func (c *createTagRequest) GetObject() string {
if c == nil || c.Object == nil {
return ""
}
return *c.Object
}
// GetTag returns the Tag field if it's non-nil, zero value otherwise.
func (c *createTagRequest) GetTag() string {
if c == nil || c.Tag == nil {
return ""
}
return *c.Tag
}
// GetType returns the Type field if it's non-nil, zero value otherwise.
func (c *createTagRequest) GetType() string {
if c == nil || c.Type == nil {
return ""
}
return *c.Type
}
// GetPusherType returns the PusherType field if it's non-nil, zero value otherwise.
func (d *DeleteEvent) GetPusherType() string {
if d == nil || d.PusherType == nil {
return ""
}
return *d.PusherType
}
// GetRef returns the Ref field if it's non-nil, zero value otherwise.
func (d *DeleteEvent) GetRef() string {
if d == nil || d.Ref == nil {
return ""
}
return *d.Ref
}
// GetRefType returns the RefType field if it's non-nil, zero value otherwise.
func (d *DeleteEvent) GetRefType() string {
if d == nil || d.RefType == nil {
return ""
}
return *d.RefType
}
// GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise.
func (d *Deployment) GetCreatedAt() Timestamp {
if d == nil || d.CreatedAt == nil {
return Timestamp{}
}
return *d.CreatedAt
}
// GetDescription returns the Description field if it's non-nil, zero value otherwise.
func (d *Deployment) GetDescription() string {
if d == nil || d.Description == nil {
return ""
}
return *d.Description
}
// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise.
func (d *Deployment) GetEnvironment() string {
if d == nil || d.Environment == nil {
return ""
}
return *d.Environment
}
// GetID returns the ID field if it's non-nil, zero value otherwise.
func (d *Deployment) GetID() int {
if d == nil || d.ID == nil {
return 0
}
return *d.ID
}
// GetRef returns the Ref field if it's non-nil, zero value otherwise.
func (d *Deployment) GetRef() string {
if d == nil || d.Ref == nil {
return ""
}
return *d.Ref
}
// GetRepositoryURL returns the RepositoryURL field if it's non-nil, zero value otherwise.
func (d *Deployment) GetRepositoryURL() string {
if d == nil || d.RepositoryURL == nil {
return ""
}
return *d.RepositoryURL
}
// GetSHA returns the SHA field if it's non-nil, zero value otherwise.
func (d *Deployment) GetSHA() string {
if d == nil || d.SHA == nil {
return ""
}
return *d.SHA
}
// GetStatusesURL returns the StatusesURL field if it's non-nil, zero value otherwise.
func (d *Deployment) GetStatusesURL() string {
if d == nil || d.StatusesURL == nil {
return ""
}
return *d.StatusesURL
}
// GetTask returns the Task field if it's non-nil, zero value otherwise.
func (d *Deployment) GetTask() string {
if d == nil || d.Task == nil {
return ""
}
return *d.Task
}
// GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise.
func (d *Deployment) GetUpdatedAt() Timestamp {
if d == nil || d.UpdatedAt == nil {
return Timestamp{}
}
return *d.UpdatedAt
}
// GetURL returns the URL field if it's non-nil, zero value otherwise.
func (d *Deployment) GetURL() string {
if d == nil || d.URL == nil {
return ""
}
return *d.URL
}
// GetAutoMerge returns the AutoMerge field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetAutoMerge() bool {
if d == nil || d.AutoMerge == nil {
return false
}
return *d.AutoMerge
}
// GetDescription returns the Description field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetDescription() string {
if d == nil || d.Description == nil {
return ""
}
return *d.Description
}
// GetEnvironment returns the Environment field if it's non-nil, zero value otherwise.
func (d *DeploymentRequest) GetEnvironment() string {