Class StatefulHAConfig.Builder (2.54.0)

public static final class StatefulHAConfig.Builder extends GeneratedMessageV3.Builder<StatefulHAConfig.Builder> implements StatefulHAConfigOrBuilder

Configuration for the Stateful HA add-on.

Protobuf type google.container.v1.StatefulHAConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StatefulHAConfig build()
Returns
Type Description
StatefulHAConfig

buildPartial()

public StatefulHAConfig buildPartial()
Returns
Type Description
StatefulHAConfig

clear()

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

clearEnabled()

public StatefulHAConfig.Builder clearEnabled()

Whether the Stateful HA add-on is enabled for this cluster.

bool enabled = 1;

Returns
Type Description
StatefulHAConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public StatefulHAConfig getDefaultInstanceForType()
Returns
Type Description
StatefulHAConfig

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Whether the Stateful HA add-on is enabled for this cluster.

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StatefulHAConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public StatefulHAConfig.Builder setEnabled(boolean value)

Whether the Stateful HA add-on is enabled for this cluster.

bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
StatefulHAConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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