Class RebalanceConfig.Builder (0.10.0)

public static final class RebalanceConfig.Builder extends GeneratedMessageV3.Builder<RebalanceConfig.Builder> implements RebalanceConfigOrBuilder

Defines rebalancing behavior of a Kafka cluster.

Protobuf type google.cloud.managedkafka.v1.RebalanceConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RebalanceConfig build()
Returns
Type Description
RebalanceConfig

buildPartial()

public RebalanceConfig buildPartial()
Returns
Type Description
RebalanceConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public RebalanceConfig.Builder clearMode()

Optional. The rebalance behavior for the cluster. When not specified, defaults to NO_REBALANCE.

.google.cloud.managedkafka.v1.RebalanceConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RebalanceConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RebalanceConfig getDefaultInstanceForType()
Returns
Type Description
RebalanceConfig

getDescriptorForType()

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

getMode()

public RebalanceConfig.Mode getMode()

Optional. The rebalance behavior for the cluster. When not specified, defaults to NO_REBALANCE.

.google.cloud.managedkafka.v1.RebalanceConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RebalanceConfig.Mode

The mode.

getModeValue()

public int getModeValue()

Optional. The rebalance behavior for the cluster. When not specified, defaults to NO_REBALANCE.

.google.cloud.managedkafka.v1.RebalanceConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RebalanceConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(RebalanceConfig.Mode value)

public RebalanceConfig.Builder setMode(RebalanceConfig.Mode value)

Optional. The rebalance behavior for the cluster. When not specified, defaults to NO_REBALANCE.

.google.cloud.managedkafka.v1.RebalanceConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RebalanceConfig.Mode

The mode to set.

Returns
Type Description
RebalanceConfig.Builder

This builder for chaining.

setModeValue(int value)

public RebalanceConfig.Builder setModeValue(int value)

Optional. The rebalance behavior for the cluster. When not specified, defaults to NO_REBALANCE.

.google.cloud.managedkafka.v1.RebalanceConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for mode to set.

Returns
Type Description
RebalanceConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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