Class UpdateSettings.Builder (0.38.0)

public static final class UpdateSettings.Builder extends GeneratedMessageV3.Builder<UpdateSettings.Builder> implements UpdateSettingsOrBuilder

UpdateSettings control the level of parallelism and the level of disruption caused during the update of a node pool.

These settings are applicable when the node pool update requires replacing the existing node pool nodes with the updated ones.

UpdateSettings are optional. When UpdateSettings are not specified during the node pool creation, a default is chosen based on the parent cluster's version. For clusters with minor version 1.27 and later, a default surge_settings configuration with max_surge = 1 and max_unavailable = 0 is used. For clusters with older versions, node pool updates use the traditional rolling update mechanism of updating one node at a time in a "terminate before create" fashion and update_settings is not applicable.

Set the surge_settings parameter to use the Surge Update mechanism for the rolling update of node pool nodes.

  1. max_surge controls the number of additional nodes that can be created beyond the current size of the node pool temporarily for the time of the update to increase the number of available nodes.
  2. max_unavailable controls the number of nodes that can be simultaneously unavailable during the update.
  3. (max_surge + max_unavailable) determines the level of parallelism (i.e., the number of nodes being updated at the same time).

Protobuf type google.cloud.gkemulticloud.v1.UpdateSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSettings build()
Returns
TypeDescription
UpdateSettings

buildPartial()

public UpdateSettings buildPartial()
Returns
TypeDescription
UpdateSettings

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSurgeSettings()

public UpdateSettings.Builder clearSurgeSettings()

Optional. Settings for surge update.

.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UpdateSettings.Builder

clone()

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

getDefaultInstanceForType()

public UpdateSettings getDefaultInstanceForType()
Returns
TypeDescription
UpdateSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSurgeSettings()

public SurgeSettings getSurgeSettings()

Optional. Settings for surge update.

.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SurgeSettings

The surgeSettings.

getSurgeSettingsBuilder()

public SurgeSettings.Builder getSurgeSettingsBuilder()

Optional. Settings for surge update.

.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SurgeSettings.Builder

getSurgeSettingsOrBuilder()

public SurgeSettingsOrBuilder getSurgeSettingsOrBuilder()

Optional. Settings for surge update.

.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SurgeSettingsOrBuilder

hasSurgeSettings()

public boolean hasSurgeSettings()

Optional. Settings for surge update.

.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the surgeSettings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateSettings other)

public UpdateSettings.Builder mergeFrom(UpdateSettings other)
Parameter
NameDescription
otherUpdateSettings
Returns
TypeDescription
UpdateSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSurgeSettings(SurgeSettings value)

public UpdateSettings.Builder mergeSurgeSettings(SurgeSettings value)

Optional. Settings for surge update.

.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueSurgeSettings
Returns
TypeDescription
UpdateSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSurgeSettings(SurgeSettings value)

public UpdateSettings.Builder setSurgeSettings(SurgeSettings value)

Optional. Settings for surge update.

.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueSurgeSettings
Returns
TypeDescription
UpdateSettings.Builder

setSurgeSettings(SurgeSettings.Builder builderForValue)

public UpdateSettings.Builder setSurgeSettings(SurgeSettings.Builder builderForValue)

Optional. Settings for surge update.

.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueSurgeSettings.Builder
Returns
TypeDescription
UpdateSettings.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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