Send feedback
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static MachineShape getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static MachineShape . Builder newBuilder ()
newBuilder(MachineShape prototype)
public static MachineShape . Builder newBuilder ( MachineShape prototype )
public static MachineShape parseDelimitedFrom ( InputStream input )
public static MachineShape parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static MachineShape parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MachineShape parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static MachineShape parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MachineShape parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static MachineShape parseFrom ( CodedInputStream input )
public static MachineShape parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static MachineShape parseFrom ( InputStream input )
public static MachineShape parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static MachineShape parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MachineShape parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<MachineShape> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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 ()
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.
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.
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 ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public MachineShape . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MachineShape . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public MachineShape . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]