/*
 * 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.vision.v1.model;

/**
 * A `Property` consists of a user-supplied name/value pair.
 *
 * <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 Cloud Vision 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 GoogleCloudVisionV1p6beta1Property extends com.google.api.client.json.GenericJson {

  /**
   * Value in range [0..1]. Confidence of this property value.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Float confidence;

  /**
   * Opaque property value ID. Some IDs may be available in [Google Knowledge Graph Search
   * API](https://developers.google.com/knowledge-graph/). An example property for a blue coat would
   * be: Property {   name: 'color'   value: 'blue'   mid: '/m/01g5v'  // For color blue }
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String mid;

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

  /**
   * Value of numeric properties.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.math.BigInteger uint64Value;

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

  /**
   * Value in range [0..1]. Confidence of this property value.
   * @return value or {@code null} for none
   */
  public java.lang.Float getConfidence() {
    return confidence;
  }

  /**
   * Value in range [0..1]. Confidence of this property value.
   * @param confidence confidence or {@code null} for none
   */
  public GoogleCloudVisionV1p6beta1Property setConfidence(java.lang.Float confidence) {
    this.confidence = confidence;
    return this;
  }

  /**
   * Opaque property value ID. Some IDs may be available in [Google Knowledge Graph Search
   * API](https://developers.google.com/knowledge-graph/). An example property for a blue coat would
   * be: Property {   name: 'color'   value: 'blue'   mid: '/m/01g5v'  // For color blue }
   * @return value or {@code null} for none
   */
  public java.lang.String getMid() {
    return mid;
  }

  /**
   * Opaque property value ID. Some IDs may be available in [Google Knowledge Graph Search
   * API](https://developers.google.com/knowledge-graph/). An example property for a blue coat would
   * be: Property {   name: 'color'   value: 'blue'   mid: '/m/01g5v'  // For color blue }
   * @param mid mid or {@code null} for none
   */
  public GoogleCloudVisionV1p6beta1Property setMid(java.lang.String mid) {
    this.mid = mid;
    return this;
  }

  /**
   * Name of the property.
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Name of the property.
   * @param name name or {@code null} for none
   */
  public GoogleCloudVisionV1p6beta1Property setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Value of numeric properties.
   * @return value or {@code null} for none
   */
  public java.math.BigInteger getUint64Value() {
    return uint64Value;
  }

  /**
   * Value of numeric properties.
   * @param uint64Value uint64Value or {@code null} for none
   */
  public GoogleCloudVisionV1p6beta1Property setUint64Value(java.math.BigInteger uint64Value) {
    this.uint64Value = uint64Value;
    return this;
  }

  /**
   * Value of the property.
   * @return value or {@code null} for none
   */
  public java.lang.String getValue() {
    return value;
  }

  /**
   * Value of the property.
   * @param value value or {@code null} for none
   */
  public GoogleCloudVisionV1p6beta1Property setValue(java.lang.String value) {
    this.value = value;
    return this;
  }

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

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

}
