public final class CopyBackupRequest extends GeneratedMessageV3 implements CopyBackupRequestOrBuilder
The request for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].Protobuf type
google.spanner.admin.database.v1.CopyBackupRequest
Modifier and Type | Class and Description |
---|---|
static class |
CopyBackupRequest.Builder
The request for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
BACKUP_ID_FIELD_NUMBER |
static int |
ENCRYPTION_CONFIG_FIELD_NUMBER |
static int |
EXPIRE_TIME_FIELD_NUMBER |
static int |
PARENT_FIELD_NUMBER |
static int |
SOURCE_BACKUP_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int PARENT_FIELD_NUMBER
public static final int BACKUP_ID_FIELD_NUMBER
public static final int SOURCE_BACKUP_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER
public static final int ENCRYPTION_CONFIG_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public String getParent()
Required. The name of the destination instance that will contain the backup copy. Values are of the form: `projects/<project>/instances/<instance>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent
in interface CopyBackupRequestOrBuilder
public ByteString getParentBytes()
Required. The name of the destination instance that will contain the backup copy. Values are of the form: `projects/<project>/instances/<instance>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes
in interface CopyBackupRequestOrBuilder
public String getBackupId()
Required. The id of the backup copy. The `backup_id` appended to `parent` forms the full backup_uri of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];
getBackupId
in interface CopyBackupRequestOrBuilder
public ByteString getBackupIdBytes()
Required. The id of the backup copy. The `backup_id` appended to `parent` forms the full backup_uri of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];
getBackupIdBytes
in interface CopyBackupRequestOrBuilder
public String getSourceBackup()
Required. The source backup to be copied. The source backup needs to be in READY state for it to be copied. Once CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration until CopyBackup is finished. Values are of the form: `projects/<project>/instances/<instance>/backups/<backup>`.
string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getSourceBackup
in interface CopyBackupRequestOrBuilder
public ByteString getSourceBackupBytes()
Required. The source backup to be copied. The source backup needs to be in READY state for it to be copied. Once CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration until CopyBackup is finished. Values are of the form: `projects/<project>/instances/<instance>/backups/<backup>`.
string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getSourceBackupBytes
in interface CopyBackupRequestOrBuilder
public boolean hasExpireTime()
Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the `create_time` of the source backup. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];
hasExpireTime
in interface CopyBackupRequestOrBuilder
public Timestamp getExpireTime()
Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the `create_time` of the source backup. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];
getExpireTime
in interface CopyBackupRequestOrBuilder
public TimestampOrBuilder getExpireTimeOrBuilder()
Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the `create_time` of the source backup. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup.
.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];
getExpireTimeOrBuilder
in interface CopyBackupRequestOrBuilder
public boolean hasEncryptionConfig()
Optional. The encryption configuration used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the source backup by default, namely [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
hasEncryptionConfig
in interface CopyBackupRequestOrBuilder
public CopyBackupEncryptionConfig getEncryptionConfig()
Optional. The encryption configuration used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the source backup by default, namely [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
getEncryptionConfig
in interface CopyBackupRequestOrBuilder
public CopyBackupEncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
Optional. The encryption configuration used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the source backup by default, namely [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
.google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
getEncryptionConfigOrBuilder
in interface CopyBackupRequestOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static CopyBackupRequest parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CopyBackupRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CopyBackupRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CopyBackupRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CopyBackupRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CopyBackupRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CopyBackupRequest parseFrom(InputStream input) throws IOException
IOException
public static CopyBackupRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static CopyBackupRequest parseDelimitedFrom(InputStream input) throws IOException
IOException
public static CopyBackupRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static CopyBackupRequest parseFrom(CodedInputStream input) throws IOException
IOException
public static CopyBackupRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public CopyBackupRequest.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static CopyBackupRequest.Builder newBuilder()
public static CopyBackupRequest.Builder newBuilder(CopyBackupRequest prototype)
public CopyBackupRequest.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected CopyBackupRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static CopyBackupRequest getDefaultInstance()
public static Parser<CopyBackupRequest> parser()
public Parser<CopyBackupRequest> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public CopyBackupRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.