1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/redis/v1beta1/cloud_redis.proto
3
4package redis
5
6import (
7	context "context"
8	fmt "fmt"
9	math "math"
10
11	proto "github.com/golang/protobuf/proto"
12	timestamp "github.com/golang/protobuf/ptypes/timestamp"
13	_ "google.golang.org/genproto/googleapis/api/annotations"
14	longrunning "google.golang.org/genproto/googleapis/longrunning"
15	field_mask "google.golang.org/genproto/protobuf/field_mask"
16	grpc "google.golang.org/grpc"
17	codes "google.golang.org/grpc/codes"
18	status "google.golang.org/grpc/status"
19)
20
21// Reference imports to suppress errors if they are not otherwise used.
22var _ = proto.Marshal
23var _ = fmt.Errorf
24var _ = math.Inf
25
26// This is a compile-time assertion to ensure that this generated file
27// is compatible with the proto package it is being compiled against.
28// A compilation error at this line likely means your copy of the
29// proto package needs to be updated.
30const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
31
32// Represents the different states of a Redis instance.
33type Instance_State int32
34
35const (
36	// Not set.
37	Instance_STATE_UNSPECIFIED Instance_State = 0
38	// Redis instance is being created.
39	Instance_CREATING Instance_State = 1
40	// Redis instance has been created and is fully usable.
41	Instance_READY Instance_State = 2
42	// Redis instance configuration is being updated. Certain kinds of updates
43	// may cause the instance to become unusable while the update is in
44	// progress.
45	Instance_UPDATING Instance_State = 3
46	// Redis instance is being deleted.
47	Instance_DELETING Instance_State = 4
48	// Redis instance is being repaired and may be unusable.
49	Instance_REPAIRING Instance_State = 5
50	// Maintenance is being performed on this Redis instance.
51	Instance_MAINTENANCE Instance_State = 6
52	// Redis instance is importing data (availability may be affected).
53	Instance_IMPORTING Instance_State = 8
54	// Redis instance is failing over (availability may be affected).
55	Instance_FAILING_OVER Instance_State = 10
56)
57
58var Instance_State_name = map[int32]string{
59	0:  "STATE_UNSPECIFIED",
60	1:  "CREATING",
61	2:  "READY",
62	3:  "UPDATING",
63	4:  "DELETING",
64	5:  "REPAIRING",
65	6:  "MAINTENANCE",
66	8:  "IMPORTING",
67	10: "FAILING_OVER",
68}
69
70var Instance_State_value = map[string]int32{
71	"STATE_UNSPECIFIED": 0,
72	"CREATING":          1,
73	"READY":             2,
74	"UPDATING":          3,
75	"DELETING":          4,
76	"REPAIRING":         5,
77	"MAINTENANCE":       6,
78	"IMPORTING":         8,
79	"FAILING_OVER":      10,
80}
81
82func (x Instance_State) String() string {
83	return proto.EnumName(Instance_State_name, int32(x))
84}
85
86func (Instance_State) EnumDescriptor() ([]byte, []int) {
87	return fileDescriptor_522f9b2de914b9c5, []int{0, 0}
88}
89
90// Available service tiers to choose from
91type Instance_Tier int32
92
93const (
94	// Not set.
95	Instance_TIER_UNSPECIFIED Instance_Tier = 0
96	// BASIC tier: standalone instance
97	Instance_BASIC Instance_Tier = 1
98	// STANDARD_HA tier: highly available primary/replica instances
99	Instance_STANDARD_HA Instance_Tier = 3
100)
101
102var Instance_Tier_name = map[int32]string{
103	0: "TIER_UNSPECIFIED",
104	1: "BASIC",
105	3: "STANDARD_HA",
106}
107
108var Instance_Tier_value = map[string]int32{
109	"TIER_UNSPECIFIED": 0,
110	"BASIC":            1,
111	"STANDARD_HA":      3,
112}
113
114func (x Instance_Tier) String() string {
115	return proto.EnumName(Instance_Tier_name, int32(x))
116}
117
118func (Instance_Tier) EnumDescriptor() ([]byte, []int) {
119	return fileDescriptor_522f9b2de914b9c5, []int{0, 1}
120}
121
122// Available connection modes.
123type Instance_ConnectMode int32
124
125const (
126	// Not set.
127	Instance_CONNECT_MODE_UNSPECIFIED Instance_ConnectMode = 0
128	// Connect via directly peering with memorystore redis hosted service.
129	Instance_DIRECT_PEERING Instance_ConnectMode = 1
130	// Connect with google via private service access and share connection
131	// across google managed services.
132	Instance_PRIVATE_SERVICE_ACCESS Instance_ConnectMode = 2
133)
134
135var Instance_ConnectMode_name = map[int32]string{
136	0: "CONNECT_MODE_UNSPECIFIED",
137	1: "DIRECT_PEERING",
138	2: "PRIVATE_SERVICE_ACCESS",
139}
140
141var Instance_ConnectMode_value = map[string]int32{
142	"CONNECT_MODE_UNSPECIFIED": 0,
143	"DIRECT_PEERING":           1,
144	"PRIVATE_SERVICE_ACCESS":   2,
145}
146
147func (x Instance_ConnectMode) String() string {
148	return proto.EnumName(Instance_ConnectMode_name, int32(x))
149}
150
151func (Instance_ConnectMode) EnumDescriptor() ([]byte, []int) {
152	return fileDescriptor_522f9b2de914b9c5, []int{0, 2}
153}
154
155// Specifies different modes of operation in relation to the data retention.
156type FailoverInstanceRequest_DataProtectionMode int32
157
158const (
159	// Defaults to LIMITED_DATA_LOSS if a data protection mode is not
160	// specified.
161	FailoverInstanceRequest_DATA_PROTECTION_MODE_UNSPECIFIED FailoverInstanceRequest_DataProtectionMode = 0
162	// Instance failover will be protected with data loss control. More
163	// specifically, the failover will only be performed if the current
164	// replication offset diff between master and replica is under a certain
165	// threshold.
166	FailoverInstanceRequest_LIMITED_DATA_LOSS FailoverInstanceRequest_DataProtectionMode = 1
167	// Instance failover will be performed without data loss control.
168	FailoverInstanceRequest_FORCE_DATA_LOSS FailoverInstanceRequest_DataProtectionMode = 2
169)
170
171var FailoverInstanceRequest_DataProtectionMode_name = map[int32]string{
172	0: "DATA_PROTECTION_MODE_UNSPECIFIED",
173	1: "LIMITED_DATA_LOSS",
174	2: "FORCE_DATA_LOSS",
175}
176
177var FailoverInstanceRequest_DataProtectionMode_value = map[string]int32{
178	"DATA_PROTECTION_MODE_UNSPECIFIED": 0,
179	"LIMITED_DATA_LOSS":                1,
180	"FORCE_DATA_LOSS":                  2,
181}
182
183func (x FailoverInstanceRequest_DataProtectionMode) String() string {
184	return proto.EnumName(FailoverInstanceRequest_DataProtectionMode_name, int32(x))
185}
186
187func (FailoverInstanceRequest_DataProtectionMode) EnumDescriptor() ([]byte, []int) {
188	return fileDescriptor_522f9b2de914b9c5, []int{14, 0}
189}
190
191// A Google Cloud Redis instance.
192type Instance struct {
193	// Required. Unique name of the resource in this scope including project and
194	// location using the form:
195	//     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
196	//
197	// Note: Redis instances are managed and addressed at regional level so
198	// location_id here refers to a GCP region; however, users may choose which
199	// specific zone (or collection of zones for cross-zone instances) an instance
200	// should be provisioned in. Refer to [location_id][google.cloud.redis.v1beta1.Instance.location_id] and
201	// [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] fields for more details.
202	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
203	// An arbitrary and optional user-provided name for the instance.
204	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
205	// Resource labels to represent user provided metadata
206	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"`
207	// Optional. The zone where the instance will be provisioned. If not provided,
208	// the service will choose a zone for the instance. For STANDARD_HA tier,
209	// instances will be created across two zones for protection against zonal
210	// failures. If [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] is also provided, it must be
211	// different from [location_id][google.cloud.redis.v1beta1.Instance.location_id].
212	LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
213	// Optional. Only applicable to STANDARD_HA tier which protects the instance
214	// against zonal failures by provisioning it across two zones. If provided, it
215	// must be a different zone from the one provided in [location_id][google.cloud.redis.v1beta1.Instance.location_id].
216	AlternativeLocationId string `protobuf:"bytes,5,opt,name=alternative_location_id,json=alternativeLocationId,proto3" json:"alternative_location_id,omitempty"`
217	// Optional. The version of Redis software.
218	// If not provided, latest supported version will be used. Currently, the
219	// supported values are:
220	//
221	//  *   `REDIS_3_2` for Redis 3.2 compatibility
222	//  *   `REDIS_4_0` for Redis 4.0 compatibility (default)
223	//  *   `REDIS_5_0` for Redis 5.0 compatibility
224	RedisVersion string `protobuf:"bytes,7,opt,name=redis_version,json=redisVersion,proto3" json:"redis_version,omitempty"`
225	// Optional. The CIDR range of internal addresses that are reserved for this
226	// instance. If not provided, the service will choose an unused /29 block,
227	// for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
228	// and non-overlapping with existing subnets in an authorized network.
229	ReservedIpRange string `protobuf:"bytes,9,opt,name=reserved_ip_range,json=reservedIpRange,proto3" json:"reserved_ip_range,omitempty"`
230	// Output only. Hostname or IP address of the exposed Redis endpoint used by
231	// clients to connect to the service.
232	Host string `protobuf:"bytes,10,opt,name=host,proto3" json:"host,omitempty"`
233	// Output only. The port number of the exposed Redis endpoint.
234	Port int32 `protobuf:"varint,11,opt,name=port,proto3" json:"port,omitempty"`
235	// Output only. The current zone where the Redis endpoint is placed. For Basic
236	// Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1beta1.Instance.location_id]
237	// provided by the user at creation time. For Standard Tier instances,
238	// this can be either [location_id][google.cloud.redis.v1beta1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] and can
239	// change after a failover event.
240	CurrentLocationId string `protobuf:"bytes,12,opt,name=current_location_id,json=currentLocationId,proto3" json:"current_location_id,omitempty"`
241	// Output only. The time the instance was created.
242	CreateTime *timestamp.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
243	// Output only. The current state of this instance.
244	State Instance_State `protobuf:"varint,14,opt,name=state,proto3,enum=google.cloud.redis.v1beta1.Instance_State" json:"state,omitempty"`
245	// Output only. Additional information about the current status of this
246	// instance, if available.
247	StatusMessage string `protobuf:"bytes,15,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
248	// Optional. Redis configuration parameters, according to
249	// http://redis.io/topics/config. Currently, the only supported parameters
250	// are:
251	//
252	//  Redis version 3.2 and newer:
253	//
254	//  *   maxmemory-policy
255	//  *   notify-keyspace-events
256	//
257	//  Redis version 4.0 and newer:
258	//
259	//  *   activedefrag
260	//  *   lfu-decay-time
261	//  *   lfu-log-factor
262	//  *   maxmemory-gb
263	//
264	//  Redis version 5.0 and newer:
265	//
266	//  *   stream-node-max-bytes
267	//  *   stream-node-max-entries
268	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"`
269	// Required. The service tier of the instance.
270	Tier Instance_Tier `protobuf:"varint,17,opt,name=tier,proto3,enum=google.cloud.redis.v1beta1.Instance_Tier" json:"tier,omitempty"`
271	// Required. Redis memory size in GiB.
272	MemorySizeGb int32 `protobuf:"varint,18,opt,name=memory_size_gb,json=memorySizeGb,proto3" json:"memory_size_gb,omitempty"`
273	// Optional. The full name of the Google Compute Engine
274	// [network](/compute/docs/networks-and-firewalls#networks) to which the
275	// instance is connected. If left unspecified, the `default` network
276	// will be used.
277	AuthorizedNetwork string `protobuf:"bytes,20,opt,name=authorized_network,json=authorizedNetwork,proto3" json:"authorized_network,omitempty"`
278	// Output only. Cloud IAM identity used by import / export operations to
279	// transfer data to/from Cloud Storage. Format is
280	// "serviceAccount:<service_account_email>". The value may change over time
281	// for a given instance so should be checked before each import/export
282	// operation.
283	PersistenceIamIdentity string `protobuf:"bytes,21,opt,name=persistence_iam_identity,json=persistenceIamIdentity,proto3" json:"persistence_iam_identity,omitempty"`
284	// Optional. The connect mode of Redis instance.
285	// If not provided, default one will be used.
286	// Current default: DIRECT_PEERING.
287	ConnectMode          Instance_ConnectMode `protobuf:"varint,22,opt,name=connect_mode,json=connectMode,proto3,enum=google.cloud.redis.v1beta1.Instance_ConnectMode" json:"connect_mode,omitempty"`
288	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
289	XXX_unrecognized     []byte               `json:"-"`
290	XXX_sizecache        int32                `json:"-"`
291}
292
293func (m *Instance) Reset()         { *m = Instance{} }
294func (m *Instance) String() string { return proto.CompactTextString(m) }
295func (*Instance) ProtoMessage()    {}
296func (*Instance) Descriptor() ([]byte, []int) {
297	return fileDescriptor_522f9b2de914b9c5, []int{0}
298}
299
300func (m *Instance) XXX_Unmarshal(b []byte) error {
301	return xxx_messageInfo_Instance.Unmarshal(m, b)
302}
303func (m *Instance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
304	return xxx_messageInfo_Instance.Marshal(b, m, deterministic)
305}
306func (m *Instance) XXX_Merge(src proto.Message) {
307	xxx_messageInfo_Instance.Merge(m, src)
308}
309func (m *Instance) XXX_Size() int {
310	return xxx_messageInfo_Instance.Size(m)
311}
312func (m *Instance) XXX_DiscardUnknown() {
313	xxx_messageInfo_Instance.DiscardUnknown(m)
314}
315
316var xxx_messageInfo_Instance proto.InternalMessageInfo
317
318func (m *Instance) GetName() string {
319	if m != nil {
320		return m.Name
321	}
322	return ""
323}
324
325func (m *Instance) GetDisplayName() string {
326	if m != nil {
327		return m.DisplayName
328	}
329	return ""
330}
331
332func (m *Instance) GetLabels() map[string]string {
333	if m != nil {
334		return m.Labels
335	}
336	return nil
337}
338
339func (m *Instance) GetLocationId() string {
340	if m != nil {
341		return m.LocationId
342	}
343	return ""
344}
345
346func (m *Instance) GetAlternativeLocationId() string {
347	if m != nil {
348		return m.AlternativeLocationId
349	}
350	return ""
351}
352
353func (m *Instance) GetRedisVersion() string {
354	if m != nil {
355		return m.RedisVersion
356	}
357	return ""
358}
359
360func (m *Instance) GetReservedIpRange() string {
361	if m != nil {
362		return m.ReservedIpRange
363	}
364	return ""
365}
366
367func (m *Instance) GetHost() string {
368	if m != nil {
369		return m.Host
370	}
371	return ""
372}
373
374func (m *Instance) GetPort() int32 {
375	if m != nil {
376		return m.Port
377	}
378	return 0
379}
380
381func (m *Instance) GetCurrentLocationId() string {
382	if m != nil {
383		return m.CurrentLocationId
384	}
385	return ""
386}
387
388func (m *Instance) GetCreateTime() *timestamp.Timestamp {
389	if m != nil {
390		return m.CreateTime
391	}
392	return nil
393}
394
395func (m *Instance) GetState() Instance_State {
396	if m != nil {
397		return m.State
398	}
399	return Instance_STATE_UNSPECIFIED
400}
401
402func (m *Instance) GetStatusMessage() string {
403	if m != nil {
404		return m.StatusMessage
405	}
406	return ""
407}
408
409func (m *Instance) GetRedisConfigs() map[string]string {
410	if m != nil {
411		return m.RedisConfigs
412	}
413	return nil
414}
415
416func (m *Instance) GetTier() Instance_Tier {
417	if m != nil {
418		return m.Tier
419	}
420	return Instance_TIER_UNSPECIFIED
421}
422
423func (m *Instance) GetMemorySizeGb() int32 {
424	if m != nil {
425		return m.MemorySizeGb
426	}
427	return 0
428}
429
430func (m *Instance) GetAuthorizedNetwork() string {
431	if m != nil {
432		return m.AuthorizedNetwork
433	}
434	return ""
435}
436
437func (m *Instance) GetPersistenceIamIdentity() string {
438	if m != nil {
439		return m.PersistenceIamIdentity
440	}
441	return ""
442}
443
444func (m *Instance) GetConnectMode() Instance_ConnectMode {
445	if m != nil {
446		return m.ConnectMode
447	}
448	return Instance_CONNECT_MODE_UNSPECIFIED
449}
450
451// Request for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
452type ListInstancesRequest struct {
453	// Required. The resource name of the instance location using the form:
454	//     `projects/{project_id}/locations/{location_id}`
455	// where `location_id` refers to a GCP region.
456	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
457	// The maximum number of items to return.
458	//
459	// If not specified, a default value of 1000 will be used by the service.
460	// Regardless of the page_size value, the response may include a partial list
461	// and a caller should only rely on response's
462	// [`next_page_token`][google.cloud.redis.v1beta1.ListInstancesResponse.next_page_token]
463	// to determine if there are more instances left to be queried.
464	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
465	// The `next_page_token` value returned from a previous
466	// [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
467	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
468	XXX_NoUnkeyedLiteral struct{} `json:"-"`
469	XXX_unrecognized     []byte   `json:"-"`
470	XXX_sizecache        int32    `json:"-"`
471}
472
473func (m *ListInstancesRequest) Reset()         { *m = ListInstancesRequest{} }
474func (m *ListInstancesRequest) String() string { return proto.CompactTextString(m) }
475func (*ListInstancesRequest) ProtoMessage()    {}
476func (*ListInstancesRequest) Descriptor() ([]byte, []int) {
477	return fileDescriptor_522f9b2de914b9c5, []int{1}
478}
479
480func (m *ListInstancesRequest) XXX_Unmarshal(b []byte) error {
481	return xxx_messageInfo_ListInstancesRequest.Unmarshal(m, b)
482}
483func (m *ListInstancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
484	return xxx_messageInfo_ListInstancesRequest.Marshal(b, m, deterministic)
485}
486func (m *ListInstancesRequest) XXX_Merge(src proto.Message) {
487	xxx_messageInfo_ListInstancesRequest.Merge(m, src)
488}
489func (m *ListInstancesRequest) XXX_Size() int {
490	return xxx_messageInfo_ListInstancesRequest.Size(m)
491}
492func (m *ListInstancesRequest) XXX_DiscardUnknown() {
493	xxx_messageInfo_ListInstancesRequest.DiscardUnknown(m)
494}
495
496var xxx_messageInfo_ListInstancesRequest proto.InternalMessageInfo
497
498func (m *ListInstancesRequest) GetParent() string {
499	if m != nil {
500		return m.Parent
501	}
502	return ""
503}
504
505func (m *ListInstancesRequest) GetPageSize() int32 {
506	if m != nil {
507		return m.PageSize
508	}
509	return 0
510}
511
512func (m *ListInstancesRequest) GetPageToken() string {
513	if m != nil {
514		return m.PageToken
515	}
516	return ""
517}
518
519// Response for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
520type ListInstancesResponse struct {
521	// A list of Redis instances in the project in the specified location,
522	// or across all locations.
523	//
524	// If the `location_id` in the parent field of the request is "-", all regions
525	// available to the project are queried, and the results aggregated.
526	// If in such an aggregated query a location is unavailable, a dummy Redis
527	// entry is included in the response with the `name` field set to a value of
528	// the form `projects/{project_id}/locations/{location_id}/instances/`- and
529	// the `status` field set to ERROR and `status_message` field set to "location
530	// not available for ListInstances".
531	Instances []*Instance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`
532	// Token to retrieve the next page of results, or empty if there are no more
533	// results in the list.
534	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
535	// Locations that could not be reached.
536	Unreachable          []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
537	XXX_NoUnkeyedLiteral struct{} `json:"-"`
538	XXX_unrecognized     []byte   `json:"-"`
539	XXX_sizecache        int32    `json:"-"`
540}
541
542func (m *ListInstancesResponse) Reset()         { *m = ListInstancesResponse{} }
543func (m *ListInstancesResponse) String() string { return proto.CompactTextString(m) }
544func (*ListInstancesResponse) ProtoMessage()    {}
545func (*ListInstancesResponse) Descriptor() ([]byte, []int) {
546	return fileDescriptor_522f9b2de914b9c5, []int{2}
547}
548
549func (m *ListInstancesResponse) XXX_Unmarshal(b []byte) error {
550	return xxx_messageInfo_ListInstancesResponse.Unmarshal(m, b)
551}
552func (m *ListInstancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
553	return xxx_messageInfo_ListInstancesResponse.Marshal(b, m, deterministic)
554}
555func (m *ListInstancesResponse) XXX_Merge(src proto.Message) {
556	xxx_messageInfo_ListInstancesResponse.Merge(m, src)
557}
558func (m *ListInstancesResponse) XXX_Size() int {
559	return xxx_messageInfo_ListInstancesResponse.Size(m)
560}
561func (m *ListInstancesResponse) XXX_DiscardUnknown() {
562	xxx_messageInfo_ListInstancesResponse.DiscardUnknown(m)
563}
564
565var xxx_messageInfo_ListInstancesResponse proto.InternalMessageInfo
566
567func (m *ListInstancesResponse) GetInstances() []*Instance {
568	if m != nil {
569		return m.Instances
570	}
571	return nil
572}
573
574func (m *ListInstancesResponse) GetNextPageToken() string {
575	if m != nil {
576		return m.NextPageToken
577	}
578	return ""
579}
580
581func (m *ListInstancesResponse) GetUnreachable() []string {
582	if m != nil {
583		return m.Unreachable
584	}
585	return nil
586}
587
588// Request for [GetInstance][google.cloud.redis.v1beta1.CloudRedis.GetInstance].
589type GetInstanceRequest struct {
590	// Required. Redis instance resource name using the form:
591	//     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
592	// where `location_id` refers to a GCP region.
593	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
594	XXX_NoUnkeyedLiteral struct{} `json:"-"`
595	XXX_unrecognized     []byte   `json:"-"`
596	XXX_sizecache        int32    `json:"-"`
597}
598
599func (m *GetInstanceRequest) Reset()         { *m = GetInstanceRequest{} }
600func (m *GetInstanceRequest) String() string { return proto.CompactTextString(m) }
601func (*GetInstanceRequest) ProtoMessage()    {}
602func (*GetInstanceRequest) Descriptor() ([]byte, []int) {
603	return fileDescriptor_522f9b2de914b9c5, []int{3}
604}
605
606func (m *GetInstanceRequest) XXX_Unmarshal(b []byte) error {
607	return xxx_messageInfo_GetInstanceRequest.Unmarshal(m, b)
608}
609func (m *GetInstanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
610	return xxx_messageInfo_GetInstanceRequest.Marshal(b, m, deterministic)
611}
612func (m *GetInstanceRequest) XXX_Merge(src proto.Message) {
613	xxx_messageInfo_GetInstanceRequest.Merge(m, src)
614}
615func (m *GetInstanceRequest) XXX_Size() int {
616	return xxx_messageInfo_GetInstanceRequest.Size(m)
617}
618func (m *GetInstanceRequest) XXX_DiscardUnknown() {
619	xxx_messageInfo_GetInstanceRequest.DiscardUnknown(m)
620}
621
622var xxx_messageInfo_GetInstanceRequest proto.InternalMessageInfo
623
624func (m *GetInstanceRequest) GetName() string {
625	if m != nil {
626		return m.Name
627	}
628	return ""
629}
630
631// Request for [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance].
632type CreateInstanceRequest struct {
633	// Required. The resource name of the instance location using the form:
634	//     `projects/{project_id}/locations/{location_id}`
635	// where `location_id` refers to a GCP region.
636	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
637	// Required. The logical name of the Redis instance in the customer project
638	// with the following restrictions:
639	//
640	// * Must contain only lowercase letters, numbers, and hyphens.
641	// * Must start with a letter.
642	// * Must be between 1-40 characters.
643	// * Must end with a number or a letter.
644	// * Must be unique within the customer project / location
645	InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
646	// Required. A Redis [Instance] resource
647	Instance             *Instance `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"`
648	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
649	XXX_unrecognized     []byte    `json:"-"`
650	XXX_sizecache        int32     `json:"-"`
651}
652
653func (m *CreateInstanceRequest) Reset()         { *m = CreateInstanceRequest{} }
654func (m *CreateInstanceRequest) String() string { return proto.CompactTextString(m) }
655func (*CreateInstanceRequest) ProtoMessage()    {}
656func (*CreateInstanceRequest) Descriptor() ([]byte, []int) {
657	return fileDescriptor_522f9b2de914b9c5, []int{4}
658}
659
660func (m *CreateInstanceRequest) XXX_Unmarshal(b []byte) error {
661	return xxx_messageInfo_CreateInstanceRequest.Unmarshal(m, b)
662}
663func (m *CreateInstanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
664	return xxx_messageInfo_CreateInstanceRequest.Marshal(b, m, deterministic)
665}
666func (m *CreateInstanceRequest) XXX_Merge(src proto.Message) {
667	xxx_messageInfo_CreateInstanceRequest.Merge(m, src)
668}
669func (m *CreateInstanceRequest) XXX_Size() int {
670	return xxx_messageInfo_CreateInstanceRequest.Size(m)
671}
672func (m *CreateInstanceRequest) XXX_DiscardUnknown() {
673	xxx_messageInfo_CreateInstanceRequest.DiscardUnknown(m)
674}
675
676var xxx_messageInfo_CreateInstanceRequest proto.InternalMessageInfo
677
678func (m *CreateInstanceRequest) GetParent() string {
679	if m != nil {
680		return m.Parent
681	}
682	return ""
683}
684
685func (m *CreateInstanceRequest) GetInstanceId() string {
686	if m != nil {
687		return m.InstanceId
688	}
689	return ""
690}
691
692func (m *CreateInstanceRequest) GetInstance() *Instance {
693	if m != nil {
694		return m.Instance
695	}
696	return nil
697}
698
699// Request for [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance].
700type UpdateInstanceRequest struct {
701	// Required. Mask of fields to update. At least one path must be supplied in
702	// this field. The elements of the repeated paths field may only include these
703	// fields from [Instance][google.cloud.redis.v1beta1.Instance]:
704	//
705	//  *   `displayName`
706	//  *   `labels`
707	//  *   `memorySizeGb`
708	//  *   `redisConfig`
709	UpdateMask *field_mask.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
710	// Required. Update description.
711	// Only fields specified in update_mask are updated.
712	Instance             *Instance `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"`
713	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
714	XXX_unrecognized     []byte    `json:"-"`
715	XXX_sizecache        int32     `json:"-"`
716}
717
718func (m *UpdateInstanceRequest) Reset()         { *m = UpdateInstanceRequest{} }
719func (m *UpdateInstanceRequest) String() string { return proto.CompactTextString(m) }
720func (*UpdateInstanceRequest) ProtoMessage()    {}
721func (*UpdateInstanceRequest) Descriptor() ([]byte, []int) {
722	return fileDescriptor_522f9b2de914b9c5, []int{5}
723}
724
725func (m *UpdateInstanceRequest) XXX_Unmarshal(b []byte) error {
726	return xxx_messageInfo_UpdateInstanceRequest.Unmarshal(m, b)
727}
728func (m *UpdateInstanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
729	return xxx_messageInfo_UpdateInstanceRequest.Marshal(b, m, deterministic)
730}
731func (m *UpdateInstanceRequest) XXX_Merge(src proto.Message) {
732	xxx_messageInfo_UpdateInstanceRequest.Merge(m, src)
733}
734func (m *UpdateInstanceRequest) XXX_Size() int {
735	return xxx_messageInfo_UpdateInstanceRequest.Size(m)
736}
737func (m *UpdateInstanceRequest) XXX_DiscardUnknown() {
738	xxx_messageInfo_UpdateInstanceRequest.DiscardUnknown(m)
739}
740
741var xxx_messageInfo_UpdateInstanceRequest proto.InternalMessageInfo
742
743func (m *UpdateInstanceRequest) GetUpdateMask() *field_mask.FieldMask {
744	if m != nil {
745		return m.UpdateMask
746	}
747	return nil
748}
749
750func (m *UpdateInstanceRequest) GetInstance() *Instance {
751	if m != nil {
752		return m.Instance
753	}
754	return nil
755}
756
757// Request for [UpgradeInstance][google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance].
758type UpgradeInstanceRequest struct {
759	// Required. Redis instance resource name using the form:
760	//     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
761	// where `location_id` refers to a GCP region.
762	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
763	// Required. Specifies the target version of Redis software to upgrade to.
764	RedisVersion         string   `protobuf:"bytes,2,opt,name=redis_version,json=redisVersion,proto3" json:"redis_version,omitempty"`
765	XXX_NoUnkeyedLiteral struct{} `json:"-"`
766	XXX_unrecognized     []byte   `json:"-"`
767	XXX_sizecache        int32    `json:"-"`
768}
769
770func (m *UpgradeInstanceRequest) Reset()         { *m = UpgradeInstanceRequest{} }
771func (m *UpgradeInstanceRequest) String() string { return proto.CompactTextString(m) }
772func (*UpgradeInstanceRequest) ProtoMessage()    {}
773func (*UpgradeInstanceRequest) Descriptor() ([]byte, []int) {
774	return fileDescriptor_522f9b2de914b9c5, []int{6}
775}
776
777func (m *UpgradeInstanceRequest) XXX_Unmarshal(b []byte) error {
778	return xxx_messageInfo_UpgradeInstanceRequest.Unmarshal(m, b)
779}
780func (m *UpgradeInstanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
781	return xxx_messageInfo_UpgradeInstanceRequest.Marshal(b, m, deterministic)
782}
783func (m *UpgradeInstanceRequest) XXX_Merge(src proto.Message) {
784	xxx_messageInfo_UpgradeInstanceRequest.Merge(m, src)
785}
786func (m *UpgradeInstanceRequest) XXX_Size() int {
787	return xxx_messageInfo_UpgradeInstanceRequest.Size(m)
788}
789func (m *UpgradeInstanceRequest) XXX_DiscardUnknown() {
790	xxx_messageInfo_UpgradeInstanceRequest.DiscardUnknown(m)
791}
792
793var xxx_messageInfo_UpgradeInstanceRequest proto.InternalMessageInfo
794
795func (m *UpgradeInstanceRequest) GetName() string {
796	if m != nil {
797		return m.Name
798	}
799	return ""
800}
801
802func (m *UpgradeInstanceRequest) GetRedisVersion() string {
803	if m != nil {
804		return m.RedisVersion
805	}
806	return ""
807}
808
809// Request for [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance].
810type DeleteInstanceRequest struct {
811	// Required. Redis instance resource name using the form:
812	//     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
813	// where `location_id` refers to a GCP region.
814	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
815	XXX_NoUnkeyedLiteral struct{} `json:"-"`
816	XXX_unrecognized     []byte   `json:"-"`
817	XXX_sizecache        int32    `json:"-"`
818}
819
820func (m *DeleteInstanceRequest) Reset()         { *m = DeleteInstanceRequest{} }
821func (m *DeleteInstanceRequest) String() string { return proto.CompactTextString(m) }
822func (*DeleteInstanceRequest) ProtoMessage()    {}
823func (*DeleteInstanceRequest) Descriptor() ([]byte, []int) {
824	return fileDescriptor_522f9b2de914b9c5, []int{7}
825}
826
827func (m *DeleteInstanceRequest) XXX_Unmarshal(b []byte) error {
828	return xxx_messageInfo_DeleteInstanceRequest.Unmarshal(m, b)
829}
830func (m *DeleteInstanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
831	return xxx_messageInfo_DeleteInstanceRequest.Marshal(b, m, deterministic)
832}
833func (m *DeleteInstanceRequest) XXX_Merge(src proto.Message) {
834	xxx_messageInfo_DeleteInstanceRequest.Merge(m, src)
835}
836func (m *DeleteInstanceRequest) XXX_Size() int {
837	return xxx_messageInfo_DeleteInstanceRequest.Size(m)
838}
839func (m *DeleteInstanceRequest) XXX_DiscardUnknown() {
840	xxx_messageInfo_DeleteInstanceRequest.DiscardUnknown(m)
841}
842
843var xxx_messageInfo_DeleteInstanceRequest proto.InternalMessageInfo
844
845func (m *DeleteInstanceRequest) GetName() string {
846	if m != nil {
847		return m.Name
848	}
849	return ""
850}
851
852// The Cloud Storage location for the input content
853type GcsSource struct {
854	// Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
855	Uri                  string   `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
856	XXX_NoUnkeyedLiteral struct{} `json:"-"`
857	XXX_unrecognized     []byte   `json:"-"`
858	XXX_sizecache        int32    `json:"-"`
859}
860
861func (m *GcsSource) Reset()         { *m = GcsSource{} }
862func (m *GcsSource) String() string { return proto.CompactTextString(m) }
863func (*GcsSource) ProtoMessage()    {}
864func (*GcsSource) Descriptor() ([]byte, []int) {
865	return fileDescriptor_522f9b2de914b9c5, []int{8}
866}
867
868func (m *GcsSource) XXX_Unmarshal(b []byte) error {
869	return xxx_messageInfo_GcsSource.Unmarshal(m, b)
870}
871func (m *GcsSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
872	return xxx_messageInfo_GcsSource.Marshal(b, m, deterministic)
873}
874func (m *GcsSource) XXX_Merge(src proto.Message) {
875	xxx_messageInfo_GcsSource.Merge(m, src)
876}
877func (m *GcsSource) XXX_Size() int {
878	return xxx_messageInfo_GcsSource.Size(m)
879}
880func (m *GcsSource) XXX_DiscardUnknown() {
881	xxx_messageInfo_GcsSource.DiscardUnknown(m)
882}
883
884var xxx_messageInfo_GcsSource proto.InternalMessageInfo
885
886func (m *GcsSource) GetUri() string {
887	if m != nil {
888		return m.Uri
889	}
890	return ""
891}
892
893// The input content
894type InputConfig struct {
895	// Required. Specify source location of input data
896	//
897	// Types that are valid to be assigned to Source:
898	//	*InputConfig_GcsSource
899	Source               isInputConfig_Source `protobuf_oneof:"source"`
900	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
901	XXX_unrecognized     []byte               `json:"-"`
902	XXX_sizecache        int32                `json:"-"`
903}
904
905func (m *InputConfig) Reset()         { *m = InputConfig{} }
906func (m *InputConfig) String() string { return proto.CompactTextString(m) }
907func (*InputConfig) ProtoMessage()    {}
908func (*InputConfig) Descriptor() ([]byte, []int) {
909	return fileDescriptor_522f9b2de914b9c5, []int{9}
910}
911
912func (m *InputConfig) XXX_Unmarshal(b []byte) error {
913	return xxx_messageInfo_InputConfig.Unmarshal(m, b)
914}
915func (m *InputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
916	return xxx_messageInfo_InputConfig.Marshal(b, m, deterministic)
917}
918func (m *InputConfig) XXX_Merge(src proto.Message) {
919	xxx_messageInfo_InputConfig.Merge(m, src)
920}
921func (m *InputConfig) XXX_Size() int {
922	return xxx_messageInfo_InputConfig.Size(m)
923}
924func (m *InputConfig) XXX_DiscardUnknown() {
925	xxx_messageInfo_InputConfig.DiscardUnknown(m)
926}
927
928var xxx_messageInfo_InputConfig proto.InternalMessageInfo
929
930type isInputConfig_Source interface {
931	isInputConfig_Source()
932}
933
934type InputConfig_GcsSource struct {
935	GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
936}
937
938func (*InputConfig_GcsSource) isInputConfig_Source() {}
939
940func (m *InputConfig) GetSource() isInputConfig_Source {
941	if m != nil {
942		return m.Source
943	}
944	return nil
945}
946
947func (m *InputConfig) GetGcsSource() *GcsSource {
948	if x, ok := m.GetSource().(*InputConfig_GcsSource); ok {
949		return x.GcsSource
950	}
951	return nil
952}
953
954// XXX_OneofWrappers is for the internal use of the proto package.
955func (*InputConfig) XXX_OneofWrappers() []interface{} {
956	return []interface{}{
957		(*InputConfig_GcsSource)(nil),
958	}
959}
960
961// Request for [Import][google.cloud.redis.v1beta1.CloudRedis.ImportInstance].
962type ImportInstanceRequest struct {
963	// Required. Redis instance resource name using the form:
964	//     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
965	// where `location_id` refers to a GCP region.
966	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
967	// Required. Specify data to be imported.
968	InputConfig          *InputConfig `protobuf:"bytes,3,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
969	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
970	XXX_unrecognized     []byte       `json:"-"`
971	XXX_sizecache        int32        `json:"-"`
972}
973
974func (m *ImportInstanceRequest) Reset()         { *m = ImportInstanceRequest{} }
975func (m *ImportInstanceRequest) String() string { return proto.CompactTextString(m) }
976func (*ImportInstanceRequest) ProtoMessage()    {}
977func (*ImportInstanceRequest) Descriptor() ([]byte, []int) {
978	return fileDescriptor_522f9b2de914b9c5, []int{10}
979}
980
981func (m *ImportInstanceRequest) XXX_Unmarshal(b []byte) error {
982	return xxx_messageInfo_ImportInstanceRequest.Unmarshal(m, b)
983}
984func (m *ImportInstanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
985	return xxx_messageInfo_ImportInstanceRequest.Marshal(b, m, deterministic)
986}
987func (m *ImportInstanceRequest) XXX_Merge(src proto.Message) {
988	xxx_messageInfo_ImportInstanceRequest.Merge(m, src)
989}
990func (m *ImportInstanceRequest) XXX_Size() int {
991	return xxx_messageInfo_ImportInstanceRequest.Size(m)
992}
993func (m *ImportInstanceRequest) XXX_DiscardUnknown() {
994	xxx_messageInfo_ImportInstanceRequest.DiscardUnknown(m)
995}
996
997var xxx_messageInfo_ImportInstanceRequest proto.InternalMessageInfo
998
999func (m *ImportInstanceRequest) GetName() string {
1000	if m != nil {
1001		return m.Name
1002	}
1003	return ""
1004}
1005
1006func (m *ImportInstanceRequest) GetInputConfig() *InputConfig {
1007	if m != nil {
1008		return m.InputConfig
1009	}
1010	return nil
1011}
1012
1013// The Cloud Storage location for the output content
1014type GcsDestination struct {
1015	// Required. Data destination URI (e.g.
1016	// 'gs://my_bucket/my_object'). Existing files will be overwritten.
1017	Uri                  string   `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
1018	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1019	XXX_unrecognized     []byte   `json:"-"`
1020	XXX_sizecache        int32    `json:"-"`
1021}
1022
1023func (m *GcsDestination) Reset()         { *m = GcsDestination{} }
1024func (m *GcsDestination) String() string { return proto.CompactTextString(m) }
1025func (*GcsDestination) ProtoMessage()    {}
1026func (*GcsDestination) Descriptor() ([]byte, []int) {
1027	return fileDescriptor_522f9b2de914b9c5, []int{11}
1028}
1029
1030func (m *GcsDestination) XXX_Unmarshal(b []byte) error {
1031	return xxx_messageInfo_GcsDestination.Unmarshal(m, b)
1032}
1033func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1034	return xxx_messageInfo_GcsDestination.Marshal(b, m, deterministic)
1035}
1036func (m *GcsDestination) XXX_Merge(src proto.Message) {
1037	xxx_messageInfo_GcsDestination.Merge(m, src)
1038}
1039func (m *GcsDestination) XXX_Size() int {
1040	return xxx_messageInfo_GcsDestination.Size(m)
1041}
1042func (m *GcsDestination) XXX_DiscardUnknown() {
1043	xxx_messageInfo_GcsDestination.DiscardUnknown(m)
1044}
1045
1046var xxx_messageInfo_GcsDestination proto.InternalMessageInfo
1047
1048func (m *GcsDestination) GetUri() string {
1049	if m != nil {
1050		return m.Uri
1051	}
1052	return ""
1053}
1054
1055// The output content
1056type OutputConfig struct {
1057	// Required. Specify destination location of output data
1058	//
1059	// Types that are valid to be assigned to Destination:
1060	//	*OutputConfig_GcsDestination
1061	Destination          isOutputConfig_Destination `protobuf_oneof:"destination"`
1062	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
1063	XXX_unrecognized     []byte                     `json:"-"`
1064	XXX_sizecache        int32                      `json:"-"`
1065}
1066
1067func (m *OutputConfig) Reset()         { *m = OutputConfig{} }
1068func (m *OutputConfig) String() string { return proto.CompactTextString(m) }
1069func (*OutputConfig) ProtoMessage()    {}
1070func (*OutputConfig) Descriptor() ([]byte, []int) {
1071	return fileDescriptor_522f9b2de914b9c5, []int{12}
1072}
1073
1074func (m *OutputConfig) XXX_Unmarshal(b []byte) error {
1075	return xxx_messageInfo_OutputConfig.Unmarshal(m, b)
1076}
1077func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1078	return xxx_messageInfo_OutputConfig.Marshal(b, m, deterministic)
1079}
1080func (m *OutputConfig) XXX_Merge(src proto.Message) {
1081	xxx_messageInfo_OutputConfig.Merge(m, src)
1082}
1083func (m *OutputConfig) XXX_Size() int {
1084	return xxx_messageInfo_OutputConfig.Size(m)
1085}
1086func (m *OutputConfig) XXX_DiscardUnknown() {
1087	xxx_messageInfo_OutputConfig.DiscardUnknown(m)
1088}
1089
1090var xxx_messageInfo_OutputConfig proto.InternalMessageInfo
1091
1092type isOutputConfig_Destination interface {
1093	isOutputConfig_Destination()
1094}
1095
1096type OutputConfig_GcsDestination struct {
1097	GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
1098}
1099
1100func (*OutputConfig_GcsDestination) isOutputConfig_Destination() {}
1101
1102func (m *OutputConfig) GetDestination() isOutputConfig_Destination {
1103	if m != nil {
1104		return m.Destination
1105	}
1106	return nil
1107}
1108
1109func (m *OutputConfig) GetGcsDestination() *GcsDestination {
1110	if x, ok := m.GetDestination().(*OutputConfig_GcsDestination); ok {
1111		return x.GcsDestination
1112	}
1113	return nil
1114}
1115
1116// XXX_OneofWrappers is for the internal use of the proto package.
1117func (*OutputConfig) XXX_OneofWrappers() []interface{} {
1118	return []interface{}{
1119		(*OutputConfig_GcsDestination)(nil),
1120	}
1121}
1122
1123// Request for [Export][google.cloud.redis.v1beta1.CloudRedis.ExportInstance].
1124type ExportInstanceRequest struct {
1125	// Required. Redis instance resource name using the form:
1126	//     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
1127	// where `location_id` refers to a GCP region.
1128	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1129	// Required. Specify data to be exported.
1130	OutputConfig         *OutputConfig `protobuf:"bytes,3,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
1131	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
1132	XXX_unrecognized     []byte        `json:"-"`
1133	XXX_sizecache        int32         `json:"-"`
1134}
1135
1136func (m *ExportInstanceRequest) Reset()         { *m = ExportInstanceRequest{} }
1137func (m *ExportInstanceRequest) String() string { return proto.CompactTextString(m) }
1138func (*ExportInstanceRequest) ProtoMessage()    {}
1139func (*ExportInstanceRequest) Descriptor() ([]byte, []int) {
1140	return fileDescriptor_522f9b2de914b9c5, []int{13}
1141}
1142
1143func (m *ExportInstanceRequest) XXX_Unmarshal(b []byte) error {
1144	return xxx_messageInfo_ExportInstanceRequest.Unmarshal(m, b)
1145}
1146func (m *ExportInstanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1147	return xxx_messageInfo_ExportInstanceRequest.Marshal(b, m, deterministic)
1148}
1149func (m *ExportInstanceRequest) XXX_Merge(src proto.Message) {
1150	xxx_messageInfo_ExportInstanceRequest.Merge(m, src)
1151}
1152func (m *ExportInstanceRequest) XXX_Size() int {
1153	return xxx_messageInfo_ExportInstanceRequest.Size(m)
1154}
1155func (m *ExportInstanceRequest) XXX_DiscardUnknown() {
1156	xxx_messageInfo_ExportInstanceRequest.DiscardUnknown(m)
1157}
1158
1159var xxx_messageInfo_ExportInstanceRequest proto.InternalMessageInfo
1160
1161func (m *ExportInstanceRequest) GetName() string {
1162	if m != nil {
1163		return m.Name
1164	}
1165	return ""
1166}
1167
1168func (m *ExportInstanceRequest) GetOutputConfig() *OutputConfig {
1169	if m != nil {
1170		return m.OutputConfig
1171	}
1172	return nil
1173}
1174
1175// Request for [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance].
1176type FailoverInstanceRequest struct {
1177	// Required. Redis instance resource name using the form:
1178	//     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
1179	// where `location_id` refers to a GCP region.
1180	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1181	// Optional. Available data protection modes that the user can choose. If it's
1182	// unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
1183	DataProtectionMode   FailoverInstanceRequest_DataProtectionMode `protobuf:"varint,2,opt,name=data_protection_mode,json=dataProtectionMode,proto3,enum=google.cloud.redis.v1beta1.FailoverInstanceRequest_DataProtectionMode" json:"data_protection_mode,omitempty"`
1184	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
1185	XXX_unrecognized     []byte                                     `json:"-"`
1186	XXX_sizecache        int32                                      `json:"-"`
1187}
1188
1189func (m *FailoverInstanceRequest) Reset()         { *m = FailoverInstanceRequest{} }
1190func (m *FailoverInstanceRequest) String() string { return proto.CompactTextString(m) }
1191func (*FailoverInstanceRequest) ProtoMessage()    {}
1192func (*FailoverInstanceRequest) Descriptor() ([]byte, []int) {
1193	return fileDescriptor_522f9b2de914b9c5, []int{14}
1194}
1195
1196func (m *FailoverInstanceRequest) XXX_Unmarshal(b []byte) error {
1197	return xxx_messageInfo_FailoverInstanceRequest.Unmarshal(m, b)
1198}
1199func (m *FailoverInstanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1200	return xxx_messageInfo_FailoverInstanceRequest.Marshal(b, m, deterministic)
1201}
1202func (m *FailoverInstanceRequest) XXX_Merge(src proto.Message) {
1203	xxx_messageInfo_FailoverInstanceRequest.Merge(m, src)
1204}
1205func (m *FailoverInstanceRequest) XXX_Size() int {
1206	return xxx_messageInfo_FailoverInstanceRequest.Size(m)
1207}
1208func (m *FailoverInstanceRequest) XXX_DiscardUnknown() {
1209	xxx_messageInfo_FailoverInstanceRequest.DiscardUnknown(m)
1210}
1211
1212var xxx_messageInfo_FailoverInstanceRequest proto.InternalMessageInfo
1213
1214func (m *FailoverInstanceRequest) GetName() string {
1215	if m != nil {
1216		return m.Name
1217	}
1218	return ""
1219}
1220
1221func (m *FailoverInstanceRequest) GetDataProtectionMode() FailoverInstanceRequest_DataProtectionMode {
1222	if m != nil {
1223		return m.DataProtectionMode
1224	}
1225	return FailoverInstanceRequest_DATA_PROTECTION_MODE_UNSPECIFIED
1226}
1227
1228// This location metadata represents additional configuration options for a
1229// given location where a Redis instance may be created. All fields are output
1230// only. It is returned as content of the
1231// `google.cloud.location.Location.metadata` field.
1232type LocationMetadata struct {
1233	// Output only. The set of available zones in the location. The map is keyed
1234	// by the lowercase ID of each zone, as defined by GCE. These keys can be
1235	// specified in `location_id` or `alternative_location_id` fields when
1236	// creating a Redis instance.
1237	AvailableZones       map[string]*ZoneMetadata `protobuf:"bytes,1,rep,name=available_zones,json=availableZones,proto3" json:"available_zones,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
1238	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
1239	XXX_unrecognized     []byte                   `json:"-"`
1240	XXX_sizecache        int32                    `json:"-"`
1241}
1242
1243func (m *LocationMetadata) Reset()         { *m = LocationMetadata{} }
1244func (m *LocationMetadata) String() string { return proto.CompactTextString(m) }
1245func (*LocationMetadata) ProtoMessage()    {}
1246func (*LocationMetadata) Descriptor() ([]byte, []int) {
1247	return fileDescriptor_522f9b2de914b9c5, []int{15}
1248}
1249
1250func (m *LocationMetadata) XXX_Unmarshal(b []byte) error {
1251	return xxx_messageInfo_LocationMetadata.Unmarshal(m, b)
1252}
1253func (m *LocationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1254	return xxx_messageInfo_LocationMetadata.Marshal(b, m, deterministic)
1255}
1256func (m *LocationMetadata) XXX_Merge(src proto.Message) {
1257	xxx_messageInfo_LocationMetadata.Merge(m, src)
1258}
1259func (m *LocationMetadata) XXX_Size() int {
1260	return xxx_messageInfo_LocationMetadata.Size(m)
1261}
1262func (m *LocationMetadata) XXX_DiscardUnknown() {
1263	xxx_messageInfo_LocationMetadata.DiscardUnknown(m)
1264}
1265
1266var xxx_messageInfo_LocationMetadata proto.InternalMessageInfo
1267
1268func (m *LocationMetadata) GetAvailableZones() map[string]*ZoneMetadata {
1269	if m != nil {
1270		return m.AvailableZones
1271	}
1272	return nil
1273}
1274
1275// Defines specific information for a particular zone. Currently empty and
1276// reserved for future use only.
1277type ZoneMetadata struct {
1278	XXX_NoUnkeyedLiteral struct{} `json:"-"`
1279	XXX_unrecognized     []byte   `json:"-"`
1280	XXX_sizecache        int32    `json:"-"`
1281}
1282
1283func (m *ZoneMetadata) Reset()         { *m = ZoneMetadata{} }
1284func (m *ZoneMetadata) String() string { return proto.CompactTextString(m) }
1285func (*ZoneMetadata) ProtoMessage()    {}
1286func (*ZoneMetadata) Descriptor() ([]byte, []int) {
1287	return fileDescriptor_522f9b2de914b9c5, []int{16}
1288}
1289
1290func (m *ZoneMetadata) XXX_Unmarshal(b []byte) error {
1291	return xxx_messageInfo_ZoneMetadata.Unmarshal(m, b)
1292}
1293func (m *ZoneMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1294	return xxx_messageInfo_ZoneMetadata.Marshal(b, m, deterministic)
1295}
1296func (m *ZoneMetadata) XXX_Merge(src proto.Message) {
1297	xxx_messageInfo_ZoneMetadata.Merge(m, src)
1298}
1299func (m *ZoneMetadata) XXX_Size() int {
1300	return xxx_messageInfo_ZoneMetadata.Size(m)
1301}
1302func (m *ZoneMetadata) XXX_DiscardUnknown() {
1303	xxx_messageInfo_ZoneMetadata.DiscardUnknown(m)
1304}
1305
1306var xxx_messageInfo_ZoneMetadata proto.InternalMessageInfo
1307
1308func init() {
1309	proto.RegisterEnum("google.cloud.redis.v1beta1.Instance_State", Instance_State_name, Instance_State_value)
1310	proto.RegisterEnum("google.cloud.redis.v1beta1.Instance_Tier", Instance_Tier_name, Instance_Tier_value)
1311	proto.RegisterEnum("google.cloud.redis.v1beta1.Instance_ConnectMode", Instance_ConnectMode_name, Instance_ConnectMode_value)
1312	proto.RegisterEnum("google.cloud.redis.v1beta1.FailoverInstanceRequest_DataProtectionMode", FailoverInstanceRequest_DataProtectionMode_name, FailoverInstanceRequest_DataProtectionMode_value)
1313	proto.RegisterType((*Instance)(nil), "google.cloud.redis.v1beta1.Instance")
1314	proto.RegisterMapType((map[string]string)(nil), "google.cloud.redis.v1beta1.Instance.LabelsEntry")
1315	proto.RegisterMapType((map[string]string)(nil), "google.cloud.redis.v1beta1.Instance.RedisConfigsEntry")
1316	proto.RegisterType((*ListInstancesRequest)(nil), "google.cloud.redis.v1beta1.ListInstancesRequest")
1317	proto.RegisterType((*ListInstancesResponse)(nil), "google.cloud.redis.v1beta1.ListInstancesResponse")
1318	proto.RegisterType((*GetInstanceRequest)(nil), "google.cloud.redis.v1beta1.GetInstanceRequest")
1319	proto.RegisterType((*CreateInstanceRequest)(nil), "google.cloud.redis.v1beta1.CreateInstanceRequest")
1320	proto.RegisterType((*UpdateInstanceRequest)(nil), "google.cloud.redis.v1beta1.UpdateInstanceRequest")
1321	proto.RegisterType((*UpgradeInstanceRequest)(nil), "google.cloud.redis.v1beta1.UpgradeInstanceRequest")
1322	proto.RegisterType((*DeleteInstanceRequest)(nil), "google.cloud.redis.v1beta1.DeleteInstanceRequest")
1323	proto.RegisterType((*GcsSource)(nil), "google.cloud.redis.v1beta1.GcsSource")
1324	proto.RegisterType((*InputConfig)(nil), "google.cloud.redis.v1beta1.InputConfig")
1325	proto.RegisterType((*ImportInstanceRequest)(nil), "google.cloud.redis.v1beta1.ImportInstanceRequest")
1326	proto.RegisterType((*GcsDestination)(nil), "google.cloud.redis.v1beta1.GcsDestination")
1327	proto.RegisterType((*OutputConfig)(nil), "google.cloud.redis.v1beta1.OutputConfig")
1328	proto.RegisterType((*ExportInstanceRequest)(nil), "google.cloud.redis.v1beta1.ExportInstanceRequest")
1329	proto.RegisterType((*FailoverInstanceRequest)(nil), "google.cloud.redis.v1beta1.FailoverInstanceRequest")
1330	proto.RegisterType((*LocationMetadata)(nil), "google.cloud.redis.v1beta1.LocationMetadata")
1331	proto.RegisterMapType((map[string]*ZoneMetadata)(nil), "google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry")
1332	proto.RegisterType((*ZoneMetadata)(nil), "google.cloud.redis.v1beta1.ZoneMetadata")
1333}
1334
1335func init() {
1336	proto.RegisterFile("google/cloud/redis/v1beta1/cloud_redis.proto", fileDescriptor_522f9b2de914b9c5)
1337}
1338
1339var fileDescriptor_522f9b2de914b9c5 = []byte{
1340	// 2048 bytes of a gzipped FileDescriptorProto
1341	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xcf, 0x6f, 0xdb, 0xd6,
1342	0x1d, 0x0f, 0xa5, 0xd8, 0xb3, 0xbe, 0x92, 0x65, 0xf9, 0xc5, 0x4a, 0x58, 0xb5, 0x59, 0x5d, 0x26,
1343	0x5d, 0x1d, 0x23, 0x93, 0x16, 0x67, 0x18, 0x1a, 0x67, 0x6d, 0x42, 0x4b, 0xb4, 0x4d, 0xc0, 0x96,
1344	0x04, 0x4a, 0x0e, 0xb6, 0x0e, 0x03, 0xfb, 0x4c, 0x3d, 0xcb, 0x9c, 0x25, 0x92, 0x23, 0x9f, 0x94,
1345	0x38, 0x81, 0x31, 0x6c, 0x28, 0x86, 0xdd, 0xd7, 0x6e, 0xc7, 0x6d, 0x87, 0x0d, 0xd8, 0x9f, 0x30,
1346	0xec, 0x0f, 0x18, 0x90, 0xe3, 0xb6, 0x53, 0x4e, 0x3d, 0xec, 0xb4, 0xcb, 0xee, 0x1d, 0x30, 0x0c,
1347	0xef, 0x91, 0x14, 0x29, 0x59, 0x96, 0x15, 0xc7, 0xbd, 0x91, 0xdf, 0x5f, 0xfc, 0x7e, 0x3e, 0xef,
1348	0xc7, 0xf7, 0x63, 0x19, 0xee, 0xb6, 0x6d, 0xbb, 0xdd, 0x21, 0x25, 0xa3, 0x63, 0xf7, 0x5a, 0x25,
1349	0x97, 0xb4, 0x4c, 0xaf, 0xd4, 0xbf, 0xb7, 0x4f, 0x28, 0xbe, 0xe7, 0xdb, 0x74, 0x6e, 0x2b, 0x3a,
1350	0xae, 0x4d, 0x6d, 0x54, 0xf0, 0xa3, 0x8b, 0xdc, 0x53, 0xf4, 0x3d, 0x41, 0x74, 0xe1, 0x9d, 0xa0,
1351	0x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, 0x2a, 0xfa, 0xb6, 0x9c, 0x4b, 0x4a, 0x3f,
1396	0x82, 0x74, 0x8c, 0x6d, 0xf4, 0x0e, 0x88, 0xe5, 0x5a, 0xb5, 0xaa, 0x94, 0x9b, 0xfa, 0x6e, 0xad,
1397	0x32, 0x0a, 0x0e, 0x41, 0xb6, 0xa2, 0x6a, 0xcc, 0x59, 0x57, 0x14, 0xcd, 0x87, 0x58, 0x80, 0xeb,
1398	0x75, 0x4d, 0x7d, 0xc2, 0x98, 0x68, 0x28, 0xda, 0x13, 0xb5, 0xac, 0xe8, 0x72, 0xb9, 0xac, 0x34,
1399	0x1a, 0xb9, 0xc4, 0xfa, 0xa7, 0xff, 0x96, 0x7f, 0x0c, 0x37, 0xfd, 0x45, 0xf6, 0xd7, 0x1d, 0x3b,
1400	0xa6, 0x57, 0x34, 0xec, 0x6e, 0x69, 0x70, 0x97, 0x7f, 0xdf, 0x71, 0xed, 0x9f, 0x10, 0x83, 0x7a,
1401	0xa5, 0x17, 0xc1, 0xd3, 0x49, 0x29, 0xbc, 0x5e, 0xbc, 0xd2, 0x8b, 0xf0, 0xf1, 0xa4, 0x64, 0x06,
1402	0x19, 0x5e, 0xe9, 0x45, 0xf8, 0x78, 0x22, 0x7d, 0x21, 0xc0, 0xd2, 0x8e, 0xe9, 0xd1, 0xb0, 0x9c,
1403	0xa7, 0x91, 0x9f, 0xf6, 0x88, 0x47, 0x91, 0x0c, 0xb3, 0x0e, 0x66, 0x77, 0x51, 0x30, 0x24, 0xee,
1404	0x7c, 0x29, 0x27, 0xbe, 0x92, 0x6f, 0xc1, 0x7b, 0x83, 0xda, 0xa3, 0x1d, 0x85, 0x97, 0x96, 0x16,
1405	0x24, 0xa2, 0xb7, 0x21, 0xe5, 0xe0, 0x36, 0xe1, 0xa7, 0x8b, 0xef, 0x84, 0x19, 0x6d, 0x8e, 0x19,
1406	0xd8, 0x99, 0x42, 0x37, 0x01, 0xb8, 0x93, 0xda, 0x47, 0xc4, 0x12, 0x93, 0x7c, 0x9f, 0xf0, 0xf0,
1407	0x26, 0x33, 0x48, 0x7f, 0x14, 0x20, 0x3f, 0xd2, 0x97, 0xe7, 0xd8, 0x96, 0x47, 0xd0, 0x06, 0xa4,
1408	0x06, 0x48, 0x44, 0x81, 0xdf, 0x2b, 0xb7, 0xa7, 0x39, 0x14, 0x5a, 0x94, 0x86, 0xbe, 0x05, 0x0b,
1409	0x16, 0x79, 0x46, 0xf5, 0x58, 0x07, 0xfe, 0x4e, 0x9d, 0x67, 0xe6, 0x7a, 0xd8, 0x05, 0x5a, 0x86,
1410	0x74, 0xcf, 0x72, 0x09, 0x36, 0x0e, 0xf1, 0x7e, 0x87, 0xf0, 0x81, 0x97, 0xd2, 0xe2, 0x26, 0xa9,
1411	0x06, 0x68, 0x8b, 0x0c, 0xba, 0x0c, 0xc9, 0x7b, 0x30, 0x34, 0x5f, 0xdf, 0xe7, 0xd4, 0xbd, 0x7b,
1412	0xce, 0x42, 0xfa, 0x13, 0x58, 0xfa, 0x9b, 0x00, 0xf9, 0x32, 0xbf, 0xbc, 0x47, 0x8b, 0x5e, 0xc2,
1413	0x8a, 0xdc, 0x86, 0x74, 0x48, 0x02, 0x9b, 0x3c, 0x89, 0x68, 0xfc, 0x43, 0x68, 0x57, 0x5b, 0x48,
1414	0x81, 0xb9, 0xf0, 0x8d, 0x2f, 0xcc, 0x94, 0x04, 0xfb, 0x85, 0x06, 0xa9, 0xd2, 0xef, 0x05, 0xc8,
1415	0xef, 0x39, 0xad, 0x31, 0x48, 0x1e, 0x43, 0xba, 0xc7, 0x1d, 0x5c, 0xc1, 0x70, 0x38, 0xe3, 0x66,
1416	0xda, 0x26, 0x13, 0x39, 0xbb, 0xd8, 0x3b, 0x0a, 0x5a, 0xf4, 0x73, 0x98, 0x61, 0xa8, 0xc5, 0xc4,
1417	0xc5, 0x5b, 0x3c, 0x81, 0xeb, 0x7b, 0x4e, 0xdb, 0xc5, 0x2d, 0x72, 0x79, 0x2b, 0x78, 0x5a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d,
1429	0x33, 0x49, 0x7f, 0x4d, 0xc0, 0x8d, 0x4d, 0x6c, 0x76, 0xec, 0x3e, 0x71, 0x2f, 0xf1, 0x0c, 0x9c,
1430	0xc0, 0x52, 0x0b, 0x53, 0xac, 0xb3, 0xb3, 0x4c, 0x0c, 0xae, 0x74, 0xb9, 0x88, 0x49, 0x70, 0x11,
1431	0xb3, 0x39, 0xa9, 0xe3, 0x33, 0xba, 0x29, 0x56, 0x30, 0xc5, 0xf5, 0x41, 0xb9, 0x48, 0xda, 0xa0,
1432	0xd6, 0x29, 0x87, 0x74, 0x00, 0xe8, 0x74, 0x38, 0xba, 0x0d, 0xcb, 0x15, 0xb9, 0x29, 0xeb, 0x75,
1433	0xad, 0xd6, 0x54, 0xca, 0x4d, 0xb5, 0x56, 0x1d, 0x37, 0xa3, 0xf3, 0xb0, 0xb8, 0xa3, 0xee, 0xaa,
1434	0x4d, 0xa5, 0xa2, 0xf3, 0xe8, 0x9d, 0x5a, 0xa3, 0x91, 0x13, 0xd0, 0x35, 0x58, 0xd8, 0xac, 0x69,
1435	0x65, 0x25, 0x66, 0x4c, 0x48, 0xff, 0x11, 0x20, 0x17, 0x5e, 0xb2, 0xbb, 0x84, 0x62, 0xd6, 0x0a,
1436	0xb2, 0x60, 0x01, 0xf7, 0xb1, 0xd9, 0x61, 0xf3, 0x41, 0x7f, 0x6e, 0x5b, 0x83, 0x31, 0xf5, 0x78,
1437	0x12, 0xec, 0xd1, 0x32, 0x45, 0x39, 0xac, 0xf1, 0x09, 0x2b, 0x31, 0x10, 0xc2, 0x49, 0x2d, 0x8b,
1438	0x87, 0x3c, 0x85, 0x23, 0xb8, 0x36, 0x26, 0x76, 0x8c, 0x2a, 0xfb, 0x38, 0xae, 0xca, 0xce, 0xd9,
1439	0x37, 0xac, 0x50, 0xd8, 0x4a, 0x5c, 0xbf, 0x65, 0x21, 0x13, 0x77, 0xad, 0xfd, 0x79, 0x11, 0xa0,
1440	0xcc, 0xf2, 0xb9, 0x2c, 0x44, 0x7f, 0x11, 0x60, 0x7e, 0x68, 0x6c, 0xa3, 0x89, 0x82, 0x75, 0x9c,
1441	0xf2, 0x28, 0xdc, 0x7b, 0x8d, 0x0c, 0x5f, 0x13, 0x48, 0xe5, 0x57, 0x72, 0x30, 0xe2, 0x7e, 0xf1,
1442	0x8f, 0x7f, 0xfd, 0x3a, 0xf1, 0x5d, 0xb4, 0x36, 0xf8, 0x01, 0xe0, 0x85, 0x6f, 0xff, 0x68, 0xa0,
1443	0x92, 0x56, 0x63, 0xea, 0x68, 0x35, 0xa6, 0x8a, 0xd0, 0x9f, 0x04, 0x48, 0xc7, 0x66, 0x39, 0x2a,
1444	0x4e, 0x3c, 0xee, 0xa7, 0x86, 0x7e, 0x61, 0xaa, 0x09, 0x24, 0xc9, 0xaf, 0x64, 0x7e, 0x44, 0x4e,
1445	0x37, 0xca, 0xac, 0x67, 0xb4, 0x19, 0xd3, 0x6e, 0xab, 0x27, 0xe8, 0xb3, 0x04, 0x64, 0x87, 0x25,
1446	0x02, 0x9a, 0xc8, 0xd9, 0x58, 0x39, 0x51, 0xb8, 0x19, 0xa6, 0xc4, 0x7e, 0x79, 0x28, 0xd6, 0xc2,
1447	0x5f, 0x1e, 0xa4, 0xdf, 0x09, 0x2f, 0xe5, 0x75, 0xb8, 0x35, 0x05, 0x24, 0x74, 0x6d, 0x74, 0x70,
1448	0xcb, 0xd6, 0xf1, 0x2b, 0xf9, 0x6d, 0x9f, 0xf8, 0xbb, 0x31, 0xc1, 0x31, 0x78, 0xe6, 0xe0, 0x3f,
1449	0x96, 0x2e, 0xb0, 0x4a, 0xeb, 0x83, 0xe1, 0x8d, 0x7e, 0x99, 0x80, 0xec, 0xb0, 0xbe, 0x98, 0x4c,
1450	0xc3, 0x58, 0x2d, 0x72, 0x1e, 0x0d, 0x7f, 0x78, 0x53, 0x1a, 0x96, 0x62, 0x4a, 0x67, 0x18, 0xff,
1451	0xd6, 0xda, 0xc3, 0x08, 0x7f, 0xe8, 0x29, 0x4e, 0xbb, 0x0b, 0x62, 0x44, 0xfc, 0x4f, 0x80, 0x85,
1452	0x11, 0x19, 0x83, 0xd6, 0x26, 0x33, 0x31, 0x4e, 0xf3, 0x9c, 0x47, 0xc5, 0x6f, 0xdf, 0x94, 0x0a,
1453	0xc4, 0xb0, 0xdd, 0x1d, 0xd2, 0x46, 0x9c, 0x88, 0x47, 0xd2, 0xfa, 0xeb, 0x9f, 0x82, 0xf5, 0x9e,
1454	0x0f, 0x62, 0x5d, 0x58, 0x45, 0x5f, 0x09, 0x90, 0x1d, 0x96, 0x1b, 0x93, 0x77, 0xc2, 0x58, 0x69,
1455	0x72, 0x1e, 0xfc, 0x2f, 0xde, 0x14, 0xfe, 0x22, 0x87, 0x1f, 0x17, 0x39, 0xc1, 0x31, 0x78, 0x70,
1456	0x01, 0xf4, 0x26, 0x87, 0xc0, 0xc0, 0xff, 0x57, 0x80, 0xec, 0xb0, 0x90, 0x98, 0x0c, 0x7e, 0xac,
1457	0xe8, 0x38, 0x0f, 0xfc, 0x6f, 0x2e, 0x67, 0xed, 0x87, 0xe4, 0xcb, 0x1b, 0xa0, 0x27, 0xcf, 0x42,
1458	0xf4, 0xbf, 0x4a, 0x40, 0x6e, 0x54, 0x31, 0xa0, 0xfb, 0x17, 0xd0, 0x17, 0x5f, 0xfb, 0x7d, 0xf8,
1459	0x16, 0x67, 0x60, 0x9c, 0x2a, 0xe2, 0x44, 0x3c, 0x96, 0x1e, 0x5e, 0x80, 0x88, 0x83, 0x00, 0x0c,
1460	0xa3, 0xe2, 0x9f, 0x02, 0x64, 0x87, 0xff, 0x9c, 0x98, 0xbc, 0x11, 0xc6, 0xfe, 0xe9, 0x71, 0x1e,
1461	0x0d, 0xce, 0x4b, 0xf9, 0x2e, 0xe4, 0x47, 0x01, 0x2a, 0x5d, 0x87, 0x1e, 0x9f, 0x81, 0x3b, 0x36,
1462	0xed, 0x56, 0x2f, 0x30, 0xed, 0x0a, 0xdb, 0x2f, 0xe5, 0xa5, 0x71, 0x92, 0xf3, 0xef, 0x72, 0xf1,
1463	0x90, 0x52, 0xc7, 0x5b, 0x2f, 0x95, 0x9e, 0x3e, 0x7d, 0x3a, 0xaa, 0x47, 0x71, 0x8f, 0x1e, 0xfa,
1464	0x3f, 0xfe, 0x7f, 0xdb, 0xe9, 0x60, 0x7a, 0x60, 0xbb, 0xdd, 0x8d, 0x9f, 0xc1, 0x37, 0x0d, 0xbb,
1465	0x3b, 0x81, 0x92, 0x8d, 0x42, 0x24, 0x65, 0x1a, 0xc4, 0xed, 0x9b, 0x06, 0xd9, 0x20, 0xbe, 0x8c,
1466	0xb4, 0xeb, 0xc2, 0x27, 0x8f, 0x82, 0xcc, 0xb6, 0xdd, 0xc1, 0x56, 0xbb, 0x68, 0xbb, 0xed, 0x52,
1467	0x9b, 0x58, 0x1c, 0x6d, 0x29, 0xfa, 0xfc, 0xb8, 0x7f, 0x43, 0x3c, 0xe4, 0x6f, 0xfb, 0xb3, 0x3c,
1468	0xf6, 0xfe, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x26, 0x1c, 0x79, 0x8a, 0xb1, 0x18, 0x00, 0x00,
1469}
1470
1471// Reference imports to suppress errors if they are not otherwise used.
1472var _ context.Context
1473var _ grpc.ClientConnInterface
1474
1475// This is a compile-time assertion to ensure that this generated file
1476// is compatible with the grpc package it is being compiled against.
1477const _ = grpc.SupportPackageIsVersion6
1478
1479// CloudRedisClient is the client API for CloudRedis service.
1480//
1481// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1482type CloudRedisClient interface {
1483	// Lists all Redis instances owned by a project in either the specified
1484	// location (region) or all locations.
1485	//
1486	// The location should have the following format:
1487	//
1488	// * `projects/{project_id}/locations/{location_id}`
1489	//
1490	// If `location_id` is specified as `-` (wildcard), then all regions
1491	// available to the project are queried, and the results are aggregated.
1492	ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error)
1493	// Gets the details of a specific Redis instance.
1494	GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error)
1495	// Creates a Redis instance based on the specified tier and memory size.
1496	//
1497	// By default, the instance is accessible from the project's
1498	// [default network](/compute/docs/networks-and-firewalls#networks).
1499	//
1500	// The creation is executed asynchronously and callers may check the returned
1501	// operation to track its progress. Once the operation is completed the Redis
1502	// instance will be fully functional. Completed longrunning.Operation will
1503	// contain the new instance object in the response field.
1504	//
1505	// The returned operation is automatically deleted after a few hours, so there
1506	// is no need to call DeleteOperation.
1507	CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
1508	// Updates the metadata and configuration of a specific Redis instance.
1509	//
1510	// Completed longrunning.Operation will contain the new instance object
1511	// in the response field. The returned operation is automatically deleted
1512	// after a few hours, so there is no need to call DeleteOperation.
1513	UpdateInstance(ctx context.Context, in *UpdateInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
1514	// Upgrades Redis instance to the newer Redis version specified in the
1515	// request.
1516	UpgradeInstance(ctx context.Context, in *UpgradeInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
1517	// Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
1518	//
1519	// Redis may stop serving during this operation. Instance state will be
1520	// IMPORTING for entire operation. When complete, the instance will contain
1521	// only data from the imported file.
1522	//
1523	// The returned operation is automatically deleted after a few hours, so
1524	// there is no need to call DeleteOperation.
1525	ImportInstance(ctx context.Context, in *ImportInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
1526	// Export Redis instance data into a Redis RDB format file in Cloud Storage.
1527	//
1528	// Redis will continue serving during this operation.
1529	//
1530	// The returned operation is automatically deleted after a few hours, so
1531	// there is no need to call DeleteOperation.
1532	ExportInstance(ctx context.Context, in *ExportInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
1533	// Initiates a failover of the master node to current replica node for a
1534	// specific STANDARD tier Cloud Memorystore for Redis instance.
1535	FailoverInstance(ctx context.Context, in *FailoverInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
1536	// Deletes a specific Redis instance.  Instance stops serving and data is
1537	// deleted.
1538	DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
1539}
1540
1541type cloudRedisClient struct {
1542	cc grpc.ClientConnInterface
1543}
1544
1545func NewCloudRedisClient(cc grpc.ClientConnInterface) CloudRedisClient {
1546	return &cloudRedisClient{cc}
1547}
1548
1549func (c *cloudRedisClient) ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error) {
1550	out := new(ListInstancesResponse)
1551	err := c.cc.Invoke(ctx, "/google.cloud.redis.v1beta1.CloudRedis/ListInstances", in, out, opts...)
1552	if err != nil {
1553		return nil, err
1554	}
1555	return out, nil
1556}
1557
1558func (c *cloudRedisClient) GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error) {
1559	out := new(Instance)
1560	err := c.cc.Invoke(ctx, "/google.cloud.redis.v1beta1.CloudRedis/GetInstance", in, out, opts...)
1561	if err != nil {
1562		return nil, err
1563	}
1564	return out, nil
1565}
1566
1567func (c *cloudRedisClient) CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1568	out := new(longrunning.Operation)
1569	err := c.cc.Invoke(ctx, "/google.cloud.redis.v1beta1.CloudRedis/CreateInstance", in, out, opts...)
1570	if err != nil {
1571		return nil, err
1572	}
1573	return out, nil
1574}
1575
1576func (c *cloudRedisClient) UpdateInstance(ctx context.Context, in *UpdateInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1577	out := new(longrunning.Operation)
1578	err := c.cc.Invoke(ctx, "/google.cloud.redis.v1beta1.CloudRedis/UpdateInstance", in, out, opts...)
1579	if err != nil {
1580		return nil, err
1581	}
1582	return out, nil
1583}
1584
1585func (c *cloudRedisClient) UpgradeInstance(ctx context.Context, in *UpgradeInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1586	out := new(longrunning.Operation)
1587	err := c.cc.Invoke(ctx, "/google.cloud.redis.v1beta1.CloudRedis/UpgradeInstance", in, out, opts...)
1588	if err != nil {
1589		return nil, err
1590	}
1591	return out, nil
1592}
1593
1594func (c *cloudRedisClient) ImportInstance(ctx context.Context, in *ImportInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1595	out := new(longrunning.Operation)
1596	err := c.cc.Invoke(ctx, "/google.cloud.redis.v1beta1.CloudRedis/ImportInstance", in, out, opts...)
1597	if err != nil {
1598		return nil, err
1599	}
1600	return out, nil
1601}
1602
1603func (c *cloudRedisClient) ExportInstance(ctx context.Context, in *ExportInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1604	out := new(longrunning.Operation)
1605	err := c.cc.Invoke(ctx, "/google.cloud.redis.v1beta1.CloudRedis/ExportInstance", in, out, opts...)
1606	if err != nil {
1607		return nil, err
1608	}
1609	return out, nil
1610}
1611
1612func (c *cloudRedisClient) FailoverInstance(ctx context.Context, in *FailoverInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1613	out := new(longrunning.Operation)
1614	err := c.cc.Invoke(ctx, "/google.cloud.redis.v1beta1.CloudRedis/FailoverInstance", in, out, opts...)
1615	if err != nil {
1616		return nil, err
1617	}
1618	return out, nil
1619}
1620
1621func (c *cloudRedisClient) DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) {
1622	out := new(longrunning.Operation)
1623	err := c.cc.Invoke(ctx, "/google.cloud.redis.v1beta1.CloudRedis/DeleteInstance", in, out, opts...)
1624	if err != nil {
1625		return nil, err
1626	}
1627	return out, nil
1628}
1629
1630// CloudRedisServer is the server API for CloudRedis service.
1631type CloudRedisServer interface {
1632	// Lists all Redis instances owned by a project in either the specified
1633	// location (region) or all locations.
1634	//
1635	// The location should have the following format:
1636	//
1637	// * `projects/{project_id}/locations/{location_id}`
1638	//
1639	// If `location_id` is specified as `-` (wildcard), then all regions
1640	// available to the project are queried, and the results are aggregated.
1641	ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error)
1642	// Gets the details of a specific Redis instance.
1643	GetInstance(context.Context, *GetInstanceRequest) (*Instance, error)
1644	// Creates a Redis instance based on the specified tier and memory size.
1645	//
1646	// By default, the instance is accessible from the project's
1647	// [default network](/compute/docs/networks-and-firewalls#networks).
1648	//
1649	// The creation is executed asynchronously and callers may check the returned
1650	// operation to track its progress. Once the operation is completed the Redis
1651	// instance will be fully functional. Completed longrunning.Operation will
1652	// contain the new instance object in the response field.
1653	//
1654	// The returned operation is automatically deleted after a few hours, so there
1655	// is no need to call DeleteOperation.
1656	CreateInstance(context.Context, *CreateInstanceRequest) (*longrunning.Operation, error)
1657	// Updates the metadata and configuration of a specific Redis instance.
1658	//
1659	// Completed longrunning.Operation will contain the new instance object
1660	// in the response field. The returned operation is automatically deleted
1661	// after a few hours, so there is no need to call DeleteOperation.
1662	UpdateInstance(context.Context, *UpdateInstanceRequest) (*longrunning.Operation, error)
1663	// Upgrades Redis instance to the newer Redis version specified in the
1664	// request.
1665	UpgradeInstance(context.Context, *UpgradeInstanceRequest) (*longrunning.Operation, error)
1666	// Import a Redis RDB snapshot file from Cloud Storage into a Redis instance.
1667	//
1668	// Redis may stop serving during this operation. Instance state will be
1669	// IMPORTING for entire operation. When complete, the instance will contain
1670	// only data from the imported file.
1671	//
1672	// The returned operation is automatically deleted after a few hours, so
1673	// there is no need to call DeleteOperation.
1674	ImportInstance(context.Context, *ImportInstanceRequest) (*longrunning.Operation, error)
1675	// Export Redis instance data into a Redis RDB format file in Cloud Storage.
1676	//
1677	// Redis will continue serving during this operation.
1678	//
1679	// The returned operation is automatically deleted after a few hours, so
1680	// there is no need to call DeleteOperation.
1681	ExportInstance(context.Context, *ExportInstanceRequest) (*longrunning.Operation, error)
1682	// Initiates a failover of the master node to current replica node for a
1683	// specific STANDARD tier Cloud Memorystore for Redis instance.
1684	FailoverInstance(context.Context, *FailoverInstanceRequest) (*longrunning.Operation, error)
1685	// Deletes a specific Redis instance.  Instance stops serving and data is
1686	// deleted.
1687	DeleteInstance(context.Context, *DeleteInstanceRequest) (*longrunning.Operation, error)
1688}
1689
1690// UnimplementedCloudRedisServer can be embedded to have forward compatible implementations.
1691type UnimplementedCloudRedisServer struct {
1692}
1693
1694func (*UnimplementedCloudRedisServer) ListInstances(ctx context.Context, req *ListInstancesRequest) (*ListInstancesResponse, error) {
1695	return nil, status.Errorf(codes.Unimplemented, "method ListInstances not implemented")
1696}
1697func (*UnimplementedCloudRedisServer) GetInstance(ctx context.Context, req *GetInstanceRequest) (*Instance, error) {
1698	return nil, status.Errorf(codes.Unimplemented, "method GetInstance not implemented")
1699}
1700func (*UnimplementedCloudRedisServer) CreateInstance(ctx context.Context, req *CreateInstanceRequest) (*longrunning.Operation, error) {
1701	return nil, status.Errorf(codes.Unimplemented, "method CreateInstance not implemented")
1702}
1703func (*UnimplementedCloudRedisServer) UpdateInstance(ctx context.Context, req *UpdateInstanceRequest) (*longrunning.Operation, error) {
1704	return nil, status.Errorf(codes.Unimplemented, "method UpdateInstance not implemented")
1705}
1706func (*UnimplementedCloudRedisServer) UpgradeInstance(ctx context.Context, req *UpgradeInstanceRequest) (*longrunning.Operation, error) {
1707	return nil, status.Errorf(codes.Unimplemented, "method UpgradeInstance not implemented")
1708}
1709func (*UnimplementedCloudRedisServer) ImportInstance(ctx context.Context, req *ImportInstanceRequest) (*longrunning.Operation, error) {
1710	return nil, status.Errorf(codes.Unimplemented, "method ImportInstance not implemented")
1711}
1712func (*UnimplementedCloudRedisServer) ExportInstance(ctx context.Context, req *ExportInstanceRequest) (*longrunning.Operation, error) {
1713	return nil, status.Errorf(codes.Unimplemented, "method ExportInstance not implemented")
1714}
1715func (*UnimplementedCloudRedisServer) FailoverInstance(ctx context.Context, req *FailoverInstanceRequest) (*longrunning.Operation, error) {
1716	return nil, status.Errorf(codes.Unimplemented, "method FailoverInstance not implemented")
1717}
1718func (*UnimplementedCloudRedisServer) DeleteInstance(ctx context.Context, req *DeleteInstanceRequest) (*longrunning.Operation, error) {
1719	return nil, status.Errorf(codes.Unimplemented, "method DeleteInstance not implemented")
1720}
1721
1722func RegisterCloudRedisServer(s *grpc.Server, srv CloudRedisServer) {
1723	s.RegisterService(&_CloudRedis_serviceDesc, srv)
1724}
1725
1726func _CloudRedis_ListInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1727	in := new(ListInstancesRequest)
1728	if err := dec(in); err != nil {
1729		return nil, err
1730	}
1731	if interceptor == nil {
1732		return srv.(CloudRedisServer).ListInstances(ctx, in)
1733	}
1734	info := &grpc.UnaryServerInfo{
1735		Server:     srv,
1736		FullMethod: "/google.cloud.redis.v1beta1.CloudRedis/ListInstances",
1737	}
1738	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1739		return srv.(CloudRedisServer).ListInstances(ctx, req.(*ListInstancesRequest))
1740	}
1741	return interceptor(ctx, in, info, handler)
1742}
1743
1744func _CloudRedis_GetInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1745	in := new(GetInstanceRequest)
1746	if err := dec(in); err != nil {
1747		return nil, err
1748	}
1749	if interceptor == nil {
1750		return srv.(CloudRedisServer).GetInstance(ctx, in)
1751	}
1752	info := &grpc.UnaryServerInfo{
1753		Server:     srv,
1754		FullMethod: "/google.cloud.redis.v1beta1.CloudRedis/GetInstance",
1755	}
1756	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1757		return srv.(CloudRedisServer).GetInstance(ctx, req.(*GetInstanceRequest))
1758	}
1759	return interceptor(ctx, in, info, handler)
1760}
1761
1762func _CloudRedis_CreateInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1763	in := new(CreateInstanceRequest)
1764	if err := dec(in); err != nil {
1765		return nil, err
1766	}
1767	if interceptor == nil {
1768		return srv.(CloudRedisServer).CreateInstance(ctx, in)
1769	}
1770	info := &grpc.UnaryServerInfo{
1771		Server:     srv,
1772		FullMethod: "/google.cloud.redis.v1beta1.CloudRedis/CreateInstance",
1773	}
1774	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1775		return srv.(CloudRedisServer).CreateInstance(ctx, req.(*CreateInstanceRequest))
1776	}
1777	return interceptor(ctx, in, info, handler)
1778}
1779
1780func _CloudRedis_UpdateInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1781	in := new(UpdateInstanceRequest)
1782	if err := dec(in); err != nil {
1783		return nil, err
1784	}
1785	if interceptor == nil {
1786		return srv.(CloudRedisServer).UpdateInstance(ctx, in)
1787	}
1788	info := &grpc.UnaryServerInfo{
1789		Server:     srv,
1790		FullMethod: "/google.cloud.redis.v1beta1.CloudRedis/UpdateInstance",
1791	}
1792	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1793		return srv.(CloudRedisServer).UpdateInstance(ctx, req.(*UpdateInstanceRequest))
1794	}
1795	return interceptor(ctx, in, info, handler)
1796}
1797
1798func _CloudRedis_UpgradeInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1799	in := new(UpgradeInstanceRequest)
1800	if err := dec(in); err != nil {
1801		return nil, err
1802	}
1803	if interceptor == nil {
1804		return srv.(CloudRedisServer).UpgradeInstance(ctx, in)
1805	}
1806	info := &grpc.UnaryServerInfo{
1807		Server:     srv,
1808		FullMethod: "/google.cloud.redis.v1beta1.CloudRedis/UpgradeInstance",
1809	}
1810	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1811		return srv.(CloudRedisServer).UpgradeInstance(ctx, req.(*UpgradeInstanceRequest))
1812	}
1813	return interceptor(ctx, in, info, handler)
1814}
1815
1816func _CloudRedis_ImportInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1817	in := new(ImportInstanceRequest)
1818	if err := dec(in); err != nil {
1819		return nil, err
1820	}
1821	if interceptor == nil {
1822		return srv.(CloudRedisServer).ImportInstance(ctx, in)
1823	}
1824	info := &grpc.UnaryServerInfo{
1825		Server:     srv,
1826		FullMethod: "/google.cloud.redis.v1beta1.CloudRedis/ImportInstance",
1827	}
1828	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1829		return srv.(CloudRedisServer).ImportInstance(ctx, req.(*ImportInstanceRequest))
1830	}
1831	return interceptor(ctx, in, info, handler)
1832}
1833
1834func _CloudRedis_ExportInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1835	in := new(ExportInstanceRequest)
1836	if err := dec(in); err != nil {
1837		return nil, err
1838	}
1839	if interceptor == nil {
1840		return srv.(CloudRedisServer).ExportInstance(ctx, in)
1841	}
1842	info := &grpc.UnaryServerInfo{
1843		Server:     srv,
1844		FullMethod: "/google.cloud.redis.v1beta1.CloudRedis/ExportInstance",
1845	}
1846	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1847		return srv.(CloudRedisServer).ExportInstance(ctx, req.(*ExportInstanceRequest))
1848	}
1849	return interceptor(ctx, in, info, handler)
1850}
1851
1852func _CloudRedis_FailoverInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1853	in := new(FailoverInstanceRequest)
1854	if err := dec(in); err != nil {
1855		return nil, err
1856	}
1857	if interceptor == nil {
1858		return srv.(CloudRedisServer).FailoverInstance(ctx, in)
1859	}
1860	info := &grpc.UnaryServerInfo{
1861		Server:     srv,
1862		FullMethod: "/google.cloud.redis.v1beta1.CloudRedis/FailoverInstance",
1863	}
1864	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1865		return srv.(CloudRedisServer).FailoverInstance(ctx, req.(*FailoverInstanceRequest))
1866	}
1867	return interceptor(ctx, in, info, handler)
1868}
1869
1870func _CloudRedis_DeleteInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1871	in := new(DeleteInstanceRequest)
1872	if err := dec(in); err != nil {
1873		return nil, err
1874	}
1875	if interceptor == nil {
1876		return srv.(CloudRedisServer).DeleteInstance(ctx, in)
1877	}
1878	info := &grpc.UnaryServerInfo{
1879		Server:     srv,
1880		FullMethod: "/google.cloud.redis.v1beta1.CloudRedis/DeleteInstance",
1881	}
1882	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1883		return srv.(CloudRedisServer).DeleteInstance(ctx, req.(*DeleteInstanceRequest))
1884	}
1885	return interceptor(ctx, in, info, handler)
1886}
1887
1888var _CloudRedis_serviceDesc = grpc.ServiceDesc{
1889	ServiceName: "google.cloud.redis.v1beta1.CloudRedis",
1890	HandlerType: (*CloudRedisServer)(nil),
1891	Methods: []grpc.MethodDesc{
1892		{
1893			MethodName: "ListInstances",
1894			Handler:    _CloudRedis_ListInstances_Handler,
1895		},
1896		{
1897			MethodName: "GetInstance",
1898			Handler:    _CloudRedis_GetInstance_Handler,
1899		},
1900		{
1901			MethodName: "CreateInstance",
1902			Handler:    _CloudRedis_CreateInstance_Handler,
1903		},
1904		{
1905			MethodName: "UpdateInstance",
1906			Handler:    _CloudRedis_UpdateInstance_Handler,
1907		},
1908		{
1909			MethodName: "UpgradeInstance",
1910			Handler:    _CloudRedis_UpgradeInstance_Handler,
1911		},
1912		{
1913			MethodName: "ImportInstance",
1914			Handler:    _CloudRedis_ImportInstance_Handler,
1915		},
1916		{
1917			MethodName: "ExportInstance",
1918			Handler:    _CloudRedis_ExportInstance_Handler,
1919		},
1920		{
1921			MethodName: "FailoverInstance",
1922			Handler:    _CloudRedis_FailoverInstance_Handler,
1923		},
1924		{
1925			MethodName: "DeleteInstance",
1926			Handler:    _CloudRedis_DeleteInstance_Handler,
1927		},
1928	},
1929	Streams:  []grpc.StreamDesc{},
1930	Metadata: "google/cloud/redis/v1beta1/cloud_redis.proto",
1931}
1932