Package com.google.cloud.compute.v1
Interface ResourceCommitmentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResourceCommitment,ResourceCommitment.Builder
@Generated
public interface ResourceCommitmentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionName of the accelerator type or GPU resource.com.google.protobuf.ByteStringName of the accelerator type or GPU resource.longThe quantity of the hardware resource that you want to commit to purchasing (in a type-dependent unit)getType()The type of hardware resource that you want to specify.com.google.protobuf.ByteStringThe type of hardware resource that you want to specify.booleanName of the accelerator type or GPU resource.booleanThe quantity of the hardware resource that you want to commit to purchasing (in a type-dependent unit)booleanhasType()The type of hardware resource that you want to specify.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasAcceleratorType
boolean hasAcceleratorType()Name of the accelerator type or GPU resource. Specify this field only when the type of hardware resource is ACCELERATOR.
optional string accelerator_type = 138031246;- Returns:
- Whether the acceleratorType field is set.
-
getAcceleratorType
String getAcceleratorType()Name of the accelerator type or GPU resource. Specify this field only when the type of hardware resource is ACCELERATOR.
optional string accelerator_type = 138031246;- Returns:
- The acceleratorType.
-
getAcceleratorTypeBytes
com.google.protobuf.ByteString getAcceleratorTypeBytes()Name of the accelerator type or GPU resource. Specify this field only when the type of hardware resource is ACCELERATOR.
optional string accelerator_type = 138031246;- Returns:
- The bytes for acceleratorType.
-
hasAmount
boolean hasAmount()The quantity of the hardware resource that you want to commit to purchasing (in a type-dependent unit). - For vCPUs, you must specify an integer value. - For memory, you specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer value. - For Local SSD disks, you must specify the amount in GB. The size of a single Local SSD disk is 375 GB.
optional int64 amount = 196759640;- Returns:
- Whether the amount field is set.
-
getAmount
long getAmount()The quantity of the hardware resource that you want to commit to purchasing (in a type-dependent unit). - For vCPUs, you must specify an integer value. - For memory, you specify the amount of MB that you want. The value you specify must be a multiple of 256 MB, with up to 6.5 GB of memory per every vCPU. - For GPUs, you must specify an integer value. - For Local SSD disks, you must specify the amount in GB. The size of a single Local SSD disk is 375 GB.
optional int64 amount = 196759640;- Returns:
- The amount.
-
hasType
boolean hasType()The type of hardware resource that you want to specify. You can specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the list for each individual resource type. Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- Whether the type field is set.
-
getType
String getType()The type of hardware resource that you want to specify. You can specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the list for each individual resource type. Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- The type.
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()The type of hardware resource that you want to specify. You can specify any of the following values: - VCPU - MEMORY - LOCAL_SSD - ACCELERATOR Specify as a separate entry in the list for each individual resource type. Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- The bytes for type.
-