Class BackupCollection.Builder (0.9.0)

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

BackupCollection of an instance.

Protobuf type google.cloud.memorystore.v1.BackupCollection

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BackupCollection build()
Returns
Type Description
BackupCollection

buildPartial()

public BackupCollection buildPartial()
Returns
Type Description
BackupCollection

clear()

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

clearCreateTime()

public BackupCollection.Builder clearCreateTime()

Output only. The time when the backup collection was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupCollection.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public BackupCollection.Builder clearInstance()

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

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

Returns
Type Description
BackupCollection.Builder

This builder for chaining.

clearInstanceUid()

public BackupCollection.Builder clearInstanceUid()

Output only. The instance uid of the backup collection.

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

Returns
Type Description
BackupCollection.Builder

This builder for chaining.

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
Type Description
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
Type Description
BackupCollection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupCollection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
BackupCollection.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the backup collection was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the backup collection was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the backup collection was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public BackupCollection getDefaultInstanceForType()
Returns
Type Description
BackupCollection

getDescriptorForType()

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

getInstance()

public String getInstance()

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

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

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

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

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

Returns
Type Description
ByteString

The bytes for instance.

getInstanceUid()

public String getInstanceUid()

Output only. The instance uid of the backup collection.

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

Returns
Type Description
String

The instanceUid.

getInstanceUidBytes()

public ByteString getInstanceUidBytes()

Output only. The instance uid of the backup collection.

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

Returns
Type Description
ByteString

The bytes for instanceUid.

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
Type Description
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
Type Description
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
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Full resource path of the backup collection.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for uid.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the backup collection was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public BackupCollection.Builder mergeCreateTime(Timestamp value)

Output only. The time when the backup collection was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupCollection.Builder

mergeFrom(BackupCollection other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCreateTime(Timestamp value)

public BackupCollection.Builder setCreateTime(Timestamp value)

Output only. The time when the backup collection was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupCollection.Builder

setCreateTime(Timestamp.Builder builderForValue)

public BackupCollection.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the backup collection was created.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupCollection.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(String value)

public BackupCollection.Builder setInstance(String value)

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

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

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
BackupCollection.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public BackupCollection.Builder setInstanceBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
BackupCollection.Builder

This builder for chaining.

setInstanceUid(String value)

public BackupCollection.Builder setInstanceUid(String value)

Output only. The instance uid of the backup collection.

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

Parameter
Name Description
value String

The instanceUid to set.

Returns
Type Description
BackupCollection.Builder

This builder for chaining.

setInstanceUidBytes(ByteString value)

public BackupCollection.Builder setInstanceUidBytes(ByteString value)

Output only. The instance uid of the backup collection.

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

Parameter
Name Description
value ByteString

The bytes for instanceUid to set.

Returns
Type Description
BackupCollection.Builder

This builder for chaining.

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
Name Description
value String

The kmsKey to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for kmsKey to set.

Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The uid to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
BackupCollection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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