/
resources.pb.go
executable file
·6084 lines (5471 loc) · 268 KB
/
resources.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/cloud/alloydb/v1alpha/resources.proto
package alloydbpb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
dayofweek "google.golang.org/genproto/googleapis/type/dayofweek"
timeofday "google.golang.org/genproto/googleapis/type/timeofday"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)
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)
)
// View on Instance. Pass this enum to rpcs that returns an Instance message to
// control which subsets of fields to get.
type InstanceView int32
const (
// INSTANCE_VIEW_UNSPECIFIED Not specified, equivalent to BASIC.
InstanceView_INSTANCE_VIEW_UNSPECIFIED InstanceView = 0
// BASIC server responses for a primary or read instance include all the
// relevant instance details, excluding the details of each node in the
// instance. The default value.
InstanceView_INSTANCE_VIEW_BASIC InstanceView = 1
// FULL response is equivalent to BASIC for primary instance (for now).
// For read pool instance, this includes details of each node in the pool.
InstanceView_INSTANCE_VIEW_FULL InstanceView = 2
)
// Enum value maps for InstanceView.
var (
InstanceView_name = map[int32]string{
0: "INSTANCE_VIEW_UNSPECIFIED",
1: "INSTANCE_VIEW_BASIC",
2: "INSTANCE_VIEW_FULL",
}
InstanceView_value = map[string]int32{
"INSTANCE_VIEW_UNSPECIFIED": 0,
"INSTANCE_VIEW_BASIC": 1,
"INSTANCE_VIEW_FULL": 2,
}
)
func (x InstanceView) Enum() *InstanceView {
p := new(InstanceView)
*p = x
return p
}
func (x InstanceView) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (InstanceView) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[0].Descriptor()
}
func (InstanceView) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[0]
}
func (x InstanceView) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use InstanceView.Descriptor instead.
func (InstanceView) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{0}
}
// View on Cluster. Pass this enum to rpcs that returns a cluster message to
// control which subsets of fields to get.
type ClusterView int32
const (
// CLUSTER_VIEW_UNSPECIFIED Not specified, equivalent to BASIC.
ClusterView_CLUSTER_VIEW_UNSPECIFIED ClusterView = 0
// BASIC server responses include all the relevant cluster details, excluding
// Cluster.ContinuousBackupInfo.EarliestRestorableTime and other view-specific
// fields. The default value.
ClusterView_CLUSTER_VIEW_BASIC ClusterView = 1
// CONTINUOUS_BACKUP response returns all the fields from BASIC plus
// the earliest restorable time if continuous backups are enabled.
// May increase latency.
ClusterView_CLUSTER_VIEW_CONTINUOUS_BACKUP ClusterView = 2
)
// Enum value maps for ClusterView.
var (
ClusterView_name = map[int32]string{
0: "CLUSTER_VIEW_UNSPECIFIED",
1: "CLUSTER_VIEW_BASIC",
2: "CLUSTER_VIEW_CONTINUOUS_BACKUP",
}
ClusterView_value = map[string]int32{
"CLUSTER_VIEW_UNSPECIFIED": 0,
"CLUSTER_VIEW_BASIC": 1,
"CLUSTER_VIEW_CONTINUOUS_BACKUP": 2,
}
)
func (x ClusterView) Enum() *ClusterView {
p := new(ClusterView)
*p = x
return p
}
func (x ClusterView) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ClusterView) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[1].Descriptor()
}
func (ClusterView) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[1]
}
func (x ClusterView) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ClusterView.Descriptor instead.
func (ClusterView) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{1}
}
// The supported database engine versions.
type DatabaseVersion int32
const (
// This is an unknown database version.
DatabaseVersion_DATABASE_VERSION_UNSPECIFIED DatabaseVersion = 0
// DEPRECATED - The database version is Postgres 13.
//
// Deprecated: Marked as deprecated in google/cloud/alloydb/v1alpha/resources.proto.
DatabaseVersion_POSTGRES_13 DatabaseVersion = 1
// The database version is Postgres 14.
DatabaseVersion_POSTGRES_14 DatabaseVersion = 2
// The database version is Postgres 15.
DatabaseVersion_POSTGRES_15 DatabaseVersion = 3
)
// Enum value maps for DatabaseVersion.
var (
DatabaseVersion_name = map[int32]string{
0: "DATABASE_VERSION_UNSPECIFIED",
1: "POSTGRES_13",
2: "POSTGRES_14",
3: "POSTGRES_15",
}
DatabaseVersion_value = map[string]int32{
"DATABASE_VERSION_UNSPECIFIED": 0,
"POSTGRES_13": 1,
"POSTGRES_14": 2,
"POSTGRES_15": 3,
}
)
func (x DatabaseVersion) Enum() *DatabaseVersion {
p := new(DatabaseVersion)
*p = x
return p
}
func (x DatabaseVersion) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DatabaseVersion) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[2].Descriptor()
}
func (DatabaseVersion) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[2]
}
func (x DatabaseVersion) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DatabaseVersion.Descriptor instead.
func (DatabaseVersion) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{2}
}
// Denote the type of migration source that created this cluster.
type MigrationSource_MigrationSourceType int32
const (
// Migration source is unknown.
MigrationSource_MIGRATION_SOURCE_TYPE_UNSPECIFIED MigrationSource_MigrationSourceType = 0
// DMS source means the cluster was created via DMS migration job.
MigrationSource_DMS MigrationSource_MigrationSourceType = 1
)
// Enum value maps for MigrationSource_MigrationSourceType.
var (
MigrationSource_MigrationSourceType_name = map[int32]string{
0: "MIGRATION_SOURCE_TYPE_UNSPECIFIED",
1: "DMS",
}
MigrationSource_MigrationSourceType_value = map[string]int32{
"MIGRATION_SOURCE_TYPE_UNSPECIFIED": 0,
"DMS": 1,
}
)
func (x MigrationSource_MigrationSourceType) Enum() *MigrationSource_MigrationSourceType {
p := new(MigrationSource_MigrationSourceType)
*p = x
return p
}
func (x MigrationSource_MigrationSourceType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MigrationSource_MigrationSourceType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[3].Descriptor()
}
func (MigrationSource_MigrationSourceType) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[3]
}
func (x MigrationSource_MigrationSourceType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MigrationSource_MigrationSourceType.Descriptor instead.
func (MigrationSource_MigrationSourceType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{1, 0}
}
// Possible encryption types.
type EncryptionInfo_Type int32
const (
// Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION.
EncryptionInfo_TYPE_UNSPECIFIED EncryptionInfo_Type = 0
// The data is encrypted at rest with a key that is fully managed by Google.
// No key version will be populated. This is the default state.
EncryptionInfo_GOOGLE_DEFAULT_ENCRYPTION EncryptionInfo_Type = 1
// The data is encrypted at rest with a key that is managed by the customer.
// KMS key versions will be populated.
EncryptionInfo_CUSTOMER_MANAGED_ENCRYPTION EncryptionInfo_Type = 2
)
// Enum value maps for EncryptionInfo_Type.
var (
EncryptionInfo_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "GOOGLE_DEFAULT_ENCRYPTION",
2: "CUSTOMER_MANAGED_ENCRYPTION",
}
EncryptionInfo_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"GOOGLE_DEFAULT_ENCRYPTION": 1,
"CUSTOMER_MANAGED_ENCRYPTION": 2,
}
)
func (x EncryptionInfo_Type) Enum() *EncryptionInfo_Type {
p := new(EncryptionInfo_Type)
*p = x
return p
}
func (x EncryptionInfo_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EncryptionInfo_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[4].Descriptor()
}
func (EncryptionInfo_Type) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[4]
}
func (x EncryptionInfo_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EncryptionInfo_Type.Descriptor instead.
func (EncryptionInfo_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{3, 0}
}
// SSL mode options.
type SslConfig_SslMode int32
const (
// SSL mode not specified. Defaults to ENCRYPTED_ONLY.
SslConfig_SSL_MODE_UNSPECIFIED SslConfig_SslMode = 0
// SSL connections are optional. CA verification not enforced.
//
// Deprecated: Marked as deprecated in google/cloud/alloydb/v1alpha/resources.proto.
SslConfig_SSL_MODE_ALLOW SslConfig_SslMode = 1
// SSL connections are required. CA verification not enforced.
// Clients may use locally self-signed certificates (default psql client
// behavior).
//
// Deprecated: Marked as deprecated in google/cloud/alloydb/v1alpha/resources.proto.
SslConfig_SSL_MODE_REQUIRE SslConfig_SslMode = 2
// SSL connections are required. CA verification enforced.
// Clients must have certificates signed by a Cluster CA, e.g. via
// GenerateClientCertificate.
//
// Deprecated: Marked as deprecated in google/cloud/alloydb/v1alpha/resources.proto.
SslConfig_SSL_MODE_VERIFY_CA SslConfig_SslMode = 3
// SSL connections are optional. CA verification not enforced.
SslConfig_ALLOW_UNENCRYPTED_AND_ENCRYPTED SslConfig_SslMode = 4
// SSL connections are required. CA verification not enforced.
SslConfig_ENCRYPTED_ONLY SslConfig_SslMode = 5
)
// Enum value maps for SslConfig_SslMode.
var (
SslConfig_SslMode_name = map[int32]string{
0: "SSL_MODE_UNSPECIFIED",
1: "SSL_MODE_ALLOW",
2: "SSL_MODE_REQUIRE",
3: "SSL_MODE_VERIFY_CA",
4: "ALLOW_UNENCRYPTED_AND_ENCRYPTED",
5: "ENCRYPTED_ONLY",
}
SslConfig_SslMode_value = map[string]int32{
"SSL_MODE_UNSPECIFIED": 0,
"SSL_MODE_ALLOW": 1,
"SSL_MODE_REQUIRE": 2,
"SSL_MODE_VERIFY_CA": 3,
"ALLOW_UNENCRYPTED_AND_ENCRYPTED": 4,
"ENCRYPTED_ONLY": 5,
}
)
func (x SslConfig_SslMode) Enum() *SslConfig_SslMode {
p := new(SslConfig_SslMode)
*p = x
return p
}
func (x SslConfig_SslMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SslConfig_SslMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[5].Descriptor()
}
func (SslConfig_SslMode) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[5]
}
func (x SslConfig_SslMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SslConfig_SslMode.Descriptor instead.
func (SslConfig_SslMode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{4, 0}
}
// Certificate Authority (CA) source for SSL/TLS certificates.
type SslConfig_CaSource int32
const (
// Certificate Authority (CA) source not specified. Defaults to
// CA_SOURCE_MANAGED.
SslConfig_CA_SOURCE_UNSPECIFIED SslConfig_CaSource = 0
// Certificate Authority (CA) managed by the AlloyDB Cluster.
SslConfig_CA_SOURCE_MANAGED SslConfig_CaSource = 1
)
// Enum value maps for SslConfig_CaSource.
var (
SslConfig_CaSource_name = map[int32]string{
0: "CA_SOURCE_UNSPECIFIED",
1: "CA_SOURCE_MANAGED",
}
SslConfig_CaSource_value = map[string]int32{
"CA_SOURCE_UNSPECIFIED": 0,
"CA_SOURCE_MANAGED": 1,
}
)
func (x SslConfig_CaSource) Enum() *SslConfig_CaSource {
p := new(SslConfig_CaSource)
*p = x
return p
}
func (x SslConfig_CaSource) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SslConfig_CaSource) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[6].Descriptor()
}
func (SslConfig_CaSource) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[6]
}
func (x SslConfig_CaSource) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SslConfig_CaSource.Descriptor instead.
func (SslConfig_CaSource) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{4, 1}
}
// Cluster State
type Cluster_State int32
const (
// The state of the cluster is unknown.
Cluster_STATE_UNSPECIFIED Cluster_State = 0
// The cluster is active and running.
Cluster_READY Cluster_State = 1
// The cluster is stopped. All instances in the cluster are stopped.
// Customers can start a stopped cluster at any point and all their
// instances will come back to life with same names and IP resources. In
// this state, customer pays for storage.
// Associated backups could also be present in a stopped cluster.
Cluster_STOPPED Cluster_State = 2
// The cluster is empty and has no associated resources.
// All instances, associated storage and backups have been deleted.
Cluster_EMPTY Cluster_State = 3
// The cluster is being created.
Cluster_CREATING Cluster_State = 4
// The cluster is being deleted.
Cluster_DELETING Cluster_State = 5
// The creation of the cluster failed.
Cluster_FAILED Cluster_State = 6
// The cluster is bootstrapping with data from some other source.
// Direct mutations to the cluster (e.g. adding read pool) are not allowed.
Cluster_BOOTSTRAPPING Cluster_State = 7
// The cluster is under maintenance. AlloyDB regularly performs maintenance
// and upgrades on customer clusters. Updates on the cluster are
// not allowed while the cluster is in this state.
Cluster_MAINTENANCE Cluster_State = 8
// The cluster is being promoted.
Cluster_PROMOTING Cluster_State = 9
)
// Enum value maps for Cluster_State.
var (
Cluster_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "READY",
2: "STOPPED",
3: "EMPTY",
4: "CREATING",
5: "DELETING",
6: "FAILED",
7: "BOOTSTRAPPING",
8: "MAINTENANCE",
9: "PROMOTING",
}
Cluster_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"READY": 1,
"STOPPED": 2,
"EMPTY": 3,
"CREATING": 4,
"DELETING": 5,
"FAILED": 6,
"BOOTSTRAPPING": 7,
"MAINTENANCE": 8,
"PROMOTING": 9,
}
)
func (x Cluster_State) Enum() *Cluster_State {
p := new(Cluster_State)
*p = x
return p
}
func (x Cluster_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[7].Descriptor()
}
func (Cluster_State) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[7]
}
func (x Cluster_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_State.Descriptor instead.
func (Cluster_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{10, 0}
}
// Type of Cluster
type Cluster_ClusterType int32
const (
// The type of the cluster is unknown.
Cluster_CLUSTER_TYPE_UNSPECIFIED Cluster_ClusterType = 0
// Primary cluster that support read and write operations.
Cluster_PRIMARY Cluster_ClusterType = 1
// Secondary cluster that is replicating from another region.
// This only supports read.
Cluster_SECONDARY Cluster_ClusterType = 2
)
// Enum value maps for Cluster_ClusterType.
var (
Cluster_ClusterType_name = map[int32]string{
0: "CLUSTER_TYPE_UNSPECIFIED",
1: "PRIMARY",
2: "SECONDARY",
}
Cluster_ClusterType_value = map[string]int32{
"CLUSTER_TYPE_UNSPECIFIED": 0,
"PRIMARY": 1,
"SECONDARY": 2,
}
)
func (x Cluster_ClusterType) Enum() *Cluster_ClusterType {
p := new(Cluster_ClusterType)
*p = x
return p
}
func (x Cluster_ClusterType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Cluster_ClusterType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[8].Descriptor()
}
func (Cluster_ClusterType) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[8]
}
func (x Cluster_ClusterType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Cluster_ClusterType.Descriptor instead.
func (Cluster_ClusterType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{10, 1}
}
// Instance State
type Instance_State int32
const (
// The state of the instance is unknown.
Instance_STATE_UNSPECIFIED Instance_State = 0
// The instance is active and running.
Instance_READY Instance_State = 1
// The instance is stopped. Instance name and IP resources are preserved.
Instance_STOPPED Instance_State = 2
// The instance is being created.
Instance_CREATING Instance_State = 3
// The instance is being deleted.
Instance_DELETING Instance_State = 4
// The instance is down for maintenance.
Instance_MAINTENANCE Instance_State = 5
// The creation of the instance failed or a fatal error occurred during
// an operation on the instance.
// Note: Instances in this state would tried to be auto-repaired. And
// Customers should be able to restart, update or delete these instances.
Instance_FAILED Instance_State = 6
// Index 7 is used in the producer apis for ROLLED_BACK state. Keeping that
// index unused in case that state also needs to exposed via consumer apis
// in future.
// The instance has been configured to sync data from some other source.
Instance_BOOTSTRAPPING Instance_State = 8
// The instance is being promoted.
Instance_PROMOTING Instance_State = 9
)
// Enum value maps for Instance_State.
var (
Instance_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "READY",
2: "STOPPED",
3: "CREATING",
4: "DELETING",
5: "MAINTENANCE",
6: "FAILED",
8: "BOOTSTRAPPING",
9: "PROMOTING",
}
Instance_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"READY": 1,
"STOPPED": 2,
"CREATING": 3,
"DELETING": 4,
"MAINTENANCE": 5,
"FAILED": 6,
"BOOTSTRAPPING": 8,
"PROMOTING": 9,
}
)
func (x Instance_State) Enum() *Instance_State {
p := new(Instance_State)
*p = x
return p
}
func (x Instance_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Instance_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[9].Descriptor()
}
func (Instance_State) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[9]
}
func (x Instance_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Instance_State.Descriptor instead.
func (Instance_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{11, 0}
}
// Type of an Instance
type Instance_InstanceType int32
const (
// The type of the instance is unknown.
Instance_INSTANCE_TYPE_UNSPECIFIED Instance_InstanceType = 0
// PRIMARY instances support read and write operations.
Instance_PRIMARY Instance_InstanceType = 1
// READ POOL instances support read operations only. Each read pool instance
// consists of one or more homogeneous nodes.
// - Read pool of size 1 can only have zonal availability.
// - Read pools with node count of 2 or more can have regional
// availability (nodes are present in 2 or more zones in a region).
Instance_READ_POOL Instance_InstanceType = 2
// SECONDARY instances support read operations only. SECONDARY instance
// is a cross-region read replica
Instance_SECONDARY Instance_InstanceType = 3
)
// Enum value maps for Instance_InstanceType.
var (
Instance_InstanceType_name = map[int32]string{
0: "INSTANCE_TYPE_UNSPECIFIED",
1: "PRIMARY",
2: "READ_POOL",
3: "SECONDARY",
}
Instance_InstanceType_value = map[string]int32{
"INSTANCE_TYPE_UNSPECIFIED": 0,
"PRIMARY": 1,
"READ_POOL": 2,
"SECONDARY": 3,
}
)
func (x Instance_InstanceType) Enum() *Instance_InstanceType {
p := new(Instance_InstanceType)
*p = x
return p
}
func (x Instance_InstanceType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Instance_InstanceType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[10].Descriptor()
}
func (Instance_InstanceType) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[10]
}
func (x Instance_InstanceType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Instance_InstanceType.Descriptor instead.
func (Instance_InstanceType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{11, 1}
}
// The Availability type of an instance. Potential values:
//
// - ZONAL: The instance serves data from only one zone. Outages in that
// zone affect instance availability.
// - REGIONAL: The instance can serve data from more than one zone in a
// region (it is highly available).
type Instance_AvailabilityType int32
const (
// This is an unknown Availability type.
Instance_AVAILABILITY_TYPE_UNSPECIFIED Instance_AvailabilityType = 0
// Zonal available instance.
Instance_ZONAL Instance_AvailabilityType = 1
// Regional (or Highly) available instance.
Instance_REGIONAL Instance_AvailabilityType = 2
)
// Enum value maps for Instance_AvailabilityType.
var (
Instance_AvailabilityType_name = map[int32]string{
0: "AVAILABILITY_TYPE_UNSPECIFIED",
1: "ZONAL",
2: "REGIONAL",
}
Instance_AvailabilityType_value = map[string]int32{
"AVAILABILITY_TYPE_UNSPECIFIED": 0,
"ZONAL": 1,
"REGIONAL": 2,
}
)
func (x Instance_AvailabilityType) Enum() *Instance_AvailabilityType {
p := new(Instance_AvailabilityType)
*p = x
return p
}
func (x Instance_AvailabilityType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Instance_AvailabilityType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[11].Descriptor()
}
func (Instance_AvailabilityType) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[11]
}
func (x Instance_AvailabilityType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Instance_AvailabilityType.Descriptor instead.
func (Instance_AvailabilityType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{11, 2}
}
// Specifies the available modes of update.
type Instance_UpdatePolicy_Mode int32
const (
// Mode is unknown.
Instance_UpdatePolicy_MODE_UNSPECIFIED Instance_UpdatePolicy_Mode = 0
// Least disruptive way to apply the update.
Instance_UpdatePolicy_DEFAULT Instance_UpdatePolicy_Mode = 1
// Performs a forced update when applicable. This will be fast but may
// incur a downtime.
Instance_UpdatePolicy_FORCE_APPLY Instance_UpdatePolicy_Mode = 2
)
// Enum value maps for Instance_UpdatePolicy_Mode.
var (
Instance_UpdatePolicy_Mode_name = map[int32]string{
0: "MODE_UNSPECIFIED",
1: "DEFAULT",
2: "FORCE_APPLY",
}
Instance_UpdatePolicy_Mode_value = map[string]int32{
"MODE_UNSPECIFIED": 0,
"DEFAULT": 1,
"FORCE_APPLY": 2,
}
)
func (x Instance_UpdatePolicy_Mode) Enum() *Instance_UpdatePolicy_Mode {
p := new(Instance_UpdatePolicy_Mode)
*p = x
return p
}
func (x Instance_UpdatePolicy_Mode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Instance_UpdatePolicy_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[12].Descriptor()
}
func (Instance_UpdatePolicy_Mode) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[12]
}
func (x Instance_UpdatePolicy_Mode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Instance_UpdatePolicy_Mode.Descriptor instead.
func (Instance_UpdatePolicy_Mode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{11, 4, 0}
}
// Backup State
type Backup_State int32
const (
// The state of the backup is unknown.
Backup_STATE_UNSPECIFIED Backup_State = 0
// The backup is ready.
Backup_READY Backup_State = 1
// The backup is creating.
Backup_CREATING Backup_State = 2
// The backup failed.
Backup_FAILED Backup_State = 3
// The backup is being deleted.
Backup_DELETING Backup_State = 4
)
// Enum value maps for Backup_State.
var (
Backup_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "READY",
2: "CREATING",
3: "FAILED",
4: "DELETING",
}
Backup_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"READY": 1,
"CREATING": 2,
"FAILED": 3,
"DELETING": 4,
}
)
func (x Backup_State) Enum() *Backup_State {
p := new(Backup_State)
*p = x
return p
}
func (x Backup_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Backup_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[13].Descriptor()
}
func (Backup_State) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[13]
}
func (x Backup_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Backup_State.Descriptor instead.
func (Backup_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{13, 0}
}
// Backup Type
type Backup_Type int32
const (
// Backup Type is unknown.
Backup_TYPE_UNSPECIFIED Backup_Type = 0
// ON_DEMAND backups that were triggered by the customer (e.g., not
// AUTOMATED).
Backup_ON_DEMAND Backup_Type = 1
// AUTOMATED backups triggered by the automated backups scheduler pursuant
// to an automated backup policy.
Backup_AUTOMATED Backup_Type = 2
// CONTINUOUS backups triggered by the automated backups scheduler
// due to a continuous backup policy.
Backup_CONTINUOUS Backup_Type = 3
)
// Enum value maps for Backup_Type.
var (
Backup_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "ON_DEMAND",
2: "AUTOMATED",
3: "CONTINUOUS",
}
Backup_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"ON_DEMAND": 1,
"AUTOMATED": 2,
"CONTINUOUS": 3,
}
)
func (x Backup_Type) Enum() *Backup_Type {
p := new(Backup_Type)
*p = x
return p
}
func (x Backup_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Backup_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[14].Descriptor()
}
func (Backup_Type) Type() protoreflect.EnumType {
return &file_google_cloud_alloydb_v1alpha_resources_proto_enumTypes[14]
}
func (x Backup_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Backup_Type.Descriptor instead.
func (Backup_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_alloydb_v1alpha_resources_proto_rawDescGZIP(), []int{13, 1}
}
// ValueType describes the semantic type of the value that the flag accepts.
// Regardless of the ValueType, the Instance.database_flags field accepts the
// stringified version of the value, i.e. "20" or "3.14".
type SupportedDatabaseFlag_ValueType int32
const (
// This is an unknown flag type.
SupportedDatabaseFlag_VALUE_TYPE_UNSPECIFIED SupportedDatabaseFlag_ValueType = 0
// String type flag.
SupportedDatabaseFlag_STRING SupportedDatabaseFlag_ValueType = 1
// Integer type flag.
SupportedDatabaseFlag_INTEGER SupportedDatabaseFlag_ValueType = 2
// Float type flag.
SupportedDatabaseFlag_FLOAT SupportedDatabaseFlag_ValueType = 3
// Denotes that the flag does not accept any values.
SupportedDatabaseFlag_NONE SupportedDatabaseFlag_ValueType = 4
)
// Enum value maps for SupportedDatabaseFlag_ValueType.
var (
SupportedDatabaseFlag_ValueType_name = map[int32]string{
0: "VALUE_TYPE_UNSPECIFIED",
1: "STRING",
2: "INTEGER",
3: "FLOAT",
4: "NONE",
}
SupportedDatabaseFlag_ValueType_value = map[string]int32{
"VALUE_TYPE_UNSPECIFIED": 0,
"STRING": 1,
"INTEGER": 2,
"FLOAT": 3,
"NONE": 4,