public static final class Backup.Builder extends GeneratedMessageV3.Builder<Backup.Builder> implements BackupOrBuilderBackup of a cluster.
Protobuf type google.cloud.redis.cluster.v1.Backup
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Backup.BuilderImplements
BackupOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllBackupFiles(Iterable<? extends BackupFile> values)
public Backup.Builder addAllBackupFiles(Iterable<? extends BackupFile> values)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.redis.cluster.v1.BackupFile> |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addBackupFiles(BackupFile value)
public Backup.Builder addBackupFiles(BackupFile value)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupFile |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addBackupFiles(BackupFile.Builder builderForValue)
public Backup.Builder addBackupFiles(BackupFile.Builder builderForValue)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BackupFile.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addBackupFiles(int index, BackupFile value)
public Backup.Builder addBackupFiles(int index, BackupFile value)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BackupFile |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addBackupFiles(int index, BackupFile.Builder builderForValue)
public Backup.Builder addBackupFiles(int index, BackupFile.Builder builderForValue)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BackupFile.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
addBackupFilesBuilder()
public BackupFile.Builder addBackupFilesBuilder()Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
BackupFile.Builder |
|
addBackupFilesBuilder(int index)
public BackupFile.Builder addBackupFilesBuilder(int index)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupFile.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Backup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
build()
public Backup build()| Returns | |
|---|---|
| Type | Description |
Backup |
|
buildPartial()
public Backup buildPartial()| Returns | |
|---|---|
| Type | Description |
Backup |
|
clear()
public Backup.Builder clear()| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearBackupFiles()
public Backup.Builder clearBackupFiles()Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearBackupType()
public Backup.Builder clearBackupType()Output only. Type of the backup.
.google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearCluster()
public Backup.Builder clearCluster()Output only. Cluster resource path of this backup.
string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearClusterUid()
public Backup.Builder clearClusterUid()Output only. Cluster uid of this backup.
string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearCreateTime()
public Backup.Builder clearCreateTime()Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearEncryptionInfo()
public Backup.Builder clearEncryptionInfo()Output only. Encryption information of the backup.
.google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearEngineVersion()
public Backup.Builder clearEngineVersion()Output only. redis-7.2, valkey-7.5
string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearExpireTime()
public Backup.Builder clearExpireTime()Output only. The time when the backup will expire.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public Backup.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearName()
public Backup.Builder clearName()Identifier. Full resource path of the backup. the last part of the name is the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster UID] OR customer specified while backup cluster. Example: 20240515123000_1234
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearNodeType()
public Backup.Builder clearNodeType()Output only. Node type of the cluster.
.google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Backup.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
clearReplicaCount()
public Backup.Builder clearReplicaCount()Output only. Number of replicas for the cluster.
int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearShardCount()
public Backup.Builder clearShardCount()Output only. Number of shards for the cluster.
int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearState()
public Backup.Builder clearState()Output only. State of the backup.
.google.cloud.redis.cluster.v1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearTotalSizeBytes()
public Backup.Builder clearTotalSizeBytes()Output only. Total size of the backup in bytes.
int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clearUid()
public Backup.Builder clearUid()Output only. System assigned unique identifier of the backup.
string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
clone()
public Backup.Builder clone()| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
getBackupFiles(int index)
public BackupFile getBackupFiles(int index)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupFile |
|
getBackupFilesBuilder(int index)
public BackupFile.Builder getBackupFilesBuilder(int index)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupFile.Builder |
|
getBackupFilesBuilderList()
public List<BackupFile.Builder> getBackupFilesBuilderList()Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getBackupFilesCount()
public int getBackupFilesCount()Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
|
getBackupFilesList()
public List<BackupFile> getBackupFilesList()Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<BackupFile> |
|
getBackupFilesOrBuilder(int index)
public BackupFileOrBuilder getBackupFilesOrBuilder(int index)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BackupFileOrBuilder |
|
getBackupFilesOrBuilderList()
public List<? extends BackupFileOrBuilder> getBackupFilesOrBuilderList()Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.redis.cluster.v1.BackupFileOrBuilder> |
|
getBackupType()
public Backup.BackupType getBackupType()Output only. Type of the backup.
.google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.BackupType |
The backupType. |
getBackupTypeValue()
public int getBackupTypeValue()Output only. Type of the backup.
.google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for backupType. |
getCluster()
public String getCluster()Output only. Cluster resource path of this backup.
string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The cluster. |
getClusterBytes()
public ByteString getClusterBytes()Output only. Cluster resource path of this backup.
string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for cluster. |
getClusterUid()
public String getClusterUid()Output only. Cluster uid of this backup.
string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The clusterUid. |
getClusterUidBytes()
public ByteString getClusterUidBytes()Output only. Cluster uid of this backup.
string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clusterUid. |
getCreateTime()
public Timestamp getCreateTime()Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public Backup getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Backup |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEncryptionInfo()
public EncryptionInfo getEncryptionInfo()Output only. Encryption information of the backup.
.google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
EncryptionInfo |
The encryptionInfo. |
getEncryptionInfoBuilder()
public EncryptionInfo.Builder getEncryptionInfoBuilder()Output only. Encryption information of the backup.
.google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
EncryptionInfo.Builder |
|
getEncryptionInfoOrBuilder()
public EncryptionInfoOrBuilder getEncryptionInfoOrBuilder()Output only. Encryption information of the backup.
.google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
EncryptionInfoOrBuilder |
|
getEngineVersion()
public String getEngineVersion()Output only. redis-7.2, valkey-7.5
string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The engineVersion. |
getEngineVersionBytes()
public ByteString getEngineVersionBytes()Output only. redis-7.2, valkey-7.5
string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for engineVersion. |
getExpireTime()
public Timestamp getExpireTime()Output only. The time when the backup will expire.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The expireTime. |
getExpireTimeBuilder()
public Timestamp.Builder getExpireTimeBuilder()Output only. The time when the backup will expire.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getExpireTimeOrBuilder()
public TimestampOrBuilder getExpireTimeOrBuilder()Output only. The time when the backup will expire.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getName()
public String getName()Identifier. Full resource path of the backup. the last part of the name is the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster UID] OR customer specified while backup cluster. Example: 20240515123000_1234
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. the last part of the name is the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster UID] OR customer specified while backup cluster. Example: 20240515123000_1234
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getNodeType()
public NodeType getNodeType()Output only. Node type of the cluster.
.google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
NodeType |
The nodeType. |
getNodeTypeValue()
public int getNodeTypeValue()Output only. Node type of the cluster.
.google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for nodeType. |
getReplicaCount()
public int getReplicaCount()Output only. Number of replicas for the cluster.
int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The replicaCount. |
getShardCount()
public int getShardCount()Output only. Number of shards for the cluster.
int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The shardCount. |
getState()
public Backup.State getState()Output only. State of the backup.
.google.cloud.redis.cluster.v1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Backup.State |
The state. |
getStateValue()
public int getStateValue()Output only. State of the backup.
.google.cloud.redis.cluster.v1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
getTotalSizeBytes()
public long getTotalSizeBytes()Output only. Total size of the backup in bytes.
int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The totalSizeBytes. |
getUid()
public String getUid()Output only. System assigned unique identifier of the backup.
string uid = 15 [(.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.
string uid = 15 [(.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 was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasEncryptionInfo()
public boolean hasEncryptionInfo()Output only. Encryption information of the backup.
.google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the encryptionInfo field is set. |
hasExpireTime()
public boolean hasExpireTime()Output only. The time when the backup will expire.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the expireTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public Backup.Builder mergeCreateTime(Timestamp value)Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeEncryptionInfo(EncryptionInfo value)
public Backup.Builder mergeEncryptionInfo(EncryptionInfo value)Output only. Encryption information of the backup.
.google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
EncryptionInfo |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeExpireTime(Timestamp value)
public Backup.Builder mergeExpireTime(Timestamp value)Output only. The time when the backup will expire.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeFrom(Backup other)
public Backup.Builder mergeFrom(Backup other)| Parameter | |
|---|---|
| Name | Description |
other |
Backup |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Backup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Backup.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Backup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
removeBackupFiles(int index)
public Backup.Builder removeBackupFiles(int index)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setBackupFiles(int index, BackupFile value)
public Backup.Builder setBackupFiles(int index, BackupFile value)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BackupFile |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setBackupFiles(int index, BackupFile.Builder builderForValue)
public Backup.Builder setBackupFiles(int index, BackupFile.Builder builderForValue)Output only. List of backup files of the backup.
repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BackupFile.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setBackupType(Backup.BackupType value)
public Backup.Builder setBackupType(Backup.BackupType value)Output only. Type of the backup.
.google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Backup.BackupTypeThe backupType to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setBackupTypeValue(int value)
public Backup.Builder setBackupTypeValue(int value)Output only. Type of the backup.
.google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for backupType to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setCluster(String value)
public Backup.Builder setCluster(String value)Output only. Cluster resource path of this backup.
string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cluster to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setClusterBytes(ByteString value)
public Backup.Builder setClusterBytes(ByteString value)Output only. Cluster resource path of this backup.
string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cluster to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setClusterUid(String value)
public Backup.Builder setClusterUid(String value)Output only. Cluster uid of this backup.
string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe clusterUid to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setClusterUidBytes(ByteString value)
public Backup.Builder setClusterUidBytes(ByteString value)Output only. Cluster uid of this backup.
string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for clusterUid to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setCreateTime(Timestamp value)
public Backup.Builder setCreateTime(Timestamp value)Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public Backup.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The time when the backup was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setEncryptionInfo(EncryptionInfo value)
public Backup.Builder setEncryptionInfo(EncryptionInfo value)Output only. Encryption information of the backup.
.google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
EncryptionInfo |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setEncryptionInfo(EncryptionInfo.Builder builderForValue)
public Backup.Builder setEncryptionInfo(EncryptionInfo.Builder builderForValue)Output only. Encryption information of the backup.
.google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
EncryptionInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setEngineVersion(String value)
public Backup.Builder setEngineVersion(String value)Output only. redis-7.2, valkey-7.5
string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe engineVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setEngineVersionBytes(ByteString value)
public Backup.Builder setEngineVersionBytes(ByteString value)Output only. redis-7.2, valkey-7.5
string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for engineVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setExpireTime(Timestamp value)
public Backup.Builder setExpireTime(Timestamp value)Output only. The time when the backup will expire.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setExpireTime(Timestamp.Builder builderForValue)
public Backup.Builder setExpireTime(Timestamp.Builder builderForValue)Output only. The time when the backup will expire.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public Backup.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setName(String value)
public Backup.Builder setName(String value)Identifier. Full resource path of the backup. the last part of the name is the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster UID] OR customer specified while backup cluster. Example: 20240515123000_1234
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Backup.Builder setNameBytes(ByteString value)Identifier. Full resource path of the backup. the last part of the name is the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster UID] OR customer specified while backup cluster. Example: 20240515123000_1234
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setNodeType(NodeType value)
public Backup.Builder setNodeType(NodeType value)Output only. Node type of the cluster.
.google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
NodeTypeThe nodeType to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setNodeTypeValue(int value)
public Backup.Builder setNodeTypeValue(int value)Output only. Node type of the cluster.
.google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for nodeType to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Backup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|
setReplicaCount(int value)
public Backup.Builder setReplicaCount(int value)Output only. Number of replicas for the cluster.
int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe replicaCount to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setShardCount(int value)
public Backup.Builder setShardCount(int value)Output only. Number of shards for the cluster.
int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe shardCount to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setState(Backup.State value)
public Backup.Builder setState(Backup.State value)Output only. State of the backup.
.google.cloud.redis.cluster.v1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Backup.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setStateValue(int value)
public Backup.Builder setStateValue(int value)Output only. State of the backup.
.google.cloud.redis.cluster.v1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setTotalSizeBytes(long value)
public Backup.Builder setTotalSizeBytes(long value)Output only. Total size of the backup in bytes.
int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe totalSizeBytes to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setUid(String value)
public Backup.Builder setUid(String value)Output only. System assigned unique identifier of the backup.
string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe uid to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setUidBytes(ByteString value)
public Backup.Builder setUidBytes(ByteString value)Output only. System assigned unique identifier of the backup.
string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for uid to set. |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Backup.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Backup.Builder |
|