public static final class Backup.Builder extends GeneratedMessageV3.Builder<Backup.Builder> implements BackupOrBuilder
A backup of a Cloud Spanner database.Protobuf type
google.spanner.admin.database.v1.Backup
Modifier and Type | Method and Description |
---|---|
Backup.Builder |
addAllReferencingBackups(Iterable<String> values)
Output only.
|
Backup.Builder |
addAllReferencingDatabases(Iterable<String> values)
Output only.
|
Backup.Builder |
addReferencingBackups(String value)
Output only.
|
Backup.Builder |
addReferencingBackupsBytes(ByteString value)
Output only.
|
Backup.Builder |
addReferencingDatabases(String value)
Output only.
|
Backup.Builder |
addReferencingDatabasesBytes(ByteString value)
Output only.
|
Backup.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Backup |
build() |
Backup |
buildPartial() |
Backup.Builder |
clear() |
Backup.Builder |
clearCreateTime()
Output only.
|
Backup.Builder |
clearDatabase()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
|
Backup.Builder |
clearDatabaseDialect()
Output only.
|
Backup.Builder |
clearEncryptionInfo()
Output only.
|
Backup.Builder |
clearExpireTime()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
operation.
|
Backup.Builder |
clearField(Descriptors.FieldDescriptor field) |
Backup.Builder |
clearMaxExpireTime()
Output only.
|
Backup.Builder |
clearName()
Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
|
Backup.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Backup.Builder |
clearReferencingBackups()
Output only.
|
Backup.Builder |
clearReferencingDatabases()
Output only.
|
Backup.Builder |
clearSizeBytes()
Output only.
|
Backup.Builder |
clearState()
Output only.
|
Backup.Builder |
clearVersionTime()
The backup will contain an externally consistent copy of the database at
the timestamp specified by `version_time`.
|
Backup.Builder |
clone() |
Timestamp |
getCreateTime()
Output only.
|
Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
String |
getDatabase()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
|
ByteString |
getDatabaseBytes()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
|
DatabaseDialect |
getDatabaseDialect()
Output only.
|
int |
getDatabaseDialectValue()
Output only.
|
Backup |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
EncryptionInfo |
getEncryptionInfo()
Output only.
|
EncryptionInfo.Builder |
getEncryptionInfoBuilder()
Output only.
|
EncryptionInfoOrBuilder |
getEncryptionInfoOrBuilder()
Output only.
|
Timestamp |
getExpireTime()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
operation.
|
Timestamp.Builder |
getExpireTimeBuilder()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
operation.
|
TimestampOrBuilder |
getExpireTimeOrBuilder()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
operation.
|
Timestamp |
getMaxExpireTime()
Output only.
|
Timestamp.Builder |
getMaxExpireTimeBuilder()
Output only.
|
TimestampOrBuilder |
getMaxExpireTimeOrBuilder()
Output only.
|
String |
getName()
Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
|
ByteString |
getNameBytes()
Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
|
String |
getReferencingBackups(int index)
Output only.
|
ByteString |
getReferencingBackupsBytes(int index)
Output only.
|
int |
getReferencingBackupsCount()
Output only.
|
ProtocolStringList |
getReferencingBackupsList()
Output only.
|
String |
getReferencingDatabases(int index)
Output only.
|
ByteString |
getReferencingDatabasesBytes(int index)
Output only.
|
int |
getReferencingDatabasesCount()
Output only.
|
ProtocolStringList |
getReferencingDatabasesList()
Output only.
|
long |
getSizeBytes()
Output only.
|
Backup.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
Timestamp |
getVersionTime()
The backup will contain an externally consistent copy of the database at
the timestamp specified by `version_time`.
|
Timestamp.Builder |
getVersionTimeBuilder()
The backup will contain an externally consistent copy of the database at
the timestamp specified by `version_time`.
|
TimestampOrBuilder |
getVersionTimeOrBuilder()
The backup will contain an externally consistent copy of the database at
the timestamp specified by `version_time`.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasEncryptionInfo()
Output only.
|
boolean |
hasExpireTime()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
operation.
|
boolean |
hasMaxExpireTime()
Output only.
|
boolean |
hasVersionTime()
The backup will contain an externally consistent copy of the database at
the timestamp specified by `version_time`.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Backup.Builder |
mergeCreateTime(Timestamp value)
Output only.
|
Backup.Builder |
mergeEncryptionInfo(EncryptionInfo value)
Output only.
|
Backup.Builder |
mergeExpireTime(Timestamp value)
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
operation.
|
Backup.Builder |
mergeFrom(Backup other) |
Backup.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Backup.Builder |
mergeFrom(Message other) |
Backup.Builder |
mergeMaxExpireTime(Timestamp value)
Output only.
|
Backup.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Backup.Builder |
mergeVersionTime(Timestamp value)
The backup will contain an externally consistent copy of the database at
the timestamp specified by `version_time`.
|
Backup.Builder |
setCreateTime(Timestamp.Builder builderForValue)
Output only.
|
Backup.Builder |
setCreateTime(Timestamp value)
Output only.
|
Backup.Builder |
setDatabase(String value)
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
|
Backup.Builder |
setDatabaseBytes(ByteString value)
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
|
Backup.Builder |
setDatabaseDialect(DatabaseDialect value)
Output only.
|
Backup.Builder |
setDatabaseDialectValue(int value)
Output only.
|
Backup.Builder |
setEncryptionInfo(EncryptionInfo.Builder builderForValue)
Output only.
|
Backup.Builder |
setEncryptionInfo(EncryptionInfo value)
Output only.
|
Backup.Builder |
setExpireTime(Timestamp.Builder builderForValue)
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
operation.
|
Backup.Builder |
setExpireTime(Timestamp value)
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
operation.
|
Backup.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Backup.Builder |
setMaxExpireTime(Timestamp.Builder builderForValue)
Output only.
|
Backup.Builder |
setMaxExpireTime(Timestamp value)
Output only.
|
Backup.Builder |
setName(String value)
Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
|
Backup.Builder |
setNameBytes(ByteString value)
Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
|
Backup.Builder |
setReferencingBackups(int index,
String value)
Output only.
|
Backup.Builder |
setReferencingDatabases(int index,
String value)
Output only.
|
Backup.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Backup.Builder |
setSizeBytes(long value)
Output only.
|
Backup.Builder |
setState(Backup.State value)
Output only.
|
Backup.Builder |
setStateValue(int value)
Output only.
|
Backup.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
Backup.Builder |
setVersionTime(Timestamp.Builder builderForValue)
The backup will contain an externally consistent copy of the database at
the timestamp specified by `version_time`.
|
Backup.Builder |
setVersionTime(Timestamp value)
The backup will contain an externally consistent copy of the database at
the timestamp specified by `version_time`.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Backup.Builder>
public Backup.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Backup.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Backup.Builder>
public Backup getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Backup build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Backup buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Backup.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Backup.Builder>
public Backup.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Backup.Builder>
public Backup.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Backup.Builder>
public Backup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Backup.Builder>
public Backup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Backup.Builder>
public Backup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Backup.Builder>
public Backup.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Backup.Builder>
public Backup.Builder mergeFrom(Backup other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Backup.Builder>
public Backup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Backup.Builder>
IOException
public String getDatabase()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`.
string database = 2 [(.google.api.resource_reference) = { ... }
getDatabase
in interface BackupOrBuilder
public ByteString getDatabaseBytes()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`.
string database = 2 [(.google.api.resource_reference) = { ... }
getDatabaseBytes
in interface BackupOrBuilder
public Backup.Builder setDatabase(String value)
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`.
string database = 2 [(.google.api.resource_reference) = { ... }
value
- The database to set.public Backup.Builder clearDatabase()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`.
string database = 2 [(.google.api.resource_reference) = { ... }
public Backup.Builder setDatabaseBytes(ByteString value)
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Name of the database from which this backup was created. This needs to be in the same instance as the backup. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`.
string database = 2 [(.google.api.resource_reference) = { ... }
value
- The bytes for database to set.public boolean hasVersionTime()
The backup will contain an externally consistent copy of the database at the timestamp specified by `version_time`. If `version_time` is not specified, the system will set `version_time` to the `create_time` of the backup.
.google.protobuf.Timestamp version_time = 9;
hasVersionTime
in interface BackupOrBuilder
public Timestamp getVersionTime()
The backup will contain an externally consistent copy of the database at the timestamp specified by `version_time`. If `version_time` is not specified, the system will set `version_time` to the `create_time` of the backup.
.google.protobuf.Timestamp version_time = 9;
getVersionTime
in interface BackupOrBuilder
public Backup.Builder setVersionTime(Timestamp value)
The backup will contain an externally consistent copy of the database at the timestamp specified by `version_time`. If `version_time` is not specified, the system will set `version_time` to the `create_time` of the backup.
.google.protobuf.Timestamp version_time = 9;
public Backup.Builder setVersionTime(Timestamp.Builder builderForValue)
The backup will contain an externally consistent copy of the database at the timestamp specified by `version_time`. If `version_time` is not specified, the system will set `version_time` to the `create_time` of the backup.
.google.protobuf.Timestamp version_time = 9;
public Backup.Builder mergeVersionTime(Timestamp value)
The backup will contain an externally consistent copy of the database at the timestamp specified by `version_time`. If `version_time` is not specified, the system will set `version_time` to the `create_time` of the backup.
.google.protobuf.Timestamp version_time = 9;
public Backup.Builder clearVersionTime()
The backup will contain an externally consistent copy of the database at the timestamp specified by `version_time`. If `version_time` is not specified, the system will set `version_time` to the `create_time` of the backup.
.google.protobuf.Timestamp version_time = 9;
public Timestamp.Builder getVersionTimeBuilder()
The backup will contain an externally consistent copy of the database at the timestamp specified by `version_time`. If `version_time` is not specified, the system will set `version_time` to the `create_time` of the backup.
.google.protobuf.Timestamp version_time = 9;
public TimestampOrBuilder getVersionTimeOrBuilder()
The backup will contain an externally consistent copy of the database at the timestamp specified by `version_time`. If `version_time` is not specified, the system will set `version_time` to the `create_time` of the backup.
.google.protobuf.Timestamp version_time = 9;
getVersionTimeOrBuilder
in interface BackupOrBuilder
public boolean hasExpireTime()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. 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 = 3;
hasExpireTime
in interface BackupOrBuilder
public Timestamp getExpireTime()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. 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 = 3;
getExpireTime
in interface BackupOrBuilder
public Backup.Builder setExpireTime(Timestamp value)
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. 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 = 3;
public Backup.Builder setExpireTime(Timestamp.Builder builderForValue)
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. 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 = 3;
public Backup.Builder mergeExpireTime(Timestamp value)
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. 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 = 3;
public Backup.Builder clearExpireTime()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. 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 = 3;
public Timestamp.Builder getExpireTimeBuilder()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. 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 = 3;
public TimestampOrBuilder getExpireTimeOrBuilder()
Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. The expiration time of the backup, with microseconds granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup request is processed. 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 = 3;
getExpireTimeOrBuilder
in interface BackupOrBuilder
public String getName()
Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. A globally unique identifier for the backup which cannot be changed. Values are of the form `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the form `projects/<project>/instances/<instance>`.
string name = 1;
getName
in interface BackupOrBuilder
public ByteString getNameBytes()
Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. A globally unique identifier for the backup which cannot be changed. Values are of the form `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the form `projects/<project>/instances/<instance>`.
string name = 1;
getNameBytes
in interface BackupOrBuilder
public Backup.Builder setName(String value)
Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. A globally unique identifier for the backup which cannot be changed. Values are of the form `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the form `projects/<project>/instances/<instance>`.
string name = 1;
value
- The name to set.public Backup.Builder clearName()
Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. A globally unique identifier for the backup which cannot be changed. Values are of the form `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the form `projects/<project>/instances/<instance>`.
string name = 1;
public Backup.Builder setNameBytes(ByteString value)
Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. A globally unique identifier for the backup which cannot be changed. Values are of the form `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` The final segment of the name must be between 2 and 60 characters in length. The backup is stored in the location(s) specified in the instance configuration of the instance containing the backup, identified by the prefix of the backup name of the form `projects/<project>/instances/<instance>`.
string name = 1;
value
- The bytes for name to set.public boolean hasCreateTime()
Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime
in interface BackupOrBuilder
public Timestamp getCreateTime()
Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime
in interface BackupOrBuilder
public Backup.Builder setCreateTime(Timestamp value)
Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Backup.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Backup.Builder mergeCreateTime(Timestamp value)
Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Backup.Builder clearCreateTime()
Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received. If the request does not specify `version_time`, the `version_time` of the backup will be equivalent to the `create_time`.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder
in interface BackupOrBuilder
public long getSizeBytes()
Output only. Size of the backup in bytes.
int64 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSizeBytes
in interface BackupOrBuilder
public Backup.Builder setSizeBytes(long value)
Output only. Size of the backup in bytes.
int64 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The sizeBytes to set.public Backup.Builder clearSizeBytes()
Output only. Size of the backup in bytes.
int64 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public int getStateValue()
Output only. The current state of the backup.
.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue
in interface BackupOrBuilder
public Backup.Builder setStateValue(int value)
Output only. The current state of the backup.
.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The enum numeric value on the wire for state to set.public Backup.State getState()
Output only. The current state of the backup.
.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState
in interface BackupOrBuilder
public Backup.Builder setState(Backup.State value)
Output only. The current state of the backup.
.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The state to set.public Backup.Builder clearState()
Output only. The current state of the backup.
.google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ProtocolStringList getReferencingDatabasesList()
Output only. The names of the restored databases that reference the backup. The database names are of the form `projects/<project>/instances/<instance>/databases/<database>`. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters the `READY` state, the reference to the backup is removed.
repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getReferencingDatabasesList
in interface BackupOrBuilder
public int getReferencingDatabasesCount()
Output only. The names of the restored databases that reference the backup. The database names are of the form `projects/<project>/instances/<instance>/databases/<database>`. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters the `READY` state, the reference to the backup is removed.
repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getReferencingDatabasesCount
in interface BackupOrBuilder
public String getReferencingDatabases(int index)
Output only. The names of the restored databases that reference the backup. The database names are of the form `projects/<project>/instances/<instance>/databases/<database>`. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters the `READY` state, the reference to the backup is removed.
repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getReferencingDatabases
in interface BackupOrBuilder
index
- The index of the element to return.public ByteString getReferencingDatabasesBytes(int index)
Output only. The names of the restored databases that reference the backup. The database names are of the form `projects/<project>/instances/<instance>/databases/<database>`. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters the `READY` state, the reference to the backup is removed.
repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getReferencingDatabasesBytes
in interface BackupOrBuilder
index
- The index of the value to return.public Backup.Builder setReferencingDatabases(int index, String value)
Output only. The names of the restored databases that reference the backup. The database names are of the form `projects/<project>/instances/<instance>/databases/<database>`. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters the `READY` state, the reference to the backup is removed.
repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
index
- The index to set the value at.value
- The referencingDatabases to set.public Backup.Builder addReferencingDatabases(String value)
Output only. The names of the restored databases that reference the backup. The database names are of the form `projects/<project>/instances/<instance>/databases/<database>`. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters the `READY` state, the reference to the backup is removed.
repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
value
- The referencingDatabases to add.public Backup.Builder addAllReferencingDatabases(Iterable<String> values)
Output only. The names of the restored databases that reference the backup. The database names are of the form `projects/<project>/instances/<instance>/databases/<database>`. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters the `READY` state, the reference to the backup is removed.
repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
values
- The referencingDatabases to add.public Backup.Builder clearReferencingDatabases()
Output only. The names of the restored databases that reference the backup. The database names are of the form `projects/<project>/instances/<instance>/databases/<database>`. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters the `READY` state, the reference to the backup is removed.
repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
public Backup.Builder addReferencingDatabasesBytes(ByteString value)
Output only. The names of the restored databases that reference the backup. The database names are of the form `projects/<project>/instances/<instance>/databases/<database>`. Referencing databases may exist in different instances. The existence of any referencing database prevents the backup from being deleted. When a restored database from the backup enters the `READY` state, the reference to the backup is removed.
repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
value
- The bytes of the referencingDatabases to add.public boolean hasEncryptionInfo()
Output only. The encryption information for the backup.
.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasEncryptionInfo
in interface BackupOrBuilder
public EncryptionInfo getEncryptionInfo()
Output only. The encryption information for the backup.
.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEncryptionInfo
in interface BackupOrBuilder
public Backup.Builder setEncryptionInfo(EncryptionInfo value)
Output only. The encryption information for the backup.
.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Backup.Builder setEncryptionInfo(EncryptionInfo.Builder builderForValue)
Output only. The encryption information for the backup.
.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Backup.Builder mergeEncryptionInfo(EncryptionInfo value)
Output only. The encryption information for the backup.
.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Backup.Builder clearEncryptionInfo()
Output only. The encryption information for the backup.
.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public EncryptionInfo.Builder getEncryptionInfoBuilder()
Output only. The encryption information for the backup.
.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public EncryptionInfoOrBuilder getEncryptionInfoOrBuilder()
Output only. The encryption information for the backup.
.google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEncryptionInfoOrBuilder
in interface BackupOrBuilder
public int getDatabaseDialectValue()
Output only. The database dialect information for the backup.
.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDatabaseDialectValue
in interface BackupOrBuilder
public Backup.Builder setDatabaseDialectValue(int value)
Output only. The database dialect information for the backup.
.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The enum numeric value on the wire for databaseDialect to set.public DatabaseDialect getDatabaseDialect()
Output only. The database dialect information for the backup.
.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDatabaseDialect
in interface BackupOrBuilder
public Backup.Builder setDatabaseDialect(DatabaseDialect value)
Output only. The database dialect information for the backup.
.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The databaseDialect to set.public Backup.Builder clearDatabaseDialect()
Output only. The database dialect information for the backup.
.google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
public ProtocolStringList getReferencingBackupsList()
Output only. The names of the destination backups being created by copying this source backup. The backup names are of the form `projects/<project>/instances/<instance>/backups/<backup>`. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getReferencingBackupsList
in interface BackupOrBuilder
public int getReferencingBackupsCount()
Output only. The names of the destination backups being created by copying this source backup. The backup names are of the form `projects/<project>/instances/<instance>/backups/<backup>`. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getReferencingBackupsCount
in interface BackupOrBuilder
public String getReferencingBackups(int index)
Output only. The names of the destination backups being created by copying this source backup. The backup names are of the form `projects/<project>/instances/<instance>/backups/<backup>`. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getReferencingBackups
in interface BackupOrBuilder
index
- The index of the element to return.public ByteString getReferencingBackupsBytes(int index)
Output only. The names of the destination backups being created by copying this source backup. The backup names are of the form `projects/<project>/instances/<instance>/backups/<backup>`. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getReferencingBackupsBytes
in interface BackupOrBuilder
index
- The index of the value to return.public Backup.Builder setReferencingBackups(int index, String value)
Output only. The names of the destination backups being created by copying this source backup. The backup names are of the form `projects/<project>/instances/<instance>/backups/<backup>`. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
index
- The index to set the value at.value
- The referencingBackups to set.public Backup.Builder addReferencingBackups(String value)
Output only. The names of the destination backups being created by copying this source backup. The backup names are of the form `projects/<project>/instances/<instance>/backups/<backup>`. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
value
- The referencingBackups to add.public Backup.Builder addAllReferencingBackups(Iterable<String> values)
Output only. The names of the destination backups being created by copying this source backup. The backup names are of the form `projects/<project>/instances/<instance>/backups/<backup>`. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
values
- The referencingBackups to add.public Backup.Builder clearReferencingBackups()
Output only. The names of the destination backups being created by copying this source backup. The backup names are of the form `projects/<project>/instances/<instance>/backups/<backup>`. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
public Backup.Builder addReferencingBackupsBytes(ByteString value)
Output only. The names of the destination backups being created by copying this source backup. The backup names are of the form `projects/<project>/instances/<instance>/backups/<backup>`. Referencing backups may exist in different instances. The existence of any referencing backup prevents the backup from being deleted. When the copy operation is done (either successfully completed or cancelled or the destination backup is deleted), the reference to the backup is removed.
repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
value
- The bytes of the referencingBackups to add.public boolean hasMaxExpireTime()
Output only. The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than `Backup.max_expire_time`.
.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasMaxExpireTime
in interface BackupOrBuilder
public Timestamp getMaxExpireTime()
Output only. The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than `Backup.max_expire_time`.
.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getMaxExpireTime
in interface BackupOrBuilder
public Backup.Builder setMaxExpireTime(Timestamp value)
Output only. The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than `Backup.max_expire_time`.
.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Backup.Builder setMaxExpireTime(Timestamp.Builder builderForValue)
Output only. The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than `Backup.max_expire_time`.
.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Backup.Builder mergeMaxExpireTime(Timestamp value)
Output only. The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than `Backup.max_expire_time`.
.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Backup.Builder clearMaxExpireTime()
Output only. The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than `Backup.max_expire_time`.
.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp.Builder getMaxExpireTimeBuilder()
Output only. The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than `Backup.max_expire_time`.
.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TimestampOrBuilder getMaxExpireTimeOrBuilder()
Output only. The max allowed expiration time of the backup, with microseconds granularity. A backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or copying an existing backup, the expiration time specified must be less than `Backup.max_expire_time`.
.google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getMaxExpireTimeOrBuilder
in interface BackupOrBuilder
public final Backup.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Backup.Builder>
public final Backup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Backup.Builder>
Copyright © 2022 Google LLC. All rights reserved.