Class MachineShape.Builder (0.1.0)

public static final class MachineShape.Builder extends GeneratedMessageV3.Builder<MachineShape.Builder> implements MachineShapeOrBuilder

Machine shape details Next : 13

Protobuf type google.cloud.capacityplanner.v1beta.MachineShape

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MachineShape build()
Returns
Type Description
MachineShape

buildPartial()

public MachineShape buildPartial()
Returns
Type Description
MachineShape

clear()

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

clearCpuCores()

public MachineShape.Builder clearCpuCores()

Optional. Number of CPU cores per VM.

double cpu_cores = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGpuComputeType()

public MachineShape.Builder clearGpuComputeType()

Optional. The GPU name recognized by Compute Engine APIs.

string gpu_compute_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearGpuCores()

public MachineShape.Builder clearGpuCores()

Optional. The number of GPU cores per VM.

int64 gpu_cores = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearGpuType()

public MachineShape.Builder clearGpuType()

Optional. The type of GPU with the VM.

string gpu_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearLocalSsdGb()

public MachineShape.Builder clearLocalSsdGb()

Optional. Total amount of local SSD storage.

double local_ssd_gb = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearLocalSsdInterface()

public MachineShape.Builder clearLocalSsdInterface()

Optional. The local SSD interface used such as nvme or scsi

string local_ssd_interface = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearLocalSsdPartitions()

public MachineShape.Builder clearLocalSsdPartitions()

Optional. The number of local SSD partitions per VM.

int64 local_ssd_partitions = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearMachineFamily()

public MachineShape.Builder clearMachineFamily()

Optional. The VM family.

string machine_family = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearMachineShape()

public MachineShape.Builder clearMachineShape()

Optional. The customer visible string representing the type of VM.

string machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearMachineType()

public MachineShape.Builder clearMachineType()

Optional. The characteristics of the sampled VM expressed as a string.

string machine_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearMemoryGb()

public MachineShape.Builder clearMemoryGb()

Optional. Total amount of memory with the VM.

double memory_gb = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearMinCpuPlatform()

public MachineShape.Builder clearMinCpuPlatform()

Optional. The Min-cpu platform used such as icelake

string min_cpu_platform = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineShape.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCpuCores()

public double getCpuCores()

Optional. Number of CPU cores per VM.

double cpu_cores = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The cpuCores.

getDefaultInstanceForType()

public MachineShape getDefaultInstanceForType()
Returns
Type Description
MachineShape

getDescriptorForType()

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

getGpuComputeType()

public String getGpuComputeType()

Optional. The GPU name recognized by Compute Engine APIs.

string gpu_compute_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The gpuComputeType.

getGpuComputeTypeBytes()

public ByteString getGpuComputeTypeBytes()

Optional. The GPU name recognized by Compute Engine APIs.

string gpu_compute_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for gpuComputeType.

getGpuCores()

public long getGpuCores()

Optional. The number of GPU cores per VM.

int64 gpu_cores = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The gpuCores.

getGpuType()

public String getGpuType()

Optional. The type of GPU with the VM.

string gpu_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The gpuType.

getGpuTypeBytes()

public ByteString getGpuTypeBytes()

Optional. The type of GPU with the VM.

string gpu_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for gpuType.

getLocalSsdGb()

public double getLocalSsdGb()

Optional. Total amount of local SSD storage.

double local_ssd_gb = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The localSsdGb.

getLocalSsdInterface()

public String getLocalSsdInterface()

Optional. The local SSD interface used such as nvme or scsi

string local_ssd_interface = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The localSsdInterface.

getLocalSsdInterfaceBytes()

public ByteString getLocalSsdInterfaceBytes()

Optional. The local SSD interface used such as nvme or scsi

string local_ssd_interface = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for localSsdInterface.

getLocalSsdPartitions()

public long getLocalSsdPartitions()

Optional. The number of local SSD partitions per VM.

int64 local_ssd_partitions = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The localSsdPartitions.

getMachineFamily()

public String getMachineFamily()

Optional. The VM family.

string machine_family = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The machineFamily.

getMachineFamilyBytes()

public ByteString getMachineFamilyBytes()

Optional. The VM family.

string machine_family = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for machineFamily.

getMachineShape()

public String getMachineShape()

Optional. The customer visible string representing the type of VM.

string machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The machineShape.

getMachineShapeBytes()

public ByteString getMachineShapeBytes()

Optional. The customer visible string representing the type of VM.

string machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for machineShape.

getMachineType()

public String getMachineType()

Optional. The characteristics of the sampled VM expressed as a string.

string machine_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Optional. The characteristics of the sampled VM expressed as a string.

string machine_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for machineType.

getMemoryGb()

public double getMemoryGb()

Optional. Total amount of memory with the VM.

double memory_gb = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The memoryGb.

getMinCpuPlatform()

public String getMinCpuPlatform()

Optional. The Min-cpu platform used such as icelake

string min_cpu_platform = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The minCpuPlatform.

getMinCpuPlatformBytes()

public ByteString getMinCpuPlatformBytes()

Optional. The Min-cpu platform used such as icelake

string min_cpu_platform = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for minCpuPlatform.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MachineShape other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCpuCores(double value)

public MachineShape.Builder setCpuCores(double value)

Optional. Number of CPU cores per VM.

double cpu_cores = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value double

The cpuCores to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGpuComputeType(String value)

public MachineShape.Builder setGpuComputeType(String value)

Optional. The GPU name recognized by Compute Engine APIs.

string gpu_compute_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The gpuComputeType to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setGpuComputeTypeBytes(ByteString value)

public MachineShape.Builder setGpuComputeTypeBytes(ByteString value)

Optional. The GPU name recognized by Compute Engine APIs.

string gpu_compute_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for gpuComputeType to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setGpuCores(long value)

public MachineShape.Builder setGpuCores(long value)

Optional. The number of GPU cores per VM.

int64 gpu_cores = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The gpuCores to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setGpuType(String value)

public MachineShape.Builder setGpuType(String value)

Optional. The type of GPU with the VM.

string gpu_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The gpuType to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setGpuTypeBytes(ByteString value)

public MachineShape.Builder setGpuTypeBytes(ByteString value)

Optional. The type of GPU with the VM.

string gpu_type = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for gpuType to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setLocalSsdGb(double value)

public MachineShape.Builder setLocalSsdGb(double value)

Optional. Total amount of local SSD storage.

double local_ssd_gb = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value double

The localSsdGb to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setLocalSsdInterface(String value)

public MachineShape.Builder setLocalSsdInterface(String value)

Optional. The local SSD interface used such as nvme or scsi

string local_ssd_interface = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The localSsdInterface to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setLocalSsdInterfaceBytes(ByteString value)

public MachineShape.Builder setLocalSsdInterfaceBytes(ByteString value)

Optional. The local SSD interface used such as nvme or scsi

string local_ssd_interface = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for localSsdInterface to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setLocalSsdPartitions(long value)

public MachineShape.Builder setLocalSsdPartitions(long value)

Optional. The number of local SSD partitions per VM.

int64 local_ssd_partitions = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The localSsdPartitions to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setMachineFamily(String value)

public MachineShape.Builder setMachineFamily(String value)

Optional. The VM family.

string machine_family = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The machineFamily to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setMachineFamilyBytes(ByteString value)

public MachineShape.Builder setMachineFamilyBytes(ByteString value)

Optional. The VM family.

string machine_family = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for machineFamily to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setMachineShape(String value)

public MachineShape.Builder setMachineShape(String value)

Optional. The customer visible string representing the type of VM.

string machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The machineShape to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setMachineShapeBytes(ByteString value)

public MachineShape.Builder setMachineShapeBytes(ByteString value)

Optional. The customer visible string representing the type of VM.

string machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for machineShape to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setMachineType(String value)

public MachineShape.Builder setMachineType(String value)

Optional. The characteristics of the sampled VM expressed as a string.

string machine_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public MachineShape.Builder setMachineTypeBytes(ByteString value)

Optional. The characteristics of the sampled VM expressed as a string.

string machine_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setMemoryGb(double value)

public MachineShape.Builder setMemoryGb(double value)

Optional. Total amount of memory with the VM.

double memory_gb = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value double

The memoryGb to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setMinCpuPlatform(String value)

public MachineShape.Builder setMinCpuPlatform(String value)

Optional. The Min-cpu platform used such as icelake

string min_cpu_platform = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The minCpuPlatform to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

setMinCpuPlatformBytes(ByteString value)

public MachineShape.Builder setMinCpuPlatformBytes(ByteString value)

Optional. The Min-cpu platform used such as icelake

string min_cpu_platform = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for minCpuPlatform to set.

Returns
Type Description
MachineShape.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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