Interface PredictResponse.PredictionResultOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean containsMetadata​(String key)
      Additional product metadata / annotations.
      String getId()
      ID of the recommended product
      com.google.protobuf.ByteString getIdBytes()
      ID of the recommended product
      Map<String,​com.google.protobuf.Value> getMetadata()
      Deprecated.
      int getMetadataCount()
      Additional product metadata / annotations.
      Map<String,​com.google.protobuf.Value> getMetadataMap()
      Additional product metadata / annotations.
      com.google.protobuf.Value getMetadataOrDefault​(String key, com.google.protobuf.Value defaultValue)
      Additional product metadata / annotations.
      com.google.protobuf.Value getMetadataOrThrow​(String key)
      Additional product metadata / annotations.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getId

        String getId()
         ID of the recommended product
         
        string id = 1;
        Returns:
        The id.
      • getIdBytes

        com.google.protobuf.ByteString getIdBytes()
         ID of the recommended product
         
        string id = 1;
        Returns:
        The bytes for id.
      • getMetadataCount

        int getMetadataCount()
         Additional product metadata / annotations.
        
         Possible values:
        
         * `product`: JSON representation of the product. Is set if
           `returnProduct` is set to true in `PredictRequest.params`.
         * `score`: Prediction score in double value. Is set if
           `returnScore` is set to true in `PredictRequest.params`.
         
        map<string, .google.protobuf.Value> metadata = 2;
      • containsMetadata

        boolean containsMetadata​(String key)
         Additional product metadata / annotations.
        
         Possible values:
        
         * `product`: JSON representation of the product. Is set if
           `returnProduct` is set to true in `PredictRequest.params`.
         * `score`: Prediction score in double value. Is set if
           `returnScore` is set to true in `PredictRequest.params`.
         
        map<string, .google.protobuf.Value> metadata = 2;
      • getMetadataMap

        Map<String,​com.google.protobuf.Value> getMetadataMap()
         Additional product metadata / annotations.
        
         Possible values:
        
         * `product`: JSON representation of the product. Is set if
           `returnProduct` is set to true in `PredictRequest.params`.
         * `score`: Prediction score in double value. Is set if
           `returnScore` is set to true in `PredictRequest.params`.
         
        map<string, .google.protobuf.Value> metadata = 2;
      • getMetadataOrDefault

        com.google.protobuf.Value getMetadataOrDefault​(String key,
                                                       com.google.protobuf.Value defaultValue)
         Additional product metadata / annotations.
        
         Possible values:
        
         * `product`: JSON representation of the product. Is set if
           `returnProduct` is set to true in `PredictRequest.params`.
         * `score`: Prediction score in double value. Is set if
           `returnScore` is set to true in `PredictRequest.params`.
         
        map<string, .google.protobuf.Value> metadata = 2;
      • getMetadataOrThrow

        com.google.protobuf.Value getMetadataOrThrow​(String key)
         Additional product metadata / annotations.
        
         Possible values:
        
         * `product`: JSON representation of the product. Is set if
           `returnProduct` is set to true in `PredictRequest.params`.
         * `score`: Prediction score in double value. Is set if
           `returnScore` is set to true in `PredictRequest.params`.
         
        map<string, .google.protobuf.Value> metadata = 2;