-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
functions.pb.go
4590 lines (4148 loc) · 198 KB
/
functions.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 2022 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.26.0
// protoc v3.12.2
// source: google/cloud/functions/v2beta/functions.proto
package functionspb
import (
context "context"
reflect "reflect"
sync "sync"
any1 "github.com/golang/protobuf/ptypes/any"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
longrunning "google.golang.org/genproto/googleapis/longrunning"
field_mask "google.golang.org/genproto/protobuf/field_mask"
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"
)
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)
)
// The environment the function is hosted on.
type Environment int32
const (
// Unspecified
Environment_ENVIRONMENT_UNSPECIFIED Environment = 0
// Gen 1
Environment_GEN_1 Environment = 1
// Gen 2
Environment_GEN_2 Environment = 2
)
// Enum value maps for Environment.
var (
Environment_name = map[int32]string{
0: "ENVIRONMENT_UNSPECIFIED",
1: "GEN_1",
2: "GEN_2",
}
Environment_value = map[string]int32{
"ENVIRONMENT_UNSPECIFIED": 0,
"GEN_1": 1,
"GEN_2": 2,
}
)
func (x Environment) Enum() *Environment {
p := new(Environment)
*p = x
return p
}
func (x Environment) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Environment) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_functions_v2beta_functions_proto_enumTypes[0].Descriptor()
}
func (Environment) Type() protoreflect.EnumType {
return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[0]
}
func (x Environment) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Environment.Descriptor instead.
func (Environment) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{0}
}
// Describes the current state of the function.
type Function_State int32
const (
// Not specified. Invalid state.
Function_STATE_UNSPECIFIED Function_State = 0
// Function has been successfully deployed and is serving.
Function_ACTIVE Function_State = 1
// Function deployment failed and the function is not serving.
Function_FAILED Function_State = 2
// Function is being created or updated.
Function_DEPLOYING Function_State = 3
// Function is being deleted.
Function_DELETING Function_State = 4
// Function deployment failed and the function serving state is undefined.
// The function should be updated or deleted to move it out of this state.
Function_UNKNOWN Function_State = 5
)
// Enum value maps for Function_State.
var (
Function_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ACTIVE",
2: "FAILED",
3: "DEPLOYING",
4: "DELETING",
5: "UNKNOWN",
}
Function_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ACTIVE": 1,
"FAILED": 2,
"DEPLOYING": 3,
"DELETING": 4,
"UNKNOWN": 5,
}
)
func (x Function_State) Enum() *Function_State {
p := new(Function_State)
*p = x
return p
}
func (x Function_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Function_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_functions_v2beta_functions_proto_enumTypes[1].Descriptor()
}
func (Function_State) Type() protoreflect.EnumType {
return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[1]
}
func (x Function_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Function_State.Descriptor instead.
func (Function_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{0, 0}
}
// Severity of the state message.
type StateMessage_Severity int32
const (
// Not specified. Invalid severity.
StateMessage_SEVERITY_UNSPECIFIED StateMessage_Severity = 0
// ERROR-level severity.
StateMessage_ERROR StateMessage_Severity = 1
// WARNING-level severity.
StateMessage_WARNING StateMessage_Severity = 2
// INFO-level severity.
StateMessage_INFO StateMessage_Severity = 3
)
// Enum value maps for StateMessage_Severity.
var (
StateMessage_Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "ERROR",
2: "WARNING",
3: "INFO",
}
StateMessage_Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"ERROR": 1,
"WARNING": 2,
"INFO": 3,
}
)
func (x StateMessage_Severity) Enum() *StateMessage_Severity {
p := new(StateMessage_Severity)
*p = x
return p
}
func (x StateMessage_Severity) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (StateMessage_Severity) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_functions_v2beta_functions_proto_enumTypes[2].Descriptor()
}
func (StateMessage_Severity) Type() protoreflect.EnumType {
return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[2]
}
func (x StateMessage_Severity) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use StateMessage_Severity.Descriptor instead.
func (StateMessage_Severity) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{1, 0}
}
// Available egress settings.
//
// This controls what traffic is diverted through the VPC Access Connector
// resource. By default PRIVATE_RANGES_ONLY will be used.
type ServiceConfig_VpcConnectorEgressSettings int32
const (
// Unspecified.
ServiceConfig_VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED ServiceConfig_VpcConnectorEgressSettings = 0
// Use the VPC Access Connector only for private IP space from RFC1918.
ServiceConfig_PRIVATE_RANGES_ONLY ServiceConfig_VpcConnectorEgressSettings = 1
// Force the use of VPC Access Connector for all egress traffic from the
// function.
ServiceConfig_ALL_TRAFFIC ServiceConfig_VpcConnectorEgressSettings = 2
)
// Enum value maps for ServiceConfig_VpcConnectorEgressSettings.
var (
ServiceConfig_VpcConnectorEgressSettings_name = map[int32]string{
0: "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED",
1: "PRIVATE_RANGES_ONLY",
2: "ALL_TRAFFIC",
}
ServiceConfig_VpcConnectorEgressSettings_value = map[string]int32{
"VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED": 0,
"PRIVATE_RANGES_ONLY": 1,
"ALL_TRAFFIC": 2,
}
)
func (x ServiceConfig_VpcConnectorEgressSettings) Enum() *ServiceConfig_VpcConnectorEgressSettings {
p := new(ServiceConfig_VpcConnectorEgressSettings)
*p = x
return p
}
func (x ServiceConfig_VpcConnectorEgressSettings) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ServiceConfig_VpcConnectorEgressSettings) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_functions_v2beta_functions_proto_enumTypes[3].Descriptor()
}
func (ServiceConfig_VpcConnectorEgressSettings) Type() protoreflect.EnumType {
return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[3]
}
func (x ServiceConfig_VpcConnectorEgressSettings) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ServiceConfig_VpcConnectorEgressSettings.Descriptor instead.
func (ServiceConfig_VpcConnectorEgressSettings) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{7, 0}
}
// Available ingress settings.
//
// This controls what traffic can reach the function.
//
// If unspecified, ALLOW_ALL will be used.
type ServiceConfig_IngressSettings int32
const (
// Unspecified.
ServiceConfig_INGRESS_SETTINGS_UNSPECIFIED ServiceConfig_IngressSettings = 0
// Allow HTTP traffic from public and private sources.
ServiceConfig_ALLOW_ALL ServiceConfig_IngressSettings = 1
// Allow HTTP traffic from only private VPC sources.
ServiceConfig_ALLOW_INTERNAL_ONLY ServiceConfig_IngressSettings = 2
// Allow HTTP traffic from private VPC sources and through GCLB.
ServiceConfig_ALLOW_INTERNAL_AND_GCLB ServiceConfig_IngressSettings = 3
)
// Enum value maps for ServiceConfig_IngressSettings.
var (
ServiceConfig_IngressSettings_name = map[int32]string{
0: "INGRESS_SETTINGS_UNSPECIFIED",
1: "ALLOW_ALL",
2: "ALLOW_INTERNAL_ONLY",
3: "ALLOW_INTERNAL_AND_GCLB",
}
ServiceConfig_IngressSettings_value = map[string]int32{
"INGRESS_SETTINGS_UNSPECIFIED": 0,
"ALLOW_ALL": 1,
"ALLOW_INTERNAL_ONLY": 2,
"ALLOW_INTERNAL_AND_GCLB": 3,
}
)
func (x ServiceConfig_IngressSettings) Enum() *ServiceConfig_IngressSettings {
p := new(ServiceConfig_IngressSettings)
*p = x
return p
}
func (x ServiceConfig_IngressSettings) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ServiceConfig_IngressSettings) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_functions_v2beta_functions_proto_enumTypes[4].Descriptor()
}
func (ServiceConfig_IngressSettings) Type() protoreflect.EnumType {
return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[4]
}
func (x ServiceConfig_IngressSettings) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ServiceConfig_IngressSettings.Descriptor instead.
func (ServiceConfig_IngressSettings) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{7, 1}
}
// Describes the retry policy in case of function's execution failure.
// Retried execution is charged as any other execution.
type EventTrigger_RetryPolicy int32
const (
// Not specified.
EventTrigger_RETRY_POLICY_UNSPECIFIED EventTrigger_RetryPolicy = 0
// Do not retry.
EventTrigger_RETRY_POLICY_DO_NOT_RETRY EventTrigger_RetryPolicy = 1
// Retry on any failure, retry up to 7 days with an exponential backoff
// (capped at 10 seconds).
EventTrigger_RETRY_POLICY_RETRY EventTrigger_RetryPolicy = 2
)
// Enum value maps for EventTrigger_RetryPolicy.
var (
EventTrigger_RetryPolicy_name = map[int32]string{
0: "RETRY_POLICY_UNSPECIFIED",
1: "RETRY_POLICY_DO_NOT_RETRY",
2: "RETRY_POLICY_RETRY",
}
EventTrigger_RetryPolicy_value = map[string]int32{
"RETRY_POLICY_UNSPECIFIED": 0,
"RETRY_POLICY_DO_NOT_RETRY": 1,
"RETRY_POLICY_RETRY": 2,
}
)
func (x EventTrigger_RetryPolicy) Enum() *EventTrigger_RetryPolicy {
p := new(EventTrigger_RetryPolicy)
*p = x
return p
}
func (x EventTrigger_RetryPolicy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EventTrigger_RetryPolicy) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_functions_v2beta_functions_proto_enumTypes[5].Descriptor()
}
func (EventTrigger_RetryPolicy) Type() protoreflect.EnumType {
return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[5]
}
func (x EventTrigger_RetryPolicy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EventTrigger_RetryPolicy.Descriptor instead.
func (EventTrigger_RetryPolicy) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{10, 0}
}
// The various stages that a runtime can be in.
type ListRuntimesResponse_RuntimeStage int32
const (
// Not specified.
ListRuntimesResponse_RUNTIME_STAGE_UNSPECIFIED ListRuntimesResponse_RuntimeStage = 0
// The runtime is in development.
ListRuntimesResponse_DEVELOPMENT ListRuntimesResponse_RuntimeStage = 1
// The runtime is in the Alpha stage.
ListRuntimesResponse_ALPHA ListRuntimesResponse_RuntimeStage = 2
// The runtime is in the Beta stage.
ListRuntimesResponse_BETA ListRuntimesResponse_RuntimeStage = 3
// The runtime is generally available.
ListRuntimesResponse_GA ListRuntimesResponse_RuntimeStage = 4
// The runtime is deprecated.
ListRuntimesResponse_DEPRECATED ListRuntimesResponse_RuntimeStage = 5
// The runtime is no longer supported.
ListRuntimesResponse_DECOMMISSIONED ListRuntimesResponse_RuntimeStage = 6
)
// Enum value maps for ListRuntimesResponse_RuntimeStage.
var (
ListRuntimesResponse_RuntimeStage_name = map[int32]string{
0: "RUNTIME_STAGE_UNSPECIFIED",
1: "DEVELOPMENT",
2: "ALPHA",
3: "BETA",
4: "GA",
5: "DEPRECATED",
6: "DECOMMISSIONED",
}
ListRuntimesResponse_RuntimeStage_value = map[string]int32{
"RUNTIME_STAGE_UNSPECIFIED": 0,
"DEVELOPMENT": 1,
"ALPHA": 2,
"BETA": 3,
"GA": 4,
"DEPRECATED": 5,
"DECOMMISSIONED": 6,
}
)
func (x ListRuntimesResponse_RuntimeStage) Enum() *ListRuntimesResponse_RuntimeStage {
p := new(ListRuntimesResponse_RuntimeStage)
*p = x
return p
}
func (x ListRuntimesResponse_RuntimeStage) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ListRuntimesResponse_RuntimeStage) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_functions_v2beta_functions_proto_enumTypes[6].Descriptor()
}
func (ListRuntimesResponse_RuntimeStage) Type() protoreflect.EnumType {
return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[6]
}
func (x ListRuntimesResponse_RuntimeStage) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ListRuntimesResponse_RuntimeStage.Descriptor instead.
func (ListRuntimesResponse_RuntimeStage) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{23, 0}
}
// Possible names for a Stage
type Stage_Name int32
const (
// Not specified. Invalid name.
Stage_NAME_UNSPECIFIED Stage_Name = 0
// Artifact Regsitry Stage
Stage_ARTIFACT_REGISTRY Stage_Name = 1
// Build Stage
Stage_BUILD Stage_Name = 2
// Service Stage
Stage_SERVICE Stage_Name = 3
// Trigger Stage
Stage_TRIGGER Stage_Name = 4
// Service Rollback Stage
Stage_SERVICE_ROLLBACK Stage_Name = 5
// Trigger Rollback Stage
Stage_TRIGGER_ROLLBACK Stage_Name = 6
)
// Enum value maps for Stage_Name.
var (
Stage_Name_name = map[int32]string{
0: "NAME_UNSPECIFIED",
1: "ARTIFACT_REGISTRY",
2: "BUILD",
3: "SERVICE",
4: "TRIGGER",
5: "SERVICE_ROLLBACK",
6: "TRIGGER_ROLLBACK",
}
Stage_Name_value = map[string]int32{
"NAME_UNSPECIFIED": 0,
"ARTIFACT_REGISTRY": 1,
"BUILD": 2,
"SERVICE": 3,
"TRIGGER": 4,
"SERVICE_ROLLBACK": 5,
"TRIGGER_ROLLBACK": 6,
}
)
func (x Stage_Name) Enum() *Stage_Name {
p := new(Stage_Name)
*p = x
return p
}
func (x Stage_Name) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Stage_Name) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_functions_v2beta_functions_proto_enumTypes[7].Descriptor()
}
func (Stage_Name) Type() protoreflect.EnumType {
return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[7]
}
func (x Stage_Name) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Stage_Name.Descriptor instead.
func (Stage_Name) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{25, 0}
}
// Possible states for a Stage
type Stage_State int32
const (
// Not specified. Invalid state.
Stage_STATE_UNSPECIFIED Stage_State = 0
// Stage has not started.
Stage_NOT_STARTED Stage_State = 1
// Stage is in progress.
Stage_IN_PROGRESS Stage_State = 2
// Stage has completed.
Stage_COMPLETE Stage_State = 3
)
// Enum value maps for Stage_State.
var (
Stage_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "NOT_STARTED",
2: "IN_PROGRESS",
3: "COMPLETE",
}
Stage_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"NOT_STARTED": 1,
"IN_PROGRESS": 2,
"COMPLETE": 3,
}
)
func (x Stage_State) Enum() *Stage_State {
p := new(Stage_State)
*p = x
return p
}
func (x Stage_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Stage_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_functions_v2beta_functions_proto_enumTypes[8].Descriptor()
}
func (Stage_State) Type() protoreflect.EnumType {
return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[8]
}
func (x Stage_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Stage_State.Descriptor instead.
func (Stage_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{25, 1}
}
// Describes a Cloud Function that contains user computation executed in
// response to an event. It encapsulates function and trigger configurations.
type Function struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A user-defined name of the function. Function names must be unique
// globally and match pattern `projects/*/locations/*/functions/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Describe whether the function is gen1 or gen2.
Environment Environment `protobuf:"varint,10,opt,name=environment,proto3,enum=google.cloud.functions.v2beta.Environment" json:"environment,omitempty"`
// User-provided description of a function.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Describes the Build step of the function that builds a container from the
// given source.
BuildConfig *BuildConfig `protobuf:"bytes,3,opt,name=build_config,json=buildConfig,proto3" json:"build_config,omitempty"`
// Describes the Service being deployed. Currently deploys services to Cloud
// Run (fully managed).
ServiceConfig *ServiceConfig `protobuf:"bytes,4,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
// An Eventarc trigger managed by Google Cloud Functions that fires events in
// response to a condition in another service.
EventTrigger *EventTrigger `protobuf:"bytes,5,opt,name=event_trigger,json=eventTrigger,proto3" json:"event_trigger,omitempty"`
// Output only. State of the function.
State Function_State `protobuf:"varint,6,opt,name=state,proto3,enum=google.cloud.functions.v2beta.Function_State" json:"state,omitempty"`
// Output only. The last update timestamp of a Cloud Function.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Labels associated with this Cloud Function.
Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. State Messages for this Cloud Function.
StateMessages []*StateMessage `protobuf:"bytes,9,rep,name=state_messages,json=stateMessages,proto3" json:"state_messages,omitempty"`
}
func (x *Function) Reset() {
*x = Function{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Function) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Function) ProtoMessage() {}
func (x *Function) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_functions_v2beta_functions_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 Function.ProtoReflect.Descriptor instead.
func (*Function) Descriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{0}
}
func (x *Function) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Function) GetEnvironment() Environment {
if x != nil {
return x.Environment
}
return Environment_ENVIRONMENT_UNSPECIFIED
}
func (x *Function) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Function) GetBuildConfig() *BuildConfig {
if x != nil {
return x.BuildConfig
}
return nil
}
func (x *Function) GetServiceConfig() *ServiceConfig {
if x != nil {
return x.ServiceConfig
}
return nil
}
func (x *Function) GetEventTrigger() *EventTrigger {
if x != nil {
return x.EventTrigger
}
return nil
}
func (x *Function) GetState() Function_State {
if x != nil {
return x.State
}
return Function_STATE_UNSPECIFIED
}
func (x *Function) GetUpdateTime() *timestamp.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *Function) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Function) GetStateMessages() []*StateMessage {
if x != nil {
return x.StateMessages
}
return nil
}
// Informational messages about the state of the Cloud Function or Operation.
type StateMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Severity of the state message.
Severity StateMessage_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=google.cloud.functions.v2beta.StateMessage_Severity" json:"severity,omitempty"`
// One-word CamelCase type of the state message.
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// The message.
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
}
func (x *StateMessage) Reset() {
*x = StateMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StateMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StateMessage) ProtoMessage() {}
func (x *StateMessage) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_functions_v2beta_functions_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 StateMessage.ProtoReflect.Descriptor instead.
func (*StateMessage) Descriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{1}
}
func (x *StateMessage) GetSeverity() StateMessage_Severity {
if x != nil {
return x.Severity
}
return StateMessage_SEVERITY_UNSPECIFIED
}
func (x *StateMessage) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *StateMessage) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
// Location of the source in an archive file in Google Cloud Storage.
type StorageSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Google Cloud Storage bucket containing the source (see
// [Bucket Name
// Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
// Google Cloud Storage object containing the source.
//
// This object must be a gzipped archive file (`.tar.gz`) containing source to
// build.
Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
// Google Cloud Storage generation for the object. If the generation is
// omitted, the latest generation will be used.
Generation int64 `protobuf:"varint,3,opt,name=generation,proto3" json:"generation,omitempty"`
}
func (x *StorageSource) Reset() {
*x = StorageSource{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StorageSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StorageSource) ProtoMessage() {}
func (x *StorageSource) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_functions_v2beta_functions_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 StorageSource.ProtoReflect.Descriptor instead.
func (*StorageSource) Descriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{2}
}
func (x *StorageSource) GetBucket() string {
if x != nil {
return x.Bucket
}
return ""
}
func (x *StorageSource) GetObject() string {
if x != nil {
return x.Object
}
return ""
}
func (x *StorageSource) GetGeneration() int64 {
if x != nil {
return x.Generation
}
return 0
}
// Location of the source in a Google Cloud Source Repository.
type RepoSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A revision within the Cloud Source Repository must be specified in
// one of these ways.
//
// Types that are assignable to Revision:
//
// *RepoSource_BranchName
// *RepoSource_TagName
// *RepoSource_CommitSha
Revision isRepoSource_Revision `protobuf_oneof:"revision"`
// ID of the project that owns the Cloud Source Repository. If omitted, the
// project ID requesting the build is assumed.
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Name of the Cloud Source Repository.
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
// Directory, relative to the source root, in which to run the build.
//
// This must be a relative path. If a step's `dir` is specified and is an
// absolute path, this value is ignored for that step's execution.
// eg. helloworld (no leading slash allowed)
Dir string `protobuf:"bytes,6,opt,name=dir,proto3" json:"dir,omitempty"`
// Only trigger a build if the revision regex does NOT match the revision
// regex.
InvertRegex bool `protobuf:"varint,7,opt,name=invert_regex,json=invertRegex,proto3" json:"invert_regex,omitempty"`
}
func (x *RepoSource) Reset() {
*x = RepoSource{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RepoSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RepoSource) ProtoMessage() {}
func (x *RepoSource) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_functions_v2beta_functions_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 RepoSource.ProtoReflect.Descriptor instead.
func (*RepoSource) Descriptor() ([]byte, []int) {
return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{3}
}
func (m *RepoSource) GetRevision() isRepoSource_Revision {
if m != nil {
return m.Revision
}
return nil
}
func (x *RepoSource) GetBranchName() string {
if x, ok := x.GetRevision().(*RepoSource_BranchName); ok {
return x.BranchName
}
return ""
}
func (x *RepoSource) GetTagName() string {
if x, ok := x.GetRevision().(*RepoSource_TagName); ok {
return x.TagName
}
return ""
}
func (x *RepoSource) GetCommitSha() string {
if x, ok := x.GetRevision().(*RepoSource_CommitSha); ok {
return x.CommitSha
}
return ""
}
func (x *RepoSource) GetProjectId() string {
if x != nil {
return x.ProjectId
}
return ""
}
func (x *RepoSource) GetRepoName() string {
if x != nil {
return x.RepoName
}
return ""
}
func (x *RepoSource) GetDir() string {
if x != nil {
return x.Dir
}
return ""
}
func (x *RepoSource) GetInvertRegex() bool {
if x != nil {
return x.InvertRegex
}
return false
}
type isRepoSource_Revision interface {
isRepoSource_Revision()
}
type RepoSource_BranchName struct {
// Regex matching branches to build.
//
// The syntax of the regular expressions accepted is the syntax accepted by
// RE2 and described at https://github.com/google/re2/wiki/Syntax
BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3,oneof"`
}
type RepoSource_TagName struct {
// Regex matching tags to build.
//
// The syntax of the regular expressions accepted is the syntax accepted by