- 2.57.0 (latest)
- 2.56.0
- 2.55.0
- 2.54.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.2
- 2.4.1
- 2.3.8
public static final class ClusterAutoscaling.Builder extends GeneratedMessageV3.Builder<ClusterAutoscaling.Builder> implements ClusterAutoscalingOrBuilder
ClusterAutoscaling contains global, per-cluster information required by Cluster Autoscaler to automatically adjust the size of the cluster and create/delete node pools based on the current needs.
Protobuf type google.container.v1beta1.ClusterAutoscaling
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ClusterAutoscaling.BuilderImplements
ClusterAutoscalingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllAutoprovisioningLocations(Iterable<String> values)
public ClusterAutoscaling.Builder addAllAutoprovisioningLocations(Iterable<String> values)
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The autoprovisioningLocations to add. |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
This builder for chaining. |
addAllResourceLimits(Iterable<? extends ResourceLimit> values)
public ClusterAutoscaling.Builder addAllResourceLimits(Iterable<? extends ResourceLimit> values)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.container.v1beta1.ResourceLimit> |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
addAutoprovisioningLocations(String value)
public ClusterAutoscaling.Builder addAutoprovisioningLocations(String value)
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;
Parameter | |
---|---|
Name | Description |
value |
String The autoprovisioningLocations to add. |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
This builder for chaining. |
addAutoprovisioningLocationsBytes(ByteString value)
public ClusterAutoscaling.Builder addAutoprovisioningLocationsBytes(ByteString value)
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the autoprovisioningLocations to add. |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ClusterAutoscaling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
addResourceLimits(ResourceLimit value)
public ClusterAutoscaling.Builder addResourceLimits(ResourceLimit value)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameter | |
---|---|
Name | Description |
value |
ResourceLimit |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
addResourceLimits(ResourceLimit.Builder builderForValue)
public ClusterAutoscaling.Builder addResourceLimits(ResourceLimit.Builder builderForValue)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameter | |
---|---|
Name | Description |
builderForValue |
ResourceLimit.Builder |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
addResourceLimits(int index, ResourceLimit value)
public ClusterAutoscaling.Builder addResourceLimits(int index, ResourceLimit value)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
ResourceLimit |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
addResourceLimits(int index, ResourceLimit.Builder builderForValue)
public ClusterAutoscaling.Builder addResourceLimits(int index, ResourceLimit.Builder builderForValue)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
ResourceLimit.Builder |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
addResourceLimitsBuilder()
public ResourceLimit.Builder addResourceLimitsBuilder()
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Returns | |
---|---|
Type | Description |
ResourceLimit.Builder |
addResourceLimitsBuilder(int index)
public ResourceLimit.Builder addResourceLimitsBuilder(int index)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ResourceLimit.Builder |
build()
public ClusterAutoscaling build()
Returns | |
---|---|
Type | Description |
ClusterAutoscaling |
buildPartial()
public ClusterAutoscaling buildPartial()
Returns | |
---|---|
Type | Description |
ClusterAutoscaling |
clear()
public ClusterAutoscaling.Builder clear()
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
clearAutoprovisioningLocations()
public ClusterAutoscaling.Builder clearAutoprovisioningLocations()
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
This builder for chaining. |
clearAutoprovisioningNodePoolDefaults()
public ClusterAutoscaling.Builder clearAutoprovisioningNodePoolDefaults()
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
clearAutoscalingProfile()
public ClusterAutoscaling.Builder clearAutoscalingProfile()
Defines autoscaling behaviour.
.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
This builder for chaining. |
clearEnableNodeAutoprovisioning()
public ClusterAutoscaling.Builder clearEnableNodeAutoprovisioning()
Enables automatic node pool creation and deletion.
bool enable_node_autoprovisioning = 1;
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ClusterAutoscaling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ClusterAutoscaling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
clearResourceLimits()
public ClusterAutoscaling.Builder clearResourceLimits()
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
clone()
public ClusterAutoscaling.Builder clone()
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
getAutoprovisioningLocations(int index)
public String getAutoprovisioningLocations(int index)
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The autoprovisioningLocations at the given index. |
getAutoprovisioningLocationsBytes(int index)
public ByteString getAutoprovisioningLocationsBytes(int index)
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the autoprovisioningLocations at the given index. |
getAutoprovisioningLocationsCount()
public int getAutoprovisioningLocationsCount()
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;
Returns | |
---|---|
Type | Description |
int |
The count of autoprovisioningLocations. |
getAutoprovisioningLocationsList()
public ProtocolStringList getAutoprovisioningLocationsList()
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the autoprovisioningLocations. |
getAutoprovisioningNodePoolDefaults()
public AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults()
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
Returns | |
---|---|
Type | Description |
AutoprovisioningNodePoolDefaults |
The autoprovisioningNodePoolDefaults. |
getAutoprovisioningNodePoolDefaultsBuilder()
public AutoprovisioningNodePoolDefaults.Builder getAutoprovisioningNodePoolDefaultsBuilder()
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
Returns | |
---|---|
Type | Description |
AutoprovisioningNodePoolDefaults.Builder |
getAutoprovisioningNodePoolDefaultsOrBuilder()
public AutoprovisioningNodePoolDefaultsOrBuilder getAutoprovisioningNodePoolDefaultsOrBuilder()
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
Returns | |
---|---|
Type | Description |
AutoprovisioningNodePoolDefaultsOrBuilder |
getAutoscalingProfile()
public ClusterAutoscaling.AutoscalingProfile getAutoscalingProfile()
Defines autoscaling behaviour.
.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.AutoscalingProfile |
The autoscalingProfile. |
getAutoscalingProfileValue()
public int getAutoscalingProfileValue()
Defines autoscaling behaviour.
.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for autoscalingProfile. |
getDefaultInstanceForType()
public ClusterAutoscaling getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ClusterAutoscaling |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEnableNodeAutoprovisioning()
public boolean getEnableNodeAutoprovisioning()
Enables automatic node pool creation and deletion.
bool enable_node_autoprovisioning = 1;
Returns | |
---|---|
Type | Description |
boolean |
The enableNodeAutoprovisioning. |
getResourceLimits(int index)
public ResourceLimit getResourceLimits(int index)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ResourceLimit |
getResourceLimitsBuilder(int index)
public ResourceLimit.Builder getResourceLimitsBuilder(int index)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ResourceLimit.Builder |
getResourceLimitsBuilderList()
public List<ResourceLimit.Builder> getResourceLimitsBuilderList()
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Returns | |
---|---|
Type | Description |
List<Builder> |
getResourceLimitsCount()
public int getResourceLimitsCount()
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Returns | |
---|---|
Type | Description |
int |
getResourceLimitsList()
public List<ResourceLimit> getResourceLimitsList()
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Returns | |
---|---|
Type | Description |
List<ResourceLimit> |
getResourceLimitsOrBuilder(int index)
public ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ResourceLimitOrBuilder |
getResourceLimitsOrBuilderList()
public List<? extends ResourceLimitOrBuilder> getResourceLimitsOrBuilderList()
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Returns | |
---|---|
Type | Description |
List<? extends com.google.container.v1beta1.ResourceLimitOrBuilder> |
hasAutoprovisioningNodePoolDefaults()
public boolean hasAutoprovisioningNodePoolDefaults()
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the autoprovisioningNodePoolDefaults field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeAutoprovisioningNodePoolDefaults(AutoprovisioningNodePoolDefaults value)
public ClusterAutoscaling.Builder mergeAutoprovisioningNodePoolDefaults(AutoprovisioningNodePoolDefaults value)
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
Parameter | |
---|---|
Name | Description |
value |
AutoprovisioningNodePoolDefaults |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
mergeFrom(ClusterAutoscaling other)
public ClusterAutoscaling.Builder mergeFrom(ClusterAutoscaling other)
Parameter | |
---|---|
Name | Description |
other |
ClusterAutoscaling |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ClusterAutoscaling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ClusterAutoscaling.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ClusterAutoscaling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
removeResourceLimits(int index)
public ClusterAutoscaling.Builder removeResourceLimits(int index)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
setAutoprovisioningLocations(int index, String value)
public ClusterAutoscaling.Builder setAutoprovisioningLocations(int index, String value)
The list of Google Compute Engine zones in which the NodePool's nodes can be created by NAP.
repeated string autoprovisioning_locations = 5;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The autoprovisioningLocations to set. |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
This builder for chaining. |
setAutoprovisioningNodePoolDefaults(AutoprovisioningNodePoolDefaults value)
public ClusterAutoscaling.Builder setAutoprovisioningNodePoolDefaults(AutoprovisioningNodePoolDefaults value)
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
Parameter | |
---|---|
Name | Description |
value |
AutoprovisioningNodePoolDefaults |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
setAutoprovisioningNodePoolDefaults(AutoprovisioningNodePoolDefaults.Builder builderForValue)
public ClusterAutoscaling.Builder setAutoprovisioningNodePoolDefaults(AutoprovisioningNodePoolDefaults.Builder builderForValue)
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
.google.container.v1beta1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
AutoprovisioningNodePoolDefaults.Builder |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
setAutoscalingProfile(ClusterAutoscaling.AutoscalingProfile value)
public ClusterAutoscaling.Builder setAutoscalingProfile(ClusterAutoscaling.AutoscalingProfile value)
Defines autoscaling behaviour.
.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;
Parameter | |
---|---|
Name | Description |
value |
ClusterAutoscaling.AutoscalingProfile The autoscalingProfile to set. |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
This builder for chaining. |
setAutoscalingProfileValue(int value)
public ClusterAutoscaling.Builder setAutoscalingProfileValue(int value)
Defines autoscaling behaviour.
.google.container.v1beta1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for autoscalingProfile to set. |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
This builder for chaining. |
setEnableNodeAutoprovisioning(boolean value)
public ClusterAutoscaling.Builder setEnableNodeAutoprovisioning(boolean value)
Enables automatic node pool creation and deletion.
bool enable_node_autoprovisioning = 1;
Parameter | |
---|---|
Name | Description |
value |
boolean The enableNodeAutoprovisioning to set. |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ClusterAutoscaling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ClusterAutoscaling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
setResourceLimits(int index, ResourceLimit value)
public ClusterAutoscaling.Builder setResourceLimits(int index, ResourceLimit value)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
ResourceLimit |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
setResourceLimits(int index, ResourceLimit.Builder builderForValue)
public ClusterAutoscaling.Builder setResourceLimits(int index, ResourceLimit.Builder builderForValue)
Contains global constraints regarding minimum and maximum amount of resources in the cluster.
repeated .google.container.v1beta1.ResourceLimit resource_limits = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
ResourceLimit.Builder |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ClusterAutoscaling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ClusterAutoscaling.Builder |