Package com.google.spanner.executor.v1
Class RestoreCloudDatabaseAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RestoreCloudDatabaseAction.Builder>
com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RestoreCloudDatabaseActionOrBuilder,Cloneable
- Enclosing class:
- RestoreCloudDatabaseAction
public static final class RestoreCloudDatabaseAction.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RestoreCloudDatabaseAction.Builder>
implements RestoreCloudDatabaseActionOrBuilder
Action that restores a Cloud Spanner database from a backup.Protobuf type
google.spanner.executor.v1.RestoreCloudDatabaseAction-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The id of the backup from which to restore, e.g.Cloud instance ID (not path) containing the backup, e.g.The id of the database to create and restore to, e.g.Cloud instance ID (not path) containing the database, e.g.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Cloud project ID, e.g.clone()The id of the backup from which to restore, e.g.com.google.protobuf.ByteStringThe id of the backup from which to restore, e.g.Cloud instance ID (not path) containing the backup, e.g.com.google.protobuf.ByteStringCloud instance ID (not path) containing the backup, e.g.The id of the database to create and restore to, e.g.com.google.protobuf.ByteStringThe id of the database to create and restore to, e.g.Cloud instance ID (not path) containing the database, e.g.com.google.protobuf.ByteStringCloud instance ID (not path) containing the database, e.g.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorCloud project ID, e.g.com.google.protobuf.ByteStringCloud project ID, e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBackupId(String value) The id of the backup from which to restore, e.g.setBackupIdBytes(com.google.protobuf.ByteString value) The id of the backup from which to restore, e.g.setBackupInstanceId(String value) Cloud instance ID (not path) containing the backup, e.g.setBackupInstanceIdBytes(com.google.protobuf.ByteString value) Cloud instance ID (not path) containing the backup, e.g.setDatabaseId(String value) The id of the database to create and restore to, e.g.setDatabaseIdBytes(com.google.protobuf.ByteString value) The id of the database to create and restore to, e.g.setDatabaseInstanceId(String value) Cloud instance ID (not path) containing the database, e.g.setDatabaseInstanceIdBytes(com.google.protobuf.ByteString value) Cloud instance ID (not path) containing the database, 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) 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<RestoreCloudDatabaseAction.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<RestoreCloudDatabaseAction.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<RestoreCloudDatabaseAction.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<RestoreCloudDatabaseAction.Builder>
-
setField
public RestoreCloudDatabaseAction.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<RestoreCloudDatabaseAction.Builder>
-
clearField
public RestoreCloudDatabaseAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreCloudDatabaseAction.Builder>
-
clearOneof
public RestoreCloudDatabaseAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreCloudDatabaseAction.Builder>
-
setRepeatedField
public RestoreCloudDatabaseAction.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<RestoreCloudDatabaseAction.Builder>
-
addRepeatedField
public RestoreCloudDatabaseAction.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<RestoreCloudDatabaseAction.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RestoreCloudDatabaseAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreCloudDatabaseAction.Builder>
-
mergeFrom
public RestoreCloudDatabaseAction.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<RestoreCloudDatabaseAction.Builder>- Throws:
IOException
-
getProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 1;- Specified by:
getProjectIdin interfaceRestoreCloudDatabaseActionOrBuilder- 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 interfaceRestoreCloudDatabaseActionOrBuilder- 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.
-
getBackupInstanceId
Cloud instance ID (not path) containing the backup, e.g. "backup-instance".
string backup_instance_id = 2;- Specified by:
getBackupInstanceIdin interfaceRestoreCloudDatabaseActionOrBuilder- Returns:
- The backupInstanceId.
-
getBackupInstanceIdBytes
public com.google.protobuf.ByteString getBackupInstanceIdBytes()Cloud instance ID (not path) containing the backup, e.g. "backup-instance".
string backup_instance_id = 2;- Specified by:
getBackupInstanceIdBytesin interfaceRestoreCloudDatabaseActionOrBuilder- Returns:
- The bytes for backupInstanceId.
-
setBackupInstanceId
Cloud instance ID (not path) containing the backup, e.g. "backup-instance".
string backup_instance_id = 2;- Parameters:
value- The backupInstanceId to set.- Returns:
- This builder for chaining.
-
clearBackupInstanceId
Cloud instance ID (not path) containing the backup, e.g. "backup-instance".
string backup_instance_id = 2;- Returns:
- This builder for chaining.
-
setBackupInstanceIdBytes
public RestoreCloudDatabaseAction.Builder setBackupInstanceIdBytes(com.google.protobuf.ByteString value) Cloud instance ID (not path) containing the backup, e.g. "backup-instance".
string backup_instance_id = 2;- Parameters:
value- The bytes for backupInstanceId to set.- Returns:
- This builder for chaining.
-
getBackupId
The id of the backup from which to restore, e.g. "test-backup".
string backup_id = 3;- Specified by:
getBackupIdin interfaceRestoreCloudDatabaseActionOrBuilder- Returns:
- The backupId.
-
getBackupIdBytes
public com.google.protobuf.ByteString getBackupIdBytes()The id of the backup from which to restore, e.g. "test-backup".
string backup_id = 3;- Specified by:
getBackupIdBytesin interfaceRestoreCloudDatabaseActionOrBuilder- Returns:
- The bytes for backupId.
-
setBackupId
The id of the backup from which to restore, 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 from which to restore, e.g. "test-backup".
string backup_id = 3;- Returns:
- This builder for chaining.
-
setBackupIdBytes
The id of the backup from which to restore, e.g. "test-backup".
string backup_id = 3;- Parameters:
value- The bytes for backupId to set.- Returns:
- This builder for chaining.
-
getDatabaseInstanceId
Cloud instance ID (not path) containing the database, e.g. "database-instance".
string database_instance_id = 4;- Specified by:
getDatabaseInstanceIdin interfaceRestoreCloudDatabaseActionOrBuilder- Returns:
- The databaseInstanceId.
-
getDatabaseInstanceIdBytes
public com.google.protobuf.ByteString getDatabaseInstanceIdBytes()Cloud instance ID (not path) containing the database, e.g. "database-instance".
string database_instance_id = 4;- Specified by:
getDatabaseInstanceIdBytesin interfaceRestoreCloudDatabaseActionOrBuilder- Returns:
- The bytes for databaseInstanceId.
-
setDatabaseInstanceId
Cloud instance ID (not path) containing the database, e.g. "database-instance".
string database_instance_id = 4;- Parameters:
value- The databaseInstanceId to set.- Returns:
- This builder for chaining.
-
clearDatabaseInstanceId
Cloud instance ID (not path) containing the database, e.g. "database-instance".
string database_instance_id = 4;- Returns:
- This builder for chaining.
-
setDatabaseInstanceIdBytes
public RestoreCloudDatabaseAction.Builder setDatabaseInstanceIdBytes(com.google.protobuf.ByteString value) Cloud instance ID (not path) containing the database, e.g. "database-instance".
string database_instance_id = 4;- Parameters:
value- The bytes for databaseInstanceId to set.- Returns:
- This builder for chaining.
-
getDatabaseId
The id of the database to create and restore to, e.g. "db0". Note that this database must not already exist.
string database_id = 5;- Specified by:
getDatabaseIdin interfaceRestoreCloudDatabaseActionOrBuilder- Returns:
- The databaseId.
-
getDatabaseIdBytes
public com.google.protobuf.ByteString getDatabaseIdBytes()The id of the database to create and restore to, e.g. "db0". Note that this database must not already exist.
string database_id = 5;- Specified by:
getDatabaseIdBytesin interfaceRestoreCloudDatabaseActionOrBuilder- Returns:
- The bytes for databaseId.
-
setDatabaseId
The id of the database to create and restore to, e.g. "db0". Note that this database must not already exist.
string database_id = 5;- Parameters:
value- The databaseId to set.- Returns:
- This builder for chaining.
-
clearDatabaseId
The id of the database to create and restore to, e.g. "db0". Note that this database must not already exist.
string database_id = 5;- Returns:
- This builder for chaining.
-
setDatabaseIdBytes
The id of the database to create and restore to, e.g. "db0". Note that this database must not already exist.
string database_id = 5;- Parameters:
value- The bytes for databaseId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final RestoreCloudDatabaseAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreCloudDatabaseAction.Builder>
-
mergeUnknownFields
public final RestoreCloudDatabaseAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RestoreCloudDatabaseAction.Builder>
-