Class RestoreTableMetadata.Builder (2.12.0)

public static final class RestoreTableMetadata.Builder extends GeneratedMessageV3.Builder<RestoreTableMetadata.Builder> implements RestoreTableMetadataOrBuilder

Metadata type for the long-running operation returned by RestoreTable.

Protobuf type google.bigtable.admin.v2.RestoreTableMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RestoreTableMetadata build()
Returns
TypeDescription
RestoreTableMetadata

buildPartial()

public RestoreTableMetadata buildPartial()
Returns
TypeDescription
RestoreTableMetadata

clear()

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

clearBackupInfo()

public RestoreTableMetadata.Builder clearBackupInfo()

.google.bigtable.admin.v2.BackupInfo backup_info = 3;

Returns
TypeDescription
RestoreTableMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RestoreTableMetadata.Builder clearName()

Name of the table being created and restored to.

string name = 1;

Returns
TypeDescription
RestoreTableMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOptimizeTableOperationName()

public RestoreTableMetadata.Builder clearOptimizeTableOperationName()

If exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored table. The metadata type of the long-running operation is [OptimizeRestoreTableMetadata][]. The response type is Empty. This long-running operation may be automatically created by the system if applicable after the RestoreTable long-running operation completes successfully. This operation may not be created if the table is already optimized or the restore was not successful.

string optimize_table_operation_name = 4;

Returns
TypeDescription
RestoreTableMetadata.Builder

This builder for chaining.

clearProgress()

public RestoreTableMetadata.Builder clearProgress()

The progress of the RestoreTable operation.

.google.bigtable.admin.v2.OperationProgress progress = 5;

Returns
TypeDescription
RestoreTableMetadata.Builder

clearSourceInfo()

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

clearSourceType()

public RestoreTableMetadata.Builder clearSourceType()

The type of the restore source.

.google.bigtable.admin.v2.RestoreSourceType source_type = 2;

Returns
TypeDescription
RestoreTableMetadata.Builder

This builder for chaining.

clone()

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

getBackupInfo()

public BackupInfo getBackupInfo()

.google.bigtable.admin.v2.BackupInfo backup_info = 3;

Returns
TypeDescription
BackupInfo

The backupInfo.

getBackupInfoBuilder()

public BackupInfo.Builder getBackupInfoBuilder()

.google.bigtable.admin.v2.BackupInfo backup_info = 3;

Returns
TypeDescription
BackupInfo.Builder

getBackupInfoOrBuilder()

public BackupInfoOrBuilder getBackupInfoOrBuilder()

.google.bigtable.admin.v2.BackupInfo backup_info = 3;

Returns
TypeDescription
BackupInfoOrBuilder

getDefaultInstanceForType()

public RestoreTableMetadata getDefaultInstanceForType()
Returns
TypeDescription
RestoreTableMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Name of the table being created and restored to.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the table being created and restored to.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOptimizeTableOperationName()

public String getOptimizeTableOperationName()

If exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored table. The metadata type of the long-running operation is [OptimizeRestoreTableMetadata][]. The response type is Empty. This long-running operation may be automatically created by the system if applicable after the RestoreTable long-running operation completes successfully. This operation may not be created if the table is already optimized or the restore was not successful.

string optimize_table_operation_name = 4;

Returns
TypeDescription
String

The optimizeTableOperationName.

getOptimizeTableOperationNameBytes()

public ByteString getOptimizeTableOperationNameBytes()

If exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored table. The metadata type of the long-running operation is [OptimizeRestoreTableMetadata][]. The response type is Empty. This long-running operation may be automatically created by the system if applicable after the RestoreTable long-running operation completes successfully. This operation may not be created if the table is already optimized or the restore was not successful.

string optimize_table_operation_name = 4;

Returns
TypeDescription
ByteString

The bytes for optimizeTableOperationName.

getProgress()

public OperationProgress getProgress()

The progress of the RestoreTable operation.

.google.bigtable.admin.v2.OperationProgress progress = 5;

Returns
TypeDescription
OperationProgress

The progress.

getProgressBuilder()

public OperationProgress.Builder getProgressBuilder()

The progress of the RestoreTable operation.

.google.bigtable.admin.v2.OperationProgress progress = 5;

Returns
TypeDescription
OperationProgress.Builder

getProgressOrBuilder()

public OperationProgressOrBuilder getProgressOrBuilder()

The progress of the RestoreTable operation.

.google.bigtable.admin.v2.OperationProgress progress = 5;

Returns
TypeDescription
OperationProgressOrBuilder

getSourceInfoCase()

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

getSourceType()

public RestoreSourceType getSourceType()

The type of the restore source.

.google.bigtable.admin.v2.RestoreSourceType source_type = 2;

Returns
TypeDescription
RestoreSourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

The type of the restore source.

.google.bigtable.admin.v2.RestoreSourceType source_type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for sourceType.

hasBackupInfo()

public boolean hasBackupInfo()

.google.bigtable.admin.v2.BackupInfo backup_info = 3;

Returns
TypeDescription
boolean

Whether the backupInfo field is set.

hasProgress()

public boolean hasProgress()

The progress of the RestoreTable operation.

.google.bigtable.admin.v2.OperationProgress progress = 5;

Returns
TypeDescription
boolean

Whether the progress 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 RestoreTableMetadata.Builder mergeBackupInfo(BackupInfo value)

.google.bigtable.admin.v2.BackupInfo backup_info = 3;

Parameter
NameDescription
valueBackupInfo
Returns
TypeDescription
RestoreTableMetadata.Builder

mergeFrom(RestoreTableMetadata other)

public RestoreTableMetadata.Builder mergeFrom(RestoreTableMetadata other)
Parameter
NameDescription
otherRestoreTableMetadata
Returns
TypeDescription
RestoreTableMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProgress(OperationProgress value)

public RestoreTableMetadata.Builder mergeProgress(OperationProgress value)

The progress of the RestoreTable operation.

.google.bigtable.admin.v2.OperationProgress progress = 5;

Parameter
NameDescription
valueOperationProgress
Returns
TypeDescription
RestoreTableMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBackupInfo(BackupInfo value)

public RestoreTableMetadata.Builder setBackupInfo(BackupInfo value)

.google.bigtable.admin.v2.BackupInfo backup_info = 3;

Parameter
NameDescription
valueBackupInfo
Returns
TypeDescription
RestoreTableMetadata.Builder

setBackupInfo(BackupInfo.Builder builderForValue)

public RestoreTableMetadata.Builder setBackupInfo(BackupInfo.Builder builderForValue)

.google.bigtable.admin.v2.BackupInfo backup_info = 3;

Parameter
NameDescription
builderForValueBackupInfo.Builder
Returns
TypeDescription
RestoreTableMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RestoreTableMetadata.Builder setName(String value)

Name of the table being created and restored to.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
RestoreTableMetadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RestoreTableMetadata.Builder setNameBytes(ByteString value)

Name of the table being created and restored to.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
RestoreTableMetadata.Builder

This builder for chaining.

setOptimizeTableOperationName(String value)

public RestoreTableMetadata.Builder setOptimizeTableOperationName(String value)

If exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored table. The metadata type of the long-running operation is [OptimizeRestoreTableMetadata][]. The response type is Empty. This long-running operation may be automatically created by the system if applicable after the RestoreTable long-running operation completes successfully. This operation may not be created if the table is already optimized or the restore was not successful.

string optimize_table_operation_name = 4;

Parameter
NameDescription
valueString

The optimizeTableOperationName to set.

Returns
TypeDescription
RestoreTableMetadata.Builder

This builder for chaining.

setOptimizeTableOperationNameBytes(ByteString value)

public RestoreTableMetadata.Builder setOptimizeTableOperationNameBytes(ByteString value)

If exists, the name of the long-running operation that will be used to track the post-restore optimization process to optimize the performance of the restored table. The metadata type of the long-running operation is [OptimizeRestoreTableMetadata][]. The response type is Empty. This long-running operation may be automatically created by the system if applicable after the RestoreTable long-running operation completes successfully. This operation may not be created if the table is already optimized or the restore was not successful.

string optimize_table_operation_name = 4;

Parameter
NameDescription
valueByteString

The bytes for optimizeTableOperationName to set.

Returns
TypeDescription
RestoreTableMetadata.Builder

This builder for chaining.

setProgress(OperationProgress value)

public RestoreTableMetadata.Builder setProgress(OperationProgress value)

The progress of the RestoreTable operation.

.google.bigtable.admin.v2.OperationProgress progress = 5;

Parameter
NameDescription
valueOperationProgress
Returns
TypeDescription
RestoreTableMetadata.Builder

setProgress(OperationProgress.Builder builderForValue)

public RestoreTableMetadata.Builder setProgress(OperationProgress.Builder builderForValue)

The progress of the RestoreTable operation.

.google.bigtable.admin.v2.OperationProgress progress = 5;

Parameter
NameDescription
builderForValueOperationProgress.Builder
Returns
TypeDescription
RestoreTableMetadata.Builder

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

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

setSourceType(RestoreSourceType value)

public RestoreTableMetadata.Builder setSourceType(RestoreSourceType value)

The type of the restore source.

.google.bigtable.admin.v2.RestoreSourceType source_type = 2;

Parameter
NameDescription
valueRestoreSourceType

The sourceType to set.

Returns
TypeDescription
RestoreTableMetadata.Builder

This builder for chaining.

setSourceTypeValue(int value)

public RestoreTableMetadata.Builder setSourceTypeValue(int value)

The type of the restore source.

.google.bigtable.admin.v2.RestoreSourceType source_type = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
RestoreTableMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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