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

/**
 * Request to upload a conversation.
 *
 * <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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1UploadConversationRequest extends com.google.api.client.json.GenericJson {

  /**
   * Required. The conversation resource to create.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudContactcenterinsightsV1Conversation conversation;

  /**
   * Optional. A unique ID for the new conversation. This ID will become the final component of the
   * conversation's resource name. If no ID is specified, a server-generated ID will be used. This
   * value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`.
   * Valid characters are `a-z-`
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String conversationId;

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

  /**
   * Optional. DLP settings for transcript redaction. Optional, will default to the config specified
   * in Settings.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudContactcenterinsightsV1RedactionConfig redactionConfig;

  /**
   * Required. The conversation resource to create.
   * @return value or {@code null} for none
   */
  public GoogleCloudContactcenterinsightsV1Conversation getConversation() {
    return conversation;
  }

  /**
   * Required. The conversation resource to create.
   * @param conversation conversation or {@code null} for none
   */
  public GoogleCloudContactcenterinsightsV1UploadConversationRequest setConversation(GoogleCloudContactcenterinsightsV1Conversation conversation) {
    this.conversation = conversation;
    return this;
  }

  /**
   * Optional. A unique ID for the new conversation. This ID will become the final component of the
   * conversation's resource name. If no ID is specified, a server-generated ID will be used. This
   * value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`.
   * Valid characters are `a-z-`
   * @return value or {@code null} for none
   */
  public java.lang.String getConversationId() {
    return conversationId;
  }

  /**
   * Optional. A unique ID for the new conversation. This ID will become the final component of the
   * conversation's resource name. If no ID is specified, a server-generated ID will be used. This
   * value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`.
   * Valid characters are `a-z-`
   * @param conversationId conversationId or {@code null} for none
   */
  public GoogleCloudContactcenterinsightsV1UploadConversationRequest setConversationId(java.lang.String conversationId) {
    this.conversationId = conversationId;
    return this;
  }

  /**
   * Required. The parent resource of the conversation.
   * @return value or {@code null} for none
   */
  public java.lang.String getParent() {
    return parent;
  }

  /**
   * Required. The parent resource of the conversation.
   * @param parent parent or {@code null} for none
   */
  public GoogleCloudContactcenterinsightsV1UploadConversationRequest setParent(java.lang.String parent) {
    this.parent = parent;
    return this;
  }

  /**
   * Optional. DLP settings for transcript redaction. Optional, will default to the config specified
   * in Settings.
   * @return value or {@code null} for none
   */
  public GoogleCloudContactcenterinsightsV1RedactionConfig getRedactionConfig() {
    return redactionConfig;
  }

  /**
   * Optional. DLP settings for transcript redaction. Optional, will default to the config specified
   * in Settings.
   * @param redactionConfig redactionConfig or {@code null} for none
   */
  public GoogleCloudContactcenterinsightsV1UploadConversationRequest setRedactionConfig(GoogleCloudContactcenterinsightsV1RedactionConfig redactionConfig) {
    this.redactionConfig = redactionConfig;
    return this;
  }

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

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

}
