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

/**
 * The request message for EntityTypes.BatchUpdateEntityTypes.
 *
 * <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 GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest extends com.google.api.client.json.GenericJson {

  /**
   * The collection of entity types to update or create.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudDialogflowV2beta1EntityTypeBatch entityTypeBatchInline;

  /**
   * The URI to a Google Cloud Storage file containing entity types to update or create. The file
   * format can either be a serialized proto (of EntityBatch type) or a JSON object. Note: The URI
   * must start with "gs://".
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String entityTypeBatchUri;

  /**
   * Optional. The language used to access language-specific data. If not specified, the agent's
   * default language is used. For more information, see [Multilingual intent and entity
   * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String languageCode;

  /**
   * Optional. The mask to control which fields get updated.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String updateMask;

  /**
   * The collection of entity types to update or create.
   * @return value or {@code null} for none
   */
  public GoogleCloudDialogflowV2beta1EntityTypeBatch getEntityTypeBatchInline() {
    return entityTypeBatchInline;
  }

  /**
   * The collection of entity types to update or create.
   * @param entityTypeBatchInline entityTypeBatchInline or {@code null} for none
   */
  public GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest setEntityTypeBatchInline(GoogleCloudDialogflowV2beta1EntityTypeBatch entityTypeBatchInline) {
    this.entityTypeBatchInline = entityTypeBatchInline;
    return this;
  }

  /**
   * The URI to a Google Cloud Storage file containing entity types to update or create. The file
   * format can either be a serialized proto (of EntityBatch type) or a JSON object. Note: The URI
   * must start with "gs://".
   * @return value or {@code null} for none
   */
  public java.lang.String getEntityTypeBatchUri() {
    return entityTypeBatchUri;
  }

  /**
   * The URI to a Google Cloud Storage file containing entity types to update or create. The file
   * format can either be a serialized proto (of EntityBatch type) or a JSON object. Note: The URI
   * must start with "gs://".
   * @param entityTypeBatchUri entityTypeBatchUri or {@code null} for none
   */
  public GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest setEntityTypeBatchUri(java.lang.String entityTypeBatchUri) {
    this.entityTypeBatchUri = entityTypeBatchUri;
    return this;
  }

  /**
   * Optional. The language used to access language-specific data. If not specified, the agent's
   * default language is used. For more information, see [Multilingual intent and entity
   * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
   * @return value or {@code null} for none
   */
  public java.lang.String getLanguageCode() {
    return languageCode;
  }

  /**
   * Optional. The language used to access language-specific data. If not specified, the agent's
   * default language is used. For more information, see [Multilingual intent and entity
   * data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
   * @param languageCode languageCode or {@code null} for none
   */
  public GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest setLanguageCode(java.lang.String languageCode) {
    this.languageCode = languageCode;
    return this;
  }

  /**
   * Optional. The mask to control which fields get updated.
   * @return value or {@code null} for none
   */
  public String getUpdateMask() {
    return updateMask;
  }

  /**
   * Optional. The mask to control which fields get updated.
   * @param updateMask updateMask or {@code null} for none
   */
  public GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest setUpdateMask(String updateMask) {
    this.updateMask = updateMask;
    return this;
  }

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

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

}
