Class BackupCollection.Builder (0.30.0)

public static final class BackupCollection.Builder extends GeneratedMessageV3.Builder<BackupCollection.Builder> implements BackupCollectionOrBuilder

BackupCollection of a cluster.

Protobuf type google.cloud.redis.cluster.v1.BackupCollection

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackupCollection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackupCollection.Builder
Overrides

build()

public BackupCollection build()
Returns
TypeDescription
BackupCollection

buildPartial()

public BackupCollection buildPartial()
Returns
TypeDescription
BackupCollection

clear()

public BackupCollection.Builder clear()
Returns
TypeDescription
BackupCollection.Builder
Overrides

clearCluster()

public BackupCollection.Builder clearCluster()

Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}

string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

clearClusterUid()

public BackupCollection.Builder clearClusterUid()

Output only. The cluster uid of the backup collection.

string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BackupCollection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BackupCollection.Builder
Overrides

clearKmsKey()

public BackupCollection.Builder clearKmsKey()

Output only. The KMS key used to encrypt the backups under this backup collection.

string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

clearName()

public BackupCollection.Builder clearName()

Identifier. Full resource path of the backup collection.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupCollection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BackupCollection.Builder
Overrides

clearUid()

public BackupCollection.Builder clearUid()

Output only. System assigned unique identifier of the backup collection.

string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

clone()

public BackupCollection.Builder clone()
Returns
TypeDescription
BackupCollection.Builder
Overrides

getCluster()

public String getCluster()

Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}

string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The cluster.

getClusterBytes()

public ByteString getClusterBytes()

Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}

string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for cluster.

getClusterUid()

public String getClusterUid()

Output only. The cluster uid of the backup collection.

string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
TypeDescription
String

The clusterUid.

getClusterUidBytes()

public ByteString getClusterUidBytes()

Output only. The cluster uid of the backup collection.

string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
TypeDescription
ByteString

The bytes for clusterUid.

getDefaultInstanceForType()

public BackupCollection getDefaultInstanceForType()
Returns
TypeDescription
BackupCollection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKmsKey()

public String getKmsKey()

Output only. The KMS key used to encrypt the backups under this backup collection.

string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The kmsKey.

getKmsKeyBytes()

public ByteString getKmsKeyBytes()

Output only. The KMS key used to encrypt the backups under this backup collection.

string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for kmsKey.

getName()

public String getName()

Identifier. Full resource path of the backup collection.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Full resource path of the backup collection.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
ByteString

The bytes for name.

getUid()

public String getUid()

Output only. System assigned unique identifier of the backup collection.

string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. System assigned unique identifier of the backup collection.

string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
TypeDescription
ByteString

The bytes for uid.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BackupCollection other)

public BackupCollection.Builder mergeFrom(BackupCollection other)
Parameter
NameDescription
otherBackupCollection
Returns
TypeDescription
BackupCollection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackupCollection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupCollection.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BackupCollection.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BackupCollection.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackupCollection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackupCollection.Builder
Overrides

setCluster(String value)

public BackupCollection.Builder setCluster(String value)

Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}

string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The cluster to set.

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

setClusterBytes(ByteString value)

public BackupCollection.Builder setClusterBytes(ByteString value)

Output only. The full resource path of the cluster the backup collection belongs to. Example: projects/{project}/locations/{location}/clusters/{cluster}

string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for cluster to set.

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

setClusterUid(String value)

public BackupCollection.Builder setClusterUid(String value)

Output only. The cluster uid of the backup collection.

string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
NameDescription
valueString

The clusterUid to set.

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

setClusterUidBytes(ByteString value)

public BackupCollection.Builder setClusterUidBytes(ByteString value)

Output only. The cluster uid of the backup collection.

string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
NameDescription
valueByteString

The bytes for clusterUid to set.

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BackupCollection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackupCollection.Builder
Overrides

setKmsKey(String value)

public BackupCollection.Builder setKmsKey(String value)

Output only. The KMS key used to encrypt the backups under this backup collection.

string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The kmsKey to set.

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

setKmsKeyBytes(ByteString value)

public BackupCollection.Builder setKmsKeyBytes(ByteString value)

Output only. The KMS key used to encrypt the backups under this backup collection.

string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for kmsKey to set.

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

setName(String value)

public BackupCollection.Builder setName(String value)

Identifier. Full resource path of the backup collection.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BackupCollection.Builder setNameBytes(ByteString value)

Identifier. Full resource path of the backup collection.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

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

public BackupCollection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BackupCollection.Builder
Overrides

setUid(String value)

public BackupCollection.Builder setUid(String value)

Output only. System assigned unique identifier of the backup collection.

string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

setUidBytes(ByteString value)

public BackupCollection.Builder setUidBytes(ByteString value)

Output only. System assigned unique identifier of the backup collection.

string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
BackupCollection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BackupCollection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BackupCollection.Builder
Overrides