/*
 * 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 NlpSaftEntityProfileAttribute.
 *
 * <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 NlpSaftEntityProfileAttribute extends com.google.api.client.json.GenericJson {

  /**
   * Boolean attribute value, e.g. for IsDeceased.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean boolValue;

  /**
   * Double attribute value, e.g. for height/weight.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Double floatValue;

  /**
   * Integer attribute value, e.g. IntId("April").
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long intValue;

  /**
   * Language, in case the attribute value is a string.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer language;

  /**
   * String name of the type of attribute, e.g. /birth/date
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String type;

  /**
   * Any id of the type of the attribute, e.g. IntId(/birth/date)
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer typeId;

  /**
   * String attribute value, e.g. "April 2010" or "3,235,121".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String value;

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

  /**
   * Boolean attribute value, e.g. for IsDeceased.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getBoolValue() {
    return boolValue;
  }

  /**
   * Boolean attribute value, e.g. for IsDeceased.
   * @param boolValue boolValue or {@code null} for none
   */
  public NlpSaftEntityProfileAttribute setBoolValue(java.lang.Boolean boolValue) {
    this.boolValue = boolValue;
    return this;
  }

  /**
   * Double attribute value, e.g. for height/weight.
   * @return value or {@code null} for none
   */
  public java.lang.Double getFloatValue() {
    return floatValue;
  }

  /**
   * Double attribute value, e.g. for height/weight.
   * @param floatValue floatValue or {@code null} for none
   */
  public NlpSaftEntityProfileAttribute setFloatValue(java.lang.Double floatValue) {
    this.floatValue = floatValue;
    return this;
  }

  /**
   * Integer attribute value, e.g. IntId("April").
   * @return value or {@code null} for none
   */
  public java.lang.Long getIntValue() {
    return intValue;
  }

  /**
   * Integer attribute value, e.g. IntId("April").
   * @param intValue intValue or {@code null} for none
   */
  public NlpSaftEntityProfileAttribute setIntValue(java.lang.Long intValue) {
    this.intValue = intValue;
    return this;
  }

  /**
   * Language, in case the attribute value is a string.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getLanguage() {
    return language;
  }

  /**
   * Language, in case the attribute value is a string.
   * @param language language or {@code null} for none
   */
  public NlpSaftEntityProfileAttribute setLanguage(java.lang.Integer language) {
    this.language = language;
    return this;
  }

  /**
   * String name of the type of attribute, e.g. /birth/date
   * @return value or {@code null} for none
   */
  public java.lang.String getType() {
    return type;
  }

  /**
   * String name of the type of attribute, e.g. /birth/date
   * @param type type or {@code null} for none
   */
  public NlpSaftEntityProfileAttribute setType(java.lang.String type) {
    this.type = type;
    return this;
  }

  /**
   * Any id of the type of the attribute, e.g. IntId(/birth/date)
   * @return value or {@code null} for none
   */
  public java.lang.Integer getTypeId() {
    return typeId;
  }

  /**
   * Any id of the type of the attribute, e.g. IntId(/birth/date)
   * @param typeId typeId or {@code null} for none
   */
  public NlpSaftEntityProfileAttribute setTypeId(java.lang.Integer typeId) {
    this.typeId = typeId;
    return this;
  }

  /**
   * String attribute value, e.g. "April 2010" or "3,235,121".
   * @return value or {@code null} for none
   */
  public java.lang.String getValue() {
    return value;
  }

  /**
   * String attribute value, e.g. "April 2010" or "3,235,121".
   * @param value value or {@code null} for none
   */
  public NlpSaftEntityProfileAttribute setValue(java.lang.String value) {
    this.value = value;
    return this;
  }

  /**
   * The type of the value.
   * @return value or {@code null} for none
   */
  public java.lang.String getValueType() {
    return valueType;
  }

  /**
   * The type of the value.
   * @param valueType valueType or {@code null} for none
   */
  public NlpSaftEntityProfileAttribute setValueType(java.lang.String valueType) {
    this.valueType = valueType;
    return this;
  }

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

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

}
