Class SurgeSettings (0.38.0)

public final class SurgeSettings extends GeneratedMessageV3 implements SurgeSettingsOrBuilder

SurgeSettings contains the parameters for Surge update.

Protobuf type google.cloud.gkemulticloud.v1.SurgeSettings

Static Fields

MAX_SURGE_FIELD_NUMBER

public static final int MAX_SURGE_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_UNAVAILABLE_FIELD_NUMBER

public static final int MAX_UNAVAILABLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SurgeSettings getDefaultInstance()
Returns
TypeDescription
SurgeSettings

getDescriptor()

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

newBuilder()

public static SurgeSettings.Builder newBuilder()
Returns
TypeDescription
SurgeSettings.Builder

newBuilder(SurgeSettings prototype)

public static SurgeSettings.Builder newBuilder(SurgeSettings prototype)
Parameter
NameDescription
prototypeSurgeSettings
Returns
TypeDescription
SurgeSettings.Builder

parseDelimitedFrom(InputStream input)

public static SurgeSettings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SurgeSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SurgeSettings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SurgeSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SurgeSettings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SurgeSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SurgeSettings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SurgeSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SurgeSettings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SurgeSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SurgeSettings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SurgeSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SurgeSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SurgeSettings> parser()
Returns
TypeDescription
Parser<SurgeSettings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SurgeSettings getDefaultInstanceForType()
Returns
TypeDescription
SurgeSettings

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.

getParserForType()

public Parser<SurgeSettings> getParserForType()
Returns
TypeDescription
Parser<SurgeSettings>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SurgeSettings.Builder newBuilderForType()
Returns
TypeDescription
SurgeSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SurgeSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SurgeSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SurgeSettings.Builder toBuilder()
Returns
TypeDescription
SurgeSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException