Class UpdateNodePoolRequest.Builder (2.3.8)

public static final class UpdateNodePoolRequest.Builder extends GeneratedMessageV3.Builder<UpdateNodePoolRequest.Builder> implements UpdateNodePoolRequestOrBuilder

UpdateNodePoolRequests update a node pool's image and/or version.

Protobuf type google.container.v1.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.

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];

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

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.v1.GcfsConfig gcfs_config = 22;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearGvnic()

public UpdateNodePoolRequest.Builder clearGvnic()

Enable or disable gvnic on the node pool.

.google.container.v1.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.v1.NodeKubeletConfig kubelet_config = 20;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearLinuxNodeConfig()

public UpdateNodePoolRequest.Builder clearLinuxNodeConfig()

Parameters that can be configured on Linux nodes.

.google.container.v1.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.

clearNodePoolId() (deprecated)

public UpdateNodePoolRequest.Builder clearNodePoolId()

Deprecated.

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];

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.

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];

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

clearUpgradeSettings()

public UpdateNodePoolRequest.Builder clearUpgradeSettings()

Upgrade settings control disruption and speed of the upgrade.

.google.container.v1.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.v1.WorkloadMetadataConfig workload_metadata_config = 14;

Returns
TypeDescription
UpdateNodePoolRequest.Builder

clearZone() (deprecated)

public UpdateNodePoolRequest.Builder clearZone()

Deprecated.

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];

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

clone()

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

getClusterId() (deprecated)

public String getClusterId()

Deprecated.

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];

Returns
TypeDescription
String

The clusterId.

getClusterIdBytes() (deprecated)

public ByteString getClusterIdBytes()

Deprecated.

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];

Returns
TypeDescription
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

public UpdateNodePoolRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateNodePoolRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcfsConfig()

public GcfsConfig getGcfsConfig()

GCFS config.

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

Returns
TypeDescription
GcfsConfig

The gcfsConfig.

getGcfsConfigBuilder()

public GcfsConfig.Builder getGcfsConfigBuilder()

GCFS config.

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

Returns
TypeDescription
GcfsConfig.Builder

getGcfsConfigOrBuilder()

public GcfsConfigOrBuilder getGcfsConfigOrBuilder()

GCFS config.

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

Returns
TypeDescription
GcfsConfigOrBuilder

getGvnic()

public VirtualNIC getGvnic()

Enable or disable gvnic on the node pool.

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

Returns
TypeDescription
VirtualNIC

The gvnic.

getGvnicBuilder()

public VirtualNIC.Builder getGvnicBuilder()

Enable or disable gvnic on the node pool.

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

Returns
TypeDescription
VirtualNIC.Builder

getGvnicOrBuilder()

public VirtualNICOrBuilder getGvnicOrBuilder()

Enable or disable gvnic on the node pool.

.google.container.v1.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.v1.NodeKubeletConfig kubelet_config = 20;

Returns
TypeDescription
NodeKubeletConfig

The kubeletConfig.

getKubeletConfigBuilder()

public NodeKubeletConfig.Builder getKubeletConfigBuilder()

Node kubelet configs.

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

Returns
TypeDescription
NodeKubeletConfig.Builder

getKubeletConfigOrBuilder()

public NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder()

Node kubelet configs.

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

Returns
TypeDescription
NodeKubeletConfigOrBuilder

getLinuxNodeConfig()

public LinuxNodeConfig getLinuxNodeConfig()

Parameters that can be configured on Linux nodes.

.google.container.v1.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.v1.LinuxNodeConfig linux_node_config = 19;

Returns
TypeDescription
LinuxNodeConfig.Builder

getLinuxNodeConfigOrBuilder()

public LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder()

Parameters that can be configured on Linux nodes.

.google.container.v1.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.

getNodePoolId() (deprecated)

public String getNodePoolId()

Deprecated.

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];

Returns
TypeDescription
String

The nodePoolId.

getNodePoolIdBytes() (deprecated)

public ByteString getNodePoolIdBytes()

Deprecated.

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];

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.

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];

Returns
TypeDescription
String

The projectId.

getProjectIdBytes() (deprecated)

public ByteString getProjectIdBytes()

Deprecated.

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];

Returns
TypeDescription
ByteString

The bytes for projectId.

getUpgradeSettings()

public NodePool.UpgradeSettings getUpgradeSettings()

Upgrade settings control disruption and speed of the upgrade.

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

Returns
TypeDescription
NodePool.UpgradeSettings

The upgradeSettings.

getUpgradeSettingsBuilder()

public NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder()

Upgrade settings control disruption and speed of the upgrade.

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

Returns
TypeDescription
NodePool.UpgradeSettings.Builder

getUpgradeSettingsOrBuilder()

public NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder()

Upgrade settings control disruption and speed of the upgrade.

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

Returns
TypeDescription
NodePool.UpgradeSettingsOrBuilder

getWorkloadMetadataConfig()

public WorkloadMetadataConfig getWorkloadMetadataConfig()

The desired workload metadata config for the node pool.

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

Returns
TypeDescription
WorkloadMetadataConfig

The workloadMetadataConfig.

getWorkloadMetadataConfigBuilder()

public WorkloadMetadataConfig.Builder getWorkloadMetadataConfigBuilder()

The desired workload metadata config for the node pool.

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

Returns
TypeDescription
WorkloadMetadataConfig.Builder

getWorkloadMetadataConfigOrBuilder()

public WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder()

The desired workload metadata config for the node pool.

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

Returns
TypeDescription
WorkloadMetadataConfigOrBuilder

getZone() (deprecated)

public String getZone()

Deprecated.

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];

Returns
TypeDescription
String

The zone.

getZoneBytes() (deprecated)

public ByteString getZoneBytes()

Deprecated.

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];

Returns
TypeDescription
ByteString

The bytes for zone.

hasGcfsConfig()

public boolean hasGcfsConfig()

GCFS config.

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

Returns
TypeDescription
boolean

Whether the gcfsConfig field is set.

hasGvnic()

public boolean hasGvnic()

Enable or disable gvnic on the node pool.

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

Returns
TypeDescription
boolean

Whether the gvnic field is set.

hasKubeletConfig()

public boolean hasKubeletConfig()

Node kubelet configs.

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

Returns
TypeDescription
boolean

Whether the kubeletConfig field is set.

hasLinuxNodeConfig()

public boolean hasLinuxNodeConfig()

Parameters that can be configured on Linux nodes.

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

Returns
TypeDescription
boolean

Whether the linuxNodeConfig field is set.

hasUpgradeSettings()

public boolean hasUpgradeSettings()

Upgrade settings control disruption and speed of the upgrade.

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

Returns
TypeDescription
boolean

Whether the upgradeSettings field is set.

hasWorkloadMetadataConfig()

public boolean hasWorkloadMetadataConfig()

The desired workload metadata config for the node pool.

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

Returns
TypeDescription
boolean

Whether the workloadMetadataConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateNodePoolRequest other)

public UpdateNodePoolRequest.Builder mergeFrom(UpdateNodePoolRequest other)
Parameter
NameDescription
otherUpdateNodePoolRequest
Returns
TypeDescription
UpdateNodePoolRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateNodePoolRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateNodePoolRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateNodePoolRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateNodePoolRequest.Builder
Overrides

mergeGcfsConfig(GcfsConfig value)

public UpdateNodePoolRequest.Builder mergeGcfsConfig(GcfsConfig value)

GCFS config.

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

Parameter
NameDescription
valueGcfsConfig
Returns
TypeDescription
UpdateNodePoolRequest.Builder

mergeGvnic(VirtualNIC value)

public UpdateNodePoolRequest.Builder mergeGvnic(VirtualNIC value)

Enable or disable gvnic on the node pool.

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

Parameter
NameDescription
valueVirtualNIC
Returns
TypeDescription
UpdateNodePoolRequest.Builder

mergeKubeletConfig(NodeKubeletConfig value)

public UpdateNodePoolRequest.Builder mergeKubeletConfig(NodeKubeletConfig value)

Node kubelet configs.

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

Parameter
NameDescription
valueNodeKubeletConfig
Returns
TypeDescription
UpdateNodePoolRequest.Builder

mergeLinuxNodeConfig(LinuxNodeConfig value)

public UpdateNodePoolRequest.Builder mergeLinuxNodeConfig(LinuxNodeConfig value)

Parameters that can be configured on Linux nodes.

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

Parameter
NameDescription
valueLinuxNodeConfig
Returns
TypeDescription
UpdateNodePoolRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateNodePoolRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateNodePoolRequest.Builder
Overrides

mergeUpgradeSettings(NodePool.UpgradeSettings value)

public UpdateNodePoolRequest.Builder mergeUpgradeSettings(NodePool.UpgradeSettings value)

Upgrade settings control disruption and speed of the upgrade.

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

Parameter
NameDescription
valueNodePool.UpgradeSettings
Returns
TypeDescription
UpdateNodePoolRequest.Builder

mergeWorkloadMetadataConfig(WorkloadMetadataConfig value)

public UpdateNodePoolRequest.Builder mergeWorkloadMetadataConfig(WorkloadMetadataConfig value)

The desired workload metadata config for the node pool.

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

Parameter
NameDescription
valueWorkloadMetadataConfig
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setClusterId(String value) (deprecated)

public UpdateNodePoolRequest.Builder setClusterId(String value)

Deprecated.

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];

Parameter
NameDescription
valueString

The clusterId to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setClusterIdBytes(ByteString value) (deprecated)

public UpdateNodePoolRequest.Builder setClusterIdBytes(ByteString value)

Deprecated.

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];

Parameter
NameDescription
valueByteString

The bytes for clusterId to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcfsConfig(GcfsConfig value)

public UpdateNodePoolRequest.Builder setGcfsConfig(GcfsConfig value)

GCFS config.

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

Parameter
NameDescription
valueGcfsConfig
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setGcfsConfig(GcfsConfig.Builder builderForValue)

public UpdateNodePoolRequest.Builder setGcfsConfig(GcfsConfig.Builder builderForValue)

GCFS config.

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

Parameter
NameDescription
builderForValueGcfsConfig.Builder
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setGvnic(VirtualNIC value)

public UpdateNodePoolRequest.Builder setGvnic(VirtualNIC value)

Enable or disable gvnic on the node pool.

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

Parameter
NameDescription
valueVirtualNIC
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setGvnic(VirtualNIC.Builder builderForValue)

public UpdateNodePoolRequest.Builder setGvnic(VirtualNIC.Builder builderForValue)

Enable or disable gvnic on the node pool.

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

Parameter
NameDescription
builderForValueVirtualNIC.Builder
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setImageType(String value)

public UpdateNodePoolRequest.Builder setImageType(String value)

Required. The desired image type for the node pool.

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

Parameter
NameDescription
valueString

The imageType to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setImageTypeBytes(ByteString value)

public UpdateNodePoolRequest.Builder setImageTypeBytes(ByteString value)

Required. The desired image type for the node pool.

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

Parameter
NameDescription
valueByteString

The bytes for imageType to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setKubeletConfig(NodeKubeletConfig value)

public UpdateNodePoolRequest.Builder setKubeletConfig(NodeKubeletConfig value)

Node kubelet configs.

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

Parameter
NameDescription
valueNodeKubeletConfig
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setKubeletConfig(NodeKubeletConfig.Builder builderForValue)

public UpdateNodePoolRequest.Builder setKubeletConfig(NodeKubeletConfig.Builder builderForValue)

Node kubelet configs.

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

Parameter
NameDescription
builderForValueNodeKubeletConfig.Builder
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setLinuxNodeConfig(LinuxNodeConfig value)

public UpdateNodePoolRequest.Builder setLinuxNodeConfig(LinuxNodeConfig value)

Parameters that can be configured on Linux nodes.

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

Parameter
NameDescription
valueLinuxNodeConfig
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setLinuxNodeConfig(LinuxNodeConfig.Builder builderForValue)

public UpdateNodePoolRequest.Builder setLinuxNodeConfig(LinuxNodeConfig.Builder builderForValue)

Parameters that can be configured on Linux nodes.

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

Parameter
NameDescription
builderForValueLinuxNodeConfig.Builder
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setLocations(int index, String value)

public UpdateNodePoolRequest.Builder setLocations(int index, 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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The locations to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setName(String value)

public UpdateNodePoolRequest.Builder setName(String value)

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

string name = 8;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateNodePoolRequest.Builder setNameBytes(ByteString value)

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

string name = 8;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setNodePoolId(String value) (deprecated)

public UpdateNodePoolRequest.Builder setNodePoolId(String value)

Deprecated.

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];

Parameter
NameDescription
valueString

The nodePoolId to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setNodePoolIdBytes(ByteString value) (deprecated)

public UpdateNodePoolRequest.Builder setNodePoolIdBytes(ByteString value)

Deprecated.

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];

Parameter
NameDescription
valueByteString

The bytes for nodePoolId to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setNodeVersion(String value)

public UpdateNodePoolRequest.Builder setNodeVersion(String value)

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];

Parameter
NameDescription
valueString

The nodeVersion to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setNodeVersionBytes(ByteString value)

public UpdateNodePoolRequest.Builder setNodeVersionBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for nodeVersion to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setProjectId(String value) (deprecated)

public UpdateNodePoolRequest.Builder setProjectId(String value)

Deprecated.

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];

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value) (deprecated)

public UpdateNodePoolRequest.Builder setProjectIdBytes(ByteString value)

Deprecated.

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];

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateNodePoolRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateNodePoolRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateNodePoolRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateNodePoolRequest.Builder
Overrides

setUpgradeSettings(NodePool.UpgradeSettings value)

public UpdateNodePoolRequest.Builder setUpgradeSettings(NodePool.UpgradeSettings value)

Upgrade settings control disruption and speed of the upgrade.

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

Parameter
NameDescription
valueNodePool.UpgradeSettings
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setUpgradeSettings(NodePool.UpgradeSettings.Builder builderForValue)

public UpdateNodePoolRequest.Builder setUpgradeSettings(NodePool.UpgradeSettings.Builder builderForValue)

Upgrade settings control disruption and speed of the upgrade.

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

Parameter
NameDescription
builderForValueNodePool.UpgradeSettings.Builder
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setWorkloadMetadataConfig(WorkloadMetadataConfig value)

public UpdateNodePoolRequest.Builder setWorkloadMetadataConfig(WorkloadMetadataConfig value)

The desired workload metadata config for the node pool.

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

Parameter
NameDescription
valueWorkloadMetadataConfig
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setWorkloadMetadataConfig(WorkloadMetadataConfig.Builder builderForValue)

public UpdateNodePoolRequest.Builder setWorkloadMetadataConfig(WorkloadMetadataConfig.Builder builderForValue)

The desired workload metadata config for the node pool.

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

Parameter
NameDescription
builderForValueWorkloadMetadataConfig.Builder
Returns
TypeDescription
UpdateNodePoolRequest.Builder

setZone(String value) (deprecated)

public UpdateNodePoolRequest.Builder setZone(String value)

Deprecated.

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];

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.

setZoneBytes(ByteString value) (deprecated)

public UpdateNodePoolRequest.Builder setZoneBytes(ByteString value)

Deprecated.

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];

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
UpdateNodePoolRequest.Builder

This builder for chaining.