public static final class Cluster.Builder extends GeneratedMessageV3.Builder<Cluster.Builder> implements ClusterOrBuilder
A resizable group of nodes in a particular cloud location, capable of serving all Tables in the parent Instance.
Protobuf type google.bigtable.admin.v2.Cluster
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Cluster.BuilderImplements
ClusterOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Cluster.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Cluster.Builder |
build()
public Cluster build()
Type | Description |
Cluster |
buildPartial()
public Cluster buildPartial()
Type | Description |
Cluster |
clear()
public Cluster.Builder clear()
Type | Description |
Cluster.Builder |
clearDefaultStorageType()
public Cluster.Builder clearDefaultStorageType()
(CreationOnly
)
The type of storage used by this cluster to serve its
parent instance's tables, unless explicitly overridden.
.google.bigtable.admin.v2.StorageType default_storage_type = 5;
Type | Description |
Cluster.Builder | This builder for chaining. |
clearEncryptionConfig()
public Cluster.Builder clearEncryptionConfig()
Immutable. The encryption configuration for CMEK-protected clusters.
.google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
Cluster.Builder |
clearField(Descriptors.FieldDescriptor field)
public Cluster.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Cluster.Builder |
clearLocation()
public Cluster.Builder clearLocation()
(CreationOnly
)
The location where this cluster's nodes and storage reside. For best
performance, clients should be located as close as possible to this
cluster. Currently only zones are supported, so values should be of the
form projects/{project}/locations/{zone}
.
string location = 2 [(.google.api.resource_reference) = { ... }
Type | Description |
Cluster.Builder | This builder for chaining. |
clearName()
public Cluster.Builder clearName()
The unique name of the cluster. Values are of the form
projects/{project}/instances/{instance}/clusters/a-z*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Cluster.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Cluster.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Cluster.Builder |
clearServeNodes()
public Cluster.Builder clearServeNodes()
Required. The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
int32 serve_nodes = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Cluster.Builder | This builder for chaining. |
clearState()
public Cluster.Builder clearState()
The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Cluster.Builder | This builder for chaining. |
clone()
public Cluster.Builder clone()
Type | Description |
Cluster.Builder |
getDefaultInstanceForType()
public Cluster getDefaultInstanceForType()
Type | Description |
Cluster |
getDefaultStorageType()
public StorageType getDefaultStorageType()
(CreationOnly
)
The type of storage used by this cluster to serve its
parent instance's tables, unless explicitly overridden.
.google.bigtable.admin.v2.StorageType default_storage_type = 5;
Type | Description |
StorageType | The defaultStorageType. |
getDefaultStorageTypeValue()
public int getDefaultStorageTypeValue()
(CreationOnly
)
The type of storage used by this cluster to serve its
parent instance's tables, unless explicitly overridden.
.google.bigtable.admin.v2.StorageType default_storage_type = 5;
Type | Description |
int | The enum numeric value on the wire for defaultStorageType. |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEncryptionConfig()
public Cluster.EncryptionConfig getEncryptionConfig()
Immutable. The encryption configuration for CMEK-protected clusters.
.google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
Cluster.EncryptionConfig | The encryptionConfig. |
getEncryptionConfigBuilder()
public Cluster.EncryptionConfig.Builder getEncryptionConfigBuilder()
Immutable. The encryption configuration for CMEK-protected clusters.
.google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
Cluster.EncryptionConfig.Builder |
getEncryptionConfigOrBuilder()
public Cluster.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
Immutable. The encryption configuration for CMEK-protected clusters.
.google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
Cluster.EncryptionConfigOrBuilder |
getLocation()
public String getLocation()
(CreationOnly
)
The location where this cluster's nodes and storage reside. For best
performance, clients should be located as close as possible to this
cluster. Currently only zones are supported, so values should be of the
form projects/{project}/locations/{zone}
.
string location = 2 [(.google.api.resource_reference) = { ... }
Type | Description |
String | The location. |
getLocationBytes()
public ByteString getLocationBytes()
(CreationOnly
)
The location where this cluster's nodes and storage reside. For best
performance, clients should be located as close as possible to this
cluster. Currently only zones are supported, so values should be of the
form projects/{project}/locations/{zone}
.
string location = 2 [(.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for location. |
getName()
public String getName()
The unique name of the cluster. Values are of the form
projects/{project}/instances/{instance}/clusters/a-z*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The unique name of the cluster. Values are of the form
projects/{project}/instances/{instance}/clusters/a-z*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for name. |
getServeNodes()
public int getServeNodes()
Required. The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
int32 serve_nodes = 4 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int | The serveNodes. |
getState()
public Cluster.State getState()
The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Cluster.State | The state. |
getStateValue()
public int getStateValue()
The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
int | The enum numeric value on the wire for state. |
hasEncryptionConfig()
public boolean hasEncryptionConfig()
Immutable. The encryption configuration for CMEK-protected clusters.
.google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
boolean | Whether the encryptionConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeEncryptionConfig(Cluster.EncryptionConfig value)
public Cluster.Builder mergeEncryptionConfig(Cluster.EncryptionConfig value)
Immutable. The encryption configuration for CMEK-protected clusters.
.google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | Cluster.EncryptionConfig |
Type | Description |
Cluster.Builder |
mergeFrom(Cluster other)
public Cluster.Builder mergeFrom(Cluster other)
Name | Description |
other | Cluster |
Type | Description |
Cluster.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Cluster.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Cluster.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Cluster.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Cluster.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Cluster.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Cluster.Builder |
setDefaultStorageType(StorageType value)
public Cluster.Builder setDefaultStorageType(StorageType value)
(CreationOnly
)
The type of storage used by this cluster to serve its
parent instance's tables, unless explicitly overridden.
.google.bigtable.admin.v2.StorageType default_storage_type = 5;
Name | Description |
value | StorageType The defaultStorageType to set. |
Type | Description |
Cluster.Builder | This builder for chaining. |
setDefaultStorageTypeValue(int value)
public Cluster.Builder setDefaultStorageTypeValue(int value)
(CreationOnly
)
The type of storage used by this cluster to serve its
parent instance's tables, unless explicitly overridden.
.google.bigtable.admin.v2.StorageType default_storage_type = 5;
Name | Description |
value | int The enum numeric value on the wire for defaultStorageType to set. |
Type | Description |
Cluster.Builder | This builder for chaining. |
setEncryptionConfig(Cluster.EncryptionConfig value)
public Cluster.Builder setEncryptionConfig(Cluster.EncryptionConfig value)
Immutable. The encryption configuration for CMEK-protected clusters.
.google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | Cluster.EncryptionConfig |
Type | Description |
Cluster.Builder |
setEncryptionConfig(Cluster.EncryptionConfig.Builder builderForValue)
public Cluster.Builder setEncryptionConfig(Cluster.EncryptionConfig.Builder builderForValue)
Immutable. The encryption configuration for CMEK-protected clusters.
.google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
builderForValue | Cluster.EncryptionConfig.Builder |
Type | Description |
Cluster.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Cluster.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Cluster.Builder |
setLocation(String value)
public Cluster.Builder setLocation(String value)
(CreationOnly
)
The location where this cluster's nodes and storage reside. For best
performance, clients should be located as close as possible to this
cluster. Currently only zones are supported, so values should be of the
form projects/{project}/locations/{zone}
.
string location = 2 [(.google.api.resource_reference) = { ... }
Name | Description |
value | String The location to set. |
Type | Description |
Cluster.Builder | This builder for chaining. |
setLocationBytes(ByteString value)
public Cluster.Builder setLocationBytes(ByteString value)
(CreationOnly
)
The location where this cluster's nodes and storage reside. For best
performance, clients should be located as close as possible to this
cluster. Currently only zones are supported, so values should be of the
form projects/{project}/locations/{zone}
.
string location = 2 [(.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for location to set. |
Type | Description |
Cluster.Builder | This builder for chaining. |
setName(String value)
public Cluster.Builder setName(String value)
The unique name of the cluster. Values are of the form
projects/{project}/instances/{instance}/clusters/a-z*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The name to set. |
Type | Description |
Cluster.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Cluster.Builder setNameBytes(ByteString value)
The unique name of the cluster. Values are of the form
projects/{project}/instances/{instance}/clusters/a-z*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Cluster.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Cluster.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Cluster.Builder |
setServeNodes(int value)
public Cluster.Builder setServeNodes(int value)
Required. The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
int32 serve_nodes = 4 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | int The serveNodes to set. |
Type | Description |
Cluster.Builder | This builder for chaining. |
setState(Cluster.State value)
public Cluster.Builder setState(Cluster.State value)
The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Cluster.State The state to set. |
Type | Description |
Cluster.Builder | This builder for chaining. |
setStateValue(int value)
public Cluster.Builder setStateValue(int value)
The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Type | Description |
Cluster.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Cluster.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Cluster.Builder |