Package tensorflow.serving
Interface Predict.PredictRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Predict.PredictRequest,Predict.PredictRequest.Builder
- Enclosing class:
Predict
public static interface Predict.PredictRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsInputs(String key) Input tensors.com.google.protobuf.ByteStringClient identifier to group requests belonging to a specific entity.Deprecated.intInput tensors.Input tensors.getInputsOrDefault(String key, TensorProto defaultValue) Input tensors.getInputsOrThrow(String key) Input tensors.Model Specification.Model Specification.getOutputFilter(int index) Output filter.com.google.protobuf.ByteStringgetOutputFilterBytes(int index) Output filter.intOutput filter.Output filter.Options for streaming requests to control how multiple requests/responses are handled within a single stream.Options for streaming requests to control how multiple requests/responses are handled within a single stream.optional .tensorflow.serving.PredictRequest.RequestOptions request_options = 7;optional .tensorflow.serving.PredictRequest.RequestOptions request_options = 7;booleanClient identifier to group requests belonging to a specific entity.booleanModel Specification.booleanOptions for streaming requests to control how multiple requests/responses are handled within a single stream.booleanoptional .tensorflow.serving.PredictRequest.RequestOptions request_options = 7;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
-
hasModelSpec
boolean hasModelSpec()Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1;- Returns:
- Whether the modelSpec field is set.
-
getModelSpec
Model.ModelSpec getModelSpec()Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1;- Returns:
- The modelSpec.
-
getModelSpecOrBuilder
Model.ModelSpecOrBuilder getModelSpecOrBuilder()Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1; -
getInputsCount
int getInputsCount()Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.
map<string, .tensorflow.TensorProto> inputs = 2; -
containsInputs
Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.
map<string, .tensorflow.TensorProto> inputs = 2; -
getInputs
Deprecated.UsegetInputsMap()instead. -
getInputsMap
Map<String,TensorProto> getInputsMap()Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.
map<string, .tensorflow.TensorProto> inputs = 2; -
getInputsOrDefault
Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.
map<string, .tensorflow.TensorProto> inputs = 2; -
getInputsOrThrow
Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.
map<string, .tensorflow.TensorProto> inputs = 2; -
getOutputFilterList
Output filter. Names specified are alias names. The mapping from aliases to real output tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'outputs' field. Only tensors specified here will be run/fetched and returned, with the exception that when none is specified, all tensors specified in the named signature will be run/fetched and returned.
repeated string output_filter = 3;- Returns:
- A list containing the outputFilter.
-
getOutputFilterCount
int getOutputFilterCount()Output filter. Names specified are alias names. The mapping from aliases to real output tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'outputs' field. Only tensors specified here will be run/fetched and returned, with the exception that when none is specified, all tensors specified in the named signature will be run/fetched and returned.
repeated string output_filter = 3;- Returns:
- The count of outputFilter.
-
getOutputFilter
Output filter. Names specified are alias names. The mapping from aliases to real output tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'outputs' field. Only tensors specified here will be run/fetched and returned, with the exception that when none is specified, all tensors specified in the named signature will be run/fetched and returned.
repeated string output_filter = 3;- Parameters:
index- The index of the element to return.- Returns:
- The outputFilter at the given index.
-
getOutputFilterBytes
com.google.protobuf.ByteString getOutputFilterBytes(int index) Output filter. Names specified are alias names. The mapping from aliases to real output tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'outputs' field. Only tensors specified here will be run/fetched and returned, with the exception that when none is specified, all tensors specified in the named signature will be run/fetched and returned.
repeated string output_filter = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the outputFilter at the given index.
-
hasPredictStreamedOptions
boolean hasPredictStreamedOptions()Options for streaming requests to control how multiple requests/responses are handled within a single stream.
.tensorflow.serving.PredictStreamedOptions predict_streamed_options = 5;- Returns:
- Whether the predictStreamedOptions field is set.
-
getPredictStreamedOptions
Predict.PredictStreamedOptions getPredictStreamedOptions()Options for streaming requests to control how multiple requests/responses are handled within a single stream.
.tensorflow.serving.PredictStreamedOptions predict_streamed_options = 5;- Returns:
- The predictStreamedOptions.
-
getPredictStreamedOptionsOrBuilder
Predict.PredictStreamedOptionsOrBuilder getPredictStreamedOptionsOrBuilder()Options for streaming requests to control how multiple requests/responses are handled within a single stream.
.tensorflow.serving.PredictStreamedOptions predict_streamed_options = 5; -
hasClientId
boolean hasClientId()Client identifier to group requests belonging to a specific entity. Example entities can be product ids, service names, user ids etc. Servers can use this to optimize placement, caching and colocation. TODO(b/329897437): Migrate to client_id in RequestOptions.
optional bytes client_id = 6;- Returns:
- Whether the clientId field is set.
-
getClientId
com.google.protobuf.ByteString getClientId()Client identifier to group requests belonging to a specific entity. Example entities can be product ids, service names, user ids etc. Servers can use this to optimize placement, caching and colocation. TODO(b/329897437): Migrate to client_id in RequestOptions.
optional bytes client_id = 6;- Returns:
- The clientId.
-
hasRequestOptions
boolean hasRequestOptions()optional .tensorflow.serving.PredictRequest.RequestOptions request_options = 7;- Returns:
- Whether the requestOptions field is set.
-
getRequestOptions
Predict.PredictRequest.RequestOptions getRequestOptions()optional .tensorflow.serving.PredictRequest.RequestOptions request_options = 7;- Returns:
- The requestOptions.
-
getRequestOptionsOrBuilder
Predict.PredictRequest.RequestOptionsOrBuilder getRequestOptionsOrBuilder()optional .tensorflow.serving.PredictRequest.RequestOptions request_options = 7;
-