Class BackupInfo.Builder (6.69.0)

public static final class BackupInfo.Builder extends GeneratedMessageV3.Builder<BackupInfo.Builder> implements BackupInfoOrBuilder

Information about a backup.

Protobuf type google.spanner.admin.database.v1.BackupInfo

Implements

BackupInfoOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackupInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupInfo.Builder
Overrides

build()

public BackupInfo build()
Returns
Type Description
BackupInfo

buildPartial()

public BackupInfo buildPartial()
Returns
Type Description
BackupInfo

clear()

public BackupInfo.Builder clear()
Returns
Type Description
BackupInfo.Builder
Overrides

clearBackup()

public BackupInfo.Builder clearBackup()

Name of the backup.

string backup = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
BackupInfo.Builder

This builder for chaining.

clearCreateTime()

public BackupInfo.Builder clearCreateTime()

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
BackupInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public BackupInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackupInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackupInfo.Builder
Overrides

clearSourceDatabase()

public BackupInfo.Builder clearSourceDatabase()

Name of the database the backup was created from.

string source_database = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
BackupInfo.Builder

This builder for chaining.

clearVersionTime()

public BackupInfo.Builder clearVersionTime()

The backup contains an externally consistent copy of source_database at the timestamp specified by version_time. If the CreateBackup request did not specify version_time, the version_time of the backup is equivalent to the create_time.

.google.protobuf.Timestamp version_time = 4;

Returns
Type Description
BackupInfo.Builder

clone()

public BackupInfo.Builder clone()
Returns
Type Description
BackupInfo.Builder
Overrides

getBackup()

public String getBackup()

Name of the backup.

string backup = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The backup.

getBackupBytes()

public ByteString getBackupBytes()

Name of the backup.

string backup = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for backup.

getCreateTime()

public Timestamp getCreateTime()

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public BackupInfo getDefaultInstanceForType()
Returns
Type Description
BackupInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSourceDatabase()

public String getSourceDatabase()

Name of the database the backup was created from.

string source_database = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The sourceDatabase.

getSourceDatabaseBytes()

public ByteString getSourceDatabaseBytes()

Name of the database the backup was created from.

string source_database = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for sourceDatabase.

getVersionTime()

public Timestamp getVersionTime()

The backup contains an externally consistent copy of source_database at the timestamp specified by version_time. If the CreateBackup request did not specify version_time, the version_time of the backup is equivalent to the create_time.

.google.protobuf.Timestamp version_time = 4;

Returns
Type Description
Timestamp

The versionTime.

getVersionTimeBuilder()

public Timestamp.Builder getVersionTimeBuilder()

The backup contains an externally consistent copy of source_database at the timestamp specified by version_time. If the CreateBackup request did not specify version_time, the version_time of the backup is equivalent to the create_time.

.google.protobuf.Timestamp version_time = 4;

Returns
Type Description
Builder

getVersionTimeOrBuilder()

public TimestampOrBuilder getVersionTimeOrBuilder()

The backup contains an externally consistent copy of source_database at the timestamp specified by version_time. If the CreateBackup request did not specify version_time, the version_time of the backup is equivalent to the create_time.

.google.protobuf.Timestamp version_time = 4;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
boolean

Whether the createTime field is set.

hasVersionTime()

public boolean hasVersionTime()

The backup contains an externally consistent copy of source_database at the timestamp specified by version_time. If the CreateBackup request did not specify version_time, the version_time of the backup is equivalent to the create_time.

.google.protobuf.Timestamp version_time = 4;

Returns
Type Description
boolean

Whether the versionTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public BackupInfo.Builder mergeCreateTime(Timestamp value)

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackupInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BackupInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BackupInfo.Builder
Overrides

mergeFrom(BackupInfo other)

public BackupInfo.Builder mergeFrom(BackupInfo other)
Parameter
Name Description
other BackupInfo
Returns
Type Description
BackupInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackupInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupInfo.Builder
Overrides

mergeVersionTime(Timestamp value)

public BackupInfo.Builder mergeVersionTime(Timestamp value)

The backup contains an externally consistent copy of source_database at the timestamp specified by version_time. If the CreateBackup request did not specify version_time, the version_time of the backup is equivalent to the create_time.

.google.protobuf.Timestamp version_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupInfo.Builder

setBackup(String value)

public BackupInfo.Builder setBackup(String value)

Name of the backup.

string backup = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The backup to set.

Returns
Type Description
BackupInfo.Builder

This builder for chaining.

setBackupBytes(ByteString value)

public BackupInfo.Builder setBackupBytes(ByteString value)

Name of the backup.

string backup = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for backup to set.

Returns
Type Description
BackupInfo.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public BackupInfo.Builder setCreateTime(Timestamp value)

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupInfo.Builder

setCreateTime(Timestamp.Builder builderForValue)

public BackupInfo.Builder setCreateTime(Timestamp.Builder builderForValue)

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BackupInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupInfo.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BackupInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BackupInfo.Builder
Overrides

setSourceDatabase(String value)

public BackupInfo.Builder setSourceDatabase(String value)

Name of the database the backup was created from.

string source_database = 3 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The sourceDatabase to set.

Returns
Type Description
BackupInfo.Builder

This builder for chaining.

setSourceDatabaseBytes(ByteString value)

public BackupInfo.Builder setSourceDatabaseBytes(ByteString value)

Name of the database the backup was created from.

string source_database = 3 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for sourceDatabase to set.

Returns
Type Description
BackupInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BackupInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BackupInfo.Builder
Overrides

setVersionTime(Timestamp value)

public BackupInfo.Builder setVersionTime(Timestamp value)

The backup contains an externally consistent copy of source_database at the timestamp specified by version_time. If the CreateBackup request did not specify version_time, the version_time of the backup is equivalent to the create_time.

.google.protobuf.Timestamp version_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
BackupInfo.Builder

setVersionTime(Timestamp.Builder builderForValue)

public BackupInfo.Builder setVersionTime(Timestamp.Builder builderForValue)

The backup contains an externally consistent copy of source_database at the timestamp specified by version_time. If the CreateBackup request did not specify version_time, the version_time of the backup is equivalent to the create_time.

.google.protobuf.Timestamp version_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BackupInfo.Builder