Class SurgeSettings.Builder (0.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SurgeSettings build()
Returns
TypeDescription
SurgeSettings

buildPartial()

public SurgeSettings buildPartial()
Returns
TypeDescription
SurgeSettings

clear()

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

clearField(Descriptors.FieldDescriptor field)

public SurgeSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SurgeSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SurgeSettings getDefaultInstanceForType()
Returns
TypeDescription
SurgeSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The maxUnavailable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SurgeSettings other)

public SurgeSettings.Builder mergeFrom(SurgeSettings other)
Parameter
NameDescription
otherSurgeSettings
Returns
TypeDescription
SurgeSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public SurgeSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The maxSurge to set.

Returns
TypeDescription
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
NameDescription
valueint

The maxUnavailable to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SurgeSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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