Class BackupInfo.Builder (6.50.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackupInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackupInfo.Builder
Overrides

build()

public BackupInfo build()
Returns
TypeDescription
BackupInfo

buildPartial()

public BackupInfo buildPartial()
Returns
TypeDescription
BackupInfo

clear()

public BackupInfo.Builder clear()
Returns
TypeDescription
BackupInfo.Builder
Overrides

clearBackup()

public BackupInfo.Builder clearBackup()

Name of the backup.

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

Returns
TypeDescription
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
TypeDescription
BackupInfo.Builder

clearField(Descriptors.FieldDescriptor field)

public BackupInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BackupInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BackupInfo.Builder

clone()

public BackupInfo.Builder clone()
Returns
TypeDescription
BackupInfo.Builder
Overrides

getBackup()

public String getBackup()

Name of the backup.

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

Returns
TypeDescription
String

The backup.

getBackupBytes()

public ByteString getBackupBytes()

Name of the backup.

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

Returns
TypeDescription
ByteString

The bytes for backup.

getCreateTime()

public Timestamp getCreateTime()

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public BackupInfo getDefaultInstanceForType()
Returns
TypeDescription
BackupInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSourceDatabase()

public String getSourceDatabase()

Name of the database the backup was created from.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

The time the CreateBackup request was received.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the versionTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
BackupInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BackupInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BackupInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BackupInfo.Builder
Overrides

mergeFrom(BackupInfo other)

public BackupInfo.Builder mergeFrom(BackupInfo other)
Parameter
NameDescription
otherBackupInfo
Returns
TypeDescription
BackupInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BackupInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
BackupInfo.Builder

setBackup(String value)

public BackupInfo.Builder setBackup(String value)

Name of the backup.

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

Parameter
NameDescription
valueString

The backup to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for backup to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BackupInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BackupInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BackupInfo.Builder
Overrides

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

public BackupInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The sourceDatabase to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sourceDatabase to set.

Returns
TypeDescription
BackupInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BackupInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BackupInfo.Builder