public static final class Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig extends GeneratedMessage 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
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfigStatic Fields
COUNT_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
|
newBuilder(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig prototype)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder newBuilder(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
|
parseDelimitedFrom(InputStream input)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig> parser()| Returns | |
|---|---|
| Type | Description |
Parser<AcceleratorConfig> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
getParserForType()
public Parser<Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<AcceleratorConfig> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
|
toBuilder()
public Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|