Package inference
Interface GrpcPredictV2.ModelInferResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GrpcPredictV2.ModelInferResponse,GrpcPredictV2.ModelInferResponse.Builder
- Enclosing class:
GrpcPredictV2
public static interface GrpcPredictV2.ModelInferResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsParameters(String key) Optional inference response parameters.getId()The id of the inference request if one was specified.com.google.protobuf.ByteStringThe id of the inference request if one was specified.The name of the model used for inference.com.google.protobuf.ByteStringThe name of the model used for inference.The version of the model used for inference.com.google.protobuf.ByteStringThe version of the model used for inference.getOutputs(int index) The output tensors holding inference results.intThe output tensors holding inference results.The output tensors holding inference results.getOutputsOrBuilder(int index) The output tensors holding inference results.The output tensors holding inference results.Deprecated.intOptional inference response parameters.Optional inference response parameters.getParametersOrDefault(String key, GrpcPredictV2.InferParameter defaultValue) Optional inference response parameters.Optional inference response parameters.com.google.protobuf.ByteStringgetRawOutputContents(int index) The data contained in an output 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 output 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 output tensor can be represented in "raw" bytes form or in the repeated type that matches the tensor's data type.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getModelName
String getModelName()The name of the model used for inference.
string model_name = 1;- Returns:
- The modelName.
-
getModelNameBytes
com.google.protobuf.ByteString getModelNameBytes()The name of the model used for inference.
string model_name = 1;- Returns:
- The bytes for modelName.
-
getModelVersion
String getModelVersion()The version of the model used for inference.
string model_version = 2;- Returns:
- The modelVersion.
-
getModelVersionBytes
com.google.protobuf.ByteString getModelVersionBytes()The version of the model used for inference.
string model_version = 2;- Returns:
- The bytes for modelVersion.
-
getId
String getId()The id of the inference request if one was specified.
string id = 3;- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()The id of the inference request if one was specified.
string id = 3;- Returns:
- The bytes for id.
-
getParametersCount
int getParametersCount()Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4; -
containsParameters
Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4; -
getParameters
Deprecated.UsegetParametersMap()instead. -
getParametersMap
Map<String,GrpcPredictV2.InferParameter> getParametersMap()Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4; -
getParametersOrDefault
GrpcPredictV2.InferParameter getParametersOrDefault(String key, GrpcPredictV2.InferParameter defaultValue) Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4; -
getParametersOrThrow
Optional inference response parameters.
map<string, .inference.InferParameter> parameters = 4; -
getOutputsList
List<GrpcPredictV2.ModelInferResponse.InferOutputTensor> getOutputsList()The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getOutputs
The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getOutputsCount
int getOutputsCount()The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getOutputsOrBuilderList
List<? extends GrpcPredictV2.ModelInferResponse.InferOutputTensorOrBuilder> getOutputsOrBuilderList()The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getOutputsOrBuilder
The output tensors holding inference results.
repeated .inference.ModelInferResponse.InferOutputTensor outputs = 5; -
getRawOutputContentsList
List<com.google.protobuf.ByteString> getRawOutputContentsList()The data contained in an output 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_output_contents' must be initialized with data for each tensor in the same order as 'outputs'. 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 InferOutputTensor::contents must not be specified for any output tensor.
repeated bytes raw_output_contents = 6;- Returns:
- A list containing the rawOutputContents.
-
getRawOutputContentsCount
int getRawOutputContentsCount()The data contained in an output 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_output_contents' must be initialized with data for each tensor in the same order as 'outputs'. 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 InferOutputTensor::contents must not be specified for any output tensor.
repeated bytes raw_output_contents = 6;- Returns:
- The count of rawOutputContents.
-
getRawOutputContents
com.google.protobuf.ByteString getRawOutputContents(int index) The data contained in an output 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_output_contents' must be initialized with data for each tensor in the same order as 'outputs'. 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 InferOutputTensor::contents must not be specified for any output tensor.
repeated bytes raw_output_contents = 6;- Parameters:
index- The index of the element to return.- Returns:
- The rawOutputContents at the given index.
-