Class CapacityConfig.Builder (0.5.0)

public static final class CapacityConfig.Builder extends GeneratedMessageV3.Builder<CapacityConfig.Builder> implements CapacityConfigOrBuilder

A capacity configuration of a Kafka cluster.

Protobuf type google.cloud.managedkafka.v1.CapacityConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CapacityConfig build()
Returns
Type Description
CapacityConfig

buildPartial()

public CapacityConfig buildPartial()
Returns
Type Description
CapacityConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMemoryBytes()

public CapacityConfig.Builder clearMemoryBytes()

Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).

int64 memory_bytes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CapacityConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVcpuCount()

public CapacityConfig.Builder clearVcpuCount()

Required. The number of vCPUs to provision for the cluster. Minimum: 3.

int64 vcpu_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CapacityConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CapacityConfig getDefaultInstanceForType()
Returns
Type Description
CapacityConfig

getDescriptorForType()

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

getMemoryBytes()

public long getMemoryBytes()

Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).

int64 memory_bytes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The memoryBytes.

getVcpuCount()

public long getVcpuCount()

Required. The number of vCPUs to provision for the cluster. Minimum: 3.

int64 vcpu_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The vcpuCount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CapacityConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMemoryBytes(long value)

public CapacityConfig.Builder setMemoryBytes(long value)

Required. The memory to provision for the cluster in bytes. The CPU:memory ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).

int64 memory_bytes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The memoryBytes to set.

Returns
Type Description
CapacityConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVcpuCount(long value)

public CapacityConfig.Builder setVcpuCount(long value)

Required. The number of vCPUs to provision for the cluster. Minimum: 3.

int64 vcpu_count = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The vcpuCount to set.

Returns
Type Description
CapacityConfig.Builder

This builder for chaining.