Package inference
Class GrpcPredictV2.ModelInferRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GrpcPredictV2.ModelInferRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferRequest.Builder>
inference.GrpcPredictV2.ModelInferRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GrpcPredictV2.ModelInferRequestOrBuilder,Cloneable
- Enclosing class:
GrpcPredictV2.ModelInferRequest
public static final class GrpcPredictV2.ModelInferRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferRequest.Builder>
implements GrpcPredictV2.ModelInferRequestOrBuilder
Protobuf type
inference.ModelInferRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllInputs(Iterable<? extends GrpcPredictV2.ModelInferRequest.InferInputTensor> values) The input tensors for the inference.addAllOutputs(Iterable<? extends GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor> values) The requested output tensors for the inference.addAllRawInputContents(Iterable<? extends com.google.protobuf.ByteString> values) The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.addInputs(int index, GrpcPredictV2.ModelInferRequest.InferInputTensor value) The input tensors for the inference.addInputs(int index, GrpcPredictV2.ModelInferRequest.InferInputTensor.Builder builderForValue) The input tensors for the inference.The input tensors for the inference.addInputs(GrpcPredictV2.ModelInferRequest.InferInputTensor.Builder builderForValue) The input tensors for the inference.The input tensors for the inference.addInputsBuilder(int index) The input tensors for the inference.addOutputs(int index, GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor value) The requested output tensors for the inference.addOutputs(int index, GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor.Builder builderForValue) The requested output tensors for the inference.The requested output tensors for the inference.The requested output tensors for the inference.The requested output tensors for the inference.addOutputsBuilder(int index) The requested output tensors for the inference.addRawInputContents(com.google.protobuf.ByteString value) The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()Optional identifier for the request.The input tensors for the inference.The name of the model to use for inferencing.The version of the model to use for inference.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The requested output tensors for the inference.The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.clone()booleancontainsParameters(String key) Optional inference parameters.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()Optional identifier for the request.com.google.protobuf.ByteStringOptional identifier for the request.getInputs(int index) The input tensors for the inference.getInputsBuilder(int index) The input tensors for the inference.The input tensors for the inference.intThe input tensors for the inference.The input tensors for the inference.getInputsOrBuilder(int index) The input tensors for the inference.The input tensors for the inference.The name of the model to use for inferencing.com.google.protobuf.ByteStringThe name of the model to use for inferencing.The version of the model to use for inference.com.google.protobuf.ByteStringThe version of the model to use for inference.Deprecated.getOutputs(int index) The requested output tensors for the inference.getOutputsBuilder(int index) The requested output tensors for the inference.The requested output tensors for the inference.intThe requested output tensors for the inference.The requested output tensors for the inference.getOutputsOrBuilder(int index) The requested output tensors for the inference.The requested output tensors for the inference.Deprecated.intOptional inference parameters.Optional inference parameters.getParametersOrDefault(String key, GrpcPredictV2.InferParameter defaultValue) Optional inference parameters.Optional inference parameters.com.google.protobuf.ByteStringgetRawInputContents(int index) The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.intThe data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.List<com.google.protobuf.ByteString> The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Optional inference parameters.putParameters(String key, GrpcPredictV2.InferParameter value) Optional inference parameters.Optional inference parameters.removeInputs(int index) The input tensors for the inference.removeOutputs(int index) The requested output tensors for the inference.removeParameters(String key) Optional inference parameters.Optional identifier for the request.setIdBytes(com.google.protobuf.ByteString value) Optional identifier for the request.setInputs(int index, GrpcPredictV2.ModelInferRequest.InferInputTensor value) The input tensors for the inference.setInputs(int index, GrpcPredictV2.ModelInferRequest.InferInputTensor.Builder builderForValue) The input tensors for the inference.setModelName(String value) The name of the model to use for inferencing.setModelNameBytes(com.google.protobuf.ByteString value) The name of the model to use for inferencing.setModelVersion(String value) The version of the model to use for inference.setModelVersionBytes(com.google.protobuf.ByteString value) The version of the model to use for inference.setOutputs(int index, GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor value) The requested output tensors for the inference.setOutputs(int index, GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor.Builder builderForValue) The requested output tensors for the inference.setRawInputContents(int index, com.google.protobuf.ByteString value) The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferRequest.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<GrpcPredictV2.ModelInferRequest.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<GrpcPredictV2.ModelInferRequest.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<GrpcPredictV2.ModelInferRequest.Builder>
-
setField
public GrpcPredictV2.ModelInferRequest.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<GrpcPredictV2.ModelInferRequest.Builder>
-
clearField
public GrpcPredictV2.ModelInferRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferRequest.Builder>
-
clearOneof
public GrpcPredictV2.ModelInferRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferRequest.Builder>
-
setRepeatedField
public GrpcPredictV2.ModelInferRequest.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<GrpcPredictV2.ModelInferRequest.Builder>
-
addRepeatedField
public GrpcPredictV2.ModelInferRequest.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<GrpcPredictV2.ModelInferRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcPredictV2.ModelInferRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferRequest.Builder>
-
mergeFrom
public GrpcPredictV2.ModelInferRequest.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<GrpcPredictV2.ModelInferRequest.Builder>- Throws:
IOException
-
getModelName
The name of the model to use for inferencing.
string model_name = 1;- Specified by:
getModelNamein interfaceGrpcPredictV2.ModelInferRequestOrBuilder- Returns:
- The modelName.
-
getModelNameBytes
public com.google.protobuf.ByteString getModelNameBytes()The name of the model to use for inferencing.
string model_name = 1;- Specified by:
getModelNameBytesin interfaceGrpcPredictV2.ModelInferRequestOrBuilder- Returns:
- The bytes for modelName.
-
setModelName
The name of the model to use for inferencing.
string model_name = 1;- Parameters:
value- The modelName to set.- Returns:
- This builder for chaining.
-
clearModelName
The name of the model to use for inferencing.
string model_name = 1;- Returns:
- This builder for chaining.
-
setModelNameBytes
public GrpcPredictV2.ModelInferRequest.Builder setModelNameBytes(com.google.protobuf.ByteString value) The name of the model to use for inferencing.
string model_name = 1;- Parameters:
value- The bytes for modelName to set.- Returns:
- This builder for chaining.
-
getModelVersion
The version of the model to use for inference. If not given the server will choose a version based on the model and internal policy.
string model_version = 2;- Specified by:
getModelVersionin interfaceGrpcPredictV2.ModelInferRequestOrBuilder- Returns:
- The modelVersion.
-
getModelVersionBytes
public com.google.protobuf.ByteString getModelVersionBytes()The version of the model to use for inference. If not given the server will choose a version based on the model and internal policy.
string model_version = 2;- Specified by:
getModelVersionBytesin interfaceGrpcPredictV2.ModelInferRequestOrBuilder- Returns:
- The bytes for modelVersion.
-
setModelVersion
The version of the model to use for inference. If not given the server will choose a version based on the model and internal policy.
string model_version = 2;- Parameters:
value- The modelVersion to set.- Returns:
- This builder for chaining.
-
clearModelVersion
The version of the model to use for inference. If not given the server will choose a version based on the model and internal policy.
string model_version = 2;- Returns:
- This builder for chaining.
-
setModelVersionBytes
public GrpcPredictV2.ModelInferRequest.Builder setModelVersionBytes(com.google.protobuf.ByteString value) The version of the model to use for inference. If not given the server will choose a version based on the model and internal policy.
string model_version = 2;- Parameters:
value- The bytes for modelVersion to set.- Returns:
- This builder for chaining.
-
getId
Optional identifier for the request. If specified will be returned in the response.
string id = 3;- Specified by:
getIdin interfaceGrpcPredictV2.ModelInferRequestOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Optional identifier for the request. If specified will be returned in the response.
string id = 3;- Specified by:
getIdBytesin interfaceGrpcPredictV2.ModelInferRequestOrBuilder- Returns:
- The bytes for id.
-
setId
Optional identifier for the request. If specified will be returned in the response.
string id = 3;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Optional identifier for the request. If specified will be returned in the response.
string id = 3;- Returns:
- This builder for chaining.
-
setIdBytes
Optional identifier for the request. If specified will be returned in the response.
string id = 3;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getParametersCount
public int getParametersCount()Description copied from interface:GrpcPredictV2.ModelInferRequestOrBuilderOptional inference parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersCountin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
containsParameters
Optional inference parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
containsParametersin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
getParameters
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
getParametersMap
Optional inference parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersMapin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
getParametersOrDefault
public GrpcPredictV2.InferParameter getParametersOrDefault(String key, GrpcPredictV2.InferParameter defaultValue) Optional inference parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersOrDefaultin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
getParametersOrThrow
Optional inference parameters.
map<string, .inference.InferParameter> parameters = 4;- Specified by:
getParametersOrThrowin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
clearParameters
-
removeParameters
Optional inference parameters.
map<string, .inference.InferParameter> parameters = 4; -
getMutableParameters
Deprecated.Use alternate mutation accessors instead. -
putParameters
public GrpcPredictV2.ModelInferRequest.Builder putParameters(String key, GrpcPredictV2.InferParameter value) Optional inference parameters.
map<string, .inference.InferParameter> parameters = 4; -
putAllParameters
public GrpcPredictV2.ModelInferRequest.Builder putAllParameters(Map<String, GrpcPredictV2.InferParameter> values) Optional inference parameters.
map<string, .inference.InferParameter> parameters = 4; -
putParametersBuilderIfAbsent
Optional inference parameters.
map<string, .inference.InferParameter> parameters = 4; -
getInputsList
The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5;- Specified by:
getInputsListin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
getInputsCount
public int getInputsCount()The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5;- Specified by:
getInputsCountin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
getInputs
The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5;- Specified by:
getInputsin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
setInputs
public GrpcPredictV2.ModelInferRequest.Builder setInputs(int index, GrpcPredictV2.ModelInferRequest.InferInputTensor value) The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
setInputs
public GrpcPredictV2.ModelInferRequest.Builder setInputs(int index, GrpcPredictV2.ModelInferRequest.InferInputTensor.Builder builderForValue) The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
addInputs
public GrpcPredictV2.ModelInferRequest.Builder addInputs(GrpcPredictV2.ModelInferRequest.InferInputTensor value) The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
addInputs
public GrpcPredictV2.ModelInferRequest.Builder addInputs(int index, GrpcPredictV2.ModelInferRequest.InferInputTensor value) The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
addInputs
public GrpcPredictV2.ModelInferRequest.Builder addInputs(GrpcPredictV2.ModelInferRequest.InferInputTensor.Builder builderForValue) The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
addInputs
public GrpcPredictV2.ModelInferRequest.Builder addInputs(int index, GrpcPredictV2.ModelInferRequest.InferInputTensor.Builder builderForValue) The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
addAllInputs
public GrpcPredictV2.ModelInferRequest.Builder addAllInputs(Iterable<? extends GrpcPredictV2.ModelInferRequest.InferInputTensor> values) The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
clearInputs
The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
removeInputs
The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
getInputsBuilder
The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
getInputsOrBuilder
The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5;- Specified by:
getInputsOrBuilderin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
getInputsOrBuilderList
public List<? extends GrpcPredictV2.ModelInferRequest.InferInputTensorOrBuilder> getInputsOrBuilderList()The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5;- Specified by:
getInputsOrBuilderListin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
addInputsBuilder
The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
addInputsBuilder
The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
getInputsBuilderList
The input tensors for the inference.
repeated .inference.ModelInferRequest.InferInputTensor inputs = 5; -
getOutputsList
The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6;- Specified by:
getOutputsListin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
getOutputsCount
public int getOutputsCount()The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6;- Specified by:
getOutputsCountin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
getOutputs
The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6;- Specified by:
getOutputsin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
setOutputs
public GrpcPredictV2.ModelInferRequest.Builder setOutputs(int index, GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor value) The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
setOutputs
public GrpcPredictV2.ModelInferRequest.Builder setOutputs(int index, GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor.Builder builderForValue) The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
addOutputs
public GrpcPredictV2.ModelInferRequest.Builder addOutputs(GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor value) The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
addOutputs
public GrpcPredictV2.ModelInferRequest.Builder addOutputs(int index, GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor value) The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
addOutputs
public GrpcPredictV2.ModelInferRequest.Builder addOutputs(GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor.Builder builderForValue) The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
addOutputs
public GrpcPredictV2.ModelInferRequest.Builder addOutputs(int index, GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor.Builder builderForValue) The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
addAllOutputs
public GrpcPredictV2.ModelInferRequest.Builder addAllOutputs(Iterable<? extends GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor> values) The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
clearOutputs
The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
removeOutputs
The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
getOutputsBuilder
public GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor.Builder getOutputsBuilder(int index) The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
getOutputsOrBuilder
public GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensorOrBuilder getOutputsOrBuilder(int index) The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6;- Specified by:
getOutputsOrBuilderin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
getOutputsOrBuilderList
public List<? extends GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensorOrBuilder> getOutputsOrBuilderList()The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6;- Specified by:
getOutputsOrBuilderListin interfaceGrpcPredictV2.ModelInferRequestOrBuilder
-
addOutputsBuilder
The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
addOutputsBuilder
public GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor.Builder addOutputsBuilder(int index) The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
getOutputsBuilderList
public List<GrpcPredictV2.ModelInferRequest.InferRequestedOutputTensor.Builder> getOutputsBuilderList()The requested output tensors for the inference. Optional, if not specified all outputs produced by the model will be returned.
repeated .inference.ModelInferRequest.InferRequestedOutputTensor outputs = 6; -
getRawInputContentsList
The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_input_contents' must be initialized with data for each tensor in the same order as 'inputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferInputTensor::contents must not be specified for any input tensor.
repeated bytes raw_input_contents = 7;- Specified by:
getRawInputContentsListin interfaceGrpcPredictV2.ModelInferRequestOrBuilder- Returns:
- A list containing the rawInputContents.
-
getRawInputContentsCount
public int getRawInputContentsCount()The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_input_contents' must be initialized with data for each tensor in the same order as 'inputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferInputTensor::contents must not be specified for any input tensor.
repeated bytes raw_input_contents = 7;- Specified by:
getRawInputContentsCountin interfaceGrpcPredictV2.ModelInferRequestOrBuilder- Returns:
- The count of rawInputContents.
-
getRawInputContents
public com.google.protobuf.ByteString getRawInputContents(int index) The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_input_contents' must be initialized with data for each tensor in the same order as 'inputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferInputTensor::contents must not be specified for any input tensor.
repeated bytes raw_input_contents = 7;- Specified by:
getRawInputContentsin interfaceGrpcPredictV2.ModelInferRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The rawInputContents at the given index.
-
setRawInputContents
public GrpcPredictV2.ModelInferRequest.Builder setRawInputContents(int index, com.google.protobuf.ByteString value) The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_input_contents' must be initialized with data for each tensor in the same order as 'inputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferInputTensor::contents must not be specified for any input tensor.
repeated bytes raw_input_contents = 7;- Parameters:
index- The index to set the value at.value- The rawInputContents to set.- Returns:
- This builder for chaining.
-
addRawInputContents
public GrpcPredictV2.ModelInferRequest.Builder addRawInputContents(com.google.protobuf.ByteString value) The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_input_contents' must be initialized with data for each tensor in the same order as 'inputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferInputTensor::contents must not be specified for any input tensor.
repeated bytes raw_input_contents = 7;- Parameters:
value- The rawInputContents to add.- Returns:
- This builder for chaining.
-
addAllRawInputContents
public GrpcPredictV2.ModelInferRequest.Builder addAllRawInputContents(Iterable<? extends com.google.protobuf.ByteString> values) The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_input_contents' must be initialized with data for each tensor in the same order as 'inputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferInputTensor::contents must not be specified for any input tensor.
repeated bytes raw_input_contents = 7;- Parameters:
values- The rawInputContents to add.- Returns:
- This builder for chaining.
-
clearRawInputContents
The data contained in an input tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type. To use the raw representation 'raw_input_contents' must be initialized with data for each tensor in the same order as 'inputs'. For each tensor, the size of this content must match what is expected by the tensor's shape and data type. The raw data must be the flattened, one-dimensional, row-major order of the tensor elements without any stride or padding between the elements. Note that the FP16 and BF16 data types must be represented as raw content as there is no specific data type for a 16-bit float type. If this field is specified then InferInputTensor::contents must not be specified for any input tensor.
repeated bytes raw_input_contents = 7;- Returns:
- This builder for chaining.
-
setUnknownFields
public final GrpcPredictV2.ModelInferRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferRequest.Builder>
-
mergeUnknownFields
public final GrpcPredictV2.ModelInferRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.ModelInferRequest.Builder>
-