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

/**
 * Represents a conversation model.
 *
 * <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 Dialogflow 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 GoogleCloudDialogflowV2ConversationModel extends com.google.api.client.json.GenericJson {

  /**
   * Metadata for article suggestion models.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudDialogflowV2ArticleSuggestionModelMetadata articleSuggestionModelMetadata;

  /**
   * Output only. Creation time of this model.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String createTime;

  /**
   * Required. Datasets used to create model.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleCloudDialogflowV2InputDataset> datasets;

  /**
   * Required. The display name of the model. At most 64 bytes long.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String displayName;

  /**
   * Language code for the conversation model. If not specified, the language is en-US. Language at
   * ConversationModel should be set for all non en-us languages. This should be a
   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String languageCode;

  /**
   * ConversationModel resource name. Format: `projects//conversationModels/`
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Metadata for smart reply models.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudDialogflowV2SmartReplyModelMetadata smartReplyModelMetadata;

  /**
   * Output only. State of the model. A model can only serve prediction requests after it gets
   * deployed.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String state;

  /**
   * Metadata for article suggestion models.
   * @return value or {@code null} for none
   */
  public GoogleCloudDialogflowV2ArticleSuggestionModelMetadata getArticleSuggestionModelMetadata() {
    return articleSuggestionModelMetadata;
  }

  /**
   * Metadata for article suggestion models.
   * @param articleSuggestionModelMetadata articleSuggestionModelMetadata or {@code null} for none
   */
  public GoogleCloudDialogflowV2ConversationModel setArticleSuggestionModelMetadata(GoogleCloudDialogflowV2ArticleSuggestionModelMetadata articleSuggestionModelMetadata) {
    this.articleSuggestionModelMetadata = articleSuggestionModelMetadata;
    return this;
  }

  /**
   * Output only. Creation time of this model.
   * @return value or {@code null} for none
   */
  public String getCreateTime() {
    return createTime;
  }

  /**
   * Output only. Creation time of this model.
   * @param createTime createTime or {@code null} for none
   */
  public GoogleCloudDialogflowV2ConversationModel setCreateTime(String createTime) {
    this.createTime = createTime;
    return this;
  }

  /**
   * Required. Datasets used to create model.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleCloudDialogflowV2InputDataset> getDatasets() {
    return datasets;
  }

  /**
   * Required. Datasets used to create model.
   * @param datasets datasets or {@code null} for none
   */
  public GoogleCloudDialogflowV2ConversationModel setDatasets(java.util.List<GoogleCloudDialogflowV2InputDataset> datasets) {
    this.datasets = datasets;
    return this;
  }

  /**
   * Required. The display name of the model. At most 64 bytes long.
   * @return value or {@code null} for none
   */
  public java.lang.String getDisplayName() {
    return displayName;
  }

  /**
   * Required. The display name of the model. At most 64 bytes long.
   * @param displayName displayName or {@code null} for none
   */
  public GoogleCloudDialogflowV2ConversationModel setDisplayName(java.lang.String displayName) {
    this.displayName = displayName;
    return this;
  }

  /**
   * Language code for the conversation model. If not specified, the language is en-US. Language at
   * ConversationModel should be set for all non en-us languages. This should be a
   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
   * @return value or {@code null} for none
   */
  public java.lang.String getLanguageCode() {
    return languageCode;
  }

  /**
   * Language code for the conversation model. If not specified, the language is en-US. Language at
   * ConversationModel should be set for all non en-us languages. This should be a
   * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
   * @param languageCode languageCode or {@code null} for none
   */
  public GoogleCloudDialogflowV2ConversationModel setLanguageCode(java.lang.String languageCode) {
    this.languageCode = languageCode;
    return this;
  }

  /**
   * ConversationModel resource name. Format: `projects//conversationModels/`
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * ConversationModel resource name. Format: `projects//conversationModels/`
   * @param name name or {@code null} for none
   */
  public GoogleCloudDialogflowV2ConversationModel setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Metadata for smart reply models.
   * @return value or {@code null} for none
   */
  public GoogleCloudDialogflowV2SmartReplyModelMetadata getSmartReplyModelMetadata() {
    return smartReplyModelMetadata;
  }

  /**
   * Metadata for smart reply models.
   * @param smartReplyModelMetadata smartReplyModelMetadata or {@code null} for none
   */
  public GoogleCloudDialogflowV2ConversationModel setSmartReplyModelMetadata(GoogleCloudDialogflowV2SmartReplyModelMetadata smartReplyModelMetadata) {
    this.smartReplyModelMetadata = smartReplyModelMetadata;
    return this;
  }

  /**
   * Output only. State of the model. A model can only serve prediction requests after it gets
   * deployed.
   * @return value or {@code null} for none
   */
  public java.lang.String getState() {
    return state;
  }

  /**
   * Output only. State of the model. A model can only serve prediction requests after it gets
   * deployed.
   * @param state state or {@code null} for none
   */
  public GoogleCloudDialogflowV2ConversationModel setState(java.lang.String state) {
    this.state = state;
    return this;
  }

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

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

}
