Class BackupClusterRequest.Builder (0.29.0)

public static final class BackupClusterRequest.Builder extends GeneratedMessageV3.Builder<BackupClusterRequest.Builder> implements BackupClusterRequestOrBuilder

Request for [BackupCluster].

Protobuf type google.cloud.redis.cluster.v1beta1.BackupClusterRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackupClusterRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupClusterRequest.Builder
Overrides

build()

public BackupClusterRequest build()
Returns
Type Description
BackupClusterRequest

buildPartial()

public BackupClusterRequest buildPartial()
Returns
Type Description
BackupClusterRequest

clear()

public BackupClusterRequest.Builder clear()
Returns
Type Description
BackupClusterRequest.Builder
Overrides

clearBackupId()

public BackupClusterRequest.Builder clearBackupId()

Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.

optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BackupClusterRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BackupClusterRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackupClusterRequest.Builder
Overrides

clearName()

public BackupClusterRequest.Builder clearName()

Required. Redis cluster resource name using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
BackupClusterRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupClusterRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackupClusterRequest.Builder
Overrides

clearTtl()

public BackupClusterRequest.Builder clearTtl()

Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.

.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BackupClusterRequest.Builder

clone()

public BackupClusterRequest.Builder clone()
Returns
Type Description
BackupClusterRequest.Builder
Overrides

getBackupId()

public String getBackupId()

Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.

optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The backupId.

getBackupIdBytes()

public ByteString getBackupIdBytes()

Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.

optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for backupId.

getDefaultInstanceForType()

public BackupClusterRequest getDefaultInstanceForType()
Returns
Type Description
BackupClusterRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. Redis cluster resource name using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Redis cluster resource name using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getTtl()

public Duration getTtl()

Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.

.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The ttl.

getTtlBuilder()

public Duration.Builder getTtlBuilder()

Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.

.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getTtlOrBuilder()

public DurationOrBuilder getTtlOrBuilder()

Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.

.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

hasBackupId()

public boolean hasBackupId()

Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.

optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the backupId field is set.

hasTtl()

public boolean hasTtl()

Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.

.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the ttl field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BackupClusterRequest other)

public BackupClusterRequest.Builder mergeFrom(BackupClusterRequest other)
Parameter
Name Description
other BackupClusterRequest
Returns
Type Description
BackupClusterRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackupClusterRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupClusterRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BackupClusterRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BackupClusterRequest.Builder
Overrides

mergeTtl(Duration value)

public BackupClusterRequest.Builder mergeTtl(Duration value)

Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.

.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
BackupClusterRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackupClusterRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupClusterRequest.Builder
Overrides

setBackupId(String value)

public BackupClusterRequest.Builder setBackupId(String value)

Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.

optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The backupId to set.

Returns
Type Description
BackupClusterRequest.Builder

This builder for chaining.

setBackupIdBytes(ByteString value)

public BackupClusterRequest.Builder setBackupIdBytes(ByteString value)

Optional. The id of the backup to be created. If not specified, the default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.

optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for backupId to set.

Returns
Type Description
BackupClusterRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BackupClusterRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupClusterRequest.Builder
Overrides

setName(String value)

public BackupClusterRequest.Builder setName(String value)

Required. Redis cluster resource name using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
BackupClusterRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BackupClusterRequest.Builder setNameBytes(ByteString value)

Required. Redis cluster resource name using the form: projects/{project_id}/locations/{location_id}/clusters/{cluster_id} where location_id refers to a GCP region.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
BackupClusterRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BackupClusterRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BackupClusterRequest.Builder
Overrides

setTtl(Duration value)

public BackupClusterRequest.Builder setTtl(Duration value)

Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.

.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Duration
Returns
Type Description
BackupClusterRequest.Builder

setTtl(Duration.Builder builderForValue)

public BackupClusterRequest.Builder setTtl(Duration.Builder builderForValue)

Optional. TTL for the backup to expire. Value range is 1 day to 100 years. If not specified, the default value is 100 years.

.google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupClusterRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BackupClusterRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupClusterRequest.Builder
Overrides