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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CapacityConfig.BuilderImplements
CapacityConfigOrBuilderInherited Members
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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public CapacityConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CapacityConfig.Builder |
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 |
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 |
getDefaultInstanceForType()
public CapacityConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CapacityConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CapacityConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CapacityConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CapacityConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CapacityConfig.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final CapacityConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CapacityConfig.Builder |
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. |