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, 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<NodePool.Builder>
public NodePool.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<NodePool.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<NodePool.Builder>
public NodePool getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public NodePool build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public NodePool buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public NodePool.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<NodePool.Builder>
public NodePool.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<NodePool.Builder>
public NodePool.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<NodePool.Builder>
public NodePool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<NodePool.Builder>
public NodePool.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<NodePool.Builder>
public NodePool.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<NodePool.Builder>
public NodePool.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<NodePool.Builder>
public NodePool.Builder mergeFrom(NodePool other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<NodePool.Builder>
public NodePool.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<NodePool.Builder>
java.io.IOException
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 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 NodePoolOrBuilder
public NodeConfig getConfig()
The node configuration of the pool.
.google.container.v1.NodeConfig config = 2;
getConfig
in interface NodePoolOrBuilder
public 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 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 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 NodePoolOrBuilder
public ByteString getSelfLinkBytes()
[Output only] Server-defined URL for the resource.
string self_link = 100;
getSelfLinkBytes
in interface NodePoolOrBuilder
public 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 NodePoolOrBuilder
public ByteString getVersionBytes()
The version of the Kubernetes of this node.
string version = 101;
getVersionBytes
in interface NodePoolOrBuilder
public 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 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 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 NodePoolOrBuilder
public 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 NodePoolOrBuilder
public 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 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 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 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 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 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 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 NodePoolOrBuilder
public final NodePool.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<NodePool.Builder>
public final NodePool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<NodePool.Builder>