Class RestoreTableRequest.Builder (2.12.0)

public static final class RestoreTableRequest.Builder extends GeneratedMessageV3.Builder<RestoreTableRequest.Builder> implements RestoreTableRequestOrBuilder

The request for RestoreTable.

Protobuf type google.bigtable.admin.v2.RestoreTableRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RestoreTableRequest build()
Returns
TypeDescription
RestoreTableRequest

buildPartial()

public RestoreTableRequest buildPartial()
Returns
TypeDescription
RestoreTableRequest

clear()

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

clearBackup()

public RestoreTableRequest.Builder clearBackup()

Name of the backup from which to restore. Values are of the form projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>.

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

Returns
TypeDescription
RestoreTableRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public RestoreTableRequest.Builder clearParent()

Required. The name of the instance in which to create the restored table. This instance must be in the same project as the source backup. Values are of the form projects/<project>/instances/<instance>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
RestoreTableRequest.Builder

This builder for chaining.

clearSource()

public RestoreTableRequest.Builder clearSource()
Returns
TypeDescription
RestoreTableRequest.Builder

clearTableId()

public RestoreTableRequest.Builder clearTableId()

Required. The id of the table to create and restore to. This table must not already exist. The table_id appended to parent forms the full table name of the form projects/<project>/instances/<instance>/tables/<table_id>.

string table_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RestoreTableRequest.Builder

This builder for chaining.

clone()

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

getBackup()

public String getBackup()

Name of the backup from which to restore. Values are of the form projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>.

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

Returns
TypeDescription
String

The backup.

getBackupBytes()

public ByteString getBackupBytes()

Name of the backup from which to restore. Values are of the form projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>.

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

Returns
TypeDescription
ByteString

The bytes for backup.

getDefaultInstanceForType()

public RestoreTableRequest getDefaultInstanceForType()
Returns
TypeDescription
RestoreTableRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The name of the instance in which to create the restored table. This instance must be in the same project as the source backup. Values are of the form projects/<project>/instances/<instance>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the instance in which to create the restored table. This instance must be in the same project as the source backup. Values are of the form projects/<project>/instances/<instance>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getSourceCase()

public RestoreTableRequest.SourceCase getSourceCase()
Returns
TypeDescription
RestoreTableRequest.SourceCase

getTableId()

public String getTableId()

Required. The id of the table to create and restore to. This table must not already exist. The table_id appended to parent forms the full table name of the form projects/<project>/instances/<instance>/tables/<table_id>.

string table_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The tableId.

getTableIdBytes()

public ByteString getTableIdBytes()

Required. The id of the table to create and restore to. This table must not already exist. The table_id appended to parent forms the full table name of the form projects/<project>/instances/<instance>/tables/<table_id>.

string table_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for tableId.

hasBackup()

public boolean hasBackup()

Name of the backup from which to restore. Values are of the form projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>.

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

Returns
TypeDescription
boolean

Whether the backup field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RestoreTableRequest other)

public RestoreTableRequest.Builder mergeFrom(RestoreTableRequest other)
Parameter
NameDescription
otherRestoreTableRequest
Returns
TypeDescription
RestoreTableRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBackup(String value)

public RestoreTableRequest.Builder setBackup(String value)

Name of the backup from which to restore. Values are of the form projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>.

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

Parameter
NameDescription
valueString

The backup to set.

Returns
TypeDescription
RestoreTableRequest.Builder

This builder for chaining.

setBackupBytes(ByteString value)

public RestoreTableRequest.Builder setBackupBytes(ByteString value)

Name of the backup from which to restore. Values are of the form projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>.

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

Parameter
NameDescription
valueByteString

The bytes for backup to set.

Returns
TypeDescription
RestoreTableRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public RestoreTableRequest.Builder setParent(String value)

Required. The name of the instance in which to create the restored table. This instance must be in the same project as the source backup. Values are of the form projects/<project>/instances/<instance>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
RestoreTableRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public RestoreTableRequest.Builder setParentBytes(ByteString value)

Required. The name of the instance in which to create the restored table. This instance must be in the same project as the source backup. Values are of the form projects/<project>/instances/<instance>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
RestoreTableRequest.Builder

This builder for chaining.

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

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

setTableId(String value)

public RestoreTableRequest.Builder setTableId(String value)

Required. The id of the table to create and restore to. This table must not already exist. The table_id appended to parent forms the full table name of the form projects/<project>/instances/<instance>/tables/<table_id>.

string table_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The tableId to set.

Returns
TypeDescription
RestoreTableRequest.Builder

This builder for chaining.

setTableIdBytes(ByteString value)

public RestoreTableRequest.Builder setTableIdBytes(ByteString value)

Required. The id of the table to create and restore to. This table must not already exist. The table_id appended to parent forms the full table name of the form projects/<project>/instances/<instance>/tables/<table_id>.

string table_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for tableId to set.

Returns
TypeDescription
RestoreTableRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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