Class CopyBackupMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CopyBackupMetadata.Builder>
com.google.spanner.admin.database.v1.CopyBackupMetadata.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CopyBackupMetadataOrBuilder,Cloneable
- Enclosing class:
- CopyBackupMetadata
public static final class CopyBackupMetadata.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CopyBackupMetadata.Builder>
implements CopyBackupMetadataOrBuilder
Metadata type for the operation returned by [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].Protobuf type
google.spanner.admin.database.v1.CopyBackupMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The time at which cancellation of CopyBackup operation was received.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The name of the backup being created through the copy operation.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.The name of the source backup that is being copied.clone()com.google.protobuf.TimestampThe time at which cancellation of CopyBackup operation was received.com.google.protobuf.Timestamp.BuilderThe time at which cancellation of CopyBackup operation was received.com.google.protobuf.TimestampOrBuilderThe time at which cancellation of CopyBackup operation was received.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The name of the backup being created through the copy operation.com.google.protobuf.ByteStringThe name of the backup being created through the copy operation.The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.The name of the source backup that is being copied.com.google.protobuf.ByteStringThe name of the source backup that is being copied.booleanThe time at which cancellation of CopyBackup operation was received.booleanThe progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCancelTime(com.google.protobuf.Timestamp value) The time at which cancellation of CopyBackup operation was received.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CopyBackupMetadata other) mergeProgress(OperationProgress value) The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCancelTime(com.google.protobuf.Timestamp value) The time at which cancellation of CopyBackup operation was received.setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which cancellation of CopyBackup operation was received.The name of the backup being created through the copy operation.setNameBytes(com.google.protobuf.ByteString value) The name of the backup being created through the copy operation.setProgress(OperationProgress value) The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.setProgress(OperationProgress.Builder builderForValue) The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSourceBackup(String value) The name of the source backup that is being copied.setSourceBackupBytes(com.google.protobuf.ByteString value) The name of the source backup that is being 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<CopyBackupMetadata.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<CopyBackupMetadata.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<CopyBackupMetadata.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<CopyBackupMetadata.Builder>
-
setField
public CopyBackupMetadata.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<CopyBackupMetadata.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyBackupMetadata.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyBackupMetadata.Builder>
-
setRepeatedField
public CopyBackupMetadata.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<CopyBackupMetadata.Builder>
-
addRepeatedField
public CopyBackupMetadata.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<CopyBackupMetadata.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CopyBackupMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyBackupMetadata.Builder>
-
mergeFrom
public CopyBackupMetadata.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<CopyBackupMetadata.Builder>- Throws:
IOException
-
getName
The name of the backup being created through the copy operation. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceCopyBackupMetadataOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the backup being created through the copy operation. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceCopyBackupMetadataOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the backup being created through the copy operation. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string name = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the backup being created through the copy operation. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string name = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setNameBytes
The name of the backup being created through the copy operation. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string name = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getSourceBackup
The name of the source backup that is being copied. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string source_backup = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getSourceBackupin interfaceCopyBackupMetadataOrBuilder- Returns:
- The sourceBackup.
-
getSourceBackupBytes
public com.google.protobuf.ByteString getSourceBackupBytes()The name of the source backup that is being copied. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string source_backup = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getSourceBackupBytesin interfaceCopyBackupMetadataOrBuilder- Returns:
- The bytes for sourceBackup.
-
setSourceBackup
The name of the source backup that is being copied. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string source_backup = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The sourceBackup to set.- Returns:
- This builder for chaining.
-
clearSourceBackup
The name of the source backup that is being copied. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string source_backup = 2 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setSourceBackupBytes
The name of the source backup that is being copied. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`.
string source_backup = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for sourceBackup to set.- Returns:
- This builder for chaining.
-
hasProgress
public boolean hasProgress()The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;- Specified by:
hasProgressin interfaceCopyBackupMetadataOrBuilder- Returns:
- Whether the progress field is set.
-
getProgress
The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;- Specified by:
getProgressin interfaceCopyBackupMetadataOrBuilder- Returns:
- The progress.
-
setProgress
The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3; -
setProgress
The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3; -
mergeProgress
The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3; -
clearProgress
The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3; -
getProgressBuilder
The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3; -
getProgressOrBuilder
The progress of the [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
.google.spanner.admin.database.v1.OperationProgress progress = 3;- Specified by:
getProgressOrBuilderin interfaceCopyBackupMetadataOrBuilder
-
hasCancelTime
public boolean hasCancelTime()The time at which cancellation of CopyBackup operation was received. [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 4;- Specified by:
hasCancelTimein interfaceCopyBackupMetadataOrBuilder- Returns:
- Whether the cancelTime field is set.
-
getCancelTime
public com.google.protobuf.Timestamp getCancelTime()The time at which cancellation of CopyBackup operation was received. [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 4;- Specified by:
getCancelTimein interfaceCopyBackupMetadataOrBuilder- Returns:
- The cancelTime.
-
setCancelTime
The time at which cancellation of CopyBackup operation was received. [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 4; -
setCancelTime
public CopyBackupMetadata.Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which cancellation of CopyBackup operation was received. [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 4; -
mergeCancelTime
The time at which cancellation of CopyBackup operation was received. [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 4; -
clearCancelTime
The time at which cancellation of CopyBackup operation was received. [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 4; -
getCancelTimeBuilder
public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder()The time at which cancellation of CopyBackup operation was received. [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 4; -
getCancelTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder()The time at which cancellation of CopyBackup operation was received. [Operations.CancelOperation][google.longrunning.Operations.CancelOperation] starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use [Operations.GetOperation][google.longrunning.Operations.GetOperation] or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
.google.protobuf.Timestamp cancel_time = 4;- Specified by:
getCancelTimeOrBuilderin interfaceCopyBackupMetadataOrBuilder
-
setUnknownFields
public final CopyBackupMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyBackupMetadata.Builder>
-
mergeUnknownFields
public final CopyBackupMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CopyBackupMetadata.Builder>
-