java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.redis.cluster.v1beta1.Backup
All Implemented Interfaces:
BackupOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Backup extends com.google.protobuf.GeneratedMessage implements BackupOrBuilder
 Backup of a cluster.
 
Protobuf type google.cloud.redis.cluster.v1beta1.Backup
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • CLUSTER_FIELD_NUMBER

      public static final int CLUSTER_FIELD_NUMBER
      See Also:
    • CLUSTER_UID_FIELD_NUMBER

      public static final int CLUSTER_UID_FIELD_NUMBER
      See Also:
    • TOTAL_SIZE_BYTES_FIELD_NUMBER

      public static final int TOTAL_SIZE_BYTES_FIELD_NUMBER
      See Also:
    • EXPIRE_TIME_FIELD_NUMBER

      public static final int EXPIRE_TIME_FIELD_NUMBER
      See Also:
    • ENGINE_VERSION_FIELD_NUMBER

      public static final int ENGINE_VERSION_FIELD_NUMBER
      See Also:
    • BACKUP_FILES_FIELD_NUMBER

      public static final int BACKUP_FILES_FIELD_NUMBER
      See Also:
    • NODE_TYPE_FIELD_NUMBER

      public static final int NODE_TYPE_FIELD_NUMBER
      See Also:
    • REPLICA_COUNT_FIELD_NUMBER

      public static final int REPLICA_COUNT_FIELD_NUMBER
      See Also:
    • SHARD_COUNT_FIELD_NUMBER

      public static final int SHARD_COUNT_FIELD_NUMBER
      See Also:
    • BACKUP_TYPE_FIELD_NUMBER

      public static final int BACKUP_TYPE_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • ENCRYPTION_INFO_FIELD_NUMBER

      public static final int ENCRYPTION_INFO_FIELD_NUMBER
      See Also:
    • UID_FIELD_NUMBER

      public static final int UID_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Backup parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Backup parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Backup parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Backup parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Backup parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Backup parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Backup parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Backup.Builder newBuilder()
    • newBuilder

      public static Backup.Builder newBuilder(Backup prototype)
    • toBuilder

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

      protected Backup.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Backup getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Backup> parser()
    • getParserForType

      public com.google.protobuf.Parser<Backup> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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