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

/**
 * Specifies how to handle de-identification of image pixels.
 *
 * <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 Cloud Healthcare 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 ImageConfig extends com.google.api.client.json.GenericJson {

  /**
   * Additional InfoTypes to redact in the images in addition to those used by
   * `text_redaction_mode`. Can only be used when `text_redaction_mode` is set to
   * `REDACT_SENSITIVE_TEXT`, `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS` or
   * `TEXT_REDACTION_MODE_UNSPECIFIED`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> additionalInfoTypes;

  /**
   * InfoTypes to skip redacting, overriding those used by `text_redaction_mode`. Can only be used
   * when `text_redaction_mode` is set to `REDACT_SENSITIVE_TEXT` or
   * `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> excludeInfoTypes;

  /**
   * Determines how to redact text from image.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String textRedactionMode;

  /**
   * Additional InfoTypes to redact in the images in addition to those used by
   * `text_redaction_mode`. Can only be used when `text_redaction_mode` is set to
   * `REDACT_SENSITIVE_TEXT`, `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS` or
   * `TEXT_REDACTION_MODE_UNSPECIFIED`.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getAdditionalInfoTypes() {
    return additionalInfoTypes;
  }

  /**
   * Additional InfoTypes to redact in the images in addition to those used by
   * `text_redaction_mode`. Can only be used when `text_redaction_mode` is set to
   * `REDACT_SENSITIVE_TEXT`, `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS` or
   * `TEXT_REDACTION_MODE_UNSPECIFIED`.
   * @param additionalInfoTypes additionalInfoTypes or {@code null} for none
   */
  public ImageConfig setAdditionalInfoTypes(java.util.List<java.lang.String> additionalInfoTypes) {
    this.additionalInfoTypes = additionalInfoTypes;
    return this;
  }

  /**
   * InfoTypes to skip redacting, overriding those used by `text_redaction_mode`. Can only be used
   * when `text_redaction_mode` is set to `REDACT_SENSITIVE_TEXT` or
   * `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS`.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getExcludeInfoTypes() {
    return excludeInfoTypes;
  }

  /**
   * InfoTypes to skip redacting, overriding those used by `text_redaction_mode`. Can only be used
   * when `text_redaction_mode` is set to `REDACT_SENSITIVE_TEXT` or
   * `REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS`.
   * @param excludeInfoTypes excludeInfoTypes or {@code null} for none
   */
  public ImageConfig setExcludeInfoTypes(java.util.List<java.lang.String> excludeInfoTypes) {
    this.excludeInfoTypes = excludeInfoTypes;
    return this;
  }

  /**
   * Determines how to redact text from image.
   * @return value or {@code null} for none
   */
  public java.lang.String getTextRedactionMode() {
    return textRedactionMode;
  }

  /**
   * Determines how to redact text from image.
   * @param textRedactionMode textRedactionMode or {@code null} for none
   */
  public ImageConfig setTextRedactionMode(java.lang.String textRedactionMode) {
    this.textRedactionMode = textRedactionMode;
    return this;
  }

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

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

}
