/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.contentwarehouse.v1.model;

/**
 * Whether the product being described fits into specific categories (e.g., "video games").
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Document AI Warehouse API. For a detailed explanation
 * see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class NlpSemanticParsingModelsShoppingAssistantProductClassification extends com.google.api.client.json.GenericJson {

  /**
   * TODO(ppoudyal) Expand confidence to cases where the product phrase might be a
   * book/movie/video_game but isn't just a title The score (between 0 - 1) measuring the confidence
   * that product
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Float bookConfidence;

  /**
   * TODO(ppoudyal) Deprecate is_video_game once the score covers all cases covered by
   * $VideoGameProductPhrase The product phrase contains a video game title.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean isVideoGame;

  /**
   * phrase mentions a book title The score (between 0 - 1) measuring the confidence that product
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Float movieConfidence;

  /**
   * phrase mentions a movie title The score (between 0 - 1) measuring the confidence that product
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Float videoGameConfidence;

  /**
   * TODO(ppoudyal) Expand confidence to cases where the product phrase might be a
   * book/movie/video_game but isn't just a title The score (between 0 - 1) measuring the confidence
   * that product
   * @return value or {@code null} for none
   */
  public java.lang.Float getBookConfidence() {
    return bookConfidence;
  }

  /**
   * TODO(ppoudyal) Expand confidence to cases where the product phrase might be a
   * book/movie/video_game but isn't just a title The score (between 0 - 1) measuring the confidence
   * that product
   * @param bookConfidence bookConfidence or {@code null} for none
   */
  public NlpSemanticParsingModelsShoppingAssistantProductClassification setBookConfidence(java.lang.Float bookConfidence) {
    this.bookConfidence = bookConfidence;
    return this;
  }

  /**
   * TODO(ppoudyal) Deprecate is_video_game once the score covers all cases covered by
   * $VideoGameProductPhrase The product phrase contains a video game title.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getIsVideoGame() {
    return isVideoGame;
  }

  /**
   * TODO(ppoudyal) Deprecate is_video_game once the score covers all cases covered by
   * $VideoGameProductPhrase The product phrase contains a video game title.
   * @param isVideoGame isVideoGame or {@code null} for none
   */
  public NlpSemanticParsingModelsShoppingAssistantProductClassification setIsVideoGame(java.lang.Boolean isVideoGame) {
    this.isVideoGame = isVideoGame;
    return this;
  }

  /**
   * phrase mentions a book title The score (between 0 - 1) measuring the confidence that product
   * @return value or {@code null} for none
   */
  public java.lang.Float getMovieConfidence() {
    return movieConfidence;
  }

  /**
   * phrase mentions a book title The score (between 0 - 1) measuring the confidence that product
   * @param movieConfidence movieConfidence or {@code null} for none
   */
  public NlpSemanticParsingModelsShoppingAssistantProductClassification setMovieConfidence(java.lang.Float movieConfidence) {
    this.movieConfidence = movieConfidence;
    return this;
  }

  /**
   * phrase mentions a movie title The score (between 0 - 1) measuring the confidence that product
   * @return value or {@code null} for none
   */
  public java.lang.Float getVideoGameConfidence() {
    return videoGameConfidence;
  }

  /**
   * phrase mentions a movie title The score (between 0 - 1) measuring the confidence that product
   * @param videoGameConfidence videoGameConfidence or {@code null} for none
   */
  public NlpSemanticParsingModelsShoppingAssistantProductClassification setVideoGameConfidence(java.lang.Float videoGameConfidence) {
    this.videoGameConfidence = videoGameConfidence;
    return this;
  }

  @Override
  public NlpSemanticParsingModelsShoppingAssistantProductClassification set(String fieldName, Object value) {
    return (NlpSemanticParsingModelsShoppingAssistantProductClassification) super.set(fieldName, value);
  }

  @Override
  public NlpSemanticParsingModelsShoppingAssistantProductClassification clone() {
    return (NlpSemanticParsingModelsShoppingAssistantProductClassification) super.clone();
  }

}
