Class Backup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
com.google.cloud.redis.cluster.v1beta1.Backup.Builder
All Implemented Interfaces:
BackupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Backup

public static final class Backup.Builder extends com.google.protobuf.GeneratedMessage.Builder<Backup.Builder> implements BackupOrBuilder
 Backup of a cluster.
 
Protobuf type google.cloud.redis.cluster.v1beta1.Backup
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
    • clear

      public Backup.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
    • getDefaultInstanceForType

      public Backup getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Backup build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Backup buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Backup.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Backup.Builder>
    • mergeFrom

      public Backup.Builder mergeFrom(Backup other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
    • mergeFrom

      public Backup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Backup.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface BackupOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface BackupOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public Backup.Builder setNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasCreateTime in interface BackupOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when the backup was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface BackupOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Backup.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the backup was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Backup.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the backup was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Backup.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the backup was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time when the backup was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when the backup was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface BackupOrBuilder
    • 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) = { ... }
      Specified by:
      getCluster in interface BackupOrBuilder
      Returns:
      The cluster.
    • getClusterBytes

      public com.google.protobuf.ByteString getClusterBytes()
       Output only. Cluster resource path of this backup.
       
      string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getClusterBytes in interface BackupOrBuilder
      Returns:
      The bytes for cluster.
    • setCluster

      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) = { ... }
      Parameters:
      value - The cluster to set.
      Returns:
      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:
      This builder for chaining.
    • setClusterBytes

      public Backup.Builder setClusterBytes(com.google.protobuf.ByteString value)
       Output only. Cluster resource path of this backup.
       
      string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cluster to set.
      Returns:
      This builder for chaining.
    • 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) = { ... }
      Specified by:
      getClusterUid in interface BackupOrBuilder
      Returns:
      The clusterUid.
    • getClusterUidBytes

      public com.google.protobuf.ByteString getClusterUidBytes()
       Output only. Cluster uid of this backup.
       
      string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getClusterUidBytes in interface BackupOrBuilder
      Returns:
      The bytes for clusterUid.
    • setClusterUid

      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) = { ... }
      Parameters:
      value - The clusterUid to set.
      Returns:
      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:
      This builder for chaining.
    • setClusterUidBytes

      public Backup.Builder setClusterUidBytes(com.google.protobuf.ByteString value)
       Output only. Cluster uid of this backup.
       
      string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for clusterUid to set.
      Returns:
      This builder for chaining.
    • getTotalSizeBytes

      public long getTotalSizeBytes()
       Output only. Total size of the backup in bytes.
       
      int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTotalSizeBytes in interface BackupOrBuilder
      Returns:
      The totalSizeBytes.
    • setTotalSizeBytes

      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];
      Parameters:
      value - The totalSizeBytes to set.
      Returns:
      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:
      This builder for chaining.
    • 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];
      Specified by:
      hasExpireTime in interface BackupOrBuilder
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      public com.google.protobuf.Timestamp getExpireTime()
       Output only. The time when the backup will expire.
       
      .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExpireTime in interface BackupOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public Backup.Builder setExpireTime(com.google.protobuf.Timestamp value)
       Output only. The time when the backup will expire.
       
      .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setExpireTime

      public Backup.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the backup will expire.
       
      .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeExpireTime

      public Backup.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
       Output only. The time when the backup will expire.
       
      .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • getExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
       Output only. The time when the backup will expire.
       
      .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExpireTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
       Output only. The time when the backup will expire.
       
      .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExpireTimeOrBuilder in interface BackupOrBuilder
    • getEngineVersion

      public String getEngineVersion()
       Output only. redis-7.2, valkey-7.5
       
      string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEngineVersion in interface BackupOrBuilder
      Returns:
      The engineVersion.
    • getEngineVersionBytes

      public com.google.protobuf.ByteString getEngineVersionBytes()
       Output only. redis-7.2, valkey-7.5
       
      string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEngineVersionBytes in interface BackupOrBuilder
      Returns:
      The bytes for engineVersion.
    • setEngineVersion

      public Backup.Builder setEngineVersion(String value)
       Output only. redis-7.2, valkey-7.5
       
      string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The engineVersion to set.
      Returns:
      This builder for chaining.
    • clearEngineVersion

      public Backup.Builder clearEngineVersion()
       Output only. redis-7.2, valkey-7.5
       
      string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEngineVersionBytes

      public Backup.Builder setEngineVersionBytes(com.google.protobuf.ByteString value)
       Output only. redis-7.2, valkey-7.5
       
      string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for engineVersion to set.
      Returns:
      This builder for chaining.
    • getBackupFilesList

      public List<BackupFile> getBackupFilesList()
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupFilesList in interface BackupOrBuilder
    • getBackupFilesCount

      public int getBackupFilesCount()
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupFilesCount in interface BackupOrBuilder
    • getBackupFiles

      public BackupFile getBackupFiles(int index)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupFiles in interface BackupOrBuilder
    • setBackupFiles

      public Backup.Builder setBackupFiles(int index, BackupFile value)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setBackupFiles

      public Backup.Builder setBackupFiles(int index, BackupFile.Builder builderForValue)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addBackupFiles

      public Backup.Builder addBackupFiles(BackupFile value)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addBackupFiles

      public Backup.Builder addBackupFiles(int index, BackupFile value)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addBackupFiles

      public Backup.Builder addBackupFiles(BackupFile.Builder builderForValue)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addBackupFiles

      public Backup.Builder addBackupFiles(int index, BackupFile.Builder builderForValue)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllBackupFiles

      public Backup.Builder addAllBackupFiles(Iterable<? extends BackupFile> values)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearBackupFiles

      public Backup.Builder clearBackupFiles()
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeBackupFiles

      public Backup.Builder removeBackupFiles(int index)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getBackupFilesBuilder

      public BackupFile.Builder getBackupFilesBuilder(int index)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getBackupFilesOrBuilder

      public BackupFileOrBuilder getBackupFilesOrBuilder(int index)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupFilesOrBuilder in interface BackupOrBuilder
    • getBackupFilesOrBuilderList

      public List<? extends BackupFileOrBuilder> getBackupFilesOrBuilderList()
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupFilesOrBuilderList in interface BackupOrBuilder
    • addBackupFilesBuilder

      public BackupFile.Builder addBackupFilesBuilder()
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addBackupFilesBuilder

      public BackupFile.Builder addBackupFilesBuilder(int index)
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getBackupFilesBuilderList

      public List<BackupFile.Builder> getBackupFilesBuilderList()
       Output only. List of backup files of the backup.
       
      repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getNodeTypeValue

      public int getNodeTypeValue()
       Output only. Node type of the cluster.
       
      .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNodeTypeValue in interface BackupOrBuilder
      Returns:
      The enum numeric value on the wire for nodeType.
    • setNodeTypeValue

      public Backup.Builder setNodeTypeValue(int value)
       Output only. Node type of the cluster.
       
      .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for nodeType to set.
      Returns:
      This builder for chaining.
    • getNodeType

      public NodeType getNodeType()
       Output only. Node type of the cluster.
       
      .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNodeType in interface BackupOrBuilder
      Returns:
      The nodeType.
    • setNodeType

      public Backup.Builder setNodeType(NodeType value)
       Output only. Node type of the cluster.
       
      .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The nodeType to set.
      Returns:
      This builder for chaining.
    • clearNodeType

      public Backup.Builder clearNodeType()
       Output only. Node type of the cluster.
       
      .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getReplicaCount

      public int getReplicaCount()
       Output only. Number of replicas for the cluster.
       
      int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicaCount in interface BackupOrBuilder
      Returns:
      The replicaCount.
    • setReplicaCount

      public Backup.Builder setReplicaCount(int value)
       Output only. Number of replicas for the cluster.
       
      int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The replicaCount to set.
      Returns:
      This builder for chaining.
    • clearReplicaCount

      public Backup.Builder clearReplicaCount()
       Output only. Number of replicas for the cluster.
       
      int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getShardCount

      public int getShardCount()
       Output only. Number of shards for the cluster.
       
      int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getShardCount in interface BackupOrBuilder
      Returns:
      The shardCount.
    • setShardCount

      public Backup.Builder setShardCount(int value)
       Output only. Number of shards for the cluster.
       
      int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The shardCount to set.
      Returns:
      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:
      This builder for chaining.
    • getBackupTypeValue

      public int getBackupTypeValue()
       Output only. Type of the backup.
       
      .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupTypeValue in interface BackupOrBuilder
      Returns:
      The enum numeric value on the wire for backupType.
    • setBackupTypeValue

      public Backup.Builder setBackupTypeValue(int value)
       Output only. Type of the backup.
       
      .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for backupType to set.
      Returns:
      This builder for chaining.
    • getBackupType

      public Backup.BackupType getBackupType()
       Output only. Type of the backup.
       
      .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupType in interface BackupOrBuilder
      Returns:
      The backupType.
    • setBackupType

      public Backup.Builder setBackupType(Backup.BackupType value)
       Output only. Type of the backup.
       
      .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The backupType to set.
      Returns:
      This builder for chaining.
    • clearBackupType

      public Backup.Builder clearBackupType()
       Output only. Type of the backup.
       
      .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. State of the backup.
       
      .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface BackupOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Backup.Builder setStateValue(int value)
       Output only. State of the backup.
       
      .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Backup.State getState()
       Output only. State of the backup.
       
      .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface BackupOrBuilder
      Returns:
      The state.
    • setState

      public Backup.Builder setState(Backup.State value)
       Output only. State of the backup.
       
      .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Backup.Builder clearState()
       Output only. State of the backup.
       
      .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasEncryptionInfo

      public boolean hasEncryptionInfo()
       Output only. Encryption information of the backup.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEncryptionInfo in interface BackupOrBuilder
      Returns:
      Whether the encryptionInfo field is set.
    • getEncryptionInfo

      public EncryptionInfo getEncryptionInfo()
       Output only. Encryption information of the backup.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEncryptionInfo in interface BackupOrBuilder
      Returns:
      The encryptionInfo.
    • setEncryptionInfo

      public Backup.Builder setEncryptionInfo(EncryptionInfo value)
       Output only. Encryption information of the backup.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setEncryptionInfo

      public Backup.Builder setEncryptionInfo(EncryptionInfo.Builder builderForValue)
       Output only. Encryption information of the backup.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeEncryptionInfo

      public Backup.Builder mergeEncryptionInfo(EncryptionInfo value)
       Output only. Encryption information of the backup.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearEncryptionInfo

      public Backup.Builder clearEncryptionInfo()
       Output only. Encryption information of the backup.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEncryptionInfoBuilder

      public EncryptionInfo.Builder getEncryptionInfoBuilder()
       Output only. Encryption information of the backup.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEncryptionInfoOrBuilder

      public EncryptionInfoOrBuilder getEncryptionInfoOrBuilder()
       Output only. Encryption information of the backup.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEncryptionInfoOrBuilder in interface BackupOrBuilder
    • 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) = { ... }
      Specified by:
      getUid in interface BackupOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. System assigned unique identifier of the backup.
       
      string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface BackupOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      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) = { ... }
      Parameters:
      value - The uid to set.
      Returns:
      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:
      This builder for chaining.
    • setUidBytes

      public Backup.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. System assigned unique identifier of the backup.
       
      string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.