Class SurgeSettings.Builder (0.84.0)

public static final class SurgeSettings.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.