Class GPUSharingConfig (2.8.0)

public final class GPUSharingConfig extends GeneratedMessageV3 implements GPUSharingConfigOrBuilder

GPUSharingConfig represents the GPU sharing configuration for Hardware Accelerators.

Protobuf type google.container.v1.GPUSharingConfig

Static Fields

GPU_SHARING_STRATEGY_FIELD_NUMBER

public static final int GPU_SHARING_STRATEGY_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER

public static final int MAX_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GPUSharingConfig getDefaultInstance()
Returns
TypeDescription
GPUSharingConfig

getDescriptor()

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

newBuilder()

public static GPUSharingConfig.Builder newBuilder()
Returns
TypeDescription
GPUSharingConfig.Builder

newBuilder(GPUSharingConfig prototype)

public static GPUSharingConfig.Builder newBuilder(GPUSharingConfig prototype)
Parameter
NameDescription
prototypeGPUSharingConfig
Returns
TypeDescription
GPUSharingConfig.Builder

parseDelimitedFrom(InputStream input)

public static GPUSharingConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GPUSharingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GPUSharingConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GPUSharingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GPUSharingConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GPUSharingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GPUSharingConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GPUSharingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GPUSharingConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GPUSharingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GPUSharingConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GPUSharingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GPUSharingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GPUSharingConfig> parser()
Returns
TypeDescription
Parser<GPUSharingConfig>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GPUSharingConfig getDefaultInstanceForType()
Returns
TypeDescription
GPUSharingConfig

getGpuSharingStrategy()

public GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy()

The type of GPU sharing strategy to enable on the GPU node.

optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;

Returns
TypeDescription
GPUSharingConfig.GPUSharingStrategy

The gpuSharingStrategy.

getGpuSharingStrategyValue()

public int getGpuSharingStrategyValue()

The type of GPU sharing strategy to enable on the GPU node.

optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for gpuSharingStrategy.

getMaxSharedClientsPerGpu()

public long getMaxSharedClientsPerGpu()

The max number of containers that can share a physical GPU.

int64 max_shared_clients_per_gpu = 1;

Returns
TypeDescription
long

The maxSharedClientsPerGpu.

getParserForType()

public Parser<GPUSharingConfig> getParserForType()
Returns
TypeDescription
Parser<GPUSharingConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasGpuSharingStrategy()

public boolean hasGpuSharingStrategy()

The type of GPU sharing strategy to enable on the GPU node.

optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;

Returns
TypeDescription
boolean

Whether the gpuSharingStrategy field is set.

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 GPUSharingConfig.Builder newBuilderForType()
Returns
TypeDescription
GPUSharingConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GPUSharingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GPUSharingConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public GPUSharingConfig.Builder toBuilder()
Returns
TypeDescription
GPUSharingConfig.Builder

writeTo(CodedOutputStream output)

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