Class Backup
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of the backup.static final classBackup of a cluster.static enumState of the backup.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBackupFiles(int index) Output only.intOutput only.Output only.getBackupFilesOrBuilder(int index) Output only.List<? extends BackupFileOrBuilder>Output only.Output only.intOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static Backupstatic final com.google.protobuf.Descriptors.DescriptorOutput only.Output only.Output only. redis-7.2, valkey-7.5com.google.protobuf.ByteStringOutput only. redis-7.2, valkey-7.5com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Output only.intOutput only.com.google.protobuf.Parser<Backup>intOutput only.intintOutput only.getState()Output only.intOutput only.longOutput only.getUid()Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.booleanOutput only.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Backup.Builderstatic Backup.BuildernewBuilder(Backup prototype) protected Backup.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static BackupparseDelimitedFrom(InputStream input) static BackupparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BackupparseFrom(byte[] data) static BackupparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BackupparseFrom(com.google.protobuf.ByteString data) static BackupparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BackupparseFrom(com.google.protobuf.CodedInputStream input) static BackupparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BackupparseFrom(InputStream input) static BackupparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BackupparseFrom(ByteBuffer data) static BackupparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Backup>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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:
getNamein interfaceBackupOrBuilder- 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:
getNameBytesin interfaceBackupOrBuilder- 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:
hasCreateTimein interfaceBackupOrBuilder- 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:
getCreateTimein interfaceBackupOrBuilder- 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:
getCreateTimeOrBuilderin interfaceBackupOrBuilder
-
getCluster
Output only. Cluster resource path of this backup.
string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getClusterin interfaceBackupOrBuilder- 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:
getClusterBytesin interfaceBackupOrBuilder- Returns:
- The bytes for cluster.
-
getClusterUid
Output only. Cluster uid of this backup.
string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Specified by:
getClusterUidin interfaceBackupOrBuilder- 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:
getClusterUidBytesin interfaceBackupOrBuilder- 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:
getTotalSizeBytesin interfaceBackupOrBuilder- 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:
hasExpireTimein interfaceBackupOrBuilder- 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:
getExpireTimein interfaceBackupOrBuilder- 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:
getExpireTimeOrBuilderin interfaceBackupOrBuilder
-
getEngineVersion
Output only. redis-7.2, valkey-7.5
string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEngineVersionin interfaceBackupOrBuilder- 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:
getEngineVersionBytesin interfaceBackupOrBuilder- Returns:
- The bytes for engineVersion.
-
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:
getBackupFilesListin interfaceBackupOrBuilder
-
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:
getBackupFilesOrBuilderListin interfaceBackupOrBuilder
-
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:
getBackupFilesCountin interfaceBackupOrBuilder
-
getBackupFiles
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:
getBackupFilesin interfaceBackupOrBuilder
-
getBackupFilesOrBuilder
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:
getBackupFilesOrBuilderin interfaceBackupOrBuilder
-
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:
getNodeTypeValuein interfaceBackupOrBuilder- Returns:
- The enum numeric value on the wire for 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:
getNodeTypein interfaceBackupOrBuilder- 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:
getReplicaCountin interfaceBackupOrBuilder- 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:
getShardCountin interfaceBackupOrBuilder- 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:
getBackupTypeValuein interfaceBackupOrBuilder- Returns:
- The enum numeric value on the wire for 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:
getBackupTypein interfaceBackupOrBuilder- 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:
getStateValuein interfaceBackupOrBuilder- Returns:
- The enum numeric value on the wire for 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:
getStatein interfaceBackupOrBuilder- 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:
hasEncryptionInfoin interfaceBackupOrBuilder- Returns:
- Whether the encryptionInfo field is set.
-
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:
getEncryptionInfoin interfaceBackupOrBuilder- Returns:
- The encryptionInfo.
-
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:
getEncryptionInfoOrBuilderin interfaceBackupOrBuilder
-
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:
getUidin interfaceBackupOrBuilder- 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:
getUidBytesin interfaceBackupOrBuilder- Returns:
- The bytes for uid.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Backup parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Backup parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Backup parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Backup.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-