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][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(Descriptors.FieldDescriptor field,
java.lang.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(Descriptors.FieldDescriptor field) |
Cluster.Builder |
clearLocation()
(`CreationOnly`)
The location where this cluster's nodes and storage reside.
|
Cluster.Builder |
clearName()
(`OutputOnly`)
The unique name of the cluster.
|
Cluster.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Cluster.Builder |
clearServeNodes()
The number of nodes allocated to this cluster.
|
Cluster.Builder |
clearState()
(`OutputOnly`)
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 Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getLocation()
(`CreationOnly`)
The location where this cluster's nodes and storage reside.
|
ByteString |
getLocationBytes()
(`CreationOnly`)
The location where this cluster's nodes and storage reside.
|
java.lang.String |
getName()
(`OutputOnly`)
The unique name of the cluster.
|
ByteString |
getNameBytes()
(`OutputOnly`)
The unique name of the cluster.
|
int |
getServeNodes()
The number of nodes allocated to this cluster.
|
Cluster.State |
getState()
(`OutputOnly`)
The current state of the cluster.
|
int |
getStateValue()
(`OutputOnly`)
The current state of the cluster.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Cluster.Builder |
mergeFrom(Cluster other) |
Cluster.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Cluster.Builder |
mergeFrom(Message other) |
Cluster.Builder |
mergeUnknownFields(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(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Cluster.Builder |
setLocation(java.lang.String value)
(`CreationOnly`)
The location where this cluster's nodes and storage reside.
|
Cluster.Builder |
setLocationBytes(ByteString value)
(`CreationOnly`)
The location where this cluster's nodes and storage reside.
|
Cluster.Builder |
setName(java.lang.String value)
(`OutputOnly`)
The unique name of the cluster.
|
Cluster.Builder |
setNameBytes(ByteString value)
(`OutputOnly`)
The unique name of the cluster.
|
Cluster.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Cluster.Builder |
setServeNodes(int value)
The number of nodes allocated to this cluster.
|
Cluster.Builder |
setState(Cluster.State value)
(`OutputOnly`)
The current state of the cluster.
|
Cluster.Builder |
setStateValue(int value)
(`OutputOnly`)
The current state of the cluster.
|
Cluster.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Cluster build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Cluster buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Cluster.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Cluster.Builder>
public Cluster.Builder mergeFrom(Cluster other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Cluster.Builder>
public Cluster.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Cluster.Builder>
java.io.IOException
public java.lang.String getName()
(`OutputOnly`) The unique name of the cluster. Values are of the form `projects/<project>/instances/<instance>/clusters/[a-z][-a-z0-9]*`.
string name = 1;
getName
in interface ClusterOrBuilder
public ByteString getNameBytes()
(`OutputOnly`) The unique name of the cluster. Values are of the form `projects/<project>/instances/<instance>/clusters/[a-z][-a-z0-9]*`.
string name = 1;
getNameBytes
in interface ClusterOrBuilder
public Cluster.Builder setName(java.lang.String value)
(`OutputOnly`) The unique name of the cluster. Values are of the form `projects/<project>/instances/<instance>/clusters/[a-z][-a-z0-9]*`.
string name = 1;
public Cluster.Builder clearName()
(`OutputOnly`) The unique name of the cluster. Values are of the form `projects/<project>/instances/<instance>/clusters/[a-z][-a-z0-9]*`.
string name = 1;
public Cluster.Builder setNameBytes(ByteString value)
(`OutputOnly`) The unique name of the cluster. Values are of the form `projects/<project>/instances/<instance>/clusters/[a-z][-a-z0-9]*`.
string name = 1;
public java.lang.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;
getLocation
in interface ClusterOrBuilder
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;
getLocationBytes
in interface ClusterOrBuilder
public Cluster.Builder setLocation(java.lang.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;
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;
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;
public int getStateValue()
(`OutputOnly`) The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3;
getStateValue
in interface ClusterOrBuilder
public Cluster.Builder setStateValue(int value)
(`OutputOnly`) The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3;
public Cluster.State getState()
(`OutputOnly`) The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3;
getState
in interface ClusterOrBuilder
public Cluster.Builder setState(Cluster.State value)
(`OutputOnly`) The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3;
public Cluster.Builder clearState()
(`OutputOnly`) The current state of the cluster.
.google.bigtable.admin.v2.Cluster.State state = 3;
public int getServeNodes()
The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
int32 serve_nodes = 4;
getServeNodes
in interface ClusterOrBuilder
public Cluster.Builder setServeNodes(int value)
The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
int32 serve_nodes = 4;
public Cluster.Builder clearServeNodes()
The number of nodes allocated to this cluster. More nodes enable higher throughput and more consistent performance.
int32 serve_nodes = 4;
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 ClusterOrBuilder
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;
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 ClusterOrBuilder
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;
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(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Cluster.Builder>
public final Cluster.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Cluster.Builder>