Package com.google.cloud.compute.v1
Interface AcceleratorConfigOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AcceleratorConfig
,AcceleratorConfig.Builder
public interface AcceleratorConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAcceleratorCount()
The number of the guest accelerator cards exposed to this instance.String
getAcceleratorType()
Full or partial URL of the accelerator type resource to attach to this instance.com.google.protobuf.ByteString
getAcceleratorTypeBytes()
Full or partial URL of the accelerator type resource to attach to this instance.boolean
hasAcceleratorCount()
The number of the guest accelerator cards exposed to this instance.boolean
hasAcceleratorType()
Full or partial URL of the accelerator type resource to attach to this instance.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasAcceleratorCount
boolean hasAcceleratorCount()
The number of the guest accelerator cards exposed to this instance.
optional int32 accelerator_count = 504879675;
- Returns:
- Whether the acceleratorCount field is set.
-
getAcceleratorCount
int getAcceleratorCount()
The number of the guest accelerator cards exposed to this instance.
optional int32 accelerator_count = 504879675;
- Returns:
- The acceleratorCount.
-
hasAcceleratorType
boolean hasAcceleratorType()
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
optional string accelerator_type = 138031246;
- Returns:
- Whether the acceleratorType field is set.
-
getAcceleratorType
String getAcceleratorType()
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
optional string accelerator_type = 138031246;
- Returns:
- The acceleratorType.
-
getAcceleratorTypeBytes
com.google.protobuf.ByteString getAcceleratorTypeBytes()
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
optional string accelerator_type = 138031246;
- Returns:
- The bytes for acceleratorType.
-
-