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

/**
 * Model definition for NlpSemanticParsingLocalExtent.
 *
 * <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 NlpSemanticParsingLocalExtent extends com.google.api.client.json.GenericJson {

  /**
   * True for values like "a few".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean nonSpecificValue;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String units;

  /**
   * String representation, e.g., for debug.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String unitsString;

  /**
   * For approximate values such as "a few" or "several", we populate |value| with a specific
   * numeric value which is a generous (i.e., high) interpretation of the text, and we set
   * |non_specific_value| to true.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Double value;

  /**
   * Can hold numbers as well as "a few".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String valueString;

  /**
   * True for values like "a few".
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getNonSpecificValue() {
    return nonSpecificValue;
  }

  /**
   * True for values like "a few".
   * @param nonSpecificValue nonSpecificValue or {@code null} for none
   */
  public NlpSemanticParsingLocalExtent setNonSpecificValue(java.lang.Boolean nonSpecificValue) {
    this.nonSpecificValue = nonSpecificValue;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.String getUnits() {
    return units;
  }

  /**
   * @param units units or {@code null} for none
   */
  public NlpSemanticParsingLocalExtent setUnits(java.lang.String units) {
    this.units = units;
    return this;
  }

  /**
   * String representation, e.g., for debug.
   * @return value or {@code null} for none
   */
  public java.lang.String getUnitsString() {
    return unitsString;
  }

  /**
   * String representation, e.g., for debug.
   * @param unitsString unitsString or {@code null} for none
   */
  public NlpSemanticParsingLocalExtent setUnitsString(java.lang.String unitsString) {
    this.unitsString = unitsString;
    return this;
  }

  /**
   * For approximate values such as "a few" or "several", we populate |value| with a specific
   * numeric value which is a generous (i.e., high) interpretation of the text, and we set
   * |non_specific_value| to true.
   * @return value or {@code null} for none
   */
  public java.lang.Double getValue() {
    return value;
  }

  /**
   * For approximate values such as "a few" or "several", we populate |value| with a specific
   * numeric value which is a generous (i.e., high) interpretation of the text, and we set
   * |non_specific_value| to true.
   * @param value value or {@code null} for none
   */
  public NlpSemanticParsingLocalExtent setValue(java.lang.Double value) {
    this.value = value;
    return this;
  }

  /**
   * Can hold numbers as well as "a few".
   * @return value or {@code null} for none
   */
  public java.lang.String getValueString() {
    return valueString;
  }

  /**
   * Can hold numbers as well as "a few".
   * @param valueString valueString or {@code null} for none
   */
  public NlpSemanticParsingLocalExtent setValueString(java.lang.String valueString) {
    this.valueString = valueString;
    return this;
  }

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

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

}
