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 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

      boolean containsInputs(String key)
       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.
      Use getInputsMap() 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

      TensorProto getInputsOrDefault(String key, TensorProto defaultValue)
       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

      TensorProto getInputsOrThrow(String key)
       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

      List<String> 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

      String getOutputFilter(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 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

      optional .tensorflow.serving.PredictRequest.RequestOptions request_options = 7;
      Returns:
      The requestOptions.
    • getRequestOptionsOrBuilder

      optional .tensorflow.serving.PredictRequest.RequestOptions request_options = 7;