public static final class Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder extends GeneratedMessage.Builder<Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder> implements Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfigOrBuilderA specification of the type and number of accelerator cards attached to the instance.
Protobuf type
google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig build()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
buildPartial()
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
clear()
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
|
clearCount()
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder clearCount()The number of the guest accelerator cards exposed to this instance.
int32 count = 2;
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
This builder for chaining. |
clearType()
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder clearType()Accelerator name. See https://cloud.google.com/compute/docs/gpus/#introduction for a full list of accelerator types.
string type = 1;
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
This builder for chaining. |
getCount()
public int getCount()The number of the guest accelerator cards exposed to this instance.
int32 count = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count. |
getDefaultInstanceForType()
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getType()
public String getType()Accelerator name. See https://cloud.google.com/compute/docs/gpus/#introduction for a full list of accelerator types.
string type = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The type. |
getTypeBytes()
public ByteString getTypeBytes()Accelerator name. See https://cloud.google.com/compute/docs/gpus/#introduction for a full list of accelerator types.
string type = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig other)
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder mergeFrom(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
|
setCount(int value)
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder setCount(int value)The number of the guest accelerator cards exposed to this instance.
int32 count = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe count to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
This builder for chaining. |
setType(String value)
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder setType(String value)Accelerator name. See https://cloud.google.com/compute/docs/gpus/#introduction for a full list of accelerator types.
string type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder setTypeBytes(ByteString value)Accelerator name. See https://cloud.google.com/compute/docs/gpus/#introduction for a full list of accelerator types.
string type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
This builder for chaining. |