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.
- 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.
- max_unavailable controls the number of nodes that can be simultaneously
unavailable during the update.
- (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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UpdateSettings build()
buildPartial()
public UpdateSettings buildPartial()
clear()
public UpdateSettings.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public UpdateSettings.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSurgeSettings()
public UpdateSettings.Builder clearSurgeSettings()
Optional. Settings for surge update.
.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
clone()
public UpdateSettings.Builder clone()
Overrides
getDefaultInstanceForType()
public UpdateSettings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getSurgeSettings()
public SurgeSettings getSurgeSettings()
Optional. Settings for surge update.
.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
getSurgeSettingsBuilder()
public SurgeSettings.Builder getSurgeSettingsBuilder()
Optional. Settings for surge update.
.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
getSurgeSettingsOrBuilder()
public SurgeSettingsOrBuilder getSurgeSettingsOrBuilder()
Optional. Settings for surge update.
.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
hasSurgeSettings()
public boolean hasSurgeSettings()
Optional. Settings for surge update.
.google.cloud.gkemulticloud.v1.SurgeSettings surge_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
boolean | Whether the surgeSettings field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(UpdateSettings other)
public UpdateSettings.Builder mergeFrom(UpdateSettings other)
public UpdateSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UpdateSettings.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides