public static final class MachineConfig.Builder extends GeneratedMessage.Builder<MachineConfig.Builder> implements MachineConfigOrBuilderMachineConfig describes the configuration of a machine specific to a Database Resource.
Protobuf type google.cloud.databasecenter.v1beta.MachineConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MachineConfig.BuilderImplements
MachineConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public MachineConfig build()| Returns | |
|---|---|
| Type | Description |
MachineConfig |
|
buildPartial()
public MachineConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
MachineConfig |
|
clear()
public MachineConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
MachineConfig.Builder |
|
clearMemorySizeBytes()
public MachineConfig.Builder clearMemorySizeBytes()Memory size in bytes.
int64 memory_size_bytes = 2;
| Returns | |
|---|---|
| Type | Description |
MachineConfig.Builder |
This builder for chaining. |
clearShardCount()
public MachineConfig.Builder clearShardCount()Optional. The number of Shards (if applicable).
optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MachineConfig.Builder |
This builder for chaining. |
clearVcpuCount()
public MachineConfig.Builder clearVcpuCount()Optional. The number of vCPUs (if applicable).
optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MachineConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public MachineConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MachineConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMemorySizeBytes()
public long getMemorySizeBytes()Memory size in bytes.
int64 memory_size_bytes = 2;
| Returns | |
|---|---|
| Type | Description |
long |
The memorySizeBytes. |
getShardCount()
public int getShardCount()Optional. The number of Shards (if applicable).
optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The shardCount. |
getVcpuCount()
public double getVcpuCount()Optional. The number of vCPUs (if applicable).
optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
double |
The vcpuCount. |
hasShardCount()
public boolean hasShardCount()Optional. The number of Shards (if applicable).
optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the shardCount field is set. |
hasVcpuCount()
public boolean hasVcpuCount()Optional. The number of vCPUs (if applicable).
optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the vcpuCount field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(MachineConfig other)
public MachineConfig.Builder mergeFrom(MachineConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
MachineConfig |
| Returns | |
|---|---|
| Type | Description |
MachineConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MachineConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MachineConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MachineConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MachineConfig.Builder |
|
setMemorySizeBytes(long value)
public MachineConfig.Builder setMemorySizeBytes(long value)Memory size in bytes.
int64 memory_size_bytes = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe memorySizeBytes to set. |
| Returns | |
|---|---|
| Type | Description |
MachineConfig.Builder |
This builder for chaining. |
setShardCount(int value)
public MachineConfig.Builder setShardCount(int value)Optional. The number of Shards (if applicable).
optional int32 shard_count = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe shardCount to set. |
| Returns | |
|---|---|
| Type | Description |
MachineConfig.Builder |
This builder for chaining. |
setVcpuCount(double value)
public MachineConfig.Builder setVcpuCount(double value)Optional. The number of vCPUs (if applicable).
optional double vcpu_count = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe vcpuCount to set. |
| Returns | |
|---|---|
| Type | Description |
MachineConfig.Builder |
This builder for chaining. |