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

/**
 * A message representing a parameter to be tuned. Contains the name of the parameter and the
 * suggested value to use for this trial.
 *
 * <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 AI Platform Training & Prediction 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 GoogleCloudMlV1TrialParameter extends com.google.api.client.json.GenericJson {

  /**
   * Must be set if ParameterType is DOUBLE or DISCRETE.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Double floatValue;

  /**
   * Must be set if ParameterType is INTEGER
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long intValue;

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

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

  /**
   * Must be set if ParameterType is DOUBLE or DISCRETE.
   * @return value or {@code null} for none
   */
  public java.lang.Double getFloatValue() {
    return floatValue;
  }

  /**
   * Must be set if ParameterType is DOUBLE or DISCRETE.
   * @param floatValue floatValue or {@code null} for none
   */
  public GoogleCloudMlV1TrialParameter setFloatValue(java.lang.Double floatValue) {
    this.floatValue = floatValue;
    return this;
  }

  /**
   * Must be set if ParameterType is INTEGER
   * @return value or {@code null} for none
   */
  public java.lang.Long getIntValue() {
    return intValue;
  }

  /**
   * Must be set if ParameterType is INTEGER
   * @param intValue intValue or {@code null} for none
   */
  public GoogleCloudMlV1TrialParameter setIntValue(java.lang.Long intValue) {
    this.intValue = intValue;
    return this;
  }

  /**
   * The name of the parameter.
   * @return value or {@code null} for none
   */
  public java.lang.String getParameter() {
    return parameter;
  }

  /**
   * The name of the parameter.
   * @param parameter parameter or {@code null} for none
   */
  public GoogleCloudMlV1TrialParameter setParameter(java.lang.String parameter) {
    this.parameter = parameter;
    return this;
  }

  /**
   * Must be set if ParameterTypeis CATEGORICAL
   * @return value or {@code null} for none
   */
  public java.lang.String getStringValue() {
    return stringValue;
  }

  /**
   * Must be set if ParameterTypeis CATEGORICAL
   * @param stringValue stringValue or {@code null} for none
   */
  public GoogleCloudMlV1TrialParameter setStringValue(java.lang.String stringValue) {
    this.stringValue = stringValue;
    return this;
  }

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

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

}
