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 Detail

      • 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​(java.lang.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;
      • getInputsMap

        java.util.Map<java.lang.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​(java.lang.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​(java.lang.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

        java.util.List<java.lang.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

        java.lang.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.