Package com.google.spanner.executor.v1
Class CreateCloudBackupAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CreateCloudBackupAction.Builder>
com.google.spanner.executor.v1.CreateCloudBackupAction.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CreateCloudBackupActionOrBuilder,Cloneable
- Enclosing class:
- CreateCloudBackupAction
public static final class CreateCloudBackupAction.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CreateCloudBackupAction.Builder>
implements CreateCloudBackupActionOrBuilder
Action that creates a Cloud Spanner database backup.Protobuf type
google.spanner.executor.v1.CreateCloudBackupAction-
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.The id of the database from which this backup was 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 version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).clone()The id of the backup to be created, e.g.com.google.protobuf.ByteStringThe id of the backup to be created, e.g.The id of the database from which this backup was created, e.g.com.google.protobuf.ByteStringThe id of the database from which this backup was 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.com.google.protobuf.TimestampThe version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).com.google.protobuf.Timestamp.BuilderThe version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).com.google.protobuf.TimestampOrBuilderThe version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).booleanOutput only.booleanThe version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).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(CreateCloudBackupAction other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeVersionTime(com.google.protobuf.Timestamp value) The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).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.setDatabaseId(String value) The id of the database from which this backup was created, e.g.setDatabaseIdBytes(com.google.protobuf.ByteString value) The id of the database from which this backup was 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) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVersionTime(com.google.protobuf.Timestamp value) The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).setVersionTime(com.google.protobuf.Timestamp.Builder builderForValue) The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).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<CreateCloudBackupAction.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<CreateCloudBackupAction.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<CreateCloudBackupAction.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<CreateCloudBackupAction.Builder>
-
setField
public CreateCloudBackupAction.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<CreateCloudBackupAction.Builder>
-
clearField
public CreateCloudBackupAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudBackupAction.Builder>
-
clearOneof
public CreateCloudBackupAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudBackupAction.Builder>
-
setRepeatedField
public CreateCloudBackupAction.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<CreateCloudBackupAction.Builder>
-
addRepeatedField
public CreateCloudBackupAction.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<CreateCloudBackupAction.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateCloudBackupAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudBackupAction.Builder>
-
mergeFrom
public CreateCloudBackupAction.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<CreateCloudBackupAction.Builder>- Throws:
IOException
-
getProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 1;- Specified by:
getProjectIdin interfaceCreateCloudBackupActionOrBuilder- 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 interfaceCreateCloudBackupActionOrBuilder- 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 interfaceCreateCloudBackupActionOrBuilder- 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 interfaceCreateCloudBackupActionOrBuilder- 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 interfaceCreateCloudBackupActionOrBuilder- 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 interfaceCreateCloudBackupActionOrBuilder- 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.
-
getDatabaseId
The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.
string database_id = 4;- Specified by:
getDatabaseIdin interfaceCreateCloudBackupActionOrBuilder- Returns:
- The databaseId.
-
getDatabaseIdBytes
public com.google.protobuf.ByteString getDatabaseIdBytes()The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.
string database_id = 4;- Specified by:
getDatabaseIdBytesin interfaceCreateCloudBackupActionOrBuilder- Returns:
- The bytes for databaseId.
-
setDatabaseId
The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.
string database_id = 4;- Parameters:
value- The databaseId to set.- Returns:
- This builder for chaining.
-
clearDatabaseId
The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.
string database_id = 4;- Returns:
- This builder for chaining.
-
setDatabaseIdBytes
The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.
string database_id = 4;- Parameters:
value- The bytes for databaseId 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 interfaceCreateCloudBackupActionOrBuilder- 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 interfaceCreateCloudBackupActionOrBuilder- 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 CreateCloudBackupAction.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 interfaceCreateCloudBackupActionOrBuilder
-
hasVersionTime
public boolean hasVersionTime()The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).
optional .google.protobuf.Timestamp version_time = 6;- Specified by:
hasVersionTimein interfaceCreateCloudBackupActionOrBuilder- Returns:
- Whether the versionTime field is set.
-
getVersionTime
public com.google.protobuf.Timestamp getVersionTime()The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).
optional .google.protobuf.Timestamp version_time = 6;- Specified by:
getVersionTimein interfaceCreateCloudBackupActionOrBuilder- Returns:
- The versionTime.
-
setVersionTime
The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).
optional .google.protobuf.Timestamp version_time = 6; -
setVersionTime
public CreateCloudBackupAction.Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForValue) The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).
optional .google.protobuf.Timestamp version_time = 6; -
mergeVersionTime
The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).
optional .google.protobuf.Timestamp version_time = 6; -
clearVersionTime
The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).
optional .google.protobuf.Timestamp version_time = 6; -
getVersionTimeBuilder
public com.google.protobuf.Timestamp.Builder getVersionTimeBuilder()The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).
optional .google.protobuf.Timestamp version_time = 6; -
getVersionTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder()The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).
optional .google.protobuf.Timestamp version_time = 6;- Specified by:
getVersionTimeOrBuilderin interfaceCreateCloudBackupActionOrBuilder
-
setUnknownFields
public final CreateCloudBackupAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudBackupAction.Builder>
-
mergeUnknownFields
public final CreateCloudBackupAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateCloudBackupAction.Builder>
-