Class CreateTableFromSnapshotRequest.Builder (2.14.0)

public static final class CreateTableFromSnapshotRequest.Builder extends GeneratedMessageV3.Builder<CreateTableFromSnapshotRequest.Builder> implements CreateTableFromSnapshotRequestOrBuilder

Request message for google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.

Protobuf type google.bigtable.admin.v2.CreateTableFromSnapshotRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTableFromSnapshotRequest build()
Returns
TypeDescription
CreateTableFromSnapshotRequest

buildPartial()

public CreateTableFromSnapshotRequest buildPartial()
Returns
TypeDescription
CreateTableFromSnapshotRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateTableFromSnapshotRequest.Builder clearParent()

Required. The unique name of the instance in which to create the table. Values are of the form projects/{project}/instances/{instance}.

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

Returns
TypeDescription
CreateTableFromSnapshotRequest.Builder

This builder for chaining.

clearSourceSnapshot()

public CreateTableFromSnapshotRequest.Builder clearSourceSnapshot()

Required. The unique name of the snapshot from which to restore the table. The snapshot and the table must be in the same instance. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}.

string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateTableFromSnapshotRequest.Builder

This builder for chaining.

clearTableId()

public CreateTableFromSnapshotRequest.Builder clearTableId()

Required. The name by which the new table should be referred to within the parent instance, e.g., foobar rather than {parent}/tables/foobar.

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

Returns
TypeDescription
CreateTableFromSnapshotRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTableFromSnapshotRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTableFromSnapshotRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The unique name of the instance in which to create the table. 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 unique name of the instance in which to create the table. 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.

getSourceSnapshot()

public String getSourceSnapshot()

Required. The unique name of the snapshot from which to restore the table. The snapshot and the table must be in the same instance. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}.

string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The sourceSnapshot.

getSourceSnapshotBytes()

public ByteString getSourceSnapshotBytes()

Required. The unique name of the snapshot from which to restore the table. The snapshot and the table must be in the same instance. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}.

string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for sourceSnapshot.

getTableId()

public String getTableId()

Required. The name by which the new table should be referred to within the parent instance, e.g., foobar rather than {parent}/tables/foobar.

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

Returns
TypeDescription
String

The tableId.

getTableIdBytes()

public ByteString getTableIdBytes()

Required. The name by which the new table should be referred to within the parent instance, e.g., foobar rather than {parent}/tables/foobar.

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

Returns
TypeDescription
ByteString

The bytes for tableId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateTableFromSnapshotRequest other)

public CreateTableFromSnapshotRequest.Builder mergeFrom(CreateTableFromSnapshotRequest other)
Parameter
NameDescription
otherCreateTableFromSnapshotRequest
Returns
TypeDescription
CreateTableFromSnapshotRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateTableFromSnapshotRequest.Builder setParent(String value)

Required. The unique name of the instance in which to create the table. 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
CreateTableFromSnapshotRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateTableFromSnapshotRequest.Builder setParentBytes(ByteString value)

Required. The unique name of the instance in which to create the table. 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
CreateTableFromSnapshotRequest.Builder

This builder for chaining.

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

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

setSourceSnapshot(String value)

public CreateTableFromSnapshotRequest.Builder setSourceSnapshot(String value)

Required. The unique name of the snapshot from which to restore the table. The snapshot and the table must be in the same instance. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}.

string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The sourceSnapshot to set.

Returns
TypeDescription
CreateTableFromSnapshotRequest.Builder

This builder for chaining.

setSourceSnapshotBytes(ByteString value)

public CreateTableFromSnapshotRequest.Builder setSourceSnapshotBytes(ByteString value)

Required. The unique name of the snapshot from which to restore the table. The snapshot and the table must be in the same instance. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}.

string source_snapshot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for sourceSnapshot to set.

Returns
TypeDescription
CreateTableFromSnapshotRequest.Builder

This builder for chaining.

setTableId(String value)

public CreateTableFromSnapshotRequest.Builder setTableId(String value)

Required. The name by which the new table should be referred to within the parent instance, e.g., foobar rather than {parent}/tables/foobar.

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

Parameter
NameDescription
valueString

The tableId to set.

Returns
TypeDescription
CreateTableFromSnapshotRequest.Builder

This builder for chaining.

setTableIdBytes(ByteString value)

public CreateTableFromSnapshotRequest.Builder setTableIdBytes(ByteString value)

Required. The name by which the new table should be referred to within the parent instance, e.g., foobar rather than {parent}/tables/foobar.

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

Parameter
NameDescription
valueByteString

The bytes for tableId to set.

Returns
TypeDescription
CreateTableFromSnapshotRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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