Interface AcceleratorConfigOrBuilder (1.53.0)

public interface AcceleratorConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAcceleratorCount()

public abstract int getAcceleratorCount()

The number of the guest accelerator cards exposed to this instance.

optional int32 accelerator_count = 504879675;

Returns
Type Description
int

The acceleratorCount.

getAcceleratorType()

public abstract 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
Type Description
String

The acceleratorType.

getAcceleratorTypeBytes()

public abstract 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
Type Description
ByteString

The bytes for acceleratorType.

hasAcceleratorCount()

public abstract boolean hasAcceleratorCount()

The number of the guest accelerator cards exposed to this instance.

optional int32 accelerator_count = 504879675;

Returns
Type Description
boolean

Whether the acceleratorCount field is set.

hasAcceleratorType()

public abstract 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
Type Description
boolean

Whether the acceleratorType field is set.