Class MachineShape (0.1.0)

public final class MachineShape extends GeneratedMessageV3 implements MachineShapeOrBuilder

Machine shape details Next : 13

Protobuf type google.cloud.capacityplanner.v1beta.MachineShape

Static Fields

CPU_CORES_FIELD_NUMBER

public static final int CPU_CORES_FIELD_NUMBER
Field Value
Type Description
int

GPU_COMPUTE_TYPE_FIELD_NUMBER

public static final int GPU_COMPUTE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

GPU_CORES_FIELD_NUMBER

public static final int GPU_CORES_FIELD_NUMBER
Field Value
Type Description
int

GPU_TYPE_FIELD_NUMBER

public static final int GPU_TYPE_FIELD_NUMBER
Field Value
Type Description
int

LOCAL_SSD_GB_FIELD_NUMBER

public static final int LOCAL_SSD_GB_FIELD_NUMBER
Field Value
Type Description
int

LOCAL_SSD_INTERFACE_FIELD_NUMBER

public static final int LOCAL_SSD_INTERFACE_FIELD_NUMBER
Field Value
Type Description
int

LOCAL_SSD_PARTITIONS_FIELD_NUMBER

public static final int LOCAL_SSD_PARTITIONS_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_FAMILY_FIELD_NUMBER

public static final int MACHINE_FAMILY_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_SHAPE_FIELD_NUMBER

public static final int MACHINE_SHAPE_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MEMORY_GB_FIELD_NUMBER

public static final int MEMORY_GB_FIELD_NUMBER
Field Value
Type Description
int

MIN_CPU_PLATFORM_FIELD_NUMBER

public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MachineShape getDefaultInstance()
Returns
Type Description
MachineShape

getDescriptor()

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

newBuilder()

public static MachineShape.Builder newBuilder()
Returns
Type Description
MachineShape.Builder

newBuilder(MachineShape prototype)

public static MachineShape.Builder newBuilder(MachineShape prototype)
Parameter
Name Description
prototype MachineShape
Returns
Type Description
MachineShape.Builder

parseDelimitedFrom(InputStream input)

public static MachineShape parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MachineShape
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MachineShape parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineShape
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static MachineShape parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MachineShape
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MachineShape parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineShape
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MachineShape parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MachineShape
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MachineShape parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineShape
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MachineShape parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MachineShape
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MachineShape parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineShape
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static MachineShape parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MachineShape
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MachineShape parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineShape
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static MachineShape parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MachineShape
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MachineShape parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MachineShape
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<MachineShape> parser()
Returns
Type Description
Parser<MachineShape>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<MachineShape> getParserForType()
Returns
Type Description
Parser<MachineShape>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public MachineShape.Builder newBuilderForType()
Returns
Type Description
MachineShape.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MachineShape.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MachineShape.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public MachineShape.Builder toBuilder()
Returns
Type Description
MachineShape.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException