// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/automl/v1beta1/prediction_service.proto

package com.google.cloud.automl.v1beta1;

public interface PredictRequestOrBuilder extends
    // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.PredictRequest)
    com.google.protobuf.MessageOrBuilder {

  /**
   * <pre>
   * Name of the model requested to serve the prediction.
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  java.lang.String getName();
  /**
   * <pre>
   * Name of the model requested to serve the prediction.
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  com.google.protobuf.ByteString
      getNameBytes();

  /**
   * <pre>
   * Required.
   * Payload to perform a prediction on. The payload must match the
   * problem type that the model was trained to solve.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.ExamplePayload payload = 2;</code>
   */
  boolean hasPayload();
  /**
   * <pre>
   * Required.
   * Payload to perform a prediction on. The payload must match the
   * problem type that the model was trained to solve.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.ExamplePayload payload = 2;</code>
   */
  com.google.cloud.automl.v1beta1.ExamplePayload getPayload();
  /**
   * <pre>
   * Required.
   * Payload to perform a prediction on. The payload must match the
   * problem type that the model was trained to solve.
   * </pre>
   *
   * <code>.google.cloud.automl.v1beta1.ExamplePayload payload = 2;</code>
   */
  com.google.cloud.automl.v1beta1.ExamplePayloadOrBuilder getPayloadOrBuilder();

  /**
   * <pre>
   * Additional domain-specific parameters, any string must be up to 25000
   * characters long.
   * *  For Image Classification:
   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
   *     makes predictions for an
   *     image, it will only produce results that have at least this confidence
   *     score threshold. The default is 0.5.
   * </pre>
   *
   * <code>map&lt;string, string&gt; params = 3;</code>
   */
  int getParamsCount();
  /**
   * <pre>
   * Additional domain-specific parameters, any string must be up to 25000
   * characters long.
   * *  For Image Classification:
   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
   *     makes predictions for an
   *     image, it will only produce results that have at least this confidence
   *     score threshold. The default is 0.5.
   * </pre>
   *
   * <code>map&lt;string, string&gt; params = 3;</code>
   */
  boolean containsParams(
      java.lang.String key);
  /**
   * Use {@link #getParamsMap()} instead.
   */
  @java.lang.Deprecated
  java.util.Map<java.lang.String, java.lang.String>
  getParams();
  /**
   * <pre>
   * Additional domain-specific parameters, any string must be up to 25000
   * characters long.
   * *  For Image Classification:
   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
   *     makes predictions for an
   *     image, it will only produce results that have at least this confidence
   *     score threshold. The default is 0.5.
   * </pre>
   *
   * <code>map&lt;string, string&gt; params = 3;</code>
   */
  java.util.Map<java.lang.String, java.lang.String>
  getParamsMap();
  /**
   * <pre>
   * Additional domain-specific parameters, any string must be up to 25000
   * characters long.
   * *  For Image Classification:
   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
   *     makes predictions for an
   *     image, it will only produce results that have at least this confidence
   *     score threshold. The default is 0.5.
   * </pre>
   *
   * <code>map&lt;string, string&gt; params = 3;</code>
   */

  java.lang.String getParamsOrDefault(
      java.lang.String key,
      java.lang.String defaultValue);
  /**
   * <pre>
   * Additional domain-specific parameters, any string must be up to 25000
   * characters long.
   * *  For Image Classification:
   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
   *     makes predictions for an
   *     image, it will only produce results that have at least this confidence
   *     score threshold. The default is 0.5.
   * </pre>
   *
   * <code>map&lt;string, string&gt; params = 3;</code>
   */

  java.lang.String getParamsOrThrow(
      java.lang.String key);
}
