Class SetNodePoolAutoscalingRequest.Builder (2.20.0)

public static final class SetNodePoolAutoscalingRequest.Builder extends GeneratedMessageV3.Builder<SetNodePoolAutoscalingRequest.Builder> implements SetNodePoolAutoscalingRequestOrBuilder

SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.

Protobuf type google.container.v1.SetNodePoolAutoscalingRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SetNodePoolAutoscalingRequest build()
Returns
TypeDescription
SetNodePoolAutoscalingRequest

buildPartial()

public SetNodePoolAutoscalingRequest buildPartial()
Returns
TypeDescription
SetNodePoolAutoscalingRequest

clear()

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

clearAutoscaling()

public SetNodePoolAutoscalingRequest.Builder clearAutoscaling()

Required. Autoscaling configuration for the node pool.

.google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SetNodePoolAutoscalingRequest.Builder

clearClusterId() (deprecated)

public SetNodePoolAutoscalingRequest.Builder clearClusterId()

Deprecated. google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2539

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
SetNodePoolAutoscalingRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public SetNodePoolAutoscalingRequest.Builder clearName()

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

string name = 6;

Returns
TypeDescription
SetNodePoolAutoscalingRequest.Builder

This builder for chaining.

clearNodePoolId() (deprecated)

public SetNodePoolAutoscalingRequest.Builder clearNodePoolId()

Deprecated. google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See google/container/v1/cluster_service.proto;l=2543

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
SetNodePoolAutoscalingRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId() (deprecated)

public SetNodePoolAutoscalingRequest.Builder clearProjectId()

Deprecated. google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=2529

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
SetNodePoolAutoscalingRequest.Builder

This builder for chaining.

clearZone() (deprecated)

public SetNodePoolAutoscalingRequest.Builder clearZone()

Deprecated. google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=2535

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
SetNodePoolAutoscalingRequest.Builder

This builder for chaining.

clone()

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

getAutoscaling()

public NodePoolAutoscaling getAutoscaling()

Required. Autoscaling configuration for the node pool.

.google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NodePoolAutoscaling

The autoscaling.

getAutoscalingBuilder()

public NodePoolAutoscaling.Builder getAutoscalingBuilder()

Required. Autoscaling configuration for the node pool.

.google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NodePoolAutoscaling.Builder

getAutoscalingOrBuilder()

public NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder()

Required. Autoscaling configuration for the node pool.

.google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NodePoolAutoscalingOrBuilder

getClusterId() (deprecated)

public String getClusterId()

Deprecated. google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2539

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. google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=2539

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 SetNodePoolAutoscalingRequest getDefaultInstanceForType()
Returns
TypeDescription
SetNodePoolAutoscalingRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()