Class RestoreInfo.Builder (6.53.0)

public static final class RestoreInfo.Builder extends GeneratedMessageV3.Builder<RestoreInfo.Builder> implements RestoreInfoOrBuilder

Information about the database restore.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RestoreInfo build()
Returns
TypeDescription
RestoreInfo

buildPartial()

public RestoreInfo buildPartial()
Returns
TypeDescription
RestoreInfo

clear()

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

clearBackupInfo()

public RestoreInfo.Builder clearBackupInfo()

Information about the backup used to restore the database. The backup may no longer exist.

.google.spanner.admin.database.v1.BackupInfo backup_info = 2;

Returns
TypeDescription
RestoreInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RestoreInfo.Builder
Overrides

clearSourceInfo()

public RestoreInfo.Builder clearSourceInfo()
Returns
TypeDescription
RestoreInfo.Builder

clearSourceType()

public RestoreInfo.Builder clearSourceType()

The type of the restore source.

.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;

Returns
TypeDescription
RestoreInfo.Builder

This builder for chaining.

clone()

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

getBackupInfo()

public BackupInfo getBackupInfo()

Information about the backup used to restore the database. The backup may no longer exist.

.google.spanner.admin.database.v1.BackupInfo backup_info = 2;

Returns
TypeDescription
BackupInfo

The backupInfo.

getBackupInfoBuilder()

public BackupInfo.Builder getBackupInfoBuilder()

Information about the backup used to restore the database. The backup may no longer exist.

.google.spanner.admin.database.v1.BackupInfo backup_info = 2;

Returns
TypeDescription
BackupInfo.Builder

getBackupInfoOrBuilder()

public BackupInfoOrBuilder getBackupInfoOrBuilder()

Information about the backup used to restore the database. The backup may no longer exist.

.google.spanner.admin.database.v1.BackupInfo backup_info = 2;

Returns
TypeDescription
BackupInfoOrBuilder

getDefaultInstanceForType()

public RestoreInfo getDefaultInstanceForType()
Returns
TypeDescription
RestoreInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSourceInfoCase()

public RestoreInfo.SourceInfoCase getSourceInfoCase()
Returns
TypeDescription
RestoreInfo.SourceInfoCase

getSourceType()

public RestoreSourceType getSourceType()

The type of the restore source.

.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;

Returns
TypeDescription
RestoreSourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

The type of the restore source.

.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for sourceType.

hasBackupInfo()

public boolean hasBackupInfo()

Information about the backup used to restore the database. The backup may no longer exist.

.google.spanner.admin.database.v1.BackupInfo backup_info = 2;

Returns
TypeDescription
boolean

Whether the backupInfo field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBackupInfo(BackupInfo value)

public RestoreInfo.Builder mergeBackupInfo(BackupInfo value)

Information about the backup used to restore the database. The backup may no longer exist.

.google.spanner.admin.database.v1.BackupInfo backup_info = 2;

Parameter
NameDescription
valueBackupInfo
Returns
TypeDescription
RestoreInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(RestoreInfo other)

public RestoreInfo.Builder mergeFrom(RestoreInfo other)
Parameter
NameDescription
otherRestoreInfo
Returns
TypeDescription
RestoreInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RestoreInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreInfo.Builder
Overrides

setBackupInfo(BackupInfo value)

public RestoreInfo.Builder setBackupInfo(BackupInfo value)

Information about the backup used to restore the database. The backup may no longer exist.

.google.spanner.admin.database.v1.BackupInfo backup_info = 2;

Parameter
NameDescription
valueBackupInfo
Returns
TypeDescription
RestoreInfo.Builder

setBackupInfo(BackupInfo.Builder builderForValue)

public RestoreInfo.Builder setBackupInfo(BackupInfo.Builder builderForValue)

Information about the backup used to restore the database. The backup may no longer exist.

.google.spanner.admin.database.v1.BackupInfo backup_info = 2;

Parameter
NameDescription
builderForValueBackupInfo.Builder
Returns
TypeDescription
RestoreInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public RestoreInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RestoreInfo.Builder
Overrides

setSourceType(RestoreSourceType value)

public RestoreInfo.Builder setSourceType(RestoreSourceType value)

The type of the restore source.

.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;

Parameter
NameDescription
valueRestoreSourceType

The sourceType to set.

Returns
TypeDescription
RestoreInfo.Builder

This builder for chaining.

setSourceTypeValue(int value)

public RestoreInfo.Builder setSourceTypeValue(int value)

The type of the restore source.

.google.spanner.admin.database.v1.RestoreSourceType source_type = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for sourceType to set.

Returns
TypeDescription
RestoreInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RestoreInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RestoreInfo.Builder
Overrides