/*
 * 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;

/**
 * Provides some debug info for the entity. This data shown to engineers (for debugging) and to
 * raters (so it ultimately impacts eval metrics), but is also used to train ML models (see below).
 * IMPORTANT: Despite the proto naming, this data has production quality impact. The data below is
 * mostly human-readable text that is useful to help engineers with debugging. However the text is
 * also used as input to machine-learned natural language processing models, which are used in
 * production Webref.
 *
 * <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 RepositoryWebrefEntityDebugInfo extends com.google.api.client.json.GenericJson {

  /**
   * A human-readable description of the entity. This can range from brief, machine-generated notes
   * to lengthy human-written paragraphs from Wikipedia.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String description;

  /**
   * The language (III LanguageCode) of the `title` and `description` fields.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String language;

  /**
   * Internal score to merge debug info. should not set in final entityjoins.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Double score;

  /**
   * A short human-readable name/title of the entity, similar to what is displayed at the top of a
   * Hume page. Suitable to be displayed in a list.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String title;

  /**
   * Link to a page with more information about the entity (internal Hume page, external Wikipedia
   * page, etc.).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String url;

  /**
   * A human-readable description of the entity. This can range from brief, machine-generated notes
   * to lengthy human-written paragraphs from Wikipedia.
   * @return value or {@code null} for none
   */
  public java.lang.String getDescription() {
    return description;
  }

  /**
   * A human-readable description of the entity. This can range from brief, machine-generated notes
   * to lengthy human-written paragraphs from Wikipedia.
   * @param description description or {@code null} for none
   */
  public RepositoryWebrefEntityDebugInfo setDescription(java.lang.String description) {
    this.description = description;
    return this;
  }

  /**
   * The language (III LanguageCode) of the `title` and `description` fields.
   * @return value or {@code null} for none
   */
  public java.lang.String getLanguage() {
    return language;
  }

  /**
   * The language (III LanguageCode) of the `title` and `description` fields.
   * @param language language or {@code null} for none
   */
  public RepositoryWebrefEntityDebugInfo setLanguage(java.lang.String language) {
    this.language = language;
    return this;
  }

  /**
   * Internal score to merge debug info. should not set in final entityjoins.
   * @return value or {@code null} for none
   */
  public java.lang.Double getScore() {
    return score;
  }

  /**
   * Internal score to merge debug info. should not set in final entityjoins.
   * @param score score or {@code null} for none
   */
  public RepositoryWebrefEntityDebugInfo setScore(java.lang.Double score) {
    this.score = score;
    return this;
  }

  /**
   * A short human-readable name/title of the entity, similar to what is displayed at the top of a
   * Hume page. Suitable to be displayed in a list.
   * @return value or {@code null} for none
   */
  public java.lang.String getTitle() {
    return title;
  }

  /**
   * A short human-readable name/title of the entity, similar to what is displayed at the top of a
   * Hume page. Suitable to be displayed in a list.
   * @param title title or {@code null} for none
   */
  public RepositoryWebrefEntityDebugInfo setTitle(java.lang.String title) {
    this.title = title;
    return this;
  }

  /**
   * Link to a page with more information about the entity (internal Hume page, external Wikipedia
   * page, etc.).
   * @return value or {@code null} for none
   */
  public java.lang.String getUrl() {
    return url;
  }

  /**
   * Link to a page with more information about the entity (internal Hume page, external Wikipedia
   * page, etc.).
   * @param url url or {@code null} for none
   */
  public RepositoryWebrefEntityDebugInfo setUrl(java.lang.String url) {
    this.url = url;
    return this;
  }

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

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

}
