Package inference
Class ModelConfigOuterClass.ModelInstanceGroup.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
inference.ModelConfigOuterClass.ModelInstanceGroup.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ModelConfigOuterClass.ModelInstanceGroupOrBuilder,Cloneable
- Enclosing class:
ModelConfigOuterClass.ModelInstanceGroup
public static final class ModelConfigOuterClass.ModelInstanceGroup.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
implements ModelConfigOuterClass.ModelInstanceGroupOrBuilder
@@ @@.. cpp:var:: message ModelInstanceGroup @@ @@ A group of one or more instances of a model and resources made @@ available for those instances. @@Protobuf type
inference.ModelInstanceGroup-
Method Summary
Modifier and TypeMethodDescriptionaddAllGpus(Iterable<? extends Integer> values) @@ ..addAllProfile(Iterable<String> values) @@ ..addAllSecondaryDevices(Iterable<? extends ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice> values) @@ ..addGpus(int value) @@ ..addProfile(String value) @@ ..addProfileBytes(com.google.protobuf.ByteString value) @@ ..addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSecondaryDevices(int index, ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice value) @@ ..addSecondaryDevices(int index, ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice.Builder builderForValue) @@ ..@@ ..addSecondaryDevices(ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice.Builder builderForValue) @@ ..@@ ..addSecondaryDevicesBuilder(int index) @@ ..build()clear()@@ ..clearField(com.google.protobuf.Descriptors.FieldDescriptor field) @@ ..@@ ..@@ ..@@ ..clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) @@ ..@@ ..@@ ..@@ ..clone()intgetCount()@@ ..static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetGpus(int index) @@ ..int@@ ..@@ ..@@ ..com.google.protobuf.ByteString@@ ..getKind()@@ ..int@@ ..getName()@@ ..com.google.protobuf.ByteString@@ ..boolean@@ ..getProfile(int index) @@ ..com.google.protobuf.ByteStringgetProfileBytes(int index) @@ ..int@@ ..com.google.protobuf.ProtocolStringList@@ ..@@ ..@@ ..@@ ..getSecondaryDevices(int index) @@ ..getSecondaryDevicesBuilder(int index) @@ ..@@ ..int@@ ..@@ ..getSecondaryDevicesOrBuilder(int index) @@ ..@@ ..boolean@@ ..protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) @@ ..mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeSecondaryDevices(int index) @@ ..setCount(int value) @@ ..setGpus(int index, int value) @@ ..setHostPolicy(String value) @@ ..setHostPolicyBytes(com.google.protobuf.ByteString value) @@ ..@@ ..setKindValue(int value) @@ ..@@ ..setNameBytes(com.google.protobuf.ByteString value) @@ ..setPassive(boolean value) @@ ..setProfile(int index, String value) @@ ..@@ ..setRateLimiter(ModelConfigOuterClass.ModelRateLimiter.Builder builderForValue) @@ ..setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSecondaryDevices(int index, ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice value) @@ ..setSecondaryDevices(int index, ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice.Builder builderForValue) @@ ..setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
setField
public ModelConfigOuterClass.ModelInstanceGroup.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
clearField
public ModelConfigOuterClass.ModelInstanceGroup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
clearOneof
public ModelConfigOuterClass.ModelInstanceGroup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
setRepeatedField
public ModelConfigOuterClass.ModelInstanceGroup.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
addRepeatedField
public ModelConfigOuterClass.ModelInstanceGroup.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
mergeFrom
public ModelConfigOuterClass.ModelInstanceGroup.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
mergeFrom
public ModelConfigOuterClass.ModelInstanceGroup.Builder mergeFrom(ModelConfigOuterClass.ModelInstanceGroup other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
mergeFrom
public ModelConfigOuterClass.ModelInstanceGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>- Throws:
IOException
-
getName
@@ .. cpp:var:: string name @@ @@ Optional name of this group of instances. If not specified the @@ name will be formed as <model name>_<group number>. The name of @@ individual instances will be further formed by a unique instance @@ number and GPU index: @@
string name = 1;- Specified by:
getNamein interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()@@ .. cpp:var:: string name @@ @@ Optional name of this group of instances. If not specified the @@ name will be formed as <model name>_<group number>. The name of @@ individual instances will be further formed by a unique instance @@ number and GPU index: @@
string name = 1;- Specified by:
getNameBytesin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- The bytes for name.
-
setName
@@ .. cpp:var:: string name @@ @@ Optional name of this group of instances. If not specified the @@ name will be formed as <model name>_<group number>. The name of @@ individual instances will be further formed by a unique instance @@ number and GPU index: @@
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
@@ .. cpp:var:: string name @@ @@ Optional name of this group of instances. If not specified the @@ name will be formed as <model name>_<group number>. The name of @@ individual instances will be further formed by a unique instance @@ number and GPU index: @@
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public ModelConfigOuterClass.ModelInstanceGroup.Builder setNameBytes(com.google.protobuf.ByteString value) @@ .. cpp:var:: string name @@ @@ Optional name of this group of instances. If not specified the @@ name will be formed as <model name>_<group number>. The name of @@ individual instances will be further formed by a unique instance @@ number and GPU index: @@
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getKindValue
public int getKindValue()@@ .. cpp:var:: Kind kind @@ @@ The kind of this instance group. Default is KIND_AUTO. If @@ KIND_AUTO or KIND_GPU then both 'count' and 'gpu' are valid and @@ may be specified. If KIND_CPU or KIND_MODEL only 'count' is valid @@ and 'gpu' cannot be specified. @@
.inference.ModelInstanceGroup.Kind kind = 4;- Specified by:
getKindValuein interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- The enum numeric value on the wire for kind.
-
setKindValue
@@ .. cpp:var:: Kind kind @@ @@ The kind of this instance group. Default is KIND_AUTO. If @@ KIND_AUTO or KIND_GPU then both 'count' and 'gpu' are valid and @@ may be specified. If KIND_CPU or KIND_MODEL only 'count' is valid @@ and 'gpu' cannot be specified. @@
.inference.ModelInstanceGroup.Kind kind = 4;- Parameters:
value- The enum numeric value on the wire for kind to set.- Returns:
- This builder for chaining.
-
getKind
@@ .. cpp:var:: Kind kind @@ @@ The kind of this instance group. Default is KIND_AUTO. If @@ KIND_AUTO or KIND_GPU then both 'count' and 'gpu' are valid and @@ may be specified. If KIND_CPU or KIND_MODEL only 'count' is valid @@ and 'gpu' cannot be specified. @@
.inference.ModelInstanceGroup.Kind kind = 4;- Specified by:
getKindin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- The kind.
-
setKind
public ModelConfigOuterClass.ModelInstanceGroup.Builder setKind(ModelConfigOuterClass.ModelInstanceGroup.Kind value) @@ .. cpp:var:: Kind kind @@ @@ The kind of this instance group. Default is KIND_AUTO. If @@ KIND_AUTO or KIND_GPU then both 'count' and 'gpu' are valid and @@ may be specified. If KIND_CPU or KIND_MODEL only 'count' is valid @@ and 'gpu' cannot be specified. @@
.inference.ModelInstanceGroup.Kind kind = 4;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
@@ .. cpp:var:: Kind kind @@ @@ The kind of this instance group. Default is KIND_AUTO. If @@ KIND_AUTO or KIND_GPU then both 'count' and 'gpu' are valid and @@ may be specified. If KIND_CPU or KIND_MODEL only 'count' is valid @@ and 'gpu' cannot be specified. @@
.inference.ModelInstanceGroup.Kind kind = 4;- Returns:
- This builder for chaining.
-
getCount
public int getCount()@@ .. cpp:var:: int32 count @@ @@ For a group assigned to GPU, the number of instances created for @@ each GPU listed in 'gpus'. For a group assigned to CPU the number @@ of instances created. Default is 1.
int32 count = 2;- Specified by:
getCountin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- The count.
-
setCount
@@ .. cpp:var:: int32 count @@ @@ For a group assigned to GPU, the number of instances created for @@ each GPU listed in 'gpus'. For a group assigned to CPU the number @@ of instances created. Default is 1.
int32 count = 2;- Parameters:
value- The count to set.- Returns:
- This builder for chaining.
-
clearCount
@@ .. cpp:var:: int32 count @@ @@ For a group assigned to GPU, the number of instances created for @@ each GPU listed in 'gpus'. For a group assigned to CPU the number @@ of instances created. Default is 1.
int32 count = 2;- Returns:
- This builder for chaining.
-
hasRateLimiter
public boolean hasRateLimiter()@@ .. cpp:var:: ModelRateLimiter rate_limiter @@ @@ The rate limiter specific settings to be associated with this @@ instance group. Optional, if not specified no rate limiting @@ will be applied to this instance group. @@
.inference.ModelRateLimiter rate_limiter = 6;- Specified by:
hasRateLimiterin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- Whether the rateLimiter field is set.
-
getRateLimiter
@@ .. cpp:var:: ModelRateLimiter rate_limiter @@ @@ The rate limiter specific settings to be associated with this @@ instance group. Optional, if not specified no rate limiting @@ will be applied to this instance group. @@
.inference.ModelRateLimiter rate_limiter = 6;- Specified by:
getRateLimiterin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- The rateLimiter.
-
setRateLimiter
public ModelConfigOuterClass.ModelInstanceGroup.Builder setRateLimiter(ModelConfigOuterClass.ModelRateLimiter value) @@ .. cpp:var:: ModelRateLimiter rate_limiter @@ @@ The rate limiter specific settings to be associated with this @@ instance group. Optional, if not specified no rate limiting @@ will be applied to this instance group. @@
.inference.ModelRateLimiter rate_limiter = 6; -
setRateLimiter
public ModelConfigOuterClass.ModelInstanceGroup.Builder setRateLimiter(ModelConfigOuterClass.ModelRateLimiter.Builder builderForValue) @@ .. cpp:var:: ModelRateLimiter rate_limiter @@ @@ The rate limiter specific settings to be associated with this @@ instance group. Optional, if not specified no rate limiting @@ will be applied to this instance group. @@
.inference.ModelRateLimiter rate_limiter = 6; -
mergeRateLimiter
public ModelConfigOuterClass.ModelInstanceGroup.Builder mergeRateLimiter(ModelConfigOuterClass.ModelRateLimiter value) @@ .. cpp:var:: ModelRateLimiter rate_limiter @@ @@ The rate limiter specific settings to be associated with this @@ instance group. Optional, if not specified no rate limiting @@ will be applied to this instance group. @@
.inference.ModelRateLimiter rate_limiter = 6; -
clearRateLimiter
@@ .. cpp:var:: ModelRateLimiter rate_limiter @@ @@ The rate limiter specific settings to be associated with this @@ instance group. Optional, if not specified no rate limiting @@ will be applied to this instance group. @@
.inference.ModelRateLimiter rate_limiter = 6; -
getRateLimiterBuilder
@@ .. cpp:var:: ModelRateLimiter rate_limiter @@ @@ The rate limiter specific settings to be associated with this @@ instance group. Optional, if not specified no rate limiting @@ will be applied to this instance group. @@
.inference.ModelRateLimiter rate_limiter = 6; -
getRateLimiterOrBuilder
@@ .. cpp:var:: ModelRateLimiter rate_limiter @@ @@ The rate limiter specific settings to be associated with this @@ instance group. Optional, if not specified no rate limiting @@ will be applied to this instance group. @@
.inference.ModelRateLimiter rate_limiter = 6;- Specified by:
getRateLimiterOrBuilderin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder
-
getGpusList
@@ .. cpp:var:: int32 gpus (repeated) @@ @@ GPU(s) where instances should be available. For each GPU listed, @@ 'count' instances of the model will be available. Setting 'gpus' @@ to empty (or not specifying at all) is equivalent to listing all @@ available GPUs. @@
repeated int32 gpus = 3;- Specified by:
getGpusListin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- A list containing the gpus.
-
getGpusCount
public int getGpusCount()@@ .. cpp:var:: int32 gpus (repeated) @@ @@ GPU(s) where instances should be available. For each GPU listed, @@ 'count' instances of the model will be available. Setting 'gpus' @@ to empty (or not specifying at all) is equivalent to listing all @@ available GPUs. @@
repeated int32 gpus = 3;- Specified by:
getGpusCountin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- The count of gpus.
-
getGpus
public int getGpus(int index) @@ .. cpp:var:: int32 gpus (repeated) @@ @@ GPU(s) where instances should be available. For each GPU listed, @@ 'count' instances of the model will be available. Setting 'gpus' @@ to empty (or not specifying at all) is equivalent to listing all @@ available GPUs. @@
repeated int32 gpus = 3;- Specified by:
getGpusin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The gpus at the given index.
-
setGpus
@@ .. cpp:var:: int32 gpus (repeated) @@ @@ GPU(s) where instances should be available. For each GPU listed, @@ 'count' instances of the model will be available. Setting 'gpus' @@ to empty (or not specifying at all) is equivalent to listing all @@ available GPUs. @@
repeated int32 gpus = 3;- Parameters:
index- The index to set the value at.value- The gpus to set.- Returns:
- This builder for chaining.
-
addGpus
@@ .. cpp:var:: int32 gpus (repeated) @@ @@ GPU(s) where instances should be available. For each GPU listed, @@ 'count' instances of the model will be available. Setting 'gpus' @@ to empty (or not specifying at all) is equivalent to listing all @@ available GPUs. @@
repeated int32 gpus = 3;- Parameters:
value- The gpus to add.- Returns:
- This builder for chaining.
-
addAllGpus
public ModelConfigOuterClass.ModelInstanceGroup.Builder addAllGpus(Iterable<? extends Integer> values) @@ .. cpp:var:: int32 gpus (repeated) @@ @@ GPU(s) where instances should be available. For each GPU listed, @@ 'count' instances of the model will be available. Setting 'gpus' @@ to empty (or not specifying at all) is equivalent to listing all @@ available GPUs. @@
repeated int32 gpus = 3;- Parameters:
values- The gpus to add.- Returns:
- This builder for chaining.
-
clearGpus
@@ .. cpp:var:: int32 gpus (repeated) @@ @@ GPU(s) where instances should be available. For each GPU listed, @@ 'count' instances of the model will be available. Setting 'gpus' @@ to empty (or not specifying at all) is equivalent to listing all @@ available GPUs. @@
repeated int32 gpus = 3;- Returns:
- This builder for chaining.
-
getSecondaryDevicesList
@@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8;- Specified by:
getSecondaryDevicesListin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder
-
getSecondaryDevicesCount
public int getSecondaryDevicesCount()@@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8;- Specified by:
getSecondaryDevicesCountin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder
-
getSecondaryDevices
@@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8;- Specified by:
getSecondaryDevicesin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder
-
setSecondaryDevices
public ModelConfigOuterClass.ModelInstanceGroup.Builder setSecondaryDevices(int index, ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice value) @@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
setSecondaryDevices
public ModelConfigOuterClass.ModelInstanceGroup.Builder setSecondaryDevices(int index, ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice.Builder builderForValue) @@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
addSecondaryDevices
public ModelConfigOuterClass.ModelInstanceGroup.Builder addSecondaryDevices(ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice value) @@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
addSecondaryDevices
public ModelConfigOuterClass.ModelInstanceGroup.Builder addSecondaryDevices(int index, ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice value) @@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
addSecondaryDevices
public ModelConfigOuterClass.ModelInstanceGroup.Builder addSecondaryDevices(ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice.Builder builderForValue) @@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
addSecondaryDevices
public ModelConfigOuterClass.ModelInstanceGroup.Builder addSecondaryDevices(int index, ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice.Builder builderForValue) @@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
addAllSecondaryDevices
public ModelConfigOuterClass.ModelInstanceGroup.Builder addAllSecondaryDevices(Iterable<? extends ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice> values) @@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
clearSecondaryDevices
@@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
removeSecondaryDevices
@@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
getSecondaryDevicesBuilder
public ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice.Builder getSecondaryDevicesBuilder(int index) @@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
getSecondaryDevicesOrBuilder
public ModelConfigOuterClass.ModelInstanceGroup.SecondaryDeviceOrBuilder getSecondaryDevicesOrBuilder(int index) @@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8;- Specified by:
getSecondaryDevicesOrBuilderin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder
-
getSecondaryDevicesOrBuilderList
public List<? extends ModelConfigOuterClass.ModelInstanceGroup.SecondaryDeviceOrBuilder> getSecondaryDevicesOrBuilderList()@@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8;- Specified by:
getSecondaryDevicesOrBuilderListin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder
-
addSecondaryDevicesBuilder
public ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice.Builder addSecondaryDevicesBuilder()@@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
addSecondaryDevicesBuilder
public ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice.Builder addSecondaryDevicesBuilder(int index) @@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
getSecondaryDevicesBuilderList
public List<ModelConfigOuterClass.ModelInstanceGroup.SecondaryDevice.Builder> getSecondaryDevicesBuilderList()@@ .. cpp:var:: SecondaryDevice secondary_devices (repeated) @@ @@ Secondary devices that are required by instances specified by this @@ instance group. Optional. @@
repeated .inference.ModelInstanceGroup.SecondaryDevice secondary_devices = 8; -
getProfileList
public com.google.protobuf.ProtocolStringList getProfileList()@@ .. cpp:var:: string profile (repeated) @@ @@ For TensorRT models containing multiple optimization profile, this @@ parameter specifies a set of optimization profiles available to this @@ instance group. The inference server will choose the optimal profile @@ based on the shapes of the input tensors. This field should lie @@ between 0 and <TotalNumberOfOptimizationProfilesInPlanModel> - 1 @@ and be specified only for TensorRT backend, otherwise an error will @@ be generated. If not specified, the server will select the first @@ optimization profile by default. @@
repeated string profile = 5;- Specified by:
getProfileListin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- A list containing the profile.
-
getProfileCount
public int getProfileCount()@@ .. cpp:var:: string profile (repeated) @@ @@ For TensorRT models containing multiple optimization profile, this @@ parameter specifies a set of optimization profiles available to this @@ instance group. The inference server will choose the optimal profile @@ based on the shapes of the input tensors. This field should lie @@ between 0 and <TotalNumberOfOptimizationProfilesInPlanModel> - 1 @@ and be specified only for TensorRT backend, otherwise an error will @@ be generated. If not specified, the server will select the first @@ optimization profile by default. @@
repeated string profile = 5;- Specified by:
getProfileCountin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- The count of profile.
-
getProfile
@@ .. cpp:var:: string profile (repeated) @@ @@ For TensorRT models containing multiple optimization profile, this @@ parameter specifies a set of optimization profiles available to this @@ instance group. The inference server will choose the optimal profile @@ based on the shapes of the input tensors. This field should lie @@ between 0 and <TotalNumberOfOptimizationProfilesInPlanModel> - 1 @@ and be specified only for TensorRT backend, otherwise an error will @@ be generated. If not specified, the server will select the first @@ optimization profile by default. @@
repeated string profile = 5;- Specified by:
getProfilein interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The profile at the given index.
-
getProfileBytes
public com.google.protobuf.ByteString getProfileBytes(int index) @@ .. cpp:var:: string profile (repeated) @@ @@ For TensorRT models containing multiple optimization profile, this @@ parameter specifies a set of optimization profiles available to this @@ instance group. The inference server will choose the optimal profile @@ based on the shapes of the input tensors. This field should lie @@ between 0 and <TotalNumberOfOptimizationProfilesInPlanModel> - 1 @@ and be specified only for TensorRT backend, otherwise an error will @@ be generated. If not specified, the server will select the first @@ optimization profile by default. @@
repeated string profile = 5;- Specified by:
getProfileBytesin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the profile at the given index.
-
setProfile
@@ .. cpp:var:: string profile (repeated) @@ @@ For TensorRT models containing multiple optimization profile, this @@ parameter specifies a set of optimization profiles available to this @@ instance group. The inference server will choose the optimal profile @@ based on the shapes of the input tensors. This field should lie @@ between 0 and <TotalNumberOfOptimizationProfilesInPlanModel> - 1 @@ and be specified only for TensorRT backend, otherwise an error will @@ be generated. If not specified, the server will select the first @@ optimization profile by default. @@
repeated string profile = 5;- Parameters:
index- The index to set the value at.value- The profile to set.- Returns:
- This builder for chaining.
-
addProfile
@@ .. cpp:var:: string profile (repeated) @@ @@ For TensorRT models containing multiple optimization profile, this @@ parameter specifies a set of optimization profiles available to this @@ instance group. The inference server will choose the optimal profile @@ based on the shapes of the input tensors. This field should lie @@ between 0 and <TotalNumberOfOptimizationProfilesInPlanModel> - 1 @@ and be specified only for TensorRT backend, otherwise an error will @@ be generated. If not specified, the server will select the first @@ optimization profile by default. @@
repeated string profile = 5;- Parameters:
value- The profile to add.- Returns:
- This builder for chaining.
-
addAllProfile
@@ .. cpp:var:: string profile (repeated) @@ @@ For TensorRT models containing multiple optimization profile, this @@ parameter specifies a set of optimization profiles available to this @@ instance group. The inference server will choose the optimal profile @@ based on the shapes of the input tensors. This field should lie @@ between 0 and <TotalNumberOfOptimizationProfilesInPlanModel> - 1 @@ and be specified only for TensorRT backend, otherwise an error will @@ be generated. If not specified, the server will select the first @@ optimization profile by default. @@
repeated string profile = 5;- Parameters:
values- The profile to add.- Returns:
- This builder for chaining.
-
clearProfile
@@ .. cpp:var:: string profile (repeated) @@ @@ For TensorRT models containing multiple optimization profile, this @@ parameter specifies a set of optimization profiles available to this @@ instance group. The inference server will choose the optimal profile @@ based on the shapes of the input tensors. This field should lie @@ between 0 and <TotalNumberOfOptimizationProfilesInPlanModel> - 1 @@ and be specified only for TensorRT backend, otherwise an error will @@ be generated. If not specified, the server will select the first @@ optimization profile by default. @@
repeated string profile = 5;- Returns:
- This builder for chaining.
-
addProfileBytes
public ModelConfigOuterClass.ModelInstanceGroup.Builder addProfileBytes(com.google.protobuf.ByteString value) @@ .. cpp:var:: string profile (repeated) @@ @@ For TensorRT models containing multiple optimization profile, this @@ parameter specifies a set of optimization profiles available to this @@ instance group. The inference server will choose the optimal profile @@ based on the shapes of the input tensors. This field should lie @@ between 0 and <TotalNumberOfOptimizationProfilesInPlanModel> - 1 @@ and be specified only for TensorRT backend, otherwise an error will @@ be generated. If not specified, the server will select the first @@ optimization profile by default. @@
repeated string profile = 5;- Parameters:
value- The bytes of the profile to add.- Returns:
- This builder for chaining.
-
getPassive
public boolean getPassive()@@ .. cpp:var:: bool passive @@ @@ Whether the instances within this instance group will be accepting @@ inference requests from the scheduler. If true, the instances will @@ not be added to the scheduler. Default value is false. @@
bool passive = 7;- Specified by:
getPassivein interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- The passive.
-
setPassive
@@ .. cpp:var:: bool passive @@ @@ Whether the instances within this instance group will be accepting @@ inference requests from the scheduler. If true, the instances will @@ not be added to the scheduler. Default value is false. @@
bool passive = 7;- Parameters:
value- The passive to set.- Returns:
- This builder for chaining.
-
clearPassive
@@ .. cpp:var:: bool passive @@ @@ Whether the instances within this instance group will be accepting @@ inference requests from the scheduler. If true, the instances will @@ not be added to the scheduler. Default value is false. @@
bool passive = 7;- Returns:
- This builder for chaining.
-
getHostPolicy
@@ .. cpp:var:: string host_policy @@ @@ The host policy name that the instance to be associated with. @@ The default value is set to reflect the device kind of the instance, @@ for instance, KIND_CPU is "cpu", KIND_MODEL is "model" and @@ KIND_GPU is "gpu_<gpu_id>". @@
string host_policy = 9;- Specified by:
getHostPolicyin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- The hostPolicy.
-
getHostPolicyBytes
public com.google.protobuf.ByteString getHostPolicyBytes()@@ .. cpp:var:: string host_policy @@ @@ The host policy name that the instance to be associated with. @@ The default value is set to reflect the device kind of the instance, @@ for instance, KIND_CPU is "cpu", KIND_MODEL is "model" and @@ KIND_GPU is "gpu_<gpu_id>". @@
string host_policy = 9;- Specified by:
getHostPolicyBytesin interfaceModelConfigOuterClass.ModelInstanceGroupOrBuilder- Returns:
- The bytes for hostPolicy.
-
setHostPolicy
@@ .. cpp:var:: string host_policy @@ @@ The host policy name that the instance to be associated with. @@ The default value is set to reflect the device kind of the instance, @@ for instance, KIND_CPU is "cpu", KIND_MODEL is "model" and @@ KIND_GPU is "gpu_<gpu_id>". @@
string host_policy = 9;- Parameters:
value- The hostPolicy to set.- Returns:
- This builder for chaining.
-
clearHostPolicy
@@ .. cpp:var:: string host_policy @@ @@ The host policy name that the instance to be associated with. @@ The default value is set to reflect the device kind of the instance, @@ for instance, KIND_CPU is "cpu", KIND_MODEL is "model" and @@ KIND_GPU is "gpu_<gpu_id>". @@
string host_policy = 9;- Returns:
- This builder for chaining.
-
setHostPolicyBytes
public ModelConfigOuterClass.ModelInstanceGroup.Builder setHostPolicyBytes(com.google.protobuf.ByteString value) @@ .. cpp:var:: string host_policy @@ @@ The host policy name that the instance to be associated with. @@ The default value is set to reflect the device kind of the instance, @@ for instance, KIND_CPU is "cpu", KIND_MODEL is "model" and @@ KIND_GPU is "gpu_<gpu_id>". @@
string host_policy = 9;- Parameters:
value- The bytes for hostPolicy to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ModelConfigOuterClass.ModelInstanceGroup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-
mergeUnknownFields
public final ModelConfigOuterClass.ModelInstanceGroup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelInstanceGroup.Builder>
-