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

/**
 * A wrapper class which contains the tunable parameters in an AutoML Image training job.
 *
 * <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 GoogleCloudAiplatformV1SchemaTrainingjobDefinitionAutomlImageTrainingTunableParameter extends com.google.api.client.json.GenericJson {

  /**
   * Optional. An unique name of pretrained model checkpoint provided in model garden, it will be
   * mapped to a GCS location internally.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String checkpointName;

  /**
   * Customizable dataset settings, used in the `model_garden_trainer`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.Map<String, java.lang.String> datasetConfig;

  /**
   * Optioinal. StudySpec of hyperparameter tuning job. Required for `model_garden_trainer`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudAiplatformV1StudySpec studySpec;

  /**
   * Customizable trainer settings, used in the `model_garden_trainer`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.Map<String, java.lang.String> trainerConfig;

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

  /**
   * Optional. An unique name of pretrained model checkpoint provided in model garden, it will be
   * mapped to a GCS location internally.
   * @return value or {@code null} for none
   */
  public java.lang.String getCheckpointName() {
    return checkpointName;
  }

  /**
   * Optional. An unique name of pretrained model checkpoint provided in model garden, it will be
   * mapped to a GCS location internally.
   * @param checkpointName checkpointName or {@code null} for none
   */
  public GoogleCloudAiplatformV1SchemaTrainingjobDefinitionAutomlImageTrainingTunableParameter setCheckpointName(java.lang.String checkpointName) {
    this.checkpointName = checkpointName;
    return this;
  }

  /**
   * Customizable dataset settings, used in the `model_garden_trainer`.
   * @return value or {@code null} for none
   */
  public java.util.Map<String, java.lang.String> getDatasetConfig() {
    return datasetConfig;
  }

  /**
   * Customizable dataset settings, used in the `model_garden_trainer`.
   * @param datasetConfig datasetConfig or {@code null} for none
   */
  public GoogleCloudAiplatformV1SchemaTrainingjobDefinitionAutomlImageTrainingTunableParameter setDatasetConfig(java.util.Map<String, java.lang.String> datasetConfig) {
    this.datasetConfig = datasetConfig;
    return this;
  }

  /**
   * Optioinal. StudySpec of hyperparameter tuning job. Required for `model_garden_trainer`.
   * @return value or {@code null} for none
   */
  public GoogleCloudAiplatformV1StudySpec getStudySpec() {
    return studySpec;
  }

  /**
   * Optioinal. StudySpec of hyperparameter tuning job. Required for `model_garden_trainer`.
   * @param studySpec studySpec or {@code null} for none
   */
  public GoogleCloudAiplatformV1SchemaTrainingjobDefinitionAutomlImageTrainingTunableParameter setStudySpec(GoogleCloudAiplatformV1StudySpec studySpec) {
    this.studySpec = studySpec;
    return this;
  }

  /**
   * Customizable trainer settings, used in the `model_garden_trainer`.
   * @return value or {@code null} for none
   */
  public java.util.Map<String, java.lang.String> getTrainerConfig() {
    return trainerConfig;
  }

  /**
   * Customizable trainer settings, used in the `model_garden_trainer`.
   * @param trainerConfig trainerConfig or {@code null} for none
   */
  public GoogleCloudAiplatformV1SchemaTrainingjobDefinitionAutomlImageTrainingTunableParameter setTrainerConfig(java.util.Map<String, java.lang.String> trainerConfig) {
    this.trainerConfig = trainerConfig;
    return this;
  }

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

  /**
   * @param trainerType trainerType or {@code null} for none
   */
  public GoogleCloudAiplatformV1SchemaTrainingjobDefinitionAutomlImageTrainingTunableParameter setTrainerType(java.lang.String trainerType) {
    this.trainerType = trainerType;
    return this;
  }

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

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

}
