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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.String getName()
The name of the node pool.
string name = 1;
getName
in interface NodePoolOrBuilder
public ByteString getNameBytes()
The name of the node pool.
string name = 1;
getNameBytes
in interface NodePoolOrBuilder
public boolean hasConfig()
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;
hasConfig
in interface NodePoolOrBuilder
public NodeConfig getConfig()
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;
getConfig
in interface NodePoolOrBuilder
public NodeConfigOrBuilder getConfigOrBuilder()
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;
getConfigOrBuilder
in interface NodePoolOrBuilder
public 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 NodePoolOrBuilder
public java.lang.String getSelfLink()
[Output only] Server-defined URL for the resource.
string self_link = 100;
getSelfLink
in interface NodePoolOrBuilder
public ByteString getSelfLinkBytes()
[Output only] Server-defined URL for the resource.
string self_link = 100;
getSelfLinkBytes
in interface NodePoolOrBuilder
public java.lang.String getVersion()
The version of the Kubernetes of this node.
string version = 101;
getVersion
in interface NodePoolOrBuilder
public ByteString getVersionBytes()
The version of the Kubernetes of this node.
string version = 101;
getVersionBytes
in interface NodePoolOrBuilder
public 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 NodePoolOrBuilder
public 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 NodePoolOrBuilder
public 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 NodePoolOrBuilder
public 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 NodePoolOrBuilder
public int getStatusValue()
[Output only] The status of the nodes in this pool instance.
.google.container.v1.NodePool.Status status = 103;
getStatusValue
in interface NodePoolOrBuilder
public NodePool.Status getStatus()
[Output only] The status of the nodes in this pool instance.
.google.container.v1.NodePool.Status status = 103;
getStatus
in interface NodePoolOrBuilder
public 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 NodePoolOrBuilder
public ByteString getStatusMessageBytes()
[Output only] Additional information about the current status of this node pool instance, if available.
string status_message = 104;
getStatusMessageBytes
in interface NodePoolOrBuilder
public 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 NodePoolOrBuilder
public 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 NodePoolOrBuilder
public 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 NodePoolOrBuilder
public boolean hasManagement()
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;
hasManagement
in interface NodePoolOrBuilder
public NodeManagement getManagement()
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;
getManagement
in interface NodePoolOrBuilder
public NodeManagementOrBuilder getManagementOrBuilder()
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;
getManagementOrBuilder
in interface NodePoolOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static NodePool parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NodePool parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NodePool parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NodePool parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NodePool parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NodePool parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NodePool parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static NodePool parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static NodePool parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static NodePool parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static NodePool parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static NodePool parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public NodePool.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static NodePool.Builder newBuilder()
public static NodePool.Builder newBuilder(NodePool prototype)
public NodePool.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected NodePool.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static NodePool getDefaultInstance()
public Parser<NodePool> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public NodePool getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder