public static final class Cluster.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder> implements ClusterOrBuilder
A resizable group of nodes in a particular cloud location, capable of serving all [Tables][google.bigtable.admin.v2.Table] in the parent [Instance][google.bigtable.admin.v2.Instance].Protobuf type
google.bigtable.admin.v2.Cluster| Modifier and Type | Method and Description |
|---|---|
Cluster.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Cluster |
build() |
Cluster |
buildPartial() |
Cluster.Builder |
clear() |
Cluster.Builder |
clearDefaultStorageType()
(`CreationOnly`)
The type of storage used by this cluster to serve its
parent instance's tables, unless explicitly overridden.
|
Cluster.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Cluster.Builder |
clearLocation()
(`CreationOnly`)
The location where this cluster's nodes and storage reside.
|
Cluster.Builder |
clearName()
The unique name of the cluster.
|
Cluster.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Cluster.Builder |
clearServeNodes()
Required.
|
Cluster.Builder |
clearState()
The current state of the cluster.
|
Cluster.Builder |
clone() |
Cluster |
getDefaultInstanceForType() |
StorageType |
getDefaultStorageType()
(`CreationOnly`)
The type of storage used by this cluster to serve its
parent instance's tables, unless explicitly overridden.
|
int |
getDefaultStorageTypeValue()
(`CreationOnly`)
The type of storage used by this cluster to serve its
parent instance's tables, unless explicitly overridden.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLocation()
(`CreationOnly`)
The location where this cluster's nodes and storage reside.
|
com.google.protobuf.ByteString |
getLocationBytes()
(`CreationOnly`)
The location where this cluster's nodes and storage reside.
|
String |
getName()
The unique name of the cluster.
|
com.google.protobuf.ByteString |
getNameBytes()
The unique name of the cluster.
|
int |
getServeNodes()
Required.
|
Cluster.State |
getState()
The current state of the cluster.
|
int |
getStateValue()
The current state of the cluster.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Cluster.Builder |
mergeFrom(Cluster other) |
Cluster.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Cluster.Builder |
mergeFrom(com.google.protobuf.Message other) |
Cluster.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Cluster.Builder |
setDefaultStorageType(StorageType value)
(`CreationOnly`)
The type of storage used by this cluster to serve its
parent instance's tables, unless explicitly overridden.
|
Cluster.Builder |
setDefaultStorageTypeValue(int value)
(`CreationOnly`)
The type of storage used by this cluster to serve its
parent instance's tables, unless explicitly overridden.
|
Cluster.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Cluster.Builder |
setLocation(String value)
(`CreationOnly`)
The location where this cluster's nodes and storage reside.
|
Cluster.Builder |
setLocationBytes(com.google.protobuf.ByteString value)
(`CreationOnly`)
The location where this cluster's nodes and storage reside.
|
Cluster.Builder |
setName(String value)
The unique name of the cluster.
|
Cluster.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The unique name of the cluster.
|
Cluster.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Cluster.Builder |
setServeNodes(int value)
Required.
|
Cluster.Builder |
setState(Cluster.State value)
The current state of the cluster.
|
Cluster.Builder |
setStateValue(int value)
The current state of the cluster.
|
Cluster.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>public Cluster getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Cluster build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Cluster buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Cluster.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cluster.Builder>public Cluster.Builder mergeFrom(Cluster other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>public Cluster.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cluster.Builder>IOExceptionpublic String getName()
The unique name of the cluster. Values are of the form
`projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface ClusterOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The unique name of the cluster. Values are of the form
`projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface ClusterOrBuilderpublic Cluster.Builder setName(String value)
The unique name of the cluster. Values are of the form
`projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public Cluster.Builder clearName()
The unique name of the cluster. Values are of the form
`projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public Cluster.Builder setNameBytes(com.google.protobuf.ByteString value)
The unique name of the cluster. Values are of the form
`projects/{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.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) = { ... }getLocation in interface ClusterOrBuilderpublic com.google.protobuf.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) = { ... }getLocationBytes in interface ClusterOrBuilderpublic 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) = { ... }value - The location to set.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) = { ... }public Cluster.Builder setLocationBytes(com.google.protobuf.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) = { ... }value - The bytes for location to set.public int getStateValue()
The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface ClusterOrBuilderpublic 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];
value - The enum numeric value on the wire for state to set.public Cluster.State getState()
The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface ClusterOrBuilderpublic 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];
value - The state to set.public Cluster.Builder clearState()
The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];getServeNodes in interface ClusterOrBuilderpublic 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];value - The serveNodes to set.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];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;getDefaultStorageTypeValue in interface ClusterOrBuilderpublic 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;value - The enum numeric value on the wire for defaultStorageType to set.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;getDefaultStorageType in interface ClusterOrBuilderpublic 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;value - The defaultStorageType to set.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;public final Cluster.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>public final Cluster.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>Copyright © 2020 Google LLC. All rights reserved.