-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
cloud_redis.pb.go
executable file
·4268 lines (3871 loc) · 190 KB
/
cloud_redis.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 2024 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.33.0
// protoc v4.25.3
// source: google/cloud/redis/v1beta1/cloud_redis.proto
package redispb
import (
context "context"
reflect "reflect"
sync "sync"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
_ "google.golang.org/genproto/googleapis/api/annotations"
dayofweek "google.golang.org/genproto/googleapis/type/dayofweek"
timeofday "google.golang.org/genproto/googleapis/type/timeofday"
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"
durationpb "google.golang.org/protobuf/types/known/durationpb"
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)
)
// Represents the different states of a Redis instance.
type Instance_State int32
const (
// Not set.
Instance_STATE_UNSPECIFIED Instance_State = 0
// Redis instance is being created.
Instance_CREATING Instance_State = 1
// Redis instance has been created and is fully usable.
Instance_READY Instance_State = 2
// Redis instance configuration is being updated. Certain kinds of updates
// may cause the instance to become unusable while the update is in
// progress.
Instance_UPDATING Instance_State = 3
// Redis instance is being deleted.
Instance_DELETING Instance_State = 4
// Redis instance is being repaired and may be unusable.
Instance_REPAIRING Instance_State = 5
// Maintenance is being performed on this Redis instance.
Instance_MAINTENANCE Instance_State = 6
// Redis instance is importing data (availability may be affected).
Instance_IMPORTING Instance_State = 8
// Redis instance is failing over (availability may be affected).
Instance_FAILING_OVER Instance_State = 10
)
// Enum value maps for Instance_State.
var (
Instance_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "READY",
3: "UPDATING",
4: "DELETING",
5: "REPAIRING",
6: "MAINTENANCE",
8: "IMPORTING",
10: "FAILING_OVER",
}
Instance_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"READY": 2,
"UPDATING": 3,
"DELETING": 4,
"REPAIRING": 5,
"MAINTENANCE": 6,
"IMPORTING": 8,
"FAILING_OVER": 10,
}
)
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_redis_v1beta1_cloud_redis_proto_enumTypes[0].Descriptor()
}
func (Instance_State) Type() protoreflect.EnumType {
return &file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[0]
}
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_redis_v1beta1_cloud_redis_proto_rawDescGZIP(), []int{1, 0}
}
// Available service tiers to choose from
type Instance_Tier int32
const (
// Not set.
Instance_TIER_UNSPECIFIED Instance_Tier = 0
// BASIC tier: standalone instance
Instance_BASIC Instance_Tier = 1
// STANDARD_HA tier: highly available primary/replica instances
Instance_STANDARD_HA Instance_Tier = 3
)
// Enum value maps for Instance_Tier.
var (
Instance_Tier_name = map[int32]string{
0: "TIER_UNSPECIFIED",
1: "BASIC",
3: "STANDARD_HA",
}
Instance_Tier_value = map[string]int32{
"TIER_UNSPECIFIED": 0,
"BASIC": 1,
"STANDARD_HA": 3,
}
)
func (x Instance_Tier) Enum() *Instance_Tier {
p := new(Instance_Tier)
*p = x
return p
}
func (x Instance_Tier) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Instance_Tier) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[1].Descriptor()
}
func (Instance_Tier) Type() protoreflect.EnumType {
return &file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[1]
}
func (x Instance_Tier) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Instance_Tier.Descriptor instead.
func (Instance_Tier) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_rawDescGZIP(), []int{1, 1}
}
// Available connection modes.
type Instance_ConnectMode int32
const (
// Not set.
Instance_CONNECT_MODE_UNSPECIFIED Instance_ConnectMode = 0
// Connect via direct peering to the Memorystore for Redis hosted service.
Instance_DIRECT_PEERING Instance_ConnectMode = 1
// Connect your Memorystore for Redis instance using Private Service
// Access. Private services access provides an IP address range for multiple
// Google Cloud services, including Memorystore.
Instance_PRIVATE_SERVICE_ACCESS Instance_ConnectMode = 2
)
// Enum value maps for Instance_ConnectMode.
var (
Instance_ConnectMode_name = map[int32]string{
0: "CONNECT_MODE_UNSPECIFIED",
1: "DIRECT_PEERING",
2: "PRIVATE_SERVICE_ACCESS",
}
Instance_ConnectMode_value = map[string]int32{
"CONNECT_MODE_UNSPECIFIED": 0,
"DIRECT_PEERING": 1,
"PRIVATE_SERVICE_ACCESS": 2,
}
)
func (x Instance_ConnectMode) Enum() *Instance_ConnectMode {
p := new(Instance_ConnectMode)
*p = x
return p
}
func (x Instance_ConnectMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Instance_ConnectMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[2].Descriptor()
}
func (Instance_ConnectMode) Type() protoreflect.EnumType {
return &file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[2]
}
func (x Instance_ConnectMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Instance_ConnectMode.Descriptor instead.
func (Instance_ConnectMode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_rawDescGZIP(), []int{1, 2}
}
// Available TLS modes.
type Instance_TransitEncryptionMode int32
const (
// Not set.
Instance_TRANSIT_ENCRYPTION_MODE_UNSPECIFIED Instance_TransitEncryptionMode = 0
// Client to Server traffic encryption enabled with server authentication.
Instance_SERVER_AUTHENTICATION Instance_TransitEncryptionMode = 1
// TLS is disabled for the instance.
Instance_DISABLED Instance_TransitEncryptionMode = 2
)
// Enum value maps for Instance_TransitEncryptionMode.
var (
Instance_TransitEncryptionMode_name = map[int32]string{
0: "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED",
1: "SERVER_AUTHENTICATION",
2: "DISABLED",
}
Instance_TransitEncryptionMode_value = map[string]int32{
"TRANSIT_ENCRYPTION_MODE_UNSPECIFIED": 0,
"SERVER_AUTHENTICATION": 1,
"DISABLED": 2,
}
)
func (x Instance_TransitEncryptionMode) Enum() *Instance_TransitEncryptionMode {
p := new(Instance_TransitEncryptionMode)
*p = x
return p
}
func (x Instance_TransitEncryptionMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Instance_TransitEncryptionMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[3].Descriptor()
}
func (Instance_TransitEncryptionMode) Type() protoreflect.EnumType {
return &file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[3]
}
func (x Instance_TransitEncryptionMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Instance_TransitEncryptionMode.Descriptor instead.
func (Instance_TransitEncryptionMode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_rawDescGZIP(), []int{1, 3}
}
// Read replicas mode.
type Instance_ReadReplicasMode int32
const (
// If not set, Memorystore Redis backend will default to
// READ_REPLICAS_DISABLED.
Instance_READ_REPLICAS_MODE_UNSPECIFIED Instance_ReadReplicasMode = 0
// If disabled, read endpoint will not be provided and the instance cannot
// scale up or down the number of replicas.
Instance_READ_REPLICAS_DISABLED Instance_ReadReplicasMode = 1
// If enabled, read endpoint will be provided and the instance can scale
// up and down the number of replicas. Not valid for basic tier.
Instance_READ_REPLICAS_ENABLED Instance_ReadReplicasMode = 2
)
// Enum value maps for Instance_ReadReplicasMode.
var (
Instance_ReadReplicasMode_name = map[int32]string{
0: "READ_REPLICAS_MODE_UNSPECIFIED",
1: "READ_REPLICAS_DISABLED",
2: "READ_REPLICAS_ENABLED",
}
Instance_ReadReplicasMode_value = map[string]int32{
"READ_REPLICAS_MODE_UNSPECIFIED": 0,
"READ_REPLICAS_DISABLED": 1,
"READ_REPLICAS_ENABLED": 2,
}
)
func (x Instance_ReadReplicasMode) Enum() *Instance_ReadReplicasMode {
p := new(Instance_ReadReplicasMode)
*p = x
return p
}
func (x Instance_ReadReplicasMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Instance_ReadReplicasMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[4].Descriptor()
}
func (Instance_ReadReplicasMode) Type() protoreflect.EnumType {
return &file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[4]
}
func (x Instance_ReadReplicasMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Instance_ReadReplicasMode.Descriptor instead.
func (Instance_ReadReplicasMode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_rawDescGZIP(), []int{1, 4}
}
// Available Persistence modes.
type PersistenceConfig_PersistenceMode int32
const (
// Not set.
PersistenceConfig_PERSISTENCE_MODE_UNSPECIFIED PersistenceConfig_PersistenceMode = 0
// Persistence is disabled for the instance,
// and any existing snapshots are deleted.
PersistenceConfig_DISABLED PersistenceConfig_PersistenceMode = 1
// RDB based Persistence is enabled.
PersistenceConfig_RDB PersistenceConfig_PersistenceMode = 2
)
// Enum value maps for PersistenceConfig_PersistenceMode.
var (
PersistenceConfig_PersistenceMode_name = map[int32]string{
0: "PERSISTENCE_MODE_UNSPECIFIED",
1: "DISABLED",
2: "RDB",
}
PersistenceConfig_PersistenceMode_value = map[string]int32{
"PERSISTENCE_MODE_UNSPECIFIED": 0,
"DISABLED": 1,
"RDB": 2,
}
)
func (x PersistenceConfig_PersistenceMode) Enum() *PersistenceConfig_PersistenceMode {
p := new(PersistenceConfig_PersistenceMode)
*p = x
return p
}
func (x PersistenceConfig_PersistenceMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PersistenceConfig_PersistenceMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[5].Descriptor()
}
func (PersistenceConfig_PersistenceMode) Type() protoreflect.EnumType {
return &file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[5]
}
func (x PersistenceConfig_PersistenceMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PersistenceConfig_PersistenceMode.Descriptor instead.
func (PersistenceConfig_PersistenceMode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_rawDescGZIP(), []int{2, 0}
}
// Available snapshot periods for scheduling.
type PersistenceConfig_SnapshotPeriod int32
const (
// Not set.
PersistenceConfig_SNAPSHOT_PERIOD_UNSPECIFIED PersistenceConfig_SnapshotPeriod = 0
// Snapshot every 1 hour.
PersistenceConfig_ONE_HOUR PersistenceConfig_SnapshotPeriod = 3
// Snapshot every 6 hours.
PersistenceConfig_SIX_HOURS PersistenceConfig_SnapshotPeriod = 4
// Snapshot every 12 hours.
PersistenceConfig_TWELVE_HOURS PersistenceConfig_SnapshotPeriod = 5
// Snapshot every 24 hours.
PersistenceConfig_TWENTY_FOUR_HOURS PersistenceConfig_SnapshotPeriod = 6
)
// Enum value maps for PersistenceConfig_SnapshotPeriod.
var (
PersistenceConfig_SnapshotPeriod_name = map[int32]string{
0: "SNAPSHOT_PERIOD_UNSPECIFIED",
3: "ONE_HOUR",
4: "SIX_HOURS",
5: "TWELVE_HOURS",
6: "TWENTY_FOUR_HOURS",
}
PersistenceConfig_SnapshotPeriod_value = map[string]int32{
"SNAPSHOT_PERIOD_UNSPECIFIED": 0,
"ONE_HOUR": 3,
"SIX_HOURS": 4,
"TWELVE_HOURS": 5,
"TWENTY_FOUR_HOURS": 6,
}
)
func (x PersistenceConfig_SnapshotPeriod) Enum() *PersistenceConfig_SnapshotPeriod {
p := new(PersistenceConfig_SnapshotPeriod)
*p = x
return p
}
func (x PersistenceConfig_SnapshotPeriod) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PersistenceConfig_SnapshotPeriod) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[6].Descriptor()
}
func (PersistenceConfig_SnapshotPeriod) Type() protoreflect.EnumType {
return &file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[6]
}
func (x PersistenceConfig_SnapshotPeriod) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PersistenceConfig_SnapshotPeriod.Descriptor instead.
func (PersistenceConfig_SnapshotPeriod) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_rawDescGZIP(), []int{2, 1}
}
// Reschedule options.
type RescheduleMaintenanceRequest_RescheduleType int32
const (
// Not set.
RescheduleMaintenanceRequest_RESCHEDULE_TYPE_UNSPECIFIED RescheduleMaintenanceRequest_RescheduleType = 0
// If the user wants to schedule the maintenance to happen now.
RescheduleMaintenanceRequest_IMMEDIATE RescheduleMaintenanceRequest_RescheduleType = 1
// If the user wants to use the existing maintenance policy to find the
// next available window.
RescheduleMaintenanceRequest_NEXT_AVAILABLE_WINDOW RescheduleMaintenanceRequest_RescheduleType = 2
// If the user wants to reschedule the maintenance to a specific time.
RescheduleMaintenanceRequest_SPECIFIC_TIME RescheduleMaintenanceRequest_RescheduleType = 3
)
// Enum value maps for RescheduleMaintenanceRequest_RescheduleType.
var (
RescheduleMaintenanceRequest_RescheduleType_name = map[int32]string{
0: "RESCHEDULE_TYPE_UNSPECIFIED",
1: "IMMEDIATE",
2: "NEXT_AVAILABLE_WINDOW",
3: "SPECIFIC_TIME",
}
RescheduleMaintenanceRequest_RescheduleType_value = map[string]int32{
"RESCHEDULE_TYPE_UNSPECIFIED": 0,
"IMMEDIATE": 1,
"NEXT_AVAILABLE_WINDOW": 2,
"SPECIFIC_TIME": 3,
}
)
func (x RescheduleMaintenanceRequest_RescheduleType) Enum() *RescheduleMaintenanceRequest_RescheduleType {
p := new(RescheduleMaintenanceRequest_RescheduleType)
*p = x
return p
}
func (x RescheduleMaintenanceRequest_RescheduleType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RescheduleMaintenanceRequest_RescheduleType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[7].Descriptor()
}
func (RescheduleMaintenanceRequest_RescheduleType) Type() protoreflect.EnumType {
return &file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[7]
}
func (x RescheduleMaintenanceRequest_RescheduleType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RescheduleMaintenanceRequest_RescheduleType.Descriptor instead.
func (RescheduleMaintenanceRequest_RescheduleType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_rawDescGZIP(), []int{3, 0}
}
// Specifies different modes of operation in relation to the data retention.
type FailoverInstanceRequest_DataProtectionMode int32
const (
// Defaults to LIMITED_DATA_LOSS if a data protection mode is not
// specified.
FailoverInstanceRequest_DATA_PROTECTION_MODE_UNSPECIFIED FailoverInstanceRequest_DataProtectionMode = 0
// Instance failover will be protected with data loss control. More
// specifically, the failover will only be performed if the current
// replication offset diff between primary and replica is under a certain
// threshold.
FailoverInstanceRequest_LIMITED_DATA_LOSS FailoverInstanceRequest_DataProtectionMode = 1
// Instance failover will be performed without data loss control.
FailoverInstanceRequest_FORCE_DATA_LOSS FailoverInstanceRequest_DataProtectionMode = 2
)
// Enum value maps for FailoverInstanceRequest_DataProtectionMode.
var (
FailoverInstanceRequest_DataProtectionMode_name = map[int32]string{
0: "DATA_PROTECTION_MODE_UNSPECIFIED",
1: "LIMITED_DATA_LOSS",
2: "FORCE_DATA_LOSS",
}
FailoverInstanceRequest_DataProtectionMode_value = map[string]int32{
"DATA_PROTECTION_MODE_UNSPECIFIED": 0,
"LIMITED_DATA_LOSS": 1,
"FORCE_DATA_LOSS": 2,
}
)
func (x FailoverInstanceRequest_DataProtectionMode) Enum() *FailoverInstanceRequest_DataProtectionMode {
p := new(FailoverInstanceRequest_DataProtectionMode)
*p = x
return p
}
func (x FailoverInstanceRequest_DataProtectionMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FailoverInstanceRequest_DataProtectionMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[8].Descriptor()
}
func (FailoverInstanceRequest_DataProtectionMode) Type() protoreflect.EnumType {
return &file_google_cloud_redis_v1beta1_cloud_redis_proto_enumTypes[8]
}
func (x FailoverInstanceRequest_DataProtectionMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FailoverInstanceRequest_DataProtectionMode.Descriptor instead.
func (FailoverInstanceRequest_DataProtectionMode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_rawDescGZIP(), []int{22, 0}
}
// Node specific properties.
type NodeInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. Node identifying string. e.g. 'node-0', 'node-1'
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Output only. Location of the node.
Zone string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"`
}
func (x *NodeInfo) Reset() {
*x = NodeInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_redis_v1beta1_cloud_redis_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NodeInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NodeInfo) ProtoMessage() {}
func (x *NodeInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_redis_v1beta1_cloud_redis_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 NodeInfo.ProtoReflect.Descriptor instead.
func (*NodeInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_rawDescGZIP(), []int{0}
}
func (x *NodeInfo) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *NodeInfo) GetZone() string {
if x != nil {
return x.Zone
}
return ""
}
// A Memorystore for Redis instance.
type Instance struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Unique name of the resource in this scope including project and
// location using the form:
//
// `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
//
// Note: Redis instances are managed and addressed at regional level so
// location_id here refers to a GCP region; however, users may choose which
// specific zone (or collection of zones for cross-zone instances) an instance
// should be provisioned in. Refer to [location_id][google.cloud.redis.v1beta1.Instance.location_id] and
// [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] fields for more details.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// An arbitrary and optional user-provided name for the instance.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Resource labels to represent user provided metadata
Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. The zone where the instance will be provisioned. If not provided,
// the service will choose a zone from the specified region for the instance.
// For standard tier, additional nodes will be added across multiple zones for
// protection against zonal failures. If specified, at least one node will be
// provisioned in this zone.
LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
// Optional. If specified, at least one node will be provisioned in this zone
// in addition to the zone specified in location_id. Only applicable to
// standard tier. If provided, it must be a different zone from the one
// provided in [location_id]. Additional nodes beyond the first 2 will be
// placed in zones selected by the service.
AlternativeLocationId string `protobuf:"bytes,5,opt,name=alternative_location_id,json=alternativeLocationId,proto3" json:"alternative_location_id,omitempty"`
// Optional. The version of Redis software.
// If not provided, latest supported version will be used. Currently, the
// supported values are:
//
// - `REDIS_3_2` for Redis 3.2 compatibility
// - `REDIS_4_0` for Redis 4.0 compatibility (default)
// - `REDIS_5_0` for Redis 5.0 compatibility
// - `REDIS_6_X` for Redis 6.x compatibility
RedisVersion string `protobuf:"bytes,7,opt,name=redis_version,json=redisVersion,proto3" json:"redis_version,omitempty"`
// Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
// that are reserved for this instance. Range must
// be unique and non-overlapping with existing subnets in an authorized
// network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP
// address ranges associated with this private service access connection.
// If not provided, the service will choose an unused /29 block, for
// example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED
// the default block size is /28.
ReservedIpRange string `protobuf:"bytes,9,opt,name=reserved_ip_range,json=reservedIpRange,proto3" json:"reserved_ip_range,omitempty"`
// Optional. Additional IP range for node placement. Required when enabling read
// replicas on an existing instance. For DIRECT_PEERING mode value must be a
// CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode value
// must be the name of an allocated address range associated with the private
// service access connection, or "auto".
SecondaryIpRange string `protobuf:"bytes,30,opt,name=secondary_ip_range,json=secondaryIpRange,proto3" json:"secondary_ip_range,omitempty"`
// Output only. Hostname or IP address of the exposed Redis endpoint used by
//
// clients to connect to the service.
Host string `protobuf:"bytes,10,opt,name=host,proto3" json:"host,omitempty"`
// Output only. The port number of the exposed Redis endpoint.
Port int32 `protobuf:"varint,11,opt,name=port,proto3" json:"port,omitempty"`
// Output only. The current zone where the Redis primary node is located. In
// basic tier, this will always be the same as [location_id]. In
// standard tier, this can be the zone of any node in the instance.
CurrentLocationId string `protobuf:"bytes,12,opt,name=current_location_id,json=currentLocationId,proto3" json:"current_location_id,omitempty"`
// Output only. The time the instance was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The current state of this instance.
State Instance_State `protobuf:"varint,14,opt,name=state,proto3,enum=google.cloud.redis.v1beta1.Instance_State" json:"state,omitempty"`
// Output only. Additional information about the current status of this
// instance, if available.
StatusMessage string `protobuf:"bytes,15,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Optional. Redis configuration parameters, according to
// http://redis.io/topics/config. Currently, the only supported parameters
// are:
//
// Redis version 3.2 and newer:
//
// * maxmemory-policy
// * notify-keyspace-events
//
// Redis version 4.0 and newer:
//
// * activedefrag
// * lfu-decay-time
// * lfu-log-factor
// * maxmemory-gb
//
// Redis version 5.0 and newer:
//
// * stream-node-max-bytes
// * stream-node-max-entries
RedisConfigs map[string]string `protobuf:"bytes,16,rep,name=redis_configs,json=redisConfigs,proto3" json:"redis_configs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Required. The service tier of the instance.
Tier Instance_Tier `protobuf:"varint,17,opt,name=tier,proto3,enum=google.cloud.redis.v1beta1.Instance_Tier" json:"tier,omitempty"`
// Required. Redis memory size in GiB.
MemorySizeGb int32 `protobuf:"varint,18,opt,name=memory_size_gb,json=memorySizeGb,proto3" json:"memory_size_gb,omitempty"`
// Optional. The full name of the Google Compute Engine
// [network](https://cloud.google.com/vpc/docs/vpc) to which the
// instance is connected. If left unspecified, the `default` network
// will be used.
AuthorizedNetwork string `protobuf:"bytes,20,opt,name=authorized_network,json=authorizedNetwork,proto3" json:"authorized_network,omitempty"`
// Output only. Cloud IAM identity used by import / export operations to
// transfer data to/from Cloud Storage. Format is
// "serviceAccount:<service_account_email>". The value may change over time
// for a given instance so should be checked before each import/export
// operation.
PersistenceIamIdentity string `protobuf:"bytes,21,opt,name=persistence_iam_identity,json=persistenceIamIdentity,proto3" json:"persistence_iam_identity,omitempty"`
// Optional. The network connect mode of the Redis instance.
// If not provided, the connect mode defaults to DIRECT_PEERING.
ConnectMode Instance_ConnectMode `protobuf:"varint,22,opt,name=connect_mode,json=connectMode,proto3,enum=google.cloud.redis.v1beta1.Instance_ConnectMode" json:"connect_mode,omitempty"`
// Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
// "true" AUTH is enabled on the instance. Default value is "false" meaning
// AUTH is disabled.
AuthEnabled bool `protobuf:"varint,23,opt,name=auth_enabled,json=authEnabled,proto3" json:"auth_enabled,omitempty"`
// Output only. List of server CA certificates for the instance.
ServerCaCerts []*TlsCertificate `protobuf:"bytes,25,rep,name=server_ca_certs,json=serverCaCerts,proto3" json:"server_ca_certs,omitempty"`
// Optional. The TLS mode of the Redis instance.
// If not provided, TLS is disabled for the instance.
TransitEncryptionMode Instance_TransitEncryptionMode `protobuf:"varint,26,opt,name=transit_encryption_mode,json=transitEncryptionMode,proto3,enum=google.cloud.redis.v1beta1.Instance_TransitEncryptionMode" json:"transit_encryption_mode,omitempty"`
// Optional. The maintenance policy for the instance. If not provided,
// maintenance events can be performed at any time.
MaintenancePolicy *MaintenancePolicy `protobuf:"bytes,27,opt,name=maintenance_policy,json=maintenancePolicy,proto3" json:"maintenance_policy,omitempty"`
// Output only. Date and time of upcoming maintenance events which have been
// scheduled.
MaintenanceSchedule *MaintenanceSchedule `protobuf:"bytes,28,opt,name=maintenance_schedule,json=maintenanceSchedule,proto3" json:"maintenance_schedule,omitempty"`
// Optional. The number of replica nodes. The valid range for the Standard Tier with
// read replicas enabled is [1-5] and defaults to 2. If read replicas are not
// enabled for a Standard Tier instance, the only valid value is 1 and the
// default is 1. The valid value for basic tier is 0 and the default is also
// 0.
ReplicaCount int32 `protobuf:"varint,31,opt,name=replica_count,json=replicaCount,proto3" json:"replica_count,omitempty"`
// Output only. Info per node.
Nodes []*NodeInfo `protobuf:"bytes,32,rep,name=nodes,proto3" json:"nodes,omitempty"`
// Output only. Hostname or IP address of the exposed readonly Redis
// endpoint. Standard tier only. Targets all healthy replica nodes in
// instance. Replication is asynchronous and replica nodes will exhibit some
// lag behind the primary. Write requests must target 'host'.
ReadEndpoint string `protobuf:"bytes,33,opt,name=read_endpoint,json=readEndpoint,proto3" json:"read_endpoint,omitempty"`
// Output only. The port number of the exposed readonly redis
// endpoint. Standard tier only. Write requests should target 'port'.
ReadEndpointPort int32 `protobuf:"varint,34,opt,name=read_endpoint_port,json=readEndpointPort,proto3" json:"read_endpoint_port,omitempty"`
// Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
ReadReplicasMode Instance_ReadReplicasMode `protobuf:"varint,35,opt,name=read_replicas_mode,json=readReplicasMode,proto3,enum=google.cloud.redis.v1beta1.Instance_ReadReplicasMode" json:"read_replicas_mode,omitempty"`
// Optional. Persistence configuration parameters
PersistenceConfig *PersistenceConfig `protobuf:"bytes,37,opt,name=persistence_config,json=persistenceConfig,proto3" json:"persistence_config,omitempty"`
}
func (x *Instance) Reset() {
*x = Instance{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_redis_v1beta1_cloud_redis_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Instance) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Instance) ProtoMessage() {}
func (x *Instance) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_redis_v1beta1_cloud_redis_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 Instance.ProtoReflect.Descriptor instead.
func (*Instance) Descriptor() ([]byte, []int) {
return file_google_cloud_redis_v1beta1_cloud_redis_proto_rawDescGZIP(), []int{1}
}
func (x *Instance) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Instance) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *Instance) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Instance) GetLocationId() string {
if x != nil {
return x.LocationId
}
return ""
}
func (x *Instance) GetAlternativeLocationId() string {
if x != nil {
return x.AlternativeLocationId
}
return ""
}
func (x *Instance) GetRedisVersion() string {
if x != nil {
return x.RedisVersion
}
return ""
}
func (x *Instance) GetReservedIpRange() string {
if x != nil {
return x.ReservedIpRange
}
return ""
}
func (x *Instance) GetSecondaryIpRange() string {
if x != nil {
return x.SecondaryIpRange
}
return ""
}
func (x *Instance) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *Instance) GetPort() int32 {
if x != nil {
return x.Port
}
return 0
}
func (x *Instance) GetCurrentLocationId() string {
if x != nil {
return x.CurrentLocationId
}
return ""
}
func (x *Instance) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Instance) GetState() Instance_State {
if x != nil {
return x.State
}
return Instance_STATE_UNSPECIFIED
}
func (x *Instance) GetStatusMessage() string {
if x != nil {
return x.StatusMessage
}
return ""
}
func (x *Instance) GetRedisConfigs() map[string]string {
if x != nil {
return x.RedisConfigs
}
return nil
}
func (x *Instance) GetTier() Instance_Tier {
if x != nil {
return x.Tier
}
return Instance_TIER_UNSPECIFIED
}
func (x *Instance) GetMemorySizeGb() int32 {
if x != nil {
return x.MemorySizeGb
}
return 0
}
func (x *Instance) GetAuthorizedNetwork() string {
if x != nil {
return x.AuthorizedNetwork
}
return ""
}
func (x *Instance) GetPersistenceIamIdentity() string {
if x != nil {
return x.PersistenceIamIdentity
}
return ""
}
func (x *Instance) GetConnectMode() Instance_ConnectMode {
if x != nil {
return x.ConnectMode
}
return Instance_CONNECT_MODE_UNSPECIFIED
}
func (x *Instance) GetAuthEnabled() bool {
if x != nil {
return x.AuthEnabled
}
return false
}
func (x *Instance) GetServerCaCerts() []*TlsCertificate {
if x != nil {
return x.ServerCaCerts
}
return nil
}
func (x *Instance) GetTransitEncryptionMode() Instance_TransitEncryptionMode {
if x != nil {
return x.TransitEncryptionMode
}
return Instance_TRANSIT_ENCRYPTION_MODE_UNSPECIFIED
}
func (x *Instance) GetMaintenancePolicy() *MaintenancePolicy {
if x != nil {
return x.MaintenancePolicy
}
return nil
}
func (x *Instance) GetMaintenanceSchedule() *MaintenanceSchedule {
if x != nil {
return x.MaintenanceSchedule
}
return nil
}
func (x *Instance) GetReplicaCount() int32 {
if x != nil {
return x.ReplicaCount
}
return 0
}
func (x *Instance) GetNodes() []*NodeInfo {
if x != nil {
return x.Nodes
}