public final class NodePool extends GeneratedMessageV3 implements NodePoolOrBuilder
NodePool contains the name and configuration for a cluster's node pool. Node pools are a set of nodes (i.e. VM's), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. They may also be resized up or down, to accommodate the workload.Protobuf type
google.container.v1.NodePool| Modifier and Type | Class and Description |
|---|---|
static class |
NodePool.Builder
NodePool contains the name and configuration for a cluster's node pool.
|
static class |
NodePool.Status
The current status of the node pool instance.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
AUTOSCALING_FIELD_NUMBER |
static int |
CONFIG_FIELD_NUMBER |
static int |
INITIAL_NODE_COUNT_FIELD_NUMBER |
static int |
INSTANCE_GROUP_URLS_FIELD_NUMBER |
static int |
MANAGEMENT_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SELF_LINK_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
static int |
STATUS_MESSAGE_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
NodePoolAutoscaling |
getAutoscaling()
Autoscaler configuration for this NodePool.
|
NodePoolAutoscalingOrBuilder |
getAutoscalingOrBuilder()
Autoscaler configuration for this NodePool.
|
NodeConfig |
getConfig()
The node configuration of the pool.
|
NodeConfigOrBuilder |
getConfigOrBuilder()
The node configuration of the pool.
|
static NodePool |
getDefaultInstance() |
NodePool |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
int |
getInitialNodeCount()
The initial node count for the pool.
|
java.lang.String |
getInstanceGroupUrls(int index)
[Output only] The resource URLs of the [managed instance
groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
associated with this node pool.
|
ByteString |
getInstanceGroupUrlsBytes(int index)
[Output only] The resource URLs of the [managed instance
groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
associated with this node pool.
|
int |
getInstanceGroupUrlsCount()
[Output only] The resource URLs of the [managed instance
groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
associated with this node pool.
|
ProtocolStringList |
getInstanceGroupUrlsList()
[Output only] The resource URLs of the [managed instance
groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
associated with this node pool.
|
NodeManagement |
getManagement()
NodeManagement configuration for this NodePool.
|
NodeManagementOrBuilder |
getManagementOrBuilder()
NodeManagement configuration for this NodePool.
|
java.lang.String |
getName()
The name of the node pool.
|
ByteString |
getNameBytes()
The name of the node pool.
|
Parser<NodePool> |
getParserForType() |
java.lang.String |
getSelfLink()
[Output only] Server-defined URL for the resource.
|
ByteString |
getSelfLinkBytes()
[Output only] Server-defined URL for the resource.
|
int |
getSerializedSize() |
NodePool.Status |
getStatus()
[Output only] The status of the nodes in this pool instance.
|
java.lang.String |
getStatusMessage()
[Output only] Additional information about the current status of this
node pool instance, if available.
|
ByteString |
getStatusMessageBytes()
[Output only] Additional information about the current status of this
node pool instance, if available.
|
int |
getStatusValue()
[Output only] The status of the nodes in this pool instance.
|
UnknownFieldSet |
getUnknownFields() |
java.lang.String |
getVersion()
The version of the Kubernetes of this node.
|
ByteString |
getVersionBytes()
The version of the Kubernetes of this node.
|
boolean |
hasAutoscaling()
Autoscaler configuration for this NodePool.
|
boolean |
hasConfig()
The node configuration of the pool.
|
int |
hashCode() |
boolean |
hasManagement()
NodeManagement configuration for this NodePool.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static NodePool.Builder |
newBuilder() |
static NodePool.Builder |
newBuilder(NodePool prototype) |
NodePool.Builder |
newBuilderForType() |
protected NodePool.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static NodePool |
parseDelimitedFrom(java.io.InputStream input) |
static NodePool |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static NodePool |
parseFrom(byte[] data) |
static NodePool |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static NodePool |
parseFrom(java.nio.ByteBuffer data) |
static NodePool |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static NodePool |
parseFrom(ByteString data) |
static NodePool |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static NodePool |
parseFrom(CodedInputStream input) |
static NodePool |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static NodePool |
parseFrom(java.io.InputStream input) |
static NodePool |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<NodePool> |
parser() |
NodePool.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int CONFIG_FIELD_NUMBER
public static final int INITIAL_NODE_COUNT_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int STATUS_MESSAGE_FIELD_NUMBER
public static final int AUTOSCALING_FIELD_NUMBER
public static final int MANAGEMENT_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getName()
The name of the node pool.
string name = 1;getName in interface NodePoolOrBuilderpublic ByteString getNameBytes()
The name of the node pool.
string name = 1;getNameBytes in interface NodePoolOrBuilderpublic boolean hasConfig()
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;hasConfig in interface NodePoolOrBuilderpublic NodeConfig getConfig()
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;getConfig in interface NodePoolOrBuilderpublic NodeConfigOrBuilder getConfigOrBuilder()
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;getConfigOrBuilder in interface NodePoolOrBuilderpublic int getInitialNodeCount()
The initial node count for the pool. You must ensure that your Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> is sufficient for this number of instances. You must also have available firewall and routes quota.
int32 initial_node_count = 3;getInitialNodeCount in interface NodePoolOrBuilderpublic java.lang.String getSelfLink()
[Output only] Server-defined URL for the resource.
string self_link = 100;getSelfLink in interface NodePoolOrBuilderpublic ByteString getSelfLinkBytes()
[Output only] Server-defined URL for the resource.
string self_link = 100;getSelfLinkBytes in interface NodePoolOrBuilderpublic java.lang.String getVersion()
The version of the Kubernetes of this node.
string version = 101;getVersion in interface NodePoolOrBuilderpublic ByteString getVersionBytes()
The version of the Kubernetes of this node.
string version = 101;getVersionBytes in interface NodePoolOrBuilderpublic ProtocolStringList getInstanceGroupUrlsList()
[Output only] The resource URLs of the [managed instance groups](/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
repeated string instance_group_urls = 102;getInstanceGroupUrlsList in interface NodePoolOrBuilderpublic int getInstanceGroupUrlsCount()
[Output only] The resource URLs of the [managed instance groups](/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
repeated string instance_group_urls = 102;getInstanceGroupUrlsCount in interface NodePoolOrBuilderpublic java.lang.String getInstanceGroupUrls(int index)
[Output only] The resource URLs of the [managed instance groups](/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
repeated string instance_group_urls = 102;getInstanceGroupUrls in interface NodePoolOrBuilderpublic ByteString getInstanceGroupUrlsBytes(int index)
[Output only] The resource URLs of the [managed instance groups](/compute/docs/instance-groups/creating-groups-of-managed-instances) associated with this node pool.
repeated string instance_group_urls = 102;getInstanceGroupUrlsBytes in interface NodePoolOrBuilderpublic int getStatusValue()
[Output only] The status of the nodes in this pool instance.
.google.container.v1.NodePool.Status status = 103;getStatusValue in interface NodePoolOrBuilderpublic NodePool.Status getStatus()
[Output only] The status of the nodes in this pool instance.
.google.container.v1.NodePool.Status status = 103;getStatus in interface NodePoolOrBuilderpublic java.lang.String getStatusMessage()
[Output only] Additional information about the current status of this node pool instance, if available.
string status_message = 104;getStatusMessage in interface NodePoolOrBuilderpublic ByteString getStatusMessageBytes()
[Output only] Additional information about the current status of this node pool instance, if available.
string status_message = 104;getStatusMessageBytes in interface NodePoolOrBuilderpublic boolean hasAutoscaling()
Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
.google.container.v1.NodePoolAutoscaling autoscaling = 4;hasAutoscaling in interface NodePoolOrBuilderpublic NodePoolAutoscaling getAutoscaling()
Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
.google.container.v1.NodePoolAutoscaling autoscaling = 4;getAutoscaling in interface NodePoolOrBuilderpublic NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder()
Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
.google.container.v1.NodePoolAutoscaling autoscaling = 4;getAutoscalingOrBuilder in interface NodePoolOrBuilderpublic boolean hasManagement()
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;hasManagement in interface NodePoolOrBuilderpublic NodeManagement getManagement()
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;getManagement in interface NodePoolOrBuilderpublic NodeManagementOrBuilder getManagementOrBuilder()
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;getManagementOrBuilder in interface NodePoolOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static NodePool parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static NodePool parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static NodePool parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static NodePool parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static NodePool parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static NodePool parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static NodePool parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static NodePool parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static NodePool parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static NodePool parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static NodePool parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static NodePool parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic NodePool.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static NodePool.Builder newBuilder()
public static NodePool.Builder newBuilder(NodePool prototype)
public NodePool.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected NodePool.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static NodePool getDefaultInstance()
public Parser<NodePool> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public NodePool getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder