Class SurgeSettings.Builder (0.50.0)

public static final class SurgeSettings.Builder extends GeneratedMessageV3.Builder<SurgeSettings.Builder> implements SurgeSettingsOrBuilder

SurgeSettings contains the parameters for Surge update.

Protobuf type google.cloud.gkemulticloud.v1.SurgeSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SurgeSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SurgeSettings.Builder
Overrides

build()

public SurgeSettings build()
Returns
Type Description
SurgeSettings

buildPartial()

public SurgeSettings buildPartial()
Returns
Type Description
SurgeSettings

clear()

public SurgeSettings.Builder clear()
Returns
Type Description
SurgeSettings.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SurgeSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SurgeSettings.Builder
Overrides

clearMaxSurge()

public SurgeSettings.Builder clearMaxSurge()

Optional. The maximum number of nodes that can be created beyond the current size of the node pool during the update process.

int32 max_surge = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SurgeSettings.Builder

This builder for chaining.

clearMaxUnavailable()

public SurgeSettings.Builder clearMaxUnavailable()

Optional. The maximum number of nodes that can be simultaneously unavailable during the update process. A node is considered unavailable if its status is not Ready.

int32 max_unavailable = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SurgeSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SurgeSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SurgeSettings.Builder
Overrides

clone()

public SurgeSettings.Builder clone()
Returns
Type Description
SurgeSettings.Builder
Overrides

getDefaultInstanceForType()

public SurgeSettings getDefaultInstanceForType()
Returns
Type Description
SurgeSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMaxSurge()

public int getMaxSurge()

Optional. The maximum number of nodes that can be created beyond the current size of the node pool during the update process.

int32 max_surge = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The maxSurge.

getMaxUnavailable()

public int getMaxUnavailable()

Optional. The maximum number of nodes that can be simultaneously unavailable during the update process. A node is considered unavailable if its status is not Ready.

int32 max_unavailable = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The maxUnavailable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SurgeSettings other)

public SurgeSettings.Builder mergeFrom(SurgeSettings other)
Parameter
Name Description
other SurgeSettings
Returns
Type Description
SurgeSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SurgeSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SurgeSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SurgeSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SurgeSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SurgeSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SurgeSettings.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SurgeSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SurgeSettings.Builder
Overrides

setMaxSurge(int value)

public SurgeSettings.Builder setMaxSurge(int value)

Optional. The maximum number of nodes that can be created beyond the current size of the node pool during the update process.

int32 max_surge = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The maxSurge to set.

Returns
Type Description
SurgeSettings.Builder

This builder for chaining.

setMaxUnavailable(int value)

public SurgeSettings.Builder setMaxUnavailable(int value)

Optional. The maximum number of nodes that can be simultaneously unavailable during the update process. A node is considered unavailable if its status is not Ready.

int32 max_unavailable = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The maxUnavailable to set.

Returns
Type Description
SurgeSettings.Builder

This builder for chaining.

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

public SurgeSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SurgeSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SurgeSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SurgeSettings.Builder
Overrides