Class WorkstationConfig.Host.GceInstance.Accelerator (0.7.0)

public static final class WorkstationConfig.Host.GceInstance.Accelerator extends GeneratedMessageV3 implements WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder

An accelerator card attached to the instance.

Protobuf type google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > WorkstationConfig.Host.GceInstance.Accelerator

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WorkstationConfig.Host.GceInstance.Accelerator getDefaultInstance()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static WorkstationConfig.Host.GceInstance.Accelerator.Builder newBuilder()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder

newBuilder(WorkstationConfig.Host.GceInstance.Accelerator prototype)

public static WorkstationConfig.Host.GceInstance.Accelerator.Builder newBuilder(WorkstationConfig.Host.GceInstance.Accelerator prototype)
Parameter
NameDescription
prototypeWorkstationConfig.Host.GceInstance.Accelerator
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder

parseDelimitedFrom(InputStream input)

public static WorkstationConfig.Host.GceInstance.Accelerator parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.Host.GceInstance.Accelerator parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static WorkstationConfig.Host.GceInstance.Accelerator parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.Host.GceInstance.Accelerator parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WorkstationConfig.Host.GceInstance.Accelerator parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.Host.GceInstance.Accelerator parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WorkstationConfig.Host.GceInstance.Accelerator parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.Host.GceInstance.Accelerator parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static WorkstationConfig.Host.GceInstance.Accelerator parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.Host.GceInstance.Accelerator parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static WorkstationConfig.Host.GceInstance.Accelerator parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WorkstationConfig.Host.GceInstance.Accelerator parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<WorkstationConfig.Host.GceInstance.Accelerator> parser()
Returns
TypeDescription
Parser<Accelerator>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCount()

public int getCount()

Number of accelerator cards exposed to the instance.

int32 count = 2;

Returns
TypeDescription
int

The count.

getDefaultInstanceForType()

public WorkstationConfig.Host.GceInstance.Accelerator getDefaultInstanceForType()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator

getParserForType()

public Parser<WorkstationConfig.Host.GceInstance.Accelerator> getParserForType()
Returns
TypeDescription
Parser<Accelerator>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public String getType()

Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100".

string type = 1;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100".

string type = 1;

Returns
TypeDescription
ByteString

The bytes for type.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public WorkstationConfig.Host.GceInstance.Accelerator.Builder newBuilderForType()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WorkstationConfig.Host.GceInstance.Accelerator.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public WorkstationConfig.Host.GceInstance.Accelerator.Builder toBuilder()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException