Package com.google.spanner.executor.v1
Class CopyCloudBackupAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
com.google.spanner.executor.v1.CopyCloudBackupAction.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CopyCloudBackupActionOrBuilder,Cloneable
- Enclosing class:
- CopyCloudBackupAction
public static final class CopyCloudBackupAction.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
implements CopyCloudBackupActionOrBuilder
Action that copies a Cloud Spanner database backup.Protobuf type
google.spanner.executor.v1.CopyCloudBackupAction-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The id of the backup to be created, e.g.Output only.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Cloud instance ID (not path), e.g.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Cloud project ID, e.g.The fully qualified uri of the source backup from which this backup was copied.clone()The id of the backup to be created, e.g.com.google.protobuf.ByteStringThe id of the backup to be created, e.g.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Cloud instance ID (not path), e.g.com.google.protobuf.ByteStringCloud instance ID (not path), e.g.Cloud project ID, e.g.com.google.protobuf.ByteStringCloud project ID, e.g.The fully qualified uri of the source backup from which this backup was copied.com.google.protobuf.ByteStringThe fully qualified uri of the source backup from which this backup was copied.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeExpireTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CopyCloudBackupAction other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBackupId(String value) The id of the backup to be created, e.g.setBackupIdBytes(com.google.protobuf.ByteString value) The id of the backup to be created, e.g.setExpireTime(com.google.protobuf.Timestamp value) Output only.setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setInstanceId(String value) Cloud instance ID (not path), e.g.setInstanceIdBytes(com.google.protobuf.ByteString value) Cloud instance ID (not path), e.g.setProjectId(String value) Cloud project ID, e.g.setProjectIdBytes(com.google.protobuf.ByteString value) Cloud project ID, e.g.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSourceBackup(String value) The fully qualified uri of the source backup from which this backup was copied.setSourceBackupBytes(com.google.protobuf.ByteString value) The fully qualified uri of the source backup from which this backup was copied.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-
setField
public CopyCloudBackupAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-
clearField
public CopyCloudBackupAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-
clearOneof
public CopyCloudBackupAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-
setRepeatedField
public CopyCloudBackupAction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-
addRepeatedField
public CopyCloudBackupAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CopyCloudBackupAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-
mergeFrom
public CopyCloudBackupAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CopyCloudBackupAction.Builder>- Throws:
IOException
-
getProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 1;- Specified by:
getProjectIdin interfaceCopyCloudBackupActionOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 1;- Specified by:
getProjectIdBytesin interfaceCopyCloudBackupActionOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 1;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 1;- Returns:
- This builder for chaining.
-
setProjectIdBytes
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 1;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getInstanceId
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 2;- Specified by:
getInstanceIdin interfaceCopyCloudBackupActionOrBuilder- Returns:
- The instanceId.
-
getInstanceIdBytes
public com.google.protobuf.ByteString getInstanceIdBytes()Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 2;- Specified by:
getInstanceIdBytesin interfaceCopyCloudBackupActionOrBuilder- Returns:
- The bytes for instanceId.
-
setInstanceId
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 2;- Parameters:
value- The instanceId to set.- Returns:
- This builder for chaining.
-
clearInstanceId
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 2;- Returns:
- This builder for chaining.
-
setInstanceIdBytes
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 2;- Parameters:
value- The bytes for instanceId to set.- Returns:
- This builder for chaining.
-
getBackupId
The id of the backup to be created, e.g. "test-backup".
string backup_id = 3;- Specified by:
getBackupIdin interfaceCopyCloudBackupActionOrBuilder- Returns:
- The backupId.
-
getBackupIdBytes
public com.google.protobuf.ByteString getBackupIdBytes()The id of the backup to be created, e.g. "test-backup".
string backup_id = 3;- Specified by:
getBackupIdBytesin interfaceCopyCloudBackupActionOrBuilder- Returns:
- The bytes for backupId.
-
setBackupId
The id of the backup to be created, e.g. "test-backup".
string backup_id = 3;- Parameters:
value- The backupId to set.- Returns:
- This builder for chaining.
-
clearBackupId
The id of the backup to be created, e.g. "test-backup".
string backup_id = 3;- Returns:
- This builder for chaining.
-
setBackupIdBytes
The id of the backup to be created, e.g. "test-backup".
string backup_id = 3;- Parameters:
value- The bytes for backupId to set.- Returns:
- This builder for chaining.
-
getSourceBackup
The fully qualified uri of the source backup from which this backup was copied. eg. "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".
string source_backup = 4;- Specified by:
getSourceBackupin interfaceCopyCloudBackupActionOrBuilder- Returns:
- The sourceBackup.
-
getSourceBackupBytes
public com.google.protobuf.ByteString getSourceBackupBytes()The fully qualified uri of the source backup from which this backup was copied. eg. "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".
string source_backup = 4;- Specified by:
getSourceBackupBytesin interfaceCopyCloudBackupActionOrBuilder- Returns:
- The bytes for sourceBackup.
-
setSourceBackup
The fully qualified uri of the source backup from which this backup was copied. eg. "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".
string source_backup = 4;- Parameters:
value- The sourceBackup to set.- Returns:
- This builder for chaining.
-
clearSourceBackup
The fully qualified uri of the source backup from which this backup was copied. eg. "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".
string source_backup = 4;- Returns:
- This builder for chaining.
-
setSourceBackupBytes
The fully qualified uri of the source backup from which this backup was copied. eg. "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".
string source_backup = 4;- Parameters:
value- The bytes for sourceBackup to set.- Returns:
- This builder for chaining.
-
hasExpireTime
public boolean hasExpireTime()Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasExpireTimein interfaceCopyCloudBackupActionOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.Timestamp getExpireTime()Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExpireTimein interfaceCopyCloudBackupActionOrBuilder- Returns:
- The expireTime.
-
setExpireTime
Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setExpireTime
public CopyCloudBackupAction.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeExpireTime
Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearExpireTime
Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getExpireTimeBuilder
public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExpireTimeOrBuilderin interfaceCopyCloudBackupActionOrBuilder
-
setUnknownFields
public final CopyCloudBackupAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-
mergeUnknownFields
public final CopyCloudBackupAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder>
-