-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
repositories.pb.go
executable file
·4504 lines (4087 loc) · 205 KB
/
repositories.pb.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 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.2
// source: google/devtools/cloudbuild/v2/repositories.proto
package cloudbuildpb
import (
context "context"
reflect "reflect"
sync "sync"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
_ "google.golang.org/genproto/googleapis/api/annotations"
httpbody "google.golang.org/genproto/googleapis/api/httpbody"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Stage of the installation process.
type InstallationState_Stage int32
const (
// No stage specified.
InstallationState_STAGE_UNSPECIFIED InstallationState_Stage = 0
// Only for GitHub Enterprise. An App creation has been requested.
// The user needs to confirm the creation in their GitHub enterprise host.
InstallationState_PENDING_CREATE_APP InstallationState_Stage = 1
// User needs to authorize the GitHub (or Enterprise) App via OAuth.
InstallationState_PENDING_USER_OAUTH InstallationState_Stage = 2
// User needs to follow the link to install the GitHub (or Enterprise) App.
InstallationState_PENDING_INSTALL_APP InstallationState_Stage = 3
// Installation process has been completed.
InstallationState_COMPLETE InstallationState_Stage = 10
)
// Enum value maps for InstallationState_Stage.
var (
InstallationState_Stage_name = map[int32]string{
0: "STAGE_UNSPECIFIED",
1: "PENDING_CREATE_APP",
2: "PENDING_USER_OAUTH",
3: "PENDING_INSTALL_APP",
10: "COMPLETE",
}
InstallationState_Stage_value = map[string]int32{
"STAGE_UNSPECIFIED": 0,
"PENDING_CREATE_APP": 1,
"PENDING_USER_OAUTH": 2,
"PENDING_INSTALL_APP": 3,
"COMPLETE": 10,
}
)
func (x InstallationState_Stage) Enum() *InstallationState_Stage {
p := new(InstallationState_Stage)
*p = x
return p
}
func (x InstallationState_Stage) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (InstallationState_Stage) Descriptor() protoreflect.EnumDescriptor {
return file_google_devtools_cloudbuild_v2_repositories_proto_enumTypes[0].Descriptor()
}
func (InstallationState_Stage) Type() protoreflect.EnumType {
return &file_google_devtools_cloudbuild_v2_repositories_proto_enumTypes[0]
}
func (x InstallationState_Stage) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InstallationState_Stage.Descriptor instead.
func (InstallationState_Stage) EnumDescriptor() ([]byte, []int) {
return file_google_devtools_cloudbuild_v2_repositories_proto_rawDescGZIP(), []int{1, 0}
}
// Type of refs
type FetchGitRefsRequest_RefType int32
const (
// No type specified.
FetchGitRefsRequest_REF_TYPE_UNSPECIFIED FetchGitRefsRequest_RefType = 0
// To fetch tags.
FetchGitRefsRequest_TAG FetchGitRefsRequest_RefType = 1
// To fetch branches.
FetchGitRefsRequest_BRANCH FetchGitRefsRequest_RefType = 2
)
// Enum value maps for FetchGitRefsRequest_RefType.
var (
FetchGitRefsRequest_RefType_name = map[int32]string{
0: "REF_TYPE_UNSPECIFIED",
1: "TAG",
2: "BRANCH",
}
FetchGitRefsRequest_RefType_value = map[string]int32{
"REF_TYPE_UNSPECIFIED": 0,
"TAG": 1,
"BRANCH": 2,
}
)
func (x FetchGitRefsRequest_RefType) Enum() *FetchGitRefsRequest_RefType {
p := new(FetchGitRefsRequest_RefType)
*p = x
return p
}
func (x FetchGitRefsRequest_RefType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FetchGitRefsRequest_RefType) Descriptor() protoreflect.EnumDescriptor {
return file_google_devtools_cloudbuild_v2_repositories_proto_enumTypes[1].Descriptor()
}
func (FetchGitRefsRequest_RefType) Type() protoreflect.EnumType {
return &file_google_devtools_cloudbuild_v2_repositories_proto_enumTypes[1]
}
func (x FetchGitRefsRequest_RefType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FetchGitRefsRequest_RefType.Descriptor instead.
func (FetchGitRefsRequest_RefType) EnumDescriptor() ([]byte, []int) {
return file_google_devtools_cloudbuild_v2_repositories_proto_rawDescGZIP(), []int{31, 0}
}
// A connection to a SCM like GitHub, GitHub Enterprise, Bitbucket Data Center,
// Bitbucket Cloud or GitLab.
type Connection struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Immutable. The resource name of the connection, in the format
// `projects/{project}/locations/{location}/connections/{connection_id}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Server assigned timestamp for when the connection was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Server assigned timestamp for when the connection was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Configuration for the connection depending on the type of provider.
//
// Types that are assignable to ConnectionConfig:
//
// *Connection_GithubConfig
// *Connection_GithubEnterpriseConfig
// *Connection_GitlabConfig
// *Connection_BitbucketDataCenterConfig
// *Connection_BitbucketCloudConfig
ConnectionConfig isConnection_ConnectionConfig `protobuf_oneof:"connection_config"`
// Output only. Installation state of the Connection.
InstallationState *InstallationState `protobuf:"bytes,12,opt,name=installation_state,json=installationState,proto3" json:"installation_state,omitempty"`
// If disabled is set to true, functionality is disabled for this connection.
// Repository based API methods and webhooks processing for repositories in
// this connection will be disabled.
Disabled bool `protobuf:"varint,13,opt,name=disabled,proto3" json:"disabled,omitempty"`
// Output only. Set to true when the connection is being set up or updated in
// the background.
Reconciling bool `protobuf:"varint,14,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
// Allows clients to store small amounts of arbitrary data.
Annotations map[string]string `protobuf:"bytes,15,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// This checksum is computed by the server based on the value of other
// fields, and may be sent on update and delete requests to ensure the
// client has an up-to-date value before proceeding.
Etag string `protobuf:"bytes,16,opt,name=etag,proto3" json:"etag,omitempty"`
}
func (x *Connection) Reset() {
*x = Connection{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Connection) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Connection) ProtoMessage() {}
func (x *Connection) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Connection.ProtoReflect.Descriptor instead.
func (*Connection) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudbuild_v2_repositories_proto_rawDescGZIP(), []int{0}
}
func (x *Connection) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Connection) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Connection) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (m *Connection) GetConnectionConfig() isConnection_ConnectionConfig {
if m != nil {
return m.ConnectionConfig
}
return nil
}
func (x *Connection) GetGithubConfig() *GitHubConfig {
if x, ok := x.GetConnectionConfig().(*Connection_GithubConfig); ok {
return x.GithubConfig
}
return nil
}
func (x *Connection) GetGithubEnterpriseConfig() *GitHubEnterpriseConfig {
if x, ok := x.GetConnectionConfig().(*Connection_GithubEnterpriseConfig); ok {
return x.GithubEnterpriseConfig
}
return nil
}
func (x *Connection) GetGitlabConfig() *GitLabConfig {
if x, ok := x.GetConnectionConfig().(*Connection_GitlabConfig); ok {
return x.GitlabConfig
}
return nil
}
func (x *Connection) GetBitbucketDataCenterConfig() *BitbucketDataCenterConfig {
if x, ok := x.GetConnectionConfig().(*Connection_BitbucketDataCenterConfig); ok {
return x.BitbucketDataCenterConfig
}
return nil
}
func (x *Connection) GetBitbucketCloudConfig() *BitbucketCloudConfig {
if x, ok := x.GetConnectionConfig().(*Connection_BitbucketCloudConfig); ok {
return x.BitbucketCloudConfig
}
return nil
}
func (x *Connection) GetInstallationState() *InstallationState {
if x != nil {
return x.InstallationState
}
return nil
}
func (x *Connection) GetDisabled() bool {
if x != nil {
return x.Disabled
}
return false
}
func (x *Connection) GetReconciling() bool {
if x != nil {
return x.Reconciling
}
return false
}
func (x *Connection) GetAnnotations() map[string]string {
if x != nil {
return x.Annotations
}
return nil
}
func (x *Connection) GetEtag() string {
if x != nil {
return x.Etag
}
return ""
}
type isConnection_ConnectionConfig interface {
isConnection_ConnectionConfig()
}
type Connection_GithubConfig struct {
// Configuration for connections to github.com.
GithubConfig *GitHubConfig `protobuf:"bytes,5,opt,name=github_config,json=githubConfig,proto3,oneof"`
}
type Connection_GithubEnterpriseConfig struct {
// Configuration for connections to an instance of GitHub Enterprise.
GithubEnterpriseConfig *GitHubEnterpriseConfig `protobuf:"bytes,6,opt,name=github_enterprise_config,json=githubEnterpriseConfig,proto3,oneof"`
}
type Connection_GitlabConfig struct {
// Configuration for connections to gitlab.com or an instance of GitLab
// Enterprise.
GitlabConfig *GitLabConfig `protobuf:"bytes,7,opt,name=gitlab_config,json=gitlabConfig,proto3,oneof"`
}
type Connection_BitbucketDataCenterConfig struct {
// Configuration for connections to Bitbucket Data Center.
BitbucketDataCenterConfig *BitbucketDataCenterConfig `protobuf:"bytes,8,opt,name=bitbucket_data_center_config,json=bitbucketDataCenterConfig,proto3,oneof"`
}
type Connection_BitbucketCloudConfig struct {
// Configuration for connections to Bitbucket Cloud.
BitbucketCloudConfig *BitbucketCloudConfig `protobuf:"bytes,9,opt,name=bitbucket_cloud_config,json=bitbucketCloudConfig,proto3,oneof"`
}
func (*Connection_GithubConfig) isConnection_ConnectionConfig() {}
func (*Connection_GithubEnterpriseConfig) isConnection_ConnectionConfig() {}
func (*Connection_GitlabConfig) isConnection_ConnectionConfig() {}
func (*Connection_BitbucketDataCenterConfig) isConnection_ConnectionConfig() {}
func (*Connection_BitbucketCloudConfig) isConnection_ConnectionConfig() {}
// Describes stage and necessary actions to be taken by the
// user to complete the installation. Used for GitHub and GitHub Enterprise
// based connections.
type InstallationState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. Current step of the installation process.
Stage InstallationState_Stage `protobuf:"varint,1,opt,name=stage,proto3,enum=google.devtools.cloudbuild.v2.InstallationState_Stage" json:"stage,omitempty"`
// Output only. Message of what the user should do next to continue the
// installation. Empty string if the installation is already complete.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// Output only. Link to follow for next action. Empty string if the
// installation is already complete.
ActionUri string `protobuf:"bytes,3,opt,name=action_uri,json=actionUri,proto3" json:"action_uri,omitempty"`
}
func (x *InstallationState) Reset() {
*x = InstallationState{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InstallationState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InstallationState) ProtoMessage() {}
func (x *InstallationState) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InstallationState.ProtoReflect.Descriptor instead.
func (*InstallationState) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudbuild_v2_repositories_proto_rawDescGZIP(), []int{1}
}
func (x *InstallationState) GetStage() InstallationState_Stage {
if x != nil {
return x.Stage
}
return InstallationState_STAGE_UNSPECIFIED
}
func (x *InstallationState) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *InstallationState) GetActionUri() string {
if x != nil {
return x.ActionUri
}
return ""
}
// Request message for FetchLinkableRepositories.
type FetchLinkableRepositoriesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the Connection.
// Format: `projects/*/locations/*/connections/*`.
Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
// Number of results to return in the list. Default to 20.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page start.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (x *FetchLinkableRepositoriesRequest) Reset() {
*x = FetchLinkableRepositoriesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FetchLinkableRepositoriesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FetchLinkableRepositoriesRequest) ProtoMessage() {}
func (x *FetchLinkableRepositoriesRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FetchLinkableRepositoriesRequest.ProtoReflect.Descriptor instead.
func (*FetchLinkableRepositoriesRequest) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudbuild_v2_repositories_proto_rawDescGZIP(), []int{2}
}
func (x *FetchLinkableRepositoriesRequest) GetConnection() string {
if x != nil {
return x.Connection
}
return ""
}
func (x *FetchLinkableRepositoriesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *FetchLinkableRepositoriesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
// Response message for FetchLinkableRepositories.
type FetchLinkableRepositoriesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// repositories ready to be created.
Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
// A token identifying a page of results the server should return.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *FetchLinkableRepositoriesResponse) Reset() {
*x = FetchLinkableRepositoriesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FetchLinkableRepositoriesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FetchLinkableRepositoriesResponse) ProtoMessage() {}
func (x *FetchLinkableRepositoriesResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FetchLinkableRepositoriesResponse.ProtoReflect.Descriptor instead.
func (*FetchLinkableRepositoriesResponse) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudbuild_v2_repositories_proto_rawDescGZIP(), []int{3}
}
func (x *FetchLinkableRepositoriesResponse) GetRepositories() []*Repository {
if x != nil {
return x.Repositories
}
return nil
}
func (x *FetchLinkableRepositoriesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// Configuration for connections to github.com.
type GitHubConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// OAuth credential of the account that authorized the Cloud Build GitHub App.
// It is recommended to use a robot account instead of a human user account.
// The OAuth token must be tied to the Cloud Build GitHub App.
AuthorizerCredential *OAuthCredential `protobuf:"bytes,1,opt,name=authorizer_credential,json=authorizerCredential,proto3" json:"authorizer_credential,omitempty"`
// GitHub App installation id.
AppInstallationId int64 `protobuf:"varint,2,opt,name=app_installation_id,json=appInstallationId,proto3" json:"app_installation_id,omitempty"`
}
func (x *GitHubConfig) Reset() {
*x = GitHubConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GitHubConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GitHubConfig) ProtoMessage() {}
func (x *GitHubConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GitHubConfig.ProtoReflect.Descriptor instead.
func (*GitHubConfig) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudbuild_v2_repositories_proto_rawDescGZIP(), []int{4}
}
func (x *GitHubConfig) GetAuthorizerCredential() *OAuthCredential {
if x != nil {
return x.AuthorizerCredential
}
return nil
}
func (x *GitHubConfig) GetAppInstallationId() int64 {
if x != nil {
return x.AppInstallationId
}
return 0
}
// Configuration for connections to an instance of GitHub Enterprise.
type GitHubEnterpriseConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The URI of the GitHub Enterprise host this connection is for.
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
// Required. API Key used for authentication of webhook events.
ApiKey string `protobuf:"bytes,12,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
// Id of the GitHub App created from the manifest.
AppId int64 `protobuf:"varint,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
// The URL-friendly name of the GitHub App.
AppSlug string `protobuf:"bytes,13,opt,name=app_slug,json=appSlug,proto3" json:"app_slug,omitempty"`
// SecretManager resource containing the private key of the GitHub App,
// formatted as `projects/*/secrets/*/versions/*`.
PrivateKeySecretVersion string `protobuf:"bytes,4,opt,name=private_key_secret_version,json=privateKeySecretVersion,proto3" json:"private_key_secret_version,omitempty"`
// SecretManager resource containing the webhook secret of the GitHub App,
// formatted as `projects/*/secrets/*/versions/*`.
WebhookSecretSecretVersion string `protobuf:"bytes,5,opt,name=webhook_secret_secret_version,json=webhookSecretSecretVersion,proto3" json:"webhook_secret_secret_version,omitempty"`
// ID of the installation of the GitHub App.
AppInstallationId int64 `protobuf:"varint,9,opt,name=app_installation_id,json=appInstallationId,proto3" json:"app_installation_id,omitempty"`
// Configuration for using Service Directory to privately connect to a GitHub
// Enterprise server. This should only be set if the GitHub Enterprise server
// is hosted on-premises and not reachable by public internet. If this field
// is left empty, calls to the GitHub Enterprise server will be made over the
// public internet.
ServiceDirectoryConfig *ServiceDirectoryConfig `protobuf:"bytes,10,opt,name=service_directory_config,json=serviceDirectoryConfig,proto3" json:"service_directory_config,omitempty"`
// SSL certificate to use for requests to GitHub Enterprise.
SslCa string `protobuf:"bytes,11,opt,name=ssl_ca,json=sslCa,proto3" json:"ssl_ca,omitempty"`
// Output only. GitHub Enterprise version installed at the host_uri.
ServerVersion string `protobuf:"bytes,14,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"`
}
func (x *GitHubEnterpriseConfig) Reset() {
*x = GitHubEnterpriseConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GitHubEnterpriseConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GitHubEnterpriseConfig) ProtoMessage() {}
func (x *GitHubEnterpriseConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GitHubEnterpriseConfig.ProtoReflect.Descriptor instead.
func (*GitHubEnterpriseConfig) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudbuild_v2_repositories_proto_rawDescGZIP(), []int{5}
}
func (x *GitHubEnterpriseConfig) GetHostUri() string {
if x != nil {
return x.HostUri
}
return ""
}
func (x *GitHubEnterpriseConfig) GetApiKey() string {
if x != nil {
return x.ApiKey
}
return ""
}
func (x *GitHubEnterpriseConfig) GetAppId() int64 {
if x != nil {
return x.AppId
}
return 0
}
func (x *GitHubEnterpriseConfig) GetAppSlug() string {
if x != nil {
return x.AppSlug
}
return ""
}
func (x *GitHubEnterpriseConfig) GetPrivateKeySecretVersion() string {
if x != nil {
return x.PrivateKeySecretVersion
}
return ""
}
func (x *GitHubEnterpriseConfig) GetWebhookSecretSecretVersion() string {
if x != nil {
return x.WebhookSecretSecretVersion
}
return ""
}
func (x *GitHubEnterpriseConfig) GetAppInstallationId() int64 {
if x != nil {
return x.AppInstallationId
}
return 0
}
func (x *GitHubEnterpriseConfig) GetServiceDirectoryConfig() *ServiceDirectoryConfig {
if x != nil {
return x.ServiceDirectoryConfig
}
return nil
}
func (x *GitHubEnterpriseConfig) GetSslCa() string {
if x != nil {
return x.SslCa
}
return ""
}
func (x *GitHubEnterpriseConfig) GetServerVersion() string {
if x != nil {
return x.ServerVersion
}
return ""
}
// Configuration for connections to gitlab.com or an instance of GitLab
// Enterprise.
type GitLabConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The URI of the GitLab Enterprise host this connection is for.
// If not specified, the default value is https://gitlab.com.
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
// Required. Immutable. SecretManager resource containing the webhook secret
// of a GitLab Enterprise project, formatted as
// `projects/*/secrets/*/versions/*`.
WebhookSecretSecretVersion string `protobuf:"bytes,2,opt,name=webhook_secret_secret_version,json=webhookSecretSecretVersion,proto3" json:"webhook_secret_secret_version,omitempty"`
// Required. A GitLab personal access token with the minimum `read_api` scope
// access.
ReadAuthorizerCredential *UserCredential `protobuf:"bytes,3,opt,name=read_authorizer_credential,json=readAuthorizerCredential,proto3" json:"read_authorizer_credential,omitempty"`
// Required. A GitLab personal access token with the `api` scope access.
AuthorizerCredential *UserCredential `protobuf:"bytes,4,opt,name=authorizer_credential,json=authorizerCredential,proto3" json:"authorizer_credential,omitempty"`
// Configuration for using Service Directory to privately connect to a GitLab
// Enterprise server. This should only be set if the GitLab Enterprise server
// is hosted on-premises and not reachable by public internet. If this field
// is left empty, calls to the GitLab Enterprise server will be made over the
// public internet.
ServiceDirectoryConfig *ServiceDirectoryConfig `protobuf:"bytes,5,opt,name=service_directory_config,json=serviceDirectoryConfig,proto3" json:"service_directory_config,omitempty"`
// SSL certificate to use for requests to GitLab Enterprise.
SslCa string `protobuf:"bytes,6,opt,name=ssl_ca,json=sslCa,proto3" json:"ssl_ca,omitempty"`
// Output only. Version of the GitLab Enterprise server running on the
// `host_uri`.
ServerVersion string `protobuf:"bytes,7,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"`
}
func (x *GitLabConfig) Reset() {
*x = GitLabConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GitLabConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GitLabConfig) ProtoMessage() {}
func (x *GitLabConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GitLabConfig.ProtoReflect.Descriptor instead.
func (*GitLabConfig) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudbuild_v2_repositories_proto_rawDescGZIP(), []int{6}
}
func (x *GitLabConfig) GetHostUri() string {
if x != nil {
return x.HostUri
}
return ""
}
func (x *GitLabConfig) GetWebhookSecretSecretVersion() string {
if x != nil {
return x.WebhookSecretSecretVersion
}
return ""
}
func (x *GitLabConfig) GetReadAuthorizerCredential() *UserCredential {
if x != nil {
return x.ReadAuthorizerCredential
}
return nil
}
func (x *GitLabConfig) GetAuthorizerCredential() *UserCredential {
if x != nil {
return x.AuthorizerCredential
}
return nil
}
func (x *GitLabConfig) GetServiceDirectoryConfig() *ServiceDirectoryConfig {
if x != nil {
return x.ServiceDirectoryConfig
}
return nil
}
func (x *GitLabConfig) GetSslCa() string {
if x != nil {
return x.SslCa
}
return ""
}
func (x *GitLabConfig) GetServerVersion() string {
if x != nil {
return x.ServerVersion
}
return ""
}
// Configuration for connections to Bitbucket Data Center.
type BitbucketDataCenterConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The URI of the Bitbucket Data Center instance or cluster this
// connection is for.
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
// Required. Immutable. SecretManager resource containing the webhook secret
// used to verify webhook events, formatted as
// `projects/*/secrets/*/versions/*`.
WebhookSecretSecretVersion string `protobuf:"bytes,2,opt,name=webhook_secret_secret_version,json=webhookSecretSecretVersion,proto3" json:"webhook_secret_secret_version,omitempty"`
// Required. A http access token with the `REPO_READ` access.
ReadAuthorizerCredential *UserCredential `protobuf:"bytes,3,opt,name=read_authorizer_credential,json=readAuthorizerCredential,proto3" json:"read_authorizer_credential,omitempty"`
// Required. A http access token with the `REPO_ADMIN` scope access.
AuthorizerCredential *UserCredential `protobuf:"bytes,4,opt,name=authorizer_credential,json=authorizerCredential,proto3" json:"authorizer_credential,omitempty"`
// Optional. Configuration for using Service Directory to privately connect to
// a Bitbucket Data Center. This should only be set if the Bitbucket Data
// Center is hosted on-premises and not reachable by public internet. If this
// field is left empty, calls to the Bitbucket Data Center will be made over
// the public internet.
ServiceDirectoryConfig *ServiceDirectoryConfig `protobuf:"bytes,5,opt,name=service_directory_config,json=serviceDirectoryConfig,proto3" json:"service_directory_config,omitempty"`
// Optional. SSL certificate to use for requests to the Bitbucket Data Center.
SslCa string `protobuf:"bytes,6,opt,name=ssl_ca,json=sslCa,proto3" json:"ssl_ca,omitempty"`
// Output only. Version of the Bitbucket Data Center running on the
// `host_uri`.
ServerVersion string `protobuf:"bytes,7,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"`
}
func (x *BitbucketDataCenterConfig) Reset() {
*x = BitbucketDataCenterConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BitbucketDataCenterConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BitbucketDataCenterConfig) ProtoMessage() {}
func (x *BitbucketDataCenterConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_devtools_cloudbuild_v2_repositories_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BitbucketDataCenterConfig.ProtoReflect.Descriptor instead.
func (*BitbucketDataCenterConfig) Descriptor() ([]byte, []int) {
return file_google_devtools_cloudbuild_v2_repositories_proto_rawDescGZIP(), []int{7}
}
func (x *BitbucketDataCenterConfig) GetHostUri() string {
if x != nil {
return x.HostUri
}
return ""
}
func (x *BitbucketDataCenterConfig) GetWebhookSecretSecretVersion() string {
if x != nil {
return x.WebhookSecretSecretVersion
}
return ""
}
func (x *BitbucketDataCenterConfig) GetReadAuthorizerCredential() *UserCredential {
if x != nil {
return x.ReadAuthorizerCredential
}
return nil
}
func (x *BitbucketDataCenterConfig) GetAuthorizerCredential() *UserCredential {
if x != nil {
return x.AuthorizerCredential
}
return nil
}
func (x *BitbucketDataCenterConfig) GetServiceDirectoryConfig() *ServiceDirectoryConfig {
if x != nil {
return x.ServiceDirectoryConfig
}
return nil
}
func (x *BitbucketDataCenterConfig) GetSslCa() string {
if x != nil {
return x.SslCa
}
return ""
}
func (x *BitbucketDataCenterConfig) GetServerVersion() string {
if x != nil {
return x.ServerVersion
}
return ""
}
// Configuration for connections to Bitbucket Cloud.
type BitbucketCloudConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud
// Platform.
Workspace string `protobuf:"bytes,1,opt,name=workspace,proto3" json:"workspace,omitempty"`
// Required. SecretManager resource containing the webhook secret used to