public static final class NodePool.Builder extends GeneratedMessageV3.Builder<NodePool.Builder> 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 | Method and Description |
|---|---|
NodePool.Builder |
addAllInstanceGroupUrls(java.lang.Iterable<java.lang.String> values)
[Output only] The resource URLs of the [managed instance
groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
associated with this node pool.
|
NodePool.Builder |
addInstanceGroupUrls(java.lang.String value)
[Output only] The resource URLs of the [managed instance
groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
associated with this node pool.
|
NodePool.Builder |
addInstanceGroupUrlsBytes(ByteString value)
[Output only] The resource URLs of the [managed instance
groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
associated with this node pool.
|
NodePool.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
NodePool |
build() |
NodePool |
buildPartial() |
NodePool.Builder |
clear() |
NodePool.Builder |
clearAutoscaling()
Autoscaler configuration for this NodePool.
|
NodePool.Builder |
clearConfig()
The node configuration of the pool.
|
NodePool.Builder |
clearField(Descriptors.FieldDescriptor field) |
NodePool.Builder |
clearInitialNodeCount()
The initial node count for the pool.
|
NodePool.Builder |
clearInstanceGroupUrls()
[Output only] The resource URLs of the [managed instance
groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
associated with this node pool.
|
NodePool.Builder |
clearManagement()
NodeManagement configuration for this NodePool.
|
NodePool.Builder |
clearName()
The name of the node pool.
|
NodePool.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
NodePool.Builder |
clearSelfLink()
[Output only] Server-defined URL for the resource.
|
NodePool.Builder |
clearStatus()
[Output only] The status of the nodes in this pool instance.
|
NodePool.Builder |
clearStatusMessage()
[Output only] Additional information about the current status of this
node pool instance, if available.
|
NodePool.Builder |
clearVersion()
The version of the Kubernetes of this node.
|
NodePool.Builder |
clone() |
NodePoolAutoscaling |
getAutoscaling()
Autoscaler configuration for this NodePool.
|
NodePoolAutoscaling.Builder |
getAutoscalingBuilder()
Autoscaler configuration for this NodePool.
|
NodePoolAutoscalingOrBuilder |
getAutoscalingOrBuilder()
Autoscaler configuration for this NodePool.
|
NodeConfig |
getConfig()
The node configuration of the pool.
|
NodeConfig.Builder |
getConfigBuilder()
The node configuration of the pool.
|
NodeConfigOrBuilder |
getConfigOrBuilder()
The node configuration of the pool.
|
NodePool |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
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.
|
NodeManagement.Builder |
getManagementBuilder()
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.
|
java.lang.String |
getSelfLink()
[Output only] Server-defined URL for the resource.
|
ByteString |
getSelfLinkBytes()
[Output only] Server-defined URL for the resource.
|
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.
|
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.
|
boolean |
hasManagement()
NodeManagement configuration for this NodePool.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
NodePool.Builder |
mergeAutoscaling(NodePoolAutoscaling value)
Autoscaler configuration for this NodePool.
|
NodePool.Builder |
mergeConfig(NodeConfig value)
The node configuration of the pool.
|
NodePool.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
NodePool.Builder |
mergeFrom(Message other) |
NodePool.Builder |
mergeFrom(NodePool other) |
NodePool.Builder |
mergeManagement(NodeManagement value)
NodeManagement configuration for this NodePool.
|
NodePool.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
NodePool.Builder |
setAutoscaling(NodePoolAutoscaling.Builder builderForValue)
Autoscaler configuration for this NodePool.
|
NodePool.Builder |
setAutoscaling(NodePoolAutoscaling value)
Autoscaler configuration for this NodePool.
|
NodePool.Builder |
setConfig(NodeConfig.Builder builderForValue)
The node configuration of the pool.
|
NodePool.Builder |
setConfig(NodeConfig value)
The node configuration of the pool.
|
NodePool.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
NodePool.Builder |
setInitialNodeCount(int value)
The initial node count for the pool.
|
NodePool.Builder |
setInstanceGroupUrls(int index,
java.lang.String value)
[Output only] The resource URLs of the [managed instance
groups](/compute/docs/instance-groups/creating-groups-of-managed-instances)
associated with this node pool.
|
NodePool.Builder |
setManagement(NodeManagement.Builder builderForValue)
NodeManagement configuration for this NodePool.
|
NodePool.Builder |
setManagement(NodeManagement value)
NodeManagement configuration for this NodePool.
|
NodePool.Builder |
setName(java.lang.String value)
The name of the node pool.
|
NodePool.Builder |
setNameBytes(ByteString value)
The name of the node pool.
|
NodePool.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
NodePool.Builder |
setSelfLink(java.lang.String value)
[Output only] Server-defined URL for the resource.
|
NodePool.Builder |
setSelfLinkBytes(ByteString value)
[Output only] Server-defined URL for the resource.
|
NodePool.Builder |
setStatus(NodePool.Status value)
[Output only] The status of the nodes in this pool instance.
|
NodePool.Builder |
setStatusMessage(java.lang.String value)
[Output only] Additional information about the current status of this
node pool instance, if available.
|
NodePool.Builder |
setStatusMessageBytes(ByteString value)
[Output only] Additional information about the current status of this
node pool instance, if available.
|
NodePool.Builder |
setStatusValue(int value)
[Output only] The status of the nodes in this pool instance.
|
NodePool.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
NodePool.Builder |
setVersion(java.lang.String value)
The version of the Kubernetes of this node.
|
NodePool.Builder |
setVersionBytes(ByteString value)
The version of the Kubernetes of this node.
|
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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<NodePool.Builder>public NodePool.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<NodePool.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<NodePool.Builder>public NodePool getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic NodePool build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic NodePool buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic NodePool.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<NodePool.Builder>public NodePool.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<NodePool.Builder>public NodePool.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<NodePool.Builder>public NodePool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<NodePool.Builder>public NodePool.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<NodePool.Builder>public NodePool.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<NodePool.Builder>public NodePool.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<NodePool.Builder>public NodePool.Builder mergeFrom(NodePool other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<NodePool.Builder>public NodePool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<NodePool.Builder>java.io.IOExceptionpublic 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 NodePool.Builder setName(java.lang.String value)
The name of the node pool.
string name = 1;public NodePool.Builder clearName()
The name of the node pool.
string name = 1;public NodePool.Builder setNameBytes(ByteString value)
The name of the node pool.
string name = 1;public 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 NodePool.Builder setConfig(NodeConfig value)
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;public NodePool.Builder setConfig(NodeConfig.Builder builderForValue)
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;public NodePool.Builder mergeConfig(NodeConfig value)
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;public NodePool.Builder clearConfig()
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;public NodeConfig.Builder getConfigBuilder()
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;public 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 NodePool.Builder setInitialNodeCount(int value)
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;public NodePool.Builder clearInitialNodeCount()
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;public 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 NodePool.Builder setSelfLink(java.lang.String value)
[Output only] Server-defined URL for the resource.
string self_link = 100;public NodePool.Builder clearSelfLink()
[Output only] Server-defined URL for the resource.
string self_link = 100;public NodePool.Builder setSelfLinkBytes(ByteString value)
[Output only] Server-defined URL for the resource.
string self_link = 100;public 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 NodePool.Builder setVersion(java.lang.String value)
The version of the Kubernetes of this node.
string version = 101;public NodePool.Builder clearVersion()
The version of the Kubernetes of this node.
string version = 101;public NodePool.Builder setVersionBytes(ByteString value)
The version of the Kubernetes of this node.
string version = 101;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 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 NodePool.Builder setInstanceGroupUrls(int index, java.lang.String value)
[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;public NodePool.Builder addInstanceGroupUrls(java.lang.String value)
[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;public NodePool.Builder addAllInstanceGroupUrls(java.lang.Iterable<java.lang.String> values)
[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;public NodePool.Builder clearInstanceGroupUrls()
[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;public NodePool.Builder addInstanceGroupUrlsBytes(ByteString value)
[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;public 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.Builder setStatusValue(int value)
[Output only] The status of the nodes in this pool instance.
.google.container.v1.NodePool.Status status = 103;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 NodePoolOrBuilderpublic NodePool.Builder setStatus(NodePool.Status value)
[Output only] The status of the nodes in this pool instance.
.google.container.v1.NodePool.Status status = 103;public NodePool.Builder clearStatus()
[Output only] The status of the nodes in this pool instance.
.google.container.v1.NodePool.Status status = 103;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 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 NodePool.Builder setStatusMessage(java.lang.String value)
[Output only] Additional information about the current status of this node pool instance, if available.
string status_message = 104;public NodePool.Builder clearStatusMessage()
[Output only] Additional information about the current status of this node pool instance, if available.
string status_message = 104;public NodePool.Builder setStatusMessageBytes(ByteString value)
[Output only] Additional information about the current status of this node pool instance, if available.
string status_message = 104;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 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 NodePool.Builder setAutoscaling(NodePoolAutoscaling value)
Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
.google.container.v1.NodePoolAutoscaling autoscaling = 4;public NodePool.Builder setAutoscaling(NodePoolAutoscaling.Builder builderForValue)
Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
.google.container.v1.NodePoolAutoscaling autoscaling = 4;public NodePool.Builder mergeAutoscaling(NodePoolAutoscaling value)
Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
.google.container.v1.NodePoolAutoscaling autoscaling = 4;public NodePool.Builder clearAutoscaling()
Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
.google.container.v1.NodePoolAutoscaling autoscaling = 4;public NodePoolAutoscaling.Builder getAutoscalingBuilder()
Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
.google.container.v1.NodePoolAutoscaling autoscaling = 4;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 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 NodePool.Builder setManagement(NodeManagement value)
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;public NodePool.Builder setManagement(NodeManagement.Builder builderForValue)
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;public NodePool.Builder mergeManagement(NodeManagement value)
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;public NodePool.Builder clearManagement()
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;public NodeManagement.Builder getManagementBuilder()
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;public NodeManagementOrBuilder getManagementOrBuilder()
NodeManagement configuration for this NodePool.
.google.container.v1.NodeManagement management = 5;getManagementOrBuilder in interface NodePoolOrBuilderpublic final NodePool.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<NodePool.Builder>public final NodePool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<NodePool.Builder>