/*
 * 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.aiplatform.v1beta1.model;

/**
 * Value for a feature.
 *
 * <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 Vertex AI 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 GoogleCloudAiplatformV1beta1FeatureValue extends com.google.api.client.json.GenericJson {

  /**
   * A list of bool type feature value.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1beta1BoolArray boolArrayValue;

  /**
   * Bool type feature value.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean boolValue;

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

  /**
   * A list of double type feature value.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1beta1DoubleArray doubleArrayValue;

  /**
   * Double type feature value.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Double doubleValue;

  /**
   * A list of int64 type feature value.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1beta1Int64Array int64ArrayValue;

  /**
   * Int64 feature value.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long int64Value;

  /**
   * Metadata of feature value.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1beta1FeatureValueMetadata metadata;

  /**
   * A list of string type feature value.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1beta1StringArray stringArrayValue;

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

  /**
   * A list of bool type feature value.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1BoolArray getBoolArrayValue() {
    return boolArrayValue;
  }

  /**
   * A list of bool type feature value.
   * @param boolArrayValue boolArrayValue or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1FeatureValue setBoolArrayValue(GoogleCloudAiplatformV1beta1BoolArray boolArrayValue) {
    this.boolArrayValue = boolArrayValue;
    return this;
  }

  /**
   * Bool type feature value.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getBoolValue() {
    return boolValue;
  }

  /**
   * Bool type feature value.
   * @param boolValue boolValue or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1FeatureValue setBoolValue(java.lang.Boolean boolValue) {
    this.boolValue = boolValue;
    return this;
  }

  /**
   * Bytes feature value.
   * @see #decodeBytesValue()
   * @return value or {@code null} for none
   */
  public java.lang.String getBytesValue() {
    return bytesValue;
  }

  /**
   * Bytes feature value.
   * @see #getBytesValue()
   * @return Base64 decoded value or {@code null} for none
   *
   * @since 1.14
   */
  public byte[] decodeBytesValue() {
    return com.google.api.client.util.Base64.decodeBase64(bytesValue);
  }

  /**
   * Bytes feature value.
   * @see #encodeBytesValue()
   * @param bytesValue bytesValue or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1FeatureValue setBytesValue(java.lang.String bytesValue) {
    this.bytesValue = bytesValue;
    return this;
  }

  /**
   * Bytes feature value.
   * @see #setBytesValue()
   *
   * <p>
   * The value is encoded Base64 or {@code null} for none.
   * </p>
   *
   * @since 1.14
   */
  public GoogleCloudAiplatformV1beta1FeatureValue encodeBytesValue(byte[] bytesValue) {
    this.bytesValue = com.google.api.client.util.Base64.encodeBase64URLSafeString(bytesValue);
    return this;
  }

  /**
   * A list of double type feature value.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1DoubleArray getDoubleArrayValue() {
    return doubleArrayValue;
  }

  /**
   * A list of double type feature value.
   * @param doubleArrayValue doubleArrayValue or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1FeatureValue setDoubleArrayValue(GoogleCloudAiplatformV1beta1DoubleArray doubleArrayValue) {
    this.doubleArrayValue = doubleArrayValue;
    return this;
  }

  /**
   * Double type feature value.
   * @return value or {@code null} for none
   */
  public java.lang.Double getDoubleValue() {
    return doubleValue;
  }

  /**
   * Double type feature value.
   * @param doubleValue doubleValue or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1FeatureValue setDoubleValue(java.lang.Double doubleValue) {
    this.doubleValue = doubleValue;
    return this;
  }

  /**
   * A list of int64 type feature value.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1Int64Array getInt64ArrayValue() {
    return int64ArrayValue;
  }

  /**
   * A list of int64 type feature value.
   * @param int64ArrayValue int64ArrayValue or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1FeatureValue setInt64ArrayValue(GoogleCloudAiplatformV1beta1Int64Array int64ArrayValue) {
    this.int64ArrayValue = int64ArrayValue;
    return this;
  }

  /**
   * Int64 feature value.
   * @return value or {@code null} for none
   */
  public java.lang.Long getInt64Value() {
    return int64Value;
  }

  /**
   * Int64 feature value.
   * @param int64Value int64Value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1FeatureValue setInt64Value(java.lang.Long int64Value) {
    this.int64Value = int64Value;
    return this;
  }

  /**
   * Metadata of feature value.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1FeatureValueMetadata getMetadata() {
    return metadata;
  }

  /**
   * Metadata of feature value.
   * @param metadata metadata or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1FeatureValue setMetadata(GoogleCloudAiplatformV1beta1FeatureValueMetadata metadata) {
    this.metadata = metadata;
    return this;
  }

  /**
   * A list of string type feature value.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1StringArray getStringArrayValue() {
    return stringArrayValue;
  }

  /**
   * A list of string type feature value.
   * @param stringArrayValue stringArrayValue or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1FeatureValue setStringArrayValue(GoogleCloudAiplatformV1beta1StringArray stringArrayValue) {
    this.stringArrayValue = stringArrayValue;
    return this;
  }

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

  /**
   * String feature value.
   * @param stringValue stringValue or {@code null} for none
   */
  public GoogleCloudAiplatformV1beta1FeatureValue setStringValue(java.lang.String stringValue) {
    this.stringValue = stringValue;
    return this;
  }

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

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

}
