Class Instance.ReadPoolConfig.Builder (0.16.0)

public static final class Instance.ReadPoolConfig.Builder extends GeneratedMessageV3.Builder<Instance.ReadPoolConfig.Builder> implements Instance.ReadPoolConfigOrBuilder

Configuration for a read pool instance.

Protobuf type google.events.cloud.alloydb.v1.Instance.ReadPoolConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Instance.ReadPoolConfig build()
Returns
Type Description
Instance.ReadPoolConfig

buildPartial()

public Instance.ReadPoolConfig buildPartial()
Returns
Type Description
Instance.ReadPoolConfig

clear()

public Instance.ReadPoolConfig.Builder clear()
Returns
Type Description
Instance.ReadPoolConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearNodeCount()

public Instance.ReadPoolConfig.Builder clearNodeCount()

Read capacity, i.e. number of nodes in a read pool instance.

int32 node_count = 1;

Returns
Type Description
Instance.ReadPoolConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Instance.ReadPoolConfig.Builder clone()
Returns
Type Description
Instance.ReadPoolConfig.Builder
Overrides

getDefaultInstanceForType()

public Instance.ReadPoolConfig getDefaultInstanceForType()
Returns
Type Description
Instance.ReadPoolConfig

getDescriptorForType()

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

getNodeCount()

public int getNodeCount()

Read capacity, i.e. number of nodes in a read pool instance.

int32 node_count = 1;

Returns
Type Description
int

The nodeCount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.ReadPoolConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNodeCount(int value)

public Instance.ReadPoolConfig.Builder setNodeCount(int value)

Read capacity, i.e. number of nodes in a read pool instance.

int32 node_count = 1;

Parameter
Name Description
value int

The nodeCount to set.

Returns
Type Description
Instance.ReadPoolConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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