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
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 SurgeSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SurgeSettings build()
buildPartial()
public SurgeSettings buildPartial()
clear()
public SurgeSettings.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SurgeSettings.Builder clearField(Descriptors.FieldDescriptor field)
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];
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public SurgeSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SurgeSettings.Builder clone()
Overrides
getDefaultInstanceForType()
public SurgeSettings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SurgeSettings other)
public SurgeSettings.Builder mergeFrom(SurgeSettings other)
public SurgeSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SurgeSettings.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SurgeSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SurgeSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SurgeSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SurgeSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides