Class UpdateNodePoolRequest.Builder (2.5.2)

Stay organized with collections Save and categorize content based on your preferences.
public static final class UpdateNodePoolRequest.Builder extends GeneratedMessageV3.Builder<UpdateNodePoolRequest.Builder> implements UpdateNodePoolRequestOrBuilder

SetNodePoolVersionRequest updates the version of a node pool.

Protobuf type google.container.v1beta1.UpdateNodePoolRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllLocations(Iterable<String> values)

public UpdateNodePoolRequest.Builder addAllLocations(Iterable<String> values)

The desired list of Google Compute Engine zones in which the node pool's nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.

repeated string locations = 13;

Parameter
NameDescription
valuesIterable<String>

The locations to add.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

addLocations(String value)

public UpdateNodePoolRequest.Builder addLocations(String value)

The desired list of Google Compute Engine zones in which the node pool's nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.

repeated string locations = 13;

Parameter
NameDescription
valueString

The locations to add.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

addLocationsBytes(ByteString value)

public UpdateNodePoolRequest.Builder addLocationsBytes(ByteString value)

The desired list of Google Compute Engine zones in which the node pool's nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.

repeated string locations = 13;

Parameter
NameDescription
valueByteString

The bytes of the locations to add.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateNodePoolRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateNodePoolRequest.Builder
Overrides

build()

public UpdateNodePoolRequest build()
Returns
TypeDescription
UpdateNodePoolRequest

buildPartial()

public UpdateNodePoolRequest buildPartial()
Returns
TypeDescription
UpdateNodePoolRequest

clear()

public UpdateNodePoolRequest.Builder clear()
Returns
TypeDescription
UpdateNodePoolRequest.Builder
Overrides

clearClusterId() (deprecated)

public UpdateNodePoolRequest.Builder clearClusterId()

Deprecated. google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=2416

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

clearConfidentialNodes()

public UpdateNodePoolRequest.Builder clearConfidentialNodes()

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 23;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateNodePoolRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateNodePoolRequest.Builder
Overrides

clearGcfsConfig()

public UpdateNodePoolRequest.Builder clearGcfsConfig()

GCFS config.

.google.container.v1beta1.GcfsConfig gcfs_config = 22;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearGvnic()

public UpdateNodePoolRequest.Builder clearGvnic()

Enable or disable gvnic on the node pool.

.google.container.v1beta1.VirtualNIC gvnic = 29;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearImageType()

public UpdateNodePoolRequest.Builder clearImageType()

Required. The desired image type for the node pool.

string image_type = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

clearKubeletConfig()

public UpdateNodePoolRequest.Builder clearKubeletConfig()

Node kubelet configs.

.google.container.v1beta1.NodeKubeletConfig kubelet_config = 20;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearLabels()

public UpdateNodePoolRequest.Builder clearLabels()

The desired node labels to be applied to all nodes in the node pool. If this field is not present, the labels will not be changed. Otherwise, the existing node labels will be replaced with the provided labels.

.google.container.v1beta1.NodeLabels labels = 18;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearLinuxNodeConfig()

public UpdateNodePoolRequest.Builder clearLinuxNodeConfig()

Parameters that can be configured on Linux nodes.

.google.container.v1beta1.LinuxNodeConfig linux_node_config = 19;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearLocations()

public UpdateNodePoolRequest.Builder clearLocations()

The desired list of Google Compute Engine zones in which the node pool's nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.

repeated string locations = 13;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

clearName()

public UpdateNodePoolRequest.Builder clearName()

The name (project, location, cluster, node pool) of the node pool to update. Specified in the format projects/*/locations/*/clusters/*/nodePools/*.

string name = 8;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

clearNodeNetworkConfig()

public UpdateNodePoolRequest.Builder clearNodeNetworkConfig()

Node network config.

.google.container.v1beta1.NodeNetworkConfig node_network_config = 21;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearNodePoolId() (deprecated)

public UpdateNodePoolRequest.Builder clearNodePoolId()

Deprecated. google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=2423

Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.

string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

clearNodeVersion()

public UpdateNodePoolRequest.Builder clearNodeVersion()

Required. The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior:

  • "latest": picks the highest valid Kubernetes version
  • "1.X": picks the highest valid patch+gke.N patch in the 1.X version
  • "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
  • "1.X.Y-gke.N": picks an explicit Kubernetes version
  • "-": picks the Kubernetes master version

string node_version = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateNodePoolRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateNodePoolRequest.Builder
Overrides

clearProjectId() (deprecated)

public UpdateNodePoolRequest.Builder clearProjectId()

Deprecated. google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=2400

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

clearTags()

public UpdateNodePoolRequest.Builder clearTags()

The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be replaced with the provided tags.

.google.container.v1beta1.NetworkTags tags = 16;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearTaints()

public UpdateNodePoolRequest.Builder clearTaints()

The desired node taints to be applied to all nodes in the node pool. If this field is not present, the taints will not be changed. Otherwise, the existing node taints will be replaced with the provided taints.

.google.container.v1beta1.NodeTaints taints = 17;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearUpgradeSettings()

public UpdateNodePoolRequest.Builder clearUpgradeSettings()

Upgrade settings control disruption and speed of the upgrade.

.google.container.v1beta1.NodePool.UpgradeSettings upgrade_settings = 15;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearWorkloadMetadataConfig()

public UpdateNodePoolRequest.Builder clearWorkloadMetadataConfig()

The desired workload metadata config for the node pool.

.google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearZone() (deprecated)

public UpdateNodePoolRequest.Builder clearZone()

Deprecated. google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See google/container/v1beta1/cluster_service.proto;l=2409

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.

string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

clone()

public UpdateNodePoolRequest.Builder clone()
Returns
TypeDescription
UpdateNodePoolRequest.Builder
Overrides

getClusterId() (deprecated)

public String getClusterId()

Deprecated. google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=2416

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The clusterId.

getClusterIdBytes() (deprecated)

public ByteString getClusterIdBytes()

Deprecated. google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=2416

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.

string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for clusterId.

getConfidentialNodes()

public ConfidentialNodes getConfidentialNodes()

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 23;

Returns
TypeDescription
ConfidentialNodes

The confidentialNodes.

getConfidentialNodesBuilder()

public ConfidentialNodes.Builder getConfidentialNodesBuilder()

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 23;

Returns
TypeDescription
ConfidentialNodes.Builder

getConfidentialNodesOrBuilder()

public ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder()

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 23;

Returns
TypeDescription
ConfidentialNodesOrBuilder

getDefaultInstanceForType()

public UpdateNodePoolRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateNodePoolRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcfsConfig()

public GcfsConfig getGcfsConfig()

GCFS config.

.google.container.v1beta1.GcfsConfig gcfs_config = 22;

Returns
TypeDescription
GcfsConfig

The gcfsConfig.

getGcfsConfigBuilder()

public GcfsConfig.Builder getGcfsConfigBuilder()

GCFS config.

.google.container.v1beta1.GcfsConfig gcfs_config = 22;

Returns
TypeDescription
GcfsConfig.Builder

getGcfsConfigOrBuilder()

public GcfsConfigOrBuilder getGcfsConfigOrBuilder()

GCFS config.

.google.container.v1beta1.GcfsConfig gcfs_config = 22;

Returns
TypeDescription
GcfsConfigOrBuilder

getGvnic()

public VirtualNIC getGvnic()

Enable or disable gvnic on the node pool.

.google.container.v1beta1.VirtualNIC gvnic = 29;

Returns
TypeDescription
VirtualNIC

The gvnic.

getGvnicBuilder()

public VirtualNIC.Builder getGvnicBuilder()

Enable or disable gvnic on the node pool.

.google.container.v1beta1.VirtualNIC gvnic = 29;

Returns
TypeDescription
VirtualNIC.Builder

getGvnicOrBuilder()

public VirtualNICOrBuilder getGvnicOrBuilder()

Enable or disable gvnic on the node pool.

.google.container.v1beta1.VirtualNIC gvnic = 29;

Returns
TypeDescription
VirtualNICOrBuilder

getImageType()

public String getImageType()

Required. The desired image type for the node pool.

string image_type = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The imageType.

getImageTypeBytes()

public ByteString getImageTypeBytes()

Required. The desired image type for the node pool.

string image_type = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for imageType.

getKubeletConfig()

public NodeKubeletConfig getKubeletConfig()

Node kubelet configs.

.google.container.v1beta1.NodeKubeletConfig kubelet_config = 20;

Returns
TypeDescription
NodeKubeletConfig

The kubeletConfig.

getKubeletConfigBuilder()

public NodeKubeletConfig.Builder getKubeletConfigBuilder()

Node kubelet configs.

.google.container.v1beta1.NodeKubeletConfig kubelet_config = 20;

Returns
TypeDescription
NodeKubeletConfig.Builder

getKubeletConfigOrBuilder()

public NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder()

Node kubelet configs.

.google.container.v1beta1.NodeKubeletConfig kubelet_config = 20;

Returns
TypeDescription
NodeKubeletConfigOrBuilder

getLabels()

public NodeLabels getLabels()

The desired node labels to be applied to all nodes in the node pool. If this field is not present, the labels will not be changed. Otherwise, the existing node labels will be replaced with the provided labels.

.google.container.v1beta1.NodeLabels labels = 18;

Returns
TypeDescription
NodeLabels

The labels.

getLabelsBuilder()

public NodeLabels.Builder getLabelsBuilder()

The desired node labels to be applied to all nodes in the node pool. If this field is not present, the labels will not be changed. Otherwise, the existing node labels will be replaced with the provided labels.

.google.container.v1beta1.NodeLabels labels = 18;

Returns
TypeDescription
NodeLabels.Builder

getLabelsOrBuilder()

public NodeLabelsOrBuilder getLabelsOrBuilder()

The desired node labels to be applied to all nodes in the node pool. If this field is not present, the labels will not be changed. Otherwise, the existing node labels will be replaced with the provided labels.

.google.container.v1beta1.NodeLabels labels = 18;

Returns
TypeDescription
NodeLabelsOrBuilder

getLinuxNodeConfig()

public LinuxNodeConfig getLinuxNodeConfig()

Parameters that can be configured on Linux nodes.

.google.container.v1beta1.LinuxNodeConfig linux_node_config = 19;

Returns
TypeDescription
LinuxNodeConfig

The linuxNodeConfig.

getLinuxNodeConfigBuilder()

public LinuxNodeConfig.Builder getLinuxNodeConfigBuilder()

Parameters that can be configured on Linux nodes.

.google.container.v1beta1.LinuxNodeConfig linux_node_config = 19;

Returns
TypeDescription
LinuxNodeConfig.Builder

getLinuxNodeConfigOrBuilder()

public LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder()

Parameters that can be configured on Linux nodes.

.google.container.v1beta1.LinuxNodeConfig linux_node_config = 19;

Returns
TypeDescription
LinuxNodeConfigOrBuilder

getLocations(int index)

public String getLocations(int index)

The desired list of Google Compute Engine zones in which the node pool's nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.

repeated string locations = 13;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The locations at the given index.

getLocationsBytes(int index)

public ByteString getLocationsBytes(int index)

The desired list of Google Compute Engine zones in which the node pool's nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.

repeated string locations = 13;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the locations at the given index.

getLocationsCount()

public int getLocationsCount()

The desired list of Google Compute Engine zones in which the node pool's nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.

repeated string locations = 13;

Returns
TypeDescription
int

The count of locations.

getLocationsList()

public ProtocolStringList getLocationsList()

The desired list of Google Compute Engine zones in which the node pool's nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.

repeated string locations = 13;

Returns
TypeDescription
ProtocolStringList

A list containing the locations.

getName()

public String getName()

The name (project, location, cluster, node pool) of the node pool to update. Specified in the format projects/*/locations/*/clusters/*/nodePools/*.

string name = 8;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name (project, location, cluster, node pool) of the node pool to update. Specified in the format projects/*/locations/*/clusters/*/nodePools/*.

string name = 8;

Returns
TypeDescription
ByteString

The bytes for name.

getNodeNetworkConfig()

public NodeNetworkConfig getNodeNetworkConfig()

Node network config.

.google.container.v1beta1.NodeNetworkConfig node_network_config = 21;

Returns
TypeDescription
NodeNetworkConfig

The nodeNetworkConfig.

getNodeNetworkConfigBuilder()

public NodeNetworkConfig.Builder getNodeNetworkConfigBuilder()

Node network config.

.google.container.v1beta1.NodeNetworkConfig node_network_config = 21;

Returns
TypeDescription
NodeNetworkConfig.Builder

getNodeNetworkConfigOrBuilder()

public NodeNetworkConfigOrBuilder getNodeNetworkConfigOrBuilder()

Node network config.

.google.container.v1beta1.NodeNetworkConfig node_network_config = 21;

Returns
TypeDescription
NodeNetworkConfigOrBuilder

getNodePoolId() (deprecated)

public String getNodePoolId()

Deprecated. google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=2423

Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.

string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The nodePoolId.

getNodePoolIdBytes() (deprecated)

public ByteString getNodePoolIdBytes()

Deprecated. google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=2423

Required. Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.

string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for nodePoolId.

getNodeVersion()

public String getNodeVersion()

Required. The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior:

  • "latest": picks the highest valid Kubernetes version
  • "1.X": picks the highest valid patch+gke.N patch in the 1.X version
  • "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
  • "1.X.Y-gke.N": picks an explicit Kubernetes version
  • "-": picks the Kubernetes master version

string node_version = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The nodeVersion.

getNodeVersionBytes()

public ByteString getNodeVersionBytes()

Required. The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior:

  • "latest": picks the highest valid Kubernetes version
  • "1.X": picks the highest valid patch+gke.N patch in the 1.X version
  • "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
  • "1.X.Y-gke.N": picks an explicit Kubernetes version
  • "-": picks the Kubernetes master version

string node_version = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for nodeVersion.

getProjectId() (deprecated)

public String getProjectId()

Deprecated. google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=2400

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The projectId.

getProjectIdBytes() (deprecated)

public ByteString getProjectIdBytes()

Deprecated. google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See google/container/v1beta1/cluster_service.proto;l=2400

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for projectId.

getTags()

public NetworkTags getTags()

The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be replaced with the provided tags.

.google.container.v1beta1.NetworkTags tags = 16;

Returns
TypeDescription
NetworkTags

The tags.

getTagsBuilder()

public NetworkTags.Builder getTagsBuilder()

The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be replaced with the provided tags.

.google.container.v1beta1.NetworkTags tags = 16;

Returns
TypeDescription
NetworkTags.Builder

getTagsOrBuilder()

public NetworkTagsOrBuilder getTagsOrBuilder()

The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be replaced with the provided tags.

.google.container.v1beta1.NetworkTags tags = 16;

Returns
TypeDescription
NetworkTagsOrBuilder

getTaints()

public NodeTaints getTaints()

The desired node taints to be applied to all nodes in the node pool. If this field is not present, the taints will not be changed. Otherwise, the existing node taints will be replaced with the provided taints.

.google.container.v1beta1.NodeTaints taints = 17;

Returns
TypeDescription
NodeTaints

The taints.