Class StatefulHAConfig.Builder (2.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StatefulHAConfig build()
Returns
TypeDescription
StatefulHAConfig

buildPartial()

public StatefulHAConfig buildPartial()
Returns
TypeDescription
StatefulHAConfig

clear()

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

clearEnabled()

public StatefulHAConfig.Builder clearEnabled()

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

bool enabled = 1;

Returns
TypeDescription
StatefulHAConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StatefulHAConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StatefulHAConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public StatefulHAConfig getDefaultInstanceForType()
Returns
TypeDescription
StatefulHAConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

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

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StatefulHAConfig other)

public StatefulHAConfig.Builder mergeFrom(StatefulHAConfig other)
Parameter
NameDescription
otherStatefulHAConfig
Returns
TypeDescription
StatefulHAConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StatefulHAConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
StatefulHAConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public StatefulHAConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StatefulHAConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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